拍卖行:世界拍卖开始时就停止计算分红
This commit is contained in:
@@ -179,6 +179,7 @@ export async function startWorldAuction() {
|
||||
const begin = todayGuildBegin();
|
||||
await LotModel.setLotSoldByBegin(begin);
|
||||
await LotModel.updateLotsStageByBegin(begin, AUCTION_STAGE.WORLD);
|
||||
await DividendModel.updateDividendsStatus(begin, DIVIDEND_STATUS.END);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error('startWorldAuction err: ', e);
|
||||
@@ -192,7 +193,6 @@ export async function stopAuction() {
|
||||
const begin = todayGuildBegin();
|
||||
await LotModel.setLotSoldByBegin(begin);
|
||||
await LotModel.updateLotsStageByBegin(begin, AUCTION_STAGE.END);
|
||||
await DividendModel.updateDividendsStatus(begin, DIVIDEND_STATUS.END);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error('stopAuction err: ', e);
|
||||
|
||||
Reference in New Issue
Block a user