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';