From 1fda7ac77f6954a3c3c00c44da173822379452fc Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 23 May 2023 20:19:09 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E5=86=9B=E5=9B=A2=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8):=20=E8=AF=B8=E4=BE=AF=E6=B7=B7=E6=88=98=E5=B7=B2?= =?UTF-8?q?=E5=8D=A0=E9=A2=86=E7=9A=84=E5=9F=8E=E6=B1=A0=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=AE=A3=E6=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/guild/handler/cityActivityHandler.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/game-server/app/servers/guild/handler/cityActivityHandler.ts b/game-server/app/servers/guild/handler/cityActivityHandler.ts index 62a5447d7..f8a3e9770 100644 --- a/game-server/app/servers/guild/handler/cityActivityHandler.ts +++ b/game-server/app/servers/guild/handler/cityActivityHandler.ts @@ -133,10 +133,7 @@ export class CityActivityHandler { let declareIndex = getDeclareIndex(); let checkResult = await GuildActivityCityDeclareModel.checkDeclartion(serverId, guildCode, declareIndex); if (!!checkResult) return resResult(STATUS.HAS_DECLARED); - let curCity = await GuildActivityCityModel.getCity(serverId, cityId, declareIndex); - if (curCity && curCity.guardGuildCode) { - return resResult(STATUS.CITY_IS_GUARD); - } + await GuildActivityCityModel.getCity(serverId, cityId, declareIndex); let declareResult = await declareCity(serverId, roleId, guildCode, cityId, false, declareIndex); if(!declareResult) return resResult(STATUS.HAS_DECLARED);