Fix wish import 1.4

pull/1/head
Made Baruna 2021-03-17 13:46:32 +08:00
parent adf74cbb5a
commit 517878844e
1 changed files with 3 additions and 0 deletions

View File

@ -155,10 +155,12 @@
let page = 1;
let result = [];
let lastTime = 0;
let lastId = 0;
do {
if (cancelled) return;
url.searchParams.set('page', page);
url.searchParams.set('end_id', lastId);
currentPage = page;
@ -242,6 +244,7 @@
}
page = page + 1;
lastId = result.length > 0 ? result[result.length - 1].id : 0;
await sleep(1000);
console.log(wishes);
} catch (err) {