From 4de80e3e742e1db4ec40e7ae63f9c5275717bcab Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 4 Nov 2024 10:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E6=89=8B=E5=BC=95?= =?UTF-8?q?=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/player.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/worldsrv/player.go b/worldsrv/player.go index 9d52af7..5781c64 100644 --- a/worldsrv/player.go +++ b/worldsrv/player.go @@ -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 } }