浏览代码

add 'url'

visuddhinanda 2 年之前
父节点
当前提交
1b30798579
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Console/Commands/ExportOffline.php

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

@@ -92,7 +92,8 @@ class ExportOffline extends Command
         shell_exec($command);
         shell_exec($command);
 
 
         $info = array();
         $info = array();
-        $info[] = ['filename'=>$zipFullFileName,
+        $info[] = ['filename'=>$zipFile,
+                   'url'=>Storage::url($exportPath.'/'.$zipFile),
                    'create_at'=>date("Y-m-d H:i:s"),
                    'create_at'=>date("Y-m-d H:i:s"),
                    'chapter'=>Cache::get("/export/chapter/count"),
                    'chapter'=>Cache::get("/export/chapter/count"),
                    'filesize'=>filesize($zipFullFileName),
                    'filesize'=>filesize($zipFullFileName),