From 046d5ea7fbcf3f2a026f23c94129837a2bb7345e Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 13 Jan 2025 16:42:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8E=A8=E5=B8=81=E6=9C=BA=E6=A1=8C?= =?UTF-8?q?=E9=9D=A2=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_pushcoin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/worldsrv/action_pushcoin.go b/worldsrv/action_pushcoin.go index a4fd358..db38f66 100644 --- a/worldsrv/action_pushcoin.go +++ b/worldsrv/action_pushcoin.go @@ -213,7 +213,11 @@ func CSPushCoinPlayerOp(s *netlib.Session, packetid int, data interface{}, sid i p.WelfData.PushCoin.Shake -= int32(msg.GetOpParam()) case activity.OpCodes_OP_Refresh: - UpdatePlayerPushCoin(p) + if p.WelfData.PushCoin.Refresh <= 0 { + InitPlayerPushCoin(p) + } else { + UpdatePlayerPushCoin(p) + } case activity.OpCodes_OP_Exchange: d := srvdata.PBDB_PropExchangeMgr.GetData(int32(msg.GetOpParam()))