后台:json上传

This commit is contained in:
luying
2021-05-12 17:57:25 +08:00
parent 2fc5017af8
commit 148a11edab
102 changed files with 1675 additions and 1117 deletions

View File

@@ -1,5 +1,5 @@
// 每周总活跃
import { readJsonFile, parseGoodStr } from '../util'
import { readFileAndParse, parseGoodStr } from '../util'
import { FILENAME } from '../../consts'
import { RewardInter } from '../interface';
@@ -16,13 +16,14 @@ export interface DicGuildActiveWeekReward {
}
const str = readJsonFile(FILENAME.DIC_ACTIVE_DAY_REWARD);
let arr = JSON.parse(str);
export const dicGuildActiveWeekReward = new Array<DicGuildActiveWeekReward>();
export function loadGuildActiveWeekReward() {
arr.forEach(o => {
o.reward = parseGoodStr(o.Reward)
dicGuildActiveWeekReward.push(o);
});
arr = undefined;
let arr = readFileAndParse(FILENAME.DIC_ACTIVE_DAY_REWARD);
arr.forEach(o => {
o.reward = parseGoodStr(o.Reward)
dicGuildActiveWeekReward.push(o);
});
arr = undefined;
}