解析修改:playerCeService

This commit is contained in:
luying
2020-12-15 19:54:32 +08:00
parent 9fe95f2a4e
commit 7f256c996e
8 changed files with 89 additions and 193 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ export interface DicFriendShip {
// 羁绊武将ID
readonly hids: Array<number>;
// 属性加成
readonly attribute: Array<{id: number, number: number}>
readonly attributes: Array<{id: number, number: number}>
// 消耗铜币
readonly costCoin: number;
}
@@ -27,7 +27,7 @@ let arr = JSON.parse(str);
export const friendShips = new Map<string, DicFriendShip>();
export const friendShipHidAandIds = new Map<number, {actorId: number, level:number}>();
arr.forEach(o => {
o.attribute = parseAttribute(o.attribute);
o.attributes = parseAttribute(o.attribute);
o.hids = parseNumberList(o.memberId);
friendShips.set(o.shipId + '_' + o.level, o);
let fiendShipHidAandId = friendShipHidAandIds.get(o.shipId);