|
|
@@ -7,13 +7,11 @@ async function runScript(){
|
|
7
|
7
|
try {
|
|
8
|
8
|
|
|
9
|
9
|
//按照高频单词的使用频率排序,列出所有单词
|
|
10
|
|
- const sql="select ID,Word from Words where BookID=110 order by ID;"
|
|
|
10
|
+ const sql="select * from Words where BookID=110 and ExampleSentence is null order by ID;"
|
|
11
|
11
|
let list = await commonModel.RunSql(null,sql);
|
|
12
|
12
|
let count=list.length;
|
|
13
|
13
|
|
|
14
|
|
- const start=40;
|
|
15
|
|
- //count=10;
|
|
16
|
|
-
|
|
|
14
|
+ const start=0;
|
|
17
|
15
|
// 添加延时函数,确保每分钟只发送9次请求(约每6.67秒一次请求)
|
|
18
|
16
|
const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
19
|
17
|
const requestDelay = 7000; // 7秒,确保每分钟最多9次请求
|