From 848cb592b3e7f1a44bc2a94b76f4e395d24486f8 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 6 Jul 2023 17:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(gvg):=20=E6=B7=BB=E5=8A=A0gv?= =?UTF-8?q?g=E7=BB=93=E6=9D=9F=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/gvg/gvgBattleService.ts | 3 ++- shared/consts/constModules/chatConst.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game-server/app/services/gvg/gvgBattleService.ts b/game-server/app/services/gvg/gvgBattleService.ts index e9e1f9879..5637d23ad 100644 --- a/game-server/app/services/gvg/gvgBattleService.ts +++ b/game-server/app/services/gvg/gvgBattleService.ts @@ -17,7 +17,7 @@ import { dispatch } from "../../pubUtils/dispatcher"; import { Rank } from "../rankService"; import { KeyNameParam, LeagueRankInfo, myIdInter, RoleRankInfo } from "../../domain/rank"; 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 { GVGCityAreaPointModel } from "../../db/GVGCityAreaPoint"; import { addCityGuardMessage } from "./gvgRecService"; @@ -602,6 +602,7 @@ export async function gvgBattleEnd() { let dontSendReward = await redisClient().getAsync(REDIS_KEY.GVG_SEND_REWARD) == 'true'; // 城池占领情况 await calCityGuard(configId, dontSendReward); + await sendMessageToAllWithSuc(PUSH_ROUTE.GVG_BATTLE_END, {}); // 联军排行榜发放奖励 let leagueKeys = await findKeys(`${REDIS_KEY.GVG_BATTLE_LEAGUE_RANK}:${configId}:`); diff --git a/shared/consts/constModules/chatConst.ts b/shared/consts/constModules/chatConst.ts index e87bf858d..4698c4d9a 100644 --- a/shared/consts/constModules/chatConst.ts +++ b/shared/consts/constModules/chatConst.ts @@ -211,4 +211,5 @@ export const PUSH_ROUTE = { GVG_NOTICE_UPDATE: 'onGVGNoticeUpdate', // 管理信息更新 PUBLIC_ACCOUNT_GIFT: 'onPublicAccountGift', // 公众号发送 GVG_REC_ADD: 'onGVGRecAdd', // 动态更新 + GVG_BATTLE_END: 'onGVGBattleEnd', } \ No newline at end of file