@@ -5,7 +5,7 @@ import { nowSeconds, getTimeFun, getSeconds } from '../pubUtils/timeUtil';
|
||||
import { getTodayGuildActivity, gameData } from '../pubUtils/data';
|
||||
import { pvpSeasonEnd } from './pvpService';
|
||||
import { getAllOnlineRoles, getAllServers, delGuildActivityRank, getServerCreateTime } from './redisService';
|
||||
import { GUILD_ACTIVITY_TYPE, REFRESH_TIME, COUNTER, AUCTION_TIME, GM_MAIL_TYPE, SERVER_TIMER, ACTIVITY_TYPE, PUSH_ROUTE, STATUS, LADDER_STATUS, LADDER_SERVER_GAP_TIME, GVG_PERIOD, SDK_PUSH_MSG_TYPE } from '../consts';
|
||||
import { GUILD_ACTIVITY_TYPE, REFRESH_TIME, COUNTER, AUCTION_TIME, GM_MAIL_TYPE, SERVER_TIMER, ACTIVITY_TYPE, PUSH_ROUTE, STATUS, LADDER_STATUS, LADDER_SERVER_GAP_TIME, GVG_PERIOD } from '../consts';
|
||||
import { pinus } from 'pinus';
|
||||
import { settleGuildWeekly } from './guildService';
|
||||
import { SendMailFun, sendMailsByGmMail, } from './mailService';
|
||||
@@ -31,7 +31,7 @@ import { ActivityModel, ActivityModelType } from '../db/Activity';
|
||||
import { TimeLimitRankData } from '../domain/activityField/timeLimitRankField';
|
||||
import { sendRankMail, takeSnapshot } from './activity/timeLimitRankService';
|
||||
import { ActivityGroupModel } from '../db/ActivityGroup';
|
||||
import { pushClientMsg, sendMessageToServer } from './pushService';
|
||||
import { sendMessageToServer } from './pushService';
|
||||
import { getRandEelm, getRandSingleEelm, resResult } from '../pubUtils/util';
|
||||
import { checkPopUpConditionWhenGuildActivityEnd } from './activity/popUpShopService';
|
||||
import { pushRefreshTime } from './connectorService';
|
||||
@@ -113,9 +113,6 @@ export async function init() {
|
||||
|
||||
// gvg每周日
|
||||
initGVGConfigSchedule();
|
||||
|
||||
// 定时推送消息
|
||||
initPushMsgSchedule();
|
||||
}
|
||||
|
||||
// 每日刷新
|
||||
@@ -326,7 +323,6 @@ export async function guildActivityStart(dicGuildActivity?: DicGuildActivity) {
|
||||
for (let serverId of servers) {
|
||||
await sendGuildActivityStatus(serverId);
|
||||
}
|
||||
pushClientMsg(SDK_PUSH_MSG_TYPE.GUILD_ACTIVITY_START);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -967,9 +963,6 @@ export async function gvgBattleStartSchedule() {
|
||||
if(gvgBattleCatapultJob) gvgBattleCatapultJob.cancel();
|
||||
gvgBattleCatapultJob = scheduleJob('gvgBattleCatapult', `*/${GVG.GVG_CATAPULT_TIME} * * * * *`, gvgBattleCatapult);
|
||||
|
||||
setTimeout(() => {
|
||||
pushClientMsg(SDK_PUSH_MSG_TYPE.GVG_BATTLE_START);
|
||||
}, GVG.GVG_GUARD_START_TIME * 1000);
|
||||
}
|
||||
|
||||
// 每隔5秒的积分计算定时器
|
||||
@@ -1001,14 +994,4 @@ export async function gvgBattleEndSchedule() {
|
||||
}
|
||||
|
||||
}
|
||||
// —————————————— gvg end —————————————— //
|
||||
|
||||
async function initPushMsgSchedule() {
|
||||
scheduleJob('sendAfkPlayers', '0 0 19 * * ?', async () => {
|
||||
pushClientMsg(SDK_PUSH_MSG_TYPE.AFK_ATTENTION);
|
||||
pushClientMsg(SDK_PUSH_MSG_TYPE.AP_DINNER);
|
||||
});
|
||||
scheduleJob('sendAfkPlayers', '0 0 12 * * ?', async () => {
|
||||
pushClientMsg(SDK_PUSH_MSG_TYPE.AP_LUNCH);
|
||||
});
|
||||
}
|
||||
// —————————————— gvg end —————————————— //
|
||||
Reference in New Issue
Block a user