fix 修复没有拼接上base url的bug

This commit is contained in:
timerzz 2024-12-10 14:15:46 +08:00
parent ee3f7ce41b
commit 9cb1dba3f0

View File

@ -115,7 +115,8 @@ func tryRequest(ctx context.Context, base, urlPath string, respData any, proxyGe
} }
func callByProxy(ctx context.Context, p proxy2.Proxy, base, urlPath string, result any) (*resty.Response, error) { func callByProxy(ctx context.Context, p proxy2.Proxy, base, urlPath string, result any) (*resty.Response, error) {
addr, err := proxy.UrlToMetadata(urlPath) full, _ := url.JoinPath(base, urlPath)
addr, err := proxy.UrlToMetadata(full)
if err != nil { if err != nil {
return nil, err return nil, err
} }