|
@@ -609,7 +609,17 @@ func RefreshCorrelationChartInfo(c *gin.Context) {
|
|
|
}
|
|
|
|
|
|
// 刷新图表
|
|
|
- _ = correlation.ChartInfoRefresh(chartInfo.ChartInfoId)
|
|
|
+ //_ = correlation.ChartInfoRefresh(chartInfo.ChartInfoId)
|
|
|
+
|
|
|
+ if err = chart.ChartInfoRefreshV2(chartInfo.ChartInfoId); err != nil {
|
|
|
+ errContent := fmt.Sprint("ErrMsg: 刷新图表关联指标信息失败, " + err.Error())
|
|
|
+ if global.CONFIG.Serve.RunMode == "release" {
|
|
|
+ go alarm_msg.SendAlarmMsg("刷新图表报错"+time.Now().Format("2006-01-02 15:04:05")+";Err:"+errContent, 3)
|
|
|
+ //go services.SendEmail("弘则研报小程序-release-刷新图表报错", errContent, utils.EmailSendToUsers)
|
|
|
+ } else {
|
|
|
+ global.LOG.Info(errContent)
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
//清除图表缓存
|
|
|
{
|