修复新手引导
This commit is contained in:
parent
e77714fded
commit
4de80e3e74
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue