This commit is contained in:
aozhiwei 2022-12-06 10:22:24 +08:00
parent b8ccf35460
commit 179636f7e8
2 changed files with 5 additions and 4 deletions

View File

@ -8,7 +8,7 @@ function add(name) {
function init() {
add('fragment');
add('damping');
//add('season');
add('season');
add('feeback');
}

View File

@ -7,6 +7,7 @@ const constant = require('../constant');
class Season {
seasonList = [];
async start() {
console.log("season ranking start1");
while (true) {
await this.doRoutine(utils.getUtcTime());
const nowTime = utils.getUtcTime();
@ -18,7 +19,7 @@ class Season {
async doRoutine(nowTime) {
try {
console.log("season ranking start");
console.log("season ranking start2");
// console.time("season ranking");
this.seasonList = [];
metaFactory.traverseMetaList("RankSeason", (config, idx) => {
@ -30,7 +31,7 @@ class Season {
return true;
});
console.log("season ranking");
console.log("season ranking",this.seasonList);
if (this.checkSeasonEnd(nowTime)) {
await this.calcRanking(nowTime);
}
@ -180,4 +181,4 @@ function init() {
(new Season()).start();
}
exports.init = init;
exports.init = init;