Commit a88ffad6 authored by 赵威's avatar 赵威

update warning time

parent f4e7ec37
...@@ -110,7 +110,7 @@ object Main extends LazyLogging { ...@@ -110,7 +110,7 @@ object Main extends LazyLogging {
logger.info(s"${user.eventCn} ${deviceId}") logger.info(s"${user.eventCn} ${deviceId}")
val cost = streamTimeBegin - user.sendTimestamp val cost = streamTimeBegin - user.sendTimestamp
if (cost > 1500 && cost < 100000) { if (cost > 1500) {
deviceId == "64695DE0-B926-4188-9C62-D987DC20BEDF" deviceId == "64695DE0-B926-4188-9C62-D987DC20BEDF"
DingTalk.send( DingTalk.send(
Map( Map(
......
...@@ -63,7 +63,7 @@ object Redis { ...@@ -63,7 +63,7 @@ object Redis {
} }
client.expire(key, 60 * 60 * 24 * 15) client.expire(key, 60 * 60 * 24 * 15)
val total = System.currentTimeMillis - timeBegin val total = System.currentTimeMillis - timeBegin
if (total > 1000 && total < 50000) { if (total > 1500) {
DingTalk.send( DingTalk.send(
Map( Map(
"method" -> "Redis.save", "method" -> "Redis.save",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment