瀏覽代碼

名字允许出现重复

shish 4 年之前
父節點
當前提交
9160bca0fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app-ghs/controllers/CustomController.php

+ 1 - 1
app-ghs/controllers/CustomController.php

@@ -182,7 +182,7 @@ class CustomController extends BaseController
             }
             }
             $has = SjClass::getByCondition(['name' => $name]);
             $has = SjClass::getByCondition(['name' => $name]);
             if (!empty($has)) {
             if (!empty($has)) {
-                util::fail($name . ' 这个名称已经被别人使用了');
+                //util::fail($name . ' 这个名称已经被别人使用了');
             }
             }
             if (stringUtil::getWordNum($name) > 8) {
             if (stringUtil::getWordNum($name) > 8) {
                 util::fail('名称不能超过8个汉字');
                 util::fail('名称不能超过8个汉字');