修正解锁英雄卡槽显示物品不够的bug
This commit is contained in:
parent
c656acb8fb
commit
ca32325abb
@ -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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user