正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -46,7 +46,7 @@ class ProductController extends BaseController | @@ -46,7 +46,7 @@ class ProductController extends BaseController | ||
| 46 | $query = $product->orderBy($this->order ,'desc'); | 46 | $query = $product->orderBy($this->order ,'desc'); |
| 47 | $query = $this->searchParam($query); | 47 | $query = $this->searchParam($query); |
| 48 | $lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page); | 48 | $lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page); |
| 49 | - if(!empty($lists) && !empty($lists['list'])){ | 49 | + if(!empty($lists)){ |
| 50 | $lists = $lists->toArray(); | 50 | $lists = $lists->toArray(); |
| 51 | $cate_data = $this->getCategoryList();//分类 | 51 | $cate_data = $this->getCategoryList();//分类 |
| 52 | $key_data = $this->getKeywordsList();//关键字 | 52 | $key_data = $this->getKeywordsList();//关键字 |
-
请 注册 或 登录 后发表评论