Browse Source

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

csx 3 years ago
parent
commit
f5fad961ba
1 changed files with 4 additions and 5 deletions
  1. 4 5
      utils/csbhttp/httpparams.go

+ 4 - 5
utils/csbhttp/httpparams.go View File

18
 */
18
 */
19
 package csbhttp
19
 package csbhttp
20
 
20
 
21
-import ()
22
 import (
21
 import (
23
 	"encoding/json"
22
 	"encoding/json"
24
 	"fmt"
23
 	"fmt"
108
 }
107
 }
109
 
108
 
110
 func (hp *HttpParams) SetContentBody(jsonStr string, byteArr []byte) error {
109
 func (hp *HttpParams) SetContentBody(jsonStr string, byteArr []byte) error {
111
-	if jsonStr != "" && byteArr != nil {
112
-		errRtn := HttpCallerException{Message: "can not set jsonStr and byteArr parameters together!"}
113
-		return errRtn
114
-	}
110
+	//if jsonStr != "" && byteArr != nil {
111
+	//	errRtn := HttpCallerException{Message: "can not set jsonStr and byteArr parameters together!"}
112
+	//	return errRtn
113
+	//}
115
 
114
 
116
 	if jsonStr != "" {
115
 	if jsonStr != "" {
117
 		hp.ct.jsonBody = jsonStr
116
 		hp.ct.jsonBody = jsonStr