From 6870cffadc54403dca89facaffcce0e2b39f26da Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Fri, 1 Mar 2024 11:19:09 +0800 Subject: [PATCH] 1 --- app/store/controller/Store.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/store/controller/Store.php b/app/store/controller/Store.php index 2cc338bf..0fe7faa1 100644 --- a/app/store/controller/Store.php +++ b/app/store/controller/Store.php @@ -54,8 +54,9 @@ class Store extends Controller */ public function settleList(): Json { $list = StoreSettle::where('store_id', '=', $this->storeId) + ->order('created_at','desc') ->paginate(10); - return $this->renderSuccess($list->toArray()); + return $this->renderSuccess(compact('list')); } /**