From 82e6d5ec082cf934b78ebe4361a769507ca9d9a5 Mon Sep 17 00:00:00 2001 From: dingchaolin Date: Tue, 7 Mar 2023 16:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(guild):=20=E5=86=9B=E5=9B=A2?= =?UTF-8?q?=E6=8C=91=E6=88=98=E5=A5=96=E5=8A=B1=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/guild/handler/guildTrainHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/servers/guild/handler/guildTrainHandler.ts b/game-server/app/servers/guild/handler/guildTrainHandler.ts index 3fbf57d60..f3fee605f 100644 --- a/game-server/app/servers/guild/handler/guildTrainHandler.ts +++ b/game-server/app/servers/guild/handler/guildTrainHandler.ts @@ -79,7 +79,7 @@ export class GuildTrainHandler { let userGuild = await refreshTrain(myUserGuild, roleId, serverId); if (!userGuild) return resResult(STATUS.WRONG_PARMS); - const { guildCode: code, trainBoxRewards} = userGuild; + const { guildCode: code, trainBoxRewards = []} = userGuild; let resTrainBoxs = await getTrainBoxRewardsResultWithoutAlreadyGeted(code, trainBoxRewards); return resResult(STATUS.SUCCESS, { trainBoxRewards: resTrainBoxs }); }