release- 邀请码不存在时提示修改

release-2024-04-25
pikaqiudeshujia 1 day ago
parent 263393c484
commit a7f6cd20c6

@ -40,6 +40,7 @@ public class ErrorConstants {
public final static String USER_NAME_ALREADY_EXISTS = "用户名已存在"; public final static String USER_NAME_ALREADY_EXISTS = "用户名已存在";
public final static String USER_INVITE_CODE_NOT_EXIST = "邀请码不存在"; public final static String USER_INVITE_CODE_NOT_EXIST = "邀请码不存在";
public static final String USER_INVITE_CODE_CANNOT_BE_SELF = "邀请码不能是自己的"; public static final String USER_INVITE_CODE_CANNOT_BE_SELF = "邀请码不能是自己的";
public static final String INVITATION_CODE_IS_INCORRECT = "请输入正确的邀请码";
public static final String DEFAULT_ADDRESS_CANNOT_BE_ADDED_AGAIN = "请勿重复添加默认地址!"; public static final String DEFAULT_ADDRESS_CANNOT_BE_ADDED_AGAIN = "请勿重复添加默认地址!";
// 会员部分 // 会员部分

@ -309,6 +309,8 @@ public class UserInfoService {
userPointLogService.addByTaskDailyAndUserId(TaskPointIdConstants.INVITE_USER_20, userPointLogService.addByTaskDailyAndUserId(TaskPointIdConstants.INVITE_USER_20,
userInfoDaoByInvitationCode.getId()); userInfoDaoByInvitationCode.getId());
} }
} else {
throw new BizException(ErrorConstants.INVITATION_CODE_IS_INCORRECT);
} }
} }

Loading…
Cancel
Save