Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
wsmock
Commits
05559354
Commit
05559354
authored
Jan 28, 2026
by
p x
Browse files
调整推送时间
parent
e2f0c9c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/com/inzy/wsmock/push/AvpPushTask.kt
View file @
05559354
...
@@ -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
(
1
8
000
)
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
(
2
000
)
delay
(
18
*
1
000
)
preDst
.
forEachIndexed
{
index
,
string
->
preDst
.
forEachIndexed
{
index
,
string
->
// println("index = ${index}")
// println("index = ${index}")
sendMsg
(
channel
,
string
)
sendMsg
(
channel
,
string
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment