update
This commit is contained in:
+8
-5
@@ -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", "")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user