This commit is contained in:
hujiabin 2023-08-09 14:52:26 +08:00
parent 8ae824c01a
commit 5326f53445
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;