正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论