From f9a5ca3de260367308250305d2461d46808d8efc Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 3 Mar 2022 19:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A6=E5=B0=86=EF=BC=9A=E9=87=8D=E7=94=9F?= =?UTF-8?q?=E8=BF=94=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/role/handler/heroHandler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game-server/app/servers/role/handler/heroHandler.ts b/game-server/app/servers/role/handler/heroHandler.ts index 2bdcd28dd..936a204a1 100644 --- a/game-server/app/servers/role/handler/heroHandler.ts +++ b/game-server/app/servers/role/handler/heroHandler.ts @@ -650,7 +650,7 @@ export class HeroHandler { let { hid } = msg; if(!isNumber(hid) && !hid) return resResult(STATUS.WRONG_PARMS); - + // 武将初始,但是皮肤这里不初始 let hero = await HeroModel.findByHidAndRole(hid, roleId); if(!hero) return resResult(STATUS.HERO_NOT_FIND); @@ -689,11 +689,11 @@ export class HeroHandler { } let { heros } = await calAllHeroCe(HERO_SYSTEM_TYPE.REBIRTH, sid, roleId, {}, [hid], { originHero: hero, heroUpdate: initInfo }); - let curHeo = heros.find(cur => cur.hid == hid); + let curHero = heros.find(cur => cur.hid == hid); let goods = await addItems(roleId, roleName, sid, consumes, ITEM_CHANGE_REASON.REBIRTH); - return resResult(STATUS.SUCCESS, { curHeo, curJewels, goods }); + return resResult(STATUS.SUCCESS, { curHero, curJewels, goods }); } // ! debug接口 一键全武将