1
This commit is contained in:
parent
cd675c7825
commit
c99a602d8b
@ -71,6 +71,10 @@ class OutAppPurchase {
|
|||||||
$this->beginFirstTupop($address);
|
$this->beginFirstTupop($address);
|
||||||
// 以下是看商品表中是否配置了充值额外奖励
|
// 以下是看商品表中是否配置了充值额外奖励
|
||||||
$goodsMeta = mt\ShopGoods::get($orderDb['goods_id']);
|
$goodsMeta = mt\ShopGoods::get($orderDb['goods_id']);
|
||||||
|
if (!$goodsMeta) {
|
||||||
|
myself()->_rspErr(0, 'goods_id is failed');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$goodsNum = $orderDb['goods_num'];
|
$goodsNum = $orderDb['goods_num'];
|
||||||
$bundleSize = $goodsMeta['bonus_num'] ? $goodsMeta['bonus_num'] : 0;
|
$bundleSize = $goodsMeta['bonus_num'] ? $goodsMeta['bonus_num'] : 0;
|
||||||
$itemNum = $goodsNum * $bundleSize;
|
$itemNum = $goodsNum * $bundleSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user