拍卖行:初步实现添加拍品的测试接口

This commit is contained in:
liangtongchuan
2021-03-17 16:14:22 +08:00
parent a76c0fa7fe
commit 76aee57e67
4 changed files with 48 additions and 9 deletions
@@ -53,11 +53,11 @@ export class AuctionHandler {
const serverId: number = session.get('serverId');
if (!guildCode) return resResult(STATUS.GUILD_NOT_FOUND)
const result = await genAuction(guildCode, sourceType, sourceCode, serverId, rewards);
if (!result) {
const lots = await genAuction(guildCode, sourceType, sourceCode, serverId, rewards);
if (!lots) {
return resResult(STATUS.WRONG_PARMS);
}
return resResult(STATUS.SUCCESS, { result });
return resResult(STATUS.SUCCESS, { lots });
}
}