This commit is contained in:
cdle
2021-09-18 20:52:54 +08:00
parent 3f0ca48028
commit 75f50f5a3a
+8 -5
View File
@@ -15,16 +15,19 @@ func init() {
vv := strings.Split(v, " ") vv := strings.Split(v, " ")
tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2]) tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2])
msg := "重启完成。" msg := "重启完成。"
if cd == 0 { for i := 0; i < 10; i++ {
Push(tp, ud, msg) if cd == 0 {
} else { if push, ok := Pushs[tp]; ok {
for i := 0; i < 10; i++ { push(ud, msg)
break
}
} else {
if push, ok := GroupPushs[tp]; ok { if push, ok := GroupPushs[tp]; ok {
push(cd, ud, msg) push(cd, ud, msg)
break break
} }
time.Sleep(time.Second)
} }
time.Sleep(time.Second)
} }
sillyGirl.Set("rebootInfo", "") sillyGirl.Set("rebootInfo", "")
} }