Commit 3a9815485ff12c687d4f50aa767f7ab83d68ea74
1 parent
6f97f0d0
Exists in
master
提交
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/datadef.go
@@ -542,6 +542,7 @@ type GetMainPageInfoData struct { | @@ -542,6 +542,7 @@ type GetMainPageInfoData struct { | ||
542 | CatList []CatPosInfo `json:"catList"` | 542 | CatList []CatPosInfo `json:"catList"` |
543 | Coin DoBuyCatCoin `json:"coin"` | 543 | Coin DoBuyCatCoin `json:"coin"` |
544 | AdRate adRateData `json:"adRate"` | 544 | AdRate adRateData `json:"adRate"` |
545 | + Level int `json:"level"` | ||
545 | } | 546 | } |
546 | 547 | ||
547 | type GetMainPageInfoResp struct { | 548 | type GetMainPageInfoResp struct { |
src/HttpServer/logic/logic.go
@@ -448,6 +448,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | @@ -448,6 +448,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | ||
448 | accrate := uinfo.Goldrate * 3 | 448 | accrate := uinfo.Goldrate * 3 |
449 | resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10) | 449 | resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10) |
450 | } | 450 | } |
451 | + | ||
452 | + resp.Data.Level = len(uinfo.BuyCatInfo) - 1 | ||
451 | resp.Code = 0 | 453 | resp.Code = 0 |
452 | break | 454 | break |
453 | } | 455 | } |