Skip to content

Commit

Permalink
feat(script): 添加对智慧树自动保存答案的解释
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Feb 26, 2024
1 parent c63e6d6 commit 53f0846
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/scripts/src/projects/zhs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,10 @@ function gxkWorkAndExam(
* 保存题目,不在选择答案后保存的原因是,如果答题线程大于3会导致题目错乱,因为 resolverIndex 并不是顺序递增的
*/
for (let index = 0; index < worker.totalQuestionCount; index++) {
const modal = $modal('alert', { content: '正在保存题目中,请勿操作...', confirmButton: null });
const modal = $modal('alert', {
content: '正在保存题目中(必须保存,否则填写的答案无效),请勿操作...',
confirmButton: null
});
await waitForCaptcha();
await $.sleep(2000);
// 跳转到该题目,防止用户在保存时切换题目
Expand Down

0 comments on commit 53f0846

Please sign in to comment.