build:修改docker构建配置与简化后端config

This commit is contained in:
jiangrui
2025-03-06 18:24:01 +08:00
parent e708524a41
commit e8f70b286e
7 changed files with 72 additions and 70 deletions

View File

@@ -1,7 +1,6 @@
import { AxiosHeaders, AxiosInstance } from "axios"; // 导入 AxiosHeaders
import { createAxiosInstance } from "../utils/axiosInstance";
import { Logger } from "../utils/logger";
import { config } from "../config/index";
import { ShareInfoResponse } from "../types/cloud115";
interface Cloud115ListItem {
@@ -128,7 +127,6 @@ export class Cloud115Service {
}): Promise<{ message: string; data: unknown }> {
const param = new URLSearchParams({
cid: params.cid,
user_id: config.cloud115.userId,
share_code: params.shareCode,
receive_code: params.receiveCode,
file_id: params.fileId,

View File

@@ -80,8 +80,8 @@ export class Searcher {
const allResults: any[] = [];
const channelList: any[] = channelId
? config.rss.channels.filter((channel: any) => channel.id === channelId)
: config.rss.channels;
? config.telegram.channels.filter((channel: any) => channel.id === channelId)
: config.telegram.channels;
// 使用Promise.all进行并行请求
const searchPromises = channelList.map(async (channel) => {