Browse Source

站内信列表调整临时id

kely 5 months ago
parent
commit
10c2f829d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Resources/API/NotificationCollection.php

+ 1 - 1
app/Http/Resources/API/NotificationCollection.php

@@ -34,7 +34,6 @@ class NotificationCollection extends ResourceCollection
                     'created_by' => new UserProfileResource($action->createdBy),
                     'comment' => $action->commtent,
                     'object_type' => $action->object_type,
-                    'display_id'=>$action->display_id,
                     'object' => [
                         'id' => $action->object_id,
                         'name' => data_get($actionGroupObjects, sprintf("%s.%s", $action->object_type, $action->object_id)),
@@ -48,6 +47,7 @@ class NotificationCollection extends ResourceCollection
                 'content' => $item->content,
                 'read_at' => (string)$item->read_at,
                 'read_status' => (bool)$item->read_at,
+                'display_id'=>$item->display_id,
                 'object' => $object,
             ];
             $items[] = $row;