From ed5ff4010b6f55723e4cedf0e529c07c85398f6a Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Wed, 5 Aug 2020 10:37:37 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/datadef.go | 1 + src/HttpServer/logic/logic.go | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 947ad3c..1d4c16d 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -125,6 +125,7 @@ type GetguangoldReq struct { type GetguangoldData struct { Guangold int `json:"guangold"` + Wallgold int `json:"walletgold"` } type GetguangoldResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 783cd84..17a1b16 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -998,6 +998,8 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid, uinfo.GuanGold -= rdata.Goldnum + resp.Data.Guangold = uinfo.GuanGold + resp.Data.Wallgold = uinfo.RealGold SaveUserInfo(uinfo, uniqueuuid) resp.Code = ERROR_OK @@ -1005,6 +1007,7 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid, } //回包 + logger.Info("HandlerDrawguangold resp=%+v", resp) respstr, _ := json.Marshal(&resp) fmt.Fprint(w, string(respstr)) } -- libgit2 0.21.0