zqbao hai 11 meses
pai
achega
88ce2f9285
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      controllers/my_chart.go

+ 2 - 4
controllers/my_chart.go

@@ -255,10 +255,8 @@ func (this *MyChartController) Locate() {
 func (this *MyChartController) Detail() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
-		if br.Ret != 200 {
-			errb, _ := json.Marshal(br)
-			alarm_msg.SendAlarmMsg(fmt.Sprintf("获得图表详情失败:%s, user:%d", string(errb), this.User.UserId), 1)
-		}
+		b, _ := json.Marshal(br)
+		alarm_msg.SendAlarmMsg(fmt.Sprintf("获得图表详情:%s, user:%d", string(b), this.User.UserId), 1)
 		this.Data["json"] = br
 		this.ServeJSON()
 	}()