Skip to content

Commit

Permalink
版本查询仅取首条记录
Browse files Browse the repository at this point in the history
  • Loading branch information
hteen committed Nov 18, 2020
1 parent 41b1298 commit a578e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a578e71

Please sign in to comment.