Modify: auth instance as first param in SignURI/Request

This commit is contained in:
HFO4 committed 2019-12-29 13:50:23 +08:00
1 parent b5ee3ee609
commit de4793aacb
7 files changed
+31 -27

No files matched your search

+2
View File
@@ -142,12 +142,14 @@ func (handler Handler) Source(
// 签名生成文件记录
signedURI, err = auth.SignURI(
auth.General,
fmt.Sprintf("/api/v3/file/download/%s", downloadSessionID),
expires,
)
} else {
// 签名生成文件记录
signedURI, err = auth.SignURI(
auth.General,
fmt.Sprintf("/api/v3/file/get/%d/%s", file.ID, file.Name),
expires,
)