From 7ee83d9bc9c0f92d58410650dd91d04b791ab158 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Fri, 4 Aug 2023 14:57:13 +0800 Subject: [PATCH] 1 --- app/Services/DetectionService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); // 处理订单退款状态