diff --git a/game-server/app/servers/role/handler/equipHandler.ts b/game-server/app/servers/role/handler/equipHandler.ts index 7be0c95be..eb6714a1e 100644 --- a/game-server/app/servers/role/handler/equipHandler.ts +++ b/game-server/app/servers/role/handler/equipHandler.ts @@ -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); diff --git a/game-server/app/servers/role/handler/roleHandler.ts b/game-server/app/servers/role/handler/roleHandler.ts index 33ee83fec..773a6d334 100644 --- a/game-server/app/servers/role/handler/roleHandler.ts +++ b/game-server/app/servers/role/handler/roleHandler.ts @@ -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}); } //神像强化 diff --git a/game-server/app/services/playerCeService.ts b/game-server/app/services/playerCeService.ts index 885381743..741378fad 100644 --- a/game-server/app/services/playerCeService.ts +++ b/game-server/app/services/playerCeService.ts @@ -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)}; } \ No newline at end of file diff --git a/shared/consts/constModules/itemConst.ts b/shared/consts/constModules/itemConst.ts index 085d3490c..40cac2461 100644 --- a/shared/consts/constModules/itemConst.ts +++ b/shared/consts/constModules/itemConst.ts @@ -211,7 +211,8 @@ export function getDropItems() { { id:17042 ,count: 100000 },{ id:17043 ,count: 100000 },{ id:17044 ,count: 100000 },{ id:17045 ,count: 100000 },{ id:17046 ,count: 100000 },{ id:17047 ,count: 100000 }, { id:21001 ,count: 100000 },{ id:21002 ,count: 100000 },{ id:31001 ,count: 100000 },{ id:31002 ,count: 100000 },{ id:31003 ,count: 100000 },{ id:33001 ,count: 100000 }, { id:33002 ,count: 100000 },{ id:33003 ,count: 100000 },{ id:40001 ,count: 100000 },{ id:40002 ,count: 100000 },{ id:42001 ,count: 100000 },{ id:42002 ,count: 100000 }, - { id:50009 ,count: 100000 },{ id:50010 ,count: 100000 },{ id:60001 ,count: 100000 },{ id:60002 ,count: 100000 },{ id:60060 ,count: 100000 }, + { id:50009 ,count: 100000 },{ id:50010 ,count: 100000 },{ id:60001 ,count: 100000 },{ id:60002 ,count: 100000 },{ id:4 ,count: 2 },{ id:2004 ,count: 2 },{ id:220 ,count: 2 }, + { id:2008 ,count: 2 },{ id:2012 ,count: 2 },{ id:2208 ,count: 2 },{ id:2016 ,count: 2 },{ id:2120 ,count: 2 },{ id:2220 ,count: 2 },{ id:50031, count: 1000} ] return items; } \ No newline at end of file