Explorar el Código

全部模块:链接带邮箱

tangxiangan hace 2 años
padre
commit
286f11e896

+ 2 - 2
pdf-tech-common/src/main/java/constant/CommonConstant.java

@@ -178,7 +178,7 @@ public interface CommonConstant {
             "\t\t\t\t\t</p>\n" +
             "\t\t\t\t</td>\n" +
             "\t\t\t\t<td align=\"right\" valign=\"top\">\n" +
-            "\t\t\t\t\t<img src=\"%s/license_active_step1.png\" width=\"301\" alt=\"step1-logo\" /> \n" +
+            "\t\t\t\t\t<img src=\"{0}/license_active_step1.png\" width=\"301\" alt=\"step1-logo\" /> \n" +
             "\t\t\t\t</td>\n" +
             "\t\t\t</tr>\n" +
             "\t\t</tbody>\n" +
@@ -195,7 +195,7 @@ public interface CommonConstant {
             "\t\t\t\t\t</p>\n" +
             "\t\t\t\t</td>\n" +
             "\t\t\t\t<td align=\"right\" valign=\"top\">\n" +
-            "\t\t\t\t\t<img alt=\"step2-logo\" width=\"300\" src=\"%s/license_active_step2.png\" /> \n" +
+            "\t\t\t\t\t<img alt=\"step2-logo\" width=\"300\" src=\" {1}/license_active_step2.png\" /> \n" +
             "\t\t\t\t</td>\n" +
             "\t\t\t</tr>\n" +
             "\t\t\t<tr>\n" +

+ 4 - 0
pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/constant/VppMemberConstant.java

@@ -9,6 +9,10 @@ public interface VppMemberConstant {
 
     String EXCEPTION_MSG_FALSE_CODE = "False Code,please check again";
 
+
+    String EXCEPTION_MSG_FALSE_EMAIL_CODE = "The inviteEmailCode is error";
+
+
     String EXCEPTION_MSG_EMAIL_EXIST = "Email has been created";
 
     String EXCEPTION_MSG_EMAIL_INVALID = "Invalid Email Addresses";

+ 1 - 1
pdf-tech-core/src/main/java/cn/kdan/pdf/tech/core/service/impl/VppMemberServiceImpl.java

@@ -279,7 +279,7 @@ public class VppMemberServiceImpl implements VppMemberService {
             redisUtils.hdel(AuthConstant.VERIFY_CODE_KEY + CaptchaActionEnum.USER_REGISTER.value(), param.getEmail());
         }
         if(!StringUtils.isEmpty(param.getInviteEmailCode())&&!authService.checkVerifyCode(CaptchaActionEnum.USER_REGISTER_FOR_ADD_ADMIN.value(), param.getEmail(), param.getInviteEmailCode())) {
-            throw new BackendRuntimeException(VppMemberConstant.EXCEPTION_MSG_FALSE_CODE);
+            throw new BackendRuntimeException(VppMemberConstant.EXCEPTION_MSG_FALSE_EMAIL_CODE);
         }else{
             // 验证成功删除验证码缓存
             redisUtils.hdel(AuthConstant.VERIFY_CODE_KEY + CaptchaActionEnum.USER_REGISTER_FOR_ADD_ADMIN.value(), param.getEmail());