diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index dac40e9..174a1bf 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -87,8 +87,9 @@ type DrawguangoldReq struct { } type DrawguangoldData struct { - Guangold int `json:"guangold"` - Wallgold int `json:"wallgold"` + Guangold int `json:"guangold"` + Wallgold int `json:"wallgold"` + Totalfetchcnt int `json:"totalfetchcnt"` } type DrawguangoldResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index f57e8ee..3fe15e9 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -693,8 +693,6 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { break } - uinfo.GetFromGuanCnt++ - uinfo.Achieve.SumGetGuan++ // mcfg := jsonconf.GetMoneyBoxCfg(uinfo.Lv) if mcfg == nil { @@ -720,12 +718,15 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { break } + uinfo.GetFromGuanCnt++ + uinfo.Achieve.SumGetGuan++ uinfo.GuanGold = uinfo.GuanGold - rdata.Goldnum uinfo.RealGold = goldnum //uinfo.RealGold += rdata.Goldnum resp.Data.Guangold = uinfo.GuanGold resp.Data.Wallgold = uinfo.RealGold + resp.Data.Totalfetchcnt = uinfo.Achieve.SumGetGuan SaveUserInfo(uinfo) -- libgit2 0.21.0