11
This commit is contained in:
parent
9858300984
commit
34b2aef763
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user