玩家信息接口道具列表
This commit is contained in:
parent
bfbe02be66
commit
b9c1b85193
|
|
@ -4411,7 +4411,7 @@ func getPlayerDataParam(param *playerDataParam) *model.WebPlayerDataParam {
|
|||
b := BagMgrSingleton.GetBagInfo(param.P.SnId)
|
||||
for _, v := range b.BagItem {
|
||||
e := srvdata.PBDB_GameItemMgr.GetData(v.ItemId)
|
||||
if e == nil {
|
||||
if e == nil || v.ItemNum <= 0 {
|
||||
continue
|
||||
}
|
||||
items = append(items, &model.WebItem{
|
||||
|
|
@ -4423,7 +4423,7 @@ func getPlayerDataParam(param *playerDataParam) *model.WebPlayerDataParam {
|
|||
} else {
|
||||
for _, v := range param.Items.BagItem {
|
||||
e := srvdata.PBDB_GameItemMgr.GetData(v.ItemId)
|
||||
if e == nil {
|
||||
if e == nil || v.ItemNum <= 0 {
|
||||
continue
|
||||
}
|
||||
items = append(items, &model.WebItem{
|
||||
|
|
|
|||
Loading…
Reference in New Issue