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,