Browse Source

站内信列表返回创建时间

kely 6 months ago
parent
commit
f939d48a33
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Resources/API/NotificationCollection.php

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

@@ -43,6 +43,7 @@ class NotificationCollection extends ResourceCollection
             $row = [
             $row = [
                 'id' => $item->id,
                 'id' => $item->id,
                 'object_type' => $item->object_type,
                 'object_type' => $item->object_type,
+                'created_at'=>(string)$item->created_at,
                 'content' => $item->content,
                 'content' => $item->content,
                 'read_at' => (string)$item->read_at,
                 'read_at' => (string)$item->read_at,
                 'read_status' => (bool)$item->read_at,
                 'read_status' => (bool)$item->read_at,