娃娃机视频流自动关闭打开
This commit is contained in:
parent
d269955408
commit
bc5c3c3324
|
@ -110,7 +110,6 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data
|
||||||
if msg.Result == 1 {
|
if msg.Result == 1 {
|
||||||
// 获得娃娃卡
|
// 获得娃娃卡
|
||||||
|
|
||||||
playerEx.CatchCardClawdoll()
|
|
||||||
playerEx.IsWin = true
|
playerEx.IsWin = true
|
||||||
logger.Logger.Tracef("下抓成功!!!!!!!!!!!!snid = %v", msg.Snid)
|
logger.Logger.Tracef("下抓成功!!!!!!!!!!!!snid = %v", msg.Snid)
|
||||||
} else {
|
} else {
|
||||||
|
@ -118,6 +117,8 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data
|
||||||
playerEx.IsWin = false
|
playerEx.IsWin = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
playerEx.CatchCardClawdoll()
|
||||||
|
|
||||||
logger.Logger.Tracef("ClawDoll StatePlayGame OnPlayerOp Grab response, SnId= %v", msg.Snid)
|
logger.Logger.Tracef("ClawDoll StatePlayGame OnPlayerOp Grab response, SnId= %v", msg.Snid)
|
||||||
|
|
||||||
s.ChangeSceneState(rule.ClawDollSceneStateBilled)
|
s.ChangeSceneState(rule.ClawDollSceneStateBilled)
|
||||||
|
|
|
@ -132,7 +132,7 @@ func (this *SceneEx) OnPlayerEnter(p *base.Player, reason int) {
|
||||||
if this.GetPlayerNum() >= 1 {
|
if this.GetPlayerNum() >= 1 {
|
||||||
logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerEnter, GetPlayerNum = ", this.GetPlayerNum())
|
logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerEnter, GetPlayerNum = ", this.GetPlayerNum())
|
||||||
// 发送http Get请求 恢复直播间流
|
// 发送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 {
|
if len(this.players) <= 0 {
|
||||||
logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerLeave, cur player num = ", len(this.players))
|
logger.Logger.Trace("Clawdoll (*SceneEx) OnPlayerLeave, cur player num = ", len(this.players))
|
||||||
// 发送http Get请求 关闭直播间流
|
// 发送http Get请求 关闭直播间流
|
||||||
//operateTask(this, 2, rule.Zego_ForbidRTCStream, p.Platform)
|
operateTask(this, 2, rule.Zego_ForbidRTCStream, p.Platform)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue