From 420805e80c0fb749659722085dd8e035125e9a21 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 15 Jun 2020 14:36:32 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/datadef.go | 11 ++++++----- src/HttpServer/logic/logic.go | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) 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