🐞 fix(gvg): 添加gvg结束推送
This commit is contained in:
@@ -17,7 +17,7 @@ import { dispatch } from "../../pubUtils/dispatcher";
|
|||||||
import { Rank } from "../rankService";
|
import { Rank } from "../rankService";
|
||||||
import { KeyNameParam, LeagueRankInfo, myIdInter, RoleRankInfo } from "../../domain/rank";
|
import { KeyNameParam, LeagueRankInfo, myIdInter, RoleRankInfo } from "../../domain/rank";
|
||||||
import { findKeys, getAllServerName, redisClient } from "../redisService";
|
import { findKeys, getAllServerName, redisClient } from "../redisService";
|
||||||
import { sendMessageToGVGAreaByTeamWithSuc, sendMessageToGVGAreaWithSuc, sendMessageToGVGCityWithSuc, sendMessageToUserWithSuc } from "../pushService";
|
import { sendMessageToAllWithSuc, sendMessageToGVGAreaByTeamWithSuc, sendMessageToGVGAreaWithSuc, sendMessageToGVGCityWithSuc, sendMessageToUserWithSuc } from "../pushService";
|
||||||
import { sendMailByContent, sendMailToLeagueByContent } from "../mailService";
|
import { sendMailByContent, sendMailToLeagueByContent } from "../mailService";
|
||||||
import { GVGCityAreaPointModel } from "../../db/GVGCityAreaPoint";
|
import { GVGCityAreaPointModel } from "../../db/GVGCityAreaPoint";
|
||||||
import { addCityGuardMessage } from "./gvgRecService";
|
import { addCityGuardMessage } from "./gvgRecService";
|
||||||
@@ -602,6 +602,7 @@ export async function gvgBattleEnd() {
|
|||||||
let dontSendReward = await redisClient().getAsync(REDIS_KEY.GVG_SEND_REWARD) == 'true';
|
let dontSendReward = await redisClient().getAsync(REDIS_KEY.GVG_SEND_REWARD) == 'true';
|
||||||
// 城池占领情况
|
// 城池占领情况
|
||||||
await calCityGuard(configId, dontSendReward);
|
await calCityGuard(configId, dontSendReward);
|
||||||
|
await sendMessageToAllWithSuc(PUSH_ROUTE.GVG_BATTLE_END, {});
|
||||||
|
|
||||||
// 联军排行榜发放奖励
|
// 联军排行榜发放奖励
|
||||||
let leagueKeys = await findKeys(`${REDIS_KEY.GVG_BATTLE_LEAGUE_RANK}:${configId}:`);
|
let leagueKeys = await findKeys(`${REDIS_KEY.GVG_BATTLE_LEAGUE_RANK}:${configId}:`);
|
||||||
|
|||||||
@@ -211,4 +211,5 @@ export const PUSH_ROUTE = {
|
|||||||
GVG_NOTICE_UPDATE: 'onGVGNoticeUpdate', // 管理信息更新
|
GVG_NOTICE_UPDATE: 'onGVGNoticeUpdate', // 管理信息更新
|
||||||
PUBLIC_ACCOUNT_GIFT: 'onPublicAccountGift', // 公众号发送
|
PUBLIC_ACCOUNT_GIFT: 'onPublicAccountGift', // 公众号发送
|
||||||
GVG_REC_ADD: 'onGVGRecAdd', // 动态更新
|
GVG_REC_ADD: 'onGVGRecAdd', // 动态更新
|
||||||
|
GVG_BATTLE_END: 'onGVGBattleEnd',
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user