parent
							
								
									ac2b1b3d10
								
							
						
					
					
						commit
						259f0f44e4
					
				|  | @ -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', { |   return request.post('app-api/member/auth/weixin-mini-app-login', { | ||||||
|     phoneCode, |     phoneCode, | ||||||
|     loginCode |     loginCode, | ||||||
|  | 	  state | ||||||
|   }, { |   }, { | ||||||
|     noAuth: true // TODO 芋艿:后续要做调整
 |     noAuth: true // TODO 芋艿:后续要做调整
 | ||||||
|   }); |   }); | ||||||
|  |  | ||||||
|  | @ -187,7 +187,7 @@ | ||||||
|         } |         } | ||||||
|         // 情况二:允许授权手机号码 |         // 情况二:允许授权手机号码 | ||||||
|         const loginCode = await Routine.getCode() |         const loginCode = await Routine.getCode() | ||||||
|         AuthApi.weixinMiniAppLogin(phoneCode, loginCode).then(res => { |         AuthApi.weixinMiniAppLogin(phoneCode, loginCode,'default').then(res => { | ||||||
|           const data = res.data; |           const data = res.data; | ||||||
|           // TODO 芋艿:refreshToken 机制 |           // TODO 芋艿:refreshToken 机制 | ||||||
|           this.$store.commit("LOGIN", { |           this.$store.commit("LOGIN", { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Evol郑天
						Evol郑天