🐞 fix: 修复ins部分问题

This commit is contained in:
zhiyu1998 2023-03-23 10:29:16 +08:00
parent 2c08513d93
commit fa09519b34

View File

@ -885,12 +885,7 @@ export class tools extends plugin {
.catch(err => reject(err));
});
};
await fetch(API, {
timeout: 10000,
agent: new HttpProxyAgent(this.myProxy),
redirect: "follow",
follow: 10,
}).then(async resp => {
await fetch(API).then(async resp => {
const html = await resp.text();
const images = html.match(/<div class=\"swiper-slide.*?\">/g);
if (!_.isNull(images)) {