修改url path param 参数占位格式 {#param_name#} => {param_name}
This commit is contained in:
parent
84cf228b5d
commit
f780551ba6
@ -63,7 +63,7 @@ func NewRestyClient(reqConfig *define.Request) (*resty.Client, *resty.Request) {
|
|||||||
if len(pathParamValue) == 0 {
|
if len(pathParamValue) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
reqConfig.FullUrl = strings.ReplaceAll(reqConfig.FullUrl, "{#"+pathParamName+"#}", pathParamValue)
|
reqConfig.FullUrl = strings.ReplaceAll(reqConfig.FullUrl, "{"+pathParamName+"}", pathParamValue)
|
||||||
}
|
}
|
||||||
request.Method = reqConfig.Method // 请求方法
|
request.Method = reqConfig.Method // 请求方法
|
||||||
cookieList := make([]*http.Cookie, 0)
|
cookieList := make([]*http.Cookie, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user