import { readJsonFile, parseGoodStr } from '../util' import { FILENAME } from '../../consts' import { RewardInter } from '../interface'; export interface DicHeroRewads { readonly id: number; readonly min: number; readonly max: number; readonly heroscore: number; readonly reward: Array; } const str = readJsonFile(FILENAME.DIC_PVP_HERO_REWARD); let arr = JSON.parse(str); export const dicHeroRewads = new Array(); arr.forEach(o => { o.reward = parseGoodStr(o.reward); dicHeroRewads.push(o); });