瀏覽代碼

汇付天下支付

tags/v1.4.7
jiaoboxiang 2 年之前
父節點
當前提交
05af169332
共有 1 個檔案被更改,包括 5 行新增2 行删除
  1. +5
    -2
      lib/adapay-sdk/adapay-core/http.go

+ 5
- 2
lib/adapay-sdk/adapay-core/http.go 查看文件

@@ -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…
取消
儲存