소스 검색

允许分类重名。

赵启卫 2 년 전
부모
커밋
8bf189e883
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      application/admin/controller/special/Subject.php

+ 3 - 3
application/admin/controller/special/Subject.php

xqd
@@ -101,9 +101,9 @@ class Subject extends AuthController
                 return Json::fail('修改失败');
         } else {
             $post['add_time'] = time();
-            if (SpecialSubject::be(['name' => $post['name'], 'is_del' => 0])) {
-                return Json::fail('分类名称已存在!');
-            }
+            // if (SpecialSubject::be(['name' => $post['name'], 'is_del' => 0])) {
+            //     return Json::fail('分类名称已存在!');
+            // }
             $res = SpecialSubject::set($post);
             if ($res)
                 return Json::successful('添加成功');