修复问题

pull/51/merge
Minho 2017-06-02 16:44:44 +08:00
parent 4459f76a17
commit 696d73a3a3
1 changed files with 3 additions and 3 deletions

View File

@ -33,12 +33,12 @@ func CheckUpdate() {
}
err = json.Unmarshal(body, &result)
fmt.Println("MinDoc current version => ", conf.VERSION)
if err != nil {
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)
os.Exit(0)