sunty
2020-04-16 e2ca6ba654f1371f3b375392e29e3fa070ad96ce
fix startup item
1个文件已修改
3 ■■■■ 已修改文件
controllers/swfsControllers.go 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/swfsControllers.go
@@ -167,6 +167,7 @@
    if httpRes.StatusCode == 200 {
        startupItem = string(body)
    }
    fmt.Println("Restart startupItem: ", startupItem)
    tick := time.Tick(1 * time.Second)
    fmt.Println("准备开始验证节点服务")
    for countdown := timeOut; countdown > 0; countdown-- {
@@ -184,7 +185,7 @@
//验证服务状态
func Verification(startupItem string, ip string) bool {
    resStatu := false
    fmt.Println(startupItem)
    fmt.Println("Verification startupItem: ", startupItem)
    switch startupItem {
    case StartScriptAsVolume:
        verificationVolumeUrl := "http://" + ip + ":6700/ui/index.html"