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