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