This commit is contained in:
Billy 2025-10-23 16:23:00 +08:00
parent 69f3240dd0
commit e86985e733

View File

@ -243,6 +243,13 @@ class CcbOrderService
public function queryOrder($orderSn, $startTime = null, $endTime = null, $page = 1, $txType = '0', $txnStatus = '00') public function queryOrder($orderSn, $startTime = null, $endTime = null, $page = 1, $txType = '0', $txnStatus = '00')
{ {
try { try {
// 构建商户信息参数根据建行文档A3341TP03要求
$additionalParams = [
'MERCHANTID' => $this->config['merchant_id'],
'POSID' => $this->config['pos_id'],
'BRANCHID' => $this->config['branch_id']
];
// 调用建行API查询订单使用新接口 // 调用建行API查询订单使用新接口
$response = $this->httpClient->queryOrder( $response = $this->httpClient->queryOrder(
$orderSn, $orderSn,
@ -250,7 +257,8 @@ class CcbOrderService
$endTime, $endTime,
$page, $page,
$txType, $txType,
$txnStatus $txnStatus,
$additionalParams // 传递商户信息
); );
return [ return [