|
|
@@ -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);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|