1
This commit is contained in:
parent
2102c549f4
commit
af7dacc7d7
@ -84,7 +84,8 @@ class Circuit extends BaseModel
|
||||
|
||||
|
||||
public static function getRankingList($season){
|
||||
$sql = "select * from t_circuit_battle where season=:season order by cumulative_score desc,modifytime asc";
|
||||
$sql = "select * from t_circuit_battle where season=:season and cumulative_score >= 0" .
|
||||
"order by cumulative_score desc,modifytime asc";
|
||||
$whereKv = array(
|
||||
":season" => $season,
|
||||
);
|
||||
@ -115,7 +116,8 @@ class Circuit extends BaseModel
|
||||
}
|
||||
|
||||
public static function getPhaseRankingList($season,$phase){
|
||||
$sql = "select * from t_circuit_battle_phase where season=:season and phase=:phase order by cumulative_score desc,modifytime asc";
|
||||
$sql = "select * from t_circuit_battle_phase where season=:season and phase=:phase " .
|
||||
"and cumulative_score >= 0 order by cumulative_score desc,modifytime asc";
|
||||
$whereKv = array(
|
||||
":season" => $season,
|
||||
":phase" => $phase,
|
||||
|
@ -24,4 +24,23 @@ class CircuitRankingService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
public static function repairPhaseRanking($currentCircuitMeta)
|
||||
{
|
||||
$rows = myself()->_callModelStatic('Circuit', 'getCircuitList',
|
||||
$currentCircuitMeta['circuit_season']);
|
||||
if (count($rows) < 100) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public static function repairRanking($currentCircuitMeta)
|
||||
{
|
||||
$rows = myself()->_callModelStatic('Circuit', 'getCircuitList',
|
||||
$currentCircuitMeta['circuit_season']);
|
||||
if (count($rows) < 100) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user