From a7f6cd20c6a7604d2439b7f4227c895e8984ce93 Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Fri, 22 Nov 2024 13:09:30 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E9=82=80=E8=AF=B7=E7=A0=81=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=97=B6=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_common/src/main/java/constants/ErrorConstants.java | 1 + .../src/main/java/com/luoo/user/service/UserInfoService.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/luoo_common/src/main/java/constants/ErrorConstants.java b/luoo_common/src/main/java/constants/ErrorConstants.java index 2f58284..88d5035 100644 --- a/luoo_common/src/main/java/constants/ErrorConstants.java +++ b/luoo_common/src/main/java/constants/ErrorConstants.java @@ -40,6 +40,7 @@ public class ErrorConstants { public final static String USER_NAME_ALREADY_EXISTS = "用户名已存在"; public final static String USER_INVITE_CODE_NOT_EXIST = "邀请码不存在"; 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 = "请勿重复添加默认地址!"; // 会员部分 diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java index 49b16d8..853aebd 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java @@ -309,6 +309,8 @@ public class UserInfoService { userPointLogService.addByTaskDailyAndUserId(TaskPointIdConstants.INVITE_USER_20, userInfoDaoByInvitationCode.getId()); } + } else { + throw new BizException(ErrorConstants.INVITATION_CODE_IS_INCORRECT); } }