Compare commits

...

12 Commits

Author SHA1 Message Date
sk 27f70e1a94 解决冲突 2024-11-27 10:31:06 +08:00
sk f71ea6ca19 修改日志 2024-11-27 10:04:09 +08:00
sk d28d1a2cde Merge branch 'release' of git.pogorockgames.com:mango-games/server/game into release 2024-11-27 07:08:50 +08:00
skeleton 5f31432a2c 还原十三张阶段时间和比牌时间 2024-11-26 20:54:31 +08:00
sk 9629db34e6 修复玩家缓存释放 2024-11-26 20:19:12 +08:00
sk 3db93982bf 修复玩家缓存释放 2024-11-26 20:11:26 +08:00
sk 616ee8369c 不保存游戏对局的调试日志 2024-11-26 19:20:39 +08:00
sk 9643c40d35 添加todo文件 2024-11-26 16:40:53 +08:00
DESKTOP-45ANQ2C\unis f25bef6555 道具表更新 2024-11-26 14:42:58 +08:00
sk ff3de2f2a0 修复牌库发牌问题 2024-11-26 14:41:26 +08:00
sk 5a9325a2ce no message 2024-11-26 14:41:09 +08:00
DESKTOP-45ANQ2C\unis 9b3d0aeb6e 道具合成修改活动日志 2024-11-26 14:40:57 +08:00
4 changed files with 22 additions and 12 deletions

View File

@ -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 // 排位积额外加分

10
todo Normal file
View File

@ -0,0 +1,10 @@
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 { func (this *Player) IsOnLine() bool {
return this.state != PlayerStateOffline return this.state == PlayerStateOnline
} }
func (this *Player) SetOnline() { func (this *Player) SetOnline() {
@ -1130,7 +1130,7 @@ func (this *Player) SetOnline() {
} }
func (this *Player) IsOffline() bool { func (this *Player) IsOffline() bool {
return this.state == PlayerStateOffline return this.state != PlayerStateOnline
} }
func (this *Player) SetOffline() { func (this *Player) SetOffline() {
@ -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)
} }
} }