多笔立减
This commit is contained in:
parent
4ca489334a
commit
7c530de03e
|
|
@ -515,9 +515,6 @@ func (srv *MchConfig) Request2(host, method, path string, reqBody []byte) (respo
|
||||||
|
|
||||||
httpRequest.Header.Set("Authorization", authorization)
|
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{}
|
client := &http.Client{}
|
||||||
httpResponse, err := client.Do(httpRequest)
|
httpResponse, err := client.Do(httpRequest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -529,7 +526,9 @@ func (srv *MchConfig) Request2(host, method, path string, reqBody []byte) (respo
|
||||||
return nil, err
|
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 {
|
if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 {
|
||||||
// 2XX 成功,验证应答签名
|
// 2XX 成功,验证应答签名
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue