作者 lyh

gx

... ... @@ -20,6 +20,9 @@ class NewsCategoryController extends BaseController
public function lists(NewsCategoryModel $newsCategory){
//搜索条件
$this->map['project_id'] = $this->user['project_id'];
if(!isset($this->map['pid']) && empty($this->map['pid'])){
$this->map['pid'] = 0;
}
$lists = $newsCategory->lists($this->map,$this->page,$this->row,$this->order,
['id','pid','name','num','alias','status','sort','remark','created_at','updated_at']);
if(!empty($lists['list'])){
... ...