微信h5支付修复

This commit is contained in:
吴昊天 2023-02-21 16:14:05 +08:00
parent dc00ec63f5
commit 767b360324

View File

@ -193,6 +193,11 @@ class OrderPayServices
if (request()->isWechat()) {
$jsConfig['pay_url'] = AllinPay::UNITODER_H5UNIONPAY;
}
break;
case PayServices::WEIXIN_PAY:
if (isset($jsConfig['mweb_url'])) {
$jsConfig['h5_url'] = $jsConfig['mweb_url'];
}
}
return ['jsConfig' => $jsConfig, 'order_id' => $order['order_id'], 'pay_key' => $payKey];