正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -54,7 +54,7 @@ class ProductController extends BaseController | @@ -54,7 +54,7 @@ class ProductController extends BaseController | ||
| 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)){ | 55 | if(!empty($lists)){ |
| 56 | $lists = $lists->toArray(); | 56 | $lists = $lists->toArray(); |
| 57 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists, true) . PHP_EOL, FILE_APPEND); | 57 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($lists['list'], true) . PHP_EOL, FILE_APPEND); |
| 58 | $cate_data = $this->getCategoryList();//分类 | 58 | $cate_data = $this->getCategoryList();//分类 |
| 59 | $key_data = $this->keywordNameLists($lists['list']);//关键字 | 59 | $key_data = $this->keywordNameLists($lists['list']);//关键字 |
| 60 | $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id | 60 | $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id |
-
请 注册 或 登录 后发表评论