新增系统商品

This commit is contained in:
2023-12-22 15:42:07 +08:00
parent a988ba3743
commit f7387bfd4d
10 changed files with 315 additions and 45 deletions
+4 -1
View File
@@ -7,7 +7,10 @@ import (
// RemoveOssDomain 去除oss地址中的前缀
func RemoveOssDomain(url string) string {
return strings.Replace(url, config.C.Oss.OssCustomDomainName, "", 1)
if url != "" {
url = strings.Replace(url, config.C.Oss.OssCustomDomainName, "", 1)
}
return url
}
// AddOssDomain 去除oss地址中的前缀