Skip to content

Commit

Permalink
fix: 修复今日节点实时流量排行超过15个排序变乱的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed May 31, 2024
1 parent 7246eb6 commit 2c5f610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/V1/Admin/StatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function getServerLastRank()
}
array_multisort(array_column($statistics, 'total'), SORT_DESC, $statistics);
return [
'data' => $statistics
'data' => collect($statistics)->take(15)->all()
];
}
// 获取昨日节点流量排行
Expand Down

0 comments on commit 2c5f610

Please sign in to comment.