diff --git a/manifest.json b/manifest.json index 106838ce..f6dc5a30 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "NapCatQQ", "slug": "NapCat.Framework", "description": "高性能的 OneBot 11 协议实现", - "version": "2.6.23", + "version": "2.6.24", "icon": "./logo.png", "authors": [ { diff --git a/package.json b/package.json index 215377c3..71e5813e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "napcat", "private": true, "type": "module", - "version": "2.6.23", + "version": "2.6.24", "scripts": { "build:framework": "vite build --mode framework", "build:shell": "vite build --mode shell", diff --git a/src/common/version.ts b/src/common/version.ts index eea9e013..17b03927 100644 --- a/src/common/version.ts +++ b/src/common/version.ts @@ -1 +1 @@ -export const napCatVersion = '2.6.23'; +export const napCatVersion = '2.6.24'; diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index c4705071..7d7c6356 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -396,7 +396,9 @@ export class NTQQFileApi { return IMAGE_HTTP_HOST + `/download?appid=${imageAppid}&fileid=${imageFileId}&rkey=${rkey}`; } - } else if (fileMd5 || md5HexStr) { + } + //到这里说明可能是旧客户端 + if (fileMd5 || md5HexStr) { return `${IMAGE_HTTP_HOST}/gchatpic_new/0/0-0-${(fileMd5 ?? md5HexStr)!.toUpperCase()}/0`; } diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index b166f423..0b0e310e 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -30,7 +30,7 @@ async function onSettingWindowCreated(view: Element) { SettingItem( 'Napcat', undefined, - SettingButton('V2.6.23', 'napcat-update-button', 'secondary'), + SettingButton('V2.6.24', 'napcat-update-button', 'secondary'), ), ]), SettingList([ diff --git a/static/assets/renderer.js b/static/assets/renderer.js index c4b525ed..4c7b2814 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -164,7 +164,7 @@ async function onSettingWindowCreated(view) { SettingItem( 'Napcat', void 0, - SettingButton("V2.6.23", "napcat-update-button", "secondary") + SettingButton("V2.6.24", "napcat-update-button", "secondary") ) ]), SettingList([