From 2b0f7b1e286d639ad5d92507f1802c2d72c8e975 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 20 Sep 2024 10:23:01 +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 --- gamesrv/tienlen/scenepolicy_tienlen.go | 4 ++++ worldsrv/action_player.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gamesrv/tienlen/scenepolicy_tienlen.go b/gamesrv/tienlen/scenepolicy_tienlen.go index cc47b8e..cf2d3f1 100644 --- a/gamesrv/tienlen/scenepolicy_tienlen.go +++ b/gamesrv/tienlen/scenepolicy_tienlen.go @@ -970,6 +970,10 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) { playerEx.robotGameTimes-- sceneEx.robotGamingNum++ } + if _, ok := sceneEx.BilledList[playerEx.SnId]; !ok { + arr := make([]*BilledInfo, 0) + sceneEx.BilledList[playerEx.SnId] = &arr + } } } } diff --git a/worldsrv/action_player.go b/worldsrv/action_player.go index 6872db0..2cf349a 100644 --- a/worldsrv/action_player.go +++ b/worldsrv/action_player.go @@ -2663,7 +2663,7 @@ func CSBindTel(s *netlib.Session, packetId int, data interface{}, sid int64) err Platform: p.Platform, SnId: p.SnId, InviteSnId: p.InviterId, - Tp: common.InviteScoreTypeBind, + Tp: common.InviteScoreTypeBindTel, Score: cfg.GetBindTelScore(), Ts: time.Now().Unix(), Money: 0,