jenkins:debug用拍卖行测试出价

This commit is contained in:
luying
2022-06-07 13:31:20 +08:00
parent ecbe93856c
commit 90e729b686
3 changed files with 8 additions and 6 deletions

View File

@@ -46,8 +46,8 @@ export class AuctionHandler {
}
async offer(msg: { code: string, max: boolean, auctionStage: number }, session: BackendSession) {
const { code, max, auctionStage } = msg;
async offer(msg: { code: string, max: boolean, auctionStage: number, magicWord: string }, session: BackendSession) {
const { code, max, auctionStage, magicWord } = msg;
const roleId = session.get('roleId');
const sid = session.get('sid');
const serverId = session.get('serverId');
@@ -71,7 +71,7 @@ export class AuctionHandler {
return resResult(STATUS.AUCTION_GUILD_MEMBER_ONLY);
}
if(!await checkAuctionStage(auctionStage)) {
if(!await checkAuctionStage(auctionStage, magicWord)) {
res.releaseCallback();
return resResult(STATUS.AUCITON_STAGE_ERR);
}