Explorar el Código

在image目录下添加一个小文件

visuddhinanda hace 9 meses
padre
commit
4a62511ae5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      api-v8/app/Console/Commands/CreateMyHanCrop.php

+ 1 - 0
api-v8/app/Console/Commands/CreateMyHanCrop.php

@@ -105,6 +105,7 @@ class CreateMyHanCrop extends Command
             Storage::disk('local')->makeDirectory($dir);
             Storage::disk('local')->makeDirectory($dir);
             Storage::disk('local')->makeDirectory($dir . '/img');
             Storage::disk('local')->makeDirectory($dir . '/img');
             Storage::disk('local')->put($dir . "/index.html", $content);
             Storage::disk('local')->put($dir . "/index.html", $content);
+            Storage::disk('local')->put($dir . "/img/{$page}", $page);
             $this->info("page={$page} word=" . count($words));
             $this->info("page={$page} word=" . count($words));
         } else {
         } else {
             $this->error('page' . $page . 'no words');
             $this->error('page' . $page . 'no words');