From f178eb96986e956ca0c3b5e4a1af15e2878f08ea Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 9 Nov 2024 10:18:08 +0800 Subject: [PATCH] 1 --- webapp/controller/OutAppCircuitController.class.php | 2 -- webapp/services/CircuitRankingService.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/webapp/controller/OutAppCircuitController.class.php b/webapp/controller/OutAppCircuitController.class.php index 4f8cdffa..1f57ef9d 100644 --- a/webapp/controller/OutAppCircuitController.class.php +++ b/webapp/controller/OutAppCircuitController.class.php @@ -58,7 +58,6 @@ class OutAppCircuitController extends BaseController { $redis = $this->_getRedis($this->redis_key_circuit_ranking); if (! $redis->exists(CIRCUIT_RANKING_KEY.$this->redis_key_circuit_ranking)){ $rows = Circuit::getCircuitList($currentCircuitMeta['circuit_season']); - error_log(json_encode($rows)); $sortRows = myself()->arraySort($rows, 'cumulative_score', 'desc'); $list = $this->_extractRankingInfo($sortRows); $redis->set(CIRCUIT_RANKING_KEY.$this->redis_key_circuit_ranking , json_encode($list)); @@ -118,7 +117,6 @@ class OutAppCircuitController extends BaseController { $redis = $this->_getRedis($this->redis_key_circuit_phase_ranking); if (! $redis->exists(CIRCUIT_RANKING_KEY.$this->redis_key_circuit_phase_ranking)){ $rows = Circuit::getCircuitPhaseList($currentStageMeta['circuit_season'],$currentStageMeta['circuit_phase']); - error_log(json_encode($rows)); $sortRows = myself()->arraySort($rows, 'cumulative_score', 'desc'); $list = $this->_extractRankingInfo($sortRows); $redis->set(CIRCUIT_RANKING_KEY.$this->redis_key_circuit_phase_ranking , json_encode($list)); diff --git a/webapp/services/CircuitRankingService.php b/webapp/services/CircuitRankingService.php index a8c174ff..bef92a24 100644 --- a/webapp/services/CircuitRankingService.php +++ b/webapp/services/CircuitRankingService.php @@ -129,7 +129,7 @@ class CircuitRankingService extends BaseService { $heroDb = null; $heroId = 0; $skinId = 0; - if ($data['is_android']) { + if ($row['is_android']) { $robotMeta = myself()->_callMtStatic('Robot', 'get', $row['account_id']); $userDb = array( 'account_id' => $row['account_id'],