解决冲突
This commit is contained in:
commit
27f70e1a94
|
@ -209,7 +209,7 @@ type ThirteenWaterPerson struct {
|
||||||
EndName string // 尾墩牌型名称
|
EndName string // 尾墩牌型名称
|
||||||
SpecialName string // 特殊牌型名称
|
SpecialName string // 特殊牌型名称
|
||||||
IsDP bool // 是否倒排
|
IsDP bool // 是否倒排
|
||||||
TestLog []string
|
TestLog []string `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// 二人麻将
|
// 二人麻将
|
||||||
|
@ -1554,7 +1554,7 @@ type TienLenPerson struct {
|
||||||
DelOrderCards map[int][]int32 //已出牌
|
DelOrderCards map[int][]int32 //已出牌
|
||||||
CardInfoEnd []int32 //结算时的牌型
|
CardInfoEnd []int32 //结算时的牌型
|
||||||
IsTianHu bool //是否天胡
|
IsTianHu bool //是否天胡
|
||||||
TestLog []string
|
TestLog []string `json:"-"`
|
||||||
WinRankScore int64 // 排位积分变化(包含额外加分)
|
WinRankScore int64 // 排位积分变化(包含额外加分)
|
||||||
RankScore int64 // 排位积分
|
RankScore int64 // 排位积分
|
||||||
AddScore int64 // 排位积额外加分
|
AddScore int64 // 排位积额外加分
|
||||||
|
|
|
@ -1638,8 +1638,8 @@ func (this *Player) OnMiniTimer() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 长时间掉线又没有删除缓存
|
// 长时间掉线又没有删除缓存
|
||||||
if !this.dropTime.IsZero() && this.scene == nil && time.Now().Sub(this.dropTime).Minutes() > 20 {
|
if this.IsOffline() && time.Now().Sub(this.LastLogoutTime) > time.Hour*2 {
|
||||||
logger.Logger.Errorf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
|
logger.Logger.Warnf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue