From 96f87f8b625e7d7b548214441010282a2042865b Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 20 Sep 2024 10:43:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=91=E5=AE=9A=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=A7=AF=E5=88=86=E5=92=8C=E7=AB=9E=E6=8A=80=E9=A6=86?= =?UTF-8?q?=E5=AF=B9=E5=B1=80=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_player.go | 2 +- worldsrv/action_welfare.go | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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) {