1
This commit is contained in:
parent
ec61d9f753
commit
1fca42b393
@ -767,6 +767,7 @@ class BattleController extends BaseAuthedController {
|
||||
|
||||
public function getNormalBattleData()
|
||||
{
|
||||
error_log(json_encode($_REQUEST));
|
||||
$version = getReqVal('version', 0);
|
||||
$ignoreAndroid = false;
|
||||
if ($version < 1) {
|
||||
|
@ -49,6 +49,16 @@ class CircuitTime {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function getCurrentBattleStage(){
|
||||
foreach (self::getCircuitAll(self::STAGE_SEASON_TYPE) as $meta){
|
||||
if (myself()->_getNowTime() >= strtotime($meta['start_time']) &&
|
||||
myself()->_getNowTime() <= strtotime($meta['end_time']) + 60 * 30) {
|
||||
return $meta;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function getNextStage($season){
|
||||
$next = array();
|
||||
foreach (self::getListBySeason($season) as $meta){
|
||||
|
@ -133,7 +133,7 @@ class RoomBattleDataService extends BaseService {
|
||||
//巡回模式排位分计算
|
||||
if ($this->mapMode == mt\MapMode::CIRCUIT_MODE){
|
||||
$circuitMeta = mt\CircuitTime::getCurrentCircuit();
|
||||
$circuitStageMeta = mt\CircuitTime::getCurrentStage();
|
||||
$circuitStageMeta = mt\CircuitTime::getCurrentBattleStage();
|
||||
if ($circuitMeta && $circuitStageMeta){
|
||||
$minScore = mt\Parameter::getVal('circuit_rank_score_min',0);
|
||||
$multConstant = mt\Parameter::getVal('circuit_score_mult_constant',1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user