战力bug,爵位
This commit is contained in:
@@ -403,7 +403,7 @@ export class EquipHandler {
|
||||
let goodInfo = getGoodById(equip.id);
|
||||
if (!goodInfo)
|
||||
return resResult(STATUS.EQUIP_NOT_FIND);
|
||||
goods.concat(goodInfo.decomposeItem);
|
||||
goods = goods.concat(goodInfo.decomposeItem);
|
||||
}
|
||||
let uids = [{ uid: roleId, sid }];
|
||||
await EquipModel.deleteEquips(originalEquip);
|
||||
|
||||
@@ -92,8 +92,8 @@ export class RoleHandler {
|
||||
if (!result)
|
||||
return resResult(STATUS.BATTLE_CONSUMES_NOT_ENOUGH);
|
||||
await RoleModel.updateRoleInfo(roleId, { title });
|
||||
await calAllHeroCe( sid, roleId, 2, [title]);
|
||||
return resResult(STATUS.SUCCESS, { roleId, title });
|
||||
let {ce} = await calAllHeroCe( sid, roleId, 2, [title]);
|
||||
return resResult(STATUS.SUCCESS, { roleId, title, ce});
|
||||
}
|
||||
|
||||
//神像强化
|
||||
|
||||
@@ -24,5 +24,5 @@ export async function calAllHeroCe(sid: string, roleId: string, type?:number, ar
|
||||
let {ce, pushHeros, topFiveCe }= await reCalAllHeroCe(roleId, type, args);
|
||||
let uids = [{ uid: roleId, sid }];
|
||||
pinus.app.get('channelService').pushMessageByUids('onPlayerCeUpdate', resResult(STATUS.SUCCESS, { ce: reduceCe(ce), heros: pushHeros, topFiveCe: reduceCe(topFiveCe) }), uids);
|
||||
return;
|
||||
return {ce: reduceCe(ce)};
|
||||
}
|
||||
Reference in New Issue
Block a user