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