修复新手引导

This commit is contained in:
sk 2024-11-04 10:25:52 +08:00
parent e77714fded
commit 4de80e3e74
1 changed files with 9 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import (
playerproto "mongo.games.com/game/protocol/player"
"mongo.games.com/game/protocol/rankmatch"
serverproto "mongo.games.com/game/protocol/server"
"mongo.games.com/game/protocol/webapi"
"mongo.games.com/game/srvdata"
"mongo.games.com/game/worldsrv/internal"
)
@ -321,7 +322,14 @@ func (this *Player) OnLogined() {
if !this.IsRob {
if isFirstLogin {
cfg := PlatformMgrSingleton.GetConfig(this.Platform).GuideConfig
if cfg == nil || cfg.Info[1] == nil || cfg.Info[1].GetOn() != common.On {
var info *webapi.GuideInfo
for _, v := range cfg.GetInfo() {
if v.GetGuideId() == common.GuideIdNewPlayer {
info = v
break
}
}
if info == nil || info.GetOn() != common.On {
this.GuideStep = -1
}
}