From ea56f952464a0773ccbbb2a8293707ad4e620ca1 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 13 Jun 2022 20:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/modules.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/modules.js b/src/common/modules.js index 37dfdf1c..8c423f50 100644 --- a/src/common/modules.js +++ b/src/common/modules.js @@ -85,8 +85,11 @@ export const config = { return encrypted.toString(); } } - let {module} = params - return http.post("/auth/oauth/token", params, { + let {module, code} = params, action = "/auth/oauth/token" + if (!!code) { + action = "/auth/wechatcp/token" + } + return http.post(action, params, { withoutToken: true, module, params: {