1
This commit is contained in:
parent
d6016abac1
commit
0d28c4b79b
@ -140,6 +140,7 @@ class BagController extends BaseAuthedController {
|
|||||||
} else if ($itemMeta['type'] == mt\Item::TREASURE_BOX) {
|
} else if ($itemMeta['type'] == mt\Item::TREASURE_BOX) {
|
||||||
$this->openTreasureBox($itemDb, $itemMeta, $itemNum);
|
$this->openTreasureBox($itemDb, $itemMeta, $itemNum);
|
||||||
} else if ($itemMeta['type'] == mt\Item::BATTLE_REWARD_BOX) {
|
} else if ($itemMeta['type'] == mt\Item::BATTLE_REWARD_BOX) {
|
||||||
|
myself()->_verifySwitch('bigEventBoxOpen');
|
||||||
$this->openBattleBox($itemDb, $itemMeta, $itemNum);
|
$this->openBattleBox($itemDb, $itemMeta, $itemNum);
|
||||||
} else {
|
} else {
|
||||||
$this->_rspErr(4, 'The prop function has not been realized yet');
|
$this->_rspErr(4, 'The prop function has not been realized yet');
|
||||||
|
@ -115,6 +115,7 @@ class ChipController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function upgradeQualityS(){
|
public function upgradeQualityS(){
|
||||||
|
myself()->_verifySwitch('chipUp');
|
||||||
$chipUniId = getReqVal('chip_uniid', 0);
|
$chipUniId = getReqVal('chip_uniid', 0);
|
||||||
$consumeUniIds = getReqVal('consume_uniids',0);
|
$consumeUniIds = getReqVal('consume_uniids',0);
|
||||||
$chipDb = Chip::find($chipUniId);
|
$chipDb = Chip::find($chipUniId);
|
||||||
@ -214,6 +215,7 @@ class ChipController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function synChipS(){
|
public function synChipS(){
|
||||||
|
myself()->_verifySwitch('chipPieceSyn');
|
||||||
$itemId = getReqVal('item_id',0);
|
$itemId = getReqVal('item_id',0);
|
||||||
$itemNum = getReqVal('item_num',0);
|
$itemNum = getReqVal('item_num',0);
|
||||||
$needItem = \mt\Parameter::getVal('chip_craft_need_item',0);
|
$needItem = \mt\Parameter::getVal('chip_craft_need_item',0);
|
||||||
|
@ -36,6 +36,7 @@ class ChipPageController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function unlockSlot(){
|
public function unlockSlot(){
|
||||||
|
myself()->_verifySwitch('openChipSlot');
|
||||||
$heroUid = getReqVal('hero_unnid',0);
|
$heroUid = getReqVal('hero_unnid',0);
|
||||||
$slotId = getReqVal('slot_id',0);
|
$slotId = getReqVal('slot_id',0);
|
||||||
if ($slotId < 1 || $slotId > ChipPage::MAX_CHIP_SLOT_NUM){
|
if ($slotId < 1 || $slotId > ChipPage::MAX_CHIP_SLOT_NUM){
|
||||||
|
@ -17,6 +17,7 @@ class HashRateController extends BaseAuthedController
|
|||||||
parent::_handlePre();
|
parent::_handlePre();
|
||||||
$this->hashRateService = new services\HashRateService();
|
$this->hashRateService = new services\HashRateService();
|
||||||
$this->hashRateService->init();
|
$this->hashRateService->init();
|
||||||
|
myself()->_verifySwitch('hashrate');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function taskList(){
|
public function taskList(){
|
||||||
|
@ -74,6 +74,7 @@ class HeroController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function synHeroS(){
|
public function synHeroS(){
|
||||||
|
myself()->_verifySwitch('heroPieceSyn');
|
||||||
$itemId = getReqVal('item_id',0);
|
$itemId = getReqVal('item_id',0);
|
||||||
$itemNum = getReqVal('item_num',0);
|
$itemNum = getReqVal('item_num',0);
|
||||||
$itemMeta = \mt\Item::get($itemId);
|
$itemMeta = \mt\Item::get($itemId);
|
||||||
@ -137,6 +138,7 @@ class HeroController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function upgradeQualityS(){
|
public function upgradeQualityS(){
|
||||||
|
myself()->_verifySwitch('heroUp');
|
||||||
$heroUniId = getReqVal('hero_uniid', 0);
|
$heroUniId = getReqVal('hero_uniid', 0);
|
||||||
$itemId = getReqVal('item_id',0);
|
$itemId = getReqVal('item_id',0);
|
||||||
$itemNum = max(0,getReqVal('item_num',0));
|
$itemNum = max(0,getReqVal('item_num',0));
|
||||||
|
@ -188,6 +188,7 @@ class HeroSkinController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function synSkinS(){
|
public function synSkinS(){
|
||||||
|
myself()->_verifySwitch('skinSyn');
|
||||||
$itemId = getReqVal('item_id',0);
|
$itemId = getReqVal('item_id',0);
|
||||||
$itemNum = getReqVal('item_num',0);
|
$itemNum = getReqVal('item_num',0);
|
||||||
$itemMeta = \mt\Item::get($itemId);
|
$itemMeta = \mt\Item::get($itemId);
|
||||||
|
@ -43,6 +43,7 @@ class InGameMallController extends BaseAuthedController {
|
|||||||
{
|
{
|
||||||
parent::_handlePre();
|
parent::_handlePre();
|
||||||
$this->mailApiService = new \services\MailApiService();
|
$this->mailApiService = new \services\MailApiService();
|
||||||
|
myself()->_verifySwitch('ingameMall');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function productList()
|
public function productList()
|
||||||
|
@ -46,6 +46,7 @@ class ShopController extends BaseAuthedController {
|
|||||||
|
|
||||||
public function buyGoodsS()
|
public function buyGoodsS()
|
||||||
{
|
{
|
||||||
|
myself()->_verifySwitch('shop.buy');
|
||||||
$goodsId = getReqVal('goods_id', 0);
|
$goodsId = getReqVal('goods_id', 0);
|
||||||
$goodsNum = getReqVal('goods_num', 0);
|
$goodsNum = getReqVal('goods_num', 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user