修正解锁英雄卡槽显示物品不够的bug

This commit is contained in:
zhl 2021-01-22 15:41:30 +08:00
parent c656acb8fb
commit ca32325abb

View File

@ -114,7 +114,7 @@ export default class HeroController extends BaseController {
let needItem = cfg[`Unlockgroup${needSlot}id`]
// @ts-ignore
let needCount = cfg[`Unlockgroup${needSlot}num`]
let item = await BagItem.findOne({accountid, itemid: needItem, itemtype: ItemType.UNKNOW})
let item = await BagItem.findOne({accountid, itemid: needItem})
if (!item || item.count < needCount) {
throw new ZError(13, 'not enough unlock item')
}