|
@@ -1519,23 +1519,6 @@ func CheckWindDataInterface(cont context.Context) (err error) {
|
|
}
|
|
}
|
|
}(hzDataWindUrl)
|
|
}(hzDataWindUrl)
|
|
}
|
|
}
|
|
-
|
|
|
|
- go func() {
|
|
|
|
- checkUrl := utils.Hz_Data_WIND_Url + `hz_server`
|
|
|
|
- body, err := http.Get(checkUrl)
|
|
|
|
- if err != nil {
|
|
|
|
- //go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"检测数据接口:失败提醒", "检测路透数据服务器失败:CheckLtDataInterface ErrMsg:"+err.Error(), utils.EmailSendToUsers)
|
|
|
|
- msg := "检测Wind数据服务器2失败:CheckWindDataInterface ErrMsg:" + err.Error()
|
|
|
|
- go alarm_msg.SendAlarmMsg(msg, 3)
|
|
|
|
- } else {
|
|
|
|
- result := string(body)
|
|
|
|
- if result != `"wind true"` {
|
|
|
|
- //go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"检测数据接口:失败提醒", "检测路透数据服务器失败:CheckLtDataInterface ErrMsg:"+string(body), utils.EmailSendToUsers)
|
|
|
|
- msg := "检测Wind数据服务器2失败:CheckWindDataInterface ErrMsg:" + string(body)
|
|
|
|
- go alarm_msg.SendAlarmMsg(msg, 3)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }()
|
|
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|