Compare commits
2 Commits
343a7a7abb
...
053484de8e
Author | SHA1 | Date |
---|---|---|
|
053484de8e | |
|
1d1bf56695 |
|
@ -1146,14 +1146,18 @@ func (this *StateShow) OnEnter(s *base.Scene) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if n == 2 && sceneEx.specialTypeNum > 0 {
|
|
||||||
|
normalNum := n - sceneEx.specialTypeNum
|
||||||
|
|
||||||
|
if normalNum > 1 {
|
||||||
|
sceneEx.specialTime += time.Second * time.Duration(5)
|
||||||
|
}
|
||||||
|
if sceneEx.specialTypeNum > 0 {
|
||||||
if has {
|
if has {
|
||||||
sceneEx.specialTime += time.Millisecond * 5500
|
sceneEx.specialTime += time.Millisecond * 5500
|
||||||
} else {
|
} else {
|
||||||
sceneEx.specialTime += time.Millisecond * 4500
|
sceneEx.specialTime += time.Millisecond * 4500
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
sceneEx.specialTime = time.Second * time.Duration(5)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Logger.Tracef("show cards: %v %v", n, sceneEx.specialTime)
|
logger.Logger.Tracef("show cards: %v %v", n, sceneEx.specialTime)
|
||||||
|
|
|
@ -1638,11 +1638,8 @@ func (this *Player) OnMiniTimer() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 长时间掉线又没有删除缓存
|
// 长时间掉线又没有删除缓存
|
||||||
if !this.dropTime.IsZero() && time.Now().Sub(this.dropTime).Minutes() > 20 {
|
if !this.dropTime.IsZero() && this.scene == nil && time.Now().Sub(this.dropTime).Minutes() > 20 {
|
||||||
logger.Logger.Errorf("清除缓存异常玩家 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
|
logger.Logger.Errorf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
|
||||||
if this.scene != nil {
|
|
||||||
logger.Logger.Errorf("清除缓存异常玩家 sceneId:%v", this.scene.sceneId)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue