🐞 fix(gvg): 修复gvg激战期离开城池后位置乱了的问题

This commit is contained in:
luying
2023-03-04 10:55:43 +08:00
parent da7ee118c3
commit c591213377
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -343,8 +343,8 @@ export default class GVGTeam extends BaseModel {
await GVGTeamModel.updateMany({ roleId }, { $set: info });
}
public static async checkLockTeam(roleId: string) {
return await GVGTeamModel.exists({ roleId, lockTime: { $gt: nowSeconds() } })
public static async checkLockTeam(roleId: string, cityId: number) {
return await GVGTeamModel.exists({ roleId, lockTime: { $gt: nowSeconds() }, cityId: { $ne: cityId } })
}
}