Commit 668dd924 authored by lee_mingzhu's avatar lee_mingzhu

remove never used mothod

parent 0adfb91f
......@@ -444,25 +444,4 @@ public class UserController implements IBaseController {
return JsonResult.buildSuccessResult(null, null);
}
/**
* 确保一个微信号只能和一个xyqb账号进行关联
* @param openId
* @return
*/
@RequestMapping("/validateBinding")
public JsonResult validateBinding(String openId) {
//查询微信关联表,已经存在的openId不能再次关联
WechatUserInfo wechatUserInfo = wechatService.findWechatUserInfoFromDb(openId);
if(wechatUserInfo != null && wechatUserInfo.getUserId() != null) {
return JsonResult.buildSuccessResult(null, false);
}
//查询user表,根据手机号.已经存在的手机无法再次关联.
String phoneNo = wechatUserInfo.getPhoneNo();
User user = userService.findByPhoneInDb(phoneNo);
if(null != user && user.getId() > 0L){
return JsonResult.buildSuccessResult(null, false);
}
return JsonResult.buildSuccessResult(null, true);
}
}
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