...
|
...
|
@@ -31,6 +31,9 @@ func ConvertFileUrlToInternal(fileUrl string) string { |
|
|
}
|
|
|
var bucketRegion = "https://byte-bank.oss-cn-hangzhou"
|
|
|
var bucketInternalRegion = "https://byte-bank.oss-cn-hangzhou-internal"
|
|
|
if strings.HasPrefix(fileUrl, bucketInternalRegion) {
|
|
|
return fileUrl
|
|
|
}
|
|
|
if strings.HasPrefix(fileUrl, bucketRegion) {
|
|
|
return strings.Replace(fileUrl, bucketRegion, bucketInternalRegion, 1)
|
|
|
}
|
...
|
...
|
|