Commit 789c3df5 authored by limingzhe's avatar limingzhe

fix: debug

parent e37e31d3
......@@ -435,6 +435,10 @@ export default class NewClass extends middleLayerBase {
onHomeworkFinish(d1 = null, d2 = null) {
if (this.studyRecord) {
this.reportData();
}
if (this.isRunCamp) {
this.onHomeworkFinishRunCamp(d1, d2);
return;
......@@ -444,6 +448,8 @@ export default class NewClass extends middleLayerBase {
this.onHomeworkFinishTodayWork(d1, d2);
return;
}
console.log('in onHomeworkFinish');
......@@ -560,33 +566,6 @@ export default class NewClass extends middleLayerBase {
onHomeworkFinishStudyRecord(d1 = null, d2 = null) {
console.log('in onHomeworkFinishStudyRecord');
let data = d1;
let callback = null;
if (typeof(d1) == 'function') {
data = d2;
callback = d1;
}
if (this.curHomeworkId == null || this.curSyllabusId == null) {
callback && callback();
return;
}
this.callNetworkApiPostNew(`api/app_source/v1/student/homework/finished`, {
syllabus_id: this.curSyllabusId,
homework_id: this.curHomeworkId,
result: JSON.stringify(data || {}),
}, res => {
this.curSyllabusId = null;
this.curHomeworkId = null;
callback && callback(res);
});
}
studyRecord: StudyRecord;
......
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