diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 116d2120..51fff605 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -1011,6 +1011,13 @@ class UserController extends BaseAuthedController { ]); } + public function getBattleGoldModeTimes(){ + $this->_rspData(array( + "num" => myself()->_getDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0) + )); + + } + private function dampingElo($userInfo){ //每天elo衰减 diff --git a/webapp/services/RoomBattleDataService.php b/webapp/services/RoomBattleDataService.php index eb72afb8..edc1a253 100644 --- a/webapp/services/RoomBattleDataService.php +++ b/webapp/services/RoomBattleDataService.php @@ -165,7 +165,7 @@ class RoomBattleDataService extends BaseService { } //金币模式检验 if ($this->mapMode == mt\MapMode::GOLD_MODE && - (!Hero::verifyValid($heroDb) || $goldModeTimes >= 25 )){ + (!Hero::verifyValid($heroDb) || $goldModeTimes >= $mapModeMeta['rewards_max_time'] )){ error_log("金币模式:出战英雄没有打金时间或每日打金场次上限"); }else{ if (!empty($rewardMeta['goldLoot'])){