From 9e85b4a1a7ee9209b61458d97ef80ae268dde9f8 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 5 Nov 2024 14:48:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=89=8B=E5=BC=95=E5=AF=BC=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/etcd.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/worldsrv/etcd.go b/worldsrv/etcd.go index 12c81b6..dcb5ba5 100644 --- a/worldsrv/etcd.go +++ b/worldsrv/etcd.go @@ -350,6 +350,21 @@ func platformConfigEvent(ctx context.Context, completeKey string, isInit bool, e default: logger.Logger.Errorf("etcd completeKey:%s, Not processed", completeKey) } + + PlatformMgrSingleton.GetConfig("1").GuideConfig = &webapi.GuideConfig{ + Platform: "1", + Info: []*webapi.GuideInfo{ + { + On: 1, + Skip: 1, + GuideId: 1, + Awards: nil, + MaxStep: 4, + AwardStep: 2, + Url: "", + }, + }, + } } func handlerEvent(ctx context.Context, completeKey string, isInit bool, event *clientv3.Event, data interface{}) {