This commit is contained in:
aozhiwei 2024-11-08 10:50:46 +08:00
parent 1282516fd9
commit 991be62e99
2 changed files with 18 additions and 0 deletions

View File

@ -49,6 +49,10 @@ class OutAppCircuitController extends BaseController {
);
if (!$user){
} else {
myself()->_callServiceStatic('CircuitRankingService',
'fillRanking',
$currentCircuitMeta
);
$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']);
@ -104,6 +108,10 @@ class OutAppCircuitController extends BaseController {
if (!$currentStageMeta){
$currentStageMeta = mt\CircuitTime::getPrevStage();
}
myself()->_callServiceStatic('CircuitRankingService',
'fillPhaseRanking',
$currentCircuitMeta,
$currentStageMeta);
$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']);

View File

@ -8,4 +8,14 @@ use mt\Item;
class CircuitRankingService extends BaseService {
public static function fillPhaseRanking($currentCircuitMeta, $currentStageMeta)
{
}
public static function fillRanking($currentCircuitMeta)
{
}
}