Browse Source

打开彭博接口检测

hongze 3 years ago
parent
commit
94525398ee
2 changed files with 1 additions and 5 deletions
  1. 1 1
      services/data/edb_info.go
  2. 0 4
      services/task.go

+ 1 - 1
services/data/edb_info.go

@@ -222,7 +222,7 @@ func CheckPbDataInterface(cont context.Context) (err error) {
 		}
 		result := string(body)
 		if result != "1" {
-			//go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"检测数据接口:失败提醒", "CheckPbDataInterface ErrMsg:"+string(body), utils.EmailSendToUsers)
+			go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"检测数据接口:失败提醒", "CheckPbDataInterface ErrMsg:"+string(body), utils.EmailSendToUsers)
 		}
 	}()
 	return

+ 0 - 4
services/task.go

@@ -116,10 +116,6 @@ func releaseTask() {
 	syncThsWxGroupEveryDay := task.NewTask("syncThsWxGroupEveryDay", "0 1 4 * * * ", SyncWxGroupEveryDay)
 	task.AddTask("定时往同花顺同步微信群的截止日期", syncThsWxGroupEveryDay)
 
-	//刷新计算指标数据
-	//refreshCalculateData := task.NewTask("refreshCalculateData", "0 15 0,19 * * *", RefreshCalculateData)
-	//task.AddTask("refreshCalculateData", refreshCalculateData)
-
 	checkDataInterface := task.NewTask("checkDataInterface", "0 */2 * * * * ", data.CheckDataInterface)
 	task.AddTask("checkDataInterface", checkDataInterface)