diff --git a/worldsrv/action_player.go b/worldsrv/action_player.go index 2cf349a..a3f5c09 100644 --- a/worldsrv/action_player.go +++ b/worldsrv/action_player.go @@ -2662,7 +2662,7 @@ func CSBindTel(s *netlib.Session, packetId int, data interface{}, sid int64) err SaveInviteScore(&model.InviteScore{ Platform: p.Platform, SnId: p.SnId, - InviteSnId: p.InviterId, + InviteSnId: p.PSnId, Tp: common.InviteScoreTypeBindTel, Score: cfg.GetBindTelScore(), Ts: time.Now().Unix(), diff --git a/worldsrv/action_welfare.go b/worldsrv/action_welfare.go index bc800d9..d96d9bb 100644 --- a/worldsrv/action_welfare.go +++ b/worldsrv/action_welfare.go @@ -459,6 +459,17 @@ func CSBindInvite(s *netlib.Session, packetid int, data interface{}, sid int64) Ts: now.Unix(), 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 }), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {