优化
This commit is contained in:
parent
2b73b7c6de
commit
7fedf2e87d
@ -534,6 +534,9 @@ func GetOrderItem(Star int) map[int][]gamedata.PetOrderItem {
|
|||||||
}
|
}
|
||||||
Id := GoUtil.Int(k)
|
Id := GoUtil.Int(k)
|
||||||
Type := gamedata.GetIntValue(v, "Type")
|
Type := gamedata.GetIntValue(v, "Type")
|
||||||
|
if Type == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if _, ok := r[Type]; !ok {
|
if _, ok := r[Type]; !ok {
|
||||||
r[Type] = make([]gamedata.PetOrderItem, 0)
|
r[Type] = make([]gamedata.PetOrderItem, 0)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user