This commit is contained in:
cdle
2021-09-24 14:09:39 +08:00
parent 407feac19c
commit a4d0c9655a
+6 -7
View File
@@ -14,11 +14,10 @@ func init() {
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" { // if tp == "fake" {
time.Sleep(time.Second * 10) // NotifyMasters("自动更新完成。")
NotifyMasters("自动更新完成。") // return
return // }
}
msg := "重启完成。" msg := "重启完成。"
for i := 0; i < 10; i++ { for i := 0; i < 10; i++ {
if cd == 0 { if cd == 0 {
@@ -68,7 +67,7 @@ func initSys() {
s.Reply("核心功能已是最新。", E) s.Reply("核心功能已是最新。", E)
} else { } else {
record(need) record(need)
s.Reply("核心功能发现更新。", E, N) s.Reply("核心功能发现更新。", E)
} }
files, _ := ioutil.ReadDir(ExecPath + "/develop") files, _ := ioutil.ReadDir(ExecPath + "/develop")
for _, f := range files { for _, f := range files {
@@ -82,7 +81,7 @@ func initSys() {
s.Reply("扩展"+f.Name()+"已是最新。", E) s.Reply("扩展"+f.Name()+"已是最新。", E)
} else { } else {
record(need) record(need)
s.Reply("扩展"+f.Name()+"发现更新。", E, N) s.Reply("扩展"+f.Name()+"发现更新。", E)
} }
} }
} }