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