|
|
@ -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(); |
|
|
|
// 获取支付方式的配置信息 |
|
|
|
// 获取支付方式的配置信息 |
|
|
|