Modify: auth instance as first param in SignURI/Request

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

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,
)