1
This commit is contained in:
parent
0199a168fc
commit
886f01720a
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace services;
|
namespace services;
|
||||||
|
|
||||||
|
require_once('mt/CircuitTime.php');
|
||||||
require_once('mt/CircuitTime.php');
|
require_once('mt/CircuitTime.php');
|
||||||
|
|
||||||
use mt;
|
use mt;
|
||||||
@ -76,6 +77,11 @@ class CircuitRankingService extends BaseService {
|
|||||||
|
|
||||||
public static function genAndroidData()
|
public static function genAndroidData()
|
||||||
{
|
{
|
||||||
|
$currentCircuitMeta = mt\CircuitTime::getCurrentCircuit();
|
||||||
|
if (!$currentCircuitMeta){
|
||||||
|
$this->_rspErr(1, 'current stage Have not yet started');
|
||||||
|
return ;
|
||||||
|
}
|
||||||
$currentStageMeta = mt\CircuitTime::getCurrentStage();
|
$currentStageMeta = mt\CircuitTime::getCurrentStage();
|
||||||
if (empty($currentStageMeta)) {
|
if (empty($currentStageMeta)) {
|
||||||
myself()->_rspErr(1, 'currentStageMeta Is empty');
|
myself()->_rspErr(1, 'currentStageMeta Is empty');
|
||||||
@ -94,12 +100,16 @@ class CircuitRankingService extends BaseService {
|
|||||||
't_circuit_battle_phase',
|
't_circuit_battle_phase',
|
||||||
array(
|
array(
|
||||||
'account_id' => $row['robot_id'],
|
'account_id' => $row['robot_id'],
|
||||||
|
'season' => $currentCircuitMeta['id'],
|
||||||
|
'phase' => $currentStageMeta['id'],
|
||||||
),
|
),
|
||||||
array(),
|
array(),
|
||||||
array(
|
array(
|
||||||
'account_id' => $row['robot_id'],
|
'account_id' => $row['robot_id'],
|
||||||
'is_android' => 1,
|
'is_android' => 1,
|
||||||
'cumulative_score' => 10,
|
'cumulative_score' => 10,
|
||||||
|
'season' => $currentCircuitMeta['id'],
|
||||||
|
'phase' => $currentStageMeta['id'],
|
||||||
'createtime' => myself()->_getNowTime(),
|
'createtime' => myself()->_getNowTime(),
|
||||||
'modifytime' => myself()->_getNowTime(),
|
'modifytime' => myself()->_getNowTime(),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user