Feat: adapt new uploader for COS policy

This commit is contained in:
HFO4
2022-03-20 11:27:17 +08:00
parent 07f13cc350
commit 9e5713b139
6 changed files with 18 additions and 69 deletions

View File

@ -283,21 +283,6 @@ func OneDriveCallbackAuth() gin.HandlerFunc {
}
}
// COSCallbackAuth 腾讯云COS回调签名验证
func COSCallbackAuth() gin.HandlerFunc {
return func(c *gin.Context) {
//// 验证key并查找用户
//resp, _ := uploadCallbackCheck(c)
//if resp.Code != 0 {
// c.JSON(401, serializer.GeneralUploadCallbackFailed{Error: resp.Msg})
// c.Abort()
// return
//}
c.Next()
}
}
// S3CallbackAuth Amazon S3回调签名验证
func S3CallbackAuth() gin.HandlerFunc {
return func(c *gin.Context) {