|
@@ -115,7 +115,7 @@ class Channel extends Base{
|
|
|
|
|
|
public function channelCatList(){
|
|
|
$param =$this->request->only(["channel_id"=>"0","cat_id"=>'',"cat_name"=>"","page"=>1,"size"=>15],"post","trim");
|
|
|
- $where=[["is_del","=",0]];
|
|
|
+ $where=[["is_del","=",0],['pid',"=",0]];
|
|
|
if($param['cat_id']!=='') $where[]=["cat_id","=",$param['cat_id']];
|
|
|
if($param['cat_name']!=='') $where[]=["cat_name","=",$param['cat_name']];
|
|
|
$list =Db::name("cat")
|