From 4046688a5562317fe6333635c5688b3721e6af55 Mon Sep 17 00:00:00 2001 From: lijianbin <513837235@.qq.com> Date: Fri, 10 Feb 2023 13:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http.go b/http.go index cd391f2..bcdba4a 100644 --- a/http.go +++ b/http.go @@ -24,8 +24,6 @@ func SendHttp(method, url string, param map[string]string, header ...map[string] paramStr = paramStr[0 : len(paramStr)-1] } - log.Println("param",strings.NewReader(paramStr)) - req, err := http.NewRequest(method, url, strings.NewReader(paramStr)) if err != nil { return []byte(""), err @@ -100,6 +98,7 @@ func SendXml(method, url string, requestxml interface{}, header ...map[string]st */ func PostJson(url string, param []byte, header ...map[string]string) ([]byte, error) { httpClient := &http.Client{} + log.Println("param_code", bytes.NewBuffer(param)) req, err := http.NewRequest("POST", url, bytes.NewBuffer(param)) if err != nil {