增加类别中的类别描述,自建类别可以修改
This commit is contained in:
1 parent
1eafa8f5c9
commit
920d592cdb
7 files changed
+131
-114
No files matched your search
@@ -128,6 +128,12 @@ class Category extends BaseController
|
||||
// 编辑类别
|
||||
public function edit($id)
|
||||
{
|
||||
$isupdate = CG::where('id',$id)->value('isupdate');
|
||||
if($isupdate == 0)
|
||||
{
|
||||
$this->error('系统默认分类不允许修改','/login/err');
|
||||
}
|
||||
|
||||
// 获取单位信息
|
||||
$list['data'] = CG::field('id,title,pid,paixu')
|
||||
->find($id);
|
||||
|
||||
Reference in new issue
Block a user