瀏覽代碼

删除.stop

visuddhinanda 2 年之前
父節點
當前提交
ea780bdf8b
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      app/Console/Commands/ExportOffline.php

+ 2 - 5
app/Console/Commands/ExportOffline.php

@@ -103,13 +103,10 @@ class ExportOffline extends Command
             'format'=>$this->argument('format'),
         ]);
 
-        //删除全部的旧文件
-        $fullPath = storage_path($exportPath);
+        //删除全部的临时文件
         foreach (scandir($exportDir) as $key => $file) {
             if(is_file($exportDir.'/'.$file)){
-                if($file !== '.stop'){
-                    unlink($exportDir.'/'.$file);
-                }
+                unlink($exportDir.'/'.$file);
             }
         }
         return 0;