Commit 19bf0130 authored by wjf's avatar wjf

l

parent 9c144b84
......@@ -37,13 +37,13 @@ export function getChapterData(index: number): ChapterData {
}
var a = {
"levelNum": 102,
"levelTarget": [
{ "targetType": 5, "targetNum": 40 }
"level": 102,
"tar": [
{ "tarType": 5, "tarNum": 40 }
],
"oneStarScore": 6000,
"twoStarScore": 15000,
"threeStarScore": 32000
"ones": 6000,
"twos": 15000,
"threes": 32000
};
//取数据格式用,一般情况注释
// (function exportFile(chapters: ChapterData[]) {
......@@ -52,20 +52,20 @@ var a = {
// var chapter: ChapterData = chapters[i]
// var target: PassTargetData = chapter.passTarget
// var a: any = {};
// a["levelNum"] = i;
// a["levelTarget"] = [];
// a["level"] = i;
// a["tar"] = [];
// if (target.type == PassType.SCORE_TARGET) {
// a["levelTarget"].push({ "targetType": 1, "targetNum": target.score })
// a["tar"].push({ "tarType": 1, "tarNum": target.score })
// } else {
// for (var j = 0; j < target.elements.length; j++) {
// var element = target.elements[j];
// a["levelTarget"].push({ "targetType": submitTran[element.type], "targetNum": element.count })
// a["tar"].push({ "tarType": submitTran[element.type], "tarNum": element.count })
// }
// }
// a["oneStarScore"] = chapter.starScores[0];
// a["twoStarScore"] = chapter.starScores[1];
// a["threeStarScore"] = chapter.starScores[2];
// a["ones"] = chapter.starScores[0];
// a["twos"] = chapter.starScores[1];
// a["threes"] = chapter.starScores[2];
// obj.push(a)
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment