11
This commit is contained in:
		
							parent
							
								
									9858300984
								
							
						
					
					
						commit
						34b2aef763
					
				@ -3,7 +3,6 @@ package curl
 | 
			
		||||
import (
 | 
			
		||||
	"bytes"
 | 
			
		||||
	"context"
 | 
			
		||||
	"encoding/json"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
@ -87,8 +86,8 @@ type (
 | 
			
		||||
 | 
			
		||||
// PostJson请求
 | 
			
		||||
func (c *defaultClient) PostJson(jsonData interface{}, res interface{}) error {
 | 
			
		||||
	jsonDataB, _ := json.Marshal(jsonData)
 | 
			
		||||
	logc.Infof(c.ctx, "客户端名称 Client PostJson jsonData:%+v", string(jsonDataB))
 | 
			
		||||
	//jsonDataB, _ := json.Marshal(jsonData)
 | 
			
		||||
	//logc.Infof(c.ctx, "客户端名称 Client PostJson jsonData:%+v", string(jsonDataB))
 | 
			
		||||
 | 
			
		||||
	logc.Infof(c.ctx, "客户端名称 请求开始时间:%+v", time.Now().UTC())
 | 
			
		||||
	resp, err := c.client.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user