|
@@ -131,10 +131,10 @@ class Article extends Controller
|
|
|
if ($this->request->isGet()) {
|
|
|
if (!empty($data)){
|
|
|
$catelist = Db::name('cate')->where('type',$data['type'])->where('is_del',1)->where('status',1)->select();
|
|
|
- dump($catelist);
|
|
|
}else{
|
|
|
$catelist = Db::name('cate')->where('type',1)->where('is_del',1)->where('status',1)->select();
|
|
|
- dump($catelist);
|
|
|
+ $ids = $catelist[0]['id'];
|
|
|
+ $this->ids = $ids;
|
|
|
}
|
|
|
$this->catelist = $catelist;
|
|
|
}else{
|