From 4b6b23f7bb1ac05027500d9bcfe60015b3b889e6 Mon Sep 17 00:00:00 2001 From: azw Date: Sat, 29 Jul 2023 07:43:02 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 5eeca49f..bd3b5eda 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -51,11 +51,11 @@ class ShopController extends BaseAuthedController public function getGoodsList() { - $shop_id = getReqVal('shop_id', 0); - if ($shop_id == 0) { + $shopId = getReqVal('shop_id', 0); + if ($shopId == 0) { $goodsMetaList = mt\ShopGoods::all(); } else { - $goodsMetaList = mt\ShopGoods::getGoodsList($shop_id); + $goodsMetaList = mt\ShopGoods::getGoodsList($shopId); } $goodsMetaList = $goodsMetaList ? $goodsMetaList : array(); @@ -565,7 +565,7 @@ class ShopController extends BaseAuthedController $id = getReqVal('id', 0); $goods = mt\ShopGoods::get($id); $goods_id = $goods['goods_id']; - $shop_id = $goods['shop_id']; + $shopId = $goods['shop_id']; $meta = mt\Item::get($goods_id); if ($meta['type'] != mt\Item::CHEST_BOX_TYPE) {