支付,OSS 服务重构完成

This commit is contained in:
GeekMaster
2025-08-24 19:32:45 +08:00
parent 7fb0aad3c7
commit 536b4b8056
57 changed files with 1663 additions and 1358 deletions

View File

@@ -15,6 +15,7 @@ import (
"io"
"net/http"
"net/url"
"path/filepath"
)
var logger = logger2.GetLogger()
@@ -92,3 +93,11 @@ func GetBaseURL(strURL string) string {
}
return fmt.Sprintf("%s://%s", u.Scheme, u.Host)
}
func GetImgExt(filename string) string {
ext := filepath.Ext(filename)
if ext == "" {
return ".png"
}
return ext
}