军团:添加邀请红点和演武台功能

This commit is contained in:
luying
2021-12-21 16:59:40 +08:00
parent a4f426e172
commit 5f2c07da00
10 changed files with 71 additions and 33 deletions
+3 -2
View File
@@ -22,7 +22,7 @@ import { nowSeconds, getZeroPoint } from '../pubUtils/timeUtil';
import { getGachaList, getVisitedHeroList } from './activity/gachaService';
import { getSchoolList } from './roleService';
import { addRoleToGuildChannel } from './chatChannelService';
import { getMyGuildInfo, getGuildWithRefActive, getUserGuildWithRefActive, getWishPool } from './guildService';
import { getMyGuildInfo, getGuildWithRefActive, getUserGuildWithRefActive, getWishPool, getInvitationList } from './guildService';
import { getAuction } from './auctionService';
import { getGuildTrainInstance, getTrainBoxRewardsResult } from './guildTrainService';
import { BossInstanceModel } from '../db/BossInstance';
@@ -107,7 +107,8 @@ async function getModuleData(type: string, data: { role: RoleType, session: Fron
case 'school':
return await getSchoolList(roleId);
case 'guild':
return await guildResult;
let invitation = await getInvitationList(roleId, '');
return { ...guildResult, invitation };
case 'auction':
return hasGuild ? await getAuction(guildCode, session) : null;
case 'train':