fix调整

This commit is contained in:
momo
2023-10-07 14:10:06 +08:00
parent eb4fd9cff9
commit e6d4e84fd4
2 changed files with 3 additions and 3 deletions

View File

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