🐞 fix(gvg): 补充错误或遗漏的返回字段
This commit is contained in:
@@ -35,7 +35,7 @@ export async function addGVGReward(roleId: string, roleName: string, leagueCode:
|
|||||||
pushGoods.push({ id, count: item.count, expireTime: item.expireTime });
|
pushGoods.push({ id, count: item.count, expireTime: item.expireTime });
|
||||||
}
|
}
|
||||||
if(pushGoods.length > 0) {
|
if(pushGoods.length > 0) {
|
||||||
await sendMessageToUserWithSuc(roleId, PUSH_ROUTE.LEAGUE_ITEM_UPDATE, { goods: pushGoods }, sid);
|
await sendMessageToUserWithSuc(roleId, PUSH_ROUTE.LEAGUE_ITEM_UPDATE, { items: pushGoods }, sid);
|
||||||
}
|
}
|
||||||
return returnGoods;
|
return returnGoods;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ export class OppDetailData{
|
|||||||
isRobot: boolean;
|
isRobot: boolean;
|
||||||
vestigeId: number;
|
vestigeId: number;
|
||||||
battleCode: string;
|
battleCode: string;
|
||||||
|
warId: number;
|
||||||
status: number;
|
status: number;
|
||||||
time: number;
|
time: number;
|
||||||
heroes: OppDetailHeroData[] = [];
|
heroes: OppDetailHeroData[] = [];
|
||||||
@@ -223,6 +224,7 @@ export class OppDetailData{
|
|||||||
constructor(rec: GVGVestigeRecType, obj: {status: number, time: number}) {
|
constructor(rec: GVGVestigeRecType, obj: {status: number, time: number}) {
|
||||||
this.vestigeId = rec.vestigeId;
|
this.vestigeId = rec.vestigeId;
|
||||||
this.battleCode = rec.battleCode;
|
this.battleCode = rec.battleCode;
|
||||||
|
this.warId = rec.warId;
|
||||||
this.roleId = rec.defenseRoleId;
|
this.roleId = rec.defenseRoleId;
|
||||||
this.isRobot = rec.defenseInfo.isRobot;
|
this.isRobot = rec.defenseInfo.isRobot;
|
||||||
this.status = obj.status;
|
this.status = obj.status;
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ export class LeagueMemberListInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class LeagueMemberDistributeInfo extends LeagueMemberListInfo{
|
export class LeagueMemberDistributeInfo extends LeagueMemberListInfo{
|
||||||
|
rank: number = 0;
|
||||||
food: number = 0;
|
food: number = 0;
|
||||||
mineral: number = 0;
|
mineral: number = 0;
|
||||||
wood: number = 0;
|
wood: number = 0;
|
||||||
@@ -286,6 +287,10 @@ export class LeagueMemberDistributeInfo extends LeagueMemberListInfo{
|
|||||||
this.wood = data.distribute?.wood||0;
|
this.wood = data.distribute?.wood||0;
|
||||||
this.score = data.distribute?.score||0
|
this.score = data.distribute?.score||0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setRank(rank: number) {
|
||||||
|
this.rank = rank;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class LeagueDistributeInfo {
|
export class LeagueDistributeInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user