This commit is contained in:
laodaming 2023-10-08 17:13:28 +08:00
parent 939ee8e0fe
commit 1a3fbfb175

View File

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