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 []; } // 生成第三方交易订单号 (并非主订单号)