shish 2 лет назад
Родитель
Сommit
ca52b5f6b8
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) > 18) {
-            util::fail('名称不能超过18个汉字');
+        if (stringUtil::getWordNum($name) > 25) {
+            util::fail('名称不能超过25个汉字');
         }
 
         $hasGhsList = GhsClass::getAllByCondition(['ownShopId' => $this->shopId], null, '*', null, true);