From 368a9aae4715faf1eb8836d3f0e55b71c2903568 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 9 Nov 2024 14:45:48 +0800 Subject: [PATCH] 1 --- webapp/services/CircuitRankingService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/services/CircuitRankingService.php b/webapp/services/CircuitRankingService.php index 86e0d11b..308361a1 100644 --- a/webapp/services/CircuitRankingService.php +++ b/webapp/services/CircuitRankingService.php @@ -213,7 +213,7 @@ class CircuitRankingService extends BaseService { for ($i = 0; $i < 200; ++$i) { array_push($sortRows, array( 'account_id' => $i, - 'cumulative_score' => 1000 - $i + 'cumulative_score' => 2000 - $i * 3 )); } } @@ -286,7 +286,7 @@ class CircuitRankingService extends BaseService { ), array( 'cumulative_score' => function() use($android, $newScore) { - $addScore = $android['cumulative_score'] - $newScore; + $addScore = $newScore - $android['cumulative_score']; return 'cumulative_score +' . $addScore; }, ),