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) {
|
||||
$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');
|
||||
|
@ -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);
|
||||
|
@ -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){
|
||||
|
@ -17,6 +17,7 @@ class HashRateController extends BaseAuthedController
|
||||
parent::_handlePre();
|
||||
$this->hashRateService = new services\HashRateService();
|
||||
$this->hashRateService->init();
|
||||
myself()->_verifySwitch('hashrate');
|
||||
}
|
||||
|
||||
public function taskList(){
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
|
@ -43,6 +43,7 @@ class InGameMallController extends BaseAuthedController {
|
||||
{
|
||||
parent::_handlePre();
|
||||
$this->mailApiService = new \services\MailApiService();
|
||||
myself()->_verifySwitch('ingameMall');
|
||||
}
|
||||
|
||||
public function productList()
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user