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'); $sortRows = myself()->arraySort($data, 'cumulative_score', 'desc');
/*
{ {
for ($i = 0; $i < 200; ++$i) { if (SERVER_ENV != _ONLINE) {
array_push($sortRows, array( for ($i = 0; $i < 200; ++$i) {
'account_id' => $i, array_push($sortRows, array(
'cumulative_score' => 2000 - $i * 3 'account_id' => $i,
)); 'cumulative_score' => 2000 - $i * 3
));
}
} }
} }*/
if (count($sortRows) <= 20) { if (count($sortRows) <= 20) {
myself()->_rspErr(1, '人数不足20'); myself()->_rspErr(1, '人数不足20');
return; return;