Compare commits
No commits in common. "d9d78d2f13db7b696fe372e3f77af4d75c09b0ca" and "24dd497af4af24efdb674208ef907b377b422a05" have entirely different histories.
d9d78d2f13
...
24dd497af4
|
@ -26,7 +26,7 @@ func CSClientLog(s *netlib.Session, packetid int, pack interface{}) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
var platform, appChannel, channelId string
|
||||
var platform string
|
||||
var snid int32
|
||||
var createTs int64
|
||||
var p *model.PlayerData
|
||||
|
@ -44,8 +44,6 @@ func CSClientLog(s *netlib.Session, packetid int, pack interface{}) error {
|
|||
platform = p.Platform
|
||||
snid = p.SnId
|
||||
createTs = p.CreateTime.Unix()
|
||||
appChannel = p.Channel
|
||||
channelId = p.ChannelId
|
||||
}
|
||||
|
||||
//LogChannelSingleton.WriteLog(&model.ClientLog{
|
||||
|
@ -56,13 +54,11 @@ func CSClientLog(s *netlib.Session, packetid int, pack interface{}) error {
|
|||
//})
|
||||
|
||||
LogChannelSingleton.WriteLog(&model.ClientLogMysql{
|
||||
Data: msg.GetData(),
|
||||
Platform: platform,
|
||||
Snid: snid,
|
||||
Ts: time.Now().Unix(),
|
||||
CreateTs: createTs,
|
||||
AppChannel: appChannel,
|
||||
ChannelId: channelId,
|
||||
Data: msg.GetData(),
|
||||
Platform: platform,
|
||||
Snid: snid,
|
||||
Ts: time.Now().Unix(),
|
||||
CreateTs: createTs,
|
||||
})
|
||||
|
||||
return nil
|
||||
|
|
|
@ -7,13 +7,11 @@ var (
|
|||
)
|
||||
|
||||
type ClientLog struct {
|
||||
Data string // 客户端数据,json格式
|
||||
Platform string // 平台id
|
||||
Snid int32 // 玩家id
|
||||
Ts int64 // 时间戳
|
||||
CreateTs int64 // 注册时间
|
||||
AppChannel string // 注册时的包渠道
|
||||
ChannelId string // 推广渠道
|
||||
Data string // 客户端数据,json格式
|
||||
Platform string // 平台id
|
||||
Snid int32 // 玩家id
|
||||
Ts int64 // 时间戳
|
||||
CreateTs int64 // 注册时间
|
||||
}
|
||||
|
||||
type CustomData struct {
|
||||
|
|
|
@ -3,7 +3,6 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"mongo.games.com/goserver/core/basic"
|
||||
|
@ -580,8 +579,8 @@ func CSDollChangeLog(s *netlib.Session, packetid int, data interface{}, sid int6
|
|||
info.UserName = log.UserName
|
||||
info.UserTel = log.UserTel
|
||||
info.Addr = log.Addr
|
||||
info.CreateTs = strconv.FormatInt(log.CreateTs, 10)
|
||||
info.OpTs = strconv.FormatInt(log.OpTs, 10)
|
||||
info.CreateTs = log.CreateTs.String()
|
||||
info.OpTs = log.OpTs.String()
|
||||
info.Remark = log.Remark
|
||||
pack.Info = append(pack.Info, info)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue