From a578e7119a9569e02fc2539e402199db89387ff7 Mon Sep 17 00:00:00 2001 From: hteen Date: Wed, 18 Nov 2020 16:33:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9F=A5=E8=AF=A2=E4=BB=85?= =?UTF-8?q?=E5=8F=96=E9=A6=96=E6=9D=A1=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8116e58..fcaba6d 100644 --- a/main.go +++ b/main.go @@ -423,7 +423,7 @@ func getValues(slice map[string]string) []string { // 版本查询 func getLatestVersion() { - _, bd, _ := gorequest.New().Get("https://api.github.com/repos/hteen/apple-store-helper/releases").End() + _, bd, _ := gorequest.New().Get("https://api.github.com/repos/hteen/apple-store-helper/releases?per_page=1").End() latest := gjson.Get(bd, "0.tag_name").String() if latest != "" { versionWgt.SetText("最新:"+latest)