Browse Source

批量缩略主图功能

gorden 4 months ago
parent
commit
1fefd37edd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/command/GoodsThumbCommand.php

+ 1 - 1
app/command/GoodsThumbCommand.php

@@ -34,7 +34,7 @@ class GoodsThumbCommand extends Command
      */
     protected function execute(InputInterface $input, OutputInterface $output): int
     {
-        $goods = Goods::select('goods_id','goods_cover')->limit(10)->get()->toArray();
+        $goods = Goods::select('goods_id','goods_cover')->get()->toArray();
 
         foreach ($goods as $good){
             if (!file_exists(public_path($good['goods_cover']))){