From 02882b5c92840164c0b5d0ca07eda9f750953669 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 24 Aug 2023 13:57:59 +0800 Subject: [PATCH] 1 --- server/game2006service/tasks/season.js | 3 ++- sql/gamedb.sql | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 '积分',