mirror of https://github.com/mindoc-org/mindoc.git
修复问题
parent
4459f76a17
commit
696d73a3a3
|
@ -33,12 +33,12 @@ func CheckUpdate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
err = json.Unmarshal(body, &result)
|
err = json.Unmarshal(body, &result)
|
||||||
|
fmt.Println("MinDoc current version => ", conf.VERSION)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
beego.Error("CheckUpdate => ", err)
|
beego.Error("CheckUpdate => ", err)
|
||||||
os.Exit(1)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
fmt.Println("MinDoc current version => ", conf.VERSION)
|
|
||||||
fmt.Println("MinDoc last version => ", result[0].Name)
|
fmt.Println("MinDoc last version => ", result[0].Name)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue