1
This commit is contained in:
parent
74edefdd36
commit
02882b5c92
@ -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']],
|
||||
|
@ -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 '积分',
|
||||
|
Loading…
x
Reference in New Issue
Block a user