From ed2fba61cab11a246c0af11a4ecd0f243d9cf580 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Wed, 24 Jul 2024 16:24:35 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E4=BF=AE=E6=94=B9=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/constants/TaskPointIdConstants.java | 4 ++-- .../main/java/com/luoo/user/controller/MyController.java | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/luoo_common/src/main/java/constants/TaskPointIdConstants.java b/luoo_common/src/main/java/constants/TaskPointIdConstants.java index fdc64cf..758d7b7 100644 --- a/luoo_common/src/main/java/constants/TaskPointIdConstants.java +++ b/luoo_common/src/main/java/constants/TaskPointIdConstants.java @@ -8,9 +8,9 @@ package constants; **/ public class TaskPointIdConstants { - // 新手欢迎奖励 todo + // 新手欢迎奖励 public static final String NEW_USER_WELCOME_AWARD = "1"; - // 修改头像 todo + // 修改头像 public static final String MODIFY_AVATAR = "2"; // 修改昵称 todo public static final String MODIFY_NICKNAME = "3"; diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index cddc65f..2857323 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -17,6 +17,7 @@ import com.luoo.user.service.*; import com.luoo.user.util.EmojiConverterUtil; import com.luoo.user.util.IpUtil; import constants.Constants; +import constants.TaskPointIdConstants; import controller.BaseController; import dto.UserLoginDto; import enums.*; @@ -84,6 +85,9 @@ public class MyController extends BaseController { @Autowired private UserMessageDao userMessageDao; + @Autowired + private UserPointLogService userPointLogService; + @ApiOperation(value = "1.获取个人信息", notes = "游客无法获取个人信息") @GetMapping("/userInfo") @GlobalInterceptor(checkAppUserLogin = true) @@ -182,6 +186,8 @@ public class MyController extends BaseController { userInfoService.update(user); rabbitTemplate.convertAndSend("userInfoCommentCache", userLoginDto.getUserId()); + + userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_AVATAR, userLoginDto.getUserId()); return Result.success(Constants.RESOURCE_PREFIX + user.getThumbnail()); }