|
|
@ -46,7 +46,7 @@ class WorkorderController extends AdminController |
|
|
$arr = [ |
|
|
$arr = [ |
|
|
'workorder_id' => $v->id, |
|
|
'workorder_id' => $v->id, |
|
|
'unread' => true, |
|
|
'unread' => true, |
|
|
'avatar' => $v->publisher_type == DemandTraits::$col[0] ? $v->point->avatar : $v->publisher->avatar, |
|
|
|
|
|
|
|
|
'avatar' => Storage::url($v->publisher_type == DemandTraits::$col[0] ? $v->point->avatar : $v->publisher->avatar), |
|
|
'name' => $v->publisher_type == DemandTraits::$col[0] ? $v->point->name : $v->publisher->name, |
|
|
'name' => $v->publisher_type == DemandTraits::$col[0] ? $v->point->name : $v->publisher->name, |
|
|
'content' => $v->title, |
|
|
'content' => $v->title, |
|
|
'last_message' => $item ? ($item->type == 1 ? $item->content : '【 图片 】') : '', |
|
|
'last_message' => $item ? ($item->type == 1 ? $item->content : '【 图片 】') : '', |
|
|
@ -64,7 +64,7 @@ class WorkorderController extends AdminController |
|
|
$arr = [ |
|
|
$arr = [ |
|
|
'type' => $v->publisher_type == DemandTraits::$col[0] ? 'my' : 'op', |
|
|
'type' => $v->publisher_type == DemandTraits::$col[0] ? 'my' : 'op', |
|
|
'it_type' => $v->type, |
|
|
'it_type' => $v->type, |
|
|
'avatar' => $v->publisher->avatar, |
|
|
|
|
|
|
|
|
'avatar' => Storage::url($v->publisher->avatar), |
|
|
'name' => $v->publisher->name, |
|
|
'name' => $v->publisher->name, |
|
|
'content' => $v->content, |
|
|
'content' => $v->content, |
|
|
'created_at_text' => $v->created_at, |
|
|
'created_at_text' => $v->created_at, |
|
|
|