diff --git a/webapp/services/callback/OutAppPurchase.php b/webapp/services/callback/OutAppPurchase.php index f941c1b8..cf737598 100644 --- a/webapp/services/callback/OutAppPurchase.php +++ b/webapp/services/callback/OutAppPurchase.php @@ -71,6 +71,10 @@ class OutAppPurchase { $this->beginFirstTupop($address); // 以下是看商品表中是否配置了充值额外奖励 $goodsMeta = mt\ShopGoods::get($orderDb['goods_id']); + if (!$goodsMeta) { + myself()->_rspErr(0, 'goods_id is failed'); + return; + } $goodsNum = $orderDb['goods_num']; $bundleSize = $goodsMeta['bonus_num'] ? $goodsMeta['bonus_num'] : 0; $itemNum = $goodsNum * $bundleSize;