Commit a36139c3 authored by limingzhe's avatar limingzhe

fix: 提交成绩异常

parent d7b61dd6
...@@ -2085,10 +2085,14 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2085,10 +2085,14 @@ export class PlayComponent implements OnInit, OnDestroy {
sendResult() { sendResult() {
if (this.userResultPic && this.userResultData) { if (this.userResultPic && this.userResultData) {
const sendResult = (<any>window).courseware.sendResult;
if (sendResult) { const c = window['courseware'];
sendResult({resultData: this.userResultData, resultPic: this.userResultPic}); if (!c) {
return;
} }
c.sendAnswer({resultData: this.userResultData, resultPic: this.userResultPic});
} }
......
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