From d69d830e3208fbf518e18fe67f646992e7d89479 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 13 Dec 2019 17:42:21 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/TicketController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Admin/TicketController.php b/app/Http/Controllers/Admin/TicketController.php index 02b68917..b98418b3 100644 --- a/app/Http/Controllers/Admin/TicketController.php +++ b/app/Http/Controllers/Admin/TicketController.php @@ -59,6 +59,9 @@ class TicketController extends Controller if (!$ticket) { abort(500, '工单不存在'); } + if ($ticket->status) { + abort(500, '工单已关闭,无法回复'); + } DB::beginTransaction(); $ticketMessage = TicketMessage::create([ 'user_id' => $request->session()->get('id'),