This commit is contained in:
@@ -132,9 +132,11 @@ func (c *Client) DoRequest(path string, req interface{}, resp interface{}) error
|
|||||||
reqURL := strings.TrimRight(c.ApiURL, "/") + path
|
reqURL := strings.TrimRight(c.ApiURL, "/") + path
|
||||||
body := "req=" + encoded
|
body := "req=" + encoded
|
||||||
|
|
||||||
c.logger.Debug("富友请求发送",
|
c.logger.Info("富友请求完整报文",
|
||||||
zap.String("url", reqURL),
|
zap.String("url", reqURL),
|
||||||
zap.String("path", path),
|
zap.String("path", path),
|
||||||
|
zap.String("request_xml", xmlStr),
|
||||||
|
zap.String("request_body", body),
|
||||||
)
|
)
|
||||||
|
|
||||||
httpResp, err := http.Post(reqURL, "application/x-www-form-urlencoded", strings.NewReader(body))
|
httpResp, err := http.Post(reqURL, "application/x-www-form-urlencoded", strings.NewReader(body))
|
||||||
|
|||||||
Reference in New Issue
Block a user