Skip to content

Commit

Permalink
fix(core): 修复视频频繁停止导致的频繁验证码
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 24, 2022
1 parent a855740 commit 62f708e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/script/cx/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ function mediaTask(setting: ScriptSettings['cx']['video'], media: HTMLMediaEleme
await sleep(1000);
// 提交
submit[0].click();

await sleep(3000);
// 继续检测
await playFunction();
} else {
// 重新播放
await sleep(1000);
media.play();
}

await sleep(3000);
// 继续检测
await playFunction();
} else {
// @ts-ignore
media.__played__ = true;
Expand Down

0 comments on commit 62f708e

Please sign in to comment.