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