🐞 fix(gvg): 修复激战期离开战场逻辑
This commit is contained in:
@@ -143,6 +143,12 @@ export default class GVGTeam extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
// 离开队伍
|
||||
public static async leaveCity(roleId: string) {
|
||||
let res = await GVGTeamModel.updateMany({ roleId }, { $set: { cityId: 0, areaId: 0, pointId: 0 } });
|
||||
return !!res["ok"];
|
||||
}
|
||||
|
||||
// 查找角色队伍数
|
||||
public static async getTeamCntByRole(roleId: string) {
|
||||
const teams: GVGTeamType[] = await GVGTeamModel.find({ roleId }).select('teamCode').lean();
|
||||
|
||||
Reference in New Issue
Block a user