commit
9f134ee5f0
|
@ -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 芋艿:后续要做调整
|
||||
});
|
||||
|
|
|
@ -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", {
|
||||
|
|
Loading…
Reference in New Issue