Commit 420805e80c0fb749659722085dd8e035125e9a21
1 parent
e2a223c0
Exists in
master
提交
Showing
2 changed files
with
7 additions
and
5 deletions
Show diff stats
src/HttpServer/logic/datadef.go
@@ -538,11 +538,12 @@ type adRateData struct { | @@ -538,11 +538,12 @@ type adRateData struct { | ||
538 | } | 538 | } |
539 | 539 | ||
540 | type GetMainPageInfoData struct { | 540 | type GetMainPageInfoData struct { |
541 | - LimitCatList []int `json:"limitCatList"` | ||
542 | - CatList []CatPosInfo `json:"catList"` | ||
543 | - Coin DoBuyCatCoin `json:"coin"` | ||
544 | - AdRate adRateData `json:"adRate"` | ||
545 | - Level int `json:"level"` | 541 | + LimitCatList []int `json:"limitCatList"` |
542 | + CatList []CatPosInfo `json:"catList"` | ||
543 | + Coin DoBuyCatCoin `json:"coin"` | ||
544 | + AdRate adRateData `json:"adRate"` | ||
545 | + Level int `json:"level"` | ||
546 | + TimingRewardTimes int `json:"timingRewardTimes"` | ||
546 | } | 547 | } |
547 | 548 | ||
548 | type GetMainPageInfoResp struct { | 549 | type GetMainPageInfoResp struct { |
src/HttpServer/logic/logic.go
@@ -526,6 +526,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | @@ -526,6 +526,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | ||
526 | } | 526 | } |
527 | 527 | ||
528 | resp.Data.Level = len(uinfo.BuyCatInfo) | 528 | resp.Data.Level = len(uinfo.BuyCatInfo) |
529 | + resp.Data.TimingRewardTimes = uinfo.GetWatchAdsGoldTime | ||
529 | resp.Code = 0 | 530 | resp.Code = 0 |
530 | break | 531 | break |
531 | } | 532 | } |