From 75f50f5a3a25457bf94bfee8daada4071deb39bd Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sat, 18 Sep 2021 20:52:54 +0800 Subject: [PATCH] update --- core/test.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/core/test.go b/core/test.go index 9cb2db1..3b787be 100644 --- a/core/test.go +++ b/core/test.go @@ -15,16 +15,19 @@ func init() { vv := strings.Split(v, " ") tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2]) msg := "重启完成。" - if cd == 0 { - Push(tp, ud, msg) - } else { - for i := 0; i < 10; i++ { + for i := 0; i < 10; i++ { + if cd == 0 { + if push, ok := Pushs[tp]; ok { + push(ud, msg) + break + } + } else { if push, ok := GroupPushs[tp]; ok { push(cd, ud, msg) break } - time.Sleep(time.Second) } + time.Sleep(time.Second) } sillyGirl.Set("rebootInfo", "") }