Skip to content
This repository was archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
fix:判断题采集的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Nov 22, 2020
1 parent d059353 commit 29431ae
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/mooc/chaoxing/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,16 +352,6 @@ class cxJudgeQuestion extends cxSelectQuestion implements Question {
public Correct(): Answer {
let el = this.el.querySelector(".Py_answer.clearfix");
let ret = this.defaultAnswer();
let score = this.el.querySelector(".Cy_TItle.clearfix .font18.fb");
if (el.innerHTML.indexOf('正确答案') >= 0 || (score && score.querySelector(".Cy_TItle.clearfix .font18.fb").innerHTML != "0.0")) {
let correctText = el.querySelector("span").innerText;
if (correctText.indexOf('×') >= 0) {
ret.correct.push({option: false, content: false});
} else {
ret.correct.push({option: true, content: true});
}
return ret;
}
if (el.querySelectorAll('.fr.dui').length <= 0 && el.querySelectorAll('.fr.cuo').length <= 0) {
return null;
}
Expand Down

0 comments on commit 29431ae

Please sign in to comment.