mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-23 10:36:29 +08:00
feat: add baidu_netdisk driver
This commit is contained in:
@@ -34,7 +34,7 @@ func (d *AliDrive) refreshToken() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *AliDrive) request(url, method string, callback func(*resty.Request), resp interface{}) ([]byte, error, RespErr) {
|
||||
func (d *AliDrive) request(url, method string, callback base.ReqCallback, resp interface{}) ([]byte, error, RespErr) {
|
||||
req := base.RestyClient.R()
|
||||
req.SetHeader("Authorization", "Bearer\t"+d.AccessToken)
|
||||
req.SetHeader("content-type", "application/json")
|
||||
|
||||
Reference in New Issue
Block a user