|
@@ -1502,10 +1502,10 @@ func ResetEdbInfoIsUpdate(cont context.Context) (err error) {
|
|
|
func CheckWindDataInterface(cont context.Context) (err error) {
|
|
|
for _, hzDataWindUrl := range utils.Hz_Data_WIND_Url_List {
|
|
|
go func(urlStr string) {
|
|
|
- checkUrl := utils.Hz_Data_WIND_Url + `hz_server`
|
|
|
+ checkUrl := urlStr + `hz_server`
|
|
|
body, err := http.Get(checkUrl)
|
|
|
if err != nil {
|
|
|
- msg := fmt.Sprintf("检测%s失败:CheckWindDataInterface ErrMsg:%s", urlStr, err.Error())
|
|
|
+ msg := fmt.Sprintf("检测:%s 失败:CheckWindDataInterface ErrMsg:%s", checkUrl, err.Error())
|
|
|
//go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"检测数据接口:失败提醒", "检测路透数据服务器失败:CheckLtDataInterface ErrMsg:"+err.Error(), utils.EmailSendToUsers)
|
|
|
go alarm_msg.SendAlarmMsg(msg, 3)
|
|
|
} else {
|
|
@@ -1513,7 +1513,7 @@ func CheckWindDataInterface(cont context.Context) (err error) {
|
|
|
if result != `"wind true"` {
|
|
|
//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", urlStr, string(body))
|
|
|
+ msg := fmt.Sprintf("检测%s失败:CheckWindDataInterface ErrMsg:%s", checkUrl, string(body))
|
|
|
go alarm_msg.SendAlarmMsg(msg, 3)
|
|
|
}
|
|
|
}
|