数据监测改为查半小时内在线用户
This commit is contained in:
parent
1dd7bc2175
commit
eb73af1dd2
@ -34,7 +34,7 @@ export class WatchDog extends Scheduler {
|
|||||||
//获取今天0点之后在线的玩家
|
//获取今天0点之后在线的玩家
|
||||||
let users = await G.mongodb.collection("user").find({
|
let users = await G.mongodb.collection("user").find({
|
||||||
lv: {$gt: 10},
|
lv: {$gt: 10},
|
||||||
newonlinetime: {$gte: G.time - 3600, $lte: G.time + 30}
|
newonlinetime: {$gte: G.time - 1800, $lte: G.time + 30}
|
||||||
}, {
|
}, {
|
||||||
projection: {
|
projection: {
|
||||||
uid: 1,
|
uid: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user