From a2eca102882511b3ca4728e22c38b49d1f1da43d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 23 Jul 2019 19:21:29 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 82021f6..32e0d46 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -239,6 +239,10 @@ class ShopController{ phpcommon\sendError(ERR_USER_BASE + 3, '今日刷新次数已满'); return; } + if ($_REQUEST['type'] == 3) { + $p = $this->getParameter(RAND_SHOP_GOLD); + $this->SubCoin($p['param_value'], $account_id); + } $ret = $conn->execScript('UPDATE user SET shop_flush_times=:shop_flush_times, modify_time=:modify_time ' . ' WHERE accountid=:accountid;', array(