Skip to content

Commit

Permalink
fix(core): 修复某些填空题识别不出的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 21, 2022
1 parent 4ebfdfb commit c2c1c3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/script/cx/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ async function chapterTestTask(setting: ScriptSettings['cx']['work'], frame: HTM
? 'completion'
: type === 3
? 'judgement'
: elements.options[0].querySelector('textarea')
: elements.options[0].tagName === 'TEXTAREA' ||
elements.options[0].querySelector('textarea') ||
elements.options[0].parentElement?.querySelector('textarea')
? 'completion'
: undefined;
},
Expand Down Expand Up @@ -387,7 +389,8 @@ async function chapterTestTask(setting: ScriptSettings['cx']['work'], frame: HTM
uploadRate: store.setting.cx.video.upload,
results,
async callback(finishedRate, uploadable) {
logger('info', '完成率 : ', finishedRate, ' , ', uploadable ? '5秒后将自动提交' : ' 5秒后将自动保存');
const name = store.setting.cx.video.upload === 'force' ? '强制提交' : '自动提交';
logger('info', '完成率 : ', finishedRate, ' , ', uploadable ? '5秒后将' + name : ' 5秒后将自动保存');

await sleep(5000);

Expand Down

0 comments on commit c2c1c3d

Please sign in to comment.