+ Add download btn for gitfox repo.

This commit is contained in:
caoyanyi
2024-03-19 09:57:20 +08:00
parent f48ce4b9a2
commit d2587e3448
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -814,7 +814,12 @@ class gitfox
*/
public function getDownloadUrl($branch = 'master', $savePath = '', $ext = 'zip')
{
return '';
$params = array();
$params['git_ref'] = $branch;
$params['format'] = $ext;
$params['access_token'] = $this->token;
return "{$this->root}archive" . '?' . http_build_query($params);
}
/**