武将:排行榜装备信息
This commit is contained in:
@@ -15,7 +15,7 @@ import { addItems, handleCost } from "../../../services/rewardService";
|
|||||||
import { getFriendPointObject } from "../../../pubUtils/itemUtils";
|
import { getFriendPointObject } from "../../../pubUtils/itemUtils";
|
||||||
import { RewardInter } from "../../../pubUtils/interface";
|
import { RewardInter } from "../../../pubUtils/interface";
|
||||||
import { FriendPresentLogModel } from '../../../db/FriendPresentLog';
|
import { FriendPresentLogModel } from '../../../db/FriendPresentLog';
|
||||||
import { HeroModel } from "../../../db/Hero";
|
import { HeroModel, EPlace } from "../../../db/Hero";
|
||||||
import { EquipModel } from "../../../db/Equip";
|
import { EquipModel } from "../../../db/Equip";
|
||||||
import { getPlayerMainAttribute } from "../../../services/pvpService";
|
import { getPlayerMainAttribute } from "../../../services/pvpService";
|
||||||
import { FRIEND } from "../../../pubUtils/dicParam";
|
import { FRIEND } from "../../../pubUtils/dicParam";
|
||||||
@@ -666,7 +666,7 @@ export class FriendHandler {
|
|||||||
if (heroList.length <= 0) return resResult(STATUS.HERO_NOT_FIND);
|
if (heroList.length <= 0) return resResult(STATUS.HERO_NOT_FIND);
|
||||||
|
|
||||||
let list = new Array();
|
let list = new Array();
|
||||||
for (let { roleId, roleName, hid, hName, ce, lv, star, colorStar, quality, job, skins, attr: heroAttrs } of heroList) {
|
for (let { roleId, roleName, hid, hName, ce, lv, star, colorStar, quality, job, skins, attr: heroAttrs, ePlace } of heroList) {
|
||||||
|
|
||||||
let curSkin = skins.find(cur => cur.enable);
|
let curSkin = skins.find(cur => cur.enable);
|
||||||
let equips = await EquipModel.findListByHidAndRole(hisRoleId, hid, EQUIP_SELECT.HERO_DETAIL);
|
let equips = await EquipModel.findListByHidAndRole(hisRoleId, hid, EQUIP_SELECT.HERO_DETAIL);
|
||||||
@@ -675,7 +675,11 @@ export class FriendHandler {
|
|||||||
|
|
||||||
list.push({
|
list.push({
|
||||||
roleId, roleName, hid, hName, ce, lv, star, colorStar, quality, job,
|
roleId, roleName, hid, hName, ce, lv, star, colorStar, quality, job,
|
||||||
skin: curSkin ? curSkin.id : 0, equips, attributes
|
skin: curSkin ? curSkin.id : 0, equips: equips.map(cur => {
|
||||||
|
let curEplace = ePlace.find(ccur => cur.ePlaceId == ccur.id)||new EPlace();
|
||||||
|
let { lv = 0, refineLv = 0} = curEplace;
|
||||||
|
return {...cur, lv, refineLv}
|
||||||
|
}), attributes
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export enum ROLE_SELECT {
|
|||||||
|
|
||||||
export enum HERO_SELECT {
|
export enum HERO_SELECT {
|
||||||
ENTRY = '-attr',
|
ENTRY = '-attr',
|
||||||
HERO_DETAIL = 'roleId roleName hid hName ce isReducedCe lv star colorStar quality job skins attr',
|
HERO_DETAIL = 'roleId roleName hid hName ce isReducedCe lv star colorStar quality job skins attr ePlace',
|
||||||
// 排行榜中lineup字段
|
// 排行榜中lineup字段
|
||||||
RANK_LINEUP = 'seqId roleId hid star colorStar lv quality job ce isReducedCe updatedAt'
|
RANK_LINEUP = 'seqId roleId hid star colorStar lv quality job ce isReducedCe updatedAt'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user