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() { func init() {
go func() { go func() {
v := sillyGirl.Get("rebootInfo") v := sillyGirl.Get("rebootInfo")
defer sillyGirl.Set("rebootInfo", "")
if v != "" { if v != "" {
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])
if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { // if tp == "fake" && sillyGirl.GetBool("update_notify", false) == true { //
time.Sleep(time.Second * 10) time.Sleep(time.Second * 10)
NotifyMasters("自动更新完成。") NotifyMasters("自动更新完成。")
return return
} }
msg := "重启完成。" msg := "重启完成。"
@@ -34,7 +36,6 @@ func init() {
} }
time.Sleep(time.Second) time.Sleep(time.Second)
} }
sillyGirl.Set("rebootInfo", "")
} }
}() }()
} }