Browse Source

fix:详情埋点

zqbao 11 months ago
parent
commit
412ead705e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      controllers/my_chart.go

+ 4 - 2
controllers/my_chart.go

@@ -254,8 +254,10 @@ func (this *MyChartController) Locate() {
 func (this *MyChartController) Detail() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
-		b, _ := json.Marshal(br)
-		alarm_msg.SendAlarmMsg(string(b), 1)
+		if br.Ret != 200 {
+			b, _ := json.Marshal(br)
+			alarm_msg.SendAlarmMsg(string(b), 1)
+		}
 		this.Data["json"] = br
 		this.ServeJSON()
 	}()