1
This commit is contained in:
parent
7bd90cf9cb
commit
ee5811c5ba
@ -136,13 +136,20 @@ class SeasonController extends BaseAuthedController {
|
||||
$winTimes = getXVal($seasonBattleData, 'total_win_times', 0);
|
||||
$topTenTimes = getXVal($seasonBattleData, 'total_top_ten_times', 0);
|
||||
$totalKills = getXVal($seasonBattleData, 'total_kills_times', 0);
|
||||
$temp = $gameTimes-$winTimes ? $gameTimes-$winTimes:0;
|
||||
if (! $temp){
|
||||
$kill_killed = 0;
|
||||
}else{
|
||||
$kill_killed = round($totalKills/$temp,2);
|
||||
}
|
||||
|
||||
$currRankSeasonHistory= array(
|
||||
'season_id' => $seasonDb['season_id'],
|
||||
// 'total_kills' => $totalKills,
|
||||
'game_times' => $gameTimes,
|
||||
'win_times' => $winTimes,
|
||||
'top_ten_times' => $topTenTimes,
|
||||
'kill_killed' => round($totalKills/($gameTimes-$winTimes),2),
|
||||
'kill_killed' => $kill_killed,
|
||||
);
|
||||
}
|
||||
if (!$currRankSeasonHistory){
|
||||
|
Loading…
x
Reference in New Issue
Block a user