正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -45,6 +45,7 @@ class TicketChatController extends BaseController | @@ -45,6 +45,7 @@ class TicketChatController extends BaseController | ||
| 45 | $validated = $request->validated(); | 45 | $validated = $request->validated(); |
| 46 | $ticket = Tickets::find($ticket_id); | 46 | $ticket = Tickets::find($ticket_id); |
| 47 | if (!$ticket) return response('工单未找到', 404); | 47 | if (!$ticket) return response('工单未找到', 404); |
| 48 | + if ($ticket->status >= Tickets::STATUS_COMPLETED) return response('工单已完成或已关闭', 400); | ||
| 48 | if ($ticket->project->is_del) return response('项目状态异常', 400); | 49 | if ($ticket->project->is_del) return response('项目状态异常', 400); |
| 49 | 50 | ||
| 50 | $chat = new TicketChat(); | 51 | $chat = new TicketChat(); |
-
请 注册 或 登录 后发表评论