feature/main20240421
guojia 7 months ago
parent 6bed38fa17
commit b784f51afb
  1. 4
      app/store/controller/Order.php
  2. 1
      app/store/controller/setting/Payment.php

@ -31,7 +31,9 @@ class Order extends Controller
{ {
// 订单列表 // 订单列表
$model = new OrderModel; $model = new OrderModel;
$result = $model->getList($this->request->param()); $params = $this->request->param();
$params['merchant_id'] = $this->merchantId;
$result = $model->getList($params);
$data = $result->items(); $data = $result->items();
if (!empty($data)) { if (!empty($data)) {
foreach ($data as $key => $value) { foreach ($data as $key => $value) {

@ -22,7 +22,6 @@ class Payment extends Controller
*/ */
public function options(): Json public function options(): Json
{ {
$this->merchantId = $this->request->param("merchantId");
$options = PaymentModel::getAll($this->storeId, $this->merchantId); $options = PaymentModel::getAll($this->storeId, $this->merchantId);
return $this->renderSuccess(compact('options')); return $this->renderSuccess(compact('options'));
} }

Loading…
Cancel
Save