军团:诸侯混战城门血量
This commit is contained in:
@@ -216,8 +216,20 @@ export async function genAuction(guildCode: string, sourceType: number, sourceCo
|
||||
});
|
||||
const lots = await LotModel.createRecs(lotsData);
|
||||
const dividendCode = genCode(DIVIDEND_CODE_LEN);
|
||||
const participantsData = await participants(guildCode, sourceType, sourceCode);
|
||||
const dividends: DividendRec[] = participantsData.map(data => {
|
||||
const { roleId } = data;
|
||||
return {
|
||||
roleId,
|
||||
posNum: 0, // 职位分红
|
||||
hasJoin: true,
|
||||
weekendNum: 0, // 额外分红,周末
|
||||
total: 0, // 总分红
|
||||
status: 0, // 0:未领取,1:已领取
|
||||
};
|
||||
});
|
||||
const dividendData: DividendParam = {
|
||||
guildCode, sourceType, sourceCode, serverId, code: dividendCode, dividends: [], totalPrice: 0, begin, lots: lots.map(lot => {
|
||||
guildCode, sourceType, sourceCode, serverId, code: dividendCode, dividends, totalPrice: 0, begin, lots: lots.map(lot => {
|
||||
const { code, gid } = lot;
|
||||
return { code, gid, price: 0, time: guildEnd, max: false, count: lot.count }
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user