diff --git a/app/data/service/payment/WechatPaymentService.php b/app/data/service/payment/WechatPaymentService.php index 463c87683..8de67101f 100644 --- a/app/data/service/payment/WechatPaymentService.php +++ b/app/data/service/payment/WechatPaymentService.php @@ -53,8 +53,8 @@ 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) { + // 微信二维码及网页支付 + if (in_array($this->type, [static::PAYMENT_WECHAT_WAP, static::PAYMENT_WECHAT_QRC])) { return $info; } // 返回JSAPI参数