🐞 fix(gvg): 添加确认队伍

This commit is contained in:
luying
2023-03-15 16:11:54 +08:00
parent e488e1f4db
commit 899cb3162e
4 changed files with 33 additions and 10 deletions

View File

@@ -17,6 +17,9 @@ export default class GVGTeam extends BaseModel {
@prop({ required: true })
configId: number; // 赛季每赛季在enterCity的时候检测如果不一样就更新durability那些东西
@prop({ required: true })
confirmConfigId: number; // 是否确认过
@prop({ required: true })
roleId: string; // 玩家id

View File

@@ -770,14 +770,16 @@ export class MyTeamSimpleInfo {
dataId: number; // 出兵表上的位置
order: number; // 行动
}[];
hasConfirm: boolean;
constructor(team: GVGTeamType) {
constructor(team: GVGTeamType, configId: number) {
this.teamCode = team.teamCode;
this.index = team.index;
this.head = team.head;
this.frame = team.frame;
this.spine = team.spine;
this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
this.hasConfirm = team.confirmConfigId == configId;
}
}