Merge branch 'release' into develop
This commit is contained in:
commit
19ebda3832
|
@ -970,6 +970,10 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
|
||||||
playerEx.robotGameTimes--
|
playerEx.robotGameTimes--
|
||||||
sceneEx.robotGamingNum++
|
sceneEx.robotGamingNum++
|
||||||
}
|
}
|
||||||
|
if _, ok := sceneEx.BilledList[playerEx.SnId]; !ok {
|
||||||
|
arr := make([]*BilledInfo, 0)
|
||||||
|
sceneEx.BilledList[playerEx.SnId] = &arr
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2663,8 +2663,8 @@ func CSBindTel(s *netlib.Session, packetId int, data interface{}, sid int64) err
|
||||||
SaveInviteScore(&model.InviteScore{
|
SaveInviteScore(&model.InviteScore{
|
||||||
Platform: p.Platform,
|
Platform: p.Platform,
|
||||||
SnId: p.SnId,
|
SnId: p.SnId,
|
||||||
InviteSnId: p.InviterId,
|
InviteSnId: p.PSnId,
|
||||||
Tp: common.InviteScoreTypeBind,
|
Tp: common.InviteScoreTypeBindTel,
|
||||||
Score: cfg.GetBindTelScore(),
|
Score: cfg.GetBindTelScore(),
|
||||||
Ts: time.Now().Unix(),
|
Ts: time.Now().Unix(),
|
||||||
Money: 0,
|
Money: 0,
|
||||||
|
|
|
@ -192,7 +192,7 @@ func init() {
|
||||||
netlib.RegisterHandler(int(serverproto.SSPacketID_PACKET_GW_AUDIENCELEAVE), netlib.HandlerWrapper(func(s *netlib.Session, packetid int, pack interface{}) error {
|
netlib.RegisterHandler(int(serverproto.SSPacketID_PACKET_GW_AUDIENCELEAVE), netlib.HandlerWrapper(func(s *netlib.Session, packetid int, pack interface{}) error {
|
||||||
logger.Logger.Trace("receive PACKET_GW_AUDIENCELEAVE GWPlayerLeave:", pack)
|
logger.Logger.Trace("receive PACKET_GW_AUDIENCELEAVE GWPlayerLeave:", pack)
|
||||||
if msg, ok := pack.(*serverproto.GWPlayerLeave); ok {
|
if msg, ok := pack.(*serverproto.GWPlayerLeave); ok {
|
||||||
scene := SceneMgrSingleton.GetScene(int(msg.GetRoomId()))
|
scene := SceneMgrSingleton.GetScene(int(msg.GetRoomId()), true)
|
||||||
if scene != nil {
|
if scene != nil {
|
||||||
p := PlayerMgrSington.GetPlayerBySnId(msg.GetPlayerId())
|
p := PlayerMgrSington.GetPlayerBySnId(msg.GetPlayerId())
|
||||||
if p != nil {
|
if p != nil {
|
||||||
|
|
|
@ -459,6 +459,17 @@ func CSBindInvite(s *netlib.Session, packetid int, data interface{}, sid int64)
|
||||||
Ts: now.Unix(),
|
Ts: now.Unix(),
|
||||||
Money: 0,
|
Money: 0,
|
||||||
})
|
})
|
||||||
|
if len(p.Tel) > 0 {
|
||||||
|
SaveInviteScore(&model.InviteScore{
|
||||||
|
Platform: p.Platform,
|
||||||
|
SnId: p.SnId,
|
||||||
|
InviteSnId: inviteSnId,
|
||||||
|
Tp: common.InviteScoreTypeBindTel,
|
||||||
|
Score: cfg.GetBindTelScore(),
|
||||||
|
Ts: time.Now().Unix(),
|
||||||
|
Money: 0,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
|
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
|
||||||
|
|
|
@ -84,7 +84,7 @@ func (p *PlayerNotify) SendToClient(tp common.NotifyType, packetId int, pack int
|
||||||
if len(d.GetDatas()) == 0 {
|
if len(d.GetDatas()) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
scene := SceneMgrSingleton.GetScene(int(d.GetDatas()[0].GetRoomId()))
|
scene := SceneMgrSingleton.GetScene(int(d.GetDatas()[0].GetRoomId()), true)
|
||||||
if scene == nil {
|
if scene == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue