瀏覽代碼

fix:图表详情埋点

zqbao 10 月之前
父節點
當前提交
fe16dac469
共有 1 個文件被更改,包括 4 次插入0 次删除
  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()
 	}()