From c75d2217344e71a2659c4bd080a6e27e5a5fd1ee Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 21 May 2020 10:17:01 +0800 Subject: [PATCH] 增加 --- src/HttpServer/logic/datadef.go | 5 +++-- src/HttpServer/logic/logic.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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