diff --git a/server/game2006service/tasks/season.js b/server/game2006service/tasks/season.js index 784ae762..f72bb762 100644 --- a/server/game2006service/tasks/season.js +++ b/server/game2006service/tasks/season.js @@ -116,7 +116,7 @@ class Season { async getRecords(conn, lastIdx, limit) { const {err, rows} = await conn.execQuery( - 'select idx,account_id,channel,rank,score,createtime, score_modifytime from t_user where idx > ? order by idx LIMIT ?', + 'select idx,account_id,`address`,channel,`rank`,`score`,createtime, score_modifytime from t_user where idx > ? order by idx LIMIT ?', [ lastIdx, limit @@ -182,6 +182,7 @@ class Season { 't_season_ranking', [ ['account_id', element['account_id']], + ['address', element['address']], ['channel', element['channel']], ['rank', element['rank']], ['score', element['score']], diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 5a085ce1..fb147fb9 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -808,6 +808,7 @@ DROP TABLE IF EXISTS `t_season_ranking`; CREATE TABLE `t_season_ranking` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', + `address` varchar(60) COMMENT 'address', `channel` int(11) NOT NULL DEFAULT '0' COMMENT 'channel', `rank` int(11) NOT NULL DEFAULT '0' COMMENT '段位', `score` int(11) NOT NULL DEFAULT '0' COMMENT '积分',