sunty
2020-04-16 fa96e243e2adc6a72f41dbab7152e0312c657733
uasa unit test
1个文件已修改
2 ■■■■■ 已修改文件
controllers/swfsControllers.go 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/swfsControllers.go
@@ -118,11 +118,13 @@
//更新所有节点的脚本参数
func UpdateAllNodesScriptArgument(peersIp []string) {
    fmt.Println("开始更新本地配置文件")
    for _, ip := range peersIp {
        fmt.Println("ip: ", ip)
        url := "http://" + ip + ":7020/node/api-v/swfs/updateSWFSService"
        fmt.Println("url", url)
        resp, _ := http.Get(url)
        fmt.Println("更新返回状态:", resp.StatusCode)
        if resp.StatusCode == 200 {
            fmt.Println("请求完毕", resp.StatusCode)
        }