From e933fe80d5ab3ad5e2405177188182898c09fb62 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Thu, 9 Jan 2025 16:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=98=E8=AE=B0=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=9C=A8=E7=BA=BF=E5=B9=B3=E5=8F=B0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/trascate_webapi.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index 2465a84..3190e7a 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -3202,8 +3202,11 @@ func init() { findPlayer, _ := model.GetPlayerDataBySnId(acc.Platform, int32(acc.SnId), false, true) if findPlayer != nil { - remainNum = findPlayer.Coin addcoin = -findPlayer.Coin + remainNum = findPlayer.Coin + if findPlayer.Coin <= 0 { + return nil + } //增加帐变记录 coinlogex := model.NewCoinLogEx(&model.CoinLogParam{