wzq 5 년 전
부모
커밋
bbfe1c17d5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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';