fix 绑定微信小程序的terminal错误的bug

fix 绑定微信小程序后loading 不会消失的bug
This commit is contained in:
damonyuan 2024-11-14 14:08:02 +08:00
parent 089578941e
commit c1b4cc1670
2 changed files with 5 additions and 3 deletions

View File

@ -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());

View File

@ -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')
}