mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 有笨蛋塞了 console.log 忘记删掉
This commit is contained in:
parent
2f3ece9ca3
commit
d2db4cf887
@ -308,10 +308,7 @@ export class NTQQFileApi {
|
|||||||
'NodeIKernelMsgListener/onRichMediaDownloadComplete',
|
'NodeIKernelMsgListener/onRichMediaDownloadComplete',
|
||||||
[peer, [modelId], unknown],
|
[peer, [modelId], unknown],
|
||||||
() => true,
|
() => true,
|
||||||
(arg) => {
|
(arg) => arg?.commonFileInfo?.fileModelId === modelId,
|
||||||
console.log(arg);
|
|
||||||
return arg?.commonFileInfo?.fileModelId === modelId
|
|
||||||
},
|
|
||||||
1,
|
1,
|
||||||
timeout,
|
timeout,
|
||||||
);
|
);
|
||||||
@ -363,8 +360,8 @@ export class NTQQFileApi {
|
|||||||
const mixElementInner = mixElement?.videoElement ?? mixElement?.fileElement ?? mixElement?.pttElement ?? mixElement?.picElement;
|
const mixElementInner = mixElement?.videoElement ?? mixElement?.fileElement ?? mixElement?.pttElement ?? mixElement?.picElement;
|
||||||
let realPath = mixElementInner?.filePath;
|
let realPath = mixElementInner?.filePath;
|
||||||
if (!realPath) {
|
if (!realPath) {
|
||||||
let picThumbPath: Map<number, string> = (mixElementInner as any)?.picThumbPath;
|
const picThumbPath: Map<number, string> = (mixElementInner as any)?.picThumbPath;
|
||||||
let picThumbPathList = Array.from(picThumbPath.values());
|
const picThumbPathList = Array.from(picThumbPath.values());
|
||||||
if (picThumbPathList.length > 0) realPath = picThumbPathList[0];
|
if (picThumbPathList.length > 0) realPath = picThumbPathList[0];
|
||||||
}
|
}
|
||||||
return realPath;
|
return realPath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user