Browse Source

澳门中行支付对接请求报文先urlencode再提交,避免中文乱码

tags/v1.4.9
jiaoboxiang 2 years ago
parent
commit
d57f787ae6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/boc/api_macao.go

+ 1
- 1
lib/boc/api_macao.go View File

@@ -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
} }


Loading…
Cancel
Save