Commit 3f221ecc authored by lee_mingzhu's avatar lee_mingzhu

添加判断用户是否绑定的逻辑

parent 7b0ca9ff
......@@ -437,6 +437,10 @@ public class UserController implements IBaseController {
User user = getCurrentUser();
Long userId = user.getId();
LOGGER.info("关联用户:当前登录用户id:" + userId);
String phoneNo = user.getPhoneNo();
if(userService.findByPhoneInDb(phoneNo) != null) {
return JsonResult.buildErrorStateResult("该手机号已经关联了其他微信账号.", null);
}
WechatUserInfo userInfo = wechatService.findWechatUserInfoFromDb(openId);
LOGGER.info("关联用户:查询微信用户信息:start");
if (userInfo != null && userInfo.getUserId() == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment