You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
929 B
41 lines
929 B
<?php
|
|
|
|
namespace fubei\pay;
|
|
|
|
|
|
use fubei\Base;
|
|
|
|
class Order extends Base
|
|
{
|
|
|
|
/**
|
|
* 订单查询
|
|
* @param string $fubei_order_number 外部系统订单号(确保唯一,前后不允许带空格)
|
|
* @date 2022-11-03
|
|
*/
|
|
public function orderQuery($fubei_order_number)
|
|
{
|
|
//公共参数
|
|
$common_data = [
|
|
'method' => 'fbpay.order.query',
|
|
];
|
|
|
|
//业务参数
|
|
$biz_content = [
|
|
// 外部系统订单号(确保唯一,前后不允许带空格)
|
|
'merchant_order_sn' => $fubei_order_number
|
|
];
|
|
|
|
$result = $this->actionApi($common_data, $biz_content);
|
|
|
|
// 记录日志
|
|
$uid = defined('UID') ? UID : '';
|
|
platformLog([
|
|
'common_data' => $common_data,
|
|
'biz_content' => $biz_content,
|
|
], $result, 'fubei_order_query_uid_' . $uid);
|
|
|
|
return $result;
|
|
}
|
|
|
|
} |