作者 lyh

gx

@@ -54,7 +54,6 @@ class ProductController extends BaseController @@ -54,7 +54,6 @@ 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['list'], true) . PHP_EOL, FILE_APPEND);  
58 $cate_data = $this->getCategoryList();//分类 57 $cate_data = $this->getCategoryList();//分类
59 $key_data = $this->keywordNameLists($lists['list']);//关键字 58 $key_data = $this->keywordNameLists($lists['list']);//关键字
60 $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id 59 $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL);//获取模版id