获得战报,刷新,领取

This commit is contained in:
mamengke01
2021-01-08 16:16:51 +08:00
parent 099026869a
commit 12f308f0f5
14 changed files with 243 additions and 83 deletions

View File

@@ -0,0 +1,20 @@
import { readJsonFile, parseGoodStr } from '../util'
import { FILENAME } from '../../consts'
import { RewardInter } from '../interface';
export interface DicPvpBox {
readonly id: number;
readonly score: number;
readonly reward: Array<RewardInter>;
}
const str = readJsonFile(FILENAME.DIC_PVP_BOX);
let arr = JSON.parse(str);
export const dicPvpBoxs = new Array<DicPvpBox>();
arr.forEach(o => {
o.reward = parseGoodStr(o.reward);
dicPvpBoxs.push(o);
});