Skip to content

Commit

Permalink
fix: file path assign branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhizheng committed Jul 16, 2021
1 parent 145475b commit 2a1c5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func GetFiles() []map[string]interface{} {
}

for _, v := range mapResult{
v["download_url"] = "https://cdn.jsdelivr.net/gh/"+ flag_handle.OWNER + "/" +flag_handle.REPO + "@master/" + v["path"].(string)
v["download_url"] = "https://cdn.jsdelivr.net/gh/"+ flag_handle.OWNER + "/" +flag_handle.REPO + "@"+flag_handle.BRANCH+"/" + v["path"].(string)
}
return mapResult
}
Expand Down

0 comments on commit 2a1c5ff

Please sign in to comment.