作者 lyh

gx

@@ -115,7 +115,7 @@ class ProductController extends BaseController @@ -115,7 +115,7 @@ class ProductController extends BaseController
115 $str = $this->getAllSub($this->map['category_id'],$str); 115 $str = $this->getAllSub($this->map['category_id'],$str);
116 $productArr = CategoryRelated::whereIn('cate_id',$str)->pluck('product_id')->toArray(); 116 $productArr = CategoryRelated::whereIn('cate_id',$str)->pluck('product_id')->toArray();
117 if($this->user['project_id'] == '475'){ 117 if($this->user['project_id'] == '475'){
118 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($productArr, true) . PHP_EOL, FILE_APPEND); 118 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND);
119 } 119 }
120 $query->whereIn('id',$productArr); 120 $query->whereIn('id',$productArr);
121 } 121 }