修复监控的设备时间未修改导致每天都发送邮件通知
This commit is contained in:
parent
268d646d71
commit
a730599641
|
|
@ -60,7 +60,7 @@ func SetDeviceStatusV2(c *gin.Context) {
|
|||
for _, v := range devices {
|
||||
if v == req.ID {
|
||||
// 继续处理请求
|
||||
worker.SetRedisWithExpire(req.ID, "1", time.Second*300)
|
||||
worker.SetRedisWithExpire("monitor_"+req.ID, "1", time.Second*300)
|
||||
c.JSON(200, gin.H{"code": 0, "message": "success"})
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue