From 3c4fc64882853862b02ca5f12c3b7ad3d36033aa Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Wed, 25 Dec 2024 13:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=88=86=E6=95=B0=E6=8D=AE=20money?= =?UTF-8?q?=E6=94=B9=E4=B8=BAstring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapi/deprecated.go | 2 +- worldsrv/trascate_webapi.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapi/deprecated.go b/webapi/deprecated.go index b6d3d30..041c461 100644 --- a/webapi/deprecated.go +++ b/webapi/deprecated.go @@ -286,7 +286,7 @@ type PlatfromDownScoreReq struct { type PlatfromDownScoreRsp struct { Code int `json:"code"` Data struct { - Money int64 `json:"money"` + Money string `json:"money"` } `json:"data"` Message string `json:"message"` Success bool `json:"success"` diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index 3a4e8c1..1012d72 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -3222,7 +3222,7 @@ func init() { player.SendDiffData() } - pack.Data.Money = -addcoin + pack.Data.Money = strconv.FormatInt(-addcoin, 10) jsonDataRsp, err = json.Marshal(pack) if err != nil { @@ -3292,7 +3292,7 @@ func init() { pack.Message = data.(error).Error() } - pack.Data.Money = -addcoin + pack.Data.Money = strconv.FormatInt(-addcoin, 10) jsonDataRsp, err = json.Marshal(pack) if err != nil {