🐞 fix(gvg): 修复联军组建期相关的一些问题
This commit is contained in:
@@ -85,8 +85,13 @@ export default class GVGLeagueApply extends BaseModel {
|
||||
return n;
|
||||
}
|
||||
|
||||
public static async deleteAllGuildApply(guildCode: string) {
|
||||
const n = await GVGLeagueApplyModel.deleteMany({ guildCode, type: GVG_APPLY_TYPE.APPLY });
|
||||
public static async deleteByGuild(guildCode: string) {
|
||||
const n = await GVGLeagueApplyModel.deleteMany({ guildCode });
|
||||
return n;
|
||||
}
|
||||
|
||||
public static async deleteByLeague(leagueCode: string) {
|
||||
const n = await GVGLeagueApplyModel.deleteMany({ leagueCode });
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
@@ -176,6 +176,7 @@ export class LeagueListInfo {
|
||||
}
|
||||
|
||||
export class LeagueSimpleInfo extends LeagueListInfo {
|
||||
lv: number = 1; // 等级
|
||||
notice: string; // 公共
|
||||
cities: number[] = []; // 占领的城池
|
||||
|
||||
@@ -188,6 +189,10 @@ export class LeagueSimpleInfo extends LeagueListInfo {
|
||||
setCities(cities: number[]) {
|
||||
this.cities = cities;
|
||||
}
|
||||
|
||||
setLv(lv: number) {
|
||||
this.lv = lv;
|
||||
}
|
||||
}
|
||||
|
||||
export class LeagueGuildInfo {
|
||||
@@ -257,7 +262,7 @@ export class LeagueMemberListInfo {
|
||||
|
||||
setByUserData(data: GVGUserDataType) {
|
||||
if(!data) return;
|
||||
this.active = data.active;
|
||||
this.active = data.active||0;
|
||||
this.job = data.job;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user