This commit is contained in:
wucongxing 2023-08-04 14:57:13 +08:00
parent 26acfcf403
commit 7ee83d9bc9

View File

@ -590,7 +590,7 @@ class DetectionService extends BaseService
// 检测订单金额 // 检测订单金额
if ($order_detection['payment_amount_total'] > 0){ if ($order_detection['payment_amount_total'] > 0){
// 发起退款 // 发起退款
$WechatPay = new WechatPay(1, 1); $WechatPay = new WechatPay(1, 3);
$options = array(); $options = array();
$options['transaction_id'] = $order_detection['escrow_trade_no']; $options['transaction_id'] = $order_detection['escrow_trade_no'];
@ -602,6 +602,7 @@ class DetectionService extends BaseService
'currency' => "CNY", 'currency' => "CNY",
]; ];
dump($options);
$result = $WechatPay->refund($options); $result = $WechatPay->refund($options);
// 处理订单退款状态 // 处理订单退款状态