Compare commits

..

No commits in common. "27f70e1a948f9810cb27814e4182df8b12f7bf8c" and "dd43f9ea1ea276a46034177e234d6accfcd121e0" have entirely different histories.

4 changed files with 12 additions and 22 deletions

View File

@ -209,7 +209,7 @@ type ThirteenWaterPerson struct {
EndName string // 尾墩牌型名称
SpecialName string // 特殊牌型名称
IsDP bool // 是否倒排
TestLog []string `json:"-"`
TestLog []string
}
// 二人麻将
@ -1554,13 +1554,13 @@ type TienLenPerson struct {
DelOrderCards map[int][]int32 //已出牌
CardInfoEnd []int32 //结算时的牌型
IsTianHu bool //是否天胡
TestLog []string `json:"-"`
WinRankScore int64 // 排位积分变化(包含额外加分)
RankScore int64 // 排位积分
AddScore int64 // 排位积额外加分
BombRankScore int64 // 排位炸弹分
CardsScore int // 手牌分
FaPaiType int // 发牌类型
TestLog []string
WinRankScore int64 // 排位积分变化(包含额外加分)
RankScore int64 // 排位积分
AddScore int64 // 排位积额外加分
BombRankScore int64 // 排位炸弹分
CardsScore int // 手牌分
FaPaiType int // 发牌类型
}
// chesstitians

10
todo
View File

@ -1,10 +0,0 @@
mongodb库升级:
旧的库最高只支持mongodb4.0,并且不再维护了
dbproxy优化:
自动生成数据表操作代码, dao层
自动生成rpc代码
参考 https://go-zero.dev/ 中的goctl工具
消息队列数据恢复发送:
发送失败的消息会写入本地文件等mq正常后尝试重新发送

View File

@ -1122,7 +1122,7 @@ func (this *Player) GetMessageByGiftId(id string) *model.Message {
}
func (this *Player) IsOnLine() bool {
return this.state == PlayerStateOnline
return this.state != PlayerStateOffline
}
func (this *Player) SetOnline() {
@ -1130,7 +1130,7 @@ func (this *Player) SetOnline() {
}
func (this *Player) IsOffline() bool {
return this.state != PlayerStateOnline
return this.state == PlayerStateOffline
}
func (this *Player) SetOffline() {
@ -1638,8 +1638,8 @@ func (this *Player) OnMiniTimer() {
})
}
// 长时间掉线又没有删除缓存
if this.IsOffline() && time.Now().Sub(this.LastLogoutTime) > time.Hour*2 {
logger.Logger.Warnf("清除缓存异常 snid:%v dirty:%v lastLogoutTime:%v lastGameId:%v", this.SnId, this.dirty, this.LastLogoutTime, this.LastGameId)
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)
}
}