...
|
...
|
@@ -446,13 +446,17 @@ class UnionTrans |
|
|
continue;
|
|
|
}
|
|
|
foreach ($value['goods_list'] as $goods) {
|
|
|
if ($goods['color_name'] === $color && strpos($image, $goods['images_url']) !== false) {
|
|
|
// 通过颜色找商品ID
|
|
|
if ($goods['color_name'] === $color) {
|
|
|
$goodsId = $goods['goods_id'];
|
|
|
// 判断缩略图是否一致 (没办法!没有提供专用的接口返回,没有SKC)
|
|
|
if (strpos($image, $goods['images_url']) !== false) {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
$productData = array();
|
|
|
|
|
|
return $goodsId;
|
...
|
...
|
|