update
This commit is contained in:
@@ -62,6 +62,7 @@ func (c *HTTPClient) PostJSON(url string, data interface{}, headers map[string]s
|
||||
|
||||
// Post 发送POST请求
|
||||
func (c *HTTPClient) Post(url string, data []byte, contentType string, headers map[string]string) ([]byte, error) {
|
||||
fmt.Println(string(data))
|
||||
req, err := http.NewRequest("POST", url, bytes.NewBuffer(data))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("创建POST请求失败: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user