Skip to content

Commit

Permalink
perf(script): 增加超星任务点关闭后的开启提示
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Nov 29, 2023
1 parent 13d8787 commit fe11e6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/scripts/src/projects/cx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ function searchJob(
let func: { (): Promise<any> } | undefined;
if (media) {
if (!CXProject.scripts.study.cfg.enableMedia) {
$console.warn(`音视频自动学习功能已关闭。${jobName} 即将跳过`);
$console.warn(`音视频自动学习功能已关闭(在上方菜单栏,超星学习通-课程学习中开启)${jobName} 即将跳过`);
} else {
// 重复学习,或者未完成
if (opts.restudy || attachment.job) {
Expand All @@ -1144,7 +1144,7 @@ function searchJob(
}
} else if (chapterTest) {
if (!CXProject.scripts.study.cfg.enableChapterTest) {
$console.warn(`章节测试自动答题功能已关闭。${jobName} 即将跳过`);
$console.warn(`章节测试自动答题功能已关闭(在上方菜单栏,超星学习通-课程学习中开启)${jobName} 即将跳过`);
} else {
const status = win.document.querySelector<HTMLElement>('.testTit_status');

Expand Down Expand Up @@ -1176,7 +1176,7 @@ function searchJob(
}
} else if (read) {
if (!CXProject.scripts.study.cfg.enablePPT) {
$console.warn(`PPT/书籍阅读功能已关闭。${jobName} 即将跳过`);
$console.warn(`PPT/书籍阅读功能已关闭(在上方菜单栏,超星学习通-课程学习中开启)${jobName} 即将跳过`);
} else {
if (attachment.job) {
func = () => {
Expand Down

0 comments on commit fe11e6e

Please sign in to comment.