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