Merge branch 'main' into extend

This commit is contained in:
手瓜一十雪 committed 2024-08-20 20:07:02 +08:00
commit 95d8cb9c8d
9 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import path, { dirname } from 'path';
import { fileURLToPath } from 'url';
import fs from 'fs';
export const napcat_version = '2.0.35';
export const napcat_version = '2.0.36';
export class NapCatPathWrapper {
binaryPath: string;
+1 -1
View File
@@ -259,7 +259,7 @@ export async function uri2local(dir: string, uri: string, filename: string | und
if (success) {
filePath = fileTypePath;
fileExt = ext;
filename = path.basename(filePath, fileExt);
filename = filename + '.' + ext;
}
return { success: true, errMsg: '', fileName: filename, ext: fileExt, path: filePath, isLocal: true };
}