|
@@ -28,9 +28,9 @@ class TopicTransformer extends TransformerAbstract{
|
|
|
'is_hot' => $topic['is_hot'],
|
|
|
'is_open' => $topic['is_open'],
|
|
|
'desc' => $topic['desc'],
|
|
|
- 'post_count' => 0,
|
|
|
- 'follow_count' => 0,
|
|
|
- 'page_count' => 0,
|
|
|
+ 'post_count' => $topic['use_count'],
|
|
|
+ 'follow_count' => $topic['follow_count'],
|
|
|
+ 'page_count' => $topic['pv'],
|
|
|
'created_at' => Carbon::parse($topic['created_at'])->toDateTimeString(),
|
|
|
'category_list'=>$category,
|
|
|
];
|