提交 85ea57b6 authored 作者: linzhenjie's avatar linzhenjie

修改用户资料更新

上级 fbe331fe
......@@ -133,7 +133,7 @@ public class AppUserController extends AbstractController {
public R update(@RequestBody UpdateForm form){
AppUserEntity user = new AppUserEntity();
AppUserEntity user1 = otherAppUserService.getById(form.getId());
// AppUserEntity user1 = otherAppUserService.getById(form.getId());
//修改手机号码
if(StringUtils.isNotEmpty(form.getPhone())) {
......@@ -159,8 +159,10 @@ public class AppUserController extends AbstractController {
e.printStackTrace();
}
otherAppUserService.updateById(user);
return R.ok();
if(otherAppUserService.updateById(user)) {
return R.ok().put("user", otherAppUserService.getById(user.getId()));
}
return R.error("更新用户信息出错了");
}
@PostMapping("login")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论