|
...
|
...
|
@@ -48,6 +48,7 @@ class TicketChatController extends Controller |
|
|
|
$request->validated();
|
|
|
|
$ticket = Tickets::with(['project'])->find($ticket_id);
|
|
|
|
if (!$ticket) return response('工单未找到', 404);
|
|
|
|
if ($ticket->status >= Tickets::STATUS_COMPLETED) return response('工单已完成或已关闭', 400);
|
|
|
|
if ($ticket->project->uuid !== $project_id) return response('无权限查看该工单', 403);
|
|
|
|
if ($ticket->project->is_del) return response('项目状态异常', 400);
|
|
|
|
|
...
|
...
|
|