1
This commit is contained in:
parent
8ae824c01a
commit
5326f53445
@ -117,7 +117,7 @@ class Rankings {
|
||||
recordsSort(sorted, records) {
|
||||
// 根据分数加入到排序表中
|
||||
for (let element of records) {
|
||||
if (element.score>BASE_SCORE) {
|
||||
if (element.score>=BASE_SCORE) {
|
||||
if (sorted.length >= 10000){
|
||||
if (element.score >= sorted[sorted.length - 1].score){
|
||||
this._recordsSort(sorted,element);
|
||||
|
@ -138,7 +138,7 @@ class Season {
|
||||
|
||||
// console.time("inserNewRecords");
|
||||
for (let element of records) {
|
||||
if (element.score>2800) {
|
||||
if (element.score>=2800) {
|
||||
sorted.push(element);
|
||||
sorted.sort(function(a,b) {
|
||||
let r = b.score - a.score;
|
||||
|
Loading…
x
Reference in New Issue
Block a user