许愿
This commit is contained in:
@@ -29,9 +29,9 @@ export class WishPoolHandler {
|
|||||||
let userGuilds = await UserGuildModel.getWishPoolGoods(code, ' wishDntCnt wishGoods');
|
let userGuilds = await UserGuildModel.getWishPoolGoods(code, ' wishDntCnt wishGoods');
|
||||||
let list = [];
|
let list = [];
|
||||||
userGuilds.map(({ wishGoods })=>{
|
userGuilds.map(({ wishGoods })=>{
|
||||||
wishGoods.map(({ type, goodId, count, receiveCnt, drawCnt, _id })=>{
|
// wishGoods.map(({ type, goodId, count, receiveCnt, drawCnt, _id })=>{
|
||||||
list.push({ type, goodId, count, receiveCnt, drawCnt, id: _id })
|
// list.push({ type, goodId, count, receiveCnt, drawCnt, id: _id })
|
||||||
});
|
// });
|
||||||
});
|
});
|
||||||
return resResult(STATUS.SUCCESS, { list, wishDntCnt, wishGoods });
|
return resResult(STATUS.SUCCESS, { list, wishDntCnt, wishGoods });
|
||||||
}
|
}
|
||||||
@@ -45,9 +45,7 @@ export class WishPoolHandler {
|
|||||||
const { guildCode: code, wishDntCnt, wishGoods } = userGuild;
|
const { guildCode: code, wishDntCnt, wishGoods } = userGuild;
|
||||||
const { wishPoolLv } = await GuildModel.findGuild(code, serverId);
|
const { wishPoolLv } = await GuildModel.findGuild(code, serverId);
|
||||||
|
|
||||||
if (wishDntCnt >= 0)
|
|
||||||
|
|
||||||
return resResult(STATUS.SUCCESS, { list, wishDntCnt, wishGoods });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user