Commit 7b0ca9ff authored by lee_mingzhu's avatar lee_mingzhu

remove phone_no column

parent 0fdf19d4
......@@ -432,13 +432,18 @@ public class UserController implements IBaseController {
}
@RequestMapping("/associate_wechat")
public JsonResult associateWithWechat(String openId, String phoneNo) {
public JsonResult associateWithWechat(String openId) {
LOGGER.info("关联用户:start");
User user = getCurrentUser();
Long userId = user.getId();
LOGGER.info("关联用户:当前登录用户id:" + userId);
WechatUserInfo userInfo = wechatService.findWechatUserInfoFromDb(openId);
LOGGER.info("关联用户:查询微信用户信息:start");
if (userInfo != null && userInfo.getUserId() == null) {
LOGGER.info("关联用户:查询到了微信用户信息.");
userInfo.setUserId(userId);
wechatService.saveWechatUserInfo(userInfo);
LOGGER.info("关联用户:关联xyqb用户成功.");
}
return JsonResult.buildSuccessResult(null, 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