Commit 0f58055dfe7822bba0424c5ae32191f0244eafb8

Authored by 陆恒
1 parent c75d2217

提交

src/HttpServer/logic/datadef.go
@@ -52,12 +52,13 @@ type WatchadsResp struct { @@ -52,12 +52,13 @@ type WatchadsResp struct {
52 } 52 }
53 53
54 type QueryguaninfoData struct { 54 type QueryguaninfoData struct {
55 - Leftcnt int `json:"leftcnt"`  
56 - Totalcnt int `json:"totalcnt"`  
57 - Guangold int `json:"guangold"`  
58 - Minget int `json:"minget"`  
59 - Maxget int `json:"maxget"`  
60 - Loginday int `json:"loginday"` 55 + Leftcnt int `json:"leftcnt"`
  56 + Totalcnt int `json:"totalcnt"`
  57 + Guangold int `json:"guangold"`
  58 + Minget int `json:"minget"`
  59 + Maxget int `json:"maxget"`
  60 + Loginday int `json:"loginday"`
  61 + Totalfetchcnt int `json:"totalfetchcnt"`
61 } 62 }
62 63
63 type QueryguaninfoResp struct { 64 type QueryguaninfoResp struct {
src/HttpServer/logic/logic.go
@@ -42,6 +42,7 @@ func HandlerQueryguaninfo(w http.ResponseWriter, data string, uuid int) { @@ -42,6 +42,7 @@ func HandlerQueryguaninfo(w http.ResponseWriter, data string, uuid int) {
42 resp.Data.Leftcnt = resp.Data.Totalcnt - uinfo.GetFromGuanCnt 42 resp.Data.Leftcnt = resp.Data.Totalcnt - uinfo.GetFromGuanCnt
43 resp.Data.Maxget = mcfg.Max 43 resp.Data.Maxget = mcfg.Max
44 resp.Data.Minget = mcfg.Min 44 resp.Data.Minget = mcfg.Min
  45 + resp.Data.Totalfetchcnt = uinfo.Achieve.SumGetGuan
45 resp.Code = ERROR_OK 46 resp.Code = ERROR_OK
46 break 47 break
47 48