mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
fix: tsconfig path alias
This commit is contained in:
parent
c29cbfe123
commit
079d0a89b1
@ -27,8 +27,8 @@ import { log } from '@/common/utils/log';
|
||||
import { sleep } from '@/common/utils/helper';
|
||||
import { uri2local } from '@/common/utils/file';
|
||||
import { getFriend, getGroup, getGroupMember, getUidByUin, selfInfo } from '@/common/data';
|
||||
import { NTQQMsgApi } from '@/core/qqnt/apis/msg';
|
||||
import {NTQQFileApi} from "@/core/qqnt/apis/file";
|
||||
import { NTQQMsgApi } from '@/core/qqnt/apis';
|
||||
import { NTQQFileApi } from '@/core/qqnt/apis';
|
||||
|
||||
const ALLOW_SEND_TEMP_MSG = false;
|
||||
|
||||
@ -152,7 +152,7 @@ export async function createSendElements(messageData: OB11MessageData[], group:
|
||||
const cache = await dbUtil.getFileCacheByName(file);
|
||||
if (cache) {
|
||||
if (fs.existsSync(cache.path)) {
|
||||
file = "file://" + cache.path;
|
||||
file = 'file://' + cache.path;
|
||||
}
|
||||
else if (cache.url) {
|
||||
file = cache.url;
|
||||
@ -164,14 +164,14 @@ export async function createSendElements(messageData: OB11MessageData[], group:
|
||||
cache.elementId, '', '');
|
||||
cache.path = downloadPath!;
|
||||
dbUtil.updateFileCache(cache).then();
|
||||
file = "file://" + cache.path;
|
||||
file = 'file://' + cache.path;
|
||||
}
|
||||
// await sleep(1000);
|
||||
|
||||
// log('download result', downloadPath);
|
||||
// log('下载完成后的msg', msg);
|
||||
}
|
||||
log("找到文件缓存", file);
|
||||
log('找到文件缓存', file);
|
||||
}
|
||||
const { path, isLocal, fileName, errMsg } = (await uri2local(file));
|
||||
if (errMsg) {
|
||||
|
@ -30,11 +30,11 @@
|
||||
],
|
||||
"@/core/qqnt/*": [
|
||||
"./src/core/src/qqnt/*",
|
||||
"./src/core.lib/src/qqnt/index"
|
||||
"./src/core.lib/src/qqnt/*"
|
||||
],
|
||||
"@/core/*": [
|
||||
"./src/core/src/*",
|
||||
"./src/core.lib/src"
|
||||
"./src/core.lib/src/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user