Browse Source

fix:图表详情埋点

zqbao 10 months ago
parent
commit
fe16dac469
1 changed files with 4 additions and 0 deletions
  1. 4 0
      controllers/chart_common.go

+ 4 - 0
controllers/chart_common.go

@@ -38,6 +38,10 @@ import (
 func (this *ChartController) CommonChartInfoDetailFromUniqueCode() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
+		if br.Ret != 200 {
+			b, _ := json.Marshal(br)
+			alarm_msg.SendAlarmMsg(string(b), 1)
+		}
 		this.Data["json"] = br
 		this.ServeJSON()
 	}()