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