🐞 fix(guild): 军团挑战奖励默认值

This commit is contained in:
dingchaolin
2023-03-07 16:38:01 +08:00
parent 50f730beae
commit 82e6d5ec08

View File

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