shish 3 лет назад
Родитель
Сommit
01e9d4411c
1 измененных файлов с 1 добавлено и 14 удалено
  1. 1 14
      app-hd/controllers/MtController.php

+ 1 - 14
app-hd/controllers/MtController.php

@@ -198,20 +198,6 @@ class MtController extends PublicController
     //修改商品 ssh 20220914
     //修改商品 ssh 20220914
     public function actionGoodsUpdate()
     public function actionGoodsUpdate()
     {
     {
-        $imgArr = ['http://p0.meituan.net/wmproduct/3cf2a60ec3ae74541bf3540cab7610f190083.jpg'];
-        if (!empty($imgArr)) {
-            $sjId = 1;
-            $shopId = 2;
-            foreach ($imgArr as $imgUrl) {
-                $shortUrl = httpUtil::downloadRemoteImg($sjId, $shopId, $imgUrl);
-                $shopImg[] = $shortUrl;
-
-                echo $shortUrl;
-
-            }
-        }
-        die;
-
         $post = Yii::$app->request->post();
         $post = Yii::$app->request->post();
 
 
         $post['retail_data'] = '%5B%257B%2522app_food_code%2522%253A%2522A004%2522%252C%2522app_id%2522%253A119094%252C%2522app_poi_code%2522%253A%252236524%2522%252C%2522app_spu_code%2522%253A%2522A004%2522%252C%2522categoryName%2522%253A%2522%25E6%25B5%258B%25E8%25AF%2595%25E5%2588%2586%25E7%25B1%25BB%2522%252C%2522ctime%2522%253A1661325122%252C%2522diffContents%2522%253A%257B%257D%252C%2522name%2522%253A%2522A004%2522%252C%2522opAppKey%2522%253A%2522%25E5%2595%2586%25E5%25AE%25B6%25E7%25AB%25AF_%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%2522%252C%2522opName%2522%253A%2522%25E5%2595%2586%25E5%25AE%25B6%25E8%25B4%25A6%25E5%258F%25B7112823854%2522%252C%2522opReason%2522%253A%2522%2522%252C%2522timestamp%2522%253A1663751862%252C%2522utime%2522%253A1663751860%257D%5D';
         $post['retail_data'] = '%5B%257B%2522app_food_code%2522%253A%2522A004%2522%252C%2522app_id%2522%253A119094%252C%2522app_poi_code%2522%253A%252236524%2522%252C%2522app_spu_code%2522%253A%2522A004%2522%252C%2522categoryName%2522%253A%2522%25E6%25B5%258B%25E8%25AF%2595%25E5%2588%2586%25E7%25B1%25BB%2522%252C%2522ctime%2522%253A1661325122%252C%2522diffContents%2522%253A%257B%257D%252C%2522name%2522%253A%2522A004%2522%252C%2522opAppKey%2522%253A%2522%25E5%2595%2586%25E5%25AE%25B6%25E7%25AB%25AF_%25E7%25A7%25BB%25E5%258A%25A8%25E7%25AB%25AF%2522%252C%2522opName%2522%253A%2522%25E5%2595%2586%25E5%25AE%25B6%25E8%25B4%25A6%25E5%258F%25B7112823854%2522%252C%2522opReason%2522%253A%2522%2522%252C%2522timestamp%2522%253A1663751862%252C%2522utime%2522%253A1663751860%257D%5D';
@@ -292,6 +278,7 @@ class MtController extends PublicController
             if (!empty($imgArr)) {
             if (!empty($imgArr)) {
                 foreach ($imgArr as $imgUrl) {
                 foreach ($imgArr as $imgUrl) {
                     $shortUrl = httpUtil::downloadRemoteImg($sjId, $shopId, $imgUrl);
                     $shortUrl = httpUtil::downloadRemoteImg($sjId, $shopId, $imgUrl);
+                    noticeUtil::push("美团修改商品,通知我们,商品图片short:" . $shortUrl, '15280215347');
                     $shopImg[] = $shortUrl;
                     $shopImg[] = $shortUrl;
                     if ($cover == '') {
                     if ($cover == '') {
                         $cover = $shortUrl;
                         $cover = $shortUrl;