This commit is contained in:
hujiabin 2024-04-17 19:52:03 +08:00
parent 3fc830c086
commit f7601b1b00
2 changed files with 8 additions and 1 deletions

View File

@ -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){ private function dampingElo($userInfo){
//每天elo衰减 //每天elo衰减

View File

@ -165,7 +165,7 @@ class RoomBattleDataService extends BaseService {
} }
//金币模式检验 //金币模式检验
if ($this->mapMode == mt\MapMode::GOLD_MODE && if ($this->mapMode == mt\MapMode::GOLD_MODE &&
(!Hero::verifyValid($heroDb) || $goldModeTimes >= 25 )){ (!Hero::verifyValid($heroDb) || $goldModeTimes >= $mapModeMeta['rewards_max_time'] )){
error_log("金币模式:出战英雄没有打金时间或每日打金场次上限"); error_log("金币模式:出战英雄没有打金时间或每日打金场次上限");
}else{ }else{
if (!empty($rewardMeta['goldLoot'])){ if (!empty($rewardMeta['goldLoot'])){