Ver código fonte

fix:图表详情

zqbao 10 meses atrás
pai
commit
ab9ebc836e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      controllers/my_chart.go

+ 1 - 1
controllers/my_chart.go

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