军团:补发活跃宝箱
This commit is contained in:
@@ -22,13 +22,13 @@ 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, getInvitationList } from './guildService';
|
||||
import { getMyGuildInfo, getUserGuildWithRefActive, getWishPool, getInvitationList } from './guildService';
|
||||
import { getAuction } from './auctionService';
|
||||
import { getGuildTrainInstance, getTrainBoxRewardsResult } from './guildTrainService';
|
||||
import { getBossInstanceInfo } from './guildBossService';
|
||||
import { getEvent } from './eventSercive';
|
||||
import { getBattleListOfMain, getMainChapter } from './normalBattleService';
|
||||
import { GuildType } from '../db/Guild';
|
||||
import { GuildModel, GuildType } from '../db/Guild';
|
||||
import UserGuild, { UserGuildType } from '../db/UserGuild';
|
||||
import { setPreDayActiveData, getAllGuildActivityStatus } from './guildActivity/guildActivityService';
|
||||
import { getAllOnlineRoles, getAllServers } from './redisService';
|
||||
@@ -270,7 +270,7 @@ async function getGuildEntryData(role: RoleType, sid: string, session: FrontendO
|
||||
if (role.hasGuild) {
|
||||
let userGuild = await getUserGuildWithRefActive(role.roleId);
|
||||
if (userGuild) {
|
||||
let guild = await getGuildWithRefActive(userGuild.guildCode, role.serverId);
|
||||
let guild = await GuildModel.findByCode(userGuild.guildCode, role.serverId);
|
||||
if (guild) {
|
||||
addRoleToGuildChannel(role.roleId, sid, userGuild.guildCode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user