皮肤:修改皮肤推送逻辑

This commit is contained in:
luying
2021-06-23 21:03:53 +08:00
parent 84e0a70a07
commit beaa68119e
4 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -49,4 +49,4 @@ export enum FRIEND_SHIP_SELECT {
GET_FRIEND_VALUE = 'friendValue friendLv'
}
export const ENTERY_ROLE_PICK = ['roleId', 'roleName', 'serverId', 'ce', 'topLineupCe', 'coin', 'lv', 'exp', 'vLv', 'gold', 'heros', 'equips', 'consumeGoods', 'title', 'teraphs', 'showLineup', 'heads', 'head', 'frames', 'frame', 'spines', 'spine', 'hasGuild', 'guildCode', 'todayZeroPoint', 'apJson'];
export const ENTERY_ROLE_PICK = ['roleId', 'roleName', 'serverId', 'ce', 'topLineupCe', 'coin', 'lv', 'exp', 'vLv', 'gold', 'heros', 'equips', 'consumeGoods', 'title', 'teraphs', 'showLineup', 'heads', 'head', 'frames', 'frame', 'spines', 'spine', 'hasGuild', 'guildCode', 'todayZeroPoint', 'apJson', 'skins'];
+1 -1
View File
@@ -17,7 +17,7 @@ export default class Skin extends BaseModel {
hid: number;
public static async findbyRole(roleId: string) {
const rec: SkinType[] = await SkinModel.find({ roleId }).select('id').lean();
const rec: SkinType[] = await SkinModel.find({ roleId }, {_id: 0}).select('id skinName hid').lean();
return rec;
}