From 27dc924d8b3ebd71d6604004cab411433499d29f Mon Sep 17 00:00:00 2001 From: guojia <445241500@qq.com> Date: Mon, 6 May 2024 23:07:55 +0800 Subject: [PATCH] tr --- app/api/controller/Merchant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/Merchant.php b/app/api/controller/Merchant.php index d4acc29c..5bf0102d 100644 --- a/app/api/controller/Merchant.php +++ b/app/api/controller/Merchant.php @@ -129,8 +129,8 @@ class Merchant extends Controller */ public function list(): Json { $model = new MerchantModel; - $pageSize = $this->request->param('pageSize', 15); - $sort = $this->request->param('sort', "merchant_id"); + $pageSize = $this->request->get('pageSize', 15); + $sort = $this->request->get('sort', "merchant_id"); $list = $model->getList($this->request->param(), intval($pageSize), $sort)->toArray(); foreach ($list['data'] as $kr => $r) {