From 3baa00b5bb2f52924e44496f6d274828ae7a1692 Mon Sep 17 00:00:00 2001 From: gsw945 Date: Tue, 29 Jun 2021 13:56:41 +0800 Subject: [PATCH] =?UTF-8?q?version=E6=8C=87=E4=BB=A4=E4=BC=98=E5=85=88?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=9C=AC=E5=9C=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/update.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/update.go b/commands/update.go index 5fc18ebe..205d39cb 100644 --- a/commands/update.go +++ b/commands/update.go @@ -14,7 +14,9 @@ import ( //检查最新版本. func CheckUpdate() { - resp, err := http.Get("https://api.github.com/repos/lifei6671/mindoc/tags") + fmt.Println("MinDoc current version => ", conf.VERSION) + + resp, err := http.Get("https://api.github.com/repos/mindoc-org/mindoc/tags") if err != nil { logs.Error("CheckUpdate => ", err) @@ -33,7 +35,6 @@ func CheckUpdate() { } err = json.Unmarshal(body, &result) - fmt.Println("MinDoc current version => ", conf.VERSION) if err != nil { logs.Error("CheckUpdate => ", err) os.Exit(0)