远征:获取玩家是否开启功能

This commit is contained in:
luying
2022-05-05 13:15:20 +08:00
parent 17cfeec11a
commit feb637afbc
2 changed files with 5 additions and 7 deletions
@@ -268,6 +268,7 @@ export async function calculateDividend(dividend: DividendType) {
return { return {
roleId, roleId,
posNum, // 职位分红 posNum, // 职位分红
hasJoin: true,
weekendNum, // 额外分红,周末 weekendNum, // 额外分红,周末
total: posNum + weekendNum, // 总分红 total: posNum + weekendNum, // 总分红
status: 0, // 0:未领取,1:已领取 status: 0, // 0:未领取,1:已领取
@@ -23,13 +23,10 @@ export function loadSystemOpenTime() {
let arr = readFileAndParse(FILENAME.DIC_SYSTEM_OPEN_TIME); let arr = readFileAndParse(FILENAME.DIC_SYSTEM_OPEN_TIME);
arr.forEach(o => { arr.forEach(o => {
if(o.isPlayer) { let { warId, lv } = parseLimit(o.limit);
o.seid = parseNumberList(o.seid); o.warId = warId;
let { warId, lv } = parseLimit(o.limit); o.lv = lv;
o.warId = warId; dicSystemOpenTime.set(o.id, _.pick(o, Object.keys(DicSystemOpenTimeKeys)));
o.lv = lv;
dicSystemOpenTime.set(o.jobid, _.pick(o, Object.keys(DicSystemOpenTimeKeys)));
}
}); });
arr = undefined; arr = undefined;
} }