|
|
@@ -132,8 +132,11 @@ func DoGetReq(url string, params map[string]interface{}, msc *MerchSysConfig) (* |
|
|
|
request.Header.Add("sdk_version", "go_v"+Version) |
|
|
|
sign, _ := RsaSign(url+paramText, msc) |
|
|
|
request.Header.Add("signature", sign) |
|
|
|
|
|
|
|
return http.DefaultClient.Do(request) |
|
|
|
tr := &http.Transport{ |
|
|
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, |
|
|
|
} |
|
|
|
client := &http.Client{Transport: tr} |
|
|
|
return client.Do(request) |
|
|
|
} |
|
|
|
|
|
|
|
func DoPostReq(url string, params map[string]interface{}, msc *MerchSysConfig) (*http.Response, error) { |
|
|
|