From 11badcb84e10cdca2f0a5a63ec73dec3dc9fd8f2 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Wed, 28 Feb 2024 22:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E5=85=A5=E9=A9=BB=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/model/store/StoreSettle.php | 2 +- app/store/controller/Store.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/common/model/store/StoreSettle.php b/app/common/model/store/StoreSettle.php index 04ace65e..7a4e8ac2 100644 --- a/app/common/model/store/StoreSettle.php +++ b/app/common/model/store/StoreSettle.php @@ -33,7 +33,7 @@ class StoreSettle extends BaseModel 'status_text' ]; - protected function getStatusText($value, $data): string + protected function getStatusTextAttr($value, $data): string { if ($data['status'] == 0) { return '待审核'; diff --git a/app/store/controller/Store.php b/app/store/controller/Store.php index a955fd3d..f8e00868 100644 --- a/app/store/controller/Store.php +++ b/app/store/controller/Store.php @@ -52,7 +52,7 @@ class Store extends Controller /** * 门店入驻列表 */ - public function getStoreSettleList(): array { + public function settleList(): Json { $list = StoreSettle::where('store_id', '=', $this->storeId) ->select(); return $this->renderSuccess($list->toArray()); @@ -61,9 +61,9 @@ class Store extends Controller /** * 门店入驻详情 */ - public function getStoreSettleDetail(int $id): Json + public function settleDetail(int $id): Json { $detail = StoreSettle::get($id); - return $this->renderSuccess($detail->toArray()); + return $this->renderSuccess(compact('detail')); } }