shish 4 лет назад
Родитель
Сommit
1a025d554f
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      console/controllers/MtController.php

+ 1 - 7
console/controllers/MtController.php

@@ -72,13 +72,7 @@ class MtController extends Controller
             }
             $current = GoodsClass::getByCondition(['mainId' => $mainId, 'spu' => $mtGoodsSpu], true);
             if (!empty($current)) {
-                $shopImg = [];
-                foreach ($imgArr as $imgUrl) {
-                    $shortUrl = httpUtil::downloadRemoteImg($sjId, $shopId, $imgUrl);
-                    $shopImg[] = $shortUrl;
-                }
-                $current->shopImg = json_encode($shopImg);
-                $current->save();
+
             } else {
                 $shopImg = [];
                 foreach ($imgArr as $imgUrl) {