From 259f0f44e41137b6481b43cbd22e4851ec0db855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Evol=E9=83=91=E5=A4=A9?= Date: Sat, 2 Dec 2023 02:16:30 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D-=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=9A=84=E4=B8=80=E9=94=AE=E7=99=BB=E5=BD=95?= =?UTF-8?q?=20=E7=BC=BA=E5=B0=91state=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Evol郑天 --- api/member/auth.js | 5 +++-- pages/users/wechat_login/index.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/member/auth.js b/api/member/auth.js index 65bf5e70..2a4da767 100644 --- a/api/member/auth.js +++ b/api/member/auth.js @@ -50,10 +50,11 @@ export function socialLogin(type, code, state) { } // 微信小程序的一键登录登录 -export function weixinMiniAppLogin(phoneCode, loginCode) { +export function weixinMiniAppLogin(phoneCode, loginCode,state) { return request.post('app-api/member/auth/weixin-mini-app-login', { phoneCode, - loginCode + loginCode, + state }, { noAuth: true // TODO 芋艿:后续要做调整 }); diff --git a/pages/users/wechat_login/index.vue b/pages/users/wechat_login/index.vue index 0042dbc4..6722c999 100644 --- a/pages/users/wechat_login/index.vue +++ b/pages/users/wechat_login/index.vue @@ -187,7 +187,7 @@ } // 情况二:允许授权手机号码 const loginCode = await Routine.getCode() - AuthApi.weixinMiniAppLogin(phoneCode, loginCode).then(res => { + AuthApi.weixinMiniAppLogin(phoneCode, loginCode,'default').then(res => { const data = res.data; // TODO 芋艿:refreshToken 机制 this.$store.commit("LOGIN", {