Commit 415ee670 authored by lee_mingzhu's avatar lee_mingzhu

remove phone_no column

parent 802253c8
...@@ -449,8 +449,12 @@ public class UserController implements IBaseController { ...@@ -449,8 +449,12 @@ public class UserController implements IBaseController {
public JsonResult associateWithWechat(String openId, String phoneNo) { public JsonResult associateWithWechat(String openId, String phoneNo) {
User user = getCurrentUser(); User user = getCurrentUser();
Long userId = user.getId(); Long userId = user.getId();
User xyqbUser = userService.findByPhoneInDb(phoneNo);
WechatUserInfo wechatUserInfo = wechatService.findWechatUserInfoByPhoneNo(phoneNo); WechatUserInfo wechatUserInfo = wechatService.findWechatUserInfoByPhoneNo(phoneNo);
if(wechatUserInfo != null) { if (wechatUserInfo != null) {
return JsonResult.buildErrorStateResult("该手机号已绑定其他微信号码", null);
}
if(xyqbUser != null && xyqbUser.getPhoneNo() != wechatUserInfo.getPhoneNo()) {
return JsonResult.buildErrorStateResult("该手机号已绑定其他微信号码", null); return JsonResult.buildErrorStateResult("该手机号已绑定其他微信号码", null);
} }
WechatUserInfo userInfo = wechatService.findWechatUserInfoFromDb(openId); WechatUserInfo userInfo = wechatService.findWechatUserInfoFromDb(openId);
......
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