|
|
@ -72,6 +72,16 @@ class WorkorderController extends AdminController |
|
|
$msgList [] = $arr; |
|
|
$msgList [] = $arr; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$currentWorkorder = \App\Models\Workorder::find($workorderId); |
|
|
|
|
|
array_unshift($msgList, [ |
|
|
|
|
|
'type' => 'op', |
|
|
|
|
|
'it_type' => 1, |
|
|
|
|
|
'avatar' => Storage::url($currentWorkorder->publisher->avatar), |
|
|
|
|
|
'name' => $currentWorkorder->publisher->name, |
|
|
|
|
|
'content' => $currentWorkorder->content, |
|
|
|
|
|
'created_at_text' => $currentWorkorder->created_at, |
|
|
|
|
|
]); |
|
|
|
|
|
|
|
|
$data = [ |
|
|
$data = [ |
|
|
'user_list' => $userList, |
|
|
'user_list' => $userList, |
|
|
'msg_list' => $msgList, |
|
|
'msg_list' => $msgList, |
|
|
|