This commit is contained in:
aozhiwei 2024-11-09 14:57:10 +08:00
parent 368a9aae47
commit 25b836342c

View File

@ -209,14 +209,17 @@ class CircuitRankingService extends BaseService {
}
}
$sortRows = myself()->arraySort($data, 'cumulative_score', 'desc');
/*
{
for ($i = 0; $i < 200; ++$i) {
array_push($sortRows, array(
'account_id' => $i,
'cumulative_score' => 2000 - $i * 3
));
if (SERVER_ENV != _ONLINE) {
for ($i = 0; $i < 200; ++$i) {
array_push($sortRows, array(
'account_id' => $i,
'cumulative_score' => 2000 - $i * 3
));
}
}
}
}*/
if (count($sortRows) <= 20) {
myself()->_rspErr(1, '人数不足20');
return;