zhoutg 6 tahun lalu
induk
melakukan
eb5ea5e6c9
1 mengubah file dengan 19 tambahan dan 19 penghapusan
  1. 19 19
      user-service/src/main/java/com/diagbot/facade/VerFacade.java

+ 19 - 19
user-service/src/main/java/com/diagbot/facade/VerFacade.java

@@ -77,19 +77,19 @@ public class VerFacade {
         //参数验证
         if (StringUtil.isBlank(smsVerCreatVO.getImgId())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "图片验证码唯一标志不能为空!");
+                    "图片验证码唯一标志不能为空");
         }
         if (StringUtil.isBlank(smsVerCreatVO.getCode())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "图片验证码不能为空!");
+                    "图片验证码不能为空");
         }
         if (StringUtil.isBlank(smsVerCreatVO.getMobile())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "用户电话不能为空!");
+                    "用户电话不能为空");
         }
         if (!RegexValidateUtil.checkMobileNumber(smsVerCreatVO.getMobile())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_ERROR,
-                    "请输入正确的手机号!");
+                    "请输入正确的手机号");
         }
         //验证图片验证码
         ImgVerInfo imgVerInfo = new ImgVerInfo();
@@ -98,7 +98,7 @@ public class VerFacade {
         if (imgVerRes) {
             User bean = userFacade.getUserInfo(smsVerCreatVO.getMobile());
             if (bean != null) {
-                throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "该号码已经被注册!");
+                throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "该号码已经被注册");
             }
 
             //验证是否超过三分钟
@@ -107,11 +107,11 @@ public class VerFacade {
                 if (DateUtil.after(DateUtil.addMinutes(swsVerInfoCheck.getCreateTime(), ConstantEnum.SMS_EXPIRED_INTERVAL.getKey()),
                         DateUtil.now())) {
                     throw new CommonException(ServiceErrorCode.SMS_SEND_ERROR,
-                            "同一用户三分钟之内不能重复发送验证短信,请三分钟之后再次发送!");
+                            "同一用户三分钟之内不能重复发送验证短信,请三分钟之后再次发送");
                 }
             }
         } else {
-            throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "输入图形验证码有误!");
+            throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "输入图形验证码有误");
         }
 
         //发送短信
@@ -136,23 +136,23 @@ public class VerFacade {
         //参数验证
         if (StringUtil.isBlank(smsVerCreatVO.getImgId())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "图片验证码唯一标志不能为空!");
+                    "图片验证码唯一标志不能为空");
         }
         if (StringUtil.isBlank(smsVerCreatVO.getCode())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "图片验证码不能为空!");
+                    "图片验证码不能为空");
         }
         if (StringUtil.isBlank(smsVerCreatVO.getMobile())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "用户电话不能为空!");
+                    "用户电话不能为空");
         }
         if (!RegexValidateUtil.checkMobileNumber(smsVerCreatVO.getMobile())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_ERROR,
-                    "请输入正确的手机号!");
+                    "请输入正确的手机号");
         }
         User bean = userFacade.getUserInfo(smsVerCreatVO.getMobile());
         if (bean == null) {
-            throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "手机号未注册!");
+            throw new CommonException(CommonErrorCode.PARAM_IS_ERROR, "手机号未注册");
         }
 
         //验证是否超过三分钟
@@ -161,7 +161,7 @@ public class VerFacade {
             if (DateUtil.after(DateUtil.addMinutes(swsVerInfoCheck.getCreateTime(), ConstantEnum.SMS_EXPIRED_INTERVAL.getKey()),
                     DateUtil.now())) {
                 throw new CommonException(ServiceErrorCode.SMS_SEND_ERROR,
-                        "同一用户三分钟之内不能重复发送验证短信,请三分钟之后再次发送!");
+                        "同一用户三分钟之内不能重复发送验证短信,请三分钟之后再次发送");
             }
         }
 
@@ -187,27 +187,27 @@ public class VerFacade {
         //参数验证
         if (null == smsVerVerVO) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "短信验证码验证输入信息不能为空!");
+                    "短信验证码验证输入信息不能为空");
         }
         //        if (StringUtil.isBlank(smsVerVerVO.getImgId())){
         //            throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-        //                    "图片验证码唯一标志不能为空!");
+        //                    "图片验证码唯一标志不能为空");
         //        }
         //        if (StringUtil.isBlank(smsVerVerVO.getCode())){
         //            throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-        //                    "图片验证码不能为空!");
+        //                    "图片验证码不能为空");
         //        }
         if (StringUtil.isBlank(smsVerVerVO.getMobile())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "用户电话不能为空!");
+                    "用户电话不能为空");
         }
         if (StringUtil.isBlank(smsVerVerVO.getSmsCode())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
-                    "短信验证码不能为空!");
+                    "短信验证码不能为空");
         }
         if (!RegexValidateUtil.checkMobileNumber(smsVerVerVO.getMobile())) {
             throw new CommonException(CommonErrorCode.PARAM_IS_ERROR,
-                    "请输入正确的手机号!");
+                    "请输入正确的手机号");
         }
         //验证图片验证码
         //        ImgVerInfo imgVerInfo = new ImgVerInfo();