测试:演武台拍卖行测试

This commit is contained in:
luying
2021-10-23 16:03:38 +08:00
parent ea7309a66f
commit f71c579e30
3 changed files with 91 additions and 57 deletions

View File

@@ -130,7 +130,7 @@ export class AuctionHandler {
}
async checkDividend(msg: {}, session: BackendSession) {
const begin = todayGuildBegin();
const begin = await todayGuildBegin();
const guildCode = session.get('guildCode');
if (!guildCode) return resResult(STATUS.GUILD_NOT_FOUND);
const dividends = await DividendModel.findGuildDividendsByBegin(guildCode, begin);
@@ -155,9 +155,9 @@ export class AuctionHandler {
async myWatching(msg: {}, session: BackendSession) {
const roleId = session.get('roleId');
const serverId = session.get('serverId');
const begin = todayGuildBegin();
const begin = await todayGuildBegin();
const lots = await LotModel.watchingLotsByBegin(serverId, roleId, begin);
const stage = auctionStage();
const stage = await auctionStage();
return resResult(STATUS.SUCCESS, { lots: stage === AUCTION_STAGE.END ? [] : lots });
}