From e80085bec0e132ee041e6586dc2c657e4c12aacb Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Tue, 30 Jan 2024 15:41:21 +0800 Subject: [PATCH] 1 --- app/api/service/identity/Payment.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/api/service/identity/Payment.php b/app/api/service/identity/Payment.php index 3bffaad7..2e336603 100644 --- a/app/api/service/identity/Payment.php +++ b/app/api/service/identity/Payment.php @@ -225,10 +225,6 @@ class Payment extends BaseService */ private function unifiedorder(array $extra = []): array { - // 判断支付方式是否合法 - if (!in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY])) { - return []; - } // 生成第三方交易订单号 (并非主订单号) $outTradeNo = OrderService::createOrderNo(); // 获取支付方式的配置信息