Compare commits
No commits in common. "88bbca47f1606bfe4eec07eeeec0410d831127ed" and "54a13fe8ae32d8560f0f7ceb1e98a166d10205ce" have entirely different histories.
88bbca47f1
...
54a13fe8ae
|
@ -227,7 +227,7 @@ func (svc *PlayerDataSvc) CreatePlayerDataByThird(args *model.CreatePlayer, ret
|
|||
var dataParams model.PlayerParams
|
||||
json.Unmarshal([]byte(a.Params), &dataParams)
|
||||
pd = model.NewPlayerDataThird(acc, name, args.HeadUrl, id, a.Channel, a.Platform, a.Params,
|
||||
a.Tel, a.PackegeTag, dataParams.Ip, a.TagKey, a.AccountType, a.DeviceOs, a.ChannelId)
|
||||
a.Tel, a.PackegeTag, dataParams.Ip, a.TagKey, a.AccountType, a.DeviceOs)
|
||||
if pd != nil {
|
||||
err = cplayerdata.Insert(pd)
|
||||
if err != nil {
|
||||
|
|
|
@ -981,7 +981,7 @@ func NewPlayerData(acc string, name string, id int32, channel, platform string,
|
|||
}
|
||||
|
||||
func NewPlayerDataThird(acc string, name, headUrl string, id int32, channel, platform string, params, tel string,
|
||||
packTag, ip string, tagkey, accountType int32, deviceOS, channelId string) *PlayerData {
|
||||
packTag, ip string, tagkey, accountType int32, deviceOS string) *PlayerData {
|
||||
if len(name) == 0 {
|
||||
logger.Logger.Trace("New player name is empty.")
|
||||
return nil
|
||||
|
@ -992,7 +992,6 @@ func NewPlayerDataThird(acc string, name, headUrl string, id int32, channel, pla
|
|||
AccountId: acc,
|
||||
Name: name,
|
||||
Channel: channel,
|
||||
ChannelId: channelId,
|
||||
Platform: platform,
|
||||
SnId: id,
|
||||
Head: rand.Int31n(common.HeadRange),
|
||||
|
|
|
@ -1938,9 +1938,6 @@ func CSPlayerData(s *netlib.Session, packetid int, data interface{}, sid int64)
|
|||
if (p.Channel == "" || p.Channel == "0") && p.Channel != msg.AppChannel {
|
||||
p.Channel = msg.AppChannel
|
||||
}
|
||||
if ls.als.acc.ChannelId != "" && p.ChannelId == "" {
|
||||
p.ChannelId = ls.als.acc.ChannelId
|
||||
}
|
||||
|
||||
if ls.clog != nil {
|
||||
PlayerSubjectSign.UpdateHeadUrl(p.SnId, ls.clog.HeadUrl)
|
||||
|
|
|
@ -485,7 +485,7 @@ func handlerEvent(ctx context.Context, completeKey string, isInit bool, event *c
|
|||
config := data.(*webapi.RoomType)
|
||||
PlatformMgrSingleton.UpdateRoomType(config)
|
||||
if !isInit {
|
||||
//PlayerMgrSington.BroadcastMessageToPlatform(config.GetPlatform(), int(0), nil)
|
||||
PlayerMgrSington.BroadcastMessageToPlatform(config.GetPlatform(), int(0), nil)
|
||||
}
|
||||
case clientv3.EventTypeDelete:
|
||||
if plt == "" || len(param) == 0 {
|
||||
|
@ -493,7 +493,7 @@ func handlerEvent(ctx context.Context, completeKey string, isInit bool, event *c
|
|||
}
|
||||
PlatformMgrSingleton.DelRoomType(plt, int32(param[0]))
|
||||
if !isInit {
|
||||
//PlayerMgrSington.BroadcastMessageToPlatform(plt, int(0), nil)
|
||||
PlayerMgrSington.BroadcastMessageToPlatform(plt, int(0), nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue