diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 1f8063eb..3b801b93 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -140,6 +140,7 @@ class BagController extends BaseAuthedController { } else if ($itemMeta['type'] == mt\Item::TREASURE_BOX) { $this->openTreasureBox($itemDb, $itemMeta, $itemNum); } else if ($itemMeta['type'] == mt\Item::BATTLE_REWARD_BOX) { + myself()->_verifySwitch('bigEventBoxOpen'); $this->openBattleBox($itemDb, $itemMeta, $itemNum); } else { $this->_rspErr(4, 'The prop function has not been realized yet'); diff --git a/webapp/controller/ChipController.class.php b/webapp/controller/ChipController.class.php index 9a14ac44..0c7de310 100644 --- a/webapp/controller/ChipController.class.php +++ b/webapp/controller/ChipController.class.php @@ -115,6 +115,7 @@ class ChipController extends BaseAuthedController } public function upgradeQualityS(){ + myself()->_verifySwitch('chipUp'); $chipUniId = getReqVal('chip_uniid', 0); $consumeUniIds = getReqVal('consume_uniids',0); $chipDb = Chip::find($chipUniId); @@ -214,6 +215,7 @@ class ChipController extends BaseAuthedController } public function synChipS(){ + myself()->_verifySwitch('chipPieceSyn'); $itemId = getReqVal('item_id',0); $itemNum = getReqVal('item_num',0); $needItem = \mt\Parameter::getVal('chip_craft_need_item',0); diff --git a/webapp/controller/ChipPageController.class.php b/webapp/controller/ChipPageController.class.php index 6eaf9f6d..6b55886f 100644 --- a/webapp/controller/ChipPageController.class.php +++ b/webapp/controller/ChipPageController.class.php @@ -36,6 +36,7 @@ class ChipPageController extends BaseAuthedController } public function unlockSlot(){ + myself()->_verifySwitch('openChipSlot'); $heroUid = getReqVal('hero_unnid',0); $slotId = getReqVal('slot_id',0); if ($slotId < 1 || $slotId > ChipPage::MAX_CHIP_SLOT_NUM){ diff --git a/webapp/controller/HashRateController.class.php b/webapp/controller/HashRateController.class.php index addafed5..93b34f97 100644 --- a/webapp/controller/HashRateController.class.php +++ b/webapp/controller/HashRateController.class.php @@ -17,6 +17,7 @@ class HashRateController extends BaseAuthedController parent::_handlePre(); $this->hashRateService = new services\HashRateService(); $this->hashRateService->init(); + myself()->_verifySwitch('hashrate'); } public function taskList(){ diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index d87cfd4f..daeee408 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -74,6 +74,7 @@ class HeroController extends BaseAuthedController { } public function synHeroS(){ + myself()->_verifySwitch('heroPieceSyn'); $itemId = getReqVal('item_id',0); $itemNum = getReqVal('item_num',0); $itemMeta = \mt\Item::get($itemId); @@ -137,6 +138,7 @@ class HeroController extends BaseAuthedController { } public function upgradeQualityS(){ + myself()->_verifySwitch('heroUp'); $heroUniId = getReqVal('hero_uniid', 0); $itemId = getReqVal('item_id',0); $itemNum = max(0,getReqVal('item_num',0)); diff --git a/webapp/controller/HeroSkinController.class.php b/webapp/controller/HeroSkinController.class.php index c5a451ae..f887fe93 100644 --- a/webapp/controller/HeroSkinController.class.php +++ b/webapp/controller/HeroSkinController.class.php @@ -188,6 +188,7 @@ class HeroSkinController extends BaseAuthedController { } public function synSkinS(){ + myself()->_verifySwitch('skinSyn'); $itemId = getReqVal('item_id',0); $itemNum = getReqVal('item_num',0); $itemMeta = \mt\Item::get($itemId); diff --git a/webapp/controller/InGameMallController.class.php b/webapp/controller/InGameMallController.class.php index abcd099a..ab138804 100644 --- a/webapp/controller/InGameMallController.class.php +++ b/webapp/controller/InGameMallController.class.php @@ -43,6 +43,7 @@ class InGameMallController extends BaseAuthedController { { parent::_handlePre(); $this->mailApiService = new \services\MailApiService(); + myself()->_verifySwitch('ingameMall'); } public function productList() diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 25064759..1f054cfd 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -46,6 +46,7 @@ class ShopController extends BaseAuthedController { public function buyGoodsS() { + myself()->_verifySwitch('shop.buy'); $goodsId = getReqVal('goods_id', 0); $goodsNum = getReqVal('goods_num', 0);