mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
chore: 移除调试代码
This commit is contained in:
@@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
import { NTEventDispatch } from '@/common/utils/EventTask';
|
import { NTEventDispatch } from '@/common/utils/EventTask';
|
||||||
import { GeneralCallResult, NTQQFileApi, NTQQUserApi, napCatCore } from '@/core';
|
import { GeneralCallResult, NTQQFileApi, NTQQUserApi, napCatCore } from '@/core';
|
||||||
setTimeout(async () => {
|
|
||||||
let ret = JSON.stringify(await NTQQFileApi.searchfile(['doc']));
|
|
||||||
console.log(ret);
|
|
||||||
}, 20000)
|
|
||||||
export class NTQQSystemApi {
|
export class NTQQSystemApi {
|
||||||
static async hasOtherRunningQQProcess() {
|
static async hasOtherRunningQQProcess() {
|
||||||
return napCatCore.util.hasOtherRunningQQProcess();
|
return napCatCore.util.hasOtherRunningQQProcess();
|
||||||
|
@@ -30,26 +30,6 @@ async function handleOb11FileLikeMessage(
|
|||||||
) {
|
) {
|
||||||
const uri = file;
|
const uri = file;
|
||||||
|
|
||||||
// const cache = await dbUtil.getFileCacheByName(file);
|
|
||||||
// if (cache) {
|
|
||||||
// if (fs.existsSync(cache.path)) {
|
|
||||||
// uri = 'file://' + cache.path;
|
|
||||||
// } else if (cache.url) {
|
|
||||||
// uri = cache.url;
|
|
||||||
// } else {
|
|
||||||
// const fileMsgPeer = MessageUnique.getPeerByMsgId(cache.msgId);
|
|
||||||
// if (fileMsgPeer) {
|
|
||||||
// cache.path = await NTQQFileApi.downloadMedia(
|
|
||||||
// fileMsgPeer.MsgId, fileMsgPeer.Peer.chatType, fileMsgPeer.Peer.peerUid,
|
|
||||||
// cache.elementId, '', ''
|
|
||||||
// );
|
|
||||||
// uri = 'file://' + cache.path;
|
|
||||||
// dbUtil.updateFileCache(cache);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// logDebug('找到文件缓存', uri);
|
|
||||||
// }
|
|
||||||
|
|
||||||
const { path, isLocal, fileName, errMsg } = (await uri2local(uri));
|
const { path, isLocal, fileName, errMsg } = (await uri2local(uri));
|
||||||
|
|
||||||
if (errMsg) {
|
if (errMsg) {
|
||||||
|
Reference in New Issue
Block a user