|
@@ -101,13 +101,10 @@ class RankingList extends Command
|
|
|
$release_best_author[$k]['type'] = 'release';
|
|
|
}
|
|
|
$all_best_author = array_merge($comment_best_author,$general_best_author,$release_best_author);
|
|
|
- $arr_sort = array();
|
|
|
- foreach($all_best_author as $key => $value){
|
|
|
- foreach($value as $k=>$v){
|
|
|
- $arr_sort[$k][$key] = $v;
|
|
|
- }
|
|
|
- }
|
|
|
- array_multisort($arr_sort['generation_quantity'], SORT_DESC, $all_best_author);
|
|
|
+
|
|
|
+ $column = array_column($all_best_author,'generation_quantity');
|
|
|
+ array_multisort($column,SORT_DESC,$all_best_author);
|
|
|
+
|
|
|
$all_best_author = array_slice($all_best_author,0,10);
|
|
|
|
|
|
Log::debug('昨日拉新最多前十人'.json_encode($registered_most));
|