...
This commit is contained in:
parent
b8ccf35460
commit
179636f7e8
@ -8,7 +8,7 @@ function add(name) {
|
||||
function init() {
|
||||
add('fragment');
|
||||
add('damping');
|
||||
//add('season');
|
||||
add('season');
|
||||
add('feeback');
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user