1
This commit is contained in:
parent
89eeb7fab1
commit
d10a78bdda
@ -33,6 +33,7 @@ class CircuitRankingService extends BaseService {
|
|||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$androidHash[$row['account_id']] = $row;
|
$androidHash[$row['account_id']] = $row;
|
||||||
}
|
}
|
||||||
|
$androidHashDb = self::getAndroidHashDb($androidHash);
|
||||||
if (count($androidHash) < 100) {
|
if (count($androidHash) < 100) {
|
||||||
for ($i = count($androidHash); $i < 100; $i++) {
|
for ($i = count($androidHash); $i < 100; $i++) {
|
||||||
|
|
||||||
@ -40,6 +41,24 @@ class CircuitRankingService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getAndroidHashDb($alreadyAndroidHash)
|
||||||
|
{
|
||||||
|
$androidHash = array();
|
||||||
|
$rows = SqlHelper::ormSelectOne
|
||||||
|
($this->_getMysql(''),
|
||||||
|
't_android',
|
||||||
|
array(
|
||||||
|
'used' => 0
|
||||||
|
)
|
||||||
|
);
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
if (!array_key_exists($row['robot_id'], $alreadyAndroidHash)) {
|
||||||
|
$androidHash[$row['robot_id']] = $row;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $androidHash;
|
||||||
|
}
|
||||||
|
|
||||||
public static function repairRanking($currentCircuitMeta)
|
public static function repairRanking($currentCircuitMeta)
|
||||||
{
|
{
|
||||||
$rows = myself()->_callModelStatic('Circuit', 'getCircuitList',
|
$rows = myself()->_callModelStatic('Circuit', 'getCircuitList',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user