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