sunty
2020-04-16 fa96e243e2adc6a72f41dbab7152e0312c657733
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)
      }