From c62fe53ee422a0139a7cdeef942fa9875345a379 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 13 May 2021 21:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E5=8F=8B=EF=BC=9A=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=9C=AA=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/Role.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/db/Role.ts b/shared/db/Role.ts index 265f0b5af..1dd9299ac 100644 --- a/shared/db/Role.ts +++ b/shared/db/Role.ts @@ -562,7 +562,7 @@ export default class Role extends BaseModel { // 获取好友推荐列表 public static async getRecommedList(minLv: number, maxLv: number, time: number) { - const result: RoleType[] = await RoleModel.find({ loginTime: { $gt: time }, lv: { $gte: minLv, $lte: maxLv } }, { _id: 0 }) + const result: RoleType[] = await RoleModel.find({ loginTime: { $gt: time }, lv: { $gte: minLv, $lte: maxLv }, hasInit: true }, { _id: 0 }) .select(ROLE_SELECT.SHOW_FRIEND_APPLY_LIST) .sort({ quitTime: -1, lv: -1, ce: -1 }) .limit(200).lean({ getters: true, virtuals: true });