We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6478bbc commit 33a4287Copy full SHA for 33a4287
app/Http/Controllers/API/PostController.php
@@ -19,7 +19,7 @@ public function index(Request $request)
19
$item['title'] = $post->title;
20
$item['summary'] = $post->subtitle;
21
$item['thumb'] = url(config('blog.uploads.webpath') . '/' . $post->page_image);
22
- $item['posted_at'] = $post->published_date;
+ $item['posted_at'] = $post->publish_date;
23
$item['views'] = mt_rand(1, 10000); // 暂时没有实现文章浏览数逻辑,返回随机数
24
$items[] = $item;
25
}
0 commit comments