fix-阻力头像

This commit is contained in:
xl
2024-07-11 13:53:48 +08:00
parent fb92071604
commit ed52a4701b
3 changed files with 19 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ public class CardProductController {
@RequestMapping(value = "/get/help/status", method = RequestMethod.GET)
public CommonResult<CardProductHelpStausVo> getHelpStatus(@Validated CardProductHelpStatusRequest request) {
Integer uid = userService.getUserId();
User user = userService.getById(request.getShareUid());
CardProductHelpStausVo result = new CardProductHelpStausVo();
result.setCardProductId(request.getCardProductId());
if (uid == 0) {
@@ -163,6 +164,8 @@ public class CardProductController {
return CommonResult.success(result);
}
result.setStatus(CardHelpStatusConstants.STAUTS_0);
result.setAvatar(user.getAvatar());
result.setNickname(user.getNickname());
return CommonResult.success(result);
}