This commit is contained in:
mamengke01
2021-01-29 16:37:12 +08:00
parent afddeba1c9
commit 8770fd9ea7

View File

@@ -29,9 +29,9 @@ export class WishPoolHandler {
let userGuilds = await UserGuildModel.getWishPoolGoods(code, ' wishDntCnt wishGoods');
let list = [];
userGuilds.map(({ wishGoods })=>{
wishGoods.map(({ type, goodId, count, receiveCnt, drawCnt, _id })=>{
list.push({ type, goodId, count, receiveCnt, drawCnt, id: _id })
});
// wishGoods.map(({ type, goodId, count, receiveCnt, drawCnt, _id })=>{
// list.push({ type, goodId, count, receiveCnt, drawCnt, id: _id })
// });
});
return resResult(STATUS.SUCCESS, { list, wishDntCnt, wishGoods });
}
@@ -45,9 +45,7 @@ export class WishPoolHandler {
const { guildCode: code, wishDntCnt, wishGoods } = userGuild;
const { wishPoolLv } = await GuildModel.findGuild(code, serverId);
if (wishDntCnt >= 0)
return resResult(STATUS.SUCCESS, { list, wishDntCnt, wishGoods });
}
}