|
@@ -925,8 +925,7 @@ class PostRepository
|
|
|
'comment' => 0,
|
|
|
];
|
|
|
foreach ($result as $row) {
|
|
|
- //-86400 因为每天零点以后统计昨天
|
|
|
- if ($value == date('Y-m-d', strtotime($row['created_at']) - 86400)) {
|
|
|
+ if ($value == date('Y-m-d', strtotime($row['created_at']))) {
|
|
|
$info[$value]['read'] = $row['read_count'];
|
|
|
$info[$value]['post'] = $row['post_count'];
|
|
|
$info[$value]['share'] = $row['share_count'];
|