fix 推币机账变记录
This commit is contained in:
parent
b98c74c983
commit
02bbc5a259
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue