|
@@ -127,8 +127,8 @@ trait PostTrait
|
|
Redis::SET($commentKey, json_encode($comment));
|
|
Redis::SET($commentKey, json_encode($comment));
|
|
Redis::EXPIRE($commentKey, 300);
|
|
Redis::EXPIRE($commentKey, 300);
|
|
}
|
|
}
|
|
- sortArrByField($tempComment, 'like_count', true);
|
|
|
|
- return $tempComment;
|
|
|
|
|
|
+ sortArrByField($comment, 'like_count', true);
|
|
|
|
+ return $comment;
|
|
}
|
|
}
|
|
|
|
|
|
//获取评论点赞数、点赞状态
|
|
//获取评论点赞数、点赞状态
|