From b9b9a6c17ee303d5d77c061c8778c3cc59eb3249 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 23 Mar 2025 23:28:54 +0800 Subject: [PATCH] bug --- .../think-plugs-inspection/src/controller/api/auth/Ticket.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php b/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php index 2779b2b..104db36 100644 --- a/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php +++ b/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php @@ -67,8 +67,7 @@ class Ticket extends Auth { $id = $this->request->get('id'); $ticket = TicketTicket::query() -// ->where(['fz_user_id'=>$this->staff->id]) - ->with(['verify', 'repair'])->findOrEmpty($id); + ->with(['verifys', 'repairs', 'views'])->findOrEmpty($id); if ($ticket->isEmpty()) $this->error('工单不存在'); $this->success('获取工单详情', $ticket); }