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()); }