名将擂台:排行榜细节
This commit is contained in:
@@ -78,7 +78,7 @@ export default class LadderMatch extends BaseModel {
|
||||
public static async findAll(serverId: number) {
|
||||
let result: LadderMatchType[] = [], latestTime = new Date();
|
||||
while(latestTime) {
|
||||
let ladderMatch = await LadderMatchModel.find({ serverId, rank: { $gt: 0, $lte: 3000 }, createdAt: { $lt: latestTime } })
|
||||
let ladderMatch = await LadderMatchModel.find({ serverId, rank: { $gt: 0 }, createdAt: { $lt: latestTime } })
|
||||
.sort({ createdAt: -1 })
|
||||
.populate('role', 'roleId roleName head frame spine heads frames spines title lv updatedAt')
|
||||
.limit(1000);
|
||||
|
||||
@@ -52,11 +52,5 @@
|
||||
"rankMin": 2000,
|
||||
"rankMax": 3000,
|
||||
"reward": "31002&100|31001&1000"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"rankMin": 3000,
|
||||
"rankMax": -1,
|
||||
"reward": "31002&100|31001&500"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user