diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 8082382..e0cddf2 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -542,6 +542,7 @@ type GetMainPageInfoData struct { CatList []CatPosInfo `json:"catList"` Coin DoBuyCatCoin `json:"coin"` AdRate adRateData `json:"adRate"` + Level int `json:"level"` } type GetMainPageInfoResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 1fa9818..3983536 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -448,6 +448,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { accrate := uinfo.Goldrate * 3 resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10) } + + resp.Data.Level = len(uinfo.BuyCatInfo) - 1 resp.Code = 0 break } -- libgit2 0.21.0