正在显示
3 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -87,6 +87,9 @@ class BaseController extends Controller | @@ -87,6 +87,9 @@ class BaseController extends Controller | ||
| 87 | } | 87 | } |
| 88 | break; | 88 | break; |
| 89 | default: | 89 | default: |
| 90 | + if($v == 0){ | ||
| 91 | + $this->map[$k] = $v; | ||
| 92 | + } | ||
| 90 | if(!empty($v)){ | 93 | if(!empty($v)){ |
| 91 | $this->map[$k] = $v; | 94 | $this->map[$k] = $v; |
| 92 | } | 95 | } |
| @@ -20,7 +20,6 @@ class BlogCategoryController extends BaseController | @@ -20,7 +20,6 @@ class BlogCategoryController extends BaseController | ||
| 20 | public function lists(BlogCategoryModel $blogCategoryModel){ | 20 | public function lists(BlogCategoryModel $blogCategoryModel){ |
| 21 | //搜索条件 | 21 | //搜索条件 |
| 22 | $this->map['project_id'] = $this->user['project_id']; | 22 | $this->map['project_id'] = $this->user['project_id']; |
| 23 | - $this->map['pid'] = $this->param['pid']; | ||
| 24 | $lists = $blogCategoryModel->lists($this->map,$this->page,$this->row,$this->order, | 23 | $lists = $blogCategoryModel->lists($this->map,$this->page,$this->row,$this->order, |
| 25 | ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']); | 24 | ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']); |
| 26 | if(!empty($lists['list'])){ | 25 | if(!empty($lists['list'])){ |
| @@ -20,7 +20,6 @@ class NewsCategoryController extends BaseController | @@ -20,7 +20,6 @@ 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 | - $this->map['pid'] = $this->param['pid']; | ||
| 24 | $lists = $newsCategory->lists($this->map,$this->page,$this->row,$this->order, | 23 | $lists = $newsCategory->lists($this->map,$this->page,$this->row,$this->order, |
| 25 | ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']); | 24 | ['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']); |
| 26 | if(!empty($lists['list'])){ | 25 | if(!empty($lists['list'])){ |
-
请 注册 或 登录 后发表评论