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