From 90d76a17c8c3509e362fafff9d4505096dec2938 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Mon, 16 Dec 2024 11:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E5=88=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/trascate_webapi.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index e522108..0855742 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -3049,7 +3049,7 @@ func init() { } pack.Success = true - pack.Data.Count = msg.Count + pack.Data.Count = player.Coin jsonDataRsp, err = json.Marshal(pack) if err != nil { @@ -3101,6 +3101,8 @@ func init() { return err } } + + remainNum = findPlayer.Coin + addcoin return nil }), task.CompleteNotifyWrapper(func(data interface{}, t task.Task) { pack.Code = int(webapiproto.TagCode_SUCCESS) @@ -3113,7 +3115,7 @@ func init() { } pack.Success = true - pack.Data.Count = msg.Count + pack.Data.Count = remainNum jsonDataRsp, err = json.Marshal(pack) if err != nil {