Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
3a1eb1738f
1 changed files with 1 additions and 4 deletions
  1. 1 4
      service/jsyb_service.go

+ 1 - 4
service/jsyb_service.go View File

@@ -85,11 +85,8 @@ func HttpRequest(url string, ak string, sk string, timestamp int64, requestByte
85 85
 	//request.Header.Set("Content-Type", "application/json;charset=UTF-8")
86 86
 
87 87
 	//还可以,设置附加的byte[]或者json请求体
88
-	fmt.Println("JSON")
89
-	fmt.Println(json)
90
-	fmt.Println(requestByte)
91 88
 
92
-	csbHP.SetContentBody(json, requestByte)
89
+	csbHP.SetContentBody("", requestByte)
93 90
 	//设置请求的ak和sk
94 91
 	csbHP.SetAK(ak)
95 92
 	csbHP.SetSK(sk)