‘linchangsheng’ 6 months ago
parent
commit
9c49f9725d

+ 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 + "用户类型填写不合规,请填写【师傅】或者【分销员】");
             }