v2
xiaojunnuo 2025-09-06 00:29:55 +08:00
parent 96677ff8bf
commit bb80bc0c07
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
import axios, { AxiosHeaders, AxiosRequestConfig } from "axios"; import axios, { AxiosHeaders, AxiosRequestConfig } from "axios";
import { ILogger, logger } from "./util.log.js"; import { ILogger, logger } from "./util.log.js";
import { Logger } from "log4js";
import { HttpProxyAgent } from "http-proxy-agent"; import { HttpProxyAgent } from "http-proxy-agent";
import { HttpsProxyAgent } from "https-proxy-agent"; import { HttpsProxyAgent } from "https-proxy-agent";
import nodeHttp from "http"; import nodeHttp from "http";
@ -84,7 +83,7 @@ export function getGlobalAgents() {
/** /**
* @description * @description
*/ */
export function createAxiosService({ logger }: { logger: Logger }) { export function createAxiosService({ logger }: { logger: ILogger }) {
// 创建一个 axios 实例 // 创建一个 axios 实例
const service = axios.create(); const service = axios.create();