1
This commit is contained in:
parent
3fc830c086
commit
f7601b1b00
@ -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衰减
|
||||
|
@ -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'])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user