mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
* fix: correct the download url got by Cloudreve driver * fix: add an condition to the correction
This commit is contained in:
parent
c3c5181847
commit
793a4ea6ca
@ -71,6 +71,9 @@ func (d *Cloudreve) Link(ctx context.Context, file model.Obj, args model.LinkArg
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if strings.HasPrefix(dUrl, "/api") {
|
||||
dUrl = d.Address + dUrl
|
||||
}
|
||||
return &model.Link{
|
||||
URL: dUrl,
|
||||
}, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user