🐞 fix(gvg): 修复gvg激战期离开城池后位置乱了的问题
This commit is contained in:
@@ -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 } })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user