Browse Source

2位白名单

wangqifan 3 years ago
parent
commit
f1349e560d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/izouma/nineth/service/DomainOrderService.java

+ 2 - 2
src/main/java/com/izouma/nineth/service/DomainOrderService.java

@@ -104,7 +104,7 @@ public class DomainOrderService {
                     throw new BusinessException("四位及以下域名只能官方创建。");
                 }
             } else {
-                if (domain.length() < 7 || domain.length() > 20) {
+                if (domain.length() < 6 || domain.length() > 20) {
                     throw new BusinessException("四位以下域名只能官方创建。");
                 }
             }
@@ -230,7 +230,7 @@ public class DomainOrderService {
                     return result;
                 }
             } else {
-                if (visibleDomain.length() < 7 || visibleDomain.length() > 20) {
+                if (visibleDomain.length() < 6 || visibleDomain.length() > 20) {
                     result.put("result", false);
                     result.put("reason", "域名长度不合规");
                     return result;