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'], )); }