Ver Fonte

站内信列表返回创建时间

kely há 6 meses atrás
pai
commit
f939d48a33
1 ficheiros alterados com 1 adições e 0 exclusões
  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 = [
                 'id' => $item->id,
                 'object_type' => $item->object_type,
+                'created_at'=>(string)$item->created_at,
                 'content' => $item->content,
                 'read_at' => (string)$item->read_at,
                 'read_status' => (bool)$item->read_at,