正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -20,6 +20,9 @@ class NewsCategoryController extends BaseController | @@ -20,6 +20,9 @@ class NewsCategoryController extends BaseController | ||
| 20 | public function lists(NewsCategoryModel $newsCategory){ | 20 | public function lists(NewsCategoryModel $newsCategory){ |
| 21 | //搜索条件 | 21 | //搜索条件 |
| 22 | $this->map['project_id'] = $this->user['project_id']; | 22 | $this->map['project_id'] = $this->user['project_id']; |
| 23 | + if(!isset($this->map['pid']) && empty($this->map['pid'])){ | ||
| 24 | + $this->map['pid'] = 0; | ||
| 25 | + } | ||
| 23 | $lists = $newsCategory->lists($this->map,$this->page,$this->row,$this->order, | 26 | $lists = $newsCategory->lists($this->map,$this->page,$this->row,$this->order, |
| 24 | ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']); | 27 | ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']); |
| 25 | if(!empty($lists['list'])){ | 28 | if(!empty($lists['list'])){ |
-
请 注册 或 登录 后发表评论