提交 797ec058 authored 作者: yucaiwei's avatar yucaiwei

--no commit message

上级 c4d4b25b
...@@ -62,12 +62,13 @@ public class FgUserController { ...@@ -62,12 +62,13 @@ public class FgUserController {
// 更新redis 信息 // 更新redis 信息
BeanUtils.copyProperties(form, info); BeanUtils.copyProperties(form, info);
redis.set(info.getToken(), info); redis.set(info.getToken(), info);
if(StringUtils.isNotBlank(info.getImg())){
Example example = commentService.createExample(); Example example = commentService.createExample();
example.and().andEqualTo("userId", info.getUserId()); example.and().andEqualTo("userId", info.getUserId());
Comment co = new Comment(); Comment co = new Comment();
co.setUserImg(info.getImg()); co.setUserImg(info.getImg());
commentService.UpdateByExampleSelective(co, example); commentService.UpdateByExampleSelective(co, example);
}
return CallBack.success("成功"); return CallBack.success("成功");
} }
@ApiOperation(value = "修改密码", notes = "0:成功;1:旧密码错误;2:新密码不能为空;3:两次密码不一致;4:新密码不能与旧密码重复") @ApiOperation(value = "修改密码", notes = "0:成功;1:旧密码错误;2:新密码不能为空;3:两次密码不一致;4:新密码不能与旧密码重复")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论