This commit is contained in:
Billy 2025-10-27 17:32:52 +08:00
parent 0614d5cdd9
commit c25ca9ace8

View File

@ -115,8 +115,8 @@ class CcbPaymentService
$macParams['REGINFO'] = ''; // 客户注册信息(空字符串) $macParams['REGINFO'] = ''; // 客户注册信息(空字符串)
// 商品信息escape编码 // 商品信息escape编码
$proinfo = $this->buildProductInfo($order); // $proinfo = $this->buildProductInfo($order);
$macParams['PROINFO'] = $proinfo; $macParams['PROINFO'] = '';
$macParams['REFERER'] = ''; // 商户URL空字符串 $macParams['REFERER'] = ''; // 商户URL空字符串
@ -145,24 +145,24 @@ class CcbPaymentService
} }
// 中国建设银行App环境参数 // 中国建设银行App环境参数
if (!empty($this->config['user_id'])) { // if (!empty($this->config['user_id'])) {
$macParams['USERID'] = $this->config['user_id']; // $macParams['USERID'] = $this->config['user_id'];
} // }
if (!empty($this->config['token'])) { // if (!empty($this->config['token'])) {
$macParams['TOKEN'] = $this->config['token']; // $macParams['TOKEN'] = $this->config['token'];
} // }
if (!empty($this->config['pay_success_url'])) { // if (!empty($this->config['pay_success_url'])) {
// ⚠️ 不要在这里urlencode会在构建最终支付串时统一编码 // // ⚠️ 不要在这里urlencode会在构建最终支付串时统一编码
$macParams['PAYSUCCESSURL'] = $this->config['pay_success_url']; // $macParams['PAYSUCCESSURL'] = $this->config['pay_success_url'];
} // }
// 支付位图和账户位图 // 支付位图和账户位图
if (!empty($this->config['pay_bitmap'])) { // if (!empty($this->config['pay_bitmap'])) {
$macParams['PAYBITMAP'] = $this->config['pay_bitmap']; // $macParams['PAYBITMAP'] = $this->config['pay_bitmap'];
} // }
if (!empty($this->config['account_bitmap'])) { // if (!empty($this->config['account_bitmap'])) {
$macParams['ACCOUNTBITMAP'] = $this->config['account_bitmap']; // $macParams['ACCOUNTBITMAP'] = $this->config['account_bitmap'];
} // }
// ✅ 严格按照文档4.1表格顺序添加参数第27-40位 // ✅ 严格按照文档4.1表格顺序添加参数第27-40位
// 积分活动编号第27位 // 积分活动编号第27位