From 8fc140ce5a0ceea9ba5b52f3d8fa70e1acff5947 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 31 Jul 2023 17:05:33 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index f066c5cd..54944472 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -62,7 +62,7 @@ class ShopController extends BaseAuthedController { public function buyGoods() { - $goodsUuid = getReqVal('goods_id', 0); + $goodsId = getReqVal('goods_id', 0); $goodsNum = getReqVal('goods_num', 0); if ($goodsNum < 1) { @@ -70,7 +70,7 @@ class ShopController extends BaseAuthedController { return; } - $goodsMeta = mt\ShopGoods::getByGoodsUuid($goodsUuid); + $goodsMeta = mt\ShopGoods::getByGoodsUuid($goodsId); if (!$goodsMeta) { myself()->_rspErr(1, 'goods not found'); return; @@ -219,15 +219,15 @@ class ShopController extends BaseAuthedController { public function inappPurchase() { - $goodsUuid = getReqVal('goods_id', 0); + $goodsId = getReqVal('goods_id', 0); $goodsNum = getReqVal('goods_num', 0); - $goods = mt\ShopGoods::getByGoodsUuid($goodsUuid); + $goods = mt\ShopGoods::getByGoodsUuid($goodsId); if (!$goods) { - $this->_rspErr(2, "start purchase failed"); + $this->_rspErr(2, "inapp purchase failed"); return; } if ($goods['shop_id'] != mt\Shop::INAPP_SHOP) { - $this->_rspErr(3, "start purchase failed"); + $this->_rspErr(3, "inapp purchase failed"); return; }