mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
修改pc支付
This commit is contained in:
parent
36de16b949
commit
aa5bef98f4
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user