wzq 5 anni fa
parent
commit
bbfe1c17d5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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';