From 8439c4b56fb93191d5bec8e7a5c76123078add2c Mon Sep 17 00:00:00 2001 From: zengyyh Date: Wed, 28 Aug 2024 23:19:10 +0800 Subject: [PATCH] 1 --- app/api/service/identity/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/service/identity/Payment.php b/app/api/service/identity/Payment.php index 72c0b08b..dfb8b7dc 100644 --- a/app/api/service/identity/Payment.php +++ b/app/api/service/identity/Payment.php @@ -243,7 +243,7 @@ class Payment extends BaseService private function unifiedorder(array $extra = []): array { // 判断支付方式是否合法 - if (!in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY])) { + if (!in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY, PaymentMethodEnum::HUIFU])) { return []; } // 生成第三方交易订单号 (并非主订单号)