Skip to content

Commit

Permalink
fix: 修复极狐的版本号获取
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 23, 2023
1 parent 9e58b61 commit 342b804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func GetPanelVersion(version string) (PanelInfo, error) {
isChina := IsChina()

if isChina {
output = Exec(`curl -sSL "https://jihulab.com/api/v4/projects/haozi-team%2Fpanel/releases/"` + version + `"`)
output = Exec(`curl -sSL "https://jihulab.com/api/v4/projects/haozi-team%2Fpanel/releases/` + version + `"`)
} else {
output = Exec(`curl -sSL "https://api.github.com/repos/haozi-team/panel/releases/tags/` + version + `"`)
}
Expand Down

0 comments on commit 342b804

Please sign in to comment.