Commit 64f4f005 authored by luhongguang's avatar luhongguang

update:商品回调修改

parent ce130ef8
......@@ -1514,7 +1514,14 @@ class GoodsService
"marketing_id" => $marketingId]
);
if (empty($record)) {
if (!empty($marketingId)) {
$marketing = Marketing::getRecord(["marketing_id" => $marketingId]);
if (!empty($marketing) && $marketing["marketing_type"] == Marketing::MARKETING_TYPE_PINDAN) {
$goodsSku = PindanGoodsSku::getRecord(["goods_sku_id" => $goodsSkuId]);
}
} else {
$goodsSku = GoodsSku::getRecord(["goods_sku_id" => $goodsSkuId]);
}
if (empty($goodsSku)) {
throw new GoodsException(["cus" => 15]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment