mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
fix 绑定微信小程序的terminal错误的bug
fix 绑定微信小程序后loading 不会消失的bug
This commit is contained in:
@@ -375,11 +375,11 @@ public class UserServiceImpl implements IUserService {
|
||||
String uniId = wxOAuth2AccessToken.getUnionId();
|
||||
String openId = wxOAuth2AccessToken.getOpenId();
|
||||
String unionId = uniId == null ? "0" : uniId;
|
||||
Integer terminal = ClientEnum.OA.getCode();
|
||||
Integer terminal = LikeFrontThreadLocal.getTerminal();
|
||||
String key = bindOaValidate.getKey();
|
||||
|
||||
// 授权校验,未授权创建授权,已授权返回
|
||||
bindWechatAuth(openId, unionId, ClientEnum.OA.getCode(), userId);
|
||||
bindWechatAuth(openId, unionId, terminal, userId);
|
||||
|
||||
} catch (WxErrorException e) {
|
||||
throw new OperateException(e.getError().getErrorCode() + ", " + e.getError().getErrorMsg());
|
||||
|
||||
@@ -226,7 +226,9 @@ onLoad(async (options) => {
|
||||
await oaAuthBind({code})
|
||||
await userStore.getUser()
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
|
||||
uni.hideLoading()
|
||||
//用于清空code
|
||||
router.redirectTo('/pages/user_set/user_set')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user