多笔立减

This commit is contained in:
ziming 2025-08-21 10:06:17 +08:00
parent 4ca489334a
commit 7c530de03e
1 changed files with 3 additions and 4 deletions

View File

@ -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 成功,验证应答签名