fix: 修复今日节点实时流量排行超过15个排序变乱的问题

This commit is contained in:
xboard 2024-05-31 14:39:16 +08:00
parent 7246eb6ebc
commit 2c5f610ed0

View File

@ -126,7 +126,7 @@ class StatController extends Controller
}
array_multisort(array_column($statistics, 'total'), SORT_DESC, $statistics);
return [
'data' => $statistics
'data' => collect($statistics)->take(15)->all()
];
}
// 获取昨日节点流量排行