新手引导测试代码
This commit is contained in:
parent
be6a9981cb
commit
9e85b4a1a7
|
@ -350,6 +350,21 @@ func platformConfigEvent(ctx context.Context, completeKey string, isInit bool, e
|
||||||
default:
|
default:
|
||||||
logger.Logger.Errorf("etcd completeKey:%s, Not processed", completeKey)
|
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{}) {
|
func handlerEvent(ctx context.Context, completeKey string, isInit bool, event *clientv3.Event, data interface{}) {
|
||||||
|
|
Loading…
Reference in New Issue