lqmac 7 months ago
parent 949eddd5ca
commit d7d015ab90
  1. 2
      application/admin/controller/special/Subject.php
  2. BIN
      public/.DS_Store
  3. BIN
      public/static/frontend/logo.jpg

@ -101,7 +101,7 @@ class Subject extends AuthController
if ($id) {
$cate = SpecialSubject::get($id);
if (!$cate['grade_id'] && $post['grade_id'] && SpecialSubject::be(['grade_id' => $id, 'is_del' => 0])) return Json::fail('无法移动有下级的分类');
if (SpecialSubject::where(['name' => $post['name'], 'is_del' => 0])->where('id', '<>', $id)->count() >= 1) return Json::fail('分类名称已存在');
// if (SpecialSubject::where(['name' => $post['name'], 'is_del' => 0])->where('id', '<>', $id)->count() >= 1) return Json::fail('分类名称已存在');
$res = SpecialSubject::edit($post, $id);
if ($res)
return Json::successful('修改成功');

BIN
public/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Loading…
Cancel
Save