diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index d04030d..c39646a 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -304,6 +304,13 @@ class ShopController{ $shop_type = $_REQUEST['shop_type']; $shop_list = array(); $flush_times = 0; + if ($_REQUEST['type'] == 3) { + $p = $this->getParameter(RAND_SHOP_GOLD); + if ($shop_type == 2) { + $p = $this->getParameter(RAND_DIAMONDSHOP_GOLD); + } + $this->SubCoin($p['param_value'], $account_id, $_REQUEST['type']); + } $conn = $this->getMysql($account_id); if (!$conn) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个玩家');