From 8770fd9ea7b9fd2dd753a47bf8fcc00c92a34808 Mon Sep 17 00:00:00 2001 From: mamengke01 <794347210@qq.com> Date: Fri, 29 Jan 2021 16:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B8=E6=84=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/wishPoolHandler.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/game-server/app/servers/battle/handler/wishPoolHandler.ts b/game-server/app/servers/battle/handler/wishPoolHandler.ts index d101506a8..9cd7666f2 100644 --- a/game-server/app/servers/battle/handler/wishPoolHandler.ts +++ b/game-server/app/servers/battle/handler/wishPoolHandler.ts @@ -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 }); } } \ No newline at end of file