Kaynağa Gözat

批量缩略主图功能

gorden 4 ay önce
ebeveyn
işleme
1fefd37edd
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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']))){