装备替换

This commit is contained in:
mamengke01
2020-12-30 15:02:37 +08:00
parent 552534b585
commit ac2fc62f69
4 changed files with 6 additions and 9 deletions
@@ -422,7 +422,7 @@ export class EquipHandler {
let obj = ITID.get(goodInfo.itid);
let id = obj.type;
let curEquips: Array<{ seqId: number, hid: number}> = [];
let hero = await HeroModel.getHeroEquip(roleId, hid);
let hero = await HeroModel.findByHidAndRoleWithEquip(hid, roleId);
if (!hero)
return resResult(STATUS.HERO_NOT_FIND);
if (type == 1) {