From 02a7a4e5187fc9a55f875c26599f94e1712108a7 Mon Sep 17 00:00:00 2001 From: GiveMePast <1248298477@qq.com> Date: Thu, 28 May 2026 09:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E5=90=8E=E5=8F=B0=E4=B8=80?= =?UTF-8?q?=E8=B5=B7=E4=BD=BF=E7=94=A8=E5=90=8C=E4=B8=80=E4=B8=AA=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/TicketService.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/common/service/TicketService.php b/app/common/service/TicketService.php index c725a17..72bb0d7 100644 --- a/app/common/service/TicketService.php +++ b/app/common/service/TicketService.php @@ -118,7 +118,7 @@ class TicketService * @param $role 当前登录用户角色 * @return array */ - public function updateTicket($id, $data, $allowFields, $uid, $isSuper = false) + public function updateTicket($id, $data, $allowFields, $isRole, $isSuper = false) { $ticket = Tickets::where('id', $id)->find(); @@ -126,14 +126,6 @@ class TicketService throw new \Exception('工单不存在'); } - // 当不是管理员,进入判断 - if (!$isSuper) { - if (!is_null($ticket->user_id) && $ticket->user_id != $uid) { - throw new \Exception('没有权限修改该工单'); - } - } - - // 提取 $allowFields 允许修改的字段 $updateData = []; foreach ($allowFields as $field) {