Compare commits

..

2 Commits

Author SHA1 Message Date
sk 7d9477b53c Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop 2024-11-04 10:28:18 +08:00
sk 4de80e3e74 修复新手引导 2024-11-04 10:25:52 +08:00
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
}
}