From ae8d38b509bc1b9837ca7512165093fad38ad1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 28 Oct 2022 17:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=BE=AE=E4=BF=A1=E4=BA=8C?= =?UTF-8?q?=E4=BF=A1=E7=A0=81=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/service/payment/WechatPaymentService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/data/service/payment/WechatPaymentService.php b/app/data/service/payment/WechatPaymentService.php index 457809d0f..0e14fc807 100644 --- a/app/data/service/payment/WechatPaymentService.php +++ b/app/data/service/payment/WechatPaymentService.php @@ -55,6 +55,10 @@ class WechatPaymentService extends PaymentService if ($info['return_code'] === 'SUCCESS' && $info['result_code'] === 'SUCCESS') { // 创建支付记录 $this->createPaymentAction($orderNo, $payTitle, $payAmount); + // 微信二维码支付 + if ($this->type === static::PAYMENT_WECHAT_QRC) { + return $info; + } // 返回支付参数 return $this->payment->jsapiParams($info['prepay_id']); }