装备:卸下宝石bug
This commit is contained in:
@@ -821,7 +821,7 @@ export class EquipHandler {
|
|||||||
let equip = await EquipModel.getEquip(eid);
|
let equip = await EquipModel.getEquip(eid);
|
||||||
let oldJewelCount = equip.holes.filter(cur => cur.jewel > 0).length;
|
let oldJewelCount = equip.holes.filter(cur => cur.jewel > 0).length;
|
||||||
let index = findIndex(equip.holes, { id });
|
let index = findIndex(equip.holes, { id });
|
||||||
if (index > 0)
|
if (index < 0)
|
||||||
return resResult(STATUS.EQUIP_HOLE_NOT_FIND);
|
return resResult(STATUS.EQUIP_HOLE_NOT_FIND);
|
||||||
let jewel = equip.holes[index].jewel;
|
let jewel = equip.holes[index].jewel;
|
||||||
if (!jewel)
|
if (!jewel)
|
||||||
|
|||||||
Reference in New Issue
Block a user