Commit 347c3d686358eaace91f46d81c9c9291da695662
1 parent
01160e80
Exists in
master
提交
Showing
2 changed files
with
2 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/datadef.go
@@ -546,6 +546,7 @@ type RankInfoDesc struct { | @@ -546,6 +546,7 @@ type RankInfoDesc struct { | ||
546 | Nickname string `json:"nickname"` | 546 | Nickname string `json:"nickname"` |
547 | CatName string `json:"text"` | 547 | CatName string `json:"text"` |
548 | Income int64 `json:"income"` | 548 | Income int64 `json:"income"` |
549 | + Level int `json:"level"` | ||
549 | } | 550 | } |
550 | 551 | ||
551 | type QueryPlayerRankResp struct { | 552 | type QueryPlayerRankResp struct { |
src/HttpServer/logic/logic.go
@@ -469,6 +469,7 @@ func HandlerQueryPlayerRank(w http.ResponseWriter, data string, uuid int) { | @@ -469,6 +469,7 @@ func HandlerQueryPlayerRank(w http.ResponseWriter, data string, uuid int) { | ||
469 | tmp.Headurl = rindo.Head | 469 | tmp.Headurl = rindo.Head |
470 | tmp.Rank = rank | 470 | tmp.Rank = rank |
471 | tmp.CatName = rindo.CalcHigestCatName() | 471 | tmp.CatName = rindo.CalcHigestCatName() |
472 | + tmp.Level = len(rindo.PosInfo) | ||
472 | resp.Data = append(resp.Data, tmp) | 473 | resp.Data = append(resp.Data, tmp) |
473 | } | 474 | } |
474 | } | 475 | } |