diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 8811e299..04bd19b0 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -2051,12 +2051,14 @@ DROP TABLE IF EXISTS `t_circuit_battle`; CREATE TABLE `t_circuit_battle` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', + `is_android` int(11) NOT NULL DEFAULT '0' COMMENT 'is android', `season` int(11) NOT NULL DEFAULT '0' COMMENT '赛季', `cumulative_score` int(11) NOT NULL DEFAULT '0' COMMENT '积分', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), - KEY `idx_account_season` (`account_id`, `season`) + KEY `idx_account_season` (`account_id`, `season`), + KEY `idx_is_android` (`is_android`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; @@ -2071,13 +2073,15 @@ DROP TABLE IF EXISTS `t_circuit_battle_phase`; CREATE TABLE `t_circuit_battle_phase` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', + `is_android` int(11) NOT NULL DEFAULT '0' COMMENT 'is android', `season` int(11) NOT NULL DEFAULT '0' COMMENT '赛季', `phase` int(11) NOT NULL DEFAULT '0' COMMENT '阶段', `cumulative_score` int(11) NOT NULL DEFAULT '0' COMMENT '积分', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), - KEY `idx_account_season_phase` (`account_id`, `season`, `phase`) + KEY `idx_account_season_phase` (`account_id`, `season`, `phase`), + KEY `idx_is_android` (`is_android`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; diff --git a/webapp/services/CircuitRankingService.php b/webapp/services/CircuitRankingService.php index 28ae1ff9..244d026e 100644 --- a/webapp/services/CircuitRankingService.php +++ b/webapp/services/CircuitRankingService.php @@ -12,6 +12,7 @@ class CircuitRankingService extends BaseService { if (count($rows) < 100) { return; } + } public static function fillRanking($currentCircuitMeta)