🐞 fix(gvg): 完善队伍的刷新

This commit is contained in:
luying
2023-02-28 15:26:09 +08:00
parent f66e784b63
commit 30018ad0f3
4 changed files with 51 additions and 30 deletions

View File

@@ -31,6 +31,7 @@ export class GVGTeamMem extends GVGTeam {
public updateTeam(team: GVGTeamType) {
for(let key in team) {
if(key == 'lineup' || key == '_id' || key == 'createdAt' || key == 'updatedAt') continue;
this[key] = team[key];
}
this.isMoving = this.stopMoveTime > nowSeconds();