🐞 fix(军团): 练兵场登录时有并发问题

This commit is contained in:
luying
2023-05-15 17:29:59 +08:00
parent 248e538799
commit a94e8aa0ea
2 changed files with 2 additions and 3 deletions
@@ -182,6 +182,7 @@ export async function getModuleData(type: string, data: { role: RoleType, sessio
case 'train':
if (hasGuild) {
let trainInstance = await getGuildTrainInstance(roleId, guild, userGuild);
if(!trainInstance) return null;
let trainBoxRewards = await getTrainBoxRewardsResult(guildCode);
return { trainInstance, trainBoxRewards }
}