From b93923e6379ea6fa0eb257e997b17fe94652b5ad Mon Sep 17 00:00:00 2001 From: Ying Date: Mon, 3 Jul 2023 19:21:19 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96CURD=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/AdminController.php b/app/AdminController.php index 51a5c15..e0d6afb 100644 --- a/app/AdminController.php +++ b/app/AdminController.php @@ -191,7 +191,7 @@ class AdminController extends BaseController public function edit() { $id = input('id'); - $data = $this->model->find($id); + $data = $this->model->where('id', $id)->findOrEmpty()->toArray(); // 限制数据调用 if (!$this->authService->SuperAdmin() && $this->dataLimit