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