Commit d0322a95226cf34127080fc345a5a98928c3f4c1
1 parent
629587fa
Exists in
master
提交
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -1290,7 +1290,10 @@ func HandlerQueryWareHouse(w http.ResponseWriter, data string, uuid int) { | @@ -1290,7 +1290,10 @@ func HandlerQueryWareHouse(w http.ResponseWriter, data string, uuid int) { | ||
1290 | 1290 | ||
1291 | for _, v := range udata.Info { | 1291 | for _, v := range udata.Info { |
1292 | catlv := v.Warelv | 1292 | catlv := v.Warelv |
1293 | - resp.Data.CatList = append(resp.Data.CatList, catlv) | 1293 | + if catlv > 0 { |
1294 | + resp.Data.CatList = append(resp.Data.CatList, catlv) | ||
1295 | + } | ||
1296 | + | ||
1294 | } | 1297 | } |
1295 | 1298 | ||
1296 | resp.Data.CatCapacity = WAREHOUSELIMIT | 1299 | resp.Data.CatCapacity = WAREHOUSELIMIT |