拍卖行:分红数据的生成和计算
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user