Add files via upload
This commit is contained in:
@@ -3,7 +3,7 @@ import {connect} from "puppeteer-real-browser";
|
|||||||
import {v4 as uuidV4} from "uuid";
|
import {v4 as uuidV4} from "uuid";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import {fileURLToPath} from "url";
|
import {fileURLToPath} from "url";
|
||||||
import {createDirectoryIfNotExists, sleep} from "../utils.mjs";
|
import {createDirectoryIfNotExists, sleep} from "../utils/cookieUtils.mjs";
|
||||||
import '../proxyAgent.mjs';
|
import '../proxyAgent.mjs';
|
||||||
import NetworkMonitor from "../networkMonitor.mjs";
|
import NetworkMonitor from "../networkMonitor.mjs";
|
||||||
import {detectBrowser} from "../utils/browserDetector.mjs";
|
import {detectBrowser} from "../utils/browserDetector.mjs";
|
||||||
@@ -187,7 +187,7 @@ class HappyApiProvider {
|
|||||||
emitter.emit('error', new Error('请求超时'));
|
emitter.emit('error', new Error('请求超时'));
|
||||||
cleanup();
|
cleanup();
|
||||||
}
|
}
|
||||||
}, 60000);
|
}, 60000); // 60秒,可根据需要调整
|
||||||
|
|
||||||
const responseHandler = async (response) => {
|
const responseHandler = async (response) => {
|
||||||
if (response.url() === targetUrl) {
|
if (response.url() === targetUrl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user