正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -52,8 +52,7 @@ class ProductController extends BaseController | @@ -52,8 +52,7 @@ class ProductController extends BaseController | ||
| 52 | $query = $product->orderBy($this->order ,'desc')->orderBy('id','desc'); | 52 | $query = $product->orderBy($this->order ,'desc')->orderBy('id','desc'); |
| 53 | $query = $this->searchParam($query); | 53 | $query = $this->searchParam($query); |
| 54 | $lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page); | 54 | $lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page); |
| 55 | - if(!empty($lists) && !empty($lists['list'])){ | ||
| 56 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(111111111111111, true) . PHP_EOL, FILE_APPEND); | 55 | + if(!empty($lists)){ |
| 57 | $lists = $lists->toArray(); | 56 | $lists = $lists->toArray(); |
| 58 | $cate_data = $this->getCategoryList();//分类 | 57 | $cate_data = $this->getCategoryList();//分类 |
| 59 | $key_data = $this->keywordNameLists($lists['list']);//关键字 | 58 | $key_data = $this->keywordNameLists($lists['list']);//关键字 |
-
请 注册 或 登录 后发表评论