This commit is contained in:
laodaming
2023-10-20 10:22:11 +08:00
parent f119bc44d9
commit fe01a42f82
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ import "strings"
// 通过url解析资源id
func GetS3ResourceIdFormUrl(s3Url string) string {
if !strings.Contains(s3Url, "storage.fusenpack.com") {
if !strings.Contains(s3Url, "https://") {
return ""
}
s := strings.Split(s3Url, "/")