军团:诸侯混战城门血量

This commit is contained in:
luying
2022-05-05 18:14:03 +08:00
parent 01b4c3b065
commit 2b133b4a5c
6 changed files with 22 additions and 9 deletions
+13 -1
View File
@@ -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 }
}),