1
This commit is contained in:
parent
1da05e7d6d
commit
46b7b7b85a
@ -223,7 +223,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
app = make_app()
|
app = make_app()
|
||||||
app.listen(conf['listen_port'])
|
app.listen(conf['listen_port'])
|
||||||
conf['rushtime'] = 300
|
conf['rushtime'] = 5
|
||||||
tornado.ioloop.IOLoop.current().call_later(conf['rushtime'],
|
tornado.ioloop.IOLoop.current().call_later(conf['rushtime'],
|
||||||
lambda : readMysqlData(conf['rushtime'])
|
lambda : readMysqlData(conf['rushtime'])
|
||||||
)
|
)
|
||||||
|
@ -76,7 +76,6 @@ class RankController{
|
|||||||
if ($row['integral'] >= $seaPoint['min'] && $row['integral'] <= $seaPoint['max']
|
if ($row['integral'] >= $seaPoint['min'] && $row['integral'] <= $seaPoint['max']
|
||||||
|| $seaPoint['max'] == -1) {
|
|| $seaPoint['max'] == -1) {
|
||||||
$rank = $ii;
|
$rank = $ii;
|
||||||
$score = $row['integral'] - $seaPoint['min'];
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -89,7 +88,7 @@ class RankController{
|
|||||||
'harm' => phpcommon\safediv($row['harm'], $row['game_times']),
|
'harm' => phpcommon\safediv($row['harm'], $row['game_times']),
|
||||||
'win_rate' => phpcommon\safediv($row['win_times'], $row['game_times']),
|
'win_rate' => phpcommon\safediv($row['win_times'], $row['game_times']),
|
||||||
'win_game' => $row['win_times'],
|
'win_game' => $row['win_times'],
|
||||||
'score' => $score,
|
'score' => $row['integral'],
|
||||||
'level' => $rank,
|
'level' => $rank,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -161,7 +160,6 @@ class RankController{
|
|||||||
|| $integral_db[$i][8] >= $seaPoint['min'] && $seaPoint['max'] == -1)
|
|| $integral_db[$i][8] >= $seaPoint['min'] && $seaPoint['max'] == -1)
|
||||||
{
|
{
|
||||||
$rank = $ii;
|
$rank = $ii;
|
||||||
$score = $integral_db[$i][8] - $seaPoint['min'];
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -177,7 +175,7 @@ class RankController{
|
|||||||
'harm' => $integral_db[$i][5],
|
'harm' => $integral_db[$i][5],
|
||||||
'win_rate' => $integral_db[$i][6],
|
'win_rate' => $integral_db[$i][6],
|
||||||
'win_game' => $integral_db[$i][7],
|
'win_game' => $integral_db[$i][7],
|
||||||
'score' => $score,
|
'score' => $integral_db[$i][8],
|
||||||
'level' => $rank,
|
'level' => $rank,
|
||||||
));
|
));
|
||||||
$i++;
|
$i++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user