Compare commits

...

2 Commits
v4.4.0 ... main

Author SHA1 Message Date
linyuchen
d7e8c82624 fix: 发送文件包含特殊字符的处理 2024-11-21 23:10:39 +08:00
linyuchen
5affbdebb9 fix: 发送文件包含特殊字符的处理 2024-11-21 22:37:15 +08:00
3 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"name": "LLOneBot", "name": "LLOneBot",
"slug": "LLOneBot", "slug": "LLOneBot",
"description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发", "description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发",
"version": "4.4.0", "version": "4.4.1",
"icon": "./icon.webp", "icon": "./icon.webp",
"authors": [ "authors": [
{ {

View File

@ -123,8 +123,7 @@ export async function uri2local(ctx: Context, uri: string, needExt?: boolean): P
const { type } = checkUriType(uri) const { type } = checkUriType(uri)
if (type === FileUriType.FileURL) { if (type === FileUriType.FileURL) {
const fileUri = uri.replace('%', '%25').replace('#', '%23') const filePath = fileURLToPath(uri)
const filePath = fileURLToPath(fileUri)
const fileName = path.basename(filePath) const fileName = path.basename(filePath)
// console.log('fileURLToPath', filePath) // console.log('fileURLToPath', filePath)
// console.log('fileName', fileName) // console.log('fileName', fileName)

View File

@ -1 +1 @@
export const version = '4.4.0' export const version = '4.4.1'