... season ranking sort adjust ...

This commit is contained in:
songliang 2022-12-07 14:06:10 +08:00
parent a24bfa8fc8
commit 35c014a60d

View File

@ -47,6 +47,7 @@ console.log("season ranking start1");
}
checkSeasonEnd(nowTime) {
return true;
let c = this.getCurSeasonId(nowTime);
if (!!c) {
return (nowTime>c.end_time);
@ -110,7 +111,7 @@ console.log("season ranking start1");
async getRecords(conn, lastIdx, limit) {
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,
limit
@ -175,8 +176,8 @@ console.log("season ranking start1");
['score', element['score']],
['ranking', index+1],
['season', seasonId],
['createtime', nowTime],
['modifytime', nowTime],
['createtime', element.createtime],
['modifytime', element.score_modifytime],
]
)
}