Explorar o código

修改pc支付

liaofei %!s(int64=2) %!d(string=hai) anos
pai
achega
aa5bef98f4
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      crmeb/app/services/pay/OrderPayServices.php

+ 7 - 0
crmeb/app/services/pay/OrderPayServices.php

@@ -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;
         }