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