Browse Source

汇付天下支付

tags/v1.4.7
jiaoboxiang 2 years ago
parent
commit
05af169332
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      lib/adapay-sdk/adapay-core/http.go

+ 5
- 2
lib/adapay-sdk/adapay-core/http.go View File

@@ -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) {


Loading…
Cancel
Save