装备:卸下宝石bug

This commit is contained in:
luying
2021-08-11 10:27:40 +08:00
parent 6641f13f27
commit 8ae66d08ec

View File

@@ -821,7 +821,7 @@ export class EquipHandler {
let equip = await EquipModel.getEquip(eid);
let oldJewelCount = equip.holes.filter(cur => cur.jewel > 0).length;
let index = findIndex(equip.holes, { id });
if (index > 0)
if (index < 0)
return resResult(STATUS.EQUIP_HOLE_NOT_FIND);
let jewel = equip.holes[index].jewel;
if (!jewel)