🐞 fix(gvg): 激战期保存队伍修复
This commit is contained in:
@@ -1454,9 +1454,10 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case "guild.gvgBattleHandler.saveTeam":
|
||||
{
|
||||
if(!checkNaturalNumbers(msg.index, msg.head, msg.frame, msg.spine)) return false;
|
||||
if(!checkArrayCanEmpty(msg.lineup)) return false;
|
||||
for(let { actorId, dataId, order } of msg.lineup) {
|
||||
if(!checkNaturalNumbers(actorId, dataId, order)) return false;
|
||||
if(msg.lineup) {
|
||||
for(let { actorId, dataId, order } of msg.lineup) {
|
||||
if(!checkNaturalNumbers(actorId, dataId, order)) return false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -715,7 +715,8 @@ export class MyTeamSimpleInfo {
|
||||
this.teamCode = team.teamCode;
|
||||
this.index = team.index;
|
||||
this.head = team.head;
|
||||
this.frame = team.spine;
|
||||
this.frame = team.frame;
|
||||
this.spine = team.spine;
|
||||
this.lineup = team.lineup.map(({ actorId, dataId, outIndex }) => ({ actorId, dataId, order: outIndex }));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user