This commit is contained in:
@@ -88,6 +88,7 @@ func (c *Client) doRequest(ctx context.Context, path string, params interface{})
|
||||
// 将参数包装为 {"params": ...} 格式后序列化
|
||||
wrapper := requestWrapper{Params: params}
|
||||
dataBytes, err := sonic.Marshal(wrapper)
|
||||
c.logger.Info("发送gateway请求前结构:", zap.ByteString("body", dataBytes))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(errors.CodeInternalError, err, "序列化业务数据失败")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user