Jelajahi Sumber

fix:图表详情埋点

zqbao 9 bulan lalu
induk
melakukan
5e4e2f4524
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      controllers/chart_common.go

+ 3 - 0
controllers/chart_common.go

@@ -10,6 +10,7 @@ import (
 	"eta/eta_chart_lib/models/data_manage/future_good/response"
 	line_equationReq "eta/eta_chart_lib/models/data_manage/line_equation/request"
 	line_featureReq "eta/eta_chart_lib/models/data_manage/line_feature/request"
+	"eta/eta_chart_lib/services/alarm_msg"
 	"eta/eta_chart_lib/services/data"
 	correlationServ "eta/eta_chart_lib/services/data/correlation"
 	"eta/eta_chart_lib/services/data/cross_variety"
@@ -65,8 +66,10 @@ func (this *ChartController) CommonChartInfoDetailFromUniqueCode() {
 		if err != nil {
 			br.Msg = "获取失败"
 			br.ErrMsg = "获取收藏状态失败,Err:" + err.Error()
+			alarm_msg.SendAlarmMsg(fmt.Sprintf("收藏状态失败,Err:%s", err.Error()), 1)
 			return
 		}
+		alarm_msg.SendAlarmMsg(fmt.Sprintf("收藏状态:%t", tmpIsCollect), 1)
 		isCollect = tmpIsCollect
 	}
 	//判断是否有缓存