Commit 05559354 authored by p x's avatar p x
Browse files

调整推送时间

parent e2f0c9c6
...@@ -150,7 +150,7 @@ class AvpPushTask( ...@@ -150,7 +150,7 @@ class AvpPushTask(
*/ */
private fun pushCarPos(channel: Channel) { private fun pushCarPos(channel: Channel) {
CoroutineScope(Dispatchers.Default).launch { CoroutineScope(Dispatchers.Default).launch {
delay(18000) delay(25*1000)
if (carVehPark?.rs?.count() == 0 || carVehCall?.rs?.count() == 0) if (carVehPark?.rs?.count() == 0 || carVehCall?.rs?.count() == 0)
return@launch return@launch
status = "park" status = "park"
...@@ -228,7 +228,7 @@ class AvpPushTask( ...@@ -228,7 +228,7 @@ class AvpPushTask(
private fun pushPre(channel: Channel) { private fun pushPre(channel: Channel) {
CoroutineScope(Dispatchers.Default).launch { CoroutineScope(Dispatchers.Default).launch {
if (preDst.isNotEmpty()) { if (preDst.isNotEmpty()) {
delay(2000) delay(18*1000)
preDst.forEachIndexed { index, string -> preDst.forEachIndexed { index, string ->
// println("index = ${index}") // println("index = ${index}")
sendMsg(channel, string) sendMsg(channel, string)
......
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