From 50c6ad4c2c27eafd9288eb566c530296eacc6be0 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 25 Jan 2024 16:26:37 +0800 Subject: [PATCH] 1 --- webapp/controller/BoxController.class.php | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/webapp/controller/BoxController.class.php b/webapp/controller/BoxController.class.php index 0b5baa7d..fa4666a0 100644 --- a/webapp/controller/BoxController.class.php +++ b/webapp/controller/BoxController.class.php @@ -4,6 +4,7 @@ require_once('mt/Parameter.php'); require_once('mt/Item.php'); require_once('mt/Drop.php'); require_once('mt/Hero.php'); +require_once('mt/ServerTaskTime.php'); require_once('models/Bag.php'); require_once('models/Hero.php'); @@ -36,23 +37,17 @@ class BoxController extends BaseAuthedController { public function requestReward() { + /* $this->_rspData(array( "item_list" => array( - 'item_id' => V_ITEM_GOLD, - 1000 + array( + 'item_id' => V_ITEM_GOLD, + 'item_num' => 1000 + ) ) )); $payload = ''; - return; - /* - $userInfo = $this->_getOrmUserInfo(); - if (!$userInfo) { - $this->_rspErr(1, 'Without this player1'); - return; - } -// $ranked = getReqVal('pvp_personal_rank', 0); - $teamBattleDataService = new services\TameBattleDataService(); - $teamBattleDataService->calStarNum(); + return;*/ $mode = getReqVal('room_mode', 0); $item = array(); $currentMeta = \mt\ServerTaskTime::getCurrentTime(); @@ -88,8 +83,8 @@ class BoxController extends BaseAuthedController { Bag::addItem($item['item_id'],$item['item_num']); } $this->_rspData(array( - "items" => $item - ));*/ + "item_list" => $item + )); } }