娃娃机结算结果修改

This commit is contained in:
DESKTOP-45ANQ2C\unis 2024-10-10 10:31:45 +08:00
parent e38523c745
commit a125f5f959
2 changed files with 10 additions and 2 deletions

View File

@ -119,8 +119,6 @@ func MSDollMachineoCoinResultHandler(session *netlib.Session, packetId int, data
playerEx.IsWin = false
}
playerEx.SendPlayerGameBilled(int32(sceneEx.RoundId))
logger.Logger.Tracef("ClawDoll StatePlayGame OnPlayerOp Grab response, SnId= %v", msg.Snid)
s.ChangeSceneState(rule.ClawDollSceneStateBilled)

View File

@ -929,6 +929,16 @@ func (this *StateWaitPayCoin) OnEnter(s *base.Scene) {
func (this *StateWaitPayCoin) OnLeave(s *base.Scene) {
logger.Logger.Trace("(this *StateWaitPayCoin) OnLeave, sceneid=", s.GetSceneId())
this.BaseState.OnLeave(s)
sceneEx, ok := s.ExtraData.(*SceneEx)
if !ok {
return
}
playingEx := sceneEx.GetPlayingEx()
if playingEx != nil {
playingEx.SendPlayerGameBilled(int32(sceneEx.RoundId))
}
}
func (this *StateWaitPayCoin) OnTick(s *base.Scene) {