fix: tsconfig path alias

This commit is contained in:
linyuchen 2024-04-16 12:59:52 +08:00
parent c29cbfe123
commit 079d0a89b1
2 changed files with 7 additions and 7 deletions

View File

@ -27,8 +27,8 @@ import { log } from '@/common/utils/log';
import { sleep } from '@/common/utils/helper'; import { sleep } from '@/common/utils/helper';
import { uri2local } from '@/common/utils/file'; import { uri2local } from '@/common/utils/file';
import { getFriend, getGroup, getGroupMember, getUidByUin, selfInfo } from '@/common/data'; import { getFriend, getGroup, getGroupMember, getUidByUin, selfInfo } from '@/common/data';
import { NTQQMsgApi } from '@/core/qqnt/apis/msg'; import { NTQQMsgApi } from '@/core/qqnt/apis';
import {NTQQFileApi} from "@/core/qqnt/apis/file"; import { NTQQFileApi } from '@/core/qqnt/apis';
const ALLOW_SEND_TEMP_MSG = false; const ALLOW_SEND_TEMP_MSG = false;
@ -152,7 +152,7 @@ export async function createSendElements(messageData: OB11MessageData[], group:
const cache = await dbUtil.getFileCacheByName(file); const cache = await dbUtil.getFileCacheByName(file);
if (cache) { if (cache) {
if (fs.existsSync(cache.path)) { if (fs.existsSync(cache.path)) {
file = "file://" + cache.path; file = 'file://' + cache.path;
} }
else if (cache.url) { else if (cache.url) {
file = cache.url; file = cache.url;
@ -164,14 +164,14 @@ export async function createSendElements(messageData: OB11MessageData[], group:
cache.elementId, '', ''); cache.elementId, '', '');
cache.path = downloadPath!; cache.path = downloadPath!;
dbUtil.updateFileCache(cache).then(); dbUtil.updateFileCache(cache).then();
file = "file://" + cache.path; file = 'file://' + cache.path;
} }
// await sleep(1000); // await sleep(1000);
// log('download result', downloadPath); // log('download result', downloadPath);
// log('下载完成后的msg', msg); // log('下载完成后的msg', msg);
} }
log("找到文件缓存", file); log('找到文件缓存', file);
} }
const { path, isLocal, fileName, errMsg } = (await uri2local(file)); const { path, isLocal, fileName, errMsg } = (await uri2local(file));
if (errMsg) { if (errMsg) {

View File

@ -30,11 +30,11 @@
], ],
"@/core/qqnt/*": [ "@/core/qqnt/*": [
"./src/core/src/qqnt/*", "./src/core/src/qqnt/*",
"./src/core.lib/src/qqnt/index" "./src/core.lib/src/qqnt/*"
], ],
"@/core/*": [ "@/core/*": [
"./src/core/src/*", "./src/core/src/*",
"./src/core.lib/src" "./src/core.lib/src/*"
] ]
} }
}, },