shish 4 år sedan
förälder
incheckning
94ffdc4674
1 ändrade filer med 10 tillägg och 2 borttagningar
  1. 10 2
      console/controllers/MtController.php

+ 10 - 2
console/controllers/MtController.php

@@ -151,8 +151,16 @@ class MtController extends Controller
             }
             $current = GoodsClass::getByCondition(['mainId' => $mainId, 'spu' => $mtGoodsSpu], true);
             if (!empty($current)) {
-                $current->price = $price;
-                $current->save();
+                $shopImg = $current->shopImg;
+                $picArr = json_decode($shopImg, true);
+                if (is_array($picArr)) {
+                    foreach ($picArr as $item) {
+                        if(strstr($item, 'ff7543e823b1f386daca17eeeeca4785.jpg') !== false){
+                            print_r($imgArr);
+                        }
+                    }
+                }
+
             }
         }
     }