From e74b50544622728a75f29d93cef4ea9c9d26f688 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 16 四月 2020 11:31:47 +0800
Subject: [PATCH] uasa unit test

---
 controllers/swfsControllers.go |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/controllers/swfsControllers.go b/controllers/swfsControllers.go
index fd5ebca..cd4c6f0 100644
--- a/controllers/swfsControllers.go
+++ b/controllers/swfsControllers.go
@@ -122,8 +122,10 @@
 		fmt.Println("ip: ", ip)
 		url := "http://" + ip + ":7020/node/api-v/swfs/updateSWFSService"
 		fmt.Println("url", url)
-		http.Get(url)
-		fmt.Println("璇锋眰瀹屾瘯")
+		resp, _ := http.Get(url)
+		if resp.StatusCode == 200 {
+			fmt.Println("璇锋眰瀹屾瘯", resp.StatusCode)
+		}
 	}
 }
 

--
Gitblit v1.8.0