玩家信息接口道具列表

This commit is contained in:
sk 2024-05-28 14:51:21 +08:00
parent bfbe02be66
commit b9c1b85193
1 changed files with 2 additions and 2 deletions

View File

@ -4411,7 +4411,7 @@ func getPlayerDataParam(param *playerDataParam) *model.WebPlayerDataParam {
b := BagMgrSingleton.GetBagInfo(param.P.SnId) b := BagMgrSingleton.GetBagInfo(param.P.SnId)
for _, v := range b.BagItem { for _, v := range b.BagItem {
e := srvdata.PBDB_GameItemMgr.GetData(v.ItemId) e := srvdata.PBDB_GameItemMgr.GetData(v.ItemId)
if e == nil { if e == nil || v.ItemNum <= 0 {
continue continue
} }
items = append(items, &model.WebItem{ items = append(items, &model.WebItem{
@ -4423,7 +4423,7 @@ func getPlayerDataParam(param *playerDataParam) *model.WebPlayerDataParam {
} else { } else {
for _, v := range param.Items.BagItem { for _, v := range param.Items.BagItem {
e := srvdata.PBDB_GameItemMgr.GetData(v.ItemId) e := srvdata.PBDB_GameItemMgr.GetData(v.ItemId)
if e == nil { if e == nil || v.ItemNum <= 0 {
continue continue
} }
items = append(items, &model.WebItem{ items = append(items, &model.WebItem{