Selaa lähdekoodia

fix:检测调整

Roc 2 vuotta sitten
vanhempi
commit
4bb5bf811e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      services/data/edb_info.go

+ 1 - 1
services/data/edb_info.go

@@ -1469,7 +1469,7 @@ func CheckWindDataInterface(cont context.Context) (err error) {
 				go alarm_msg.SendAlarmMsg(msg, 3)
 			} else {
 				result := string(body)
-				if result != `"wind true"` {
+				if result != `1` {
 					//go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"检测数据接口:失败提醒", "检测路透数据服务器失败:CheckLtDataInterface ErrMsg:"+string(body), utils.EmailSendToUsers)
 					//msg := "检测Wind数据服务器2失败:CheckWindDataInterface ErrMsg:" + string(body)
 					msg := fmt.Sprintf("检测%s失败:CheckWindDataInterface ErrMsg:%s", checkUrl, string(body))