... season ranking sort adjust ...
This commit is contained in:
parent
a24bfa8fc8
commit
35c014a60d
@ -47,6 +47,7 @@ console.log("season ranking start1");
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkSeasonEnd(nowTime) {
|
checkSeasonEnd(nowTime) {
|
||||||
|
return true;
|
||||||
let c = this.getCurSeasonId(nowTime);
|
let c = this.getCurSeasonId(nowTime);
|
||||||
if (!!c) {
|
if (!!c) {
|
||||||
return (nowTime>c.end_time);
|
return (nowTime>c.end_time);
|
||||||
@ -110,7 +111,7 @@ console.log("season ranking start1");
|
|||||||
|
|
||||||
async getRecords(conn, lastIdx, limit) {
|
async getRecords(conn, lastIdx, limit) {
|
||||||
const {err, rows} = await conn.execQuery(
|
const {err, rows} = await conn.execQuery(
|
||||||
'select idx,account_id,channel,rank,score from t_user where idx > ? order by idx LIMIT ?',
|
'select idx,account_id,channel,rank,score,createtime, score_modifytime from t_user where idx > ? order by idx LIMIT ?',
|
||||||
[
|
[
|
||||||
lastIdx,
|
lastIdx,
|
||||||
limit
|
limit
|
||||||
@ -175,8 +176,8 @@ console.log("season ranking start1");
|
|||||||
['score', element['score']],
|
['score', element['score']],
|
||||||
['ranking', index+1],
|
['ranking', index+1],
|
||||||
['season', seasonId],
|
['season', seasonId],
|
||||||
['createtime', nowTime],
|
['createtime', element.createtime],
|
||||||
['modifytime', nowTime],
|
['modifytime', element.score_modifytime],
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user