This commit is contained in:
laodaming 2023-10-07 15:55:12 +08:00
parent 9858300984
commit 34b2aef763

View File

@ -3,7 +3,6 @@ package curl
import ( import (
"bytes" "bytes"
"context" "context"
"encoding/json"
"fmt" "fmt"
"time" "time"
@ -87,8 +86,8 @@ type (
// PostJson请求 // PostJson请求
func (c *defaultClient) PostJson(jsonData interface{}, res interface{}) error { func (c *defaultClient) PostJson(jsonData interface{}, res interface{}) error {
jsonDataB, _ := json.Marshal(jsonData) //jsonDataB, _ := json.Marshal(jsonData)
logc.Infof(c.ctx, "客户端名称 Client PostJson jsonData:%+v", string(jsonDataB)) //logc.Infof(c.ctx, "客户端名称 Client PostJson jsonData:%+v", string(jsonDataB))
logc.Infof(c.ctx, "客户端名称 请求开始时间:%+v", time.Now().UTC()) logc.Infof(c.ctx, "客户端名称 请求开始时间:%+v", time.Now().UTC())
resp, err := c.client. resp, err := c.client.