Browse Source

update 修复双控告警 时间差8小时

dev
lucas 2 weeks ago
parent
commit
d6cacf420c
  1. 2
      consumers/consumerAxySkAlarm.go

2
consumers/consumerAxySkAlarm.go

@ -241,7 +241,7 @@ func (the *consumerAxySkAlarm) skAlarmInfo(alarmInfoTemplate *models.EsAlarm, le
AlarmTypeCode: "3077",
AlarmCode: fmt.Sprintf("3077000%d", level),
Content: detail,
Time: alarmTime.Format("2006-01-02T15:04:05+0800"),
Time: alarmTime.Add(8 * time.Hour).Format("2006-01-02T15:04:05+0800"),
SourceTypeId: 2, // 0:DTU, 1:传感器, 2:测点
Sponsor: "goInOut_axySkAlarm",
Extras: nil,

Loading…
Cancel
Save