Commit 3a9815485ff12c687d4f50aa767f7ab83d68ea74

Authored by 陆恒
1 parent 6f97f0d0
Exists in master

提交

src/HttpServer/logic/datadef.go
... ... @@ -542,6 +542,7 @@ type GetMainPageInfoData struct {
542 542 CatList []CatPosInfo `json:"catList"`
543 543 Coin DoBuyCatCoin `json:"coin"`
544 544 AdRate adRateData `json:"adRate"`
  545 + Level int `json:"level"`
545 546 }
546 547  
547 548 type GetMainPageInfoResp struct {
... ...
src/HttpServer/logic/logic.go
... ... @@ -448,6 +448,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) {
448 448 accrate := uinfo.Goldrate * 3
449 449 resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10)
450 450 }
  451 +
  452 + resp.Data.Level = len(uinfo.BuyCatInfo) - 1
451 453 resp.Code = 0
452 454 break
453 455 }
... ...