作者 lyh

jiaoben

@@ -260,6 +260,7 @@ class VideoTask extends Command @@ -260,6 +260,7 @@ class VideoTask extends Command
260 } 260 }
261 }else{ 261 }else{
262 $products = Product::where('thumb','!=',null)->where("status",Product::STATUS_ON)->inRandomOrder()->take(20)->pluck('id')->toArray(); 262 $products = Product::where('thumb','!=',null)->where("status",Product::STATUS_ON)->inRandomOrder()->take(20)->pluck('id')->toArray();
  263 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($products, true) . PHP_EOL, FILE_APPEND);
263 } 264 }
264 $data = []; 265 $data = [];
265 if (!empty($products)){ 266 if (!empty($products)){