mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d7e8c82624 |
@ -123,8 +123,7 @@ export async function uri2local(ctx: Context, uri: string, needExt?: boolean): P
|
||||
const { type } = checkUriType(uri)
|
||||
|
||||
if (type === FileUriType.FileURL) {
|
||||
const fileUri = uri.replace(/%/g, '%25').replace(/#/g, '%23')
|
||||
const filePath = fileURLToPath(fileUri)
|
||||
const filePath = fileURLToPath(uri)
|
||||
const fileName = path.basename(filePath)
|
||||
// console.log('fileURLToPath', filePath)
|
||||
// console.log('fileName', fileName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user