Commit 1417bb19 authored by Tt's avatar Tt

修改存储数据方式

parent 71b0cb89
......@@ -232,8 +232,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.log("-----------------------startTestConvert")
cc.audioEngine.stopAllEffects();
courseware && courseware.startTestConvert(this.letter); //开始录音
// (<any>window).courseware.startTestConvert('My name is Lucy');
// (<any>window).courseware.stopTestConvert(res => {
// // 录音评测返回结果, 与stopTest方法返回结果一致
......@@ -268,6 +266,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
"applicationId": "154838659000009e"
}
if (!courseware) {
this.recordAudio = testData.audioUrl;
return this.recrodEnd(testData)
}
this.log("---------------courseware.stopTestConvert:")
......
......@@ -679,10 +679,10 @@ let pg = {
},
records: [],
addRecord(data) {
this.records.push(data)
pg.hw.records.push(data)
},
getRecord() {
return this.records.concat();
return pg.hw.records.concat();
}
},
signal: {
......
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