🐞 fix(guild): 军团挑战奖励默认值
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user