diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 91fc7aa..5f79193 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -538,11 +538,12 @@ type adRateData struct { } type GetMainPageInfoData struct { - LimitCatList []int `json:"limitCatList"` - CatList []CatPosInfo `json:"catList"` - Coin DoBuyCatCoin `json:"coin"` - AdRate adRateData `json:"adRate"` - Level int `json:"level"` + LimitCatList []int `json:"limitCatList"` + CatList []CatPosInfo `json:"catList"` + Coin DoBuyCatCoin `json:"coin"` + AdRate adRateData `json:"adRate"` + Level int `json:"level"` + TimingRewardTimes int `json:"timingRewardTimes"` } type GetMainPageInfoResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 1006d54..6643f32 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -526,6 +526,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { } resp.Data.Level = len(uinfo.BuyCatInfo) + resp.Data.TimingRewardTimes = uinfo.GetWatchAdsGoldTime resp.Code = 0 break } -- libgit2 0.21.0