新增日志输出
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m33s

This commit is contained in:
2026-04-24 11:25:13 +08:00
parent 41db5b56af
commit bc344f892c

View File

@@ -132,9 +132,11 @@ func (c *Client) DoRequest(path string, req interface{}, resp interface{}) error
reqURL := strings.TrimRight(c.ApiURL, "/") + path
body := "req=" + encoded
c.logger.Debug("富友请求发送",
c.logger.Info("富友请求完整报文",
zap.String("url", reqURL),
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))