对外部导入的抽卡数据无id情况做兼容

This commit is contained in:
Kokomi 2023-03-01 09:54:08 +08:00
parent ca8432792c
commit 157200f349

View File

@ -79,7 +79,7 @@ let GachaData = {
}
}
let id = nameMap[ds.name]
if (!id || !itemMap[id] || ids[ds.id]) {
if (!id || !itemMap[id] || (ds.id && ids[ds.id])) {
return true
}
ids[ds.id] = true