wzq 5 vuotta sitten
vanhempi
commit
bbfe1c17d5
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Console/Commands/Downloads.php

+ 1 - 0
app/Console/Commands/Downloads.php

@@ -57,6 +57,7 @@ class Downloads extends Command
         }
 
         $download = $this->download->where('download_status', 0)->orderBy('id', 'desc')->first();
+        if(!$download) exit;
 
         if($download->download_type == 'post'){
             $filePath = $fileDir .'内容-'.Carbon::now()->format('Y-m-d') .'_' .uniqid() .'.csv';