Commit ce326252 authored by 技术部-任文超's avatar 技术部-任文超

改正错误

parent 138beb1d
...@@ -514,15 +514,16 @@ public class UserController implements IBaseController { ...@@ -514,15 +514,16 @@ public class UserController implements IBaseController {
int rows = wechatService.bindingUser(userId, user.getPhoneNo(), openId); int rows = wechatService.bindingUser(userId, user.getPhoneNo(), openId);
if(rows > 0){ if(rows > 0){
LOGGER.info("微信关联成功:rows:{}, user:[{}],openId:[{}],wechatUserInfo:[{}]",rows,user,openId,userInfo); LOGGER.info("微信关联成功:rows:{}, user:[{}],openId:[{}],wechatUserInfo:[{}]",rows,user,openId,userInfo);
return JsonResult.buildSuccessResult("微信关联成功", null);
}else { }else {
LOGGER.warn("微信关联失败,保存遇到问题:rows:{}, user:[{}],openId:[{}],wechatUserInfo:[{}]",rows,user,openId,userInfo); LOGGER.warn("微信关联失败,保存遇到问题:rows:{}, user:[{}],openId:[{}],wechatUserInfo:[{}]",rows,user,openId,userInfo);
return JsonResult.buildErrorStateResult("微信关联失败", null);
} }
} catch (Exception ex) { } catch (Exception ex) {
// 不做绑定 // 不做绑定
LOGGER.warn("微信关联失败,保存遇到问题:user:[{}],openId:[{}],wechatUserInfo:[{}]",user,openId,userInfo, ex); LOGGER.warn("微信关联失败,保存遇到问题:user:[{}],openId:[{}],wechatUserInfo:[{}]",user,openId,userInfo, ex);
return JsonResult.buildErrorStateResult("微信关联失败", null); return JsonResult.buildErrorStateResult("微信关联失败", null);
} }
return JsonResult.buildSuccessResult("微信关联成功", 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