屏蔽词:修改屏蔽词加载时机

This commit is contained in:
luying
2021-11-19 17:22:32 +08:00
parent a0933d3c12
commit dd82df9551
2 changed files with 10 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ import moment = require('moment');
import { CounterModel } from '../db/Counter';
import { reportOneOnline } from './authenticateService';
import { PVP } from '../pubUtils/dicParam';
import { fetch37Words } from './sdkService';
const PER_SECOND = 1 * 1000;
const PER_DAY = 24 * 60 * 60;
@@ -55,6 +56,9 @@ export async function init() {
// 每5分钟汇报在线玩家在线情况
scheduleJob('reportOnline', '0 0/5 * * * *', reportOnlineSchedule);
// 每天拉取37词库
scheduleJob('fetchWord', '0 0 4 * * ?', fetch37Words);
// 军团活动排行榜
guildActivitySchedule();