|
@@ -88,13 +88,11 @@ class RankingList extends Command
|
|
|
$comment_best_author = $comment_author->toArray();
|
|
|
foreach ($comment_best_author as $k => $v) {
|
|
|
$comment_best_author[$k]['type'] = 'comment';
|
|
|
- $v['count'] = intval($v['count']);
|
|
|
}
|
|
|
$general_author = $this->_condition($this->generalRecord);
|
|
|
$general_best_author = $general_author->toArray();
|
|
|
foreach ($general_best_author as $k => $v) {
|
|
|
$general_best_author[$k]['type'] = 'general';
|
|
|
- $v['count'] = intval($v['count']);
|
|
|
}
|
|
|
$release_author = $this->releaseRecord
|
|
|
->whereBetween('created_at', [$yesterday_start, $yesterday_end])
|
|
@@ -104,7 +102,6 @@ class RankingList extends Command
|
|
|
$release_best_author = $release_author->toArray();
|
|
|
foreach ($release_best_author as $k => $v) {
|
|
|
$release_best_author[$k]['type'] = 'release';
|
|
|
- $v['count'] = intval($v['count']);
|
|
|
}
|
|
|
$all_best_author = array_merge($comment_best_author, $general_best_author, $release_best_author);
|
|
|
|