mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 15:39:10 +08:00
update
This commit is contained in:
parent
f5da930b4d
commit
8c24938c1f
@ -21,6 +21,13 @@ class TicketController extends Controller
|
||||
abort(500, '工单不存在');
|
||||
}
|
||||
$ticket['message'] = TicketMessage::where('ticket_id', $ticket->id)->get();
|
||||
for ($i = 0; $i <= count($ticket['message']); $i++) {
|
||||
if ($ticket['message'][$i]['user_id'] == $request->session()->get('id')) {
|
||||
$ticket['message'][$i]['is_me'] = true;
|
||||
} else {
|
||||
$ticket['message'][$i]['is_me'] = false;
|
||||
}
|
||||
}
|
||||
return response([
|
||||
'data' => $ticket
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user