名将擂台:修复任务相关

This commit is contained in:
luying
2022-07-18 18:03:27 +08:00
parent 96d01ab803
commit d72f6ef080
7 changed files with 145 additions and 1402 deletions

View File

@@ -423,7 +423,7 @@ export class HeroHandler {
if (heroes.length < dicFriendShip.hids.length) return resResult(STATUS.ROLE_HERO_NOT_EXISTS);
let hero = heroes.find(cur => cur.hid == hid);
if(!hero) return resResult(STATUS.ROLE_HERO_NOT_EXISTS);
let { connections } = hero;
let { connections = []} = hero;
let curConnect = connections.find(cur => cur.shipId == shipId);
let { level: oldLv = 0, exp: oldExp = 0 } = curConnect||{};