Commit 19bf0130 authored by wjf's avatar wjf

l

parent 9c144b84
...@@ -37,13 +37,13 @@ export function getChapterData(index: number): ChapterData { ...@@ -37,13 +37,13 @@ export function getChapterData(index: number): ChapterData {
} }
var a = { var a = {
"levelNum": 102, "level": 102,
"levelTarget": [ "tar": [
{ "targetType": 5, "targetNum": 40 } { "tarType": 5, "tarNum": 40 }
], ],
"oneStarScore": 6000, "ones": 6000,
"twoStarScore": 15000, "twos": 15000,
"threeStarScore": 32000 "threes": 32000
}; };
//取数据格式用,一般情况注释 //取数据格式用,一般情况注释
// (function exportFile(chapters: ChapterData[]) { // (function exportFile(chapters: ChapterData[]) {
...@@ -52,20 +52,20 @@ var a = { ...@@ -52,20 +52,20 @@ var a = {
// var chapter: ChapterData = chapters[i] // var chapter: ChapterData = chapters[i]
// var target: PassTargetData = chapter.passTarget // var target: PassTargetData = chapter.passTarget
// var a: any = {}; // var a: any = {};
// a["levelNum"] = i; // a["level"] = i;
// a["levelTarget"] = []; // a["tar"] = [];
// if (target.type == PassType.SCORE_TARGET) { // if (target.type == PassType.SCORE_TARGET) {
// a["levelTarget"].push({ "targetType": 1, "targetNum": target.score }) // a["tar"].push({ "tarType": 1, "tarNum": target.score })
// } else { // } else {
// for (var j = 0; j < target.elements.length; j++) { // for (var j = 0; j < target.elements.length; j++) {
// var element = target.elements[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["ones"] = chapter.starScores[0];
// a["twoStarScore"] = chapter.starScores[1]; // a["twos"] = chapter.starScores[1];
// a["threeStarScore"] = chapter.starScores[2]; // a["threes"] = chapter.starScores[2];
// obj.push(a) // 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