🐞 fix(gvg): 被挑战过程中不可离开城池
This commit is contained in:
@@ -342,6 +342,10 @@ export default class GVGTeam extends BaseModel {
|
||||
public static async updateRoleInfo(roleId: string, info: { roleName?: string, lv?: number }) {
|
||||
await GVGTeamModel.updateMany({ roleId }, { $set: info });
|
||||
}
|
||||
|
||||
public static async checkLockTeam(roleId: string) {
|
||||
return await GVGTeamModel.exists({ roleId, lockTime: { $gt: nowSeconds() } })
|
||||
}
|
||||
}
|
||||
|
||||
export const GVGTeamModel = getModelForClass(GVGTeam);
|
||||
|
||||
Reference in New Issue
Block a user