排行:排行rpc同进程获取函数修改

This commit is contained in:
luying
2021-09-10 19:56:33 +08:00
parent 375d0bdab0
commit 14f7b3dd9c
6 changed files with 36 additions and 20 deletions
@@ -10,7 +10,7 @@ import { getAtrrNameById } from '../../../consts/constModules/abilityConst'
import { findIndex } from 'underscore';
import { SclResultInter, SclPosInter } from '../../../pubUtils/interface';
import { SchoolModel } from '../../../db/School';
import { getTeraphStrengthenResult, getSchoolList, getDefaultRoleInfo } from '../../../services/roleService'
import { getTeraphStrengthenResult, getSchoolList } from '../../../services/roleService'
import { calPlayerCeAndSave, calAllHeroCe } from '../../../services/playerCeService';
import { HERO_SYSTEM_TYPE, LINEUP_NUM, ROLE_SELECT, REDIS_KEY, TASK_TYPE, DEFAULT_HEROES, DEFAULT_HERO_LV, DEFAULT_ITEMS, DEFAULT_EQUIPS, DEFAULT_GOLD, DEFAULT_COIN } from '../../../consts';
import { checkBattleHeroesByHid } from '../../../services/normalBattleService';
@@ -37,6 +37,7 @@ export class RoleRemote {
}
this.rankFirstRewards.get(rank.serverId).set(rank.id, rank);
}
this.app.set('rankFirstRewards', rankFirstRewards);
}
public setRankFirst(rank: RankFirstType) {
@@ -63,7 +64,8 @@ export class RoleRemote {
this.figureInfo = figureInfo;
const initRoleInfos = getDefaultRoleInfo(this.initHeroes, this.initSkins, this.initRole, this.figureInfo);
this.app.set('initRoleInfos', initRoleInfos);
this.app.set('initHeroes', this.initHeroes);
this.app.set('initSkins', this.initSkins);
}
public getInitRoleInfos() {