From 0f58055dfe7822bba0424c5ae32191f0244eafb8 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 21 May 2020 10:22:08 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/datadef.go | 13 +++++++------ src/HttpServer/logic/logic.go | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 174a1bf..a842271 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -52,12 +52,13 @@ type WatchadsResp struct { } type QueryguaninfoData struct { - Leftcnt int `json:"leftcnt"` - Totalcnt int `json:"totalcnt"` - Guangold int `json:"guangold"` - Minget int `json:"minget"` - Maxget int `json:"maxget"` - Loginday int `json:"loginday"` + Leftcnt int `json:"leftcnt"` + Totalcnt int `json:"totalcnt"` + Guangold int `json:"guangold"` + Minget int `json:"minget"` + Maxget int `json:"maxget"` + Loginday int `json:"loginday"` + Totalfetchcnt int `json:"totalfetchcnt"` } type QueryguaninfoResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 3fe15e9..37a0416 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -42,6 +42,7 @@ func HandlerQueryguaninfo(w http.ResponseWriter, data string, uuid int) { resp.Data.Leftcnt = resp.Data.Totalcnt - uinfo.GetFromGuanCnt resp.Data.Maxget = mcfg.Max resp.Data.Minget = mcfg.Min + resp.Data.Totalfetchcnt = uinfo.Achieve.SumGetGuan resp.Code = ERROR_OK break -- libgit2 0.21.0