release: avatar拼接url地址

release-2024-04-25
huangyw 3 months ago
parent 268bc9ad60
commit 72c714b3c7

@ -139,7 +139,7 @@ public class MyController extends BaseController {
public Result<UserInfoForInviteVO> getUserInfoForInvite(String inviteCode) { public Result<UserInfoForInviteVO> getUserInfoForInvite(String inviteCode) {
UserInfo userInfoByInvitationCode = userInfoService.getUserInfoByInvitationCode(inviteCode); UserInfo userInfoByInvitationCode = userInfoService.getUserInfoByInvitationCode(inviteCode);
if(userInfoByInvitationCode != null) { if(userInfoByInvitationCode != null) {
return Result.success(new UserInfoForInviteVO(userInfoByInvitationCode.getNickName(), userInfoByInvitationCode.getAvatar(), inviteCode)); return Result.success(new UserInfoForInviteVO(userInfoByInvitationCode.getNickName(), Constants.RESOURCE_PREFIX + userInfoByInvitationCode.getAvatar(), inviteCode));
} else { } else {
return Result.failed(ErrorConstants.USER_INVITE_CODE_NOT_EXIST); return Result.failed(ErrorConstants.USER_INVITE_CODE_NOT_EXIST);
} }

Loading…
Cancel
Save