pull/1/head
wanghousheng 12 months ago
parent ac72e42596
commit e80085bec0
  1. 4
      app/api/service/identity/Payment.php

@ -225,10 +225,6 @@ class Payment extends BaseService
*/ */
private function unifiedorder(array $extra = []): array private function unifiedorder(array $extra = []): array
{ {
// 判断支付方式是否合法
if (!in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY])) {
return [];
}
// 生成第三方交易订单号 (并非主订单号) // 生成第三方交易订单号 (并非主订单号)
$outTradeNo = OrderService::createOrderNo(); $outTradeNo = OrderService::createOrderNo();
// 获取支付方式的配置信息 // 获取支付方式的配置信息

Loading…
Cancel
Save