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 }); }