mirror of
https://github.com/oneclickvirt/backtrace.git
synced 2026-11-24 23:39:41 +08:00
fix: 修复uuid随机生成
This commit is contained in:
1 parent
50b2c706f1
commit
4d5b3fd5cb
3 files changed
+5
-1
No files matched your search
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user