소스 검색

站内信列表返回创建时间

kely 6 달 전
부모
커밋
f939d48a33
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,