拍卖:分红

This commit is contained in:
luying
2022-04-27 22:04:07 +08:00
parent c13d0990b3
commit d7a1e97d47

View File

@@ -218,8 +218,8 @@ export async function genAuction(guildCode: string, sourceType: number, sourceCo
const dividendCode = genCode(DIVIDEND_CODE_LEN);
const dividendData: DividendParam = {
guildCode, sourceType, sourceCode, serverId, code: dividendCode, dividends: [], totalPrice: 0, begin, lots: lots.map(lot => {
const { code, gid, curPrice } = lot;
return { code, gid, price: curPrice, time: guildEnd, max: false, count: lot.count }
const { code, gid } = lot;
return { code, gid, price: 0, time: guildEnd, max: false, count: lot.count }
}),
};
const dividend = await DividendModel.createDividend(dividendData);