diff --git a/internal/pkg/wechat/utils/wxpay_utility.go b/internal/pkg/wechat/utils/wxpay_utility.go index f141bb1..f488688 100644 --- a/internal/pkg/wechat/utils/wxpay_utility.go +++ b/internal/pkg/wechat/utils/wxpay_utility.go @@ -515,9 +515,6 @@ func (srv *MchConfig) Request2(host, method, path string, reqBody []byte) (respo httpRequest.Header.Set("Authorization", authorization) - hs, _ := json.Marshal(httpRequest.Header) - fmt.Printf("\npath=%s\nreqBody=%s\nheaders=%s\n", path, string(reqBody), string(hs)) - client := &http.Client{} httpResponse, err := client.Do(httpRequest) if err != nil { @@ -529,7 +526,9 @@ func (srv *MchConfig) Request2(host, method, path string, reqBody []byte) (respo return nil, err } - fmt.Printf("\nrespBody=%s\n", string(respBody)) + //hs, _ := json.Marshal(httpRequest.Header) + //fmt.Printf("\npath=%s\nreqBody=%s\nheaders=%s\n", path, string(reqBody), string(hs)) + //fmt.Printf("\nrespBody=%s\n", string(respBody)) if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 { // 2XX 成功,验证应答签名