|
@@ -35,7 +35,7 @@ func Send(prd bool, privateKeyStr string, param map[string]string) (string, erro |
|
|
param["merchantSign"] = sign |
|
|
param["merchantSign"] = sign |
|
|
fmt.Println("参数:", zhios_pay_utils.SerializeStr(param)) |
|
|
fmt.Println("参数:", zhios_pay_utils.SerializeStr(param)) |
|
|
zhios_pay_utils.CurlDebug = true |
|
|
zhios_pay_utils.CurlDebug = true |
|
|
res, err := zhios_pay_utils.CurlPost(url, zhios_pay_utils.SerializeStr(param), headers) |
|
|
|
|
|
|
|
|
res, err := zhios_pay_utils.CurlPost(url, php2go.URLEncode(zhios_pay_utils.SerializeStr(param)), headers) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return "", err |
|
|
return "", err |
|
|
} |
|
|
} |
|
|