mirror of
https://gitee.com/liuxioabin/fengketrade.git
synced 2026-04-17 21:03:17 +08:00
up
This commit is contained in:
parent
f0b937360d
commit
d41ce94328
@ -115,8 +115,10 @@ class CcbPaymentService
|
|||||||
$macParams['REGINFO'] = ''; // 客户注册信息(空字符串)
|
$macParams['REGINFO'] = ''; // 客户注册信息(空字符串)
|
||||||
|
|
||||||
// 商品信息(escape编码)
|
// 商品信息(escape编码)
|
||||||
// $proinfo = $this->buildProductInfo($order);
|
$proinfo = $this->buildProductInfo($order);
|
||||||
$macParams['PROINFO'] = '';
|
$macParams['PROINFO'] = $proinfo;
|
||||||
|
Log::info('[建行支付] 商品信息原始: ' . mb_substr(implode(',', Db::name('shopro_order_item')->where('order_id', $order['id'])->limit(3)->column('goods_title')), 0, 50));
|
||||||
|
Log::info('[建行支付] 商品信息escape编码: ' . $proinfo);
|
||||||
|
|
||||||
$macParams['REFERER'] = ''; // 商户URL(空字符串)
|
$macParams['REFERER'] = ''; // 商户URL(空字符串)
|
||||||
|
|
||||||
@ -252,18 +254,7 @@ class CcbPaymentService
|
|||||||
// 4. 生成MAC签名(32位小写MD5)
|
// 4. 生成MAC签名(32位小写MD5)
|
||||||
$mac = strtolower(md5($macSignString));
|
$mac = strtolower(md5($macSignString));
|
||||||
|
|
||||||
// ⚠️ 调试输出:输出完整签名字符串用于排查
|
Log::info('[建行支付] MAC签名字符串(前500字符): ' . mb_substr($macSignString, 0, 500));
|
||||||
Log::info('[建行支付] ========== 完整MAC签名字符串 ==========');
|
|
||||||
Log::info('[建行支付] ' . $macSignString);
|
|
||||||
Log::info('[建行支付] ========== 生成的MAC签名 ==========');
|
|
||||||
Log::info('[建行支付] ' . $mac);
|
|
||||||
Log::info('[建行支付] ========== 参数详情 ==========');
|
|
||||||
Log::info('[建行支付] 参数数量: ' . count($macParams));
|
|
||||||
foreach ($macParams as $key => $value) {
|
|
||||||
Log::info('[建行支付] ' . $key . ' = ' . (strlen($value) > 100 ? substr($value, 0, 100) . '...(共' . strlen($value) . '字符)' : $value));
|
|
||||||
}
|
|
||||||
|
|
||||||
Log::info('[建行支付] MAC签名字符串: ' . $macSignString);
|
|
||||||
Log::info('[建行支付] 生成MAC: ' . $mac);
|
Log::info('[建行支付] 生成MAC: ' . $mac);
|
||||||
|
|
||||||
// 5. 构建不参与MAC的参数
|
// 5. 构建不参与MAC的参数
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user