From aa8dc95814aa09857a2ed41e0c3e6c08c12cf6c7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 15 Mar 2022 17:28:46 +0800 Subject: [PATCH] 1 --- server/httpproxy/controllers/proxy.js | 17 +++++++++++++++++ third_party/j7 | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/server/httpproxy/controllers/proxy.js b/server/httpproxy/controllers/proxy.js index 5933925..daafe4f 100644 --- a/server/httpproxy/controllers/proxy.js +++ b/server/httpproxy/controllers/proxy.js @@ -1,7 +1,24 @@ +const https = require('https'); const app = require('j7/app'); +const utils = require('j7/utils'); const serviceFactory = require('../services/factory'); +/* + data: + { + "seq_id": "", + "target_url": "", + "params"":[ + ["xx", "xx"] + ], + "cb_url": "" + } + */ async function get(session) { + const data = utils.jsonDecode(session.request('data', '')); + const seqId = data['seq_id']; + const targetUrl = data['target_url']; + const cbUrl = data['cb_url']; } async function post(session) { diff --git a/third_party/j7 b/third_party/j7 index 984701a..4f8f2e8 160000 --- a/third_party/j7 +++ b/third_party/j7 @@ -1 +1 @@ -Subproject commit 984701afe9a747a2a24505319721869ebe187901 +Subproject commit 4f8f2e8a778dffdfbb3f16cd76e6d66fd7641a7f