Compare commits
No commits in common. "f10e583aa8692adb4b059c43c1097280a608280a" and "28edd048edeb10a5a7b0a3cac550b78c25486c7a" have entirely different histories.
f10e583aa8
...
28edd048ed
|
|
@ -231,12 +231,15 @@ func ScanDeviceStatus() {
|
|||
devices := worker.GetRedisSetMembers("627gyf3488h")
|
||||
offline := ""
|
||||
for _, v := range devices {
|
||||
res := worker.GetRedis(v)
|
||||
if res == "" {
|
||||
c := worker.IsContainKey("monitor_" + v)
|
||||
if c == false {
|
||||
worker.SetRedisWithExpire("monitor_"+v, "1", time.Hour*24)
|
||||
worker.SetRedisWithExpire("monitor_"+v, "1", time.Hour*12)
|
||||
offline += v + ","
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if offline != "" {
|
||||
title := "设备状态异常"
|
||||
|
|
|
|||
Loading…
Reference in New Issue