moonsflyer il y a 8 mois
Parent
commit
7522af0590
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app/api/controller/PayController.php

+ 3 - 1
app/api/controller/PayController.php

@@ -62,9 +62,11 @@ class PayController extends BaseApiController
         if (false === $order) {
             return $this->fail(PaymentLogic::getError(), $params);
         }
+        $terminal = $this->userInfo['terminal'];
+        $terminal =4;
         //支付流程
         $redirectUrl = $params['redirect'] ?? '/pages/payment/payment';
-        $result = PaymentLogic::pay($params['pay_way'], $params['from'], $order, $this->userInfo['terminal'], $redirectUrl);
+        $result = PaymentLogic::pay($params['pay_way'], $params['from'], $order, $terminal, $redirectUrl);
         if (false === $result) {
             return $this->fail(PaymentLogic::getError(), $params);
         }