拍卖行:更新分红公式
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user