// 每日个人可领奖励 import { readJsonFile, parseGoodStr } from '../util' import { FILENAME } from '../../consts' import { RewardInter } from '../interface'; export interface DicGuildActiveDayReward { // id readonly id: number; // 权限 readonly activeDayPoint: number; // 奖励 readonly reward: RewardInter[]; } const str = readJsonFile(FILENAME.DIC_ACTIVE_DAY_REWARD); let arr = JSON.parse(str); export const dicGuildActiveDayReward = new Map(); arr.forEach(o => { o.reward = parseGoodStr(o.reward) dicGuildActiveDayReward.set(o.id, o); }); arr = undefined;