Commit 64f4f005 authored by luhongguang's avatar luhongguang

update:商品回调修改

parent ce130ef8
...@@ -1514,7 +1514,14 @@ class GoodsService ...@@ -1514,7 +1514,14 @@ class GoodsService
"marketing_id" => $marketingId] "marketing_id" => $marketingId]
); );
if (empty($record)) { if (empty($record)) {
$goodsSku = GoodsSku::getRecord(["goods_sku_id" => $goodsSkuId]); 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)) { if (empty($goodsSku)) {
throw new GoodsException(["cus" => 15]); 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