升级curl

This commit is contained in:
白茶清欢 2021-09-18 17:24:09 +08:00
parent ddb048c5c9
commit a76b5f572e

View File

@ -19,27 +19,12 @@ import (
"github.com/ddliu/go-httpclient"
)
// Send 发送HTTP请求
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 9:38 下午 2021/8/11
func Send(apiMethod *APIMethod) *APIResponse {
if apiMethod.Parameter == nil {
apiMethod.Parameter = make(map[string]interface{})
}
if apiMethod.Header == nil {
apiMethod.Header = make(map[string]string)
}
return nil
}
// request 发送请求
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2:27 下午 2021/8/12
func request(apiMethod *APIMethod, responseConfig *ResponseConfig) (*APIResponse, bool) {
func Request(apiMethod *APIMethod, responseConfig *ResponseConfig) (*APIResponse, bool) {
apiResponse := &APIResponse{
Code: "",
Message: "",