shish 2 роки тому
батько
коміт
6112336f24
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      app-ghs/controllers/GhsController.php

+ 2 - 2
app-ghs/controllers/GhsController.php

@@ -27,8 +27,8 @@ class GhsController extends BaseController
         if (empty($name)) {
             util::fail('名称不能为空');
         }
-        if (stringUtil::getWordNum($name) > 8) {
-            util::fail('名称不能超过8个汉字');
+        if (stringUtil::getWordNum($name) > 15) {
+            util::fail('名称不能超过15个汉字');
         }
 
         $hasGhsList = GhsClass::getAllByCondition(['ownShopId' => $this->shopId], null, '*', null, true);