From 40c07d2a1b1be862dc2930f050bcd1410963a16c Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Fri, 14 Jun 2024 11:31:47 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index c9cc4fd7..d3b5c7f9 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -1074,18 +1074,18 @@ class UserController extends BaseAuthedController { } public function getBattleGoldModeTimes(){ - $userInfo = $this->_getOrmUserInfo(); - $heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_id']); - if (!$heroDb){ - $this->_rspErr(1, 'battle hero does not exist'); - return; - } - $heroMeta = \mt\Item::get($heroDb['hero_id']); - $heroAtteMeta = mt\EconomyAttribute::findByGrade($heroMeta['relationship'],$heroDb['quality']); +// $userInfo = $this->_getOrmUserInfo(); +// $heroDb = Hero::findByAccountId(myself()->_getAccountId(), $userInfo['hero_id']); +// if (!$heroDb){ +// $this->_rspErr(1, 'battle hero does not exist'); +// return; +// } +// $heroMeta = \mt\Item::get($heroDb['hero_id']); +// $heroAtteMeta = mt\EconomyAttribute::findByGrade($heroMeta['relationship'],$heroDb['quality']); $this->_rspData(array( "current_times" => myself()->_getDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0), - "total_times" => $heroAtteMeta['roundPerDay'], +// "total_times" => $heroAtteMeta['roundPerDay'], )); }