소스 검색

通知详情

wzq 5 년 전
부모
커밋
f70707dfc1
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/Transformers/NoticeRuleDetailTransformer.php

+ 3 - 1
app/Transformers/NoticeRuleDetailTransformer.php

@@ -26,13 +26,15 @@ class NoticeRuleDetailTransformer extends TransformerAbstract
             'title' => $noticeRule['title'],
             'content' => $noticeRule['content'],
             'cover' => $noticeRule['cover'],
-            'updated_at' => Carbon::parse($noticeRule['updated_at'])->toDateTimeString(),
+            'send_time' => $noticeRule['send_time']?Carbon::parse($noticeRule['send_time'])->toDateTimeString():'',
             'send_count' => $noticeRule['send_count'],
             'notice_user_type' => $noticeRule['notice_user_type'],
             'notice_status' => $noticeStatus,
             'attribute' => $attribute,
             'category' => $category,
             'uids' => $uids,
+            'action_type' => $noticeRule['action_type'],
+            'action_id' => $noticeRule['action_id'],
         ];
     }
 }