神像:修复无法强化bug
This commit is contained in:
@@ -8,7 +8,7 @@ import { getCurTask } from './taskService';
|
||||
import { RoleType } from '../db/Role';
|
||||
import { FrontendOrBackendSession, pinus } from 'pinus';
|
||||
import { resResult } from '../pubUtils/util';
|
||||
import { STATUS, PUSH_BATCH, PUSH_INTERVAL } from '../consts';
|
||||
import { STATUS, PUSH_BATCH, PUSH_INTERVAL, CONSUME_TYPE } from '../consts';
|
||||
import { getAllShopList } from './shopService';
|
||||
import { getGeneralRank } from './rankService';
|
||||
import { getFriendList, getApplyList } from './friendService';
|
||||
@@ -33,6 +33,7 @@ import { GuildType } from '../db/Guild';
|
||||
import UserGuild, { UserGuildType } from '../db/UserGuild';
|
||||
import { setMedianCe } from './guildActivityService';
|
||||
import { getAllOnlineRoles } from './redisService';
|
||||
import Item from '../db/Item';
|
||||
|
||||
export async function pushData(role: RoleType, session: FrontendOrBackendSession, pushType: 'entry'|'refresh' = 'entry') {
|
||||
try{
|
||||
@@ -86,7 +87,8 @@ export async function pushData(role: RoleType, session: FrontendOrBackendSession
|
||||
return await getTowerEntryData(role);
|
||||
case 'comBattle': // 寻宝
|
||||
const assistCnt = await getAllAssistCnt(roleId);
|
||||
return { assistCnt }
|
||||
const blueprts = await Item.findByRoleAndType(roleId, CONSUME_TYPE.BLUEPRT);
|
||||
return { assistCnt, blueprts }
|
||||
case 'dungeon': // 秘境
|
||||
return await getDungeonData(role);
|
||||
case 'pvp': // pvp
|
||||
|
||||
Reference in New Issue
Block a user