🐞 fix(拍卖行): 部分拍品误流入世界拍卖行

This commit is contained in:
luying
2022-10-28 09:45:41 +08:00
parent 985a435f11
commit 2e614acec3
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ export class AuctionHandler {
}
bidRoles.push({ roleId, price: newPrice, time: new Date() });
const newLot = await LotModel.updateLot({ code, curBuyer: roleId, curPrice: newPrice, auctionStage, prePrice: curPrice, bidRoles, status: max ? LOT_STATUS.MAX : (maxFlag ? LOT_STATUS.SOLD : LOT_STATUS.ING), watchingRoles: Array.from(new Set([...watchingRoles, roleId])), seq: 0 });
if(seq <= LOTS_KEEP_TO_WORLD_CNT) await LotModel.setSeq(begin, gid, count, seq);
if(seq <= LOTS_KEEP_TO_WORLD_CNT && seq > 0) await LotModel.setSeq(begin, gid, count, seq);
await pushAuctionOver(newLot); // 推送竞价超过标志
res.releaseCallback();