拍卖行:更新分红公式

This commit is contained in:
liangtongchuan
2021-03-19 11:58:12 +08:00
parent f42fbb3aa7
commit f7c665f206
6 changed files with 35 additions and 21 deletions
@@ -1,4 +1,4 @@
import { AUCTION_BID_STATUS, DIVIDEND_STATUS } from './../../../consts/constModules/auctionConst';
import { AUCTION_BID_STATUS } from './../../../consts/constModules/auctionConst';
import { DividendModel } from './../../../db/Dividend';
import { Application, BackendSession, ChannelService } from "pinus";
import { AUCTION_STAGE, DEBUG_MAGIC_WORD, STATUS, OFFER_RATIO, CURRENCY_BY_TYPE, CURRENCY_TYPE, DATA_NAME, LOT_STATUS } from "../../../consts";
@@ -61,7 +61,7 @@ export class AuctionHandler {
res.releaseCallback();
return resResult(STATUS.LOT_OFFER_SERIAL);
}
let newPrice = parseInt((curPrice * OFFER_RATIO).toFixed(0));
let newPrice = Math.floor(curPrice * OFFER_RATIO);
let maxFlag = max;
if (newPrice >= maxPrice) {
newPrice = maxPrice;