破产消息添加渠道
This commit is contained in:
parent
c40b779c39
commit
fe0904c4fb
|
|
@ -12,6 +12,7 @@ var (
|
|||
type BankruptLog struct {
|
||||
LogId bson.ObjectId `bson:"_id"`
|
||||
SnId int32 //玩家id
|
||||
Channel string // 渠道
|
||||
Platform string //平台名称
|
||||
GameId int //游戏id
|
||||
GameFreeID int32 //房间id
|
||||
|
|
@ -26,10 +27,11 @@ func NewBankruptLog() *BankruptLog {
|
|||
return log
|
||||
}
|
||||
|
||||
func NewBankruptLogEx(snid int32, gamefreeid int32, createtime, usecoin int64, platform string, gameId int) *BankruptLog {
|
||||
func NewBankruptLogEx(snid int32, gamefreeid int32, createtime, usecoin int64, platform, channel string, gameId int) *BankruptLog {
|
||||
cl := NewBankruptLog()
|
||||
cl.SnId = snid
|
||||
cl.Platform = platform
|
||||
cl.Channel = channel
|
||||
cl.GameId = gameId
|
||||
|
||||
cl.GameFreeID = gamefreeid
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ func init() {
|
|||
CostCoin := p.takeCoin - msg.GetReturnCoin()
|
||||
|
||||
logger.Logger.Infof("NewBankruptLogEx: snid:%v GetReturnCoin:%v coin:%v CostCoin:%v", p.SnId, msg.GetReturnCoin(), p.takeCoin, CostCoin)
|
||||
log := model.NewBankruptLogEx(p.SnId, scene.dbGameFree.GetId(), p.CreateTime.Unix(), CostCoin, p.Platform, scene.gameId)
|
||||
log := model.NewBankruptLogEx(p.SnId, scene.dbGameFree.GetId(), p.CreateTime.Unix(), CostCoin, p.Platform, p.Channel, scene.gameId)
|
||||
if log != nil {
|
||||
LogChannelSingleton.WriteLog(log)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue