From 347c3d686358eaace91f46d81c9c9291da695662 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 15 Jun 2020 17:26:02 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/datadef.go | 1 + src/HttpServer/logic/logic.go | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 8933213..d86bdf3 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -546,6 +546,7 @@ type RankInfoDesc struct { Nickname string `json:"nickname"` CatName string `json:"text"` Income int64 `json:"income"` + Level int `json:"level"` } type QueryPlayerRankResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 7f31128..e50491e 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -469,6 +469,7 @@ func HandlerQueryPlayerRank(w http.ResponseWriter, data string, uuid int) { tmp.Headurl = rindo.Head tmp.Rank = rank tmp.CatName = rindo.CalcHigestCatName() + tmp.Level = len(rindo.PosInfo) resp.Data = append(resp.Data, tmp) } } -- libgit2 0.21.0