fix: 有笨蛋塞了 console.log 忘记删掉

This commit is contained in:
Wesley F. Young 2024-08-29 20:58:23 +08:00
parent 2f3ece9ca3
commit d2db4cf887

View File

@ -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;