新增功能
This commit is contained in:
@@ -62,6 +62,9 @@ class PayController extends BaseApiController
|
||||
if (false === $order) {
|
||||
return $this->fail(PaymentLogic::getError(), $params);
|
||||
}
|
||||
if (empty($order['user_id'])) {
|
||||
$order['user_id'] = $this->userId;
|
||||
}
|
||||
//支付流程
|
||||
$redirectUrl = $params['redirect'] ?? '/pages/payment/payment';
|
||||
$result = PaymentLogic::pay($params['pay_way'], $params['from'], $order, $this->userInfo['terminal'], $redirectUrl);
|
||||
|
||||
Reference in New Issue
Block a user