parent
089578941e
commit
c1b4cc1670
|
|
@ -375,11 +375,11 @@ public class UserServiceImpl implements IUserService {
|
||||||
String uniId = wxOAuth2AccessToken.getUnionId();
|
String uniId = wxOAuth2AccessToken.getUnionId();
|
||||||
String openId = wxOAuth2AccessToken.getOpenId();
|
String openId = wxOAuth2AccessToken.getOpenId();
|
||||||
String unionId = uniId == null ? "0" : uniId;
|
String unionId = uniId == null ? "0" : uniId;
|
||||||
Integer terminal = ClientEnum.OA.getCode();
|
Integer terminal = LikeFrontThreadLocal.getTerminal();
|
||||||
String key = bindOaValidate.getKey();
|
String key = bindOaValidate.getKey();
|
||||||
|
|
||||||
// 授权校验,未授权创建授权,已授权返回
|
// 授权校验,未授权创建授权,已授权返回
|
||||||
bindWechatAuth(openId, unionId, ClientEnum.OA.getCode(), userId);
|
bindWechatAuth(openId, unionId, terminal, userId);
|
||||||
|
|
||||||
} catch (WxErrorException e) {
|
} catch (WxErrorException e) {
|
||||||
throw new OperateException(e.getError().getErrorCode() + ", " + e.getError().getErrorMsg());
|
throw new OperateException(e.getError().getErrorCode() + ", " + e.getError().getErrorMsg());
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,9 @@ onLoad(async (options) => {
|
||||||
await oaAuthBind({code})
|
await oaAuthBind({code})
|
||||||
await userStore.getUser()
|
await userStore.getUser()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uni.hideLoading()
|
||||||
//用于清空code
|
//用于清空code
|
||||||
router.redirectTo('/pages/user_set/user_set')
|
router.redirectTo('/pages/user_set/user_set')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue