From 516b6d9d9b50ccfc96cf21dc894801af492d3ad5 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 19 Sep 2023 10:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/approve/ApproveLists.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/lists/approve/ApproveLists.php b/app/api/lists/approve/ApproveLists.php index fad87590e..8ffb3ab97 100644 --- a/app/api/lists/approve/ApproveLists.php +++ b/app/api/lists/approve/ApproveLists.php @@ -18,7 +18,7 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface public function setSearch(): array { $param = $this->request->param(); - if ($param['check_status'] == 0) { + if (isset($param['check_status']) && $param['check_status'] == 0) { return [ '=' =>['type'] ]; @@ -50,6 +50,9 @@ class ApproveLists extends BaseApiDataLists implements ListsSearchInterface ->where($this->queryWhere()) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) + ->withAttr('extend',function ($value, $data) { + return json_decode($data['extend'], true); + }) ->select() ->toArray(); }