This commit is contained in:
cdle
2021-09-30 17:41:33 +08:00
parent d857e5db63
commit d656fe467b
+2 -1
View File
@@ -11,12 +11,14 @@ import (
func init() {
go func() {
v := sillyGirl.Get("rebootInfo")
defer sillyGirl.Set("rebootInfo", "")
if v != "" {
vv := strings.Split(v, " ")
tp, cd, ud := vv[0], Int(vv[1]), Int(vv[2])
if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { //
time.Sleep(time.Second * 10)
NotifyMasters("自动更新完成。")
return
}
msg := "重启完成。"
@@ -34,7 +36,6 @@ func init() {
}
time.Sleep(time.Second)
}
sillyGirl.Set("rebootInfo", "")
}
}()
}