From 02bbc5a2594435027e0bdb81deb791ea1a73bec0 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Wed, 15 Jan 2025 10:12:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8E=A8=E5=B8=81=E6=9C=BA=E8=B4=A6?= =?UTF-8?q?=E5=8F=98=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_pushcoin.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/worldsrv/action_pushcoin.go b/worldsrv/action_pushcoin.go index f341fc1..365b8ca 100644 --- a/worldsrv/action_pushcoin.go +++ b/worldsrv/action_pushcoin.go @@ -7,7 +7,6 @@ import ( "mongo.games.com/goserver/core/netlib" "mongo.games.com/game/common" - "mongo.games.com/game/gamesrv/base" "mongo.games.com/game/model" "mongo.games.com/game/protocol/activity" "mongo.games.com/game/srvdata" @@ -136,6 +135,11 @@ func CSPushCoinPlayerOp(s *netlib.Session, packetid int, data interface{}, sid i return nil } + if p.scene != nil { + logger.Logger.Warn("CSPushCoinPlayerOp p.scene != nil") + return nil + } + if p.WelfData == nil { logger.Logger.Warn("CSPushCoinPlayerOp p.WelfData == nil") return nil @@ -168,7 +172,7 @@ func CSPushCoinPlayerOp(s *netlib.Session, packetid int, data interface{}, sid i } pack.BetId = int32(msg.GetOpParam()) - p.AddCoin(-item.GetNum(), common.GainWayPushCoinCost, base.SyncFlag_ToClient, "system", "推币机下注") + p.AddCoin(-item.GetNum(), 0, common.GainWayPushCoinCost, "system", "推币机下注") // 增加桌面道具 PushCoinAddValue(p, map[int32]int64{ int32(msg.GetOpParam()): 1,