Browse Source

去掉已经有的

shish 4 năm trước cách đây
mục cha
commit
1a025d554f
1 tập tin đã thay đổi với 1 bổ sung7 xóa
  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) {