diff --git a/request/restful.go b/request/restful.go index 5af4036..cfbb310 100644 --- a/request/restful.go +++ b/request/restful.go @@ -66,7 +66,7 @@ func BuildURL(uriConfig *URIConfig, parameter map[string]interface{}) (string, m finalParameter := make(map[string]interface{}) for field, val := range parameter { if strings.Contains(uri, uriConfig.Left+field+uriConfig.Right) { - uri = strings.ReplaceAll(uri, "{"+field+"}", fmt.Sprintf("%v", val)) + uri = strings.ReplaceAll(uri, uriConfig.Left+field+uriConfig.Right, fmt.Sprintf("%v", val)) if uriConfig.RemoveURIParam { continue }