mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-06 03:31:49 +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());
|
||||
|
||||
Reference in New Issue
Block a user