Revert "Add image download proxy support to OneBot"

This reverts commit d619e2e41c.
This commit is contained in:
手瓜一十雪
2026-01-29 20:39:07 +08:00
parent 0e37739dba
commit 2bff8343cd
9 changed files with 64 additions and 119 deletions

View File

@@ -1288,8 +1288,7 @@ export class OneBotMsgApi {
}
realUri = await this.handleObfuckName(realUri) ?? realUri;
try {
const proxy = this.obContext.configLoader.configData.imageDownloadProxy || undefined;
const { path, fileName, errMsg, success } = await uriToLocalFile(this.core.NapCatTempPath, realUri, undefined, undefined, proxy);
const { path, fileName, errMsg, success } = await uriToLocalFile(this.core.NapCatTempPath, realUri);
if (!success) {
this.core.context.logger.logError('文件处理失败', errMsg);
throw new Error('文件处理失败: ' + errMsg);