🐞 fix(guild): 军团挑战奖励默认值
This commit is contained in:
@@ -79,7 +79,7 @@ export class GuildTrainHandler {
|
|||||||
let userGuild = await refreshTrain(myUserGuild, roleId, serverId);
|
let userGuild = await refreshTrain(myUserGuild, roleId, serverId);
|
||||||
if (!userGuild)
|
if (!userGuild)
|
||||||
return resResult(STATUS.WRONG_PARMS);
|
return resResult(STATUS.WRONG_PARMS);
|
||||||
const { guildCode: code, trainBoxRewards} = userGuild;
|
const { guildCode: code, trainBoxRewards = []} = userGuild;
|
||||||
let resTrainBoxs = await getTrainBoxRewardsResultWithoutAlreadyGeted(code, trainBoxRewards);
|
let resTrainBoxs = await getTrainBoxRewardsResultWithoutAlreadyGeted(code, trainBoxRewards);
|
||||||
return resResult(STATUS.SUCCESS, { trainBoxRewards: resTrainBoxs });
|
return resResult(STATUS.SUCCESS, { trainBoxRewards: resTrainBoxs });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user