正在显示
1 个修改的文件
包含
0 行增加
和
1 行删除
| @@ -60,7 +60,6 @@ class NewsController extends BaseController | @@ -60,7 +60,6 @@ class NewsController extends BaseController | ||
| 60 | $str = []; | 60 | $str = []; |
| 61 | $str[] = $this->map['category_id']; | 61 | $str[] = $this->map['category_id']; |
| 62 | $this->getAllSub($this->map['category_id'],$str); | 62 | $this->getAllSub($this->map['category_id'],$str); |
| 63 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($str, true) . PHP_EOL, FILE_APPEND); | ||
| 64 | $query->where(function ($subQuery) use ($str) { | 63 | $query->where(function ($subQuery) use ($str) { |
| 65 | foreach ($str as $v) { | 64 | foreach ($str as $v) { |
| 66 | $subQuery->orWhereRaw("FIND_IN_SET(?, category_id) > 0", [$v]); | 65 | $subQuery->orWhereRaw("FIND_IN_SET(?, category_id) > 0", [$v]); |
-
请 注册 或 登录 后发表评论