修改pc支付

This commit is contained in:
liaofei 2023-02-22 15:57:14 +08:00
parent 36de16b949
commit aa5bef98f4

View File

@ -106,6 +106,8 @@ class OrderPayServices
*/
public function beforePay(array $orderInfo, string $payType, array $options = [])
{
$wehcat = $payType == PayServices::WEIXIN_PAY;
$payType = $this->getPayType($payType);
if ($orderInfo['paid']) {
@ -133,6 +135,11 @@ class OrderPayServices
}
$options['openid'] = $openid;
break;
case PayServices::ALLIN_PAY:
if ($wehcat) {
$options['wechat'] = $wehcat;
}
break;
}