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