修改授权绑定bug
This commit is contained in:
parent
a3aafaf552
commit
7fac900ba1
|
|
@ -402,7 +402,9 @@ public class UserServiceImpl implements IUserService {
|
||||||
// 该微信已绑定
|
// 该微信已绑定
|
||||||
throw new OperateException("该微信已绑定");
|
throw new OperateException("该微信已绑定");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
// 记录微信授权
|
||||||
UserAuth authModel = new UserAuth();
|
UserAuth authModel = new UserAuth();
|
||||||
authModel.setUserId(userId);
|
authModel.setUserId(userId);
|
||||||
authModel.setUnionid(unionId);
|
authModel.setUnionid(unionId);
|
||||||
|
|
@ -412,6 +414,5 @@ public class UserServiceImpl implements IUserService {
|
||||||
authModel.setUpdateTime(System.currentTimeMillis() / 1000);
|
authModel.setUpdateTime(System.currentTimeMillis() / 1000);
|
||||||
userAuthMapper.insert(authModel);
|
userAuthMapper.insert(authModel);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue