拍卖行:分红数据的生成和计算

This commit is contained in:
liangtongchuan
2021-03-18 00:00:56 +08:00
parent 18c3e724e6
commit 0d478e25b9
7 changed files with 81 additions and 13 deletions
@@ -53,11 +53,11 @@ export class AuctionHandler {
const serverId: number = session.get('serverId');
if (!guildCode) return resResult(STATUS.GUILD_NOT_FOUND)
const lots = await genAuction(guildCode, sourceType, sourceCode, serverId, rewards);
if (!lots) {
const result = await genAuction(guildCode, sourceType, sourceCode, serverId, rewards);
if (!result) {
return resResult(STATUS.WRONG_PARMS);
}
return resResult(STATUS.SUCCESS, { lots });
return resResult(STATUS.SUCCESS, result);
}
}