Commit 5ffe8c2b authored by limingzhe's avatar limingzhe

fix: debug

parent d1ae501e
......@@ -435,6 +435,10 @@ export default class NewClass extends middleLayerBase {
onHomeworkFinish(d1 = null, d2 = null) {
if (this.studyRecord) {
this.defaultReportData();
}
if (this.isRunCamp) {
this.onHomeworkFinishRunCamp(d1, d2);
......@@ -647,10 +651,30 @@ export default class NewClass extends middleLayerBase {
}
}
defaultReportData() {
setTimeout(() => {
if (this.isDestroy) {
return;
}
if (!this.isStudyRecordReported) {
this.reportData(0);
}
}, 500);
}
reportData(score) {
isStudyRecordReported = false;
reportData(score = 0) {
console.log('reportData 1');
if (this.isStudyRecordReported) {
return;
}
if (this.studyRecord) {
this.isStudyRecordReported = true;
console.log('reportData 2');
console.log('=-=-=-=-= reportData');
......
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