fix: 修复uuid随机生成

This commit is contained in:
spiritlhl committed 2025-08-01 13:35:42 +00:00
1 parent 50b2c706f1
commit 4d5b3fd5cb
3 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -9,6 +9,7 @@ import (
"strings"
"github.com/imroc/req/v3"
"github.com/google/uuid"
)
type ASCard struct {
@@ -101,7 +102,7 @@ func getSVGPath(client *req.Client, ip string) (string, error) {
}
func downloadSVG(client *req.Client, svgPath string) (string, error) {
uuid := "fixeduuid123456"
uuid := uuid.NewString()
url := fmt.Sprintf("https://bgp.tools%s?%s&loggedin", svgPath, uuid)
resp, err := client.R().Get(url)
if err != nil {