From 7c530de03ed5159888f29dd4b0a589b38082d822 Mon Sep 17 00:00:00 2001 From: ziming Date: Thu, 21 Aug 2025 10:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E7=AC=94=E7=AB=8B=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/pkg/wechat/utils/wxpay_utility.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 成功,验证应答签名