From bc5c3c3324040c216e20ff0a18de71f4c2bb58c5 Mon Sep 17 00:00:00 2001 From: kxdd Date: Wed, 25 Sep 2024 15:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A8=83=E5=A8=83=E6=9C=BA=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=B5=81=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=AD=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/clawdoll/action_clawdoll.go | 3 ++- gamesrv/clawdoll/scene_clawdoll.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gamesrv/clawdoll/action_clawdoll.go b/gamesrv/clawdoll/action_clawdoll.go index 3b5ae25..ab4f06c 100644 --- a/gamesrv/clawdoll/action_clawdoll.go +++ b/gamesrv/clawdoll/action_clawdoll.go @@ -110,7 +110,6 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data if msg.Result == 1 { // 获得娃娃卡 - playerEx.CatchCardClawdoll() playerEx.IsWin = true logger.Logger.Tracef("下抓成功!!!!!!!!!!!!snid = %v", msg.Snid) } else { @@ -118,6 +117,8 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data playerEx.IsWin = false } + playerEx.CatchCardClawdoll() + logger.Logger.Tracef("ClawDoll StatePlayGame OnPlayerOp Grab response, SnId= %v", msg.Snid) s.ChangeSceneState(rule.ClawDollSceneStateBilled) diff --git a/gamesrv/clawdoll/scene_clawdoll.go b/gamesrv/clawdoll/scene_clawdoll.go index 56e9e5d..ca0da9d 100644 --- a/gamesrv/clawdoll/scene_clawdoll.go +++ b/gamesrv/clawdoll/scene_clawdoll.go @@ -132,7 +132,7 @@ func (this *SceneEx) OnPlayerEnter(p *base.Player, reason int) { if this.GetPlayerNum() >= 1 { logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerEnter, GetPlayerNum = ", this.GetPlayerNum()) // 发送http Get请求 恢复直播间流 - //operateTask(this, 2, rule.Zego_ResumeRTCStream, p.Platform) + operateTask(this, 2, rule.Zego_ResumeRTCStream, p.Platform) } } @@ -150,7 +150,7 @@ func (this *SceneEx) OnPlayerLeave(p *base.Player, reason int) { if len(this.players) <= 0 { logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerLeave, cur player num = ", len(this.players)) // 发送http Get请求 关闭直播间流 - //operateTask(this, 2, rule.Zego_ForbidRTCStream, p.Platform) + operateTask(this, 2, rule.Zego_ForbidRTCStream, p.Platform) } }