This commit is contained in:
jiangyong 2026-03-17 12:38:44 +08:00
parent 593342b848
commit 74725d735d
1 changed files with 2 additions and 6 deletions

View File

@ -16,7 +16,6 @@ type QiniuConfig struct {
AK string AK string
SK string SK string
Timeout time.Duration Timeout time.Duration
Https bool
} }
type Qiniu struct { type Qiniu struct {
@ -169,11 +168,8 @@ func (s *Qiniu) Url(objectName string, expire time.Duration) string {
return "" return ""
} }
domain := "http://" + domains[0].Domain domain := "https://" + domains[0].Domain
if s.config.Https {
domain = "https://" + domains[0].Domain
}
if expire == 0 { if expire == 0 {
return storage.MakePublicURLv2(domain, objectName) return storage.MakePublicURLv2(domain, objectName)
} else { } else {