Authored by hf

code review by hf: do modify union duomai goods id param

... ... @@ -446,9 +446,13 @@ 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'];
break;
// 判断缩略图是否一致 (没办法!没有提供专用的接口返回,没有SKC)
if (strpos($image, $goods['images_url']) !== false) {
break;
}
}
}
}
... ...