From 33078cf9730668aa0a5359b54142e6ad00ab9753 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 11 Apr 2023 18:09:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=80=80=E6=AC=BE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderProductService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/OrderProductService.php b/app/Services/OrderProductService.php index 39d3cba..9fee55c 100644 --- a/app/Services/OrderProductService.php +++ b/app/Services/OrderProductService.php @@ -223,7 +223,7 @@ class OrderProductService extends BaseService } // 检测支付状态 - if ($order_product['pay_status'] != 5){ + if ($order_product['pay_status'] != 2){ // 支付状态(1:未支付 2:已支付 3:支付中 4:支付失败 5:支付超时 6:支付关闭 7:已撤销 8:转入退款) throw new BusinessException("订单支付状态错误,无法退款"); } @@ -235,7 +235,7 @@ class OrderProductService extends BaseService // 检测订单金额 if ($order_product['payment_amount_total'] > 0){ // 发起退款 - $WechatPay = new WechatPay(1, 1); + $WechatPay = new WechatPay(1, 2); $options = array(); $options['transaction_id'] = $order_product['escrow_trade_no'];