Browse Source

修改用户头像功能提交

zsy 2 weeks ago
parent
commit
805a07c96a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/rf/AIquantum/user/rest/UserController.java

+ 1 - 1
src/main/java/com/rf/AIquantum/user/rest/UserController.java

@@ -190,7 +190,7 @@ public class UserController extends BaseController {
                     userEntity.setAvatar(avatarUrl);
                     userEntity.setUpdateTime(DateUtil.now());
                     this.userService.save(userEntity);
-                    return success();
+                    return success(userEntity.getAvatar());
                 } catch (Exception e) {
                     e.printStackTrace();
                     return fail("文件上传失败");