新手引导测试代码

This commit is contained in:
sk 2024-11-05 14:48:59 +08:00
parent be6a9981cb
commit 9e85b4a1a7
1 changed files with 15 additions and 0 deletions

View File

@ -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{}) {