Sfoglia il codice sorgente

filename() -> filesize()

visuddhinanda 2 anni fa
parent
commit
25a6337d78
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      app/Console/Commands/ExportOffline.php

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

@@ -39,7 +39,6 @@ class ExportOffline extends Command
      */
      */
     public function handle()
     public function handle()
     {
     {
-
         //建表
         //建表
         $this->info('create db');
         $this->info('create db');
         $this->call('export:create.db');
         $this->call('export:create.db');
@@ -79,7 +78,7 @@ class ExportOffline extends Command
         $info[] = ['filename'=>$exportFile,
         $info[] = ['filename'=>$exportFile,
                    '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'=>filename($zipFullFileName),
+                   'filesize'=>filesize($zipFullFileName),
                     ];
                     ];
         Storage::disk('local')->put("public/export/offline/index.json", json_encode($info));
         Storage::disk('local')->put("public/export/offline/index.json", json_encode($info));
         return 0;
         return 0;