‘linchangsheng’ преди 10 месеца
родител
ревизия
9c49f9725d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

@@ -261,7 +261,7 @@ public class UserLogic {
             if (mobile.length() != 11) {
                 throw new RemoteServiceException(errPrefix + "手机号格式不正确");
             }
-            UserTypeEnum userTypeEnum = BaseEnum.valueToEnum(UserTypeEnum.class, "WORKER");
+            UserTypeEnum userTypeEnum = BaseEnum.valueToEnum(UserTypeEnum.class, "师傅");
             if (Objects.isNull(userTypeEnum) || userTypeEnum == UserTypeEnum.GENERAL) {
                 throw new RemoteServiceException(errPrefix + "用户类型填写不合规,请填写【师傅】或者【分销员】");
             }