diff --git a/manifest.json b/manifest.json index 10dc727..b8b0d09 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "LLOneBot", "slug": "LLOneBot", "description": "实现 OneBot 11 协议,用于 QQ 机器人开发", - "version": "3.32.1", + "version": "3.32.2", "icon": "./icon.webp", "authors": [ { diff --git a/package.json b/package.json index cb75938..494bd5c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "electron-vite build", "build-mac": "npm run build && npm run deploy-mac", - "deploy-mac": "cp -r dist/* ~/Library/Containers/com.tencent.qq/Data/LiteLoaderQQNT/plugins/LLOneBot/", + "deploy-mac": "cp -r dist/* ~/Library/Containers/com.tencent.qq/Data/Documents/LiteLoaderQQNT/plugins/LLOneBot/", "build-win": "npm run build && npm run deploy-win", "deploy-win": "cmd /c \"xcopy /C /S /Y dist\\* %USERPROFILE%\\documents\\LiteLoaderQQNT\\plugins\\LLOneBot\\\"", "format": "prettier -cw .", diff --git a/src/common/utils/file.ts b/src/common/utils/file.ts index fa7fd7d..50d1542 100644 --- a/src/common/utils/file.ts +++ b/src/common/utils/file.ts @@ -133,7 +133,7 @@ export async function uri2local(uri: string, filename?: string, needExt?: boolea if (type === FileUriType.RemoteURL) { try { - const res = await fetchFile(uri) + const res = await fetchFile(uri, {'Referer': uri}) const match = res.url.match(/.+\/([^/?]*)(?=\?)?/) if (match?.[1]) { filename ??= match[1].replace(/[/\\:*?"<>|]/g, '_') diff --git a/src/version.ts b/src/version.ts index 3aad3a2..7327089 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '3.32.1' +export const version = '3.32.2'