养成:初始战力推送修复
This commit is contained in:
@@ -111,7 +111,7 @@ export class HeroHandler {
|
||||
if (!costResult) return resResult(STATUS.ROLE_MATERIAL_NOT_ENOUGH);
|
||||
|
||||
let update = {
|
||||
lv: playerLv > newLv ? newLv : playerLv,
|
||||
lv: newLv,
|
||||
exp: newExp
|
||||
}
|
||||
|
||||
|
||||
@@ -346,11 +346,11 @@ export class CreateHeroes extends UpdateHeroes {
|
||||
pinus.app.get('channelService').pushMessageByUids('onHeadChange', resResult(STATUS.SUCCESS, { ...figureInfo }), uids);
|
||||
}
|
||||
pinus.app.get('channelService').pushMessageByUids('onHeroSkinChange', resResult(STATUS.SUCCESS, this.skinPushMessages), uids);
|
||||
pinus.app.get('channelService').pushMessageByUids('onHeroUpdate', resResult(STATUS.SUCCESS, { heroes: this.resultHeroes }), uids);
|
||||
pinus.app.get('channelService').pushMessageByUids('onHeroUpdate', resResult(STATUS.SUCCESS, { heroes: this.getResultHeroes() }), uids);
|
||||
}
|
||||
|
||||
public getResultHeroes() {
|
||||
return this.resultHeroes
|
||||
return this.resultHeroes.map(cur => ({...cur, ce: reduceCe(cur.ce)}))
|
||||
}
|
||||
|
||||
public getShowHeroes() {
|
||||
|
||||
Reference in New Issue
Block a user