diff --git a/src/common/utils/MessageUnique.ts b/src/common/utils/MessageUnique.ts index ca8683e2..30a65cb4 100644 --- a/src/common/utils/MessageUnique.ts +++ b/src/common/utils/MessageUnique.ts @@ -31,7 +31,7 @@ class LimitedHashTable { // console.log(this.valueToKey); // console.log('---------------'); while (this.keyToValue.size > this.maxSize || this.valueToKey.size > this.maxSize) { - console.log(this.keyToValue.size > this.maxSize, this.valueToKey.size > this.maxSize); + //console.log(this.keyToValue.size > this.maxSize, this.valueToKey.size > this.maxSize); const oldestKey = this.keyToValue.keys().next().value; this.valueToKey.delete(this.keyToValue.get(oldestKey)!); this.keyToValue.delete(oldestKey); diff --git a/src/core/src/apis/file.ts b/src/core/src/apis/file.ts index 9adb292d..2f6727b7 100644 --- a/src/core/src/apis/file.ts +++ b/src/core/src/apis/file.ts @@ -12,7 +12,6 @@ import { log, logDebug, logError } from '@/common/utils/log'; import { GeneralCallResult, napCatCore, OnRichMediaDownloadCompleteParams } from '@/core'; import { calculateFileMD5 } from '@/common/utils/file'; import * as fileType from 'file-type'; -import { MsgListener } from '@/core/listeners'; import imageSize from 'image-size'; import { ISizeCalculationResult } from 'image-size/dist/types/interface'; import { sessionConfig } from '@/core/sessionConfig'; @@ -149,7 +148,6 @@ export class NTQQFileApi { } static async getImageUrl(element: { originImageUrl: any; md5HexStr?: any; fileUuid: any; }, isPrivateImage: boolean) { - if (!element) { return ''; } diff --git a/src/core/src/apis/system.ts b/src/core/src/apis/system.ts index 78db903c..0a3ba816 100644 --- a/src/core/src/apis/system.ts +++ b/src/core/src/apis/system.ts @@ -33,7 +33,7 @@ export class NTQQSystemApi { static async BootMiniApp(appfile: string, params: string) { await napCatCore.session.getNodeMiscService().setMiniAppVersion('2.16.4'); let c = await napCatCore.session.getNodeMiscService().getMiniAppPath(); - console.log(c); + return napCatCore.session.getNodeMiscService().startNewMiniApp(appfile, params); } } \ No newline at end of file diff --git a/src/core/src/entities/constructor.ts b/src/core/src/entities/constructor.ts index 94536f84..44b6c2d2 100644 --- a/src/core/src/entities/constructor.ts +++ b/src/core/src/entities/constructor.ts @@ -248,7 +248,28 @@ export class SendMsgElementConstructor { } }; } - + // NodeIQQNTWrapperSession sendMsg [ + // "0", + // { + // "peerUid": "u_e_RIxgTs2NaJ68h0PwOPSg", + // "chatType": 1, + // "guildId": "" + // }, + // [ + // { + // "elementId": "0", + // "elementType": 6, + // "faceElement": { + // "faceIndex": 0, + // "faceType": 5, + // "msgType": 0, + // "pokeType": 1, + // "pokeStrength": 0 + // } + // } + // ], + // {} + // ] static face(faceId: number): SendFaceElement { // 从face_config.json中获取表情名称 const sysFaces = faceConfig.sysface;