瀏覽代碼

去掉已经有的

shish 4 年之前
父節點
當前提交
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);
             $current = GoodsClass::getByCondition(['mainId' => $mainId, 'spu' => $mtGoodsSpu], true);
             if (!empty($current)) {
             if (!empty($current)) {
-                $shopImg = [];
-                foreach ($imgArr as $imgUrl) {
-                    $shortUrl = httpUtil::downloadRemoteImg($sjId, $shopId, $imgUrl);
-                    $shopImg[] = $shortUrl;
-                }
-                $current->shopImg = json_encode($shopImg);
-                $current->save();
+
             } else {
             } else {
                 $shopImg = [];
                 $shopImg = [];
                 foreach ($imgArr as $imgUrl) {
                 foreach ($imgArr as $imgUrl) {