正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -259,7 +259,8 @@ class VideoTask extends Command | @@ -259,7 +259,8 @@ class VideoTask extends Command | ||
| 259 | $products = $productsQuery; | 259 | $products = $productsQuery; |
| 260 | } | 260 | } |
| 261 | }else{ | 261 | }else{ |
| 262 | - $products = Product::where('thumb','!=',null)->where("status",Product::STATUS_ON)->inRandomOrder()->take(20)->pluck('id')->toArray(); | 262 | + $product_all_id = Product::where('thumb','!=',null)->where("status",Product::STATUS_ON)->inRandomOrder()->take(20)->pluck('id')->toArray(); |
| 263 | + $products = Product::whereIn("id", $product_all_id)->get(); | ||
| 263 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($products, true) . PHP_EOL, FILE_APPEND); | 264 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export($products, true) . PHP_EOL, FILE_APPEND); |
| 264 | } | 265 | } |
| 265 | $data = []; | 266 | $data = []; |
-
请 注册 或 登录 后发表评论