diff --git a/manifest.json b/manifest.json index 7fe7276..7f65ed1 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "manifest_version": 4, "type": "extension", - "name": "LLOneBot v3.20.3", + "name": "LLOneBot v3.20.4", "slug": "LLOneBot", "description": "使你的NTQQ支持OneBot11协议进行QQ机器人开发, 不支持商店在线更新", - "version": "3.20.3", + "version": "3.20.4", "icon": "./icon.jpg", "authors": [ { diff --git a/src/onebot11/constructor.ts b/src/onebot11/constructor.ts index c6995a4..80d68e0 100644 --- a/src/onebot11/constructor.ts +++ b/src/onebot11/constructor.ts @@ -141,6 +141,7 @@ export class OB11Constructor { // message_data["data"]["path"] = element.picElement.sourcePath const url = element.picElement.originImageUrl const fileMd5 = element.picElement.md5HexStr + const fileUuid = element.picElement.fileUuid // let currentRKey = config.imageRKey || "CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64" let currentRKey = "CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64" if (url) { @@ -156,10 +157,11 @@ export class OB11Constructor { // getConfigUtil().setConfig(config) // } // } - message_data["data"]["url"] = IMAGE_HTTP_HOST_NT + url + message_data["data"]["url"] = IMAGE_HTTP_HOST + url } else{ - message_data["data"]["url"] = IMAGE_HTTP_HOST_NT + url + "&rkey=" + currentRKey + // 有可能会碰到appid为1406的,这个不能使用新的NT域名,并且需要把appid改为1407才可访问 + message_data["data"]["url"] = `${IMAGE_HTTP_HOST}/download?appid=1407&fileid=${fileUuid}&rkey=${currentRKey}&spec=0` } } else { message_data["data"]["url"] = IMAGE_HTTP_HOST + url diff --git a/src/version.ts b/src/version.ts index c6db98d..77192b4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = "3.20.3" \ No newline at end of file +export const version = "3.20.4" \ No newline at end of file