1
This commit is contained in:
@@ -55,6 +55,7 @@ func HttpToGuoYuan(param map[string]interface{}, requestType string) (*http.Resp
|
||||
var paramData []byte
|
||||
var err error
|
||||
if requestType == "order" {
|
||||
param["data"] = utils.Format4Output(param["data"], false)
|
||||
paramData, err = json.Marshal([]interface{}{param})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -80,6 +81,7 @@ func HttpToGuoYuan(param map[string]interface{}, requestType string) (*http.Resp
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
httpReq.Header.Set("Content-Type", "application/json")
|
||||
|
||||
httpRes, err := http.DefaultClient.Do(httpReq)
|
||||
|
||||
Reference in New Issue
Block a user