From 4fcf3aa2bdb484b72a1877b42aa2d142c9e38d24 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Wed, 15 May 2024 14:53:58 +0800 Subject: [PATCH 1/6] refactor: better type inferring; move createSendElement into another file --- .../msg/SendMsg/create-send-elements.ts | 243 +++++++++++++ .../msg/{SendMsg.ts => SendMsg/index.ts} | 337 +++--------------- src/onebot11/types.ts | 4 +- 3 files changed, 285 insertions(+), 299 deletions(-) create mode 100644 src/onebot11/action/msg/SendMsg/create-send-elements.ts rename src/onebot11/action/msg/{SendMsg.ts => SendMsg/index.ts} (54%) diff --git a/src/onebot11/action/msg/SendMsg/create-send-elements.ts b/src/onebot11/action/msg/SendMsg/create-send-elements.ts new file mode 100644 index 000000000..34192112a --- /dev/null +++ b/src/onebot11/action/msg/SendMsg/create-send-elements.ts @@ -0,0 +1,243 @@ +import { OB11MessageData, OB11MessageDataType, OB11MessageFileBase } from '@/onebot11/types'; +import { + AtType, + CustomMusicSignPostData, + Group, + IdMusicSignPostData, + NTQQFileApi, + SendMessageElement, + SendMsgElementConstructor +} from '@/core'; +import { getGroupMember } from '@/core/data'; +import { dbUtil } from '@/core/utils/db'; +import { logDebug, logError } from '@/common/utils/log'; +import { uri2local } from '@/common/utils/file'; +import { ob11Config } from '@/onebot11/config'; +import { RequestUtil } from '@/common/utils/request'; +import fs from 'node:fs'; + +export type MessageContext = { + group?: Group, + deleteAfterSentFiles: string[], +} + +async function handleOb11FileLikeMessage( + { data: { file, name: payloadFileName } }: OB11MessageFileBase, + { deleteAfterSentFiles }: MessageContext +) { + let 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 fileMsg = await dbUtil.getMsgByLongId(cache.msgId); + if (fileMsg) { + cache.path = await NTQQFileApi.downloadMedia( + fileMsg.msgId, fileMsg.chatType, fileMsg.peerUid, + cache.elementId, '', '' + ); + uri = 'file://' + cache.path; + dbUtil.updateFileCache(cache); + } + } + logDebug('找到文件缓存', uri); + } + + const { path, isLocal, fileName, errMsg } = (await uri2local(uri)); + + if (errMsg) { + logError('文件下载失败', errMsg); + throw Error('文件下载失败' + errMsg); + } + + if (!isLocal) { // 只删除http和base64转过来的文件 + deleteAfterSentFiles.push(path); + } + + return { path, fileName: payloadFileName || fileName }; +} + +const _handlers: { + [Key in OB11MessageDataType]: ( + sendMsg: Extract, + // This picks the correct message type out + // How great the type system of TypeScript is! + context: MessageContext + ) => SendMessageElement | undefined | Promise +} = { + [OB11MessageDataType.text]: ({ data: { text } }) => SendMsgElementConstructor.text(text), + + [OB11MessageDataType.at]: async ({ data: { qq: atQQ } }, context) => { + if (!context.group) return undefined; + + if (atQQ === 'all') return SendMsgElementConstructor.at(atQQ, atQQ, AtType.atAll, '全体成员'); + + // then the qq is a group member + const atMember = await getGroupMember(context.group.groupCode, atQQ); + return atMember ? + SendMsgElementConstructor.at(atQQ, atMember.uid, AtType.atUser, atMember.cardName || atMember.nick) : + undefined; + }, + + [OB11MessageDataType.reply]: async ({ data: { id } }) => { + const replyMsg = await dbUtil.getMsgByShortId(parseInt(id)); + return replyMsg ? + SendMsgElementConstructor.reply(replyMsg.msgSeq, replyMsg.msgId, replyMsg.senderUin!, replyMsg.senderUin!) : + undefined; + }, + + [OB11MessageDataType.face]: ({ data: { id } }) => SendMsgElementConstructor.face(parseInt(id)), + + [OB11MessageDataType.mface]: ({ + data: { + emoji_package_id, + emoji_id, + key, + summary + } + }) => SendMsgElementConstructor.mface(emoji_package_id, emoji_id, key, summary), + + // File service + + [OB11MessageDataType.image]: async (sendMsg, context) => + SendMsgElementConstructor.pic( + (await handleOb11FileLikeMessage(sendMsg, context)).path, + sendMsg.data.summary || '', + sendMsg.data.subType || 0 + ), // currently not supported + + [OB11MessageDataType.file]: async (sendMsg, context) => { + const { path, fileName } = await handleOb11FileLikeMessage(sendMsg, context); + logDebug('发送文件', path, fileName); + return SendMsgElementConstructor.file(path, fileName); + }, + + [OB11MessageDataType.video]: async (sendMsg, context) => { + const { path, fileName } = await handleOb11FileLikeMessage(sendMsg, context); + + logDebug('发送视频', path, fileName); + let thumb = sendMsg.data.thumb; + if (thumb) { + const uri2LocalRes = await uri2local(thumb); + if (uri2LocalRes.success) thumb = uri2LocalRes.path; + } + + return SendMsgElementConstructor.video(path, fileName, thumb); + }, + + [OB11MessageDataType.voice]: async (sendMsg, context) => + SendMsgElementConstructor.ptt((await handleOb11FileLikeMessage(sendMsg, context)).path), + + [OB11MessageDataType.json]: ({ data: { data } }) => SendMsgElementConstructor.ark(data), + + [OB11MessageDataType.dice]: ({ data: { result } }) => SendMsgElementConstructor.dice(result), + + [OB11MessageDataType.RPS]: ({ data: { result } }) => SendMsgElementConstructor.rps(result), + + [OB11MessageDataType.markdown]: ({ data: { content } }) => SendMsgElementConstructor.markdown(content), + + [OB11MessageDataType.music]: async ({ data }) => { + // 保留, 直到...找到更好的解决方案 + if (data.type === 'custom') { + if (!data.url) { + logError('自定义音卡缺少参数url'); + return undefined; + } + if (!data.audio) { + logError('自定义音卡缺少参数audio'); + return undefined; + } + if (!data.title) { + logError('自定义音卡缺少参数title'); + return undefined; + } + } else { + if (!['qq', '163'].includes(data.type)) { + logError('音乐卡片type错误, 只支持qq、163、custom,当前type:', data.type); + return undefined; + } + if (!data.id) { + logError('音乐卡片缺少参数id'); + return undefined; + } + } + + let postData: IdMusicSignPostData | CustomMusicSignPostData; + if (data.type === 'custom' && data.content) { + const { content, ...others } = data; + postData = { singer: content, ...others }; + } else { + postData = data; + } + + const signUrl = ob11Config.musicSignUrl; + if (!signUrl) { + throw Error('音乐消息签名地址未配置'); + } + try { + const musicJson = await RequestUtil.HttpGetJson(signUrl, 'POST', postData); + return SendMsgElementConstructor.ark(musicJson); + } catch (e) { + logError('生成音乐消息失败', e); + } + }, + + [OB11MessageDataType.node]: () => undefined, + + [OB11MessageDataType.forward]: () => undefined, + + [OB11MessageDataType.xml]: () => undefined, + + [OB11MessageDataType.poke]: () => undefined, +}; + +const handlers = <{ + [Key in OB11MessageDataType]: ( + sendMsg: OB11MessageData, + context: MessageContext + ) => SendMessageElement | undefined | Promise +}>_handlers; + +export default async function createSendElements( + messageData: OB11MessageData[], + group?: Group, + ignoreTypes: OB11MessageDataType[] = [] +) { + const sendElements: SendMessageElement[] = []; + const deleteAfterSentFiles: string[] = []; + for (const sendMsg of messageData) { + if (ignoreTypes.includes(sendMsg.type)) { + continue; + } + const callResult = await handlers[sendMsg.type]( + sendMsg, + { group, deleteAfterSentFiles } + ); + if (callResult) sendElements.push(callResult); + } + return { sendElements, deleteAfterSentFiles }; +} + +export async function createSendElementsParallel( + messageData: OB11MessageData[], + group?: Group, + ignoreTypes: OB11MessageDataType[] = [] +) { + const deleteAfterSentFiles: string[] = []; + const sendElements = ( + await Promise.all( + messageData.map(async sendMsg => ignoreTypes.includes(sendMsg.type) ? + undefined : + handlers[sendMsg.type](sendMsg, { group, deleteAfterSentFiles })) + ).then( + results => results.filter( + element => element !== undefined + ) + ) + ); + return { sendElements, deleteAfterSentFiles }; +} diff --git a/src/onebot11/action/msg/SendMsg.ts b/src/onebot11/action/msg/SendMsg/index.ts similarity index 54% rename from src/onebot11/action/msg/SendMsg.ts rename to src/onebot11/action/msg/SendMsg/index.ts index 68a530531..18cf2e0fc 100644 --- a/src/onebot11/action/msg/SendMsg.ts +++ b/src/onebot11/action/msg/SendMsg/index.ts @@ -1,37 +1,35 @@ -import { - AtType, - ChatType, - ElementType, - Group, PicSubType, - RawMessage, - SendArkElement, - SendMessageElement, - Peer -} from '@/core/entities'; - +import BaseAction from '@/onebot11/action/BaseAction'; import { OB11MessageCustomMusic, OB11MessageData, - OB11MessageDataType, OB11MessageIdMusic, + OB11MessageDataType, OB11MessageMixType, OB11MessageNode, OB11PostSendMsg -} from '../../types'; -import { SendMsgElementConstructor } from '@/core/entities/constructor'; -import BaseAction from '../BaseAction'; -import { ActionName, BaseCheckResult } from '../types'; -import * as fs from 'node:fs'; -import { decodeCQCode } from '../../cqcode'; +} from '@/onebot11/types'; +import { ActionName, BaseCheckResult } from '@/onebot11/action/types'; +import { getFriend, getGroup, getUidByUin, selfInfo } from '@/core/data'; import { dbUtil } from '@/core/utils/db'; -import { log, logDebug, logError } from '@/common/utils/log'; +import { + ChatType, + CustomMusicSignPostData, + ElementType, + Group, + IdMusicSignPostData, + NTQQMsgApi, + Peer, + RawMessage, + SendArkElement, + SendMessageElement, + SendMsgElementConstructor +} from '@/core'; +import fs from 'node:fs'; +import { logDebug, logError } from '@/common/utils/log'; import { sleep } from '@/common/utils/helper'; -import { uri2local } from '@/common/utils/file'; -import { getFriend, getGroup, getGroupMember, getUidByUin, selfInfo } from '@/core/data'; -import { NTQQMsgApi } from '@/core/apis'; -import { NTQQFileApi } from '@/core/apis'; import { ob11Config } from '@/onebot11/config'; -import { CustomMusicSignPostData, IdMusicSignPostData } from '@/core/apis/sign'; import { RequestUtil } from '@/common/utils/request'; +import { decodeCQCode } from '@/onebot11/cqcode'; +import createSendElements from './create-send-elements'; const ALLOW_SEND_TEMP_MSG = false; @@ -47,29 +45,23 @@ function checkSendMessage(sendMsgList: OB11MessageData[]) { const data = msg['data']; if (type === 'text' && !data['text']) { return 400; - } - else if (['image', 'voice', 'record'].includes(type)) { + } else if (['image', 'voice', 'record'].includes(type)) { if (!data['file']) { return 400; - } - else { + } else { if (checkUri(data['file'])) { return 200; - } - else { + } else { return 400; } } - } - else if (type === 'at' && !data['qq']) { + } else if (type === 'at' && !data['qq']) { return 400; - } - else if (type === 'reply' && !data['id']) { + } else if (type === 'reply' && !data['id']) { return 400; } - } - else { + } else { return 400; } } @@ -89,254 +81,15 @@ export function convertMessage2List(message: OB11MessageMixType, autoEscape = fa text: message } }]; - } - else { + } else { message = decodeCQCode(message.toString()); } - } - else if (!Array.isArray(message)) { + } else if (!Array.isArray(message)) { message = [message]; } return message; } -async function genMusicElement(postData: IdMusicSignPostData | CustomMusicSignPostData): Promise { - // const musicJson = { - // app: 'com.tencent.structmsg', - // config: { - // ctime: 1709689928, - // forward: 1, - // token: '5c1e4905f926dd3a64a4bd3841460351', - // type: 'normal' - // }, - // extra: { app_type: 1, appid: 100497308, uin: selfInfo.uin }, - // meta: { - // news: { - // action: '', - // android_pkg_name: '', - // app_type: 1, - // appid: 100497308, - // ctime: 1709689928, - // desc: content || title, - // jumpUrl: url, - // musicUrl: audio, - // preview: image, - // source_icon: 'https://p.qpic.cn/qqconnect/0/app_100497308_1626060999/100?max-age=2592000&t=0', - // source_url: '', - // tag: 'QQ音乐', - // title: title, - // uin: selfInfo.uin, - // } - // }, - // prompt: content || title, - // ver: '0.0.0.1', - // view: 'news' - // }; - const signUrl = ob11Config.musicSignUrl; - if (!signUrl) { - throw Error('音乐消息签名地址未配置'); - } - try { - //const musicJson = await new MusicSign(signUrl).sign(postData); - // 待测试 - const musicJson = await RequestUtil.HttpGetJson(signUrl, 'POST', postData); - return SendMsgElementConstructor.ark(musicJson); - } catch (e) { - logError('生成音乐消息失败', e); - } -} - - -export async function createSendElements(messageData: OB11MessageData[], group: Group | undefined, ignoreTypes: OB11MessageDataType[] = []) { - const sendElements: SendMessageElement[] = []; - const deleteAfterSentFiles: string[] = []; - for (const sendMsg of messageData) { - if (ignoreTypes.includes(sendMsg.type)) { - continue; - } - switch (sendMsg.type) { - case OB11MessageDataType.text: { - const text = sendMsg.data?.text; - if (text) { - sendElements.push(SendMsgElementConstructor.text(sendMsg.data!.text)); - } - } - break; - case OB11MessageDataType.at: { - if (!group) { - continue; - } - let atQQ = sendMsg.data?.qq; - if (atQQ) { - atQQ = atQQ.toString(); - if (atQQ === 'all') { - sendElements.push(SendMsgElementConstructor.at(atQQ, atQQ, AtType.atAll, '全体成员')); - } - else { - // const atMember = group?.members.find(m => m.uin == atQQ) - const atMember = await getGroupMember(group?.groupCode, atQQ); - if (atMember) { - sendElements.push(SendMsgElementConstructor.at(atQQ, atMember.uid, AtType.atUser, atMember.cardName || atMember.nick)); - } - } - } - } - break; - case OB11MessageDataType.reply: { - const replyMsgId = sendMsg.data.id; - if (replyMsgId) { - const replyMsg = await dbUtil.getMsgByShortId(parseInt(replyMsgId)); - if (replyMsg) { - sendElements.push(SendMsgElementConstructor.reply(replyMsg.msgSeq, replyMsg.msgId, replyMsg.senderUin!, replyMsg.senderUin!)); - } - } - } - break; - case OB11MessageDataType.face: { - const faceId = sendMsg.data?.id; - if (faceId) { - sendElements.push(SendMsgElementConstructor.face(parseInt(faceId))); - } - } - break; - case OB11MessageDataType.mface: { - sendElements.push( - SendMsgElementConstructor.mface(sendMsg.data.emoji_package_id, sendMsg.data.emoji_id, sendMsg.data.key, sendMsg.data.summary), - ); - } - break; - case OB11MessageDataType.image: - case OB11MessageDataType.file: - case OB11MessageDataType.video: - case OB11MessageDataType.voice: { - let file = sendMsg.data?.file; - const payloadFileName = sendMsg.data?.name; - if (file) { - const cache = await dbUtil.getFileCacheByName(file); - if (cache) { - if (fs.existsSync(cache.path)) { - file = 'file://' + cache.path; - } - else if (cache.url) { - file = cache.url; - } - else { - const fileMsg = await dbUtil.getMsgByLongId(cache.msgId); - if (fileMsg) { - const downloadPath = await NTQQFileApi.downloadMedia(fileMsg.msgId, fileMsg.chatType, fileMsg.peerUid, - cache.elementId, '', ''); - cache.path = downloadPath!; - dbUtil.updateFileCache(cache).then(); - file = 'file://' + cache.path; - } - // await sleep(1000); - - // log('download result', downloadPath); - // log('下载完成后的msg', msg); - } - logDebug('找到文件缓存', file); - } - const { path, isLocal, fileName, errMsg } = (await uri2local(file)); - if (errMsg) { - logError('文件下载失败', errMsg); - throw Error('文件下载失败' + errMsg); - // throw (errMsg); - // continue - } - if (path) { - if (!isLocal) { // 只删除http和base64转过来的文件 - deleteAfterSentFiles.push(path); - } - if (sendMsg.type === OB11MessageDataType.file) { - logDebug('发送文件', path, payloadFileName || fileName); - sendElements.push(await SendMsgElementConstructor.file(path, payloadFileName || fileName)); - } - else if (sendMsg.type === OB11MessageDataType.video) { - logDebug('发送视频', path, payloadFileName || fileName); - let thumb = sendMsg.data?.thumb; - if (thumb) { - const uri2LocalRes = await uri2local(thumb); - if (uri2LocalRes.success) { - thumb = uri2LocalRes.path; - } - } - sendElements.push(await SendMsgElementConstructor.video(path, payloadFileName || fileName, thumb)); - } - else if (sendMsg.type === OB11MessageDataType.voice) { - sendElements.push(await SendMsgElementConstructor.ptt(path)); - } - else if (sendMsg.type === OB11MessageDataType.image) { - sendElements.push(await SendMsgElementConstructor.pic(path, sendMsg.data.summary || '', parseInt(sendMsg.data?.subType?.toString() || '0'))); - } - } - } - } - break; - case OB11MessageDataType.json: { - sendElements.push(SendMsgElementConstructor.ark(sendMsg.data.data)); - } - break; - case OB11MessageDataType.dice: { - const resultId = sendMsg.data?.result; - sendElements.push(SendMsgElementConstructor.dice(resultId)); - } - break; - case OB11MessageDataType.RPS: { - const resultId = sendMsg.data?.result; - sendElements.push(SendMsgElementConstructor.rps(resultId)); - } - break; - case OB11MessageDataType.markdown: { - const content = sendMsg.data?.content; - sendElements.push(SendMsgElementConstructor.markdown(content)); - } - break; - case OB11MessageDataType.music: { - const musicData = sendMsg.data; - if (musicData.type === 'custom') { - if (!musicData.url) { - logError('自定义音卡缺少参数url'); - break; - } - if (!musicData.audio) { - logError('自定义音卡缺少参数audio'); - break; - } - if (!musicData.title) { - logError('自定义音卡缺少参数title'); - break; - } - } - else { - if (!['qq', '163'].includes(musicData.type)) { - logError('音乐卡片type错误, 只支持qq、163、custom,当前type:', musicData.type); - break; - } - if (!musicData.id) { - logError('音乐卡片缺少参数id'); - break; - } - } - const postData = { ...sendMsg.data } as IdMusicSignPostData | CustomMusicSignPostData; - if (sendMsg.data.type === 'custom' && sendMsg.data.content) { - (postData as CustomMusicSignPostData).singer = sendMsg.data.content; - delete (postData as OB11MessageCustomMusic['data']).content; - } - const musicMsgElement = await genMusicElement(postData); - logDebug('生成音乐消息', musicMsgElement); - if (musicMsgElement) { - sendElements.push(musicMsgElement); - } - } - } - } - - return { - sendElements, - deleteAfterSentFiles - }; -} - export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], deleteAfterSentFiles: string[], waitComplete = true) { if (!sendElements.length) { throw ('消息体无法解析, 请检查是否发送了不支持的消息类型'); @@ -417,8 +170,7 @@ export class SendMsg extends BaseAction { if (friend) { // peer.name = friend.nickName peer.peerUid = friend.uid; - } - else { + } else { peer.chatType = ChatType.temp; const tempUserUid = getUidByUin(payload.user_id.toString()); if (!tempUserUid) { @@ -432,14 +184,11 @@ export class SendMsg extends BaseAction { if (payload?.group_id && payload.message_type === 'group') { await genGroupPeer(); - } - else if (payload?.user_id) { + } else if (payload?.user_id) { await genFriendPeer(); - } - else if (payload.group_id) { + } else if (payload.group_id) { await genGroupPeer(); - } - else { + } else { throw ('发送消息参数错误, 请指定group_id或user_id'); } const messages = convertMessage2List(payload.message, payload.auto_escape === true || payload.auto_escape === 'true'); @@ -449,15 +198,13 @@ export class SendMsg extends BaseAction { if (returnMsg) { const msgShortId = await dbUtil.addMsg(returnMsg!, false); return { message_id: msgShortId }; - } - else { + } else { throw Error('发送转发消息失败'); } } catch (e: any) { throw Error('发送转发消息失败 ' + e.toString()); } - } - else { + } else { if (this.getSpecialMsgNum(payload, OB11MessageDataType.music)) { const music: OB11MessageCustomMusic = messages[0] as OB11MessageCustomMusic; // if (music) { @@ -528,8 +275,7 @@ export class SendMsg extends BaseAction { const nodeMsg = await dbUtil.getMsgByShortId(parseInt(nodeId)); if (!needClone) { nodeMsgIds.push(nodeMsg!.msgId); - } - else { + } else { if (nodeMsg!.peerUid !== selfInfo.uid) { const cloneMsg = await this.cloneMsg(nodeMsg!); if (cloneMsg) { @@ -537,8 +283,7 @@ export class SendMsg extends BaseAction { } } } - } - else { + } else { // 自定义的消息 // 提取消息段,发给自己生成消息id try { @@ -560,8 +305,7 @@ export class SendMsg extends BaseAction { } sendElementsSplit[splitIndex] = [ele]; splitIndex++; - } - else { + } else { sendElementsSplit[splitIndex].push(ele); } logDebug(sendElementsSplit); @@ -597,8 +341,7 @@ export class SendMsg extends BaseAction { nodeMsgArray.push(nodeMsg); if (!srcPeer) { srcPeer = { chatType: nodeMsg.chatType, peerUid: nodeMsg.peerUid }; - } - else if (srcPeer.peerUid !== nodeMsg.peerUid) { + } else if (srcPeer.peerUid !== nodeMsg.peerUid) { needSendSelf = true; srcPeer = selfPeer; } diff --git a/src/onebot11/types.ts b/src/onebot11/types.ts index 8918101e6..679bada67 100644 --- a/src/onebot11/types.ts +++ b/src/onebot11/types.ts @@ -143,7 +143,7 @@ export interface OB11MessageText { } } -interface OB11MessageFileBase { +export interface OB11MessageFileBase { data: { thumb?: string; name?: string; @@ -176,7 +176,7 @@ export interface OB11MessageVideo extends OB11MessageFileBase { export interface OB11MessageAt { type: OB11MessageDataType.at data: { - qq: string | 'all' + qq: `${number}` | 'all' } } From bed3e1289bfb85200018db2880b599816e2c7c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 15 May 2024 16:11:01 +0800 Subject: [PATCH 2/6] chore: sync core --- src/core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core b/src/core index ed10e0fc9..b13518356 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit ed10e0fc9f4b98ad2b677c8862f5cc817a5560ba +Subproject commit b1351835673f86d445d244fd515560bfcd0b7adb From b5dbd9d59b391291625a08a8f8e78ec25b2da048 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Wed, 15 May 2024 16:33:15 +0800 Subject: [PATCH 3/6] refactor: rename function `convertMessage2List` to normalize --- src/core | 2 +- .../action/go-cqhttp/SendForwardMsg.ts | 6 ++--- src/onebot11/action/msg/SendMsg/index.ts | 23 ++++++------------- src/onebot11/server/postOB11Event.ts | 4 ++-- 4 files changed, 13 insertions(+), 22 deletions(-) diff --git a/src/core b/src/core index b13518356..ed10e0fc9 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit b1351835673f86d445d244fd515560bfcd0b7adb +Subproject commit ed10e0fc9f4b98ad2b677c8862f5cc817a5560ba diff --git a/src/onebot11/action/go-cqhttp/SendForwardMsg.ts b/src/onebot11/action/go-cqhttp/SendForwardMsg.ts index a2c2ce342..f866816ef 100644 --- a/src/onebot11/action/go-cqhttp/SendForwardMsg.ts +++ b/src/onebot11/action/go-cqhttp/SendForwardMsg.ts @@ -1,4 +1,4 @@ -import SendMsg, { convertMessage2List } from '../msg/SendMsg'; +import SendMsg, { normalize } from '../msg/SendMsg'; import { OB11PostSendMsg } from '../../types'; import { ActionName } from '../types'; @@ -6,7 +6,7 @@ export class GoCQHTTPSendForwardMsg extends SendMsg { actionName = ActionName.GoCQHTTP_SendForwardMsg; protected async check(payload: OB11PostSendMsg) { - if (payload.messages) payload.message = convertMessage2List(payload.messages); + if (payload.messages) payload.message = normalize(payload.messages); return super.check(payload); } } @@ -17,4 +17,4 @@ export class GoCQHTTPSendPrivateForwardMsg extends GoCQHTTPSendForwardMsg { export class GoCQHTTPSendGroupForwardMsg extends GoCQHTTPSendForwardMsg { actionName = ActionName.GoCQHTTP_SendGroupForwardMsg; -} \ No newline at end of file +} diff --git a/src/onebot11/action/msg/SendMsg/index.ts b/src/onebot11/action/msg/SendMsg/index.ts index 18cf2e0fc..904ef011f 100644 --- a/src/onebot11/action/msg/SendMsg/index.ts +++ b/src/onebot11/action/msg/SendMsg/index.ts @@ -72,22 +72,13 @@ export interface ReturnDataType { message_id: number; } -export function convertMessage2List(message: OB11MessageMixType, autoEscape = false) { - if (typeof message === 'string') { - if (autoEscape === true) { - message = [{ - type: OB11MessageDataType.text, - data: { - text: message - } - }]; - } else { - message = decodeCQCode(message.toString()); - } - } else if (!Array.isArray(message)) { - message = [message]; - } - return message; +// Normalizes a mixed type (CQCode/a single segment/segment array) into a segment array. +export function normalize(message: OB11MessageMixType, autoEscape = false): OB11MessageData[] { + return typeof message === 'string' ? ( + autoEscape ? + [{ type: OB11MessageDataType.text, data: { text: message } }] : + decodeCQCode(message) + ) : Array.isArray(message) ? message : [message]; } export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], deleteAfterSentFiles: string[], waitComplete = true) { diff --git a/src/onebot11/server/postOB11Event.ts b/src/onebot11/server/postOB11Event.ts index 58a13515f..f7137b069 100644 --- a/src/onebot11/server/postOB11Event.ts +++ b/src/onebot11/server/postOB11Event.ts @@ -7,7 +7,7 @@ import { log, logDebug, logError } from '@/common/utils/log'; import { ob11Config } from '@/onebot11/config'; import crypto from 'crypto'; import { ChatType, Group, GroupRequestOperateTypes, Peer } from '@/core/entities'; -import { convertMessage2List, createSendElements, sendMsg } from '../action/msg/SendMsg'; +import { normalize, createSendElements, sendMsg } from '../action/msg/SendMsg'; import { OB11FriendRequestEvent } from '../event/request/OB11FriendRequest'; import { OB11GroupRequestEvent } from '../event/request/OB11GroupRequest'; import { isNull } from '@/common/utils/helper'; @@ -138,7 +138,7 @@ export function postOB11Event(msg: PostEventType, reportSelf = false, postWs = t } as OB11MessageAt); } } - replyMessage = replyMessage.concat(convertMessage2List(reply, resJson.auto_escape)); + replyMessage = replyMessage.concat(normalize(reply, resJson.auto_escape)); const { sendElements, deleteAfterSentFiles } = await createSendElements(replyMessage, group); sendMsg(peer, sendElements, deleteAfterSentFiles, false).then(); } else if (resJson.delete) { From d42734624d1c5ba597b6570ed4b202416dcaf4a1 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Wed, 15 May 2024 16:39:51 +0800 Subject: [PATCH 4/6] refactor: move checkSendMessage and handleForwardNode to separate files --- .../action/msg/SendMsg/check-send-message.ts | 36 ++ .../action/msg/SendMsg/handle-forward-node.ts | 163 ++++++++ src/onebot11/action/msg/SendMsg/index.ts | 388 ++++-------------- src/onebot11/server/postOB11Event.ts | 2 +- 4 files changed, 282 insertions(+), 307 deletions(-) create mode 100644 src/onebot11/action/msg/SendMsg/check-send-message.ts create mode 100644 src/onebot11/action/msg/SendMsg/handle-forward-node.ts diff --git a/src/onebot11/action/msg/SendMsg/check-send-message.ts b/src/onebot11/action/msg/SendMsg/check-send-message.ts new file mode 100644 index 000000000..299f41dc7 --- /dev/null +++ b/src/onebot11/action/msg/SendMsg/check-send-message.ts @@ -0,0 +1,36 @@ +import { OB11MessageData } from '@/onebot11/types'; + +function checkSendMessage(sendMsgList: OB11MessageData[]) { + function checkUri(uri: string): boolean { + const pattern = /^(file:\/\/|http:\/\/|https:\/\/|base64:\/\/)/; + return pattern.test(uri); + } + + for (const msg of sendMsgList) { + if (msg['type'] && msg['data']) { + const type = msg['type']; + const data = msg['data']; + if (type === 'text' && !data['text']) { + return 400; + } else if (['image', 'voice', 'record'].includes(type)) { + if (!data['file']) { + return 400; + } else { + if (checkUri(data['file'])) { + return 200; + } else { + return 400; + } + } + + } else if (type === 'at' && !data['qq']) { + return 400; + } else if (type === 'reply' && !data['id']) { + return 400; + } + } else { + return 400; + } + } + return 200; +} diff --git a/src/onebot11/action/msg/SendMsg/handle-forward-node.ts b/src/onebot11/action/msg/SendMsg/handle-forward-node.ts new file mode 100644 index 000000000..3fb130649 --- /dev/null +++ b/src/onebot11/action/msg/SendMsg/handle-forward-node.ts @@ -0,0 +1,163 @@ +import { ChatType, ElementType, Group, NTQQMsgApi, Peer, RawMessage, SendMessageElement } from '@/core'; +import { OB11MessageNode } from '@/onebot11/types'; +import { selfInfo } from '@/core/data'; +import { dbUtil } from '@/core/utils/db'; +import createSendElements from '@/onebot11/action/msg/SendMsg/create-send-elements'; +import { logDebug, logError } from '@/common/utils/log'; +import { sleep } from '@/common/utils/helper'; +import fs from 'node:fs'; +import { normalize, sendMsg } from '@/onebot11/action/msg/SendMsg/index'; + +async function cloneMsg(msg: RawMessage): Promise { + const selfPeer = { + chatType: ChatType.friend, + peerUid: selfInfo.uid + }; + + logDebug('克隆的目标消息', msg); + + const sendElements: SendMessageElement[] = []; + + for (const element of msg.elements) { + sendElements.push(element as SendMessageElement); + } + + if (sendElements.length === 0) { + logDebug('需要clone的消息无法解析,将会忽略掉', msg); + } + + logDebug('克隆消息', sendElements); + + try { + const nodeMsg = await NTQQMsgApi.sendMsg(selfPeer, sendElements, true); + await sleep(500); // 防止风控 + return nodeMsg; + } catch (e) { + logError(e, '克隆转发消息失败,将忽略本条消息', msg); + } +} + +export async function handleForwardNode(destPeer: Peer, messageNodes: OB11MessageNode[], group: Group | undefined): Promise { + const selfPeer = { + chatType: ChatType.friend, + peerUid: selfInfo.uid + }; + let nodeMsgIds: string[] = []; + + // 先判断一遍是不是id和自定义混用 + const needClone = + messageNodes.filter(node => node.data.id).length && + messageNodes.filter(node => !node.data.id).length; + + for (const messageNode of messageNodes) { + // 一个node表示一个人的消息 + const nodeId = messageNode.data.id; + // 有nodeId表示一个子转发消息卡片 + if (nodeId) { + const nodeMsg = await dbUtil.getMsgByShortId(parseInt(nodeId)); + if (!needClone) { + nodeMsgIds.push(nodeMsg!.msgId); + } else { + if (nodeMsg!.peerUid !== selfInfo.uid) { + // need cloning + const clonedMsg = await cloneMsg(nodeMsg!); + if (clonedMsg) { + nodeMsgIds.push(clonedMsg.msgId); + } + } + } + } else { + // 自定义的消息 + // 提取消息段,发给自己生成消息id + try { + const { sendElements, deleteAfterSentFiles } = await createSendElements(normalize(messageNode.data.content), group); + logDebug('开始生成转发节点', sendElements); + const sendElementsSplit: SendMessageElement[][] = []; + let splitIndex = 0; + for (const sendElement of sendElements) { + if (!sendElementsSplit[splitIndex]) { + sendElementsSplit[splitIndex] = []; + } + + if (sendElement.elementType === ElementType.FILE || sendElement.elementType === ElementType.VIDEO) { + if (sendElementsSplit[splitIndex].length > 0) { + splitIndex++; + } + sendElementsSplit[splitIndex] = [sendElement]; + splitIndex++; + } else { + sendElementsSplit[splitIndex].push(sendElement); + } + logDebug(sendElementsSplit); + } + // log("分割后的转发节点", sendElementsSplit) + const MsgNodeList: Promise[] = []; + for (const sendElementsSplitElement of sendElementsSplit) { + MsgNodeList.push(sendMsg(selfPeer, sendElementsSplitElement, [], true)); + await sleep(Math.trunc(sendElementsSplit.length / 10) * 100); + //await sleep(10); + } + for (const msgNode of MsgNodeList) { + const result = await msgNode; + nodeMsgIds.push(result.msgId); + logDebug('转发节点生成成功', result.msgId); + } + deleteAfterSentFiles.map(f => fs.unlink(f, () => { + })); + + } catch (e) { + logDebug('生成转发消息节点失败', e); + } + } + } + + // 检查srcPeer是否一致,不一致则需要克隆成自己的消息, 让所有srcPeer都变成自己的,使其保持一致才能够转发 + const nodeMsgArray: Array = []; + let srcPeer: Peer | undefined = undefined; + let needSendSelf = false; + for (const msgId of nodeMsgIds) { + const nodeMsg = await dbUtil.getMsgByLongId(msgId); + if (nodeMsg) { + nodeMsgArray.push(nodeMsg); + if (!srcPeer) { + srcPeer = { chatType: nodeMsg.chatType, peerUid: nodeMsg.peerUid }; + } else if (srcPeer.peerUid !== nodeMsg.peerUid) { + needSendSelf = true; + srcPeer = selfPeer; + } + } + } + logDebug('nodeMsgArray', nodeMsgArray); + nodeMsgIds = nodeMsgArray.map(msg => msg.msgId); + if (needSendSelf) { + logDebug('需要克隆转发消息'); + for (const [index, msg] of nodeMsgArray.entries()) { + if (msg.peerUid !== selfInfo.uid) { + const clonedMsg = await cloneMsg(msg); + if (clonedMsg) { + nodeMsgIds[index] = clonedMsg.msgId; + } + } + } + } + // elements之间用换行符分隔 + // let _sendForwardElements: SendMessageElement[] = [] + // for(let i = 0; i < sendForwardElements.length; i++){ + // _sendForwardElements.push(sendForwardElements[i]) + // _sendForwardElements.push(SendMsgElementConstructor.text("\n\n")) + // } + // const nodeMsg = await NTQQApi.sendMsg(selfPeer, _sendForwardElements, true); + // nodeIds.push(nodeMsg.msgId) + // await sleep(500); + // 开发转发 + if (nodeMsgIds.length === 0) { + throw Error('转发消息失败,生成节点为空'); + } + try { + logDebug('开发转发', srcPeer, destPeer, nodeMsgIds); + return await NTQQMsgApi.multiForwardMsg(srcPeer!, destPeer, nodeMsgIds); + } catch (e) { + logError('forward failed', e); + return null; + } +} diff --git a/src/onebot11/action/msg/SendMsg/index.ts b/src/onebot11/action/msg/SendMsg/index.ts index 904ef011f..1f51ee7d2 100644 --- a/src/onebot11/action/msg/SendMsg/index.ts +++ b/src/onebot11/action/msg/SendMsg/index.ts @@ -1,6 +1,5 @@ import BaseAction from '@/onebot11/action/BaseAction'; import { - OB11MessageCustomMusic, OB11MessageData, OB11MessageDataType, OB11MessageMixType, @@ -8,66 +7,17 @@ import { OB11PostSendMsg } from '@/onebot11/types'; import { ActionName, BaseCheckResult } from '@/onebot11/action/types'; -import { getFriend, getGroup, getUidByUin, selfInfo } from '@/core/data'; +import { getFriend, getGroup, getUidByUin } from '@/core/data'; import { dbUtil } from '@/core/utils/db'; -import { - ChatType, - CustomMusicSignPostData, - ElementType, - Group, - IdMusicSignPostData, - NTQQMsgApi, - Peer, - RawMessage, - SendArkElement, - SendMessageElement, - SendMsgElementConstructor -} from '@/core'; +import { ChatType, Group, NTQQMsgApi, Peer, SendMessageElement, } from '@/core'; import fs from 'node:fs'; -import { logDebug, logError } from '@/common/utils/log'; -import { sleep } from '@/common/utils/helper'; -import { ob11Config } from '@/onebot11/config'; -import { RequestUtil } from '@/common/utils/request'; +import { logDebug } from '@/common/utils/log'; import { decodeCQCode } from '@/onebot11/cqcode'; import createSendElements from './create-send-elements'; +import { handleForwardNode } from '@/onebot11/action/msg/SendMsg/handle-forward-node'; const ALLOW_SEND_TEMP_MSG = false; -function checkSendMessage(sendMsgList: OB11MessageData[]) { - function checkUri(uri: string): boolean { - const pattern = /^(file:\/\/|http:\/\/|https:\/\/|base64:\/\/)/; - return pattern.test(uri); - } - - for (const msg of sendMsgList) { - if (msg['type'] && msg['data']) { - const type = msg['type']; - const data = msg['data']; - if (type === 'text' && !data['text']) { - return 400; - } else if (['image', 'voice', 'record'].includes(type)) { - if (!data['file']) { - return 400; - } else { - if (checkUri(data['file'])) { - return 200; - } else { - return 400; - } - } - - } else if (type === 'at' && !data['qq']) { - return 400; - } else if (type === 'reply' && !data['id']) { - return 400; - } - } else { - return 400; - } - } - return 200; -} - export interface ReturnDataType { message_id: number; } @@ -81,6 +31,8 @@ export function normalize(message: OB11MessageMixType, autoEscape = false): OB11 ) : Array.isArray(message) ? message : [message]; } +export { createSendElements }; + export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], deleteAfterSentFiles: string[], waitComplete = true) { if (!sendElements.length) { throw ('消息体无法解析, 请检查是否发送了不支持的消息类型'); @@ -92,288 +44,112 @@ export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], de logDebug('发送消息id获取失败', e); returnMsg.id = 0; } - // log('消息发送结果', returnMsg); deleteAfterSentFiles.map(f => fs.unlink(f, () => { })); return returnMsg; } +async function createContext(payload: OB11PostSendMsg): Promise<{ + peer: Peer, group?: Group +}> { + // This function determines the type of message by the existence of user_id / group_id, + // not message_type. + // This redundant design of Ob11 here should be blamed. + + if (payload.user_id) { // take this as a private message + const friend = await getFriend(payload.user_id.toString()); + if (!friend) { + if (ALLOW_SEND_TEMP_MSG) { + const tempUid = getUidByUin(payload.user_id.toString()); + if (tempUid) return { + peer: { + chatType: ChatType.temp, + peerUid: tempUid + }, + }; + } + throw `找不到私聊对象 ${payload.user_id}`; + } + return { + peer: { + chatType: ChatType.friend, + peerUid: friend.uid + }, + }; + } else if (payload.group_id) { // take this as a group message + const group = (await getGroup(payload.group_id))!; // checked before + return { + peer: { + chatType: ChatType.group, + peerUid: group.groupCode + }, + group: group, + }; + } + throw '请指定 group_id 或 user_id'; +} + +function getSpecialMsgNum(payload: OB11PostSendMsg, msgType: OB11MessageDataType): number { + if (Array.isArray(payload.message)) { + return payload.message.filter(msg => msg.type == msgType).length; + } + return 0; +} + export class SendMsg extends BaseAction { actionName = ActionName.SendMsg; protected async check(payload: OB11PostSendMsg): Promise { - const messages = convertMessage2List(payload.message); - const fmNum = this.getSpecialMsgNum(payload, OB11MessageDataType.node); - if (fmNum && fmNum != messages.length) { - return { - valid: false, - message: '转发消息不能和普通消息混在一起发送,转发需要保证message只有type为node的元素' - }; + const messages = normalize(payload.message); + if (getSpecialMsgNum(payload, OB11MessageDataType.node) != messages.length) { + return { valid: false, message: '转发消息不能和普通消息混在一起发送,转发需要保证message只有type为node的元素' }; } if (payload.message_type !== 'private' && payload.group_id && !(await getGroup(payload.group_id))) { - return { - valid: false, - message: `群${payload.group_id}不存在` - }; + return { valid: false, message: `群${payload.group_id}不存在` }; } if (payload.user_id && payload.message_type !== 'group') { if (!(await getFriend(payload.user_id))) { - if (!ALLOW_SEND_TEMP_MSG - && !(await dbUtil.getUidByTempUin(payload.user_id.toString())) + if ( + !ALLOW_SEND_TEMP_MSG && + !(await dbUtil.getUidByTempUin(payload.user_id)) ) { - return { - valid: false, - message: '不能发送临时消息' - }; + return { valid: false, message: '不能发送临时消息' }; } } } - return { - valid: true, - }; + return { valid: true, }; } protected async _handle(payload: OB11PostSendMsg): Promise<{ message_id: number }> { - - const peer: Peer = { - chatType: ChatType.friend, - peerUid: '' - }; - let isTempMsg = false; - let group: Group | undefined = undefined; - const genGroupPeer = async () => { - if (payload.group_id) { - group = await getGroup(payload.group_id.toString()); - if (group) { - peer.chatType = ChatType.group; - // peer.name = group.name - peer.peerUid = group.groupCode; - } - - } - }; - - const genFriendPeer = async () => { - if (!payload.user_id) { - return; - } - const friend = await getFriend(payload.user_id.toString()); - if (friend) { - // peer.name = friend.nickName - peer.peerUid = friend.uid; + const { peer, group } = await createContext(payload); + + const messages = normalize( + payload.message, + payload.auto_escape === true || payload.auto_escape === 'true' + ); + + if (getSpecialMsgNum(payload, OB11MessageDataType.node)) { + const returnMsg = await handleForwardNode(peer, messages as OB11MessageNode[], group); + if (returnMsg) { + const msgShortId = await dbUtil.addMsg(returnMsg!, false); + return { message_id: msgShortId }; } else { - peer.chatType = ChatType.temp; - const tempUserUid = getUidByUin(payload.user_id.toString()); - if (!tempUserUid) { - throw (`找不到私聊对象${payload.user_id}`); - } - // peer.name = tempUser.nickName - isTempMsg = true; - peer.peerUid = tempUserUid; + throw Error('发送转发消息失败'); } - }; - if (payload?.group_id && payload.message_type === 'group') { - await genGroupPeer(); - - } else if (payload?.user_id) { - await genFriendPeer(); - } else if (payload.group_id) { - await genGroupPeer(); } else { - throw ('发送消息参数错误, 请指定group_id或user_id'); - } - const messages = convertMessage2List(payload.message, payload.auto_escape === true || payload.auto_escape === 'true'); - if (this.getSpecialMsgNum(payload, OB11MessageDataType.node)) { - try { - const returnMsg = await this.handleForwardNode(peer, messages as OB11MessageNode[], group); - if (returnMsg) { - const msgShortId = await dbUtil.addMsg(returnMsg!, false); - return { message_id: msgShortId }; - } else { - throw Error('发送转发消息失败'); - } - } catch (e: any) { - throw Error('发送转发消息失败 ' + e.toString()); - } - } else { - if (this.getSpecialMsgNum(payload, OB11MessageDataType.music)) { - const music: OB11MessageCustomMusic = messages[0] as OB11MessageCustomMusic; - // if (music) { - // } - } + // if (getSpecialMsgNum(payload, OB11MessageDataType.music)) { + // const music: OB11MessageCustomMusic = messages[0] as OB11MessageCustomMusic; + // if (music) { + // } + // } } // log("send msg:", peer, sendElements) const { sendElements, deleteAfterSentFiles } = await createSendElements(messages, group); const returnMsg = await sendMsg(peer, sendElements, deleteAfterSentFiles); - deleteAfterSentFiles.map(f => fs.unlink(f, () => { - })); - - const res = { message_id: returnMsg.id! }; - // console.log(res); - return res; - } - - - private getSpecialMsgNum(payload: OB11PostSendMsg, msgType: OB11MessageDataType): number { - if (Array.isArray(payload.message)) { - return payload.message.filter(msg => msg.type == msgType).length; - } - return 0; - } - - private async cloneMsg(msg: RawMessage): Promise { - logDebug('克隆的目标消息', msg); - const sendElements: SendMessageElement[] = []; - for (const ele of msg.elements) { - sendElements.push(ele as SendMessageElement); - // Object.keys(ele).forEach((eleKey) => { - // if (eleKey.endsWith("Element")) { - // } - - } - if (sendElements.length === 0) { - logDebug('需要clone的消息无法解析,将会忽略掉', msg); - } - logDebug('克隆消息', sendElements); - try { - const nodeMsg = await NTQQMsgApi.sendMsg({ - chatType: ChatType.friend, - peerUid: selfInfo.uid - }, sendElements, true); - await sleep(500); - return nodeMsg; - } catch (e) { - logError(e, '克隆转发消息失败,将忽略本条消息', msg); - } - - } - - // 返回一个合并转发的消息id - private async handleForwardNode(destPeer: Peer, messageNodes: OB11MessageNode[], group: Group | undefined): Promise { + deleteAfterSentFiles.forEach(f => fs.unlinkSync(f)); - const selfPeer = { - chatType: ChatType.friend, - peerUid: selfInfo.uid - }; - let nodeMsgIds: string[] = []; - // 先判断一遍是不是id和自定义混用 - const needClone = messageNodes.filter(node => node.data.id).length && messageNodes.filter(node => !node.data.id).length; - for (const messageNode of messageNodes) { - // 一个node表示一个人的消息 - const nodeId = messageNode.data.id; - // 有nodeId表示一个子转发消息卡片 - if (nodeId) { - const nodeMsg = await dbUtil.getMsgByShortId(parseInt(nodeId)); - if (!needClone) { - nodeMsgIds.push(nodeMsg!.msgId); - } else { - if (nodeMsg!.peerUid !== selfInfo.uid) { - const cloneMsg = await this.cloneMsg(nodeMsg!); - if (cloneMsg) { - nodeMsgIds.push(cloneMsg.msgId); - } - } - } - } else { - // 自定义的消息 - // 提取消息段,发给自己生成消息id - try { - const { - sendElements, - deleteAfterSentFiles - } = await createSendElements(convertMessage2List(messageNode.data.content), group); - logDebug('开始生成转发节点', sendElements); - const sendElementsSplit: SendMessageElement[][] = []; - let splitIndex = 0; - for (const ele of sendElements) { - if (!sendElementsSplit[splitIndex]) { - sendElementsSplit[splitIndex] = []; - } - - if (ele.elementType === ElementType.FILE || ele.elementType === ElementType.VIDEO) { - if (sendElementsSplit[splitIndex].length > 0) { - splitIndex++; - } - sendElementsSplit[splitIndex] = [ele]; - splitIndex++; - } else { - sendElementsSplit[splitIndex].push(ele); - } - logDebug(sendElementsSplit); - } - // log("分割后的转发节点", sendElementsSplit) - const MsgNodeList: Promise[] = []; - for (const eles of sendElementsSplit) { - MsgNodeList.push(sendMsg(selfPeer, eles, [], true)); - await sleep(Math.trunc(sendElementsSplit.length / 10) * 100); - //await sleep(10); - } - for (const msgNode of MsgNodeList) { - const result = await msgNode; - nodeMsgIds.push(result.msgId); - logDebug('转发节点生成成功', result.msgId); - } - deleteAfterSentFiles.map(f => fs.unlink(f, () => { - })); - - } catch (e) { - logDebug('生成转发消息节点失败', e); - } - } - } - - // 检查srcPeer是否一致,不一致则需要克隆成自己的消息, 让所有srcPeer都变成自己的,使其保持一致才能够转发 - const nodeMsgArray: Array = []; - let srcPeer: Peer | undefined = undefined; - let needSendSelf = false; - for (const [index, msgId] of nodeMsgIds.entries()) { - const nodeMsg = await dbUtil.getMsgByLongId(msgId); - if (nodeMsg) { - nodeMsgArray.push(nodeMsg); - if (!srcPeer) { - srcPeer = { chatType: nodeMsg.chatType, peerUid: nodeMsg.peerUid }; - } else if (srcPeer.peerUid !== nodeMsg.peerUid) { - needSendSelf = true; - srcPeer = selfPeer; - } - } - } - logDebug('nodeMsgArray', nodeMsgArray); - nodeMsgIds = nodeMsgArray.map(msg => msg.msgId); - if (needSendSelf) { - logDebug('需要克隆转发消息'); - for (const [index, msg] of nodeMsgArray.entries()) { - if (msg.peerUid !== selfInfo.uid) { - const cloneMsg = await this.cloneMsg(msg); - if (cloneMsg) { - nodeMsgIds[index] = cloneMsg.msgId; - } - } - } - } - // elements之间用换行符分隔 - // let _sendForwardElements: SendMessageElement[] = [] - // for(let i = 0; i < sendForwardElements.length; i++){ - // _sendForwardElements.push(sendForwardElements[i]) - // _sendForwardElements.push(SendMsgElementConstructor.text("\n\n")) - // } - // const nodeMsg = await NTQQApi.sendMsg(selfPeer, _sendForwardElements, true); - // nodeIds.push(nodeMsg.msgId) - // await sleep(500); - // 开发转发 - if (nodeMsgIds.length === 0) { - throw Error('转发消息失败,生成节点为空'); - } - try { - logDebug('开发转发', srcPeer, destPeer, nodeMsgIds); - return await NTQQMsgApi.multiForwardMsg(srcPeer!, destPeer, nodeMsgIds); - } catch (e) { - logError('forward failed', e); - return null; - } + return { message_id: returnMsg.id! }; } - - } export default SendMsg; diff --git a/src/onebot11/server/postOB11Event.ts b/src/onebot11/server/postOB11Event.ts index f7137b069..c85255cec 100644 --- a/src/onebot11/server/postOB11Event.ts +++ b/src/onebot11/server/postOB11Event.ts @@ -3,7 +3,7 @@ import { OB11BaseMetaEvent } from '../event/meta/OB11BaseMetaEvent'; import { OB11BaseNoticeEvent } from '../event/notice/OB11BaseNoticeEvent'; import { WebSocket as WebSocketClass } from 'ws'; import { wsReply } from './ws/reply'; -import { log, logDebug, logError } from '@/common/utils/log'; +import { logDebug, logError } from '@/common/utils/log'; import { ob11Config } from '@/onebot11/config'; import crypto from 'crypto'; import { ChatType, Group, GroupRequestOperateTypes, Peer } from '@/core/entities'; From 78ddf36e35aea8032c36daeb6cb9b28063ae37da Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Wed, 15 May 2024 17:02:24 +0800 Subject: [PATCH 5/6] refactor: split types.ts into separate files --- src/onebot11/types/entity.ts | 63 +++++++++++++++ src/onebot11/types/index.ts | 3 + src/onebot11/{types.ts => types/message.ts} | 85 +-------------------- src/onebot11/types/meta.ts | 13 ++++ 4 files changed, 82 insertions(+), 82 deletions(-) create mode 100644 src/onebot11/types/entity.ts create mode 100644 src/onebot11/types/index.ts rename src/onebot11/{types.ts => types/message.ts} (72%) create mode 100644 src/onebot11/types/meta.ts diff --git a/src/onebot11/types/entity.ts b/src/onebot11/types/entity.ts new file mode 100644 index 000000000..32df147a7 --- /dev/null +++ b/src/onebot11/types/entity.ts @@ -0,0 +1,63 @@ +export interface OB11User { + user_id: number; + nickname: string; + remark?: string; + sex?: OB11UserSex; + level?: number; + age?: number; + qid?: string; + login_days?: number; +} + +export enum OB11UserSex { + male = 'male', + female = 'female', + unknown = 'unknown' +} + +export enum OB11GroupMemberRole { + owner = 'owner', + admin = 'admin', + member = 'member', +} + +export interface OB11GroupMember { + group_id: number + user_id: number + nickname: string + card?: string + sex?: OB11UserSex + age?: number + join_time?: number + last_sent_time?: number + level?: number + qq_level?: number + role?: OB11GroupMemberRole + title?: string + area?: string + unfriendly?: boolean + title_expire_time?: number + card_changeable?: boolean + // 以下为gocq字段 + shut_up_timestamp?: number + // 以下为扩展字段 + is_robot?: boolean + qage?: number +} + +export interface OB11Group { + group_id: number + group_name: string + member_count?: number + max_member_count?: number +} + +export interface OB11Sender { + user_id: number, + nickname: string, + sex?: OB11UserSex, + age?: number, + card?: string, // 群名片 + level?: string, // 群等级 + role?: OB11GroupMemberRole +} diff --git a/src/onebot11/types/index.ts b/src/onebot11/types/index.ts new file mode 100644 index 000000000..e640c90dd --- /dev/null +++ b/src/onebot11/types/index.ts @@ -0,0 +1,3 @@ +export * from './entity'; +export * from './message'; +export * from './meta'; diff --git a/src/onebot11/types.ts b/src/onebot11/types/message.ts similarity index 72% rename from src/onebot11/types.ts rename to src/onebot11/types/message.ts index 679bada67..8b709975a 100644 --- a/src/onebot11/types.ts +++ b/src/onebot11/types/message.ts @@ -1,71 +1,6 @@ -import { PicSubType, RawMessage } from '@/core'; -import { EventType } from './event/OB11BaseEvent'; -import { CustomMusicSignPostData, IdMusicSignPostData } from '@/core/apis/sign'; -import { stat } from '@/core/data'; - -export interface OB11User { - user_id: number; - nickname: string; - remark?: string; - sex?: OB11UserSex; - level?: number; - age?: number; - qid?: string; - login_days?: number; -} - -export enum OB11UserSex { - male = 'male', - female = 'female', - unknown = 'unknown' -} - -export enum OB11GroupMemberRole { - owner = 'owner', - admin = 'admin', - member = 'member', -} - -export interface OB11GroupMember { - group_id: number - user_id: number - nickname: string - card?: string - sex?: OB11UserSex - age?: number - join_time?: number - last_sent_time?: number - level?: number - qq_level?: number - role?: OB11GroupMemberRole - title?: string - area?: string - unfriendly?: boolean - title_expire_time?: number - card_changeable?: boolean - // 以下为gocq字段 - shut_up_timestamp?: number - // 以下为扩展字段 - is_robot?: boolean - qage?: number -} - -export interface OB11Group { - group_id: number - group_name: string - member_count?: number - max_member_count?: number -} - -interface OB11Sender { - user_id: number, - nickname: string, - sex?: OB11UserSex, - age?: number, - card?: string, // 群名片 - level?: string, // 群等级 - role?: OB11GroupMemberRole -} +import { OB11Sender } from './entity'; +import { EventType } from '@/onebot11/event/OB11BaseEvent'; +import { CustomMusicSignPostData, IdMusicSignPostData, PicSubType, RawMessage } from '@/core'; export enum OB11MessageType { private = 'private', @@ -256,17 +191,3 @@ export interface OB11PostSendMsg { messages?: OB11MessageMixType; // 兼容 go-cqhttp auto_escape?: boolean | string } - -export interface OB11Version { - app_name: string - app_version: string - protocol_version: 'v11' -} - - -export interface OB11Status { - online: boolean | null, - good: boolean, - stat: typeof stat -} - diff --git a/src/onebot11/types/meta.ts b/src/onebot11/types/meta.ts new file mode 100644 index 000000000..768dde548 --- /dev/null +++ b/src/onebot11/types/meta.ts @@ -0,0 +1,13 @@ +import { stat } from '@/core/data'; + +export interface OB11Version { + app_name: string + app_version: string + protocol_version: 'v11' +} + +export interface OB11Status { + online: boolean | null, + good: boolean, + stat: typeof stat +} From 77adf35a30a0bc9d397a55677a6d809fd11df22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 15 May 2024 19:45:27 +0800 Subject: [PATCH 6/6] fix: export problem --- src/core | 2 +- src/core.lib/src/adapters/NodeIDependsAdapter.js | 2 +- src/core.lib/src/adapters/NodeIDispatcherAdapter.js | 2 +- src/core.lib/src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/system.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- src/core.lib/src/listeners/NodeIKernelBuddyListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelGroupListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelLoginListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelMsgListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelProfileListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelRobotListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelSessionListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/utils/rkey.js | 2 +- src/core.lib/src/wrapper.js | 2 +- src/onebot11/server/postOB11Event.ts | 3 ++- 42 files changed, 43 insertions(+), 42 deletions(-) diff --git a/src/core b/src/core index b13518356..ed10e0fc9 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit b1351835673f86d445d244fd515560bfcd0b7adb +Subproject commit ed10e0fc9f4b98ad2b677c8862f5cc817a5560ba diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 1b70b9605..a0de720b6 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x35540b=_0x1a1f;function _0x1a1f(_0x36cb84,_0x29c1ec){var _0x1644c9=_0x1644();return _0x1a1f=function(_0x1a1ffb,_0x23ba40){_0x1a1ffb=_0x1a1ffb-0xfc;var _0xec1cdc=_0x1644c9[_0x1a1ffb];return _0xec1cdc;},_0x1a1f(_0x36cb84,_0x29c1ec);}function _0x1644(){var _0x567c65=['407745rGDJKM','6678690efuqdS','4IsrSPl','10oVqkyy','72ZCiGcG','20981741mrxJbu','52uMXnQe','5498325iFsfKS','195411GtoBFY','1264235tkrdhD','onMSFStatusChange','14290urQsPS'];_0x1644=function(){return _0x567c65;};return _0x1644();}(function(_0x51eb69,_0x9ce55d){var _0x73abf6=_0x1a1f,_0x2c69bc=_0x51eb69();while(!![]){try{var _0x5efe28=-parseInt(_0x73abf6(0x105))/0x1*(parseInt(_0x73abf6(0xfe))/0x2)+-parseInt(_0x73abf6(0x107))/0x3+parseInt(_0x73abf6(0x101))/0x4*(-parseInt(_0x73abf6(0x106))/0x5)+-parseInt(_0x73abf6(0x100))/0x6+-parseInt(_0x73abf6(0xfc))/0x7*(-parseInt(_0x73abf6(0x103))/0x8)+-parseInt(_0x73abf6(0xff))/0x9+parseInt(_0x73abf6(0x102))/0xa*(parseInt(_0x73abf6(0x104))/0xb);if(_0x5efe28===_0x9ce55d)break;else _0x2c69bc['push'](_0x2c69bc['shift']());}catch(_0x59cb91){_0x2c69bc['push'](_0x2c69bc['shift']());}}}(_0x1644,0xcc9e2));export class DependsAdapter{[_0x35540b(0xfd)](_0x5544dc,_0x42e602){}['onMSFSsoError'](_0x1aa939){}['getGroupCode'](_0x3a9fa1){}} \ No newline at end of file +var _0x867e97=_0x46ea;function _0x42a9(){var _0x542a6f=['5868531WWLjkI','6594608pnLMDf','5GkxSbB','8131458HdAVux','onMSFSsoError','2065082dgfadx','onMSFStatusChange','132kElQdj','10ChJeCB','112191uQxwcb','1900178CQPTYb','281883AeDQlm'];_0x42a9=function(){return _0x542a6f;};return _0x42a9();}function _0x46ea(_0x415548,_0xb729d0){var _0x42a987=_0x42a9();return _0x46ea=function(_0x46eac0,_0x8e0d64){_0x46eac0=_0x46eac0-0x9b;var _0x1124ca=_0x42a987[_0x46eac0];return _0x1124ca;},_0x46ea(_0x415548,_0xb729d0);}(function(_0x1c8fb7,_0x159822){var _0x1af623=_0x46ea,_0x398558=_0x1c8fb7();while(!![]){try{var _0xd922c2=-parseInt(_0x1af623(0x9c))/0x1+parseInt(_0x1af623(0xa2))/0x2+-parseInt(_0x1af623(0xa6))/0x3*(-parseInt(_0x1af623(0xa4))/0x4)+parseInt(_0x1af623(0x9f))/0x5*(-parseInt(_0x1af623(0xa0))/0x6)+parseInt(_0x1af623(0x9b))/0x7+-parseInt(_0x1af623(0x9e))/0x8+-parseInt(_0x1af623(0x9d))/0x9*(-parseInt(_0x1af623(0xa5))/0xa);if(_0xd922c2===_0x159822)break;else _0x398558['push'](_0x398558['shift']());}catch(_0x2509db){_0x398558['push'](_0x398558['shift']());}}}(_0x42a9,0xb1e7f));export class DependsAdapter{[_0x867e97(0xa3)](_0x6b9bb1,_0xb4b542){}[_0x867e97(0xa1)](_0x261b72){}['getGroupCode'](_0x4672a4){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js index 4ce3b8545..50d95631c 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0xd6d85d=_0x23ff;(function(_0x357889,_0xd54c17){var _0x3afe44=_0x23ff,_0x3c5e27=_0x357889();while(!![]){try{var _0x10c646=parseInt(_0x3afe44(0x127))/0x1*(parseInt(_0x3afe44(0x12b))/0x2)+-parseInt(_0x3afe44(0x124))/0x3*(parseInt(_0x3afe44(0x12e))/0x4)+-parseInt(_0x3afe44(0x123))/0x5+parseInt(_0x3afe44(0x12c))/0x6+parseInt(_0x3afe44(0x122))/0x7*(parseInt(_0x3afe44(0x129))/0x8)+-parseInt(_0x3afe44(0x128))/0x9+parseInt(_0x3afe44(0x12a))/0xa*(parseInt(_0x3afe44(0x12f))/0xb);if(_0x10c646===_0xd54c17)break;else _0x3c5e27['push'](_0x3c5e27['shift']());}catch(_0xc68fab){_0x3c5e27['push'](_0x3c5e27['shift']());}}}(_0x1d77,0x4389c));export class DispatcherAdapter{[_0xd6d85d(0x126)](_0x2b8bf5){}[_0xd6d85d(0x125)](_0x34725e){}[_0xd6d85d(0x12d)](_0x50e41e){}}function _0x23ff(_0x101031,_0x30715c){var _0x1d7718=_0x1d77();return _0x23ff=function(_0x23ffdd,_0x4767bf){_0x23ffdd=_0x23ffdd-0x122;var _0x5745ce=_0x1d7718[_0x23ffdd];return _0x5745ce;},_0x23ff(_0x101031,_0x30715c);}function _0x1d77(){var _0x205dfa=['872svQUDq','25350rciidS','588vIiUzX','2139090NgHiMx','dispatchCallWithJson','4mWbOGo','3421IsoXEm','2723qCyJeb','1628610JDVPSl','1529301jZHrEO','dispatchCall','dispatchRequest','479SZByIA','1944018KXPsHI'];_0x1d77=function(){return _0x205dfa;};return _0x1d77();} \ No newline at end of file +function _0x57ac(){var _0x5ee083=['6iudbCk','10DjiLlM','163RKoGlK','dispatchCallWithJson','29996OXZKQd','dispatchRequest','739496ZbXlgy','8810703okPNVF','32onJNIq','4692200EQjECF','1370607uRgXls','27ZjgTtl','1951434TFbdgo'];_0x57ac=function(){return _0x5ee083;};return _0x57ac();}var _0x581c9b=_0x1fe5;(function(_0x5f51d3,_0x3e2344){var _0xf5ca77=_0x1fe5,_0x19908a=_0x5f51d3();while(!![]){try{var _0x1b7bc1=parseInt(_0xf5ca77(0xad))/0x1*(parseInt(_0xf5ca77(0xb3))/0x2)+-parseInt(_0xf5ca77(0xaa))/0x3+parseInt(_0xf5ca77(0xaf))/0x4*(-parseInt(_0xf5ca77(0xac))/0x5)+parseInt(_0xf5ca77(0xab))/0x6*(parseInt(_0xf5ca77(0xb5))/0x7)+parseInt(_0xf5ca77(0xb1))/0x8*(-parseInt(_0xf5ca77(0xb6))/0x9)+parseInt(_0xf5ca77(0xb4))/0xa+parseInt(_0xf5ca77(0xb2))/0xb;if(_0x1b7bc1===_0x3e2344)break;else _0x19908a['push'](_0x19908a['shift']());}catch(_0x5c0979){_0x19908a['push'](_0x19908a['shift']());}}}(_0x57ac,0x805f7));function _0x1fe5(_0x4ed2d4,_0x1618dc){var _0x57aca0=_0x57ac();return _0x1fe5=function(_0x1fe5fd,_0x3736b1){_0x1fe5fd=_0x1fe5fd-0xaa;var _0x2cc8bb=_0x57aca0[_0x1fe5fd];return _0x2cc8bb;},_0x1fe5(_0x4ed2d4,_0x1618dc);}export class DispatcherAdapter{[_0x581c9b(0xb0)](_0x3d49ce){}['dispatchCall'](_0x126830){}[_0x581c9b(0xae)](_0x3ae8b1){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIGlobalAdapter.js b/src/core.lib/src/adapters/NodeIGlobalAdapter.js index 390b6eeba..9992f2a13 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x1cb1(_0x34103d,_0x13dfdf){var _0x5be4f0=_0x5be4();return _0x1cb1=function(_0x1cb1e0,_0x50d9ee){_0x1cb1e0=_0x1cb1e0-0x174;var _0x277c25=_0x5be4f0[_0x1cb1e0];return _0x277c25;},_0x1cb1(_0x34103d,_0x13dfdf);}function _0x5be4(){var _0x5d509a=['9jTBTvV','3505870jiAlOg','4589790uFcoQE','5237136ejGKom','onInstallFinished','onShowErrUITips','307348kSzrkM','318012mEmOaS','3OnepSQ','2053660tGZyUK','7aVFHxw','getAppSetting','1503132DwEpJY','fixPicImgType','onGetOfflineMsg'];_0x5be4=function(){return _0x5d509a;};return _0x5be4();}var _0x4940e8=_0x1cb1;(function(_0xc0e070,_0x1b6e8b){var _0x43f664=_0x1cb1,_0x19c3a5=_0xc0e070();while(!![]){try{var _0x7c4c9c=-parseInt(_0x43f664(0x178))/0x1*(-parseInt(_0x43f664(0x176))/0x2)+-parseInt(_0x43f664(0x17c))/0x3+-parseInt(_0x43f664(0x177))/0x4+parseInt(_0x43f664(0x179))/0x5+parseInt(_0x43f664(0x181))/0x6*(-parseInt(_0x43f664(0x17a))/0x7)+parseInt(_0x43f664(0x182))/0x8+parseInt(_0x43f664(0x17f))/0x9*(parseInt(_0x43f664(0x180))/0xa);if(_0x7c4c9c===_0x1b6e8b)break;else _0x19c3a5['push'](_0x19c3a5['shift']());}catch(_0x43b591){_0x19c3a5['push'](_0x19c3a5['shift']());}}}(_0x5be4,0x81c0f));export class GlobalAdapter{['onLog'](..._0x5785ba){}['onGetSrvCalTime'](..._0x2f5395){}[_0x4940e8(0x175)](..._0x2fa560){}[_0x4940e8(0x17d)](..._0x3c9fe0){}[_0x4940e8(0x17b)](..._0x120d59){}[_0x4940e8(0x174)](..._0x49a899){}['onUpdateGeneralFlag'](..._0x4dcbdf){}[_0x4940e8(0x17e)](..._0x165313){}} \ No newline at end of file +var _0x22ea9c=_0x374c;(function(_0x3aac0e,_0x1591ce){var _0x2c5cc9=_0x374c,_0x4f792b=_0x3aac0e();while(!![]){try{var _0x44e5d0=parseInt(_0x2c5cc9(0x8f))/0x1+-parseInt(_0x2c5cc9(0x89))/0x2*(parseInt(_0x2c5cc9(0x83))/0x3)+-parseInt(_0x2c5cc9(0x81))/0x4*(-parseInt(_0x2c5cc9(0x8a))/0x5)+parseInt(_0x2c5cc9(0x8b))/0x6*(-parseInt(_0x2c5cc9(0x85))/0x7)+parseInt(_0x2c5cc9(0x80))/0x8+parseInt(_0x2c5cc9(0x88))/0x9+parseInt(_0x2c5cc9(0x8d))/0xa*(parseInt(_0x2c5cc9(0x7f))/0xb);if(_0x44e5d0===_0x1591ce)break;else _0x4f792b['push'](_0x4f792b['shift']());}catch(_0x5f04cc){_0x4f792b['push'](_0x4f792b['shift']());}}}(_0x1ce7,0x3e0f7));function _0x374c(_0x44bdea,_0x21a9a3){var _0x1ce788=_0x1ce7();return _0x374c=function(_0x374c55,_0x29c301){_0x374c55=_0x374c55-0x7f;var _0x25a2b5=_0x1ce788[_0x374c55];return _0x25a2b5;},_0x374c(_0x44bdea,_0x21a9a3);}function _0x1ce7(){var _0x670e3c=['11RctGuq','128232DicyQx','1516MtJJMY','onGetOfflineMsg','12tQAfJu','onUpdateGeneralFlag','1596avINzm','onShowErrUITips','fixPicImgType','2498787cdzZiP','107678kXzLwT','1295BPzadH','3702DNbncR','getAppSetting','72830OCaOfr','onGetSrvCalTime','211115YLYjzz'];_0x1ce7=function(){return _0x670e3c;};return _0x1ce7();}export class GlobalAdapter{['onLog'](..._0x277df4){}[_0x22ea9c(0x8e)](..._0x50eb79){}[_0x22ea9c(0x86)](..._0x54cc3f){}[_0x22ea9c(0x87)](..._0x2e96ad){}[_0x22ea9c(0x8c)](..._0xa4d115){}['onInstallFinished'](..._0x32d9fe){}[_0x22ea9c(0x84)](..._0x297189){}[_0x22ea9c(0x82)](..._0x680286){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/index.js b/src/core.lib/src/adapters/index.js index 16ca7645a..e4417e4d2 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0x46cb(){var _0x185c30=['1239714QkKWTX','3260072NajbLR','52sVkZql','2FnoNQt','1903650WzwdNg','7fHSozJ','4432041MzBAuz','1012056EawUwU','25710xlaZGR','82777bbHfgF'];_0x46cb=function(){return _0x185c30;};return _0x46cb();}function _0x161f(_0x4e5bfb,_0x58c76b){var _0x46cbff=_0x46cb();return _0x161f=function(_0x161f12,_0x4a0f6e){_0x161f12=_0x161f12-0x6a;var _0xf57fb5=_0x46cbff[_0x161f12];return _0xf57fb5;},_0x161f(_0x4e5bfb,_0x58c76b);}(function(_0x1ee3dc,_0x3e4cba){var _0x2841cd=_0x161f,_0x4aeda5=_0x1ee3dc();while(!![]){try{var _0x470817=parseInt(_0x2841cd(0x70))/0x1*(-parseInt(_0x2841cd(0x6a))/0x2)+-parseInt(_0x2841cd(0x71))/0x3+parseInt(_0x2841cd(0x73))/0x4*(-parseInt(_0x2841cd(0x6f))/0x5)+parseInt(_0x2841cd(0x6e))/0x6+parseInt(_0x2841cd(0x6c))/0x7*(parseInt(_0x2841cd(0x72))/0x8)+parseInt(_0x2841cd(0x6d))/0x9+-parseInt(_0x2841cd(0x6b))/0xa;if(_0x470817===_0x3e4cba)break;else _0x4aeda5['push'](_0x4aeda5['shift']());}catch(_0x35fc3a){_0x4aeda5['push'](_0x4aeda5['shift']());}}}(_0x46cb,0x4d010));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +(function(_0x5b4ce6,_0xd3f215){var _0x1f0439=_0x627e,_0x239dcf=_0x5b4ce6();while(!![]){try{var _0x2a0a10=-parseInt(_0x1f0439(0xe6))/0x1+-parseInt(_0x1f0439(0xdf))/0x2*(parseInt(_0x1f0439(0xe3))/0x3)+parseInt(_0x1f0439(0xe5))/0x4+-parseInt(_0x1f0439(0xe7))/0x5+-parseInt(_0x1f0439(0xe0))/0x6+parseInt(_0x1f0439(0xe2))/0x7+-parseInt(_0x1f0439(0xe4))/0x8*(-parseInt(_0x1f0439(0xe1))/0x9);if(_0x2a0a10===_0xd3f215)break;else _0x239dcf['push'](_0x239dcf['shift']());}catch(_0x1a5019){_0x239dcf['push'](_0x239dcf['shift']());}}}(_0x3a2c,0x73da7));function _0x627e(_0x3d989b,_0xe15262){var _0x3a2c8d=_0x3a2c();return _0x627e=function(_0x627eae,_0x269d53){_0x627eae=_0x627eae-0xdf;var _0xad2546=_0x3a2c8d[_0x627eae];return _0xad2546;},_0x627e(_0x3d989b,_0xe15262);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x3a2c(){var _0x3064ad=['5839134iCLfDf','3045ewMYlC','24uUnsrP','2752672EtseMT','114113bFGmYD','2292310ZsXVMj','1002xNsyLz','3793224meaEvn','1996497HeEFwK'];_0x3a2c=function(){return _0x3064ad;};return _0x3a2c();}export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index 1c98829e3..df7492e51 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x2365fe=_0x4a3b;(function(_0x45e3ac,_0x529208){const _0x41b2fa=_0x4a3b,_0x57eeae=_0x45e3ac();while(!![]){try{const _0x4d64ca=-parseInt(_0x41b2fa(0x123))/0x1*(-parseInt(_0x41b2fa(0x128))/0x2)+-parseInt(_0x41b2fa(0x130))/0x3+-parseInt(_0x41b2fa(0xe8))/0x4*(parseInt(_0x41b2fa(0xfb))/0x5)+parseInt(_0x41b2fa(0x111))/0x6*(-parseInt(_0x41b2fa(0xff))/0x7)+-parseInt(_0x41b2fa(0x104))/0x8+parseInt(_0x41b2fa(0xf1))/0x9+parseInt(_0x41b2fa(0x10b))/0xa;if(_0x4d64ca===_0x529208)break;else _0x57eeae['push'](_0x57eeae['shift']());}catch(_0x42805f){_0x57eeae['push'](_0x57eeae['shift']());}}}(_0x4390,0xb7f0c));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1b1c13 from'path';import _0x179165 from'fs';import _0x245f4c from'fs/promises';import{logDebug}from'@/common/utils/log';function _0x4390(){const _0x1cc8b6=['YmxJw','addCacheScannedPaths','9106500lEVEwu','AasVB','addCacheScanedPaths','uploadFile','downloadMedia\x20complete','getImageSize','113814qVMpOc','hotUpdate','CMinv','getRichMediaFilePathForGuild','basename','copyFile','sPTiO','RWodP','sOkYb','filePath','downloadPath','indexOf','BeCJI','unlink','aiNPx','fileTypeFromFile','JvShJ','toUpperCase','2ijMJjr','getMsgService','getFileType','getFileCacheInfo','shbpG','379198etdfvn','/gchatpic_new/0/0-0-','&rkey=','getFileSize','msgId','startsWith','getHotUpdateCachePath','delete','650868QGkHNy','WSMUE','onRichMediaDownloadComplete','start\x20downloadMedia','RQjeR','clearCacheDataByKeys','clearCache','FvgYe','setCacheSilentScan','1344ZNPjiS','gEtGW','downloadMedia','kxExd','cxwTR','XCgVk','existsSync','tmp','set','7166907cNkcAF','DEvmr','YKSRn','clearChatCache','private_rkey','downloadRichMedia','PIC','getStorageCleanService','hsJVh','scanCache','8490DRAzJr','onLoginSuccess','clearChatCacheInfo','getRkey','77boDEiW','Piant','ext','util','join','2692864JbmSBp','session','hBGRU','ZlLEl','PAEYS'];_0x4390=function(){return _0x1cc8b6;};return _0x4390();}import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x295c3c from'file-type';import{MsgListener}from'@/core/listeners';import _0x4e2797 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x2365fe(0xe1)]=_0x31d3ee=>{const _0x3e78c1=_0x2365fe,_0x429d10={'RQjeR':function(_0x25da46,_0xdccd7c){return _0x25da46(_0xdccd7c);}};for(const [_0x2c56ff,_0x17fe20]of downloadMediaTasks){_0x429d10[_0x3e78c1(0xe3)](_0x17fe20,_0x31d3ee),downloadMediaTasks[_0x3e78c1(0x12f)](_0x2c56ff);}},setTimeout(()=>{const _0x1243ef=_0x2365fe;napCatCore[_0x1243ef(0xfc)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x2365fe(0x125)](_0x18442c){const _0xbcc05b=_0x2365fe;return _0x295c3c[_0xbcc05b(0x120)](_0x18442c);}static async['copyFile'](_0x3172fd,_0x3f07fe){const _0x55130b=_0x2365fe;await napCatCore[_0x55130b(0x102)][_0x55130b(0x116)](_0x3172fd,_0x3f07fe);}static async['getFileSize'](_0x49bfa9){const _0x29b309=_0x2365fe;return await napCatCore[_0x29b309(0x102)][_0x29b309(0x12b)](_0x49bfa9);}static async[_0x2365fe(0x10e)](_0x380f91,_0x5bd6c0=ElementType[_0x2365fe(0xf7)],_0x5d7ce8=0x0){const _0x4b5195=_0x2365fe,_0x1cae90={'GCXLh':function(_0x33f39a,_0x163cb9){return _0x33f39a(_0x163cb9);},'oiJhd':function(_0x594592,_0x228817){return _0x594592+_0x228817;},'AasVB':function(_0x2ec477,_0x143b88){return _0x2ec477===_0x143b88;}},_0x337a05=await _0x1cae90['GCXLh'](calculateFileMD5,_0x380f91);let _0xdf9492=(await NTQQFileApi[_0x4b5195(0x125)](_0x380f91))?.[_0x4b5195(0x101)]||'';_0xdf9492&&(_0xdf9492=_0x1cae90['oiJhd']('.',_0xdf9492));let _0x17247e=''+_0x1b1c13[_0x4b5195(0x115)](_0x380f91);_0x1cae90[_0x4b5195(0x10c)](_0x17247e[_0x4b5195(0x11c)]('.'),-0x1)&&(_0x17247e+=_0xdf9492);const _0x34135b=napCatCore[_0x4b5195(0x105)][_0x4b5195(0x124)]()[_0x4b5195(0x114)]({'md5HexStr':_0x337a05,'fileName':_0x17247e,'elementType':_0x5bd6c0,'elementSubType':_0x5d7ce8,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x380f91,_0x34135b);const _0x2a56bb=await NTQQFileApi[_0x4b5195(0x12b)](_0x380f91);return{'md5':_0x337a05,'fileName':_0x17247e,'path':_0x34135b,'fileSize':_0x2a56bb,'ext':_0xdf9492};}static async[_0x2365fe(0xea)](_0xe1f2f6,_0x5740df,_0xb64a37,_0xceddbe,_0x3bd7c1,_0x489a01,_0x4ac7ad=0x3e8*0x3c*0x2,_0x41bf3a=![]){const _0x217edc=_0x2365fe,_0x307257={'DEvmr':'下载超时','BeCJI':function(_0x486bd3,_0x563ca4,_0x547a9d,_0x1a7dba){return _0x486bd3(_0x563ca4,_0x547a9d,_0x1a7dba);},'kxExd':function(_0x3745ee,_0x361b3d){return _0x3745ee===_0x361b3d;},'gEtGW':_0x217edc(0x11b),'RWodP':function(_0x16f28c,_0x4ef7ab){return _0x16f28c(_0x4ef7ab);},'YmxJw':function(_0x4ff679){return _0x4ff679();},'shbpG':function(_0x1193f5,_0x134ee4,_0x5b304a,_0x17483c,_0x54057e,_0x36aa51,_0x4c9852,_0x1e8081,_0x41f312,_0x95e748){return _0x1193f5(_0x134ee4,_0x5b304a,_0x17483c,_0x54057e,_0x36aa51,_0x4c9852,_0x1e8081,_0x41f312,_0x95e748);},'VzrEL':'receive\x20downloadMedia\x20task','hsJVh':_0x217edc(0xe2)};_0x307257[_0x217edc(0x127)](logDebug,_0x307257['VzrEL'],_0xe1f2f6,_0x5740df,_0xb64a37,_0xceddbe,_0x3bd7c1,_0x489a01,_0x4ac7ad,_0x41bf3a);if(_0x489a01&&_0x179165[_0x217edc(0xee)](_0x489a01)){if(_0x41bf3a)try{await _0x245f4c[_0x217edc(0x11e)](_0x489a01);}catch(_0x11c014){}else return _0x489a01;}return _0x307257[_0x217edc(0x127)](logDebug,_0x307257[_0x217edc(0xf9)],_0xe1f2f6,_0x5740df,_0xb64a37,_0xceddbe,_0x3bd7c1,_0x489a01,_0x4ac7ad,_0x41bf3a),new Promise((_0x13410d,_0x6ce39c)=>{const _0x588e2b=_0x217edc,_0x427804={'aiNPx':function(_0x293756,_0x1c7d4f,_0x308821,_0x2e8ca0){const _0x2884ac=_0x4a3b;return _0x307257[_0x2884ac(0x11d)](_0x293756,_0x1c7d4f,_0x308821,_0x2e8ca0);},'PAEYS':_0x588e2b(0x10f),'CMinv':function(_0xbe4c1,_0xd3f9f0){const _0x3e1cbf=_0x588e2b;return _0x307257[_0x3e1cbf(0xeb)](_0xbe4c1,_0xd3f9f0);},'sPTiO':function(_0x15cb35,_0x1a5bbe,_0x6a2b35){return _0x15cb35(_0x1a5bbe,_0x6a2b35);},'XCgVk':_0x307257[_0x588e2b(0xe9)],'hBGRU':function(_0x23eacc,_0x174e81){const _0x46b20a=_0x588e2b;return _0x307257[_0x46b20a(0x118)](_0x23eacc,_0x174e81);}};let _0x2de9ed=![];const _0x378070=_0x546d3a=>{const _0x419a3e=_0x588e2b;_0x427804[_0x419a3e(0x11f)](logDebug,_0x427804[_0x419a3e(0x108)],_0x546d3a,_0xe1f2f6);if(_0x427804[_0x419a3e(0x113)](_0x546d3a[_0x419a3e(0x12c)],_0xe1f2f6)){_0x2de9ed=!![];let _0x1a6652=_0x546d3a[_0x419a3e(0x11a)];if(_0x1a6652[_0x419a3e(0x12d)]('\x5c')){const _0x4613a5=sessionConfig['defaultFileDownloadPath'];_0x427804[_0x419a3e(0x117)](logDebug,_0x427804[_0x419a3e(0xed)],_0x4613a5),_0x1a6652=_0x1b1c13[_0x419a3e(0x103)](_0x4613a5,_0x1a6652);}_0x427804[_0x419a3e(0x106)](_0x13410d,_0x1a6652);}};downloadMediaTasks[_0x588e2b(0xf0)](_0x307257[_0x588e2b(0x109)](randomUUID),_0x378070),setTimeout(()=>{const _0x34a9e=_0x588e2b;!_0x2de9ed&&_0x6ce39c(_0x307257[_0x34a9e(0xf2)]);},_0x4ac7ad),napCatCore[_0x588e2b(0x105)][_0x588e2b(0x124)]()[_0x588e2b(0xf6)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0xe1f2f6,'chatType':_0x5740df,'peerUid':_0xb64a37,'elementId':_0xceddbe,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x3bd7c1});});}static async[_0x2365fe(0x110)](_0x70fd82){const _0x169454={'ACizO':function(_0x1de248,_0x4987e7){return _0x1de248(_0x4987e7);},'ZlLEl':function(_0x33e341,_0x3e477d){return _0x33e341(_0x3e477d);}};return new Promise((_0x11ae69,_0x44e84a)=>{const _0x5ebc15={'cxwTR':function(_0x40409c,_0x1fa0c3){return _0x169454['ACizO'](_0x40409c,_0x1fa0c3);},'FvgYe':function(_0x3c3f71,_0x1e5fdf){const _0xb6580c=_0x4a3b;return _0x169454[_0xb6580c(0x107)](_0x3c3f71,_0x1e5fdf);}};_0x4e2797(_0x70fd82,(_0x2309da,_0x195542)=>{const _0x706dd9=_0x4a3b;_0x2309da?_0x5ebc15[_0x706dd9(0xec)](_0x44e84a,_0x2309da):_0x5ebc15[_0x706dd9(0xe6)](_0x11ae69,_0x195542);});});}static async['getImageUrl'](_0x1687a9,_0x24a4f7){const _0x22bd40=_0x2365fe,_0x4db90b={'Piant':'/download','GHwBE':_0x22bd40(0x12a),'JvShJ':function(_0x19c789,_0x2918c0){return _0x19c789+_0x2918c0;},'WSMUE':function(_0x508476,_0x57d229){return _0x508476+_0x57d229;},'YKSRn':function(_0x248614,_0x2cbf0d){return _0x248614||_0x2cbf0d;},'sOkYb':function(_0x1a3d59,_0x11081d,_0x47fd99){return _0x1a3d59(_0x11081d,_0x47fd99);},'cuDax':'图片url获取失败'};if(!_0x1687a9)return'';const _0x5cf583=_0x1687a9['originImageUrl'],_0x1cecc4=_0x1687a9['md5HexStr'],_0x15f192=_0x1687a9['md5HexStr'],_0x5bf822=_0x1687a9['fileUuid'];if(_0x5cf583){if(_0x5cf583[_0x22bd40(0x12d)](_0x4db90b[_0x22bd40(0x100)])){if(_0x5cf583['includes'](_0x4db90b['GHwBE']))return _0x4db90b[_0x22bd40(0x121)](IMAGE_HTTP_HOST_NT,_0x5cf583);const _0x55a861=await rkeyManager[_0x22bd40(0xfe)](),_0x5d3804=_0x24a4f7?_0x55a861[_0x22bd40(0xf5)]:_0x55a861['group_rkey'];return _0x4db90b[_0x22bd40(0x121)](_0x4db90b['JvShJ'](IMAGE_HTTP_HOST_NT,_0x5cf583),''+_0x5d3804);}else return _0x4db90b[_0x22bd40(0x131)](IMAGE_HTTP_HOST,_0x5cf583);}else{if(_0x15f192||_0x1cecc4)return IMAGE_HTTP_HOST+_0x22bd40(0x129)+_0x4db90b[_0x22bd40(0xf3)](_0x15f192,_0x1cecc4)[_0x22bd40(0x122)]()+'/0';}return _0x4db90b[_0x22bd40(0x119)](logDebug,_0x4db90b['cuDax'],_0x1687a9),'';}}function _0x4a3b(_0x4707be,_0x47aaab){const _0x439037=_0x4390();return _0x4a3b=function(_0x4a3be8,_0x1f05e8){_0x4a3be8=_0x4a3be8-0xe1;let _0x5d1cea=_0x439037[_0x4a3be8];return _0x5d1cea;},_0x4a3b(_0x4707be,_0x47aaab);}export class NTQQFileCacheApi{static async[_0x2365fe(0xe7)](_0x3769a6=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x2365fe(0xe5)](_0x40a04d=[_0x2365fe(0xef),_0x2365fe(0x112)]){const _0x20a081=_0x2365fe;return napCatCore['session'][_0x20a081(0xf8)]()[_0x20a081(0xe4)](_0x40a04d);}static[_0x2365fe(0x10a)](_0x6ded9e={}){const _0x2c0394=_0x2365fe;return napCatCore['session'][_0x2c0394(0xf8)]()[_0x2c0394(0x10d)](_0x6ded9e);}static[_0x2365fe(0xfa)](){const _0x13773c=_0x2365fe;return napCatCore[_0x13773c(0x105)][_0x13773c(0xf8)]()[_0x13773c(0xfa)]();}static[_0x2365fe(0x12e)](){return'';}static['getDesktopTmpPath'](){return'';}static['getChatCacheList'](_0x3b7696,_0xefab1d=0x3e8,_0x51f303=0x0){const _0x3888a1=_0x2365fe;return napCatCore[_0x3888a1(0x105)][_0x3888a1(0xf8)]()['getChatCacheInfo'](_0x3b7696,_0xefab1d,0x1,_0x51f303);}static[_0x2365fe(0x126)](_0x3a7574,_0x178988=0x3e8,_0x19c369){const _0xac465b=_0x19c369?_0x19c369:{'fileType':_0x3a7574};}static async[_0x2365fe(0xf4)](_0x2c0ead=[],_0x3c5d6c=[]){const _0x39bb1d=_0x2365fe;return napCatCore[_0x39bb1d(0x105)][_0x39bb1d(0xf8)]()[_0x39bb1d(0xfd)](_0x2c0ead,_0x3c5d6c);}} \ No newline at end of file +const _0x571c3a=_0x396d;(function(_0x1a4956,_0x4e7c8c){const _0x227694=_0x396d,_0x107e4e=_0x1a4956();while(!![]){try{const _0x53ac00=-parseInt(_0x227694(0xf8))/0x1+parseInt(_0x227694(0xe3))/0x2*(parseInt(_0x227694(0x10f))/0x3)+parseInt(_0x227694(0x124))/0x4+-parseInt(_0x227694(0xe4))/0x5+parseInt(_0x227694(0x10a))/0x6+-parseInt(_0x227694(0x105))/0x7+parseInt(_0x227694(0xeb))/0x8;if(_0x53ac00===_0x4e7c8c)break;else _0x107e4e['push'](_0x107e4e['shift']());}catch(_0x543add){_0x107e4e['push'](_0x107e4e['shift']());}}}(_0x5a00,0xb90c4));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x4a7068 from'path';import _0x215c2a from'fs';import _0x33d805 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x37496c from'file-type';import{MsgListener}from'@/core/listeners';import _0x3480bf from'image-size';function _0x396d(_0x53da89,_0x77d5c5){const _0x5a0082=_0x5a00();return _0x396d=function(_0x396da8,_0x4b6591){_0x396da8=_0x396da8-0xd9;let _0x218462=_0x5a0082[_0x396da8];return _0x218462;},_0x396d(_0x53da89,_0x77d5c5);}import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x6c284f=>{const _0x2cd374=_0x396d,_0x54775f={'XErbg':function(_0x132603,_0x23fef1){return _0x132603(_0x23fef1);}};for(const [_0x28c8c7,_0x28d82e]of downloadMediaTasks){_0x54775f[_0x2cd374(0xe6)](_0x28d82e,_0x6c284f),downloadMediaTasks[_0x2cd374(0x123)](_0x28c8c7);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x3bf7d2=_0x396d;napCatCore[_0x3bf7d2(0xed)](downloadMediaListener);});},0x64);function _0x5a00(){const _0x136130=['getFileSize','WNQlx','clearChatCache','cWnyk','AAORJ','indexOf','getRkey','downloadMedia\x20complete','getRichMediaFilePathForGuild','getImageSize','scanCache','wiqII','unlink','owxpp','/download','join','delete','2190392WEvxni','md5HexStr','hotUpdate','/gchatpic_new/0/0-0-','KcpKz','set','getCacheSessionPathList','rlWTb','existsSync','includes','getChatCacheList','msgId','HVuld','getStorageCleanService','CvPtV','PIC','getFileType','73838qfmFga','744005FqftfY','addCacheScanedPaths','XErbg','GVejO','util','group_rkey','ydcXK','4777784jKIXUv','filePath','addListener','DuWhr','wxQBz','JSjwV','LECKs','clearCacheDataByKeys','clearCache','图片url获取失败','qKpWZ','addCacheScannedPaths','defaultFileDownloadPath','989078hwJnGj','receive\x20downloadMedia\x20task','start\x20downloadMedia','eTgLY','session','downloadPath','下载超时','downloadRichMedia','downloadMedia','startsWith','mvTSz','lMuse','ext','5854149PyNrtw','boomZ','basename','copyFile','danWV','4650618kMqyCu','HcDAn','fileUuid','getChatCacheInfo','tmp','66SlOxGq','kdZGE','EYNPp','clearChatCacheInfo'];_0x5a00=function(){return _0x136130;};return _0x5a00();}export class NTQQFileApi{static async['getFileType'](_0x1c6a73){return _0x37496c['fileTypeFromFile'](_0x1c6a73);}static async[_0x571c3a(0x108)](_0x419a49,_0x38478a){const _0x6ebb46=_0x571c3a;await napCatCore['util'][_0x6ebb46(0x108)](_0x419a49,_0x38478a);}static async[_0x571c3a(0x113)](_0x425be0){const _0xaf8752=_0x571c3a;return await napCatCore[_0xaf8752(0xe8)][_0xaf8752(0x113)](_0x425be0);}static async['uploadFile'](_0x2e6c5c,_0x4648ae=ElementType[_0x571c3a(0xe1)],_0x456874=0x0){const _0x41219f=_0x571c3a,_0x503161={'mGAoI':function(_0x462788,_0x427b6e){return _0x462788(_0x427b6e);},'mvTSz':function(_0x54754a,_0x2ebc37){return _0x54754a+_0x2ebc37;},'ydcXK':function(_0x46cfa4,_0x114e05){return _0x46cfa4===_0x114e05;}},_0x321adb=await _0x503161['mGAoI'](calculateFileMD5,_0x2e6c5c);let _0x417845=(await NTQQFileApi[_0x41219f(0xe2)](_0x2e6c5c))?.[_0x41219f(0x104)]||'';_0x417845&&(_0x417845=_0x503161[_0x41219f(0x102)]('.',_0x417845));let _0x770bae=''+_0x4a7068[_0x41219f(0x107)](_0x2e6c5c);_0x503161[_0x41219f(0xea)](_0x770bae[_0x41219f(0x118)]('.'),-0x1)&&(_0x770bae+=_0x417845);const _0xa6e4a8=napCatCore[_0x41219f(0xfc)]['getMsgService']()[_0x41219f(0x11b)]({'md5HexStr':_0x321adb,'fileName':_0x770bae,'elementType':_0x4648ae,'elementSubType':_0x456874,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x41219f(0x108)](_0x2e6c5c,_0xa6e4a8);const _0x115ca1=await NTQQFileApi['getFileSize'](_0x2e6c5c);return{'md5':_0x321adb,'fileName':_0x770bae,'path':_0xa6e4a8,'fileSize':_0x115ca1,'ext':_0x417845};}static async[_0x571c3a(0x100)](_0x2bc1c9,_0x15d4e5,_0x3ad967,_0x32dc81,_0x2bcb71,_0x42815d,_0x57707a=0x3e8*0x3c*0x2,_0x2a2006=![]){const _0x568ec4=_0x571c3a,_0x565373={'GVejO':_0x568ec4(0xfe),'danWV':_0x568ec4(0x11a),'wiqII':function(_0x5dc351,_0x545ecf){return _0x5dc351===_0x545ecf;},'cWnyk':function(_0x58cf5f,_0x316026,_0x2f23ac){return _0x58cf5f(_0x316026,_0x2f23ac);},'wxQBz':_0x568ec4(0xfd),'qKpWZ':function(_0x17de1d,_0x7a8bcc){return _0x17de1d(_0x7a8bcc);},'CvPtV':function(_0x297d53){return _0x297d53();},'HVuld':function(_0x1e44a0,_0xeb24fd,_0x150ec3,_0x5541a9,_0x4ea394,_0x189554,_0x3d8c9e,_0x26679b,_0x569937,_0x131444){return _0x1e44a0(_0xeb24fd,_0x150ec3,_0x5541a9,_0x4ea394,_0x189554,_0x3d8c9e,_0x26679b,_0x569937,_0x131444);},'AAORJ':_0x568ec4(0xf9),'KcpKz':_0x568ec4(0xfa)};_0x565373['HVuld'](logDebug,_0x565373[_0x568ec4(0x117)],_0x2bc1c9,_0x15d4e5,_0x3ad967,_0x32dc81,_0x2bcb71,_0x42815d,_0x57707a,_0x2a2006);if(_0x42815d&&_0x215c2a[_0x568ec4(0xda)](_0x42815d)){if(_0x2a2006)try{await _0x33d805[_0x568ec4(0x11f)](_0x42815d);}catch(_0x5e3115){}else return _0x42815d;}return _0x565373[_0x568ec4(0xde)](logDebug,_0x565373[_0x568ec4(0x128)],_0x2bc1c9,_0x15d4e5,_0x3ad967,_0x32dc81,_0x2bcb71,_0x42815d,_0x57707a,_0x2a2006),new Promise((_0x2bb46d,_0x3b9458)=>{const _0x47ae9c=_0x568ec4,_0x319020={'kdZGE':_0x565373[_0x47ae9c(0x109)],'DuWhr':function(_0x23c31e,_0x110dd9){const _0xbbce74=_0x47ae9c;return _0x565373[_0xbbce74(0x11e)](_0x23c31e,_0x110dd9);},'boomZ':function(_0x384c7d,_0x32e759,_0x24de9c){const _0x139903=_0x47ae9c;return _0x565373[_0x139903(0x116)](_0x384c7d,_0x32e759,_0x24de9c);},'BvZYF':_0x565373[_0x47ae9c(0xef)],'rlWTb':function(_0x2a6531,_0x1234be){const _0x1a2245=_0x47ae9c;return _0x565373[_0x1a2245(0xf5)](_0x2a6531,_0x1234be);}};let _0x48fc28=![];const _0xe551e4=_0x5cfd34=>{const _0x21a09f=_0x47ae9c;logDebug(_0x319020[_0x21a09f(0x110)],_0x5cfd34,_0x2bc1c9);if(_0x319020[_0x21a09f(0xee)](_0x5cfd34[_0x21a09f(0xdd)],_0x2bc1c9)){_0x48fc28=!![];let _0xaf38ec=_0x5cfd34[_0x21a09f(0xec)];if(_0xaf38ec[_0x21a09f(0x101)]('\x5c')){const _0x22e974=sessionConfig[_0x21a09f(0xf7)];_0x319020[_0x21a09f(0x106)](logDebug,_0x319020['BvZYF'],_0x22e974),_0xaf38ec=_0x4a7068[_0x21a09f(0x122)](_0x22e974,_0xaf38ec);}_0x319020[_0x21a09f(0xd9)](_0x2bb46d,_0xaf38ec);}};downloadMediaTasks[_0x47ae9c(0x129)](_0x565373[_0x47ae9c(0xe0)](randomUUID),_0xe551e4),_0x565373[_0x47ae9c(0x116)](setTimeout,()=>{const _0x164843=_0x47ae9c;!_0x48fc28&&_0x3b9458(_0x565373[_0x164843(0xe7)]);},_0x57707a),napCatCore[_0x47ae9c(0xfc)]['getMsgService']()[_0x47ae9c(0xff)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x2bc1c9,'chatType':_0x15d4e5,'peerUid':_0x3ad967,'elementId':_0x32dc81,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x2bcb71});});}static async[_0x571c3a(0x11c)](_0x32a93a){const _0x5da6a1={'HcDAn':function(_0x33fed3,_0x193f40){return _0x33fed3(_0x193f40);},'rerhn':function(_0x24cbe7,_0x533c90){return _0x24cbe7(_0x533c90);},'LECKs':function(_0x2d8920,_0x2902b4,_0x2fc523){return _0x2d8920(_0x2902b4,_0x2fc523);}};return new Promise((_0x4afd25,_0x19ce17)=>{const _0x1ec619=_0x396d;_0x5da6a1[_0x1ec619(0xf1)](_0x3480bf,_0x32a93a,(_0x5d71ee,_0x54e88b)=>{const _0x328911=_0x1ec619;_0x5d71ee?_0x5da6a1[_0x328911(0x10b)](_0x19ce17,_0x5d71ee):_0x5da6a1['rerhn'](_0x4afd25,_0x54e88b);});});}static async['getImageUrl'](_0x21db65,_0x41abe1){const _0x1d88a7=_0x571c3a,_0x20b000={'WNQlx':'&rkey=','EYNPp':function(_0x948ddd,_0x4f2cc9){return _0x948ddd+_0x4f2cc9;},'lMuse':function(_0x3e7a91,_0x31067d){return _0x3e7a91+_0x31067d;},'owxpp':function(_0x28074c,_0x155256){return _0x28074c||_0x155256;},'JSjwV':function(_0x4d0ddc,_0x10192a,_0x1990dd){return _0x4d0ddc(_0x10192a,_0x1990dd);},'eTgLY':_0x1d88a7(0xf4)};if(!_0x21db65)return'';const _0x2251ed=_0x21db65['originImageUrl'],_0x3acee8=_0x21db65['md5HexStr'],_0x5709cc=_0x21db65[_0x1d88a7(0x125)],_0x92cde0=_0x21db65[_0x1d88a7(0x10c)];if(_0x2251ed){if(_0x2251ed[_0x1d88a7(0x101)](_0x1d88a7(0x121))){if(_0x2251ed[_0x1d88a7(0xdb)](_0x20b000[_0x1d88a7(0x114)]))return _0x20b000[_0x1d88a7(0x111)](IMAGE_HTTP_HOST_NT,_0x2251ed);const _0x3ece6a=await rkeyManager[_0x1d88a7(0x119)](),_0x282d8a=_0x41abe1?_0x3ece6a['private_rkey']:_0x3ece6a[_0x1d88a7(0xe9)];return _0x20b000[_0x1d88a7(0x103)](IMAGE_HTTP_HOST_NT+_0x2251ed,''+_0x282d8a);}else return _0x20b000[_0x1d88a7(0x111)](IMAGE_HTTP_HOST,_0x2251ed);}else{if(_0x20b000[_0x1d88a7(0x120)](_0x5709cc,_0x3acee8))return IMAGE_HTTP_HOST+_0x1d88a7(0x127)+_0x20b000[_0x1d88a7(0x120)](_0x5709cc,_0x3acee8)['toUpperCase']()+'/0';}return _0x20b000[_0x1d88a7(0xf0)](logDebug,_0x20b000[_0x1d88a7(0xfb)],_0x21db65),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x1a2356=!![]){return'';}static[_0x571c3a(0x12a)](){return'';}static[_0x571c3a(0xf3)](_0x8ecdd2=[_0x571c3a(0x10e),_0x571c3a(0x126)]){const _0x168639=_0x571c3a;return napCatCore[_0x168639(0xfc)]['getStorageCleanService']()[_0x168639(0xf2)](_0x8ecdd2);}static[_0x571c3a(0xf6)](_0x306deb={}){const _0x23c97e=_0x571c3a;return napCatCore['session'][_0x23c97e(0xdf)]()[_0x23c97e(0xe5)](_0x306deb);}static['scanCache'](){const _0x3b2c51=_0x571c3a;return napCatCore[_0x3b2c51(0xfc)][_0x3b2c51(0xdf)]()[_0x3b2c51(0x11d)]();}static['getHotUpdateCachePath'](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x571c3a(0xdc)](_0x11f113,_0x445ccc=0x3e8,_0x31f780=0x0){const _0x3016e3=_0x571c3a;return napCatCore[_0x3016e3(0xfc)]['getStorageCleanService']()[_0x3016e3(0x10d)](_0x11f113,_0x445ccc,0x1,_0x31f780);}static['getFileCacheInfo'](_0x121665,_0x3862ac=0x3e8,_0x3b8f15){const _0x524a38=_0x3b8f15?_0x3b8f15:{'fileType':_0x121665};}static async[_0x571c3a(0x115)](_0x215b08=[],_0x2c1548=[]){const _0x21f6ad=_0x571c3a;return napCatCore['session']['getStorageCleanService']()[_0x21f6ad(0x112)](_0x215b08,_0x2c1548);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/friend.js b/src/core.lib/src/apis/friend.js index bb8fed35e..1990b790f 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x47c820=_0x231c;function _0x370e(){const _0x388a95=['handleFriendRequest','getBuddyList','获取好友列表超时','获取好友列表完成','push','4805EIQCMI','uin','uid','62122JJbOer','41544KqIGZm','set','session','7822664LlMCkp','9010csqOHa','onLoginSuccess','addListener','开始获取好友列表','niJjV','buddyList','JIqOP','QaUXs','HonIN','1617175JonhqE','gWRWI','delete','1884TFLMPj','friendUid','DIdgi','1145591YBfBOp','onBuddyListChange','yuzed','6948888EaRNAB','93sTllyd','BmhMQ','getBuddyService','reqTime','getFriends'];_0x370e=function(){return _0x388a95;};return _0x370e();}function _0x231c(_0x27518c,_0x28ab3b){const _0x370e80=_0x370e();return _0x231c=function(_0x231cd1,_0x1e3d25){_0x231cd1=_0x231cd1-0xdc;let _0x1d8adc=_0x370e80[_0x231cd1];return _0x1d8adc;},_0x231c(_0x27518c,_0x28ab3b);}(function(_0x1b3b3b,_0x38b417){const _0x5950c3=_0x231c,_0x5be665=_0x1b3b3b();while(!![]){try{const _0x37ef65=-parseInt(_0x5950c3(0xee))/0x1+-parseInt(_0x5950c3(0xff))/0x2*(parseInt(_0x5950c3(0xf2))/0x3)+parseInt(_0x5950c3(0xeb))/0x4*(parseInt(_0x5950c3(0xfc))/0x5)+-parseInt(_0x5950c3(0xf1))/0x6+parseInt(_0x5950c3(0xe8))/0x7+-parseInt(_0x5950c3(0xde))/0x8+parseInt(_0x5950c3(0x100))/0x9*(parseInt(_0x5950c3(0xdf))/0xa);if(_0x37ef65===_0x38b417)break;else _0x5be665['push'](_0x5be665['shift']());}catch(_0x43675b){_0x5be665['push'](_0x5be665['shift']());}}}(_0x370e,0x920c1));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x47c820(0xef)]=_0x1a011c=>{const _0x28b3ad=_0x47c820,_0x3490bc={'DIdgi':function(_0x54e842,_0xd42fb0){return _0x54e842(_0xd42fb0);}};for(const [_0x246d2d,_0x49b247]of buddyChangeTasks){_0x3490bc[_0x28b3ad(0xed)](_0x49b247,_0x1a011c),buddyChangeTasks[_0x28b3ad(0xea)](_0x246d2d);}},setTimeout(()=>{const _0x370c74=_0x47c820;napCatCore[_0x370c74(0xe0)](()=>{const _0x41cfce=_0x370c74;napCatCore[_0x41cfce(0xe1)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x47c820(0xf6)](_0x4b8dd4=![]){const _0xceddb=_0x47c820,_0x36ff4f={'yuzed':function(_0x4b7deb,_0x35f2e8){return _0x4b7deb(_0x35f2e8);},'gWRWI':_0xceddb(0xf9),'niJjV':function(_0x25053b,_0x4ffe0c,_0x394a5e){return _0x25053b(_0x4ffe0c,_0x394a5e);},'JIqOP':_0xceddb(0xfa),'BmhMQ':function(_0x1d3946){return _0x1d3946();}};return new Promise((_0x5d43cc,_0x12829f)=>{const _0x4d869b=_0xceddb,_0xa03459={'QaUXs':function(_0x20e8ed,_0x5e4bfc){const _0x1cd043=_0x231c;return _0x36ff4f[_0x1cd043(0xf0)](_0x20e8ed,_0x5e4bfc);},'uMDCm':_0x36ff4f[_0x4d869b(0xe9)],'HonIN':function(_0x2b5fc8,_0x1c82e9,_0x46881c){const _0x5b7882=_0x4d869b;return _0x36ff4f[_0x5b7882(0xe3)](_0x2b5fc8,_0x1c82e9,_0x46881c);},'fKMFP':_0x36ff4f[_0x4d869b(0xe5)],'FenPS':_0x4d869b(0xe2)};let _0x4df0ab=![];setTimeout(()=>{const _0x12475d=_0x4d869b;!_0x4df0ab&&(_0xa03459[_0x12475d(0xe6)](logDebug,_0xa03459['uMDCm']),_0xa03459['QaUXs'](_0x12829f,_0x12475d(0xf9)));},0x1388);const _0x35d8b6=[],_0x2a9f24=_0x406d4a=>{const _0x307e0b=_0x4d869b;for(const _0x302e81 of _0x406d4a){for(const _0x6a6afb of _0x302e81[_0x307e0b(0xe4)]){_0x35d8b6[_0x307e0b(0xfb)](_0x6a6afb),uid2UinMap[_0x6a6afb[_0x307e0b(0xfe)]]=_0x6a6afb[_0x307e0b(0xfd)];}}_0x4df0ab=!![],_0xa03459[_0x307e0b(0xe7)](logDebug,_0xa03459['fKMFP'],_0x35d8b6),_0x5d43cc(_0x35d8b6);};buddyChangeTasks[_0x4d869b(0xdc)](_0x36ff4f[_0x4d869b(0xf3)](randomUUID),_0x2a9f24),napCatCore[_0x4d869b(0xdd)][_0x4d869b(0xf4)]()[_0x4d869b(0xf8)](_0x4b8dd4)['then'](_0x59b0ad=>{const _0x378d4d=_0x4d869b;_0xa03459[_0x378d4d(0xe7)](logDebug,_0xa03459['FenPS'],_0x59b0ad);});});}static async[_0x47c820(0xf7)](_0x38787a,_0x92fc1a){const _0x1d5701=_0x47c820;napCatCore[_0x1d5701(0xdd)]['getBuddyService']()?.['approvalFriendRequest']({'friendUid':_0x38787a[_0x1d5701(0xec)],'reqTime':_0x38787a[_0x1d5701(0xf5)],'accept':_0x92fc1a});}} \ No newline at end of file +const _0xab4bb5=_0x2831;(function(_0x5c21cf,_0x1b96a5){const _0x58088f=_0x2831,_0x26895c=_0x5c21cf();while(!![]){try{const _0x129344=-parseInt(_0x58088f(0x161))/0x1+-parseInt(_0x58088f(0x174))/0x2*(-parseInt(_0x58088f(0x15d))/0x3)+-parseInt(_0x58088f(0x15f))/0x4+parseInt(_0x58088f(0x169))/0x5*(parseInt(_0x58088f(0x171))/0x6)+-parseInt(_0x58088f(0x175))/0x7*(parseInt(_0x58088f(0x16e))/0x8)+parseInt(_0x58088f(0x179))/0x9+parseInt(_0x58088f(0x178))/0xa;if(_0x129344===_0x1b96a5)break;else _0x26895c['push'](_0x26895c['shift']());}catch(_0x573142){_0x26895c['push'](_0x26895c['shift']());}}}(_0x376c,0xbb4b0));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x2831(_0x2bf0e6,_0x3fa3c5){const _0x376cc5=_0x376c();return _0x2831=function(_0x28313b,_0x5c1bec){_0x28313b=_0x28313b-0x15d;let _0x357408=_0x376cc5[_0x28313b];return _0x357408;},_0x2831(_0x2bf0e6,_0x3fa3c5);}buddyListener[_0xab4bb5(0x167)]=_0x5e9f39=>{const _0x3e0578=_0xab4bb5,_0x10751c={'jJdMb':function(_0x3e4b90,_0x107e58){return _0x3e4b90(_0x107e58);}};for(const [_0xa17eb5,_0x11d15b]of buddyChangeTasks){_0x10751c[_0x3e0578(0x17c)](_0x11d15b,_0x5e9f39),buddyChangeTasks[_0x3e0578(0x163)](_0xa17eb5);}},setTimeout(()=>{const _0x5109b6=_0xab4bb5;napCatCore[_0x5109b6(0x164)](()=>{const _0xd33cf1=_0x5109b6;napCatCore[_0xd33cf1(0x160)](buddyListener);});},0x64);function _0x376c(){const _0x3f082e=['16DbENeV','35xnenhV','获取好友列表超时','TGVpX','15440900DTHxXf','11090043RcpENf','approvalFriendRequest','getBuddyService','jJdMb','10239unydGd','fDAzZ','1664060KKCjoK','addListener','856742HpRTWv','VLSSh','delete','onLoginSuccess','uin','uid','onBuddyListChange','getBuddyList','138095ekoidy','NYtaA','buddyList','zhhPS','getFriends','1973176EmNHvB','eTnDD','session','102IaibJB','push','reqTime'];_0x376c=function(){return _0x3f082e;};return _0x376c();}export class NTQQFriendApi{static async[_0xab4bb5(0x16d)](_0x908e69=![]){const _0x3035f2=_0xab4bb5,_0x4b4026={'fDAzZ':function(_0x25c808,_0x4b25cb){return _0x25c808(_0x4b25cb);},'eTnDD':_0x3035f2(0x176),'TGVpX':function(_0x1cb39c,_0x50f053,_0x1309c3){return _0x1cb39c(_0x50f053,_0x1309c3);},'VLSSh':function(_0x23aada,_0x1bd081){return _0x23aada(_0x1bd081);},'zhhPS':function(_0xc77e22,_0x2401f5,_0x534441){return _0xc77e22(_0x2401f5,_0x534441);},'NYtaA':function(_0x50024d){return _0x50024d();}};return new Promise((_0x14bfe8,_0x315d29)=>{const _0x2fe389=_0x3035f2,_0x463fc7={'PBtCU':'开始获取好友列表'};let _0x11f52b=![];_0x4b4026[_0x2fe389(0x16c)](setTimeout,()=>{const _0x306202=_0x2fe389;!_0x11f52b&&(_0x4b4026[_0x306202(0x15e)](logDebug,_0x4b4026[_0x306202(0x16f)]),_0x315d29(_0x4b4026[_0x306202(0x16f)]));},0x1388);const _0x126876=[],_0x11aac7=_0x16034f=>{const _0x5cedf6=_0x2fe389;for(const _0x1bb84e of _0x16034f){for(const _0x56d67b of _0x1bb84e[_0x5cedf6(0x16b)]){_0x126876[_0x5cedf6(0x172)](_0x56d67b),uid2UinMap[_0x56d67b[_0x5cedf6(0x166)]]=_0x56d67b[_0x5cedf6(0x165)];}}_0x11f52b=!![],_0x4b4026[_0x5cedf6(0x177)](logDebug,'获取好友列表完成',_0x126876),_0x4b4026[_0x5cedf6(0x162)](_0x14bfe8,_0x126876);};buddyChangeTasks['set'](_0x4b4026[_0x2fe389(0x16a)](randomUUID),_0x11aac7),napCatCore[_0x2fe389(0x170)]['getBuddyService']()[_0x2fe389(0x168)](_0x908e69)['then'](_0x5bdb67=>{logDebug(_0x463fc7['PBtCU'],_0x5bdb67);});});}static async['handleFriendRequest'](_0x5d6b12,_0x456c19){const _0x2bbb2a=_0xab4bb5;napCatCore[_0x2bbb2a(0x170)][_0x2bbb2a(0x17b)]()?.[_0x2bbb2a(0x17a)]({'friendUid':_0x5d6b12['friendUid'],'reqTime':_0x5d6b12[_0x2bbb2a(0x173)],'accept':_0x456c19});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index 2543dbc92..ae786e18e 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -function _0x4c66(_0x3365e6,_0x138349){const _0xe7611d=_0xe761();return _0x4c66=function(_0x4c6667,_0x314843){_0x4c6667=_0x4c6667-0xda;let _0x22e61a=_0xe7611d[_0x4c6667];return _0x22e61a;},_0x4c66(_0x3365e6,_0x138349);}const _0x2ae9d1=_0x4c66;(function(_0x3e6c93,_0x112663){const _0x5999d0=_0x4c66,_0x1049c5=_0x3e6c93();while(!![]){try{const _0x5c5c42=-parseInt(_0x5999d0(0x101))/0x1+-parseInt(_0x5999d0(0x106))/0x2+-parseInt(_0x5999d0(0xf1))/0x3*(parseInt(_0x5999d0(0x114))/0x4)+parseInt(_0x5999d0(0xe5))/0x5+parseInt(_0x5999d0(0xe1))/0x6+-parseInt(_0x5999d0(0xf9))/0x7+parseInt(_0x5999d0(0xf5))/0x8*(parseInt(_0x5999d0(0x11b))/0x9);if(_0x5c5c42===_0x112663)break;else _0x1049c5['push'](_0x1049c5['shift']());}catch(_0x3fe01e){_0x1049c5['push'](_0x1049c5['shift']());}}}(_0xe761,0xd6392));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();function _0xe761(){const _0x467e4a=['getGroupNotifies','fzPOK','getPSkey','uin','获取群(','963733pZjRLK','createMemberListScene','modifyMemberRole','getGroupMembers','type','2653598QgrQLQ','onLoginSuccess','then','lEBEU','kickMember','getGroupList','seq','result','modifyMemberCardName','PKAuj','setGroupTitle','delete','groupCode','operateSysNotify','585444AGOhRM','errCode','setMemberRole','获取群列表完成','getGroupIgnoreNotifies','forEach','modifyGroupName','122895JZfJYz','DSWzj','DkoHf','setGroupName',')成员列表结果:','finish:\x20','errMsg','group','groupMemberList_MainWindow','NgLwR','3180750DTJmgJ','getGroupService','infos','Noiqz','2750955loKzKE','getGroups','sxOds','ZRHUM','publishGroupBulletin','onGroupListUpdate','gIMYx','uid','quitGroup','qun.qq.com','获取群成员列表出错,','rBXFk','12HKYJUc','setGroupShutUp','获取群列表超时','uploadGroupBulletinPic','1696eQmEji','banMember','session','handleGroupRequest','1552194ZFaOQn','setMemberCard','finish'];_0xe761=function(){return _0x467e4a;};return _0xe761();}groupListener[_0x2ae9d1(0xea)]=(_0x2a05f5,_0xa399a9)=>{const _0x37563e=_0x2ae9d1,_0x4362fa={'QaQvN':function(_0x8f09e5,_0x2a657d,_0xb63194){return _0x8f09e5(_0x2a657d,_0xb63194);}};for(const [_0x166020,_0x2aea0b]of groupMemberTasks){_0x4362fa['QaQvN'](_0x2aea0b,_0x2a05f5,_0xa399a9),groupMemberTasks[_0x37563e(0x111)](_0x166020);}},setTimeout(()=>{const _0x1db270=_0x2ae9d1;napCatCore[_0x1db270(0x107)](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x2ae9d1(0xe6)](_0x399273=![]){const _0x1e1075=_0x2ae9d1,_0x2f5cfe={'sxOds':_0x1e1075(0xf3),'rBXFk':function(_0x47245b,_0x4ea84b,_0x8c5cac){return _0x47245b(_0x4ea84b,_0x8c5cac);},'lEBEU':_0x1e1075(0x117),'Noiqz':function(_0x35369a,_0x4b61f9){return _0x35369a(_0x4b61f9);},'DSWzj':function(_0x3cf40c){return _0x3cf40c();}};let _0x53aeaf=![];return new Promise((_0x3712a8,_0x8eb487)=>{const _0x45c55c=_0x1e1075;setTimeout(()=>{const _0x503b1d=_0x4c66;!_0x53aeaf&&(logDebug(_0x2f5cfe[_0x503b1d(0xe7)]),_0x8eb487(_0x503b1d(0xf3)));},0x1388);const _0x1bfd68=(_0x1249f6,_0x52d3c7)=>{const _0x383595=_0x4c66;_0x53aeaf=!![],_0x2f5cfe[_0x383595(0xf0)](logDebug,_0x2f5cfe[_0x383595(0x109)],_0x52d3c7),_0x2f5cfe[_0x383595(0xe4)](_0x3712a8,_0x52d3c7);};groupMemberTasks['set'](_0x2f5cfe[_0x45c55c(0x11c)](randomUUID),_0x1bfd68),napCatCore['session'][_0x45c55c(0xe2)]()[_0x45c55c(0x10b)](_0x399273)[_0x45c55c(0x108)]();});}static async[_0x2ae9d1(0x104)](_0x29a4c0,_0x23ffe0=0xbb8){const _0xd17efe=_0x2ae9d1,_0x588aec={'DkoHf':function(_0x3ff28a,_0x13f70f){return _0x3ff28a!==_0x13f70f;},'NgLwR':function(_0x9a9be7,_0x4b3a2f){return _0x9a9be7+_0x4b3a2f;},'fzPOK':_0xd17efe(0xef),'ZRHUM':function(_0x1604ed,_0x323730,_0x3e53ad){return _0x1604ed(_0x323730,_0x3e53ad);}},_0x53c5c3=napCatCore[_0xd17efe(0xf7)]['getGroupService'](),_0x36fb03=_0x53c5c3[_0xd17efe(0x102)](_0x29a4c0,_0xd17efe(0xdf)),_0x267c4d=await _0x53c5c3['getNextMemberList'](_0x36fb03,undefined,_0x23ffe0);if(_0x588aec[_0xd17efe(0x11d)](_0x267c4d[_0xd17efe(0x115)],0x0))throw _0x588aec[_0xd17efe(0xe0)](_0x588aec[_0xd17efe(0xfd)],_0x267c4d[_0xd17efe(0xdd)]);return _0x588aec[_0xd17efe(0xe8)](logDebug,_0xd17efe(0x100)+_0x29a4c0+_0xd17efe(0xdb),_0xd17efe(0xdc)+_0x267c4d[_0xd17efe(0x10d)][_0xd17efe(0xfb)]),_0x267c4d[_0xd17efe(0x10d)][_0xd17efe(0xe3)][_0xd17efe(0x119)](_0xeee235=>{const _0x122188=_0xd17efe;uid2UinMap[_0xeee235[_0x122188(0xec)]]=_0xeee235[_0x122188(0xff)];}),_0x267c4d[_0xd17efe(0x10d)][_0xd17efe(0xe3)];}static async[_0x2ae9d1(0xfc)](){}static async[_0x2ae9d1(0x118)](){}static async[_0x2ae9d1(0xf4)](_0x2263fc,_0x20d615){const _0x527d50=_0x2ae9d1,_0x268bad={'gIMYx':_0x527d50(0xee)},_0x3be418=(await NTQQUserApi['getPSkey']([_0x268bad[_0x527d50(0xeb)]]))[_0x268bad['gIMYx']];return napCatCore[_0x527d50(0xf7)][_0x527d50(0xe2)]()[_0x527d50(0xf4)](_0x2263fc,_0x3be418,_0x20d615);}static async[_0x2ae9d1(0xf8)](_0x3dd9ff,_0x1d6ab5,_0x4e964b){const _0x4dae44=_0x2ae9d1;return napCatCore[_0x4dae44(0xf7)][_0x4dae44(0xe2)]()[_0x4dae44(0x113)](![],{'operateType':_0x1d6ab5,'targetMsg':{'seq':_0x3dd9ff[_0x4dae44(0x10c)],'type':_0x3dd9ff[_0x4dae44(0x105)],'groupCode':_0x3dd9ff[_0x4dae44(0xde)][_0x4dae44(0x112)],'postscript':_0x4e964b||''}});}static async['quitGroup'](_0xf90a9d){const _0x4a3fe7=_0x2ae9d1;return napCatCore['session'][_0x4a3fe7(0xe2)]()[_0x4a3fe7(0xed)](_0xf90a9d);}static async[_0x2ae9d1(0x10a)](_0x54b4d2,_0x11cd61,_0xce0d5f=![],_0x59b061=''){const _0x2d0fa6=_0x2ae9d1;return napCatCore[_0x2d0fa6(0xf7)]['getGroupService']()['kickMember'](_0x54b4d2,_0x11cd61,_0xce0d5f,_0x59b061);}static async[_0x2ae9d1(0xf6)](_0x5a9e18,_0x23c8e6){const _0x5a8b25=_0x2ae9d1;return napCatCore[_0x5a8b25(0xf7)]['getGroupService']()['setMemberShutUp'](_0x5a9e18,_0x23c8e6);}static async['banGroup'](_0xb895e2,_0xc81a2d){const _0x5a7f77=_0x2ae9d1;return napCatCore[_0x5a7f77(0xf7)][_0x5a7f77(0xe2)]()[_0x5a7f77(0xf2)](_0xb895e2,_0xc81a2d);}static async[_0x2ae9d1(0xfa)](_0x2222f3,_0xe3a45e,_0x9fc970){const _0x4944f3=_0x2ae9d1;return napCatCore['session']['getGroupService']()[_0x4944f3(0x10e)](_0x2222f3,_0xe3a45e,_0x9fc970);}static async[_0x2ae9d1(0x116)](_0x41d3c8,_0x27ab96,_0x1c043f){const _0x17052d=_0x2ae9d1;return napCatCore[_0x17052d(0xf7)]['getGroupService']()[_0x17052d(0x103)](_0x41d3c8,_0x27ab96,_0x1c043f);}static async[_0x2ae9d1(0xda)](_0x5a7ebb,_0x1d7b2e){const _0x4f1c44=_0x2ae9d1;return napCatCore['session'][_0x4f1c44(0xe2)]()[_0x4f1c44(0x11a)](_0x5a7ebb,_0x1d7b2e,![]);}static async[_0x2ae9d1(0x110)](_0x32b7de,_0x4c95f9,_0xc45cbd){}static async[_0x2ae9d1(0xe9)](_0x65f817,_0xa1a4cf,_0x4f8792=undefined,_0x73fce9=0x0,_0x14b19c=0x0){const _0x2af2c4=_0x2ae9d1,_0x3a4e2f={'PKAuj':_0x2af2c4(0xee)},_0x5b7910=(await NTQQUserApi[_0x2af2c4(0xfe)]([_0x3a4e2f[_0x2af2c4(0x10f)]]))[_0x3a4e2f[_0x2af2c4(0x10f)]];let _0xe0a2a4={'text':encodeURI(_0xa1a4cf),'picInfo':_0x4f8792,'oldFeedsId':'','pinned':_0x73fce9,'confirmRequired':_0x14b19c};return napCatCore[_0x2af2c4(0xf7)][_0x2af2c4(0xe2)]()[_0x2af2c4(0xe9)](_0x65f817,_0x5b7910,_0xe0a2a4);}} \ No newline at end of file +function _0x95a3(){const _0x3750aa=['513138bYKSjM','TgvWg','vlNzW','WcOVS','获取群(','infos','handleGroupRequest','modifyMemberRole','result','setMemberShutUp','getGroups','getGroupService','kickMember','获取群列表完成','groupMemberList_MainWindow','createMemberListScene','seq','3352MfRwxa','KoLBx','12gEHGgE','type','finish','425iEZIxX','uploadGroupBulletinPic','delete','1wqqbZD','2745432YCqUqi','获取群列表超时','iOxWt','48akvARP','8GjQmcp','getNextMemberList','setMemberCard','groupCode','349041qDsDDH','getPSkey','publishGroupBulletin','uin','onLoginSuccess','16258979hkIJUw','getGroupMembers','modifyMemberCardName','setGroupShutUp','banMember','setMemberRole','getGroupIgnoreNotifies','onGroupListUpdate','6484140liRkqF','RWubY','UFSDr','setGroupTitle','errMsg','errCode','quitGroup','session','GIyIa','banGroup','set','qun.qq.com','getGroupList','group','addListener','ksoYN','then','IfKKz','uid','644442FMuYRL'];_0x95a3=function(){return _0x3750aa;};return _0x95a3();}const _0x321ccf=_0x55ab;(function(_0x240eb2,_0x2ea072){const _0x577ca8=_0x55ab,_0x3f5d2e=_0x240eb2();while(!![]){try{const _0x23171a=parseInt(_0x577ca8(0x1ab))/0x1*(-parseInt(_0x577ca8(0x192))/0x2)+-parseInt(_0x577ca8(0x191))/0x3+-parseInt(_0x577ca8(0x1a3))/0x4*(-parseInt(_0x577ca8(0x1a8))/0x5)+-parseInt(_0x577ca8(0x1af))/0x6*(parseInt(_0x577ca8(0x1b4))/0x7)+-parseInt(_0x577ca8(0x1b0))/0x8*(-parseInt(_0x577ca8(0x1ac))/0x9)+-parseInt(_0x577ca8(0x17e))/0xa+parseInt(_0x577ca8(0x1b9))/0xb*(parseInt(_0x577ca8(0x1a5))/0xc);if(_0x23171a===_0x2ea072)break;else _0x3f5d2e['push'](_0x3f5d2e['shift']());}catch(_0x323eb6){_0x3f5d2e['push'](_0x3f5d2e['shift']());}}}(_0x95a3,0x51f32));function _0x55ab(_0x415d58,_0x52de17){const _0x95a37e=_0x95a3();return _0x55ab=function(_0x55ab47,_0x709536){_0x55ab47=_0x55ab47-0x17e;let _0x2ba44c=_0x95a37e[_0x55ab47];return _0x2ba44c;},_0x55ab(_0x415d58,_0x52de17);}import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x321ccf(0x1c0)]=(_0x34149f,_0x2f6114)=>{const _0x4208a6=_0x321ccf,_0x42f06d={'IfKKz':function(_0x3f961a,_0x1d706b,_0x32dd1b){return _0x3f961a(_0x1d706b,_0x32dd1b);}};for(const [_0x1bc72,_0x548262]of groupMemberTasks){_0x42f06d[_0x4208a6(0x18f)](_0x548262,_0x34149f,_0x2f6114),groupMemberTasks[_0x4208a6(0x1aa)](_0x1bc72);}},setTimeout(()=>{const _0x3dbc07=_0x321ccf;napCatCore[_0x3dbc07(0x1b8)](()=>{const _0x2f20aa=_0x3dbc07;napCatCore[_0x2f20aa(0x18c)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x321ccf(0x19c)](_0x3dd07d=![]){const _0x2932a6=_0x321ccf,_0x617231={'TgvWg':_0x2932a6(0x1ad),'WcOVS':function(_0x334617,_0x4c1486){return _0x334617(_0x4c1486);},'uXbsO':_0x2932a6(0x19f),'RWubY':function(_0x7052fb,_0x2d7052){return _0x7052fb(_0x2d7052);},'GIyIa':function(_0x3920ed,_0x309083,_0x1ad935){return _0x3920ed(_0x309083,_0x1ad935);},'vaQSV':function(_0x79ce23){return _0x79ce23();}};let _0x334c2d=![];return new Promise((_0x38c395,_0x31ad48)=>{const _0x20121d=_0x2932a6;_0x617231[_0x20121d(0x186)](setTimeout,()=>{const _0x356de8=_0x20121d;!_0x334c2d&&(logDebug(_0x617231[_0x356de8(0x193)]),_0x617231[_0x356de8(0x195)](_0x31ad48,_0x356de8(0x1ad)));},0x1388);const _0x4f5125=(_0x6f31db,_0x21d1cb)=>{const _0x1c7240=_0x20121d;_0x334c2d=!![],logDebug(_0x617231['uXbsO'],_0x21d1cb),_0x617231[_0x1c7240(0x17f)](_0x38c395,_0x21d1cb);};groupMemberTasks[_0x20121d(0x188)](_0x617231['vaQSV'](randomUUID),_0x4f5125),napCatCore['session'][_0x20121d(0x19d)]()[_0x20121d(0x18a)](_0x3dd07d)[_0x20121d(0x18e)]();});}static async[_0x321ccf(0x1ba)](_0x4a4175,_0x5b6dab=0xbb8){const _0x1d1f98=_0x321ccf,_0xbcb74b={'ksoYN':_0x1d1f98(0x1a0),'UFSDr':function(_0x3f79f1,_0x58efd7){return _0x3f79f1!==_0x58efd7;},'VHrsx':function(_0x7ced5b,_0x51dc1f,_0x342078){return _0x7ced5b(_0x51dc1f,_0x342078);}},_0x319e48=napCatCore[_0x1d1f98(0x185)]['getGroupService'](),_0xe0a6d0=_0x319e48[_0x1d1f98(0x1a1)](_0x4a4175,_0xbcb74b[_0x1d1f98(0x18d)]),_0x5a3bea=await _0x319e48[_0x1d1f98(0x1b1)](_0xe0a6d0,undefined,_0x5b6dab);if(_0xbcb74b[_0x1d1f98(0x180)](_0x5a3bea[_0x1d1f98(0x183)],0x0))throw'获取群成员列表出错,'+_0x5a3bea[_0x1d1f98(0x182)];return _0xbcb74b['VHrsx'](logDebug,_0x1d1f98(0x196)+_0x4a4175+')成员列表结果:','finish:\x20'+_0x5a3bea[_0x1d1f98(0x19a)][_0x1d1f98(0x1a7)]),_0x5a3bea[_0x1d1f98(0x19a)][_0x1d1f98(0x197)]['forEach'](_0x10e7a0=>{const _0x16b617=_0x1d1f98;uid2UinMap[_0x10e7a0[_0x16b617(0x190)]]=_0x10e7a0[_0x16b617(0x1b7)];}),_0x5a3bea['result'][_0x1d1f98(0x197)];}static async['getGroupNotifies'](){}static async[_0x321ccf(0x1bf)](){}static async[_0x321ccf(0x1a9)](_0xd94b68,_0x392fc2){const _0x30ab94=_0x321ccf,_0x4715a7={'vlNzW':_0x30ab94(0x189)},_0x2b7634=(await NTQQUserApi[_0x30ab94(0x1b5)]([_0x4715a7[_0x30ab94(0x194)]]))[_0x4715a7[_0x30ab94(0x194)]];return napCatCore[_0x30ab94(0x185)][_0x30ab94(0x19d)]()[_0x30ab94(0x1a9)](_0xd94b68,_0x2b7634,_0x392fc2);}static async[_0x321ccf(0x198)](_0x1c748f,_0x20c1f5,_0x5c75f2){const _0x1c1ee6=_0x321ccf,_0x2af5f6={'iOxWt':function(_0x31a358,_0x3514ad){return _0x31a358||_0x3514ad;}};return napCatCore[_0x1c1ee6(0x185)][_0x1c1ee6(0x19d)]()['operateSysNotify'](![],{'operateType':_0x20c1f5,'targetMsg':{'seq':_0x1c748f[_0x1c1ee6(0x1a2)],'type':_0x1c748f[_0x1c1ee6(0x1a6)],'groupCode':_0x1c748f[_0x1c1ee6(0x18b)][_0x1c1ee6(0x1b3)],'postscript':_0x2af5f6[_0x1c1ee6(0x1ae)](_0x5c75f2,'')}});}static async[_0x321ccf(0x184)](_0x354a6b){const _0x26325e=_0x321ccf;return napCatCore['session'][_0x26325e(0x19d)]()['quitGroup'](_0x354a6b);}static async[_0x321ccf(0x19e)](_0x317006,_0x333218,_0x37ce28=![],_0x214107=''){const _0x5ee7f7=_0x321ccf;return napCatCore['session']['getGroupService']()[_0x5ee7f7(0x19e)](_0x317006,_0x333218,_0x37ce28,_0x214107);}static async[_0x321ccf(0x1bd)](_0x55ecbc,_0x12d877){const _0x376264=_0x321ccf;return napCatCore[_0x376264(0x185)]['getGroupService']()[_0x376264(0x19b)](_0x55ecbc,_0x12d877);}static async[_0x321ccf(0x187)](_0x4e4a63,_0x3b31c1){const _0x31ead9=_0x321ccf;return napCatCore[_0x31ead9(0x185)][_0x31ead9(0x19d)]()[_0x31ead9(0x1bc)](_0x4e4a63,_0x3b31c1);}static async[_0x321ccf(0x1b2)](_0xc237c3,_0x8aa5b6,_0x55339f){const _0x1fede6=_0x321ccf;return napCatCore['session'][_0x1fede6(0x19d)]()[_0x1fede6(0x1bb)](_0xc237c3,_0x8aa5b6,_0x55339f);}static async[_0x321ccf(0x1be)](_0x1cce35,_0xda11ce,_0x505177){const _0x46b512=_0x321ccf;return napCatCore[_0x46b512(0x185)]['getGroupService']()[_0x46b512(0x199)](_0x1cce35,_0xda11ce,_0x505177);}static async['setGroupName'](_0x45decf,_0x4c4aab){const _0x3a73c0=_0x321ccf;return napCatCore['session'][_0x3a73c0(0x19d)]()['modifyGroupName'](_0x45decf,_0x4c4aab,![]);}static async[_0x321ccf(0x181)](_0x3b74cb,_0x413075,_0x2f1876){}static async[_0x321ccf(0x1b6)](_0x25fed2,_0x4b7878,_0x39777a=undefined,_0x5efd9c=0x0,_0x2ed4fa=0x0){const _0x4c9439=_0x321ccf,_0x4f1caf={'KoLBx':_0x4c9439(0x189),'LPHsX':function(_0x56d854,_0xe0d2f7){return _0x56d854(_0xe0d2f7);}},_0x16916c=(await NTQQUserApi[_0x4c9439(0x1b5)]([_0x4f1caf[_0x4c9439(0x1a4)]]))[_0x4f1caf[_0x4c9439(0x1a4)]];let _0x2f3fee={'text':_0x4f1caf['LPHsX'](encodeURI,_0x4b7878),'picInfo':_0x39777a,'oldFeedsId':'','pinned':_0x5efd9c,'confirmRequired':_0x2ed4fa};return napCatCore[_0x4c9439(0x185)][_0x4c9439(0x19d)]()['publishGroupBulletin'](_0x25fed2,_0x16916c,_0x2f3fee);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index a70d59a18..d241cad0f 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x87bee2,_0xbd5344){var _0x5193f8=_0x341e,_0xe90654=_0x87bee2();while(!![]){try{var _0x336e3b=-parseInt(_0x5193f8(0x12e))/0x1*(parseInt(_0x5193f8(0x12c))/0x2)+parseInt(_0x5193f8(0x12b))/0x3+-parseInt(_0x5193f8(0x12f))/0x4+-parseInt(_0x5193f8(0x12a))/0x5+parseInt(_0x5193f8(0x129))/0x6+parseInt(_0x5193f8(0x130))/0x7+parseInt(_0x5193f8(0x12d))/0x8;if(_0x336e3b===_0xbd5344)break;else _0xe90654['push'](_0xe90654['shift']());}catch(_0x27cddc){_0xe90654['push'](_0xe90654['shift']());}}}(_0x2f02,0x795c1));export*from'./file';function _0x341e(_0x4f53cd,_0x13bfd6){var _0x2f0297=_0x2f02();return _0x341e=function(_0x341e38,_0x1a3cac){_0x341e38=_0x341e38-0x129;var _0x584276=_0x2f0297[_0x341e38];return _0x584276;},_0x341e(_0x4f53cd,_0x13bfd6);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x2f02(){var _0x2b8ff5=['1830240RiEELn','3320821RXxRUE','5730558iSxOwh','1752670tGhyFc','720228awXOMZ','1550506zjJrOL','3286912GYZzuL','1MpuRcx'];_0x2f02=function(){return _0x2b8ff5;};return _0x2f02();}export*from'./system'; \ No newline at end of file +(function(_0x53a332,_0x535724){var _0x21fa6a=_0x42b8,_0xdf551f=_0x53a332();while(!![]){try{var _0x470483=-parseInt(_0x21fa6a(0x1cc))/0x1+parseInt(_0x21fa6a(0x1c8))/0x2+parseInt(_0x21fa6a(0x1c5))/0x3*(-parseInt(_0x21fa6a(0x1cb))/0x4)+parseInt(_0x21fa6a(0x1c7))/0x5*(parseInt(_0x21fa6a(0x1c9))/0x6)+parseInt(_0x21fa6a(0x1c6))/0x7*(parseInt(_0x21fa6a(0x1c3))/0x8)+parseInt(_0x21fa6a(0x1ca))/0x9+-parseInt(_0x21fa6a(0x1c4))/0xa;if(_0x470483===_0x535724)break;else _0xdf551f['push'](_0xdf551f['shift']());}catch(_0x1bd261){_0xdf551f['push'](_0xdf551f['shift']());}}}(_0x4654,0x19dbb));export*from'./file';export*from'./friend';export*from'./group';function _0x42b8(_0x3db451,_0xe35b9a){var _0x465404=_0x4654();return _0x42b8=function(_0x42b8cf,_0x4da282){_0x42b8cf=_0x42b8cf-0x1c3;var _0x392873=_0x465404[_0x42b8cf];return _0x392873;},_0x42b8(_0x3db451,_0xe35b9a);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x4654(){var _0x3638dc=['1876630YHCHiv','306786fdFpeu','833189MnObGo','15165HDYOqS','395248lnnCYR','90vFKtmy','1609038KDSIam','8BCGJuJ','42826fWHUVz','8UCLOmr'];_0x4654=function(){return _0x3638dc;};return _0x4654();}export*from'./system'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index f0979e421..bae55fdcd 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x1a6de2=_0x562e;function _0x562e(_0x19ad66,_0x5cb23b){const _0x535241=_0x5352();return _0x562e=function(_0x562e9b,_0x48f33c){_0x562e9b=_0x562e9b-0x151;let _0x38839c=_0x535241[_0x562e9b];return _0x38839c;},_0x562e(_0x19ad66,_0x5cb23b);}function _0x5352(){const _0x1cc3a7=['setMsgRead','recallMsg','6798390ikQrgc','bytesData','发送超时','onMsgInfoListUpdate','getMsgService','KbwzA','com.tencent.multimsg','1ZiEDRG','FimPj','1305964XCnSQR','110NxJhgs','1342494hAtmep','arkElement','jjppD','sendStatus','ddbaY','sendMsg','oVhdd','length','kqoGd','jMjEk','231uKmOoa','QbCsy','activateChat','catch','find','klmaz','mbdDV','jRRHz','388754JDMdcN','toString','addListener','peerUid','fetchRecentContact','getMultiMsg','getMsgsIncludeSelf','msgId','senderUid','5440ykDvPG','delete','xHVph','uid','onLoginSuccess','34752cHzAiB','forwardMsg','getMsgsBySeqAndCount','activateChatAndGetHistory','then','session','multiForwardMsgWithComment','setEmojiLike','chatType','qUqoc','WsfTv','app','setMsgEmojiLikes','CMUmL','504444fSTTuq','xHdRv','multiForwardMsg'];_0x5352=function(){return _0x1cc3a7;};return _0x5352();}(function(_0x37c944,_0x4e7f9c){const _0x281104=_0x562e,_0x3d1eb7=_0x37c944();while(!![]){try{const _0x4474a3=parseInt(_0x281104(0x166))/0x1*(-parseInt(_0x281104(0x17c))/0x2)+-parseInt(_0x281104(0x15a))/0x3+-parseInt(_0x281104(0x168))/0x4+parseInt(_0x281104(0x169))/0x5*(parseInt(_0x281104(0x18a))/0x6)+-parseInt(_0x281104(0x174))/0x7*(-parseInt(_0x281104(0x185))/0x8)+parseInt(_0x281104(0x16a))/0x9+parseInt(_0x281104(0x15f))/0xa;if(_0x4474a3===_0x4e7f9c)break;else _0x3d1eb7['push'](_0x3d1eb7['shift']());}catch(_0x757645){_0x3d1eb7['push'](_0x3d1eb7['shift']());}}}(_0x5352,0x46c3d));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x4ae197=>{const _0x4acc16=_0x562e,_0x13899b={'UKnlI':function(_0xa62da,_0x400b2f){return _0xa62da(_0x400b2f);},'kqoGd':function(_0x163899,_0x584b55){return _0x163899 instanceof _0x584b55;}};for(const [_0x174c25,_0x535d85]of sentMsgTasks){_0x13899b['UKnlI'](_0x535d85,_0x4ae197),sentMsgTasks[_0x4acc16(0x186)](_0x174c25);}if(sendMessagePool[_0x4ae197['peerUid']]){const _0x5b0ab5=sendMessagePool[_0x4ae197[_0x4acc16(0x17f)]]?.(_0x4ae197);_0x13899b[_0x4acc16(0x172)](_0x5b0ab5,Promise)&&_0x5b0ab5[_0x4acc16(0x18e)]()[_0x4acc16(0x177)](logError);}},msgListener[_0x1a6de2(0x162)]=_0x33d083=>{_0x33d083['forEach'](_0x44129a=>{const _0x4d1d6a=_0x562e;new Promise((_0x47ff3c,_0x3e89de)=>{const _0x365870=_0x562e;for(const _0x175e7d in sendSuccessCBMap){const _0x4e8d2e=sendSuccessCBMap[_0x175e7d],_0x2cf53b=_0x4e8d2e(_0x44129a),_0x1571b7=_0x8dca29=>{_0x8dca29&&delete sendSuccessCBMap[_0x175e7d];};_0x2cf53b instanceof Promise?_0x2cf53b[_0x365870(0x18e)](_0x1571b7):_0x1571b7(_0x2cf53b);}})[_0x4d1d6a(0x18e)]()[_0x4d1d6a(0x177)](log);});},setTimeout(()=>{const _0x4aef41=_0x1a6de2;napCatCore[_0x4aef41(0x189)](()=>{const _0x439ec2=_0x4aef41;napCatCore[_0x439ec2(0x17e)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x1a6de2(0x153)](_0x571393,_0x531afb,_0x123d6a,_0x445b48=!![]){const _0x5f1398=_0x1a6de2,_0x3294fb={'TWIrn':function(_0x36ba5d,_0x528b15){return _0x36ba5d>_0x528b15;}};return _0x123d6a=_0x123d6a[_0x5f1398(0x17d)](),napCatCore['session'][_0x5f1398(0x163)]()[_0x5f1398(0x158)](_0x571393,_0x531afb,_0x123d6a,_0x3294fb['TWIrn'](_0x123d6a[_0x5f1398(0x171)],0x3)?'2':'1',_0x445b48);}static async[_0x1a6de2(0x181)](_0x218fd4,_0x5944ab,_0x3b5de1){const _0x370f2a=_0x1a6de2;return napCatCore[_0x370f2a(0x151)][_0x370f2a(0x163)]()[_0x370f2a(0x181)](_0x218fd4,_0x5944ab,_0x3b5de1);}static async['getMsgsByMsgId'](_0x2f0494,_0x52f65d){const _0x4688d2=_0x1a6de2;return await napCatCore[_0x4688d2(0x151)][_0x4688d2(0x163)]()['getMsgsByMsgId'](_0x2f0494,_0x52f65d);}static async[_0x1a6de2(0x18c)](_0x36bb84,_0x42ec58,_0x2ecbfc,_0x2d2e7f,_0x254c90){const _0x3142b0=_0x1a6de2;return await napCatCore[_0x3142b0(0x151)][_0x3142b0(0x163)]()[_0x3142b0(0x18c)](_0x36bb84,_0x42ec58,_0x2ecbfc,_0x2d2e7f,_0x254c90);}static async[_0x1a6de2(0x176)](_0x341691){}static async[_0x1a6de2(0x18d)](_0x2e554d){}static async[_0x1a6de2(0x15d)](_0x293d87){const _0x39237b=_0x1a6de2;return napCatCore[_0x39237b(0x151)][_0x39237b(0x163)]()['setMsgRead'](_0x293d87);}static async['getMsgHistory'](_0x1ce980,_0x48693f,_0x1b4ce9){const _0x582b21=_0x1a6de2;return napCatCore['session'][_0x582b21(0x163)]()[_0x582b21(0x182)](_0x1ce980,_0x48693f,_0x1b4ce9,!![]);}static async[_0x1a6de2(0x180)](){}static async[_0x1a6de2(0x15e)](_0x1dc2ed,_0x2f3c59){const _0x2915d7=_0x1a6de2;await napCatCore[_0x2915d7(0x151)][_0x2915d7(0x163)]()['recallMsg']({'chatType':_0x1dc2ed[_0x2915d7(0x154)],'peerUid':_0x1dc2ed[_0x2915d7(0x17f)]},_0x2f3c59);}static async[_0x1a6de2(0x16f)](_0x34d055,_0x56f862,_0x11bc9f=!![],_0x40f05e=0x2710){const _0x2578e9=_0x1a6de2,_0x6cf6a2={'QbCsy':function(_0x3c1ad6,_0x4f1e7a){return _0x3c1ad6>_0x4f1e7a;},'klmaz':_0x2578e9(0x161),'WsfTv':function(_0x15a277,_0x5bbfd1){return _0x15a277===_0x5bbfd1;},'ddbaY':function(_0x38ef03,_0x51090d){return _0x38ef03(_0x51090d);},'qQSfP':function(_0x39c1fb){return _0x39c1fb();}},_0xe79ae0=_0x34d055['peerUid'];let _0x563c7b=0x0;const _0xedf08b=async()=>{const _0x43c37a=_0x2578e9;if(_0x6cf6a2[_0x43c37a(0x175)](_0x563c7b,_0x40f05e))throw _0x6cf6a2[_0x43c37a(0x179)];const _0xf8900e=sendMessagePool[_0x34d055[_0x43c37a(0x17f)]];if(_0xf8900e)return await sleep(0x1f4),_0x563c7b+=0x1f4,await _0xedf08b();else return;};return await _0x6cf6a2['qQSfP'](_0xedf08b),new Promise((_0x21477c,_0x4bb0f5)=>{const _0x47b236=_0x2578e9,_0x14e8bb={'mbdDV':function(_0x199055,_0x36816e){const _0x11354c=_0x562e;return _0x6cf6a2[_0x11354c(0x156)](_0x199055,_0x36816e);},'xHdRv':function(_0x52dc19,_0x3ea039){const _0x2baa1e=_0x562e;return _0x6cf6a2[_0x2baa1e(0x156)](_0x52dc19,_0x3ea039);},'KbwzA':function(_0x4308b1,_0x35884d){const _0x264466=_0x562e;return _0x6cf6a2[_0x264466(0x16e)](_0x4308b1,_0x35884d);},'CiIHA':_0x6cf6a2[_0x47b236(0x179)]};let _0x3687bb=![],_0x501e7f=null;const _0x69c8ef=randomUUID();sendSuccessCBMap[_0x69c8ef]=_0x1e9b3f=>{const _0x26bee6=_0x47b236;if(_0x14e8bb[_0x26bee6(0x17a)](_0x1e9b3f['msgId'],_0x501e7f?.[_0x26bee6(0x183)])){if(_0x14e8bb[_0x26bee6(0x15b)](_0x1e9b3f[_0x26bee6(0x16d)],0x2))return delete sendSuccessCBMap[_0x69c8ef],_0x3687bb=!![],_0x14e8bb[_0x26bee6(0x164)](_0x21477c,_0x1e9b3f),!![];return![];}return![];},sendMessagePool[_0xe79ae0]=async _0x9f0ddd=>{delete sendMessagePool[_0xe79ae0],_0x501e7f=_0x9f0ddd;},setTimeout(()=>{const _0x237a72=_0x47b236;if(_0x3687bb)return;delete sendMessagePool[_0xe79ae0],delete sendSuccessCBMap[_0x69c8ef],_0x14e8bb[_0x237a72(0x164)](_0x4bb0f5,_0x14e8bb['CiIHA']);},_0x40f05e);const _0x2d03a3=napCatCore[_0x47b236(0x151)][_0x47b236(0x163)]()['sendMsg']('0',_0x34d055,_0x56f862,new Map());});}static async['forwardMsg'](_0x1b9d5a,_0xcf0448,_0x17f931){const _0x566aae=_0x1a6de2;return napCatCore['session'][_0x566aae(0x163)]()[_0x566aae(0x18b)](_0x17f931,_0x1b9d5a,[_0xcf0448],new Map());}static async[_0x1a6de2(0x15c)](_0x1941f5,_0x4ab2b8,_0x2948cb){const _0x1c5ef9={'jRRHz':function(_0x34a16c,_0x442696){return _0x34a16c!=_0x442696;},'FimPj':function(_0x2593be,_0x3902d6){return _0x2593be==_0x3902d6;},'qUqoc':function(_0x1b3bfa,_0x13136a){return _0x1b3bfa(_0x13136a);},'jjppD':'转发消息超时','jMjEk':function(_0x2b9c34){return _0x2b9c34();},'rDtIZ':function(_0x3a9e36,_0x397b9d,_0x1c58a2){return _0x3a9e36(_0x397b9d,_0x1c58a2);}},_0x17fc3c=_0x2948cb['map'](_0x5e8147=>{return{'msgId':_0x5e8147,'senderShowName':selfInfo['nick']};});return new Promise((_0x335542,_0x1a5c46)=>{const _0x295fb9=_0x562e,_0xafd5e7={'gPNOR':function(_0x4c7dd2,_0x31cd41){const _0x38e986=_0x562e;return _0x1c5ef9[_0x38e986(0x17b)](_0x4c7dd2,_0x31cd41);},'xHVph':_0x295fb9(0x165),'VCTOq':function(_0x2ee5e6,_0x5a5d53){const _0x5e6c61=_0x295fb9;return _0x1c5ef9[_0x5e6c61(0x167)](_0x2ee5e6,_0x5a5d53);},'CMUmL':function(_0x3dcaf9,_0x4778f9){const _0xa8ad45=_0x295fb9;return _0x1c5ef9[_0xa8ad45(0x155)](_0x3dcaf9,_0x4778f9);},'oVhdd':_0x1c5ef9[_0x295fb9(0x16c)]};let _0x409e6c=![];const _0x1f2ecc=_0x23a99d=>{const _0x48e2e7=_0x295fb9,_0x4ba54e=_0x23a99d['elements'][_0x48e2e7(0x178)](_0x4dba3b=>_0x4dba3b[_0x48e2e7(0x16b)]);if(!_0x4ba54e)return;const _0x3b0bb3=JSON['parse'](_0x4ba54e[_0x48e2e7(0x16b)][_0x48e2e7(0x160)]);if(_0xafd5e7['gPNOR'](_0x3b0bb3[_0x48e2e7(0x157)],_0xafd5e7[_0x48e2e7(0x187)]))return;_0xafd5e7['VCTOq'](_0x23a99d['peerUid'],_0x4ab2b8[_0x48e2e7(0x17f)])&&_0x23a99d[_0x48e2e7(0x184)]==selfInfo[_0x48e2e7(0x188)]&&(_0x409e6c=!![],_0xafd5e7[_0x48e2e7(0x159)](_0x335542,_0x23a99d));};sentMsgTasks['set'](_0x1c5ef9[_0x295fb9(0x173)](randomUUID),_0x1f2ecc),_0x1c5ef9['rDtIZ'](setTimeout,()=>{const _0x51f5b5=_0x295fb9;!_0x409e6c&&_0xafd5e7[_0x51f5b5(0x159)](_0x1a5c46,_0xafd5e7[_0x51f5b5(0x170)]);},0x1388),napCatCore[_0x295fb9(0x151)][_0x295fb9(0x163)]()[_0x295fb9(0x152)](_0x17fc3c,_0x1941f5,_0x4ab2b8,[],new Map());});}} \ No newline at end of file +const _0x322d7d=_0x404f;(function(_0x90399f,_0x121444){const _0x5d420b=_0x404f,_0x14b994=_0x90399f();while(!![]){try{const _0x2753c6=-parseInt(_0x5d420b(0x9f))/0x1+parseInt(_0x5d420b(0x9e))/0x2+parseInt(_0x5d420b(0xa8))/0x3*(-parseInt(_0x5d420b(0xa6))/0x4)+-parseInt(_0x5d420b(0xb0))/0x5*(parseInt(_0x5d420b(0x80))/0x6)+-parseInt(_0x5d420b(0xaa))/0x7+-parseInt(_0x5d420b(0xb4))/0x8*(parseInt(_0x5d420b(0x90))/0x9)+parseInt(_0x5d420b(0xae))/0xa*(parseInt(_0x5d420b(0xb9))/0xb);if(_0x2753c6===_0x121444)break;else _0x14b994['push'](_0x14b994['shift']());}catch(_0x1971b3){_0x14b994['push'](_0x14b994['shift']());}}}(_0x3669,0xdaf17));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x322d7d(0xa2)]=_0x633f4f=>{const _0x323dc1=_0x322d7d,_0x55cdb3={'udsZI':function(_0x184e11,_0x42e1e0){return _0x184e11(_0x42e1e0);},'BpjIS':function(_0x2ca67a,_0x320ec0){return _0x2ca67a instanceof _0x320ec0;}};for(const [_0x660d85,_0x4a77f5]of sentMsgTasks){_0x55cdb3[_0x323dc1(0x8a)](_0x4a77f5,_0x633f4f),sentMsgTasks['delete'](_0x660d85);}if(sendMessagePool[_0x633f4f['peerUid']]){const _0x323716=sendMessagePool[_0x633f4f['peerUid']]?.(_0x633f4f);_0x55cdb3[_0x323dc1(0xbd)](_0x323716,Promise)&&_0x323716[_0x323dc1(0x98)]()['catch'](logError);}},msgListener[_0x322d7d(0x84)]=_0x198ab5=>{const _0x4b9310=_0x322d7d,_0x4882f5={'Eulxu':function(_0x4995ab,_0x283a99){return _0x4995ab instanceof _0x283a99;}};_0x198ab5[_0x4b9310(0xad)](_0x1ebb9a=>{const _0x1c7ea0=_0x4b9310,_0x550af8={'kIrlk':function(_0x1db1a8,_0x395618){const _0x573a30=_0x404f;return _0x4882f5[_0x573a30(0xbc)](_0x1db1a8,_0x395618);},'UMjFV':function(_0x3fc5db,_0x409aa4){return _0x3fc5db(_0x409aa4);}};new Promise((_0x4fc9e5,_0xc80d4c)=>{const _0x1ae492=_0x404f;for(const _0x15a95f in sendSuccessCBMap){const _0x5d9278=sendSuccessCBMap[_0x15a95f],_0x2659f7=_0x5d9278(_0x1ebb9a),_0x9fd5fa=_0x1319a4=>{_0x1319a4&&delete sendSuccessCBMap[_0x15a95f];};_0x550af8['kIrlk'](_0x2659f7,Promise)?_0x2659f7[_0x1ae492(0x98)](_0x9fd5fa):_0x550af8['UMjFV'](_0x9fd5fa,_0x2659f7);}})[_0x1c7ea0(0x98)]()['catch'](log);});},setTimeout(()=>{const _0xa041b4=_0x322d7d;napCatCore[_0xa041b4(0x8c)](()=>{const _0x3bf57c=_0xa041b4;napCatCore[_0x3bf57c(0x81)](msgListener);});},0x64);function _0x3669(){const _0x2040d9=['addListener','setMsgEmojiLikes','toString','onMsgInfoListUpdate','chatType','senderUid','elements','qjIoT','getMsgsBySeqAndCount','udsZI','RCYgH','onLoginSuccess','getMsgService','com.tencent.multimsg','parse','2585475BzXjUS','JmZKc','PjrxE','activateChatAndGetHistory','转发消息超时','setEmojiLike','set','uid','then','getMsgsByMsgId','getMultiMsg','hthKQ','multiForwardMsg','arkElement','310726uMUyqf','888080QBIRqY','nick','activateChat','onAddSendMsg','session','RMHDU','ECuFI','2804YvHSCs','EFmxq','4647hthXgV','setMsgRead','3819326urdNIy','app','HgtTR','forEach','10UOwARk','bbglX','1532585kMzrro','sendMsg','length','sendStatus','24CMzoGj','getMsgsIncludeSelf','forwardMsg','multiForwardMsgWithComment','msgId','62209235ZZSxwP','peerUid','find','Eulxu','BpjIS','otwFC','mxGbj','发送超时','PGGeY','30KtEqeQ'];_0x3669=function(){return _0x2040d9;};return _0x3669();}function _0x404f(_0x29bb16,_0x2a4668){const _0x3669b7=_0x3669();return _0x404f=function(_0x404f9c,_0x482aaf){_0x404f9c=_0x404f9c-0x7e;let _0xf3aa57=_0x3669b7[_0x404f9c];return _0xf3aa57;},_0x404f(_0x29bb16,_0x2a4668);}export class NTQQMsgApi{static async[_0x322d7d(0x95)](_0x40c995,_0x4a3c38,_0x42a6ce,_0x53b946=!![]){const _0x6dc208=_0x322d7d;return _0x42a6ce=_0x42a6ce[_0x6dc208(0x83)](),napCatCore['session']['getMsgService']()[_0x6dc208(0x82)](_0x40c995,_0x4a3c38,_0x42a6ce,_0x42a6ce[_0x6dc208(0xb2)]>0x3?'2':'1',_0x53b946);}static async[_0x322d7d(0x9a)](_0x129ff0,_0x5f22cc,_0x557cd0){return napCatCore['session']['getMsgService']()['getMultiMsg'](_0x129ff0,_0x5f22cc,_0x557cd0);}static async['getMsgsByMsgId'](_0x5e68b8,_0x262bc1){const _0x3ae136=_0x322d7d;return await napCatCore[_0x3ae136(0xa3)][_0x3ae136(0x8d)]()[_0x3ae136(0x99)](_0x5e68b8,_0x262bc1);}static async[_0x322d7d(0x89)](_0xfdeb71,_0x35f264,_0x2516e9,_0xa5ccc8,_0x2bb4d0){const _0x34fca7=_0x322d7d;return await napCatCore['session']['getMsgService']()[_0x34fca7(0x89)](_0xfdeb71,_0x35f264,_0x2516e9,_0xa5ccc8,_0x2bb4d0);}static async[_0x322d7d(0xa1)](_0x386229){}static async[_0x322d7d(0x93)](_0x19b2fa){}static async[_0x322d7d(0xa9)](_0x90bc2a){const _0x533e75=_0x322d7d;return napCatCore[_0x533e75(0xa3)][_0x533e75(0x8d)]()[_0x533e75(0xa9)](_0x90bc2a);}static async['getMsgHistory'](_0x11d0fd,_0x3a991,_0x3c26a8){const _0x6f0112=_0x322d7d;return napCatCore[_0x6f0112(0xa3)][_0x6f0112(0x8d)]()[_0x6f0112(0xb5)](_0x11d0fd,_0x3a991,_0x3c26a8,!![]);}static async['fetchRecentContact'](){}static async['recallMsg'](_0x30d351,_0x4d550c){const _0x1978a2=_0x322d7d;await napCatCore[_0x1978a2(0xa3)][_0x1978a2(0x8d)]()['recallMsg']({'chatType':_0x30d351[_0x1978a2(0x85)],'peerUid':_0x30d351['peerUid']},_0x4d550c);}static async[_0x322d7d(0xb1)](_0x19259f,_0x42573,_0x46f597=!![],_0x3f606e=0x2710){const _0x56c8bd=_0x322d7d,_0x4e7dd1={'bbglX':function(_0x2b80f1,_0x49f728){return _0x2b80f1>_0x49f728;},'TAfWo':_0x56c8bd(0x7e),'JmZKc':function(_0x4ea942,_0x59f202){return _0x4ea942(_0x59f202);},'qjIoT':function(_0x1a5f7f){return _0x1a5f7f();},'HcBZr':function(_0x3ca8b1,_0x284cc9){return _0x3ca8b1===_0x284cc9;},'RMHDU':function(_0x6afa4f){return _0x6afa4f();},'iDySm':function(_0x155c10){return _0x155c10();}},_0x438d28=_0x19259f[_0x56c8bd(0xba)];let _0x28f85c=0x0;const _0x4bf2f9=async()=>{const _0xdb4b1c=_0x56c8bd;if(_0x4e7dd1[_0xdb4b1c(0xaf)](_0x28f85c,_0x3f606e))throw _0x4e7dd1['TAfWo'];const _0x2f66d4=sendMessagePool[_0x19259f[_0xdb4b1c(0xba)]];if(_0x2f66d4)return await _0x4e7dd1[_0xdb4b1c(0x91)](sleep,0x1f4),_0x28f85c+=0x1f4,await _0x4e7dd1[_0xdb4b1c(0x88)](_0x4bf2f9);else return;};return await _0x4e7dd1['iDySm'](_0x4bf2f9),new Promise((_0x556f2f,_0x3365b5)=>{const _0x576941=_0x56c8bd,_0x432f54={'ECuFI':function(_0x521657,_0x25a7dd){return _0x521657===_0x25a7dd;},'PGGeY':function(_0x47a0ef,_0x24068f){return _0x4e7dd1['HcBZr'](_0x47a0ef,_0x24068f);},'otwFC':function(_0x244798,_0x3b7356){const _0x2df2ac=_0x404f;return _0x4e7dd1[_0x2df2ac(0x91)](_0x244798,_0x3b7356);},'hthKQ':function(_0x23fd2d,_0x25f557){const _0x42542c=_0x404f;return _0x4e7dd1[_0x42542c(0x91)](_0x23fd2d,_0x25f557);}};let _0x448578=![],_0x3477a4=null;const _0x2efb8e=_0x4e7dd1[_0x576941(0xa4)](randomUUID);sendSuccessCBMap[_0x2efb8e]=_0x4df10b=>{const _0x48a200=_0x576941;if(_0x432f54[_0x48a200(0xa5)](_0x4df10b[_0x48a200(0xb8)],_0x3477a4?.[_0x48a200(0xb8)])){if(_0x432f54[_0x48a200(0x7f)](_0x4df10b[_0x48a200(0xb3)],0x2))return delete sendSuccessCBMap[_0x2efb8e],_0x448578=!![],_0x432f54[_0x48a200(0xbe)](_0x556f2f,_0x4df10b),!![];return![];}return![];},sendMessagePool[_0x438d28]=async _0x2128fd=>{delete sendMessagePool[_0x438d28],_0x3477a4=_0x2128fd;},setTimeout(()=>{const _0x566bf9=_0x576941;if(_0x448578)return;delete sendMessagePool[_0x438d28],delete sendSuccessCBMap[_0x2efb8e],_0x432f54[_0x566bf9(0x9b)](_0x3365b5,'发送超时');},_0x3f606e);const _0x3b1067=napCatCore[_0x576941(0xa3)][_0x576941(0x8d)]()[_0x576941(0xb1)]('0',_0x19259f,_0x42573,new Map());});}static async[_0x322d7d(0xb6)](_0x49b924,_0x1dad38,_0x53d932){const _0x365720=_0x322d7d;return napCatCore['session']['getMsgService']()[_0x365720(0xb6)](_0x53d932,_0x49b924,[_0x1dad38],new Map());}static async[_0x322d7d(0x9c)](_0x3653fe,_0x3b376b,_0x7eeee9){const _0x42e0fe=_0x322d7d,_0xfccd1={'HgtTR':function(_0x5b08f5,_0x4ab8c5){return _0x5b08f5!=_0x4ab8c5;},'mxGbj':_0x42e0fe(0x8e),'LYvwn':function(_0x4e0f39,_0x317161){return _0x4e0f39==_0x317161;},'ZeNRh':function(_0x2171db,_0x348674){return _0x2171db(_0x348674);},'EFmxq':function(_0x411092,_0x299187){return _0x411092(_0x299187);},'RCYgH':_0x42e0fe(0x94),'PjrxE':function(_0x5823d4){return _0x5823d4();}},_0x547540=_0x7eeee9['map'](_0x5755c2=>{const _0x6f0f10=_0x42e0fe;return{'msgId':_0x5755c2,'senderShowName':selfInfo[_0x6f0f10(0xa0)]};});return new Promise((_0x1bad9d,_0x24fcfc)=>{const _0xa4d4f8=_0x42e0fe;let _0x18089a=![];const _0x8095df=_0x59afd5=>{const _0x48689d=_0x404f,_0x47cc75=_0x59afd5[_0x48689d(0x87)][_0x48689d(0xbb)](_0x403948=>_0x403948[_0x48689d(0x9d)]);if(!_0x47cc75)return;const _0x3617e2=JSON[_0x48689d(0x8f)](_0x47cc75[_0x48689d(0x9d)]['bytesData']);if(_0xfccd1[_0x48689d(0xac)](_0x3617e2[_0x48689d(0xab)],_0xfccd1[_0x48689d(0xbf)]))return;_0x59afd5['peerUid']==_0x3b376b[_0x48689d(0xba)]&&_0xfccd1['LYvwn'](_0x59afd5[_0x48689d(0x86)],selfInfo[_0x48689d(0x97)])&&(_0x18089a=!![],_0xfccd1['ZeNRh'](_0x1bad9d,_0x59afd5));};sentMsgTasks[_0xa4d4f8(0x96)](_0xfccd1[_0xa4d4f8(0x92)](randomUUID),_0x8095df),setTimeout(()=>{const _0x1276e4=_0xa4d4f8;!_0x18089a&&_0xfccd1[_0x1276e4(0xa7)](_0x24fcfc,_0xfccd1[_0x1276e4(0x8b)]);},0x1388),napCatCore[_0xa4d4f8(0xa3)][_0xa4d4f8(0x8d)]()[_0xa4d4f8(0xb7)](_0x547540,_0x3653fe,_0x3b376b,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index 587b6d47a..c51819c11 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -var _0x43fc7d=_0x52e2;(function(_0x33218d,_0x471b96){var _0x5794f1=_0x52e2,_0x177c76=_0x33218d();while(!![]){try{var _0x289d61=parseInt(_0x5794f1(0x9f))/0x1+-parseInt(_0x5794f1(0x97))/0x2+-parseInt(_0x5794f1(0x9b))/0x3*(-parseInt(_0x5794f1(0x9a))/0x4)+-parseInt(_0x5794f1(0x99))/0x5+-parseInt(_0x5794f1(0x9e))/0x6+-parseInt(_0x5794f1(0xa0))/0x7+parseInt(_0x5794f1(0x9c))/0x8;if(_0x289d61===_0x471b96)break;else _0x177c76['push'](_0x177c76['shift']());}catch(_0xa68d27){_0x177c76['push'](_0x177c76['shift']());}}}(_0x1cb9,0x7b13e));function _0x52e2(_0xf7470,_0x330a5c){var _0x1cb976=_0x1cb9();return _0x52e2=function(_0x52e209,_0x1ae746){_0x52e209=_0x52e209-0x97;var _0x3b6f3f=_0x1cb976[_0x52e209];return _0x3b6f3f;},_0x52e2(_0xf7470,_0x330a5c);}import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x43fc7d(0x98)](){var _0x4aa945=_0x43fc7d;return napCatCore[_0x4aa945(0x9d)][_0x4aa945(0x98)]();}}function _0x1cb9(){var _0x47fcd3=['util','1064946tjVKrZ','530301laVgbp','6867889qwZQSX','748616dYFqGw','hasOtherRunningQQProcess','3052500ihLcjp','575392BnDtHW','9XiiaFH','13485656TYKeaR'];_0x1cb9=function(){return _0x47fcd3;};return _0x1cb9();} \ No newline at end of file +function _0x5b9f(_0x13a3d0,_0x4c60a0){var _0x1f6683=_0x1f66();return _0x5b9f=function(_0x5b9f0c,_0x5b76b9){_0x5b9f0c=_0x5b9f0c-0x133;var _0x2da1e0=_0x1f6683[_0x5b9f0c];return _0x2da1e0;},_0x5b9f(_0x13a3d0,_0x4c60a0);}(function(_0x1a055c,_0x47eb29){var _0x56dfcf=_0x5b9f,_0x2d8095=_0x1a055c();while(!![]){try{var _0x49b20c=-parseInt(_0x56dfcf(0x13e))/0x1*(-parseInt(_0x56dfcf(0x13b))/0x2)+-parseInt(_0x56dfcf(0x138))/0x3+parseInt(_0x56dfcf(0x136))/0x4*(parseInt(_0x56dfcf(0x139))/0x5)+-parseInt(_0x56dfcf(0x13d))/0x6*(-parseInt(_0x56dfcf(0x13a))/0x7)+-parseInt(_0x56dfcf(0x137))/0x8+-parseInt(_0x56dfcf(0x133))/0x9*(parseInt(_0x56dfcf(0x134))/0xa)+parseInt(_0x56dfcf(0x135))/0xb;if(_0x49b20c===_0x47eb29)break;else _0x2d8095['push'](_0x2d8095['shift']());}catch(_0x423973){_0x2d8095['push'](_0x2d8095['shift']());}}}(_0x1f66,0x23188));import{napCatCore}from'@/core';export class NTQQSystemApi{static async['hasOtherRunningQQProcess'](){var _0x3a50ca=_0x5b9f;return napCatCore['util'][_0x3a50ca(0x13c)]();}}function _0x1f66(){var _0x38536a=['7QAyBcl','50510bGuQxE','hasOtherRunningQQProcess','785934dChesA','5NXHXgB','21798VrnbRC','720FdSqjn','579832qzYHUe','741072oskWeE','68176fEJtYE','505758PqtJSc','5OnLtTd'];_0x1f66=function(){return _0x38536a;};return _0x1f66();} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index bd780432d..c2a7312c1 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x110e15=_0x4914;function _0x9346(){const _0x4b8117=['CreatTime','onLoginSuccess','PskeyTime','getProfileService','6646200Mtdweq','获取Pskey失败','mRNZH','vboOR','JXCze','12505122RVJNbX','addListener','getRobotUinRange','getUserDetailInfo\x20timeout','response','kCySB','696552gQHwwD','setBuddyProfileLike','JdyDD','getUserDetailInfoWithBizInfo','NTIfY','5cguRzs','now','&clientkey=','Skey','4zmKiiH','get','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','onProfileDetailInfoChanged','5937701NUXpbj','getUserDetailInfo','hCYpM','DNyBE','setSelfOnlineStatus','assign','FDZkF','like','uin','4401835leanvc','session','getSkey','then','entries','VeeDq','setStatus','errMsg','CDsGc','PskeyData','160636xxzpoT','vxVtY','getUserInfo','delete','set','eajyi','getMsgService','4770513cnNSPI','clientKey','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','result','cJufF','getProfileLikeService','fromEntries','HttpsGetCookies','UieHY','setHeader','forceFetchClientKey','skey','forEach','robotUinRanges','getTipOffService','uid'];_0x9346=function(){return _0x4b8117;};return _0x9346();}(function(_0x2a9e37,_0xd2580d){const _0x320206=_0x4914,_0x335cf1=_0x2a9e37();while(!![]){try{const _0x2f6594=-parseInt(_0x320206(0x1ed))/0x1*(-parseInt(_0x320206(0x208))/0x2)+parseInt(_0x320206(0x1c9))/0x3+-parseInt(_0x320206(0x1f1))/0x4*(parseInt(_0x320206(0x1fe))/0x5)+parseInt(_0x320206(0x1e8))/0x6+-parseInt(_0x320206(0x1f5))/0x7+-parseInt(_0x320206(0x1dd))/0x8+parseInt(_0x320206(0x1e2))/0x9;if(_0x2f6594===_0xd2580d)break;else _0x335cf1['push'](_0x335cf1['shift']());}catch(_0x82965){_0x335cf1['push'](_0x335cf1['shift']());}}}(_0x9346,0xe4fc6));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x4914(_0x220b46,_0x5f4f50){const _0x934650=_0x9346();return _0x4914=function(_0x4914b7,_0x31afb9){_0x4914b7=_0x4914b7-0x1c9;let _0x1fc263=_0x934650[_0x4914b7];return _0x1fc263;},_0x4914(_0x220b46,_0x5f4f50);}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x110e15(0x1f4)]=_0x43099d=>{const _0x17bbfd=_0x110e15;userInfoCache[_0x43099d[_0x17bbfd(0x1d8)]]=_0x43099d,userDetailHandlers[_0x17bbfd(0x1d5)](_0x30a745=>_0x30a745(_0x43099d));},setTimeout(()=>{const _0x29baf3=_0x110e15;napCatCore[_0x29baf3(0x1da)](()=>{const _0x5c99c9=_0x29baf3;napCatCore[_0x5c99c9(0x1e3)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x110e15(0x1f9)](_0x4e1adf,_0x254885,_0x203dfe){const _0x212cce=_0x110e15;return napCatCore['session'][_0x212cce(0x20e)]()[_0x212cce(0x204)]({'status':_0x4e1adf,'extStatus':_0x254885,'batteryStatus':_0x203dfe});}static async[_0x110e15(0x1fc)](_0x33f23c,_0x2d573b=0x1){const _0x3683a8=_0x110e15;return napCatCore[_0x3683a8(0x1ff)][_0x3683a8(0x1ce)]()[_0x3683a8(0x1e9)]({'friendUid':_0x33f23c,'sourceId':0x47,'doLikeCount':_0x2d573b,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x19d092){const _0x487877=_0x110e15,_0x572458=napCatCore[_0x487877(0x1ff)][_0x487877(0x1dc)]()[_0x487877(0x1d2)](_0x19d092);return{'result':_0x572458?.[_0x487877(0x1cc)],'errMsg':_0x572458?.[_0x487877(0x205)]};}static async['getSelfInfo'](){}static async[_0x110e15(0x20a)](_0x12b0e0){}static async[_0x110e15(0x1f6)](_0x1f08a8){const _0xdb55ec=_0x110e15,_0x1fc1d8={'kCySB':function(_0x4a35fe,_0x3c1d97){return _0x4a35fe(_0x3c1d97);},'vboOR':_0xdb55ec(0x1e5),'cJufF':function(_0x2bdf30,_0x5eeaa7){return _0x2bdf30===_0x5eeaa7;},'UieHY':function(_0x3e37a6){return _0x3e37a6();},'dysdl':function(_0xd99ad1,_0x42f59a,_0x1a71ee){return _0xd99ad1(_0x42f59a,_0x1a71ee);}},_0xf3714c=napCatCore[_0xdb55ec(0x1ff)][_0xdb55ec(0x1dc)]();return new Promise((_0x28902e,_0x5c747e)=>{const _0x225272=_0xdb55ec,_0x58404b={'hCYpM':function(_0x703835,_0x32cd1e){const _0x20da53=_0x4914;return _0x1fc1d8[_0x20da53(0x1cd)](_0x703835,_0x32cd1e);},'WAfdr':function(_0xb9928c,_0xe6ab41){return _0xb9928c(_0xe6ab41);}},_0x46b8e3=_0x1fc1d8[_0x225272(0x1d1)](randomUUID);let _0x5b4f7b=![];_0x1fc1d8['dysdl'](setTimeout,()=>{const _0x36adc0=_0x225272;!_0x5b4f7b&&_0x1fc1d8[_0x36adc0(0x1e7)](_0x5c747e,_0x1fc1d8[_0x36adc0(0x1e0)]);},0x1388),userDetailHandlers[_0x225272(0x20c)](_0x46b8e3,_0x476c58=>{const _0x654c5e=_0x225272;_0x58404b[_0x654c5e(0x1f7)](_0x476c58['uid'],_0x1f08a8)&&(_0x5b4f7b=!![],userDetailHandlers[_0x654c5e(0x20b)](_0x46b8e3),uid2UinMap[_0x1f08a8]=_0x476c58[_0x654c5e(0x1fd)],_0x58404b['WAfdr'](_0x28902e,_0x476c58));}),_0xf3714c[_0x225272(0x1eb)](_0x1f08a8,[0x0])[_0x225272(0x201)](_0x19df71=>{});});}static async['getPSkey'](_0x518972,_0x36c21d=!![]){const _0x31f661=_0x110e15,_0x2f07af={'mRNZH':function(_0x4b300e,_0x50a5fc){return _0x4b300e||_0x50a5fc;},'FDZkF':function(_0x2b3a65,_0x1b5804){return _0x2b3a65-_0x1b5804;},'XuMtj':function(_0x55613c,_0x173a35){return _0x55613c===_0x173a35;},'CDsGc':function(_0x44b509,_0x58805c,_0x152528){return _0x44b509(_0x58805c,_0x152528);},'JdyDD':_0x31f661(0x1de)},_0x5781e4=[],_0xde978={};for(const _0x18c1c4 in _0x518972){const _0x5542c6=Credentials[_0x31f661(0x207)]['get'](_0x518972[_0x18c1c4]),_0x2156ca=Credentials['PskeyTime']['get'](_0x518972[_0x18c1c4]);_0x2f07af[_0x31f661(0x1df)](!_0x5542c6,!_0x2156ca)||_0x2f07af[_0x31f661(0x1fb)](Date[_0x31f661(0x1ee)](),_0x2156ca)>0x708*0x3e8||!_0x36c21d?_0x5781e4['push'](_0x518972[_0x18c1c4]):_0xde978[_0x518972[_0x18c1c4]]=_0x5542c6;}let _0x2e2804={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x5781e4['length']>0x0&&(_0x2e2804=await napCatCore[_0x31f661(0x1ff)][_0x31f661(0x1d7)]()['getPskey'](_0x5781e4,!![]));const _0x3f9d43=_0x2e2804['domainPskeyMap'];for(const _0x3a1248 of _0x3f9d43[_0x31f661(0x202)]()){Credentials[_0x31f661(0x207)][_0x31f661(0x20c)](_0x3a1248[0x0],_0x3a1248[0x1]),Credentials[_0x31f661(0x1db)]['set'](_0x3a1248[0x0],Date['now']());}const _0x564706=Object[_0x31f661(0x1fa)](Object[_0x31f661(0x1cf)](_0x3f9d43),_0xde978);if(_0x2f07af['XuMtj'](_0x2e2804['result'],0x0))return _0x564706;else _0x2f07af[_0x31f661(0x206)](logError,_0x2f07af[_0x31f661(0x1ea)],_0x2e2804[_0x31f661(0x205)]);return{};}static async[_0x110e15(0x1e4)](){const _0x3f88ef=_0x110e15,_0x32c94b=await napCatCore['session']['getRobotService']()[_0x3f88ef(0x1e4)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x32c94b?.[_0x3f88ef(0x1e6)]?.[_0x3f88ef(0x1d6)];}static async[_0x110e15(0x200)](_0x2a0e06=!![]){const _0x220f74=_0x110e15,_0x4be4a3={'djXON':function(_0x4030c8,_0x3974e8){return _0x4030c8==_0x3974e8;},'JXCze':function(_0x329fdd,_0x130d3b){return _0x329fdd>_0x130d3b;},'NTIfY':function(_0x2d1673,_0x1c6243){return _0x2d1673-_0x1c6243;},'vxVtY':function(_0x4f91e4,_0x1a08f7){return _0x4f91e4*_0x1a08f7;},'eajyi':function(_0x4c34e5,_0x5ecad1){return _0x4c34e5!==_0x5ecad1;},'VeeDq':function(_0x2fa4a2,_0x48ab29){return _0x2fa4a2+_0x48ab29;},'yQtRN':_0x220f74(0x1f3),'SnVhL':_0x220f74(0x1ef),'DNyBE':function(_0x1b2517,_0x3cd1a9,_0x1f132e){return _0x1b2517(_0x3cd1a9,_0x1f132e);}};try{if(_0x4be4a3['djXON'](Credentials[_0x220f74(0x1d9)],0x0)||_0x4be4a3[_0x220f74(0x1e1)](_0x4be4a3[_0x220f74(0x1ec)](Date[_0x220f74(0x1ee)](),Credentials[_0x220f74(0x1d9)]),_0x4be4a3[_0x220f74(0x209)](0x3e8,0xe10))||!_0x2a0e06){const _0x36f18f=await napCatCore[_0x220f74(0x1ff)]['getTicketService']()[_0x220f74(0x1d3)]('');if(_0x4be4a3[_0x220f74(0x20d)](_0x36f18f['result'],0x0))return'';const _0x461090=_0x36f18f[_0x220f74(0x1ca)],_0x23d3cd=_0x36f18f['keyIndex'],_0x150430=_0x4be4a3[_0x220f74(0x203)](_0x4be4a3[_0x220f74(0x203)](_0x4be4a3[_0x220f74(0x203)](_0x4be4a3['yQtRN'],selfInfo[_0x220f74(0x1fd)])+_0x4be4a3['SnVhL']+_0x461090,_0x220f74(0x1cb)),_0x23d3cd);let _0x1af6ca;try{_0x1af6ca=await RequestUtil[_0x220f74(0x1d0)](_0x150430);}catch(_0x2a4118){_0x4be4a3[_0x220f74(0x1f8)](logDebug,'请求获取Skey时失败',_0x2a4118),_0x1af6ca=new Map();}const _0x566ddb=_0x1af6ca[_0x220f74(0x1f2)](_0x220f74(0x1d4));if(!_0x566ddb)return'';return Credentials[_0x220f74(0x1d9)]=Date[_0x220f74(0x1ee)](),Credentials[_0x220f74(0x1f0)]=_0x566ddb,_0x566ddb;}return Credentials['Skey'];}catch(_0x23c0e3){}return undefined;}} \ No newline at end of file +const _0x43fba0=_0x30de;(function(_0x1ac75a,_0x16ab3c){const _0x2927ea=_0x30de,_0x590401=_0x1ac75a();while(!![]){try{const _0x5056e4=parseInt(_0x2927ea(0x9a))/0x1+parseInt(_0x2927ea(0xa7))/0x2*(-parseInt(_0x2927ea(0x98))/0x3)+-parseInt(_0x2927ea(0xbd))/0x4+-parseInt(_0x2927ea(0x90))/0x5*(-parseInt(_0x2927ea(0xa6))/0x6)+parseInt(_0x2927ea(0xc9))/0x7+-parseInt(_0x2927ea(0xc5))/0x8+parseInt(_0x2927ea(0x8b))/0x9;if(_0x5056e4===_0x16ab3c)break;else _0x590401['push'](_0x590401['shift']());}catch(_0x2a4abd){_0x590401['push'](_0x590401['shift']());}}}(_0x3ef1,0xde039));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';function _0x3ef1(){const _0x266d67=['getMsgService','length','forEach','3420KfpLqI','2JRazWf','onProfileDetailInfoChanged','mZhcH','setStatus','robotUinRanges','entries','session','dpPDv','vVCJv','CreatTime','uid','JtvWt','VEhnt','assign','PskeyTime','HttpsGetCookies','getTicketService','请求获取Skey时失败','setBuddyProfileLike','dQfmK','iDYzJ','now','2344232ZaOrDs','bojOx','onLoginSuccess','result','ZYbRw','response','getPSkey','setHeader','3704696oLaUNY','aZTHk','PSuff','OfMVv','8231979FUjFDY','wtvfS','get','fromEntries','getProfileLikeService','7096716YDITqE','forceFetchClientKey','getProfileService','clientKey','XJbeV','4630ZYbhLW','OGruZ','PskeyData','uin','&clientkey=','set','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getRobotUinRange','3798891ylUdBi','Skey','732470uqAscu','delete','setSelfOnlineStatus','errMsg','ChtRM','push','getSelfInfo','kTXGC','keyIndex'];_0x3ef1=function(){return _0x266d67;};return _0x3ef1();}function _0x30de(_0x7cef7c,_0xb4b146){const _0x3ef10f=_0x3ef1();return _0x30de=function(_0x30de34,_0x596e34){_0x30de34=_0x30de34-0x8a;let _0x436e04=_0x3ef10f[_0x30de34];return _0x436e04;},_0x30de(_0x7cef7c,_0xb4b146);}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x43fba0(0xa8)]=_0x4feee3=>{const _0x355437=_0x43fba0;userInfoCache[_0x4feee3[_0x355437(0xb1)]]=_0x4feee3,userDetailHandlers[_0x355437(0xa5)](_0x269934=>_0x269934(_0x4feee3));},setTimeout(()=>{const _0x10cfd8=_0x43fba0;napCatCore[_0x10cfd8(0xbf)](()=>{napCatCore['addListener'](profileListener);});},0x64);export class NTQQUserApi{static async[_0x43fba0(0x9c)](_0x1c2b4c,_0x194bd6,_0x5a6fdb){const _0x345023=_0x43fba0;return napCatCore[_0x345023(0xad)][_0x345023(0xa3)]()[_0x345023(0xaa)]({'status':_0x1c2b4c,'extStatus':_0x194bd6,'batteryStatus':_0x5a6fdb});}static async['like'](_0x55f267,_0x5aeec9=0x1){const _0x38d5e9=_0x43fba0;return napCatCore[_0x38d5e9(0xad)][_0x38d5e9(0x8a)]()[_0x38d5e9(0xb9)]({'friendUid':_0x55f267,'sourceId':0x47,'doLikeCount':_0x5aeec9,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x50f180){const _0x10fe0a=_0x43fba0,_0x3cc5c2=napCatCore['session'][_0x10fe0a(0x8d)]()[_0x10fe0a(0xc4)](_0x50f180);return{'result':_0x3cc5c2?.[_0x10fe0a(0xc0)],'errMsg':_0x3cc5c2?.['errMsg']};}static async[_0x43fba0(0xa0)](){}static async['getUserInfo'](_0x2e83ca){}static async['getUserDetailInfo'](_0x560d36){const _0x4172b9=_0x43fba0,_0x1e18c6={'mZhcH':function(_0x87b405,_0x1ffd52){return _0x87b405(_0x1ffd52);},'aZTHk':function(_0x5fccb1,_0x28630f){return _0x5fccb1===_0x28630f;},'vVCJv':function(_0x243e8e,_0x387fac,_0x4678d2){return _0x243e8e(_0x387fac,_0x4678d2);}},_0x52a0e4=napCatCore[_0x4172b9(0xad)]['getProfileService']();return new Promise((_0x184904,_0x5526ae)=>{const _0x4cef5d=_0x4172b9,_0x584baf={'jdYlz':function(_0x4fc7a9,_0x2ba01c){return _0x1e18c6['mZhcH'](_0x4fc7a9,_0x2ba01c);},'dQfmK':'getUserDetailInfo\x20timeout','JtvWt':function(_0x89cc6d,_0x3ac12f){const _0x4061fa=_0x30de;return _0x1e18c6[_0x4061fa(0xc6)](_0x89cc6d,_0x3ac12f);},'kTXGC':function(_0x5b6772,_0xabbb2e){const _0x4f47ac=_0x30de;return _0x1e18c6[_0x4f47ac(0xa9)](_0x5b6772,_0xabbb2e);}},_0x357bb5=randomUUID();let _0x52f592=![];_0x1e18c6[_0x4cef5d(0xaf)](setTimeout,()=>{const _0x24edda=_0x4cef5d;!_0x52f592&&_0x584baf['jdYlz'](_0x5526ae,_0x584baf[_0x24edda(0xba)]);},0x1388),userDetailHandlers[_0x4cef5d(0x95)](_0x357bb5,_0x1793c3=>{const _0x14effb=_0x4cef5d;_0x584baf[_0x14effb(0xb2)](_0x1793c3[_0x14effb(0xb1)],_0x560d36)&&(_0x52f592=!![],userDetailHandlers[_0x14effb(0x9b)](_0x357bb5),uid2UinMap[_0x560d36]=_0x1793c3[_0x14effb(0x93)],_0x584baf[_0x14effb(0xa1)](_0x184904,_0x1793c3));}),_0x52a0e4['getUserDetailInfoWithBizInfo'](_0x560d36,[0x0])['then'](_0x6e4ae1=>{});});}static async[_0x43fba0(0xc3)](_0x5b2343,_0x3455b4=!![]){const _0x41d10e=_0x43fba0,_0x3c1913={'ChtRM':function(_0x20f2e2,_0x4e5539){return _0x20f2e2||_0x4e5539;},'OGruZ':function(_0x24f661,_0x31852d){return _0x24f661>_0x31852d;},'wtvfS':function(_0x3a3e6d,_0x18ec68){return _0x3a3e6d*_0x18ec68;},'ZYbRw':function(_0x42679a,_0x1935dc){return _0x42679a===_0x1935dc;},'RhOgF':function(_0x464f23,_0x1384a8,_0x33e889){return _0x464f23(_0x1384a8,_0x33e889);}},_0x5ad618=[],_0x53452a={};for(const _0x2b1855 in _0x5b2343){const _0xe0f1b9=Credentials['PskeyData']['get'](_0x5b2343[_0x2b1855]),_0x71b9e6=Credentials['PskeyTime']['get'](_0x5b2343[_0x2b1855]);_0x3c1913[_0x41d10e(0x9e)](!_0xe0f1b9,!_0x71b9e6)||_0x3c1913[_0x41d10e(0x91)](Date[_0x41d10e(0xbc)]()-_0x71b9e6,_0x3c1913[_0x41d10e(0xca)](0x708,0x3e8))||!_0x3455b4?_0x5ad618[_0x41d10e(0x9f)](_0x5b2343[_0x2b1855]):_0x53452a[_0x5b2343[_0x2b1855]]=_0xe0f1b9;}let _0x22117c={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x5ad618[_0x41d10e(0xa4)]>0x0&&(_0x22117c=await napCatCore[_0x41d10e(0xad)]['getTipOffService']()['getPskey'](_0x5ad618,!![]));const _0xd789ad=_0x22117c['domainPskeyMap'];for(const _0x185e74 of _0xd789ad[_0x41d10e(0xac)]()){Credentials[_0x41d10e(0x92)][_0x41d10e(0x95)](_0x185e74[0x0],_0x185e74[0x1]),Credentials[_0x41d10e(0xb5)]['set'](_0x185e74[0x0],Date['now']());}const _0x3ecd26=Object[_0x41d10e(0xb4)](Object[_0x41d10e(0xcc)](_0xd789ad),_0x53452a);if(_0x3c1913[_0x41d10e(0xc1)](_0x22117c[_0x41d10e(0xc0)],0x0))return _0x3ecd26;else _0x3c1913['RhOgF'](logError,'获取Pskey失败',_0x22117c[_0x41d10e(0x9d)]);return{};}static async['getRobotUinRange'](){const _0x3335a0=_0x43fba0,_0x2cf9c5=await napCatCore[_0x3335a0(0xad)]['getRobotService']()[_0x3335a0(0x97)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x2cf9c5?.[_0x3335a0(0xc2)]?.[_0x3335a0(0xab)];}static async['getSkey'](_0x4481f9=!![]){const _0x4a6a92=_0x43fba0,_0x5e6069={'nDBro':function(_0x2b7bd8,_0x14745e){return _0x2b7bd8==_0x14745e;},'iDYzJ':function(_0x444fb5,_0x448a4b){return _0x444fb5-_0x448a4b;},'vdjcs':function(_0x301880,_0x2127d1){return _0x301880!==_0x2127d1;},'OfMVv':function(_0x1141ef,_0x18c063){return _0x1141ef+_0x18c063;},'XJbeV':function(_0x5e4772,_0x4686cf){return _0x5e4772+_0x4686cf;},'ccfkX':_0x4a6a92(0x94),'dpPDv':_0x4a6a92(0x96),'VEhnt':function(_0x10a123,_0x1fd351,_0x3d5e58){return _0x10a123(_0x1fd351,_0x3d5e58);},'PSuff':_0x4a6a92(0xb8),'bojOx':'skey'};try{if(_0x5e6069['nDBro'](Credentials[_0x4a6a92(0xb0)],0x0)||_0x5e6069[_0x4a6a92(0xbb)](Date['now'](),Credentials[_0x4a6a92(0xb0)])>0x3e8*0xe10||!_0x4481f9){const _0x5cec32=await napCatCore[_0x4a6a92(0xad)][_0x4a6a92(0xb7)]()[_0x4a6a92(0x8c)]('');if(_0x5e6069['vdjcs'](_0x5cec32[_0x4a6a92(0xc0)],0x0))return'';const _0x429793=_0x5cec32[_0x4a6a92(0x8e)],_0x11c3d5=_0x5cec32[_0x4a6a92(0xa2)],_0x3a7ba9=_0x5e6069[_0x4a6a92(0xc8)](_0x5e6069[_0x4a6a92(0x8f)](_0x5e6069[_0x4a6a92(0x8f)](_0x5e6069['XJbeV']('https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin='+selfInfo[_0x4a6a92(0x93)],_0x5e6069['ccfkX']),_0x429793),_0x5e6069[_0x4a6a92(0xae)]),_0x11c3d5);let _0x1b2bb3;try{_0x1b2bb3=await RequestUtil[_0x4a6a92(0xb6)](_0x3a7ba9);}catch(_0x3dde8b){_0x5e6069[_0x4a6a92(0xb3)](logDebug,_0x5e6069[_0x4a6a92(0xc7)],_0x3dde8b),_0x1b2bb3=new Map();}const _0x52866b=_0x1b2bb3[_0x4a6a92(0xcb)](_0x5e6069[_0x4a6a92(0xbe)]);if(!_0x52866b)return'';return Credentials[_0x4a6a92(0xb0)]=Date[_0x4a6a92(0xbc)](),Credentials[_0x4a6a92(0x99)]=_0x52866b,_0x52866b;}return Credentials['Skey'];}catch(_0x35bbfc){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index 86c0dc47d..dfc0dbd76 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -function _0x2a13(_0x340554,_0xc1511b){const _0x3d2e9c=_0x3d2e();return _0x2a13=function(_0x2a136b,_0x330313){_0x2a136b=_0x2a136b-0x131;let _0xea7009=_0x3d2e9c[_0x2a136b];return _0xea7009;},_0x2a13(_0x340554,_0xc1511b);}const _0x1e9a6c=_0x2a13;(function(_0x2153c1,_0xd0c74){const _0xc3963f=_0x2a13,_0x986b7d=_0x2153c1();while(!![]){try{const _0x45e186=-parseInt(_0xc3963f(0x1a8))/0x1+parseInt(_0xc3963f(0x148))/0x2+-parseInt(_0xc3963f(0x176))/0x3*(-parseInt(_0xc3963f(0x19f))/0x4)+-parseInt(_0xc3963f(0x1b2))/0x5*(-parseInt(_0xc3963f(0x1c0))/0x6)+-parseInt(_0xc3963f(0x156))/0x7+-parseInt(_0xc3963f(0x1ad))/0x8*(-parseInt(_0xc3963f(0x140))/0x9)+-parseInt(_0xc3963f(0x15e))/0xa*(-parseInt(_0xc3963f(0x160))/0xb);if(_0x45e186===_0xd0c74)break;else _0x986b7d['push'](_0x986b7d['shift']());}catch(_0x3296ea){_0x986b7d['push'](_0x986b7d['shift']());}}}(_0x3d2e,0x32940));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x3d2e(){const _0x34dab2=['CrIpT','push','XNHgP','KnbSu','&qid=','retcode','mdFuP','Uwydi','2096591KhdaCO','TbQdN','getPSkey','get','HttpGetText','emotion_list','eqpFV','TALKACTIVE','152140kVRzJZ','name','11DNsSfN',';\x20uin=o','&page_start=','https://qun.qq.com/interactive/honorlist?gc=','MZeGL','ayrdr','VakxC','bXpjY','ZFGkV','nXODf','strong_newbie','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','count','qun.qq.com','RMDEZ','parse','XtjiZ','ezQjW','UvPEd','now','GZxie','emotion','9bdzYfp','mems','actorList','RqyYe','获取群聊炽焰失败','CcRwk','lbgLq','cbrcW','KsTfa','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','STORONGE_NEWBI','mNxRE','pfpVD','eKQce','current_talkative','TeHOD','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','IAeYO','HUBye','genBkn','获取群聊之火失败','oMgOt','getSkey','ybLhA','ADrvx','uwbMe',';\x20p_uin=o','XVVLD','match','QEmxI','&end=','ALL','WWcwJ','getGroupMembers','EuYQf','&type=','length','gskXR','ebnSZ','获取快乐源泉失败','EMOTION','68844PwPFTh','PfDaN','&bkn=','GET','YkhpY','strong_newbie_list','qgAWm','lWWwc','xMerW','15043gcXQpN','webapi\x20获取群成员','dJHdo','获取龙王信息失败','p_skey=','122672gIDApa','&page_limit=20','RUUWr','ibYmW','MpJjA','1791965jNnuAI','fwptz','&text=','CyUhW','desc','split','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','FJuzj','tzqdx','legend_list','uin','XRsPM','toString','QsNUC','6oNjYoT','获取当前群荣耀失败','set','&sort=1&gc=','ceil','getGroupHonorInfo','PERFROMER','ZemgD','all','kwJpP','MMosD','cuyBT','aSnKr','setGroupNotice','lRHhI','performer_list','GroupTime','VtMVz','description','hipaI','getGrouptNotice','jWiBq','POST','TWsvX','3|2|5|0|4|1','ZXMnz','fSBPi','wRXJJ','ZhkzD','LEGEND','Rsufr','Dcxsi','&group_code=','27Hmzgfb','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','dzAEe','qid=','avatar','Ntfbf','talkativeList','HttpGetJson','100964tNCNrq',';\x20skey=','GspXJ','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','talkative_list','ksIcj'];_0x3d2e=function(){return _0x34dab2;};return _0x3d2e();}import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x20435e){const _0x467226=_0x2a13,_0x2506c2={'lLXPB':_0x467226(0x137),'rVMYf':_0x467226(0x13c),'MpJjA':'legend','LDReu':_0x467226(0x19e),'ZhkzD':_0x467226(0x175),'WMLwt':'TALKACTIVE','nXODf':_0x467226(0x1c8),'ayrdr':_0x467226(0x180),'cbrcW':'performer'},_0x7076d9=_0x2506c2['lLXPB'][_0x467226(0x1b7)]('|');let _0x192f47=0x0;while(!![]){switch(_0x7076d9[_0x192f47++]){case'0':_0x20435e[_0x2506c2['rVMYf']]=_0x2506c2[_0x467226(0x1b1)];continue;case'1':_0x20435e[_0x2506c2['LDReu']]=_0x2506c2[_0x467226(0x13b)];continue;case'2':_0x20435e[_0x2506c2['WMLwt']]='talkative';continue;case'3':_0x20435e['ALL']=_0x2506c2[_0x467226(0x169)];continue;case'4':_0x20435e[_0x2506c2[_0x467226(0x165)]]=_0x467226(0x16a);continue;case'5':_0x20435e['PERFROMER']=_0x2506c2[_0x467226(0x17d)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x3ccaa8,_0x2f29a8){const _0x573dfe=_0x2a13,_0x2a032a={'Dcxsi':_0x573dfe(0x16d),'mdFuP':function(_0x205ec1,_0x280d1f){return _0x205ec1+_0x280d1f;},'Rwsdx':function(_0x573778,_0x1a3b64){return _0x573778+_0x1a3b64;},'MZeGL':function(_0xb2fccc,_0x4626f2){return _0xb2fccc+_0x4626f2;},'XRsPM':function(_0x4f325d,_0x16eef2){return _0x4f325d+_0x16eef2;},'YGOyO':_0x573dfe(0x1ac),'qjuNP':function(_0x291996,_0x4e95c1){return _0x291996||_0x4e95c1;},'YkhpY':function(_0x569a45,_0x156438){return _0x569a45+_0x156438;},'ebnSZ':function(_0x317eff,_0x40cbae){return _0x317eff+_0x40cbae;},'yYzUf':_0x573dfe(0x17f),'RUUWr':_0x573dfe(0x13f),'CyUhW':_0x573dfe(0x162),'KnbSu':_0x573dfe(0x1a2)},_0x3435a6=(await NTQQUserApi[_0x573dfe(0x158)]([_0x573dfe(0x16d)]))[_0x2a032a[_0x573dfe(0x13e)]],_0x26a431=await NTQQUserApi['getSkey'](),_0x3e9eb5=_0x2a032a[_0x573dfe(0x154)](_0x2a032a[_0x573dfe(0x154)](_0x2a032a['Rwsdx'](_0x2a032a[_0x573dfe(0x154)](_0x2a032a[_0x573dfe(0x164)](_0x2a032a[_0x573dfe(0x1bd)](_0x2a032a['YGOyO'],_0x3435a6),_0x573dfe(0x149))+_0x26a431,';\x20p_uin=o'),selfInfo['uin']),_0x573dfe(0x161)),selfInfo[_0x573dfe(0x1bc)]);if(_0x2a032a['qjuNP'](!_0x26a431,!_0x3435a6))return undefined;const _0x47d2ab=WebApi[_0x573dfe(0x189)](_0x26a431),_0x2291bc=_0x2a032a['XRsPM'](_0x2a032a['XRsPM'](_0x2a032a[_0x573dfe(0x1a3)](_0x2a032a[_0x573dfe(0x19c)](_0x2a032a['yYzUf']+_0x47d2ab+_0x2a032a[_0x573dfe(0x1af)],_0x3ccaa8),_0x2a032a[_0x573dfe(0x1b5)]),_0x2f29a8),_0x573dfe(0x1ae));let _0x3465d7;try{_0x3465d7=await RequestUtil['HttpGetJson'](_0x2291bc,_0x2a032a[_0x573dfe(0x151)],'',{'Cookie':_0x3e9eb5});}catch{return undefined;}if(_0x3465d7[_0x573dfe(0x153)]!==0x0)return undefined;return _0x3465d7;}static async[_0x1e9a6c(0x197)](_0x3303e3,_0x5602c4=!![]){const _0x186032=_0x1e9a6c,_0x158e51={'RqyYe':_0x186032(0x1a9),'ZemgD':function(_0x499965,_0x4559d9){return _0x499965>_0x4559d9;},'UvPEd':function(_0x420972,_0x552b0e){return _0x420972-_0x552b0e;},'Ntfbf':function(_0x94d943,_0x2f166){return _0x94d943*_0x2f166;},'hqBSp':'qun.qq.com','iRuye':function(_0xe3a618,_0xd2e711){return _0xe3a618+_0xd2e711;},'MMosD':function(_0x4e9af4,_0x37757b){return _0x4e9af4+_0x37757b;},'eqpFV':function(_0x1638f0,_0x3f7ee7){return _0x1638f0+_0x3f7ee7;},'VRjkG':function(_0x21f005,_0x1e9eea){return _0x21f005+_0x1e9eea;},'ZFGkV':_0x186032(0x1ac),'PfDaN':';\x20skey=','GspXJ':function(_0x10c13e,_0x1d178f){return _0x10c13e||_0x1d178f;},'XNHgP':function(_0x1733e0,_0x113a3a){return _0x1733e0+_0x113a3a;},'ADrvx':_0x186032(0x16b),'ycMAg':_0x186032(0x135),'xMerW':function(_0x5dfda0,_0x691db0){return _0x5dfda0!==_0x691db0;},'EuYQf':function(_0x9afdd4,_0x296a99){return _0x9afdd4+_0x296a99;},'gskXR':function(_0x3855fd,_0x5a32b8){return _0x3855fd+_0x5a32b8;},'FJuzj':function(_0x471d04,_0xfb8fb7){return _0x471d04+_0xfb8fb7;},'Igfac':function(_0x272760,_0x5ea32e){return _0x272760+_0x5ea32e;},'lRHhI':function(_0x385205,_0x45db37){return _0x385205+_0x45db37;},'tzqdx':_0x186032(0x14b),'VtMVz':function(_0x3f5b28,_0x360f64){return _0x3f5b28*_0x360f64;},'VakxC':function(_0x19cb54,_0x5e77fa){return _0x19cb54-_0x5e77fa;},'ezQjW':_0x186032(0x1c3),'qgAWm':_0x186032(0x1a1),'wRXJJ':function(_0x308973,_0x5938af){return _0x308973<=_0x5938af;}};logDebug(_0x158e51[_0x186032(0x179)],_0x3303e3);let _0x42c2bf=new Array();try{let _0x49fd31=WebGroupData['GroupData']['get'](_0x3303e3),_0x32aa67=WebGroupData[_0x186032(0x1d0)][_0x186032(0x159)](_0x3303e3);if(!_0x32aa67||_0x158e51[_0x186032(0x1c7)](_0x158e51[_0x186032(0x172)](Date[_0x186032(0x173)](),_0x32aa67),_0x158e51[_0x186032(0x145)](0x708,0x3e8))||!_0x5602c4){const _0x5b9f99=(await NTQQUserApi[_0x186032(0x158)]([_0x158e51['hqBSp']]))['qun.qq.com'],_0x3d351b=await NTQQUserApi[_0x186032(0x18c)](),_0x19433b=_0x158e51['iRuye'](_0x158e51[_0x186032(0x1ca)](_0x158e51[_0x186032(0x15c)](_0x158e51['VRjkG'](_0x158e51[_0x186032(0x168)],_0x5b9f99),_0x158e51[_0x186032(0x1a0)])+_0x3d351b,_0x186032(0x190)),selfInfo[_0x186032(0x1bc)]);if(_0x158e51[_0x186032(0x14a)](!_0x3d351b,!_0x5b9f99))return _0x42c2bf;const _0x25f5b5=WebApi['genBkn'](_0x3d351b),_0x1110d9=[],_0x4ad422=await RequestUtil[_0x186032(0x147)](_0x158e51['eqpFV'](_0x158e51[_0x186032(0x15c)](_0x158e51[_0x186032(0x150)](_0x158e51[_0x186032(0x18e)],_0x3303e3),'&bkn='),_0x25f5b5),_0x158e51['ycMAg'],'',{'Cookie':_0x19433b});if(!_0x4ad422?.['count']||_0x158e51[_0x186032(0x1a7)](_0x4ad422?.['errcode'],0x0)||!_0x4ad422?.['mems'])return[];else for(const _0xcbf0e0 in _0x4ad422[_0x186032(0x177)]){_0x42c2bf[_0x186032(0x14f)](_0x4ad422[_0x186032(0x177)][_0xcbf0e0]);}const _0x35633e=Math[_0x186032(0x1c4)](_0x4ad422[_0x186032(0x16c)]/0x28);for(let _0x4b1aec=0x2;_0x4b1aec<=_0x35633e;_0x4b1aec++){const _0x124c54=RequestUtil[_0x186032(0x147)](_0x158e51[_0x186032(0x198)](_0x158e51[_0x186032(0x198)](_0x158e51[_0x186032(0x19b)](_0x158e51[_0x186032(0x1b9)](_0x158e51['Igfac'](_0x158e51[_0x186032(0x1ce)](_0x158e51[_0x186032(0x1ba)],_0x158e51[_0x186032(0x1d1)](_0x158e51[_0x186032(0x166)](_0x4b1aec,0x1),0x28))+_0x186032(0x194),_0x158e51['VtMVz'](_0x4b1aec,0x28)),_0x158e51[_0x186032(0x171)]),_0x3303e3),_0x158e51[_0x186032(0x1a5)]),_0x25f5b5),'POST','',{'Cookie':_0x19433b});_0x1110d9[_0x186032(0x14f)](_0x124c54);}for(let _0x50c01a=0x1;_0x158e51[_0x186032(0x13a)](_0x50c01a,_0x35633e);_0x50c01a++){const _0x995dd3=await _0x1110d9[_0x50c01a];if(!_0x995dd3?.[_0x186032(0x16c)]||_0x158e51[_0x186032(0x1a7)](_0x995dd3?.['errcode'],0x0)||!_0x995dd3?.[_0x186032(0x177)])continue;for(const _0x242f8e in _0x995dd3['mems']){_0x42c2bf[_0x186032(0x14f)](_0x995dd3['mems'][_0x242f8e]);}}WebGroupData['GroupData'][_0x186032(0x1c2)](_0x3303e3,_0x42c2bf),WebGroupData[_0x186032(0x1d0)]['set'](_0x3303e3,Date['now']());}else _0x42c2bf=_0x49fd31;}catch{return _0x42c2bf;}return _0x42c2bf;}static async[_0x1e9a6c(0x1cd)](_0x4d757c,_0x56cc39=''){const _0x18be74=_0x1e9a6c,_0xb3d92a={'GZxie':_0x18be74(0x16d),'ksIcj':function(_0x2f77d8,_0x334cb5){return _0x2f77d8+_0x334cb5;},'jWiBq':'p_skey=','hpUNx':_0x18be74(0x149),'XtjiZ':_0x18be74(0x190),'dJHdo':function(_0x5b436a,_0x5ad17d){return _0x5b436a||_0x5ad17d;},'jUbBt':_0x18be74(0x143),'ibYmW':_0x18be74(0x1b4),'TbQdN':_0x18be74(0x141),'Uwydi':_0x18be74(0x1b8),'PMNYN':_0x18be74(0x1a2)},_0x36ea87=(await NTQQUserApi[_0x18be74(0x158)]([_0xb3d92a[_0x18be74(0x174)]]))[_0xb3d92a[_0x18be74(0x174)]],_0x25e155=await NTQQUserApi[_0x18be74(0x18c)](),_0x19d107=_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a['ksIcj'](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x134)],_0x36ea87),_0xb3d92a['hpUNx'])+_0x25e155,_0xb3d92a[_0x18be74(0x170)]),selfInfo[_0x18be74(0x1bc)]);let _0x1bc803=undefined;if(_0xb3d92a[_0x18be74(0x1aa)](!_0x25e155,!_0x36ea87))return undefined;const _0x59b4ba=WebApi[_0x18be74(0x189)](_0x25e155),_0x567bf5=_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a['ksIcj'](_0xb3d92a['jUbBt']+_0x4d757c+_0x18be74(0x1a1),_0x59b4ba),_0xb3d92a[_0x18be74(0x1b0)]),_0x56cc39),_0xb3d92a[_0x18be74(0x157)]),_0x221a34=_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x155)],_0x59b4ba);try{return _0x1bc803=await RequestUtil['HttpGetJson'](_0x221a34,_0xb3d92a['PMNYN'],'',{'Cookie':_0x19d107}),_0x1bc803;}catch(_0x44a396){return undefined;}return undefined;}static async[_0x1e9a6c(0x133)](_0x40e678){const _0x3428bd=_0x1e9a6c,_0x9fbd={'CcRwk':function(_0x14ae98,_0x40186d){return _0x14ae98+_0x40186d;},'mdSiO':function(_0x428fcb,_0x62beec){return _0x428fcb+_0x62beec;},'cCPXv':'p_skey=','pfpVD':';\x20skey=','JzWhp':_0x3428bd(0x190),'fSBPi':function(_0x409f06,_0x259aed){return _0x409f06||_0x259aed;},'aSnKr':function(_0xfed713,_0x543fce){return _0xfed713+_0x543fce;},'Rsufr':_0x3428bd(0x186),'lWWwc':_0x3428bd(0x152),'lbgLq':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','HVRZk':_0x3428bd(0x1a2),'dDOva':function(_0xca5abd,_0xe02a24){return _0xca5abd!==_0xe02a24;}},_0x1f7852=(await NTQQUserApi[_0x3428bd(0x158)]([_0x3428bd(0x16d)]))[_0x3428bd(0x16d)],_0x49b7ba=await NTQQUserApi[_0x3428bd(0x18c)](),_0x4a3ef9=_0x9fbd['CcRwk'](_0x9fbd[_0x3428bd(0x17b)](_0x9fbd[_0x3428bd(0x17b)](_0x9fbd['mdSiO'](_0x9fbd['cCPXv'],_0x1f7852),_0x9fbd[_0x3428bd(0x182)])+_0x49b7ba,_0x9fbd['JzWhp']),selfInfo[_0x3428bd(0x1bc)]);let _0x5e99e6=undefined;if(_0x9fbd[_0x3428bd(0x139)](!_0x49b7ba,!_0x1f7852))return undefined;const _0x25fae5=WebApi['genBkn'](_0x49b7ba),_0x4e7c68=_0x9fbd['mdSiO'](_0x9fbd['CcRwk'](_0x9fbd[_0x3428bd(0x1cc)](_0x9fbd[_0x3428bd(0x13d)]+_0x25fae5,_0x9fbd[_0x3428bd(0x1a6)]),_0x40e678),_0x9fbd[_0x3428bd(0x17c)]);try{_0x5e99e6=await RequestUtil['HttpGetJson'](_0x4e7c68,_0x9fbd['HVRZk'],'',{'Cookie':_0x4a3ef9});if(_0x9fbd['dDOva'](_0x5e99e6?.['ec'],0x0))return undefined;return _0x5e99e6;}catch(_0x129b2a){return undefined;}return undefined;}static[_0x1e9a6c(0x189)](_0x23664c){const _0x51ae16=_0x1e9a6c,_0x460e32={'fwptz':function(_0x4a0a57,_0x42f4b6){return _0x4a0a57||_0x42f4b6;},'KsTfa':function(_0x2c8a79,_0x1bcd4a){return _0x2c8a79<_0x1bcd4a;},'IAeYO':function(_0x509b02,_0x20783e){return _0x509b02+_0x20783e;},'eKQce':function(_0x28aa70,_0x5a2e70){return _0x28aa70<<_0x5a2e70;}};_0x23664c=_0x460e32[_0x51ae16(0x1b3)](_0x23664c,'');let _0x269b44=0x1505;for(let _0x9104db=0x0;_0x460e32[_0x51ae16(0x17e)](_0x9104db,_0x23664c[_0x51ae16(0x19a)]);_0x9104db++){const _0x40a875=_0x23664c['charCodeAt'](_0x9104db);_0x269b44=_0x460e32[_0x51ae16(0x187)](_0x460e32['IAeYO'](_0x269b44,_0x460e32[_0x51ae16(0x183)](_0x269b44,0x5)),_0x40a875);}return(_0x269b44&0x7fffffff)['toString']();}static async[_0x1e9a6c(0x1c5)](_0x3b5f69,_0x599b90){const _0x1d8885=_0x1e9a6c,_0xf29ecf={'XVVLD':function(_0x501dc4,_0x1b89f0){return _0x501dc4+_0x1b89f0;},'TWsvX':function(_0x5f4161,_0x4c34a1){return _0x5f4161+_0x4c34a1;},'ZXMnz':_0x1d8885(0x163),'DqPSf':_0x1d8885(0x199),'bXpjY':'GET','QsNUC':function(_0x4c14d9,_0x4df434){return _0x4c14d9===_0x4df434;},'sonJn':_0x1d8885(0x1c1),'mNxRE':_0x1d8885(0x16d),'kwJpP':function(_0x4a5389,_0x1b7a1f){return _0x4a5389||_0x1b7a1f;},'ybLhA':function(_0x12aebf,_0x578018){return _0x12aebf+_0x578018;},'pyukz':_0x1d8885(0x1ac),'cuyBT':_0x1d8885(0x149),'QEmxI':';\x20p_uin=o','dzAEe':function(_0x4f38bd,_0x478af8,_0xd0c156){return _0x4f38bd(_0x478af8,_0xd0c156);},'hipaI':_0x1d8885(0x1ab),'CrIpT':function(_0x3d9100,_0x26e7d0){return _0x3d9100(_0x26e7d0);},'RMDEZ':function(_0x21653f,_0x14b0ba){return _0x21653f(_0x14b0ba);},'TeHOD':_0x1d8885(0x17a),'klVmI':function(_0x322004,_0x418bca){return _0x322004===_0x418bca;},'HUBye':function(_0x4dfc6a,_0x53c03d,_0x16617c){return _0x4dfc6a(_0x53c03d,_0x16617c);},'oMgOt':_0x1d8885(0x19d),'uwbMe':function(_0x2d79cf,_0x15578b){return _0x2d79cf===_0x15578b;},'WWcwJ':function(_0x52fb06,_0x4b03d1){return _0x52fb06===_0x4b03d1;}},_0xae06d9=(await NTQQUserApi[_0x1d8885(0x158)]([_0xf29ecf['mNxRE']]))[_0xf29ecf[_0x1d8885(0x181)]],_0x1f6adc=await NTQQUserApi[_0x1d8885(0x18c)]();if(_0xf29ecf[_0x1d8885(0x1c9)](!_0x1f6adc,!_0xae06d9))return undefined;async function _0x2dfc15(_0x1679bd,_0x2b9dca){const _0x4d90db=_0x1d8885;let _0x1fe4b9=_0xf29ecf[_0x4d90db(0x191)](_0xf29ecf[_0x4d90db(0x191)](_0xf29ecf[_0x4d90db(0x136)](_0xf29ecf[_0x4d90db(0x138)],_0x1679bd),_0xf29ecf['DqPSf']),_0x2b9dca[_0x4d90db(0x1be)]()),_0x15927b='',_0x4d1b88;try{_0x15927b=await RequestUtil[_0x4d90db(0x15a)](_0x1fe4b9,_0xf29ecf[_0x4d90db(0x167)],'',{'Cookie':_0xf242f9});const _0x4b27e7=_0x15927b[_0x4d90db(0x192)](/window\.__INITIAL_STATE__=(.*?);/);return _0x4b27e7&&(_0x4d1b88=JSON[_0x4d90db(0x16f)](_0x4b27e7[0x1]['trim']())),_0xf29ecf[_0x4d90db(0x1bf)](_0x2b9dca,0x1)?_0x4d1b88?.[_0x4d90db(0x146)]:_0x4d1b88?.[_0x4d90db(0x178)];}catch(_0x5c28e1){logDebug(_0xf29ecf['sonJn'],_0x1fe4b9,_0x5c28e1);}return undefined;}let _0x403103={'group_id':_0x3b5f69};const _0xf242f9=_0xf29ecf[_0x1d8885(0x136)](_0xf29ecf['XVVLD'](_0xf29ecf['XVVLD'](_0xf29ecf[_0x1d8885(0x191)](_0xf29ecf['XVVLD'](_0xf29ecf[_0x1d8885(0x136)](_0xf29ecf[_0x1d8885(0x18d)](_0xf29ecf['pyukz'],_0xae06d9),_0xf29ecf[_0x1d8885(0x1cb)]),_0x1f6adc),_0xf29ecf[_0x1d8885(0x193)]),selfInfo[_0x1d8885(0x1bc)]),_0x1d8885(0x161)),selfInfo[_0x1d8885(0x1bc)]);if(_0x599b90===WebHonorType[_0x1d8885(0x15d)]||_0xf29ecf[_0x1d8885(0x1bf)](_0x599b90,WebHonorType[_0x1d8885(0x195)]))try{let _0x268b95=await _0xf29ecf[_0x1d8885(0x142)](_0x2dfc15,_0x3b5f69,0x1);if(!_0x268b95)throw new Error(_0xf29ecf[_0x1d8885(0x132)]);_0x403103[_0x1d8885(0x184)]={'user_id':_0x268b95[0x0]?.[_0x1d8885(0x1bc)],'avatar':_0x268b95[0x0]?.[_0x1d8885(0x144)],'nickname':_0x268b95[0x0]?.[_0x1d8885(0x15f)],'day_count':0x0,'description':_0x268b95[0x0]?.['desc']},_0x403103[_0x1d8885(0x14c)]=[];for(const _0x32cfee of _0x268b95){_0x403103[_0x1d8885(0x14c)]['push']({'user_id':_0x32cfee?.[_0x1d8885(0x1bc)],'avatar':_0x32cfee?.['avatar'],'description':_0x32cfee?.['desc'],'day_count':0x0,'nickname':_0x32cfee?.[_0x1d8885(0x15f)]});}}catch(_0x2f4581){_0xf29ecf[_0x1d8885(0x14e)](logDebug,_0x2f4581);}if(_0xf29ecf[_0x1d8885(0x1bf)](_0x599b90,WebHonorType[_0x1d8885(0x1c6)])||_0xf29ecf[_0x1d8885(0x1bf)](_0x599b90,WebHonorType[_0x1d8885(0x195)]))try{let _0x2a7bc1=await _0x2dfc15(_0x3b5f69,0x2);if(!_0x2a7bc1)throw new Error(_0x1d8885(0x18a));_0x403103[_0x1d8885(0x1cf)]=[];for(const _0x2f4ed6 of _0x2a7bc1){_0x403103[_0x1d8885(0x1cf)]['push']({'user_id':_0x2f4ed6?.['uin'],'nickname':_0x2f4ed6?.[_0x1d8885(0x15f)],'avatar':_0x2f4ed6?.[_0x1d8885(0x144)],'description':_0x2f4ed6?.[_0x1d8885(0x1b6)]});}}catch(_0x348cbd){_0xf29ecf[_0x1d8885(0x16e)](logDebug,_0x348cbd);}if(_0xf29ecf['QsNUC'](_0x599b90,WebHonorType[_0x1d8885(0x1c6)])||_0x599b90===WebHonorType[_0x1d8885(0x195)])try{let _0x53dd03=await _0x2dfc15(_0x3b5f69,0x3);if(!_0x53dd03)throw new Error(_0xf29ecf[_0x1d8885(0x185)]);_0x403103[_0x1d8885(0x1bb)]=[];for(const _0x118237 of _0x53dd03){_0x403103[_0x1d8885(0x1bb)][_0x1d8885(0x14f)]({'user_id':_0x118237?.['uin'],'nickname':_0x118237?.['name'],'avatar':_0x118237?.['avatar'],'desc':_0x118237?.['description']});}}catch(_0x3e6ad5){logDebug(_0xf29ecf[_0x1d8885(0x185)],_0x3e6ad5);}if(_0x599b90===WebHonorType['EMOTION']||_0xf29ecf['klVmI'](_0x599b90,WebHonorType[_0x1d8885(0x195)]))try{let _0x599e31=await _0x2dfc15(_0x3b5f69,0x6);if(!_0x599e31)throw new Error('获取快乐源泉失败');_0x403103[_0x1d8885(0x15b)]=[];for(const _0x46e807 of _0x599e31){_0x403103['emotion_list'][_0x1d8885(0x14f)]({'user_id':_0x46e807?.[_0x1d8885(0x1bc)],'nickname':_0x46e807?.[_0x1d8885(0x15f)],'avatar':_0x46e807?.[_0x1d8885(0x144)],'desc':_0x46e807?.[_0x1d8885(0x131)]});}}catch(_0x147f6b){_0xf29ecf[_0x1d8885(0x188)](logDebug,_0xf29ecf[_0x1d8885(0x18b)],_0x147f6b);}return(_0xf29ecf[_0x1d8885(0x18f)](_0x599b90,WebHonorType[_0x1d8885(0x19e)])||_0xf29ecf[_0x1d8885(0x196)](_0x599b90,WebHonorType[_0x1d8885(0x195)]))&&(_0x403103[_0x1d8885(0x1a4)]=[]),_0x403103;}} \ No newline at end of file +const _0x528df8=_0x3f96;(function(_0x127b5b,_0x1359b0){const _0x103384=_0x3f96,_0x17df46=_0x127b5b();while(!![]){try{const _0x4289eb=parseInt(_0x103384(0x114))/0x1+-parseInt(_0x103384(0x11a))/0x2+parseInt(_0x103384(0xf8))/0x3*(parseInt(_0x103384(0xab))/0x4)+-parseInt(_0x103384(0x119))/0x5*(parseInt(_0x103384(0x8c))/0x6)+parseInt(_0x103384(0x93))/0x7*(-parseInt(_0x103384(0x109))/0x8)+parseInt(_0x103384(0xde))/0x9*(parseInt(_0x103384(0xac))/0xa)+parseInt(_0x103384(0x9a))/0xb;if(_0x4289eb===_0x1359b0)break;else _0x17df46['push'](_0x17df46['shift']());}catch(_0x41e2c0){_0x17df46['push'](_0x17df46['shift']());}}}(_0xa852,0xcb9ec));function _0x3f96(_0x3fdece,_0x1fd3dd){const _0xa8520b=_0xa852();return _0x3f96=function(_0x3f96c6,_0x5b2bf9){_0x3f96c6=_0x3f96c6-0x7f;let _0x570daa=_0xa8520b[_0x3f96c6];return _0x570daa;},_0x3f96(_0x3fdece,_0x1fd3dd);}function _0xa852(){const _0x47124c=['PERFROMER','176553eEDwNt','rZQag','tCJdc','获取龙王信息失败','JzxkD','20fUCpIA','3259330YbWlGE','strong_newbie','uxpvx','desc','&page_limit=20','SHOEi','push','XuwNU','oRvVA','charCodeAt','PYpbC','tcoLZ','name','SBjzE','current_talkative','QriiU','xXxTS','&text=','wDgso','dIvti','LEGEND','789072gZCBxY','errcode','ZLOIf','ALL','cmUTB','p_skey=','TBnBV','5152vhPsyT','emotion','umkzF','gMYah','CCRgl','getGrouptNotice','oifqX','19167676rGBcFy','toString','webapi\x20获取群成员','talkativeList','gOxfe','EGZYk','actorList','mOKNi','MgMnw','JVsjY','MLfWs','MXdDC','EMOTION',';\x20skey=','getSkey','LFzgV','CDfid','1971604GZofHm','146770QaPTqr','emotion_list','RUNhM','avatar','EoxJu','TuKpp','&qid=','&page_start=','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','wZIij','获取快乐源泉失败','QDwmM','CfWAs','performer_list',';\x20p_uin=o','crZcU','mems','kQVSg','BIeQJ','iCzaN','Xqvhm','&end=','1|0|5|3|2|4','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','&bkn=','MkOkC','RnvRY','setGroupNotice','LLegI','&group_code=','&sort=1&gc=','onaoL','获取群聊炽焰失败','genBkn','NBgxh','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','HttpGetJson','NoRwd','strong_newbie_list','reSRj','ceil','qun.qq.com','GroupData','IOXNA','DrmYp','XDaoy','talkative','获取群聊之火失败','set','获取当前群荣耀失败','414KnRfwM','svHrC','QTrCL','zXgvI','HcGFq','NuWrp','GroupTime','parse','RZFHU','XVYWy','bFojG','WRRRc','description','ehRST','POST','nAIPX','now','RPaFb','jfZJW','hwWKD','legend_list','count','GET','length','eIcGi','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','6evYHPd','pQxGv','OXWLd','TALKACTIVE','getGroupMembers','XvPzb','match','VBaFn','jKRwZ','sMRVw','get','NAqOa','HttpGetText','legend','StmdL','uin','iKmuD','6416RoKpoh','CMjBO','talkative_list','ahrop','cHJAS','lbJZW','rPNwg','BfnDF','bEWmS','getPSkey'];_0xa852=function(){return _0x47124c;};return _0xa852();}import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x269a64){const _0x4a0d2e=_0x3f96,_0x105f6d={'iCzaN':_0x4a0d2e(0xc2),'pJBFl':_0x4a0d2e(0xda),'VBaFn':'all','oifqX':'STORONGE_NEWBI','bFojG':_0x4a0d2e(0x11b),'NzICV':_0x4a0d2e(0x8b),'OXWLd':_0x4a0d2e(0x105),'hwWKD':_0x4a0d2e(0x94),'rPNwg':'PERFROMER','reSRj':'performer'},_0x26d784=_0x105f6d[_0x4a0d2e(0xbf)]['split']('|');let _0x3714b9=0x0;while(!![]){switch(_0x26d784[_0x3714b9++]){case'0':_0x269a64[_0x4a0d2e(0xfb)]=_0x105f6d['pJBFl'];continue;case'1':_0x269a64[_0x4a0d2e(0x8f)]=_0x105f6d[_0x4a0d2e(0xff)];continue;case'2':_0x269a64[_0x105f6d[_0x4a0d2e(0x99)]]=_0x105f6d[_0x4a0d2e(0xe8)];continue;case'3':_0x269a64[_0x105f6d['NzICV']]=_0x105f6d[_0x4a0d2e(0xfa)];continue;case'4':_0x269a64[_0x4a0d2e(0xa6)]=_0x105f6d[_0x4a0d2e(0xf1)];continue;case'5':_0x269a64[_0x105f6d[_0x4a0d2e(0x10f)]]=_0x105f6d[_0x4a0d2e(0xd3)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x9f6b80,_0x2e3425){const _0x176fef=_0x3f96,_0x3206fd={'HcGFq':_0x176fef(0xd5),'QriiU':function(_0x3737ad,_0x26022b){return _0x3737ad+_0x26022b;},'zXgvI':function(_0xef7e5b,_0x19b037){return _0xef7e5b+_0x19b037;},'ZLOIf':function(_0x436b75,_0x38ab09){return _0x436b75+_0x38ab09;},'byKNs':function(_0x415751,_0x180fb8){return _0x415751+_0x180fb8;},'crZcU':';\x20uin=o','BIeQJ':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','RUNhM':_0x176fef(0xc9),'MLfWs':_0x176fef(0xb3),'CzoXv':_0x176fef(0x11e),'onaoL':_0x176fef(0xf4),'XvPzb':function(_0x587c29,_0x55013c){return _0x587c29!==_0x55013c;}},_0x2c7f94=(await NTQQUserApi['getPSkey']([_0x3206fd[_0x176fef(0xe2)]]))[_0x3206fd[_0x176fef(0xe2)]],_0x4605da=await NTQQUserApi['getSkey'](),_0x2645a4=_0x3206fd[_0x176fef(0x86)](_0x3206fd[_0x176fef(0xe1)](_0x3206fd[_0x176fef(0x8e)](_0x3206fd['byKNs'](_0x3206fd[_0x176fef(0x8e)]('p_skey=',_0x2c7f94),';\x20skey='),_0x4605da),';\x20p_uin=o'),selfInfo[_0x176fef(0x107)])+_0x3206fd[_0x176fef(0xbb)]+selfInfo['uin'];if(!_0x4605da||!_0x2c7f94)return undefined;const _0x1bebd9=WebApi[_0x176fef(0xcd)](_0x4605da),_0x1ac65a=_0x3206fd['ZLOIf'](_0x3206fd[_0x176fef(0x86)](_0x3206fd[_0x176fef(0xe1)](_0x3206fd[_0x176fef(0x8e)](_0x3206fd[_0x176fef(0xbe)],_0x1bebd9),_0x3206fd[_0x176fef(0xae)])+_0x9f6b80,_0x3206fd[_0x176fef(0xa4)]),_0x2e3425)+_0x3206fd['CzoXv'];let _0x41650a;try{_0x41650a=await RequestUtil[_0x176fef(0xd0)](_0x1ac65a,_0x3206fd[_0x176fef(0xcb)],'',{'Cookie':_0x2645a4});}catch{return undefined;}if(_0x3206fd[_0x176fef(0xfd)](_0x41650a['retcode'],0x0))return undefined;return _0x41650a;}static async[_0x528df8(0xfc)](_0x3915b1,_0x27ee03=!![]){const _0x5cf6c5=_0x528df8,_0x5ed17a={'NBgxh':function(_0x30ef52,_0xe322cd,_0x1a072b){return _0x30ef52(_0xe322cd,_0x1a072b);},'NAqOa':_0x5cf6c5(0x9c),'TBnBV':function(_0x430593,_0x36e8a4){return _0x430593-_0x36e8a4;},'SBjzE':function(_0x32be01,_0x4b6d1c){return _0x32be01*_0x4b6d1c;},'kQVSg':'qun.qq.com','MkOkC':function(_0x4da0e3,_0xb50fb3){return _0x4da0e3+_0xb50fb3;},'IOXNA':function(_0x48d5f7,_0x16d10a){return _0x48d5f7+_0x16d10a;},'JVsjY':function(_0x2a2fed,_0x10f1dd){return _0x2a2fed+_0x10f1dd;},'RnvRY':function(_0xbc0621,_0x3d3267){return _0xbc0621+_0x3d3267;},'QDwmM':_0x5cf6c5(0x91),'oRvVA':_0x5cf6c5(0xa7),'mOKNi':_0x5cf6c5(0xba),'XDaoy':function(_0xbb11b1,_0x4e7f3c){return _0xbb11b1+_0x4e7f3c;},'nAIPX':_0x5cf6c5(0xc4),'CfWAs':_0x5cf6c5(0xec),'FfqAd':function(_0x19e7f0,_0x43e5f1){return _0x19e7f0/_0x43e5f1;},'CDfid':function(_0x471117,_0x5756d7){return _0x471117<=_0x5756d7;},'tCJdc':function(_0x2e6c1d,_0x4fa5e6){return _0x2e6c1d+_0x4fa5e6;},'svHrC':function(_0x231dd0,_0x102035){return _0x231dd0+_0x102035;},'QTrCL':function(_0x5f3ccd,_0x5c56cd){return _0x5f3ccd+_0x5c56cd;},'OnSUM':function(_0x55245e,_0x1573a5){return _0x55245e+_0x1573a5;},'CCRgl':function(_0x2faf90,_0x2efaba){return _0x2faf90+_0x2efaba;},'dIvti':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','sFweJ':function(_0x60edd,_0x38067a){return _0x60edd*_0x38067a;},'lbJZW':_0x5cf6c5(0xc1),'XHtuX':function(_0x400955,_0x1d3674){return _0x400955*_0x1d3674;},'DrmYp':_0x5cf6c5(0xca)};_0x5ed17a[_0x5cf6c5(0xce)](logDebug,_0x5ed17a[_0x5cf6c5(0x103)],_0x3915b1);let _0x5950d8=new Array();try{let _0x18fe49=WebGroupData[_0x5cf6c5(0xd6)][_0x5cf6c5(0x102)](_0x3915b1),_0x5864b7=WebGroupData[_0x5cf6c5(0xe4)][_0x5cf6c5(0x102)](_0x3915b1);if(!_0x5864b7||_0x5ed17a[_0x5cf6c5(0x92)](Date[_0x5cf6c5(0xee)](),_0x5864b7)>_0x5ed17a[_0x5cf6c5(0x84)](0x708,0x3e8)||!_0x27ee03){const _0x31e8c4=(await NTQQUserApi[_0x5cf6c5(0x112)]([_0x5cf6c5(0xd5)]))[_0x5ed17a[_0x5cf6c5(0xbd)]],_0x587427=await NTQQUserApi[_0x5cf6c5(0xa8)](),_0xe4b5fb=_0x5ed17a['MkOkC'](_0x5ed17a[_0x5cf6c5(0xc5)](_0x5ed17a[_0x5cf6c5(0xd7)](_0x5ed17a[_0x5cf6c5(0xa3)](_0x5ed17a[_0x5cf6c5(0xc6)](_0x5ed17a[_0x5cf6c5(0xb7)],_0x31e8c4),_0x5ed17a[_0x5cf6c5(0x7f)]),_0x587427),_0x5ed17a[_0x5cf6c5(0xa1)]),selfInfo[_0x5cf6c5(0x107)]);if(!_0x587427||!_0x31e8c4)return _0x5950d8;const _0x27e479=WebApi['genBkn'](_0x587427),_0x2a8560=[],_0x199d1b=await RequestUtil[_0x5cf6c5(0xd0)](_0x5ed17a[_0x5cf6c5(0xd9)](_0x5ed17a['IOXNA'](_0x5cf6c5(0xb4),_0x3915b1)+_0x5ed17a[_0x5cf6c5(0xed)],_0x27e479),_0x5ed17a[_0x5cf6c5(0xb8)],'',{'Cookie':_0xe4b5fb});if(!_0x199d1b?.[_0x5cf6c5(0xf3)]||_0x199d1b?.[_0x5cf6c5(0x8d)]!==0x0||!_0x199d1b?.[_0x5cf6c5(0xbc)])return[];else for(const _0x457060 in _0x199d1b[_0x5cf6c5(0xbc)]){_0x5950d8[_0x5cf6c5(0x120)](_0x199d1b[_0x5cf6c5(0xbc)][_0x457060]);}const _0x3e0862=Math[_0x5cf6c5(0xd4)](_0x5ed17a['FfqAd'](_0x199d1b[_0x5cf6c5(0xf3)],0x28));for(let _0xadc80d=0x2;_0x5ed17a[_0x5cf6c5(0xaa)](_0xadc80d,_0x3e0862);_0xadc80d++){const _0x366e27=RequestUtil['HttpGetJson'](_0x5ed17a[_0x5cf6c5(0x116)](_0x5ed17a[_0x5cf6c5(0xdf)](_0x5ed17a[_0x5cf6c5(0xe0)](_0x5ed17a['OnSUM'](_0x5ed17a[_0x5cf6c5(0x97)](_0x5ed17a[_0x5cf6c5(0x8a)],_0x5ed17a['sFweJ'](_0xadc80d-0x1,0x28)),_0x5ed17a[_0x5cf6c5(0x10e)])+_0x5ed17a['XHtuX'](_0xadc80d,0x28),_0x5ed17a[_0x5cf6c5(0xd8)]),_0x3915b1),_0x5ed17a[_0x5cf6c5(0xed)])+_0x27e479,_0x5cf6c5(0xec),'',{'Cookie':_0xe4b5fb});_0x2a8560['push'](_0x366e27);}for(let _0x5307b6=0x1;_0x5ed17a[_0x5cf6c5(0xaa)](_0x5307b6,_0x3e0862);_0x5307b6++){const _0x4537a8=await _0x2a8560[_0x5307b6];if(!_0x4537a8?.['count']||_0x4537a8?.[_0x5cf6c5(0x8d)]!==0x0||!_0x4537a8?.[_0x5cf6c5(0xbc)])continue;for(const _0x4bb049 in _0x4537a8[_0x5cf6c5(0xbc)]){_0x5950d8[_0x5cf6c5(0x120)](_0x4537a8[_0x5cf6c5(0xbc)][_0x4bb049]);}}WebGroupData['GroupData'][_0x5cf6c5(0xdc)](_0x3915b1,_0x5950d8),WebGroupData[_0x5cf6c5(0xe4)]['set'](_0x3915b1,Date[_0x5cf6c5(0xee)]());}else _0x5950d8=_0x18fe49;}catch{return _0x5950d8;}return _0x5950d8;}static async[_0x528df8(0xc7)](_0x114d6d,_0x43fe35=''){const _0x4e5c0d=_0x528df8,_0x3a8be1={'rZQag':_0x4e5c0d(0xd5),'jKRwZ':function(_0x3caf9c,_0x347a38){return _0x3caf9c+_0x347a38;},'pQxGv':function(_0x476543,_0x5196bd){return _0x476543+_0x5196bd;},'uxpvx':function(_0x3497ec,_0x31584b){return _0x3497ec+_0x31584b;},'gOxfe':function(_0x5ae262,_0x54266f){return _0x5ae262+_0x54266f;},'pRCtk':'p_skey=','iKmuD':_0x4e5c0d(0xa7),'SHOEi':_0x4e5c0d(0xba),'jfZJW':function(_0x55920b,_0x4375f5){return _0x55920b||_0x4375f5;},'EGZYk':function(_0x36a061,_0x4836b8){return _0x36a061+_0x4836b8;},'QQBvC':'qid=','ALaxd':_0x4e5c0d(0xc4),'RPaFb':_0x4e5c0d(0x88),'JzxkD':_0x4e5c0d(0xc3)},_0x288884=(await NTQQUserApi[_0x4e5c0d(0x112)]([_0x3a8be1[_0x4e5c0d(0x115)]]))[_0x4e5c0d(0xd5)],_0x4583a4=await NTQQUserApi[_0x4e5c0d(0xa8)](),_0xc9a3f9=_0x3a8be1[_0x4e5c0d(0x100)](_0x3a8be1['pQxGv'](_0x3a8be1['uxpvx'](_0x3a8be1[_0x4e5c0d(0x9e)](_0x3a8be1['pRCtk'],_0x288884),_0x3a8be1[_0x4e5c0d(0x108)])+_0x4583a4,_0x3a8be1[_0x4e5c0d(0x11f)]),selfInfo['uin']);let _0x1fc96a=undefined;if(_0x3a8be1[_0x4e5c0d(0xf0)](!_0x4583a4,!_0x288884))return undefined;const _0x133596=WebApi[_0x4e5c0d(0xcd)](_0x4583a4),_0x185434=_0x3a8be1[_0x4e5c0d(0x100)](_0x3a8be1[_0x4e5c0d(0x11c)](_0x3a8be1[_0x4e5c0d(0x9f)](_0x3a8be1[_0x4e5c0d(0x11c)](_0x3a8be1['QQBvC'],_0x114d6d)+_0x3a8be1['ALaxd'],_0x133596),_0x3a8be1[_0x4e5c0d(0xef)]),_0x43fe35)+_0x3a8be1[_0x4e5c0d(0x118)],_0x3ca02c=_0x3a8be1[_0x4e5c0d(0xf9)](_0x4e5c0d(0xf7),_0x133596);try{return _0x1fc96a=await RequestUtil[_0x4e5c0d(0xd0)](_0x3ca02c,'GET','',{'Cookie':_0xc9a3f9}),_0x1fc96a;}catch(_0x3fc531){return undefined;}return undefined;}static async[_0x528df8(0x98)](_0x38e739){const _0x498d7b=_0x528df8,_0x110c2a={'CMjBO':_0x498d7b(0xd5),'WRRRc':function(_0x4f8991,_0x1fecd9){return _0x4f8991+_0x1fecd9;},'peYNP':_0x498d7b(0x91),'StmdL':_0x498d7b(0xa7),'MgMnw':';\x20p_uin=o','cmUTB':function(_0x47b42a,_0x2253b6){return _0x47b42a||_0x2253b6;},'RsOZX':function(_0x4ca273,_0xdcf641){return _0x4ca273+_0xdcf641;},'NuWrp':function(_0x5103f1,_0x36299d){return _0x5103f1+_0x36299d;},'PYpbC':_0x498d7b(0xcf),'EoxJu':_0x498d7b(0xb2),'wDgso':_0x498d7b(0xf4)},_0x31cea8=(await NTQQUserApi[_0x498d7b(0x112)]([_0x110c2a[_0x498d7b(0x10a)]]))[_0x110c2a[_0x498d7b(0x10a)]],_0x3d3fbd=await NTQQUserApi[_0x498d7b(0xa8)](),_0x300426=_0x110c2a[_0x498d7b(0xe9)](_0x110c2a[_0x498d7b(0xe9)](_0x110c2a[_0x498d7b(0xe9)](_0x110c2a[_0x498d7b(0xe9)](_0x110c2a['peYNP'],_0x31cea8),_0x110c2a[_0x498d7b(0x106)]),_0x3d3fbd)+_0x110c2a[_0x498d7b(0xa2)],selfInfo['uin']);let _0x386111=undefined;if(_0x110c2a[_0x498d7b(0x90)](!_0x3d3fbd,!_0x31cea8))return undefined;const _0x3718ee=WebApi[_0x498d7b(0xcd)](_0x3d3fbd),_0x4cb27c=_0x110c2a['RsOZX'](_0x110c2a[_0x498d7b(0xe3)](_0x110c2a[_0x498d7b(0x81)]+_0x3718ee,_0x110c2a[_0x498d7b(0xb0)]),_0x38e739)+'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20';try{_0x386111=await RequestUtil[_0x498d7b(0xd0)](_0x4cb27c,_0x110c2a[_0x498d7b(0x89)],'',{'Cookie':_0x300426});if(_0x386111?.['ec']!==0x0)return undefined;return _0x386111;}catch(_0x5c8198){return undefined;}return undefined;}static[_0x528df8(0xcd)](_0x3d67af){const _0x195c87=_0x528df8,_0x1ed934={'rDJde':function(_0x42ed4a,_0x1b9554){return _0x42ed4a+_0x1b9554;},'BfnDF':function(_0x559448,_0x38ecd4){return _0x559448<<_0x38ecd4;},'umkzF':function(_0x418437,_0x252a89){return _0x418437&_0x252a89;}};_0x3d67af=_0x3d67af||'';let _0x368549=0x1505;for(let _0xab7d81=0x0;_0xab7d81<_0x3d67af[_0x195c87(0xf5)];_0xab7d81++){const _0x469acb=_0x3d67af[_0x195c87(0x80)](_0xab7d81);_0x368549=_0x1ed934['rDJde'](_0x368549+_0x1ed934[_0x195c87(0x110)](_0x368549,0x5),_0x469acb);}return _0x1ed934[_0x195c87(0x95)](_0x368549,0x7fffffff)[_0x195c87(0x9b)]();}static async['getGroupHonorInfo'](_0x28f5de,_0x1c3925){const _0x19548a=_0x528df8,_0x4bd829={'wZIij':function(_0x414710,_0x3bbcec){return _0x414710+_0x3bbcec;},'ahrop':function(_0x4d31dd,_0x1d55ab){return _0x4d31dd+_0x1d55ab;},'Xqvhm':'https://qun.qq.com/interactive/honorlist?gc=','TECBH':_0x19548a(0xf4),'XVYWy':'qun.qq.com','RZFHU':function(_0x10b52d,_0x388969){return _0x10b52d||_0x388969;},'LLegI':function(_0x4e0519,_0x5d53b2){return _0x4e0519+_0x5d53b2;},'kICbD':function(_0x59b462,_0x25f841){return _0x59b462+_0x25f841;},'ZfVBl':_0x19548a(0xba),'sMRVw':';\x20uin=o','gMYah':function(_0x562cee,_0x25df31){return _0x562cee===_0x25df31;},'bEWmS':function(_0x4523d9,_0x2d6002,_0x3cc168){return _0x4523d9(_0x2d6002,_0x3cc168);},'cHJAS':_0x19548a(0x117),'TuKpp':function(_0x30f866,_0x833254){return _0x30f866(_0x833254);},'tcoLZ':function(_0x4a2951,_0x1402ff){return _0x4a2951===_0x1402ff;},'XuwNU':function(_0x53ae55,_0x1be85f,_0x3a3d0d){return _0x53ae55(_0x1be85f,_0x3a3d0d);},'xXxTS':_0x19548a(0xdb),'ehRST':function(_0xb860bd,_0x434448){return _0xb860bd===_0x434448;},'MXdDC':function(_0xb1d5e,_0x40f374){return _0xb1d5e===_0x40f374;},'XsXWn':_0x19548a(0xcc),'NoRwd':_0x19548a(0xb6),'eIcGi':function(_0x5b5e0c,_0x1d1c50,_0x21ae97){return _0x5b5e0c(_0x1d1c50,_0x21ae97);},'LFzgV':function(_0x2692ab,_0x46ddbc){return _0x2692ab===_0x46ddbc;}},_0x50be3a=(await NTQQUserApi[_0x19548a(0x112)]([_0x4bd829[_0x19548a(0xe7)]]))[_0x4bd829[_0x19548a(0xe7)]],_0x125e34=await NTQQUserApi[_0x19548a(0xa8)]();if(_0x4bd829[_0x19548a(0xe6)](!_0x125e34,!_0x50be3a))return undefined;async function _0x425c5c(_0x3d44c1,_0x535894){const _0x3754d0=_0x19548a;let _0x2f2410=_0x4bd829[_0x3754d0(0xb5)](_0x4bd829[_0x3754d0(0x10c)](_0x4bd829[_0x3754d0(0xc0)]+_0x3d44c1,'&type='),_0x535894[_0x3754d0(0x9b)]()),_0xca9356='',_0x171eba;try{_0xca9356=await RequestUtil[_0x3754d0(0x104)](_0x2f2410,_0x4bd829['TECBH'],'',{'Cookie':_0x3647a2});const _0x18277d=_0xca9356[_0x3754d0(0xfe)](/window\.__INITIAL_STATE__=(.*?);/);return _0x18277d&&(_0x171eba=JSON[_0x3754d0(0xe5)](_0x18277d[0x1]['trim']())),_0x535894===0x1?_0x171eba?.[_0x3754d0(0x9d)]:_0x171eba?.[_0x3754d0(0xa0)];}catch(_0x3a2e8f){logDebug(_0x3754d0(0xdd),_0x2f2410,_0x3a2e8f);}return undefined;}let _0xeb5904={'group_id':_0x28f5de};const _0x3647a2=_0x4bd829['LLegI'](_0x4bd829[_0x19548a(0xc8)](_0x4bd829[_0x19548a(0xc8)](_0x4bd829[_0x19548a(0x10c)](_0x4bd829['kICbD'](_0x4bd829[_0x19548a(0x10c)](_0x19548a(0x91),_0x50be3a),_0x19548a(0xa7)),_0x125e34),_0x4bd829['ZfVBl']),selfInfo[_0x19548a(0x107)]),_0x4bd829[_0x19548a(0x101)])+selfInfo[_0x19548a(0x107)];if(_0x4bd829[_0x19548a(0x96)](_0x1c3925,WebHonorType['TALKACTIVE'])||_0x4bd829[_0x19548a(0x96)](_0x1c3925,WebHonorType[_0x19548a(0x8f)]))try{let _0x584bf6=await _0x4bd829[_0x19548a(0x111)](_0x425c5c,_0x28f5de,0x1);if(!_0x584bf6)throw new Error(_0x4bd829[_0x19548a(0x10d)]);_0xeb5904[_0x19548a(0x85)]={'user_id':_0x584bf6[0x0]?.[_0x19548a(0x107)],'avatar':_0x584bf6[0x0]?.['avatar'],'nickname':_0x584bf6[0x0]?.['name'],'day_count':0x0,'description':_0x584bf6[0x0]?.[_0x19548a(0x11d)]},_0xeb5904[_0x19548a(0x10b)]=[];for(const _0x5b9dec of _0x584bf6){_0xeb5904['talkative_list'][_0x19548a(0x120)]({'user_id':_0x5b9dec?.['uin'],'avatar':_0x5b9dec?.['avatar'],'description':_0x5b9dec?.[_0x19548a(0x11d)],'day_count':0x0,'nickname':_0x5b9dec?.[_0x19548a(0x83)]});}}catch(_0x2f2f55){_0x4bd829[_0x19548a(0xb1)](logDebug,_0x2f2f55);}if(_0x1c3925===WebHonorType[_0x19548a(0x113)]||_0x4bd829[_0x19548a(0x82)](_0x1c3925,WebHonorType[_0x19548a(0x8f)]))try{let _0x4fa21e=await _0x4bd829['XuwNU'](_0x425c5c,_0x28f5de,0x2);if(!_0x4fa21e)throw new Error(_0x4bd829[_0x19548a(0x87)]);_0xeb5904[_0x19548a(0xb9)]=[];for(const _0x342280 of _0x4fa21e){_0xeb5904[_0x19548a(0xb9)][_0x19548a(0x120)]({'user_id':_0x342280?.[_0x19548a(0x107)],'nickname':_0x342280?.[_0x19548a(0x83)],'avatar':_0x342280?.[_0x19548a(0xaf)],'description':_0x342280?.[_0x19548a(0x11d)]});}}catch(_0xa8eab2){logDebug(_0xa8eab2);}if(_0x4bd829[_0x19548a(0xeb)](_0x1c3925,WebHonorType[_0x19548a(0x113)])||_0x4bd829[_0x19548a(0xa5)](_0x1c3925,WebHonorType[_0x19548a(0x8f)]))try{let _0x47d9c2=await _0x425c5c(_0x28f5de,0x3);if(!_0x47d9c2)throw new Error(_0x19548a(0xcc));_0xeb5904['legend_list']=[];for(const _0x50acee of _0x47d9c2){_0xeb5904[_0x19548a(0xf2)][_0x19548a(0x120)]({'user_id':_0x50acee?.[_0x19548a(0x107)],'nickname':_0x50acee?.['name'],'avatar':_0x50acee?.['avatar'],'desc':_0x50acee?.[_0x19548a(0xea)]});}}catch(_0x47d65c){_0x4bd829[_0x19548a(0x121)](logDebug,_0x4bd829['XsXWn'],_0x47d65c);}if(_0x4bd829[_0x19548a(0x96)](_0x1c3925,WebHonorType['EMOTION'])||_0x4bd829[_0x19548a(0xeb)](_0x1c3925,WebHonorType[_0x19548a(0x8f)]))try{let _0x14c21d=await _0x4bd829[_0x19548a(0x111)](_0x425c5c,_0x28f5de,0x6);if(!_0x14c21d)throw new Error(_0x4bd829[_0x19548a(0xd1)]);_0xeb5904['emotion_list']=[];for(const _0x5466c0 of _0x14c21d){_0xeb5904[_0x19548a(0xad)][_0x19548a(0x120)]({'user_id':_0x5466c0?.[_0x19548a(0x107)],'nickname':_0x5466c0?.[_0x19548a(0x83)],'avatar':_0x5466c0?.[_0x19548a(0xaf)],'desc':_0x5466c0?.[_0x19548a(0xea)]});}}catch(_0x2a3a9b){_0x4bd829[_0x19548a(0xf6)](logDebug,_0x4bd829[_0x19548a(0xd1)],_0x2a3a9b);}return(_0x4bd829[_0x19548a(0xa5)](_0x1c3925,WebHonorType['EMOTION'])||_0x4bd829[_0x19548a(0xa9)](_0x1c3925,WebHonorType['ALL']))&&(_0xeb5904[_0x19548a(0xd2)]=[]),_0xeb5904;}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 4db8a6864..07bc587fb 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0xe4e48c=_0x4d3b;(function(_0x28d0c,_0x394bcd){const _0x3f2379=_0x4d3b,_0x2965cd=_0x28d0c();while(!![]){try{const _0x23de9e=-parseInt(_0x3f2379(0x213))/0x1+-parseInt(_0x3f2379(0x267))/0x2+parseInt(_0x3f2379(0x26a))/0x3+-parseInt(_0x3f2379(0x20c))/0x4+-parseInt(_0x3f2379(0x1d3))/0x5+parseInt(_0x3f2379(0x236))/0x6*(parseInt(_0x3f2379(0x23b))/0x7)+parseInt(_0x3f2379(0x1c6))/0x8*(parseInt(_0x3f2379(0x1eb))/0x9);if(_0x23de9e===_0x394bcd)break;else _0x2965cd['push'](_0x2965cd['shift']());}catch(_0x74d7d6){_0x2965cd['push'](_0x2965cd['shift']());}}}(_0x5b21,0x81177));import _0x341878 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x47fb73 from'node:path';import _0x366621 from'node:os';import _0x2f958f from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x5b21(){const _0x46ab9e=['onLoginSuccessFuncList','groupMemberList_MainWindow','rHhOM',')已登录,无法重复登录','_GW_B','Wfpsr','stringify','onGroupListUpdate','5636853AKUQEG','passwordLogin','uthWD','last_message_time','uin','sceneId','NodeIKernelMsgListener','getNTUserDataInfoConfig','QvrbJ','onProfileDetailInfoChanged','LocalLoginInfoList','assign','./NapCat/data','util','tipsDesc','split','DTYrC','IJbpY','init\x20failed\x20','geRuL','onRecvMsg','getGroupService','NodeIGlobalAdapter','UbdWr','登录失败','message_received','getNextMemberList','infos','consoleLogLevel','Windows\x2010\x20Pro','getBuddyService','buddyList','name','1932476qIMrYY','QjNJz','then','Qdpbz','RXmKR','MWTJu','get','189376HyVHEj','constructor','NodeIKernelGroupListener','push','tipsTitle','快速登录不可用','140022008','forEach','NodeIKernelProfileListener','onQRCodeLoginSucceed','FizVu','addMsg','LsTQL','addKernelMsgListener','catch','find','NodeIDependsAdapter','packet_sent','sZFHk','createMemberListScene','yDSEX','启动失败:\x20','data:image/png;base64,','base64','onMemberListChange','homedir','initSession\x20failed','yPjvh','lnjeD','now','WJwcw','read','resolve','hgbLx','map','564lBqufA','[KickedOffLine]\x20[','账号设备(','NodeIKernelSessionListener','recallTime','74438kIEaZW','packet_received','addKernelLoginListener','addKernelProfileListener','message_sent','iYkkM','\x20has\x20no\x20method\x20','getMsgService','QiDoe','UANEI','osnCl','isQuickLogin','adEDB','floor','onMemberInfoChange','groupCode','undefined','MsgListener','set','clientType','result','TihNu','getProfileService','vMvKM','qrcodeUrl','sbdmN','qrLogin','onQRCodeSessionFailed','session','rPuCr','dataPath','delete','-v2.db','msgId','btnuP','addKernelBuddyListener','wwZfo','mkdirSync','ProfileListener','onAddSendMsg','getBuddyList','errMsg','engine','NodeIKernelLoginListener','1309248tsyVsv','loginService','devUid','2030073qlBTKS','adWEH','kDAOG','initConfig','cuNNY','updateMsg','startNT','loginListener','clbRS','onQRCodeGetPicture','uid','sHPXK','onSelfStatusChanged','quickLogin','onLoginFailed','./nt_qq/global',')\x20在线状态变更','dnxkS','curVersion','addListener','init','quickLoginWithUin','AAfCz','onLineDev','initDataListener','initSession','getMsgByLongId','getLoginList','MxoyY','WBXQp','8cZAwSu','QQwDQ','StmsS','pngBase64QrcodeData','from','数据库初始化失败','ceyrg','onRecvSysMsg','createHash','wBEQv','140022013','replace','initWithDeskTopConfig','2233630vsfvAf','lCeCN','length','fileLog','getQRCodePicture','NodeIKernelBuddyListener','onMsgInfoListUpdate','dataPathGlobal','BuddyListener','digest','proxyHandler','没有可快速登录的QQ号','vAlqp','V1_WIN_NQ_','bdYPe','Autps'];_0x5b21=function(){return _0x46ab9e;};return _0x5b21();}import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0xb1e5da from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x4d3b(_0x485067,_0x31b2a6){const _0x5b21b3=_0x5b21();return _0x4d3b=function(_0x4d3be6,_0x2dc5f7){_0x4d3be6=_0x4d3be6-0x1b1;let _0x2a1279=_0x5b21b3[_0x4d3be6];return _0x2a1279;},_0x4d3b(_0x485067,_0x31b2a6);}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];[_0xe4e48c(0x1f8)];[_0xe4e48c(0x265)];[_0xe4e48c(0x271)];[_0xe4e48c(0x268)];[_0xe4e48c(0x1e3)]=[];[_0xe4e48c(0x1dd)]={'get'(target,prop,receiver){const _0x5ec5da=_0xe4e48c,sLPGGf={'StmsS':function(callee,param1){return callee(param1);},'sZFHk':function(x,y){return x===y;},'vFsyX':_0x5ec5da(0x24b)};if(sLPGGf[_0x5ec5da(0x225)](typeof target[prop],sLPGGf['vFsyX']))return(...args)=>{const _0x108942=_0x5ec5da;sLPGGf[_0x108942(0x1c8)](logDebug,target[_0x108942(0x214)][_0x108942(0x20b)]+_0x108942(0x241)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x1f14cb=_0xe4e48c,_0xac5665={'osnCl':function(_0x193d11,_0x5adbba){return _0x193d11(_0x5adbba);},'hgbLx':function(_0x1fc9e2,_0x4ef2b7){return _0x1fc9e2+_0x4ef2b7;},'vAlqp':'当前账号(','LXFbM':_0x1f14cb(0x1e6),'yPjvh':function(_0xe859c5,_0x5590a,_0x423fe5){return _0xe859c5(_0x5590a,_0x423fe5);},'QgVAu':_0x1f14cb(0x1cb),'QQwDQ':function(_0x4dc2fb,_0x52476f){return _0x4dc2fb(_0x52476f);},'UbdWr':_0x1f14cb(0x1f7),'yDSEX':'本账号数据/缓存目录:','Autps':function(_0x46efbd,_0x53d0d4,_0x3a2caa){return _0x46efbd(_0x53d0d4,_0x3a2caa);},'kDAOG':_0x1f14cb(0x203),'cuNNY':function(_0x356e97,_0x3b6f8e){return _0x356e97==_0x3b6f8e;}};this[_0x1f14cb(0x265)]=new _0x341878['NodeIQQNTWrapperEngine'](),this[_0x1f14cb(0x1f8)]=new _0x341878['NodeQQNTWrapperUtil'](),this[_0x1f14cb(0x268)]=new _0x341878['NodeIKernelLoginService'](),this[_0x1f14cb(0x257)]=new _0x341878['NodeIQQNTWrapperSession'](),this[_0x1f14cb(0x271)]=new LoginListener(),this[_0x1f14cb(0x271)]['onUserLoggedIn']=_0x1dcf4f=>{const _0x137a0b=_0x1f14cb;_0xac5665[_0x137a0b(0x245)](logError,_0xac5665[_0x137a0b(0x234)](_0xac5665[_0x137a0b(0x234)](_0xac5665[_0x137a0b(0x1df)],_0x1dcf4f),_0xac5665['LXFbM']));},this[_0x1f14cb(0x271)][_0x1f14cb(0x21c)]=_0x276e2f=>{const _0x558aab=_0x1f14cb;this[_0x558aab(0x1c1)](_0x276e2f[_0x558aab(0x1ef)],_0x276e2f[_0x558aab(0x1b2)])[_0x558aab(0x20e)](_0x42bb63=>{const _0xc23e85=_0x558aab,_0x404431={'BbFrf':function(_0x26cc5c,_0x236c9d,_0x5420f1){const _0x268716=_0x4d3b;return _0xac5665[_0x268716(0x22e)](_0x26cc5c,_0x236c9d,_0x5420f1);},'wwZfo':_0xac5665['QgVAu']};selfInfo[_0xc23e85(0x1ef)]=_0x276e2f[_0xc23e85(0x1ef)],selfInfo[_0xc23e85(0x1b2)]=_0x276e2f[_0xc23e85(0x1b2)],napCatConfig[_0xc23e85(0x232)](),setLogLevel(napCatConfig['fileLogLevel'],napCatConfig[_0xc23e85(0x207)]),_0xac5665['osnCl'](enableFileLog,napCatConfig[_0xc23e85(0x1d6)]),_0xac5665[_0xc23e85(0x1c7)](enableConsoleLog,napCatConfig['consoleLog']),_0xac5665[_0xc23e85(0x245)](setLogSelfInfo,selfInfo);const _0x10d17a=_0x47fb73['resolve'](this['dataPath'],_0xac5665[_0xc23e85(0x202)]);_0x2f958f[_0xc23e85(0x260)](_0x10d17a,{'recursive':!![]}),_0xac5665[_0xc23e85(0x22e)](logDebug,_0xac5665[_0xc23e85(0x227)],_0x10d17a),dbUtil['init'](_0x47fb73[_0xc23e85(0x233)](_0x10d17a,'./'+_0x276e2f[_0xc23e85(0x1ef)]+_0xc23e85(0x25b)))[_0xc23e85(0x20e)](()=>{const _0x53ed67=_0xc23e85;this[_0x53ed67(0x1c0)](),this['onLoginSuccessFuncList'][_0x53ed67(0x235)](_0x2b5358=>{const _0xbe3e64=_0x53ed67;new Promise((_0x29acb8,_0x416b50)=>{const _0xb8e8=_0x4d3b,_0x313a43=_0x2b5358(_0x276e2f[_0xb8e8(0x1ef)],_0x276e2f[_0xb8e8(0x1b2)]);_0x313a43 instanceof Promise&&_0x313a43['then'](_0x29acb8)[_0xb8e8(0x221)](_0x416b50);})[_0xbe3e64(0x20e)]();});})[_0xc23e85(0x221)](_0x51d522=>{const _0x36c486=_0xc23e85;_0x404431['BbFrf'](logError,_0x404431[_0x36c486(0x25f)],_0x51d522);});})[_0x558aab(0x221)](_0x4109d8=>{const _0x5d5a5f=_0x558aab;_0xac5665[_0x5d5a5f(0x1e2)](logError,_0x5d5a5f(0x22d),_0x4109d8);throw new Error(_0x5d5a5f(0x228)+JSON[_0x5d5a5f(0x1e9)](_0x4109d8));});},this[_0x1f14cb(0x271)][_0x1f14cb(0x256)]=(_0x4b9413,_0x112772,_0x3353b2)=>{const _0x4d7ab1=_0x1f14cb;_0xac5665[_0x4d7ab1(0x1e2)](logError,_0xac5665[_0x4d7ab1(0x26c)],_0x3353b2),_0xac5665[_0x4d7ab1(0x26e)](_0x4b9413,0x1)&&_0x112772==0x3&&this[_0x4d7ab1(0x268)][_0x4d7ab1(0x1d7)]();},this[_0x1f14cb(0x271)][_0x1f14cb(0x1b6)]=_0x224465=>{const _0x4054a3=_0x1f14cb;logError(_0x4054a3(0x203),_0x224465);},this['loginListener']=new Proxy(this[_0x1f14cb(0x271)],this[_0x1f14cb(0x1dd)]),this['loginService'][_0x1f14cb(0x23d)](new _0x341878[(_0x1f14cb(0x266))](this[_0x1f14cb(0x271)])),this[_0x1f14cb(0x26d)]();}get['dataPath'](){const _0x4330a8=_0xe4e48c,_0x4e1456={'lCeCN':'./.config/QQ'};let _0x19c4cd=this[_0x4330a8(0x1f8)][_0x4330a8(0x1f2)]();return!_0x19c4cd&&(_0x19c4cd=_0x47fb73[_0x4330a8(0x233)](_0x366621[_0x4330a8(0x22c)](),_0x4e1456[_0x4330a8(0x1d4)]),_0x2f958f[_0x4330a8(0x260)](_0x19c4cd,{'recursive':!![]})),_0x19c4cd;}get[_0xe4e48c(0x1da)](){const _0x195c2d=_0xe4e48c,_0x49d37a={'mynVn':_0x195c2d(0x1b7)};return _0x47fb73[_0x195c2d(0x233)](this[_0x195c2d(0x259)],_0x49d37a['mynVn']);}[_0xe4e48c(0x26d)](){const _0x480305=_0xe4e48c;this[_0x480305(0x265)][_0x480305(0x1d2)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x480305(0x1ba)],'os_version':_0x480305(0x208),'use_xlog':!![],'qua':_0x480305(0x1e0)+qqVersionConfigInfo[_0x480305(0x1ba)][_0x480305(0x1d1)]('-','_')+_0x480305(0x1e7),'global_path_config':{'desktopGlobalPath':this[_0x480305(0x1da)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x341878[(_0x480305(0x201))](new GlobalAdapter())),this[_0x480305(0x268)][_0x480305(0x26d)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x480305(0x1da)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0xe4e48c(0x1c1)](_0x44649f,_0x322e37){const _0x27a8cb=_0xe4e48c,_0x5efec9={'MxoyY':function(_0x5b1d46,_0x421ff0){return _0x5b1d46(_0x421ff0);},'clbRS':function(_0x1718c3,_0xa5ba44,_0x577990,_0x2db6df){return _0x1718c3(_0xa5ba44,_0x577990,_0x2db6df);},'Fsenb':function(_0x55652a,_0x159fa2){return _0x55652a(_0x159fa2);},'UANEI':function(_0x239b29,_0x4e4355){return _0x239b29+_0x4e4355;},'sHPXK':_0x27a8cb(0x1fd)};return new Promise((_0x33198a,_0x757c0a)=>{const _0x37e41a=_0x27a8cb,_0x4f391d=_0x5efec9[_0x37e41a(0x272)](genSessionConfig,_0x44649f,_0x322e37,this['dataPath']),_0x1e75b4=new SessionListener();_0x1e75b4['onSessionInitComplete']=_0x5c3e95=>{const _0x5ab1d1=_0x37e41a;if(_0x5c3e95===0x0)return _0x5efec9[_0x5ab1d1(0x1c4)](_0x33198a,0x0);_0x5efec9['MxoyY'](_0x757c0a,_0x5c3e95);},this['session'][_0x37e41a(0x1bc)](_0x4f391d,new _0x341878[(_0x37e41a(0x223))](new DependsAdapter()),new _0x341878['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x341878[(_0x37e41a(0x239))](_0x1e75b4));try{this[_0x37e41a(0x257)][_0x37e41a(0x270)](0x0);}catch(_0x4cbf5d){try{this[_0x37e41a(0x257)][_0x37e41a(0x270)]();}catch(_0x4bea70){_0x5efec9['Fsenb'](_0x757c0a,_0x5efec9[_0x37e41a(0x244)](_0x5efec9[_0x37e41a(0x1b3)],_0x4bea70));}}});}[_0xe4e48c(0x1c0)](){const _0x22b622=_0xe4e48c,_0x19e878={'sbdmN':function(_0x293fd1,_0x569dd1){return _0x293fd1(_0x569dd1);},'wBEQv':function(_0x737680,_0x214778){return _0x737680+_0x214778;},'FizVu':_0x22b622(0x238),'LQaQe':_0x22b622(0x1b8),'TihNu':function(_0x344ea8,_0x2ce713){return _0x344ea8(_0x2ce713);},'QvrbJ':function(_0x2cf4d9,_0x4022fc){return _0x2cf4d9+_0x4022fc;},'Qdpbz':_0x22b622(0x237),'WBXQp':function(_0x1d0cde,_0x242510){return _0x1d0cde===_0x242510;},'adEDB':function(_0x4c64d2,_0x148f05){return _0x4c64d2/_0x148f05;},'geRuL':_0x22b622(0x1e4),'LAYNh':function(_0x163b2c,_0x31236f,_0x4ee971){return _0x163b2c(_0x31236f,_0x4ee971);}},_0x4cc7c6=new MsgListener();_0x4cc7c6[_0x22b622(0x1bf)]=_0x2969bd=>{const _0x4b52b2=_0x22b622,_0x51065c={'lnjeD':function(_0x1479fb,_0x15dc4e){return _0x1479fb===_0x15dc4e;},'UTPMO':function(_0x33eb81,_0x14a8d5){const _0x96bcd7=_0x4d3b;return _0x19e878[_0x96bcd7(0x254)](_0x33eb81,_0x14a8d5);},'Wfpsr':function(_0x1da237,_0x52841d){const _0x4e3edd=_0x4d3b;return _0x19e878[_0x4e3edd(0x1cf)](_0x1da237,_0x52841d);},'AAfCz':function(_0x3235d6,_0x5eb660){const _0x2f52a5=_0x4d3b;return _0x19e878[_0x2f52a5(0x1cf)](_0x3235d6,_0x5eb660);},'DTYrC':_0x19e878[_0x4b52b2(0x21d)],'LsTQL':_0x19e878['LQaQe']};_0x2969bd['map'](_0x428390=>{const _0xfd593b=_0x4b52b2;_0x51065c[_0xfd593b(0x22f)](_0x428390[_0xfd593b(0x24e)],0x2)&&_0x51065c['UTPMO'](log,_0x51065c[_0xfd593b(0x1e8)](_0x51065c[_0xfd593b(0x1be)](_0x51065c[_0xfd593b(0x1fb)],_0x428390[_0xfd593b(0x269)]),_0x51065c[_0xfd593b(0x21f)]));});},_0x4cc7c6['onKickedOffLine']=_0x2e09ce=>{const _0x1035f0=_0x22b622;_0x19e878[_0x1035f0(0x250)](log,_0x19e878[_0x1035f0(0x1f3)](_0x19e878[_0x1035f0(0x20f)],_0x2e09ce[_0x1035f0(0x217)])+']\x20'+_0x2e09ce[_0x1035f0(0x1f9)]);},_0x4cc7c6[_0x22b622(0x1d9)]=_0xe7cba7=>{const _0x431f5f=_0x22b622;stat['packet_received']+=0x1,_0xe7cba7[_0x431f5f(0x235)](_0xbb45cb=>{const _0x100779=_0x431f5f;_0x19e878['WBXQp'](_0xbb45cb[_0x100779(0x23a)],'0')?dbUtil[_0x100779(0x21e)](_0xbb45cb)[_0x100779(0x20e)]()[_0x100779(0x221)]():dbUtil[_0x100779(0x1c2)](_0xbb45cb[_0x100779(0x25c)])[_0x100779(0x20e)](_0x193d6d=>{const _0x26fffb=_0x100779;_0x193d6d&&(_0x193d6d[_0x26fffb(0x23a)]=_0xbb45cb[_0x26fffb(0x23a)],dbUtil[_0x26fffb(0x26f)](_0x193d6d)['then']());});});},_0x4cc7c6[_0x22b622(0x262)]=_0xa10d97=>{const _0x3f8ed1=_0x22b622;stat[_0x3f8ed1(0x224)]+=0x1,stat[_0x3f8ed1(0x23f)]+=0x1,stat[_0x3f8ed1(0x1ee)]=Math[_0x3f8ed1(0x248)](_0x19e878[_0x3f8ed1(0x247)](Date['now'](),0x3e8));},_0x4cc7c6[_0x22b622(0x1ff)]=_0x496ced=>{const _0x4e69b1=_0x22b622;stat[_0x4e69b1(0x23c)]+=0x1,stat[_0x4e69b1(0x204)]+=_0x496ced[_0x4e69b1(0x1d5)],stat[_0x4e69b1(0x1ee)]=Math['floor'](_0x19e878[_0x4e69b1(0x247)](Date[_0x4e69b1(0x230)](),0x3e8));},_0x4cc7c6[_0x22b622(0x1cd)]=(..._0x46ac49)=>{const _0x45d3da=_0x22b622;stat[_0x45d3da(0x23c)]+=0x1;},this[_0x22b622(0x1bb)](_0x4cc7c6);const _0x359396=new BuddyListener();_0x359396['onBuddyListChange']=_0x49b8d=>{const _0x10efad=_0x22b622;rawFriends[_0x10efad(0x1d5)]=0x0,rawFriends[_0x10efad(0x216)](..._0x49b8d);for(const _0x22eaea of _0x49b8d){for(const _0x32af76 of _0x22eaea[_0x10efad(0x20a)]){const _0x1adece=friends[_0x10efad(0x212)](_0x32af76[_0x10efad(0x1b2)]);uid2UinMap[_0x32af76[_0x10efad(0x1b2)]]=_0x32af76[_0x10efad(0x1ef)],_0x1adece?Object[_0x10efad(0x1f6)](_0x1adece,_0x32af76):friends['set'](_0x32af76[_0x10efad(0x1b2)],_0x32af76);}}},this[_0x22b622(0x1bb)](_0x359396),this['session'][_0x22b622(0x209)]()[_0x22b622(0x263)](!![])[_0x22b622(0x20e)](_0xb3d51=>{});const _0x56ff2a=new ProfileListener();_0x56ff2a[_0x22b622(0x1f4)]=_0x52e007=>{const _0x4848c6=_0x22b622;_0x19e878[_0x4848c6(0x1c5)](_0x52e007[_0x4848c6(0x1b2)],selfInfo[_0x4848c6(0x1b2)])&&Object[_0x4848c6(0x1f6)](selfInfo,_0x52e007);},_0x56ff2a[_0x22b622(0x1b4)]=_0x2c9846=>{},this[_0x22b622(0x1bb)](_0x56ff2a);const _0x2abe00=new GroupListener();_0x2abe00[_0x22b622(0x1ea)]=(_0x366c9c,_0x242de1)=>{const _0x1d570d=_0x22b622,_0x1e8029={'vMvKM':_0x19e878[_0x1d570d(0x1fe)]};_0x242de1[_0x1d570d(0x235)](_0x286b6a=>{const _0x2fa39c=_0x1d570d,_0x2ca47b=groups['get'](_0x286b6a[_0x2fa39c(0x24a)]);if(_0x2ca47b)Object[_0x2fa39c(0x1f6)](_0x2ca47b,_0x286b6a);else{groups[_0x2fa39c(0x24d)](_0x286b6a['groupCode'],_0x286b6a);const _0x38fc67=this[_0x2fa39c(0x257)][_0x2fa39c(0x200)]()[_0x2fa39c(0x226)](_0x286b6a['groupCode'],_0x1e8029[_0x2fa39c(0x252)]);this[_0x2fa39c(0x257)][_0x2fa39c(0x200)]()[_0x2fa39c(0x205)](_0x38fc67,undefined,0xbb8)['then'](_0x2f9b6a=>{});}});},_0x2abe00[_0x22b622(0x22b)]=_0x3f2c17=>{const _0x152463=_0x22b622,_0x595ba4=_0x3f2c17[_0x152463(0x1f0)][_0x152463(0x1fa)]('_')[0x0];if(groupMembers['has'](_0x595ba4)){const _0xa3ccd1=groupMembers['get'](_0x595ba4);_0x3f2c17[_0x152463(0x206)][_0x152463(0x21a)]((_0x25d4d,_0x542aaf)=>{const _0x235044=_0x152463,_0x375034=_0xa3ccd1[_0x235044(0x212)](_0x542aaf);_0x375034?Object[_0x235044(0x1f6)](_0x375034,_0x25d4d):_0xa3ccd1[_0x235044(0x24d)](_0x542aaf,_0x25d4d);});}else groupMembers[_0x152463(0x24d)](_0x595ba4,_0x3f2c17[_0x152463(0x206)]);},_0x2abe00[_0x22b622(0x249)]=(_0x1ec042,_0x2cf87c,_0x422388)=>{const _0x6c2e0c=_0x22b622;_0x19e878[_0x6c2e0c(0x1c5)](_0x2cf87c,0x0)&&_0x422388[_0x6c2e0c(0x212)](selfInfo[_0x6c2e0c(0x1b2)])&&_0x422388[_0x6c2e0c(0x212)](selfInfo[_0x6c2e0c(0x1b2)])?.['isDelete']&&_0x19e878['LAYNh'](setTimeout,()=>{const _0x110d36=_0x6c2e0c;groups[_0x110d36(0x25a)](_0x1ec042);},0x1388);_0x422388[_0x6c2e0c(0x21a)]((_0x59df78,_0x17ff24)=>{const _0x4d89c9=_0x6c2e0c;uid2UinMap[_0x17ff24]=_0x59df78[_0x4d89c9(0x1ef)];});const _0x588131=groupMembers[_0x6c2e0c(0x212)](_0x1ec042);_0x588131?_0x422388['forEach']((_0x1adcbb,_0x2a24d7)=>{const _0x71e90a=_0x6c2e0c,_0x70eed3=_0x588131[_0x71e90a(0x212)](_0x2a24d7);_0x70eed3?Object[_0x71e90a(0x1f6)](_0x70eed3,_0x1adcbb):_0x588131[_0x71e90a(0x24d)](_0x2a24d7,_0x1adcbb);}):groupMembers[_0x6c2e0c(0x24d)](_0x1ec042,_0x422388);},this[_0x22b622(0x1bb)](_0x2abe00);}['addListener'](_0x1fbe8d){const _0x3ce424=_0xe4e48c,_0x255c38={'iYkkM':_0x3ce424(0x1db),'MWTJu':'GroupListener','WJwcw':_0x3ce424(0x24c)};_0x1fbe8d=new Proxy(_0x1fbe8d,this[_0x3ce424(0x1dd)]);switch(_0x1fbe8d[_0x3ce424(0x214)][_0x3ce424(0x20b)]){case _0x255c38[_0x3ce424(0x240)]:{return this['session']['getBuddyService']()[_0x3ce424(0x25e)](new _0x341878[(_0x3ce424(0x1d8))](_0x1fbe8d));}case _0x255c38[_0x3ce424(0x211)]:{return this[_0x3ce424(0x257)][_0x3ce424(0x200)]()['addKernelGroupListener'](new _0x341878[(_0x3ce424(0x215))](_0x1fbe8d));}case _0x255c38[_0x3ce424(0x231)]:{return this['session'][_0x3ce424(0x242)]()[_0x3ce424(0x220)](new _0x341878[(_0x3ce424(0x1f1))](_0x1fbe8d));}case _0x3ce424(0x261):{return this[_0x3ce424(0x257)][_0x3ce424(0x251)]()[_0x3ce424(0x23e)](new _0x341878[(_0x3ce424(0x21b))](_0x1fbe8d));}default:return-0x1;}}['onLoginSuccess'](_0x1cef10){const _0x114cf1=_0xe4e48c;this['onLoginSuccessFuncList'][_0x114cf1(0x216)](_0x1cef10);}async[_0xe4e48c(0x1b5)](_0x45d5d0){const _0x32d661=_0xe4e48c,_0x5dfa9b={'QiDoe':function(_0x30c413,_0x1d96ec){return _0x30c413!==_0x1d96ec;},'bdYPe':function(_0x509622,_0x256704){return _0x509622(_0x256704);},'ceyrg':function(_0xc6ef59,_0x422248){return _0xc6ef59+_0x422248;},'IJbpY':'快速登录失败\x20'},_0x4ba406=await this[_0x32d661(0x268)]['getLoginList']();if(_0x5dfa9b[_0x32d661(0x243)](_0x4ba406['result'],0x0))throw new Error(_0x32d661(0x1de));const _0x21e6ec=_0x4ba406[_0x32d661(0x1f5)][_0x32d661(0x222)](_0x57b894=>_0x57b894['uin']===_0x45d5d0);if(!_0x21e6ec||!_0x21e6ec?.[_0x32d661(0x246)])throw new Error(_0x45d5d0+_0x32d661(0x218));await _0x5dfa9b[_0x32d661(0x1e1)](sleep,0x3e8);const _0x375fac=await this[_0x32d661(0x268)][_0x32d661(0x1bd)](_0x45d5d0);if(!_0x375fac[_0x32d661(0x24f)])throw new Error(_0x5dfa9b[_0x32d661(0x1cc)](_0x5dfa9b[_0x32d661(0x1fc)],_0x375fac['loginErrorInfo'][_0x32d661(0x264)]));return _0x375fac;}async[_0xe4e48c(0x255)](_0x3fd7e1){const _0x3a4123=_0xe4e48c,_0x286999={'dnxkS':_0x3a4123(0x229)};return new Promise((_0x286edb,_0x39d503)=>{const _0x1465d1=_0x3a4123,_0x40480d={'uthWD':_0x286999[_0x1465d1(0x1b9)]};this['loginListener'][_0x1465d1(0x1b1)]=_0x2837a6=>{const _0x4dd314=_0x1465d1,_0xee76d6=_0x2837a6[_0x4dd314(0x1c9)][_0x4dd314(0x1fa)](_0x40480d[_0x4dd314(0x1ed)])[0x1],_0x442bb9=Buffer[_0x4dd314(0x1ca)](_0xee76d6,_0x4dd314(0x22a));_0x3fd7e1(_0x2837a6[_0x4dd314(0x253)],_0x2837a6[_0x4dd314(0x1c9)],_0x442bb9);},this[_0x1465d1(0x268)][_0x1465d1(0x1d7)]();});}async[_0xe4e48c(0x1ec)](_0x585bfa,_0x32f55e,_0x4d8ea0,_0x4b4f01,_0x5ed941){const _0x2e252b=_0xe4e48c,_0x214d4e={'RXmKR':'hex','btnuP':function(_0x297538,_0x4487f5){return _0x297538&&_0x4487f5;},'adWEH':function(_0x1700d3,_0x13e332){return _0x1700d3||_0x13e332;},'rPuCr':function(_0x4f40e9,_0x115575){return _0x4f40e9||_0x115575;},'mCXDL':function(_0x397487,_0x1fb9d9){return _0x397487(_0x1fb9d9);},'QjNJz':_0x2e252b(0x219),'rHhOM':_0x2e252b(0x1d0)},_0x1f2694=_0xb1e5da[_0x2e252b(0x1ce)]('md5')['update'](_0x32f55e)[_0x2e252b(0x1dc)](_0x214d4e[_0x2e252b(0x210)]),_0x1b23a2={'uin':_0x585bfa,'passwordMd5':_0x1f2694,'step':_0x214d4e[_0x2e252b(0x25d)](_0x4d8ea0,_0x4b4f01)&&_0x5ed941?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4d8ea0||'','proofWaterRand':_0x214d4e[_0x2e252b(0x26b)](_0x4b4f01,''),'proofWaterSid':_0x214d4e[_0x2e252b(0x258)](_0x5ed941,'')};await this[_0x2e252b(0x268)][_0x2e252b(0x1c3)](),await _0x214d4e['mCXDL'](sleep,0x3e8);const _0xb115fb=await this[_0x2e252b(0x268)][_0x2e252b(0x1ec)](_0x1b23a2);switch(_0xb115fb['result']){case'0':{break;}case _0x214d4e[_0x2e252b(0x20d)]:{break;}case'4':case _0x214d4e[_0x2e252b(0x1e5)]:default:}}async['getQuickLoginList'](){const _0x276a4b=_0xe4e48c,_0xe70eb3=await this[_0x276a4b(0x268)][_0x276a4b(0x1c3)]();return _0xe70eb3;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x150935=_0x59d0;(function(_0x3a08b5,_0x11326a){const _0x34e696=_0x59d0,_0x43395e=_0x3a08b5();while(!![]){try{const _0x59beb5=parseInt(_0x34e696(0x1f3))/0x1+parseInt(_0x34e696(0x181))/0x2+parseInt(_0x34e696(0x19d))/0x3*(parseInt(_0x34e696(0x1a9))/0x4)+parseInt(_0x34e696(0x218))/0x5*(parseInt(_0x34e696(0x223))/0x6)+-parseInt(_0x34e696(0x19e))/0x7*(-parseInt(_0x34e696(0x1d9))/0x8)+parseInt(_0x34e696(0x20c))/0x9+-parseInt(_0x34e696(0x219))/0xa;if(_0x59beb5===_0x11326a)break;else _0x43395e['push'](_0x43395e['shift']());}catch(_0x15bb74){_0x43395e['push'](_0x43395e['shift']());}}}(_0x28cd,0x19c72));import _0x132c07 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x3a70ba from'node:path';import _0x45c4fd from'node:os';import _0x431708 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';function _0x28cd(){const _0x4735c8=['addKernelMsgListener','addMsg','4GKjjeh','onGroupListUpdate','quickLoginWithUin','bUpKu','digest','OiVkm','initDataListener','本账号数据/缓存目录:','RGBWK','from','NodeIKernelGroupListener','addKernelGroupListener','eWPyj','map','message_sent','floor','isQuickLogin','now','onAddSendMsg','XptUP','VwZCG','zvGpc','NodeIKernelSessionListener','init\x20failed\x20','NodeIDispatcherAdapter','replace','WOOCc','assign','resolve','base64','onQRCodeGetPicture','DSfBC','md5','SEynN','140022013','getMsgService','onSelfStatusChanged','UELfh','140022008','_GW_B','initSession','-v2.db','没有可快速登录的QQ号','jUTqV','xspwj','getLoginList','pTVdt','NodeIDependsAdapter','48tKerjp','bLLvA','infos','./nt_qq/global','./.config/QQ','onLoginSuccess','wrMDQ','startNT','split','vOqSK','devUid','msgId','EqJqd','quickLogin','NodeIQQNTWrapperSession','get','addKernelProfileListener','jeYza','initConfig','RpvXh','hex','NodeIKernelBuddyListener','OUzIp','fiCro','passwordLogin','addListener','103993sIyORx','GGyFl','buddyList','onUserLoggedIn','message_received','qrLogin','uid','Hobqb','packet_sent','NodeIKernelLoginService','NodeIKernelProfileListener','nrHfr','rpkYm','ssWPw','onLoginSuccessFuncList','hyduI','catch','consoleLog','uin','createHash','push','onQRCodeLoginSucceed','updateMsg','forEach','engine','1341252hYAgcF','LetQp','init','INRpG','Windows\x2010\x20Pro','onSessionInitComplete','recallTime','DSYhX','loginService','stringify','homedir','getBuddyList','9840OVrjzB','5720670GnwKSm','dataPath','has','mOYSW','update','Opblf','length','createMemberListScene','then','NodeIGlobalAdapter','558FWFqqO','sMbnE','rrMhO','constructor','groupMemberList_MainWindow','ProfileListener','BuddyListener','loginListener','dataPathGlobal','addKernelLoginListener','V1_WIN_NQ_','BBDxT','set','getMsgByLongId','fileLog','快速登录不可用','账号设备(','lrUxC','session','result','45266Dumqjm','onQRCodeSessionFailed','getProfileService','isDelete','YEawY','addKernelBuddyListener','czvih','initSession\x20failed','mkdirSync','data:image/png;base64,','WyaGv','fileLogLevel','QwDnT','当前账号(','rFgtM','getBuddyService','登录失败','TnPLx','proxyHandler','packet_received','clientType','pngBase64QrcodeData','HrgUQ','onRecvMsg','onLoginFailed','name','find','getNextMemberList','613527WtNUfY','16877SvuqUM','\x20has\x20no\x20method\x20','onMsgInfoListUpdate','getGroupService','giOrc','curVersion','util','[KickedOffLine]\x20[','groupCode'];_0x28cd=function(){return _0x4735c8;};return _0x28cd();}import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x285363 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';function _0x59d0(_0x30dc51,_0x2d3835){const _0x28cd62=_0x28cd();return _0x59d0=function(_0x59d07e,_0x462e27){_0x59d07e=_0x59d07e-0x171;let _0x25a08c=_0x28cd62[_0x59d07e];return _0x25a08c;},_0x59d0(_0x30dc51,_0x2d3835);}import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];[_0x150935(0x1a4)];[_0x150935(0x20b)];['loginListener'];['loginService'];[_0x150935(0x201)]=[];[_0x150935(0x193)]={'get'(target,prop,receiver){const _0xf9f79d=_0x150935,RKrzbn={'GGyFl':function(callee,param1){return callee(param1);},'fiCro':function(x,y){return x===y;},'rFgtM':'undefined'};if(RKrzbn[_0xf9f79d(0x1f0)](typeof target[prop],RKrzbn[_0xf9f79d(0x18f)]))return(...args)=>{const _0x3bef27=_0xf9f79d;RKrzbn[_0x3bef27(0x1f4)](logDebug,target[_0x3bef27(0x226)][_0x3bef27(0x19a)]+_0x3bef27(0x19f)+prop);};return Reflect[_0xf9f79d(0x1e8)](target,prop,receiver);}};constructor(){const _0x4b95c4=_0x150935,_0x2fc3f1={'lrUxC':function(_0x214eb7,_0x58976b){return _0x214eb7(_0x58976b);},'wrMDQ':function(_0x9cb056,_0x58a3d4){return _0x9cb056+_0x58a3d4;},'xNywm':_0x4b95c4(0x18e),'WyaGv':')已登录,无法重复登录','giOrc':function(_0x3eb50b,_0x379d19,_0x10b65f){return _0x3eb50b(_0x379d19,_0x10b65f);},'Opblf':function(_0x7a6ce0,_0x59fa22,_0x2b4995){return _0x7a6ce0(_0x59fa22,_0x2b4995);},'YEawY':'./NapCat/data','GRQdv':function(_0x401c7e,_0x104743,_0x4d65ea){return _0x401c7e(_0x104743,_0x4d65ea);},'eWPyj':function(_0x38910f,_0x47294a,_0x203cdc){return _0x38910f(_0x47294a,_0x203cdc);},'TnPLx':_0x4b95c4(0x191),'mOYSW':function(_0x283790,_0x196b06){return _0x283790==_0x196b06;}};this[_0x4b95c4(0x20b)]=new _0x132c07['NodeIQQNTWrapperEngine'](),this[_0x4b95c4(0x1a4)]=new _0x132c07['NodeQQNTWrapperUtil'](),this[_0x4b95c4(0x214)]=new _0x132c07[(_0x4b95c4(0x1fc))](),this[_0x4b95c4(0x17f)]=new _0x132c07[(_0x4b95c4(0x1e7))](),this[_0x4b95c4(0x174)]=new LoginListener(),this['loginListener'][_0x4b95c4(0x1f6)]=_0x15d2ce=>{const _0x45ebb7=_0x4b95c4;_0x2fc3f1[_0x45ebb7(0x17e)](logError,_0x2fc3f1[_0x45ebb7(0x1df)](_0x2fc3f1[_0x45ebb7(0x1df)](_0x2fc3f1['xNywm'],_0x15d2ce),_0x2fc3f1[_0x45ebb7(0x18b)]));},this['loginListener'][_0x4b95c4(0x208)]=_0x597cab=>{const _0x35c81c=_0x4b95c4,_0x56b40f={'QwDnT':function(_0x387d41,_0x4b81fc,_0x42daed){return _0x2fc3f1['GRQdv'](_0x387d41,_0x4b81fc,_0x42daed);},'gTMVm':function(_0x3363dc,_0x34ea9a){return _0x3363dc instanceof _0x34ea9a;}};this['initSession'](_0x597cab[_0x35c81c(0x205)],_0x597cab['uid'])['then'](_0x5b4937=>{const _0x5036c7=_0x35c81c,_0xb193f2={'cdMot':function(_0x941e09,_0x42b252,_0x4c295e){return _0x2fc3f1['giOrc'](_0x941e09,_0x42b252,_0x4c295e);}};selfInfo[_0x5036c7(0x205)]=_0x597cab[_0x5036c7(0x205)],selfInfo['uid']=_0x597cab['uid'],napCatConfig['read'](),_0x2fc3f1[_0x5036c7(0x21e)](setLogLevel,napCatConfig[_0x5036c7(0x18c)],napCatConfig['consoleLogLevel']),enableFileLog(napCatConfig[_0x5036c7(0x17b)]),enableConsoleLog(napCatConfig[_0x5036c7(0x204)]),_0x2fc3f1[_0x5036c7(0x17e)](setLogSelfInfo,selfInfo);const _0x50e0c1=_0x3a70ba[_0x5036c7(0x1c5)](this[_0x5036c7(0x21a)],_0x2fc3f1[_0x5036c7(0x185)]);_0x431708[_0x5036c7(0x189)](_0x50e0c1,{'recursive':!![]}),_0x2fc3f1[_0x5036c7(0x1a2)](logDebug,_0x5036c7(0x1b0),_0x50e0c1),dbUtil[_0x5036c7(0x20e)](_0x3a70ba[_0x5036c7(0x1c5)](_0x50e0c1,'./'+_0x597cab['uin']+_0x5036c7(0x1d2)))[_0x5036c7(0x221)](()=>{const _0x1eebd0=_0x5036c7,_0xff2fff={'rTvEE':function(_0x57e7dd,_0x1e04a7,_0x8a0d1e){const _0x1133c9=_0x59d0;return _0x56b40f[_0x1133c9(0x18d)](_0x57e7dd,_0x1e04a7,_0x8a0d1e);},'RGBWK':function(_0x1d1968,_0x5ef908){return _0x56b40f['gTMVm'](_0x1d1968,_0x5ef908);}};this[_0x1eebd0(0x1af)](),this[_0x1eebd0(0x201)][_0x1eebd0(0x1b6)](_0x2c3303=>{const _0x5dec54=_0x1eebd0;new Promise((_0x153cc0,_0xfc6012)=>{const _0x15e14=_0x59d0,_0x3f79f2=_0xff2fff['rTvEE'](_0x2c3303,_0x597cab[_0x15e14(0x205)],_0x597cab['uid']);_0xff2fff[_0x15e14(0x1b1)](_0x3f79f2,Promise)&&_0x3f79f2['then'](_0x153cc0)[_0x15e14(0x203)](_0xfc6012);})[_0x5dec54(0x221)]();});})[_0x5036c7(0x203)](_0x2b2377=>{_0xb193f2['cdMot'](logError,'数据库初始化失败',_0x2b2377);});})[_0x35c81c(0x203)](_0x380ffa=>{const _0x4b57f4=_0x35c81c;_0x2fc3f1['Opblf'](logError,_0x4b57f4(0x188),_0x380ffa);throw new Error('启动失败:\x20'+JSON[_0x4b57f4(0x215)](_0x380ffa));});},this[_0x4b95c4(0x174)][_0x4b95c4(0x182)]=(_0x16276f,_0x53b14d,_0x2a96b9)=>{const _0x4f40d3=_0x4b95c4;_0x2fc3f1[_0x4f40d3(0x1b5)](logError,_0x2fc3f1[_0x4f40d3(0x192)],_0x2a96b9),_0x16276f==0x1&&_0x2fc3f1[_0x4f40d3(0x21c)](_0x53b14d,0x3)&&this['loginService']['getQRCodePicture']();},this[_0x4b95c4(0x174)][_0x4b95c4(0x199)]=_0x1beadc=>{const _0x48ed62=_0x4b95c4;logError(_0x2fc3f1[_0x48ed62(0x192)],_0x1beadc);},this['loginListener']=new Proxy(this[_0x4b95c4(0x174)],this[_0x4b95c4(0x193)]),this['loginService'][_0x4b95c4(0x176)](new _0x132c07['NodeIKernelLoginListener'](this[_0x4b95c4(0x174)])),this[_0x4b95c4(0x1eb)]();}get['dataPath'](){const _0x43ab6a=_0x150935;let _0xdb9d4b=this['util']['getNTUserDataInfoConfig']();return!_0xdb9d4b&&(_0xdb9d4b=_0x3a70ba['resolve'](_0x45c4fd[_0x43ab6a(0x216)](),_0x43ab6a(0x1dd)),_0x431708[_0x43ab6a(0x189)](_0xdb9d4b,{'recursive':!![]})),_0xdb9d4b;}get[_0x150935(0x175)](){const _0x37c287=_0x150935,_0x47e8ce={'HrgUQ':_0x37c287(0x1dc)};return _0x3a70ba[_0x37c287(0x1c5)](this[_0x37c287(0x21a)],_0x47e8ce[_0x37c287(0x197)]);}[_0x150935(0x1eb)](){const _0x1a4fe6=_0x150935,_0x3b58af={'EqJqd':_0x1a4fe6(0x210)};this[_0x1a4fe6(0x20b)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1a4fe6(0x1a3)],'os_version':_0x3b58af[_0x1a4fe6(0x1e5)],'use_xlog':!![],'qua':_0x1a4fe6(0x177)+qqVersionConfigInfo['curVersion'][_0x1a4fe6(0x1c2)]('-','_')+_0x1a4fe6(0x1d0),'global_path_config':{'desktopGlobalPath':this[_0x1a4fe6(0x175)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x132c07[(_0x1a4fe6(0x222))](new GlobalAdapter())),this[_0x1a4fe6(0x214)]['initConfig']({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x1a4fe6(0x175)],'clientVer':qqVersionConfigInfo[_0x1a4fe6(0x1a3)],'hostName':hostname});}[_0x150935(0x1d1)](_0x1ae2f5,_0x788a67){const _0xe886d3=_0x150935,_0x1e0f56={'ibwNW':function(_0x1f0a61,_0x59510b){return _0x1f0a61(_0x59510b);},'bjfGJ':function(_0x132812,_0xac3acd,_0x10d56f,_0x100f88){return _0x132812(_0xac3acd,_0x10d56f,_0x100f88);},'zvGpc':function(_0x12457d,_0x4ec8df){return _0x12457d(_0x4ec8df);},'bLLvA':function(_0x345a76,_0x1a6829){return _0x345a76+_0x1a6829;},'kUnAJ':_0xe886d3(0x1c0)};return new Promise((_0x5d8996,_0x502736)=>{const _0x53f614=_0xe886d3,_0x3baa15={'LetQp':function(_0x478336,_0x47cf49){return _0x478336===_0x47cf49;},'ssWPw':function(_0x280876,_0x373c0d){return _0x1e0f56['ibwNW'](_0x280876,_0x373c0d);}},_0x290d29=_0x1e0f56['bjfGJ'](genSessionConfig,_0x1ae2f5,_0x788a67,this[_0x53f614(0x21a)]),_0x2828a7=new SessionListener();_0x2828a7[_0x53f614(0x211)]=_0x8ff1b2=>{const _0x37210e=_0x53f614;if(_0x3baa15[_0x37210e(0x20d)](_0x8ff1b2,0x0))return _0x3baa15[_0x37210e(0x200)](_0x5d8996,0x0);_0x3baa15[_0x37210e(0x200)](_0x502736,_0x8ff1b2);},this[_0x53f614(0x17f)][_0x53f614(0x20e)](_0x290d29,new _0x132c07[(_0x53f614(0x1d8))](new DependsAdapter()),new _0x132c07[(_0x53f614(0x1c1))](new DispatcherAdapter()),new _0x132c07[(_0x53f614(0x1bf))](_0x2828a7));try{this[_0x53f614(0x17f)][_0x53f614(0x1e0)](0x0);}catch(_0x4e323b){try{this[_0x53f614(0x17f)]['startNT']();}catch(_0x51c303){_0x1e0f56[_0x53f614(0x1be)](_0x502736,_0x1e0f56[_0x53f614(0x1da)](_0x1e0f56['kUnAJ'],_0x51c303));}}});}['initDataListener'](){const _0x71af15=_0x150935,_0x4a88e2={'SEynN':function(_0x3c55ff,_0x14b048){return _0x3c55ff===_0x14b048;},'nrHfr':function(_0x18a14c,_0x109ca2){return _0x18a14c(_0x109ca2);},'RpvXh':function(_0x17756f,_0x29b8b7){return _0x17756f+_0x29b8b7;},'VwZCG':_0x71af15(0x17d),'INRpG':')\x20在线状态变更','OUzIp':function(_0x409769,_0x474c73){return _0x409769(_0x474c73);},'jUTqV':function(_0xf20026,_0x57018a){return _0xf20026+_0x57018a;},'NzvDj':function(_0x175ba8,_0x5a75ca){return _0x175ba8/_0x5a75ca;}},_0x3279f5=new MsgListener();_0x3279f5['onLineDev']=_0x5d6df0=>{const _0x5de038=_0x71af15,_0xe07b93={'vOqSK':function(_0x3e125d,_0x517bff){const _0xf81f34=_0x59d0;return _0x4a88e2[_0xf81f34(0x1ca)](_0x3e125d,_0x517bff);},'czvih':function(_0x563747,_0xc0bdd0){const _0x416af0=_0x59d0;return _0x4a88e2[_0x416af0(0x1fe)](_0x563747,_0xc0bdd0);},'BBDxT':function(_0x143bac,_0x2e8af6){return _0x143bac+_0x2e8af6;},'xspwj':function(_0x346e1c,_0x59360d){const _0x5d8ce2=_0x59d0;return _0x4a88e2[_0x5d8ce2(0x1ec)](_0x346e1c,_0x59360d);},'sMbnE':_0x4a88e2[_0x5de038(0x1bd)],'DSYhX':_0x4a88e2[_0x5de038(0x20f)]};_0x5d6df0['map'](_0x37dbce=>{const _0x269c00=_0x5de038;_0xe07b93[_0x269c00(0x1e2)](_0x37dbce[_0x269c00(0x195)],0x2)&&_0xe07b93[_0x269c00(0x187)](log,_0xe07b93[_0x269c00(0x178)](_0xe07b93[_0x269c00(0x1d5)](_0xe07b93[_0x269c00(0x224)],_0x37dbce[_0x269c00(0x1e3)]),_0xe07b93[_0x269c00(0x213)]));});},_0x3279f5['onKickedOffLine']=_0x112e9a=>{const _0x552490=_0x71af15;_0x4a88e2[_0x552490(0x1ef)](log,_0x4a88e2[_0x552490(0x1ec)](_0x4a88e2[_0x552490(0x1d4)](_0x552490(0x1a5)+_0x112e9a['tipsTitle'],']\x20'),_0x112e9a['tipsDesc']));},_0x3279f5[_0x71af15(0x1a0)]=_0xeca334=>{const _0xe41ef6=_0x71af15;stat[_0xe41ef6(0x194)]+=0x1,_0xeca334[_0xe41ef6(0x1b6)](_0x3c0133=>{const _0x12d3e1=_0xe41ef6;_0x3c0133[_0x12d3e1(0x212)]==='0'?dbUtil[_0x12d3e1(0x1a8)](_0x3c0133)[_0x12d3e1(0x221)]()[_0x12d3e1(0x203)]():dbUtil[_0x12d3e1(0x17a)](_0x3c0133[_0x12d3e1(0x1e4)])[_0x12d3e1(0x221)](_0x36e46a=>{const _0xc9e526=_0x12d3e1;_0x36e46a&&(_0x36e46a[_0xc9e526(0x212)]=_0x3c0133[_0xc9e526(0x212)],dbUtil[_0xc9e526(0x209)](_0x36e46a)[_0xc9e526(0x221)]());});});},_0x3279f5[_0x71af15(0x1bb)]=_0x582026=>{const _0x28a7af=_0x71af15;stat[_0x28a7af(0x1fb)]+=0x1,stat[_0x28a7af(0x1b7)]+=0x1,stat['last_message_time']=Math[_0x28a7af(0x1b8)](_0x4a88e2['NzvDj'](Date[_0x28a7af(0x1ba)](),0x3e8));},_0x3279f5[_0x71af15(0x198)]=_0x5f0054=>{const _0x4ddbb2=_0x71af15;stat[_0x4ddbb2(0x194)]+=0x1,stat[_0x4ddbb2(0x1f7)]+=_0x5f0054['length'],stat['last_message_time']=Math['floor'](Date[_0x4ddbb2(0x1ba)]()/0x3e8);},_0x3279f5['onRecvSysMsg']=(..._0x1017eb)=>{const _0x28b9bf=_0x71af15;stat[_0x28b9bf(0x194)]+=0x1;},this['addListener'](_0x3279f5);const _0xfa14a0=new BuddyListener();_0xfa14a0['onBuddyListChange']=_0x574e6b=>{const _0x3cb678=_0x71af15;rawFriends[_0x3cb678(0x21f)]=0x0,rawFriends['push'](..._0x574e6b);for(const _0x18efb7 of _0x574e6b){for(const _0x1e576f of _0x18efb7[_0x3cb678(0x1f5)]){const _0x72f347=friends['get'](_0x1e576f[_0x3cb678(0x1f9)]);uid2UinMap[_0x1e576f['uid']]=_0x1e576f['uin'],_0x72f347?Object['assign'](_0x72f347,_0x1e576f):friends[_0x3cb678(0x179)](_0x1e576f[_0x3cb678(0x1f9)],_0x1e576f);}}},this['addListener'](_0xfa14a0),this[_0x71af15(0x17f)][_0x71af15(0x190)]()[_0x71af15(0x217)](!![])[_0x71af15(0x221)](_0x53d5c1=>{});const _0x438d9e=new ProfileListener();_0x438d9e['onProfileDetailInfoChanged']=_0xb232f4=>{const _0xfec988=_0x71af15;_0x4a88e2[_0xfec988(0x1ca)](_0xb232f4[_0xfec988(0x1f9)],selfInfo[_0xfec988(0x1f9)])&&Object[_0xfec988(0x1c4)](selfInfo,_0xb232f4);},_0x438d9e[_0x71af15(0x1cd)]=_0x33ca9a=>{},this[_0x71af15(0x1f2)](_0x438d9e);const _0x5a4ef4=new GroupListener();_0x5a4ef4[_0x71af15(0x1aa)]=(_0x3f5c4b,_0x47b7eb)=>{_0x47b7eb['map'](_0x205927=>{const _0x3e6c03=_0x59d0,_0x5a6141=groups[_0x3e6c03(0x1e8)](_0x205927[_0x3e6c03(0x1a6)]);if(_0x5a6141)Object[_0x3e6c03(0x1c4)](_0x5a6141,_0x205927);else{groups[_0x3e6c03(0x179)](_0x205927[_0x3e6c03(0x1a6)],_0x205927);const _0x1a9a23=this[_0x3e6c03(0x17f)][_0x3e6c03(0x1a1)]()[_0x3e6c03(0x220)](_0x205927[_0x3e6c03(0x1a6)],_0x3e6c03(0x171));this['session'][_0x3e6c03(0x1a1)]()[_0x3e6c03(0x19c)](_0x1a9a23,undefined,0xbb8)[_0x3e6c03(0x221)](_0x53e882=>{});}});},_0x5a4ef4['onMemberListChange']=_0x32103c=>{const _0x1cd223=_0x71af15,_0x398ca6=_0x32103c['sceneId'][_0x1cd223(0x1e1)]('_')[0x0];if(groupMembers[_0x1cd223(0x21b)](_0x398ca6)){const _0x10a3d5=groupMembers['get'](_0x398ca6);_0x32103c[_0x1cd223(0x1db)][_0x1cd223(0x20a)]((_0x571b6d,_0xefb626)=>{const _0x4a70eb=_0x1cd223,_0x3670a5=_0x10a3d5[_0x4a70eb(0x1e8)](_0xefb626);_0x3670a5?Object[_0x4a70eb(0x1c4)](_0x3670a5,_0x571b6d):_0x10a3d5['set'](_0xefb626,_0x571b6d);});}else groupMembers[_0x1cd223(0x179)](_0x398ca6,_0x32103c[_0x1cd223(0x1db)]);},_0x5a4ef4['onMemberInfoChange']=(_0xbab7b6,_0x2d34e6,_0x5c7282)=>{const _0x273af3=_0x71af15;_0x4a88e2[_0x273af3(0x1ca)](_0x2d34e6,0x0)&&_0x5c7282['get'](selfInfo[_0x273af3(0x1f9)])&&_0x5c7282['get'](selfInfo[_0x273af3(0x1f9)])?.[_0x273af3(0x184)]&&setTimeout(()=>{groups['delete'](_0xbab7b6);},0x1388);_0x5c7282['forEach']((_0x3b1ea7,_0x385c68)=>{const _0x2f14fb=_0x273af3;uid2UinMap[_0x385c68]=_0x3b1ea7[_0x2f14fb(0x205)];});const _0x393d5b=groupMembers[_0x273af3(0x1e8)](_0xbab7b6);_0x393d5b?_0x5c7282[_0x273af3(0x20a)]((_0x1fc5e8,_0x337112)=>{const _0x2d0915=_0x273af3,_0x17314d=_0x393d5b['get'](_0x337112);_0x17314d?Object[_0x2d0915(0x1c4)](_0x17314d,_0x1fc5e8):_0x393d5b[_0x2d0915(0x179)](_0x337112,_0x1fc5e8);}):groupMembers[_0x273af3(0x179)](_0xbab7b6,_0x5c7282);},this[_0x71af15(0x1f2)](_0x5a4ef4);}[_0x150935(0x1f2)](_0x539b01){const _0x5b4073=_0x150935,_0x53a25c={'GMVZv':_0x5b4073(0x173),'rrMhO':'GroupListener'};_0x539b01=new Proxy(_0x539b01,this[_0x5b4073(0x193)]);switch(_0x539b01['constructor'][_0x5b4073(0x19a)]){case _0x53a25c['GMVZv']:{return this[_0x5b4073(0x17f)][_0x5b4073(0x190)]()[_0x5b4073(0x186)](new _0x132c07[(_0x5b4073(0x1ee))](_0x539b01));}case _0x53a25c[_0x5b4073(0x225)]:{return this[_0x5b4073(0x17f)]['getGroupService']()[_0x5b4073(0x1b4)](new _0x132c07[(_0x5b4073(0x1b3))](_0x539b01));}case'MsgListener':{return this[_0x5b4073(0x17f)][_0x5b4073(0x1cc)]()[_0x5b4073(0x1a7)](new _0x132c07['NodeIKernelMsgListener'](_0x539b01));}case _0x5b4073(0x172):{return this['session'][_0x5b4073(0x183)]()[_0x5b4073(0x1e9)](new _0x132c07[(_0x5b4073(0x1fd))](_0x539b01));}default:return-0x1;}}[_0x150935(0x1de)](_0x325c16){const _0x460e22=_0x150935;this[_0x460e22(0x201)][_0x460e22(0x207)](_0x325c16);}async[_0x150935(0x1e6)](_0x55f7ca){const _0x198723=_0x150935,_0x35356b={'zXmBC':function(_0x16a535,_0x5e0172){return _0x16a535!==_0x5e0172;},'OiVkm':_0x198723(0x1d3),'hyduI':function(_0x55d3a5,_0x407eeb){return _0x55d3a5(_0x407eeb);},'Hobqb':function(_0x3bc1a1,_0x2ab364){return _0x3bc1a1+_0x2ab364;},'jeYza':'快速登录失败\x20'},_0x225c08=await this[_0x198723(0x214)][_0x198723(0x1d6)]();if(_0x35356b['zXmBC'](_0x225c08[_0x198723(0x180)],0x0))throw new Error(_0x35356b[_0x198723(0x1ae)]);const _0x3ec1d0=_0x225c08['LocalLoginInfoList'][_0x198723(0x19b)](_0x110117=>_0x110117[_0x198723(0x205)]===_0x55f7ca);if(!_0x3ec1d0||!_0x3ec1d0?.[_0x198723(0x1b9)])throw new Error(_0x55f7ca+_0x198723(0x17c));await _0x35356b[_0x198723(0x202)](sleep,0x3e8);const _0x398664=await this['loginService'][_0x198723(0x1ab)](_0x55f7ca);if(!_0x398664[_0x198723(0x180)])throw new Error(_0x35356b[_0x198723(0x1fa)](_0x35356b[_0x198723(0x1ea)],_0x398664['loginErrorInfo']['errMsg']));return _0x398664;}async[_0x150935(0x1f8)](_0x8e7c77){const _0x43e2d3=_0x150935,_0x34d2b4={'LKcID':_0x43e2d3(0x18a),'UELfh':_0x43e2d3(0x1c6)};return new Promise((_0x1f16cc,_0x30f3f7)=>{const _0x3d7aef=_0x43e2d3,_0x245761={'DqEMi':_0x34d2b4['LKcID'],'pTVdt':_0x34d2b4[_0x3d7aef(0x1ce)]};this[_0x3d7aef(0x174)][_0x3d7aef(0x1c7)]=_0x1172b2=>{const _0xeb549e=_0x3d7aef,_0x5f560e=_0x1172b2['pngBase64QrcodeData'][_0xeb549e(0x1e1)](_0x245761['DqEMi'])[0x1],_0x2c81a1=Buffer[_0xeb549e(0x1b2)](_0x5f560e,_0x245761[_0xeb549e(0x1d7)]);_0x8e7c77(_0x1172b2['qrcodeUrl'],_0x1172b2[_0xeb549e(0x196)],_0x2c81a1);},this[_0x3d7aef(0x214)]['getQRCodePicture']();});}async['passwordLogin'](_0xa0ef36,_0x448551,_0x4d06b1,_0xcef066,_0x3c3fea){const _0x90b35b=_0x150935,_0x4429c4={'ifvDU':_0x90b35b(0x1ed),'WOOCc':function(_0x35018d,_0x5a84f7){return _0x35018d&&_0x5a84f7;},'bUpKu':function(_0x248ef1,_0x5c5b70){return _0x248ef1||_0x5c5b70;},'AmueP':function(_0x2c5f90,_0x1f9d17){return _0x2c5f90||_0x1f9d17;},'rpkYm':function(_0x38cc2b,_0x25d914){return _0x38cc2b(_0x25d914);},'XptUP':_0x90b35b(0x1cf),'DSfBC':_0x90b35b(0x1cb)},_0x3e5593=_0x285363[_0x90b35b(0x206)](_0x90b35b(0x1c9))[_0x90b35b(0x21d)](_0x448551)[_0x90b35b(0x1ad)](_0x4429c4['ifvDU']),_0x399dec={'uin':_0xa0ef36,'passwordMd5':_0x3e5593,'step':_0x4429c4[_0x90b35b(0x1c3)](_0x4d06b1,_0xcef066)&&_0x3c3fea?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4429c4['bUpKu'](_0x4d06b1,''),'proofWaterRand':_0x4429c4['AmueP'](_0xcef066,''),'proofWaterSid':_0x4429c4[_0x90b35b(0x1ac)](_0x3c3fea,'')};await this[_0x90b35b(0x214)][_0x90b35b(0x1d6)](),await _0x4429c4[_0x90b35b(0x1ff)](sleep,0x3e8);const _0x7a73fa=await this[_0x90b35b(0x214)][_0x90b35b(0x1f1)](_0x399dec);switch(_0x7a73fa[_0x90b35b(0x180)]){case'0':{break;}case _0x4429c4[_0x90b35b(0x1bc)]:{break;}case'4':case _0x4429c4[_0x90b35b(0x1c8)]:default:}}async['getQuickLoginList'](){const _0x13e501=_0x150935,_0x26ea35=await this['loginService'][_0x13e501(0x1d6)]();return _0x26ea35;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index e1c8ff874..8fda66ac0 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -(function(_0x232104,_0x1a6026){const _0x3ca3b6=_0x3f8e,_0x33507d=_0x232104();while(!![]){try{const _0x14d362=parseInt(_0x3ca3b6(0xbf))/0x1*(-parseInt(_0x3ca3b6(0xad))/0x2)+-parseInt(_0x3ca3b6(0xb9))/0x3*(parseInt(_0x3ca3b6(0xc0))/0x4)+parseInt(_0x3ca3b6(0xbd))/0x5*(parseInt(_0x3ca3b6(0xc1))/0x6)+parseInt(_0x3ca3b6(0xc5))/0x7*(parseInt(_0x3ca3b6(0xb6))/0x8)+-parseInt(_0x3ca3b6(0xaf))/0x9*(parseInt(_0x3ca3b6(0xaa))/0xa)+parseInt(_0x3ca3b6(0xb5))/0xb+-parseInt(_0x3ca3b6(0xb1))/0xc*(parseInt(_0x3ca3b6(0xb4))/0xd);if(_0x14d362===_0x1a6026)break;else _0x33507d['push'](_0x33507d['shift']());}catch(_0x5d6810){_0x33507d['push'](_0x33507d['shift']());}}}(_0x52b8,0xe7218));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1d7cb6){const _0x1b84b2=_0x3f8e;groups['delete'](_0x1d7cb6),groupMembers[_0x1b84b2(0xb8)](_0x1d7cb6);}function _0x3f8e(_0x34d21b,_0x24a128){const _0x52b884=_0x52b8();return _0x3f8e=function(_0x3f8e0d,_0x516400){_0x3f8e0d=_0x3f8e0d-0xaa;let _0x2befbc=_0x52b884[_0x3f8e0d];return _0x2befbc;},_0x3f8e(_0x34d21b,_0x24a128);}function _0x52b8(){const _0x489bc0=['uin','5270455nSzLIN','toString','14usQsGD','424428AqOqjM','6aozRGt','set','cPgeM','from','427mpivDc','295740YQAyOv','getGroupMembers','TonWD','78622gDRoTD','values','549tscbzK','ZmRth','612qjImxq','forEach','SzXSn','35919wXxiFG','13620420eRwZuA','234272SzbdHG','get','delete','18hGZNvN','groupCode','getGroups'];_0x52b8=function(){return _0x489bc0;};return _0x52b8();}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x1627fc){const _0x2414b6=_0x3f8e,_0x3d7ae0={'ZmRth':function(_0x118494,_0x5dcb0d){return _0x118494(_0x5dcb0d);}};_0x1627fc=_0x1627fc[_0x2414b6(0xbe)]();if(_0x3d7ae0[_0x2414b6(0xb0)](isNumeric,_0x1627fc)){const _0x4c6fc1=Array[_0x2414b6(0xc4)](friends['values']());return _0x4c6fc1['find'](_0x2d0c5e=>_0x2d0c5e[_0x2414b6(0xbc)]===_0x1627fc);}else return friends[_0x2414b6(0xb7)](_0x1627fc);}export async function getGroup(_0x322ad7){const _0x316675=_0x3f8e;let _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]());if(!_0x58c712)try{const _0x2dc22d=await NTQQGroupApi[_0x316675(0xbb)]();_0x2dc22d['length']&&_0x2dc22d[_0x316675(0xb2)](_0x4f9d21=>{const _0x567e31=_0x316675;groups[_0x567e31(0xc2)](_0x4f9d21[_0x567e31(0xba)],_0x4f9d21);});}catch(_0x988624){return undefined;}return _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]()),_0x58c712;}export async function getGroupMember(_0x8b6ee4,_0x149b82){const _0x5d7e33=_0x3f8e,_0x442bb3={'TonWD':function(_0x8a6fb1,_0x56c370){return _0x8a6fb1(_0x56c370);},'SzXSn':function(_0x41b5a0){return _0x41b5a0();}};_0x8b6ee4=_0x8b6ee4[_0x5d7e33(0xbe)](),_0x149b82=_0x149b82[_0x5d7e33(0xbe)]();let _0x4a9fb4=groupMembers[_0x5d7e33(0xb7)](_0x8b6ee4);if(!_0x4a9fb4)try{_0x4a9fb4=await NTQQGroupApi['getGroupMembers'](_0x8b6ee4),groupMembers[_0x5d7e33(0xc2)](_0x8b6ee4,_0x4a9fb4);}catch(_0x4dbc6e){return null;}const _0xf61f1f=()=>{const _0x23c0fa=_0x5d7e33;let _0x399b4d=undefined;return _0x442bb3[_0x23c0fa(0xac)](isNumeric,_0x149b82)?_0x399b4d=Array['from'](_0x4a9fb4[_0x23c0fa(0xae)]())['find'](_0x2bfc3c=>_0x2bfc3c[_0x23c0fa(0xbc)]===_0x149b82):_0x399b4d=_0x4a9fb4['get'](_0x149b82),_0x399b4d;};let _0x259010=_0xf61f1f();return!_0x259010&&(_0x4a9fb4=await NTQQGroupApi[_0x5d7e33(0xab)](_0x8b6ee4),_0x259010=_0x442bb3[_0x5d7e33(0xb3)](_0xf61f1f)),_0x259010;}export const uid2UinMap={};export function getUidByUin(_0x11be32){const _0x52b827=_0x3f8e,_0x3631da={'cPgeM':function(_0xe6644c,_0x1b710a){return _0xe6644c===_0x1b710a;}};for(const _0x5e2713 in uid2UinMap){if(_0x3631da[_0x52b827(0xc3)](uid2UinMap[_0x5e2713],_0x11be32))return _0x5e2713;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +(function(_0x5a2a52,_0x6f5345){const _0x197bc6=_0x3011,_0x349c2f=_0x5a2a52();while(!![]){try{const _0x736f09=-parseInt(_0x197bc6(0x165))/0x1+-parseInt(_0x197bc6(0x156))/0x2+parseInt(_0x197bc6(0x169))/0x3+-parseInt(_0x197bc6(0x164))/0x4*(-parseInt(_0x197bc6(0x163))/0x5)+-parseInt(_0x197bc6(0x159))/0x6+parseInt(_0x197bc6(0x16b))/0x7*(parseInt(_0x197bc6(0x161))/0x8)+parseInt(_0x197bc6(0x157))/0x9;if(_0x736f09===_0x6f5345)break;else _0x349c2f['push'](_0x349c2f['shift']());}catch(_0x4c50be){_0x349c2f['push'](_0x349c2f['shift']());}}}(_0x4c22,0x777f0));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x4c22(){const _0x4f170d=['zXaJp','665KIvlwG','7948pyManA','955711uUyUMS','values','uin','from','1842444epbCrZ','YTEWw','7HoLFAy','find','groupCode','1061986sQupUJ','11620206jnHhqM','toString','2927712BgAdQb','get','getGroups','length','delete','pcIWl','getGroupMembers','forEach','2356472oUdGpN'];_0x4c22=function(){return _0x4f170d;};return _0x4c22();}export const groups=new Map();function _0x3011(_0x39f3dd,_0x503011){const _0x4c2219=_0x4c22();return _0x3011=function(_0x301189,_0x4d005a){_0x301189=_0x301189-0x156;let _0x5b9b83=_0x4c2219[_0x301189];return _0x5b9b83;},_0x3011(_0x39f3dd,_0x503011);}export function deleteGroup(_0x3c3e98){const _0x59fdf8=_0x3011;groups[_0x59fdf8(0x15d)](_0x3c3e98),groupMembers[_0x59fdf8(0x15d)](_0x3c3e98);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x4efc1d){const _0x37db0e=_0x3011,_0xd1fd29={'zXaJp':function(_0x5c9344,_0x4424e7){return _0x5c9344(_0x4424e7);}};_0x4efc1d=_0x4efc1d[_0x37db0e(0x158)]();if(_0xd1fd29[_0x37db0e(0x162)](isNumeric,_0x4efc1d)){const _0xc04cca=Array[_0x37db0e(0x168)](friends[_0x37db0e(0x166)]());return _0xc04cca[_0x37db0e(0x16c)](_0x5c3b43=>_0x5c3b43['uin']===_0x4efc1d);}else return friends['get'](_0x4efc1d);}export async function getGroup(_0x52a93f){const _0x2fa0c5=_0x3011;let _0x48d9f5=groups[_0x2fa0c5(0x15a)](_0x52a93f[_0x2fa0c5(0x158)]());if(!_0x48d9f5)try{const _0x4a6ae7=await NTQQGroupApi[_0x2fa0c5(0x15b)]();_0x4a6ae7[_0x2fa0c5(0x15c)]&&_0x4a6ae7[_0x2fa0c5(0x160)](_0x3b4d19=>{const _0x55d1e8=_0x2fa0c5;groups['set'](_0x3b4d19[_0x55d1e8(0x16d)],_0x3b4d19);});}catch(_0x32c278){return undefined;}return _0x48d9f5=groups[_0x2fa0c5(0x15a)](_0x52a93f[_0x2fa0c5(0x158)]()),_0x48d9f5;}export async function getGroupMember(_0x45d4ae,_0x3e63a4){const _0x39f0b4=_0x3011,_0x2790a1={'GAkuD':function(_0x14f205,_0x39ba15){return _0x14f205(_0x39ba15);},'YTEWw':function(_0x42c760){return _0x42c760();}};_0x45d4ae=_0x45d4ae[_0x39f0b4(0x158)](),_0x3e63a4=_0x3e63a4[_0x39f0b4(0x158)]();let _0xb8911c=groupMembers['get'](_0x45d4ae);if(!_0xb8911c)try{_0xb8911c=await NTQQGroupApi[_0x39f0b4(0x15f)](_0x45d4ae),groupMembers['set'](_0x45d4ae,_0xb8911c);}catch(_0x199fc2){return null;}const _0x1f7f0c=()=>{const _0x2b08e2=_0x39f0b4;let _0x2ffeea=undefined;return _0x2790a1['GAkuD'](isNumeric,_0x3e63a4)?_0x2ffeea=Array[_0x2b08e2(0x168)](_0xb8911c[_0x2b08e2(0x166)]())[_0x2b08e2(0x16c)](_0x44587c=>_0x44587c[_0x2b08e2(0x167)]===_0x3e63a4):_0x2ffeea=_0xb8911c[_0x2b08e2(0x15a)](_0x3e63a4),_0x2ffeea;};let _0x2286dc=_0x2790a1[_0x39f0b4(0x16a)](_0x1f7f0c);return!_0x2286dc&&(_0xb8911c=await NTQQGroupApi[_0x39f0b4(0x15f)](_0x45d4ae),_0x2286dc=_0x2790a1[_0x39f0b4(0x16a)](_0x1f7f0c)),_0x2286dc;}export const uid2UinMap={};export function getUidByUin(_0x162f50){const _0x26b5b7=_0x3011,_0x3a2b4d={'pcIWl':function(_0x30628a,_0x4456c2){return _0x30628a===_0x4456c2;}};for(const _0x1d9908 in uid2UinMap){if(_0x3a2b4d[_0x26b5b7(0x15e)](uid2UinMap[_0x1d9908],_0x162f50))return _0x1d9908;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index 542220527..c1ae967ff 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0x22fc(){var _0x4d430e=['45XELvbK','6788540HQOXCN','2XmaNLL','split','51879exTaZG','IMAGE','1412480mnodbb','VIDEO','UbuRT','DOCUMENT','597250FdatNd','1|0|3|2|4','21IKEAhc','188VwRcwM','1055312EbEGTb','320668VyoCRL','OhEUm','RQbtu','1718616LXbHri'];_0x22fc=function(){return _0x4d430e;};return _0x22fc();}(function(_0xe5ad98,_0x80be88){var _0x2fa55e=_0x4d96,_0x47c51c=_0xe5ad98();while(!![]){try{var _0x43c362=parseInt(_0x2fa55e(0x183))/0x1*(parseInt(_0x2fa55e(0x17d))/0x2)+-parseInt(_0x2fa55e(0x185))/0x3*(-parseInt(_0x2fa55e(0x17b))/0x4)+-parseInt(_0x2fa55e(0x178))/0x5+-parseInt(_0x2fa55e(0x180))/0x6+parseInt(_0x2fa55e(0x17a))/0x7*(-parseInt(_0x2fa55e(0x17c))/0x8)+-parseInt(_0x2fa55e(0x181))/0x9*(-parseInt(_0x2fa55e(0x174))/0xa)+-parseInt(_0x2fa55e(0x182))/0xb;if(_0x43c362===_0x80be88)break;else _0x47c51c['push'](_0x47c51c['shift']());}catch(_0x40aeda){_0x47c51c['push'](_0x47c51c['shift']());}}}(_0x22fc,0x66c2f));function _0x4d96(_0x54d519,_0xba9979){var _0x22fcd4=_0x22fc();return _0x4d96=function(_0x4d9696,_0x21318f){_0x4d9696=_0x4d9696-0x173;var _0x566dfb=_0x22fcd4[_0x4d9696];return _0x566dfb;},_0x4d96(_0x54d519,_0xba9979);};export var CacheFileType;(function(_0x169e50){var _0x50191d=_0x4d96,_0x4c3a6c={'qcPYE':_0x50191d(0x179),'vjxIe':'VIDEO','UbuRT':_0x50191d(0x173),'CKxqJ':'DOCUMENT','OhEUm':'AUDIO','RQbtu':'OTHER'},_0x145558=_0x4c3a6c['qcPYE'][_0x50191d(0x184)]('|'),_0x46671d=0x0;while(!![]){switch(_0x145558[_0x46671d++]){case'0':_0x169e50[_0x169e50[_0x50191d(0x175)]=0x1]=_0x4c3a6c['vjxIe'];continue;case'1':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x176)]]=0x0]=_0x50191d(0x173);continue;case'2':_0x169e50[_0x169e50[_0x4c3a6c['CKxqJ']]=0x3]=_0x50191d(0x177);continue;case'3':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17e)]]=0x2]=_0x4c3a6c[_0x50191d(0x17e)];continue;case'4':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17f)]]=0x4]=_0x4c3a6c[_0x50191d(0x17f)];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0x2572f5,_0x448aa3){var _0x41c8db=_0x2539,_0xefa25a=_0x2572f5();while(!![]){try{var _0x5c4f08=-parseInt(_0x41c8db(0x1d9))/0x1*(parseInt(_0x41c8db(0x1df))/0x2)+-parseInt(_0x41c8db(0x1dd))/0x3*(parseInt(_0x41c8db(0x1db))/0x4)+parseInt(_0x41c8db(0x1e7))/0x5*(-parseInt(_0x41c8db(0x1e3))/0x6)+-parseInt(_0x41c8db(0x1ec))/0x7*(parseInt(_0x41c8db(0x1e6))/0x8)+-parseInt(_0x41c8db(0x1de))/0x9*(-parseInt(_0x41c8db(0x1dc))/0xa)+parseInt(_0x41c8db(0x1e2))/0xb*(-parseInt(_0x41c8db(0x1ed))/0xc)+parseInt(_0x41c8db(0x1e9))/0xd*(parseInt(_0x41c8db(0x1e5))/0xe);if(_0x5c4f08===_0x448aa3)break;else _0xefa25a['push'](_0xefa25a['shift']());}catch(_0x1162e6){_0xefa25a['push'](_0xefa25a['shift']());}}}(_0x1db5,0xc8b94));;function _0x1db5(){var _0x58c02b=['bvAMa','AUDIO','75663lRweyO','1056Yoqsgt','split','PGQjB','3|0|2|4|1','419fikEYm','kiNVb','4vpophx','11065170MVKNrO','569355GXWCOD','9mphiVV','5718DWONfU','UfwvN','OTHER','13442NVktVp','2931150CmIzUw','IMAGE','14GghVsQ','1160hYmmCf','5eBysun','DOCUMENT','42467347qdSTAO'];_0x1db5=function(){return _0x58c02b;};return _0x1db5();}function _0x2539(_0x560aca,_0x2aef91){var _0x1db50d=_0x1db5();return _0x2539=function(_0x253978,_0x27e5ba){_0x253978=_0x253978-0x1d6;var _0xe7dc51=_0x1db50d[_0x253978];return _0xe7dc51;},_0x2539(_0x560aca,_0x2aef91);}export var CacheFileType;(function(_0x19a55f){var _0x2d9a53=_0x2539,_0x21e0cb={'UfwvN':_0x2d9a53(0x1d8),'lPkAQ':'VIDEO','kiNVb':_0x2d9a53(0x1e1),'xRsjw':_0x2d9a53(0x1eb),'PGQjB':_0x2d9a53(0x1e4),'bvAMa':'DOCUMENT'},_0x45780d=_0x21e0cb[_0x2d9a53(0x1e0)][_0x2d9a53(0x1d6)]('|'),_0x230d0e=0x0;while(!![]){switch(_0x45780d[_0x230d0e++]){case'0':_0x19a55f[_0x19a55f[_0x21e0cb['lPkAQ']]=0x1]=_0x21e0cb['lPkAQ'];continue;case'1':_0x19a55f[_0x19a55f[_0x21e0cb[_0x2d9a53(0x1da)]]=0x4]=_0x21e0cb[_0x2d9a53(0x1da)];continue;case'2':_0x19a55f[_0x19a55f[_0x2d9a53(0x1eb)]=0x2]=_0x21e0cb['xRsjw'];continue;case'3':_0x19a55f[_0x19a55f[_0x21e0cb[_0x2d9a53(0x1d7)]]=0x0]=_0x2d9a53(0x1e4);continue;case'4':_0x19a55f[_0x19a55f[_0x21e0cb[_0x2d9a53(0x1ea)]]=0x3]=_0x2d9a53(0x1e8);continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index ea1a6ec44..e4c669a8b 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x146258=_0xb494;(function(_0x47c30a,_0x1ad4f6){const _0x2b59f6=_0xb494,_0x45c4b3=_0x47c30a();while(!![]){try{const _0x3d2c7b=-parseInt(_0x2b59f6(0x138))/0x1*(-parseInt(_0x2b59f6(0x16d))/0x2)+-parseInt(_0x2b59f6(0x17d))/0x3*(parseInt(_0x2b59f6(0x15a))/0x4)+parseInt(_0x2b59f6(0x147))/0x5+-parseInt(_0x2b59f6(0x164))/0x6*(-parseInt(_0x2b59f6(0x173))/0x7)+-parseInt(_0x2b59f6(0x159))/0x8+-parseInt(_0x2b59f6(0x169))/0x9+parseInt(_0x2b59f6(0x161))/0xa*(-parseInt(_0x2b59f6(0x167))/0xb);if(_0x3d2c7b===_0x1ad4f6)break;else _0x45c4b3['push'](_0x45c4b3['shift']());}catch(_0x1fc6d6){_0x45c4b3['push'](_0x45c4b3['shift']());}}}(_0x4015,0x61d9c));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x2549f8}from'node:fs';import _0x22985c from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';function _0x4015(){const _0x29cab8=['iBlKK','qqeAe','uploadFile','LapfL','PIC','2475775fVtsLA','ClJPZ','mface','width','PTT','notAt','gif','path','获取视频信息失败','UIePt','dirname','height','then','FACE','mZxJH','replace','UcKno','video','2928456kZuLVI','17244dZFTYw','mp4','REPLY','pic','HNwdQ','_0.png','获取视频封面失败,使用默认封面','115510baCbYD','LIAaB','getImageSize','3900630YSweUQ','VIDEO','face','77CYGfYu','uhmRJ','1520181WSWvQD','unlink','stringify','YntdL','2icCyCa','EAmWt','RiWYG','IvHdD','SYGcz','视频信息','7BAfsBk','jliqV','sep','ARK','get','ark','Thumb','MakbW','FILE','toString','342DDaQEI','set','pXqRP','TEXT','time','error','QswEy','dBSNH','string','ptt','dice','AAhpY','size','markdown','362813nFHxnQ','file','JMJDN','ddbPv','end','语音转换失败,\x20请检查语音文件是否正常','文件异常,大小为0','[包剪锤]','ugbwu','catch'];_0x4015=function(){return _0x29cab8;};return _0x4015();}import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();function _0xb494(_0x41e3ab,_0x30ba52){const _0x40159a=_0x4015();return _0xb494=function(_0xb49440,_0x107e30){_0xb49440=_0xb49440-0x132;let _0x1de5ed=_0x40159a[_0xb49440];return _0x1de5ed;},_0xb494(_0x41e3ab,_0x30ba52);}export class SendMsgElementConstructor{static['text'](_0x5c5099){const _0x23e606=_0xb494;return{'elementType':ElementType[_0x23e606(0x180)],'elementId':'','textElement':{'content':_0x5c5099,'atType':AtType[_0x23e606(0x14c)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x1da6f8,_0x1f767f,_0x20f4cc,_0xbda6c8){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0xbda6c8,'atType':_0x20f4cc,'atUid':_0x1da6f8,'atTinyId':'','atNtUid':_0x1f767f}};}static['reply'](_0x4b3d4c,_0xf22180,_0x15a78e,_0x108afb){const _0x37c4f8=_0xb494;return{'elementType':ElementType[_0x37c4f8(0x15c)],'elementId':'','replyElement':{'replayMsgSeq':_0x4b3d4c,'replayMsgId':_0xf22180,'senderUin':_0x15a78e,'senderUinStr':_0x108afb}};}static async[_0x146258(0x15d)](_0x51d8e8,_0x58e647='',_0x4d70f3=0x0){const _0x2a2ebd=_0x146258,_0x42c3f1={'MakbW':function(_0x456559,_0x348795){return _0x456559===_0x348795;},'oVOcE':_0x2a2ebd(0x13e),'uhmRJ':function(_0x50684c,_0x3ed9aa,_0x4efbb8){return _0x50684c(_0x3ed9aa,_0x4efbb8);},'UIePt':'图片信息'},{md5:_0x558582,fileName:_0x37f8bc,path:_0x2d18a5,fileSize:_0x1af6c3}=await NTQQFileApi[_0x2a2ebd(0x144)](_0x51d8e8,ElementType[_0x2a2ebd(0x146)],_0x4d70f3);if(_0x42c3f1[_0x2a2ebd(0x17a)](_0x1af6c3,0x0))throw _0x42c3f1['oVOcE'];const _0x4070c6=await NTQQFileApi[_0x2a2ebd(0x163)](_0x51d8e8),_0x249ade={'md5HexStr':_0x558582,'fileSize':_0x1af6c3['toString'](),'picWidth':_0x4070c6?.[_0x2a2ebd(0x14a)],'picHeight':_0x4070c6?.[_0x2a2ebd(0x152)],'fileName':_0x37f8bc,'sourcePath':_0x2d18a5,'original':!![],'picType':isGIF(_0x51d8e8)?PicType[_0x2a2ebd(0x14d)]:PicType['jpg'],'picSubType':_0x4d70f3,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x58e647};return _0x42c3f1[_0x2a2ebd(0x168)](logDebug,_0x42c3f1[_0x2a2ebd(0x150)],_0x249ade),{'elementType':ElementType[_0x2a2ebd(0x146)],'elementId':'','picElement':_0x249ade};}static async[_0x146258(0x139)](_0x1247f0,_0x5a2a4e=''){const _0x29890a=_0x146258,_0x456e3d={'LIAaB':function(_0x3bb18b,_0x43c13b){return _0x3bb18b===_0x43c13b;},'ClJPZ':_0x29890a(0x13e)},{md5:_0x54bdf2,fileName:_0x271061,path:_0x7c1921,fileSize:_0x1a2e5f}=await NTQQFileApi['uploadFile'](_0x1247f0,ElementType[_0x29890a(0x17b)]);if(_0x456e3d[_0x29890a(0x162)](_0x1a2e5f,0x0))throw _0x456e3d[_0x29890a(0x148)];const _0x30be2d={'elementType':ElementType[_0x29890a(0x17b)],'elementId':'','fileElement':{'fileName':_0x5a2a4e||_0x271061,'filePath':_0x7c1921,'fileSize':_0x1a2e5f[_0x29890a(0x17c)]()}};return _0x30be2d;}static async[_0x146258(0x158)](_0x498935,_0x57e1ab='',_0x34315a=''){const _0x3b6d89=_0x146258,_0x21cedb={'IvHdD':function(_0x12aada,_0x5d1d42){return _0x12aada(_0x5d1d42);},'mZxJH':function(_0x48a967,_0x130e9e){return _0x48a967(_0x130e9e);},'dBSNH':function(_0xda3101,_0xf6c825,_0x1bbf0e){return _0xda3101(_0xf6c825,_0x1bbf0e);},'UcKno':_0x3b6d89(0x160),'JMJDN':_0x3b6d89(0x182),'iBlKK':function(_0x53bd68,_0x58a269){return _0x53bd68+_0x58a269;},'EAmWt':function(_0x516ede,_0x2b0318){return _0x516ede+_0x2b0318;},'qqeAe':_0x3b6d89(0x13c),'UePGy':function(_0x4db94d,_0x328d41){return _0x4db94d===_0x328d41;},'UbWSr':_0x3b6d89(0x13e),'pXqRP':function(_0x3dbb99,_0x5289e6){return _0x3dbb99(_0x5289e6);},'iHeNy':_0x3b6d89(0x15b),'YntdL':function(_0x55a1e8,_0x4739a8,_0x5e5d11){return _0x55a1e8(_0x4739a8,_0x5e5d11);},'QswEy':_0x3b6d89(0x172),'ddbPv':_0x3b6d89(0x14f),'ybBTG':function(_0x275cc5,_0x2339c6){return _0x275cc5||_0x2339c6;},'ugbwu':function(_0x3c5cb1,_0x38e912){return _0x3c5cb1+_0x38e912;}},{fileName:_0x240814,path:_0x50649c,fileSize:_0x112ccd,md5:_0x2e31bb}=await NTQQFileApi[_0x3b6d89(0x144)](_0x498935,ElementType[_0x3b6d89(0x165)]);if(_0x21cedb['UePGy'](_0x112ccd,0x0))throw _0x21cedb['UbWSr'];const _0x5cdf46=_0x21cedb[_0x3b6d89(0x17f)](require,_0x3b6d89(0x14e));let _0x52068f=_0x50649c[_0x3b6d89(0x156)](_0x5cdf46['sep']+'Ori'+_0x5cdf46[_0x3b6d89(0x175)],_0x5cdf46['sep']+_0x3b6d89(0x179)+_0x5cdf46[_0x3b6d89(0x175)]);_0x52068f=_0x5cdf46[_0x3b6d89(0x151)](_0x52068f);let _0x403514={'width':0x780,'height':0x438,'time':0xf,'format':_0x21cedb['iHeNy'],'size':_0x112ccd,'filePath':_0x498935};try{_0x403514=await _0x21cedb['mZxJH'](getVideoInfo,_0x50649c),_0x21cedb[_0x3b6d89(0x16c)](logDebug,_0x21cedb[_0x3b6d89(0x183)],_0x403514);}catch(_0xfe614b){logError(_0x21cedb[_0x3b6d89(0x13b)],_0xfe614b);}const _0x18eecb=new Promise((_0x3800a3,_0x6c316b)=>{const _0x1ede3d=_0x3b6d89,_0x3b95ac={'LapfL':function(_0x4013b6,_0x11a08c){const _0x27f357=_0xb494;return _0x21cedb[_0x27f357(0x155)](_0x4013b6,_0x11a08c);}},_0x227f2e=_0x2e31bb+_0x1ede3d(0x15f),_0xd4510d=_0x5cdf46['join'](_0x52068f,_0x227f2e);_0x21cedb['IvHdD'](_0x22985c,_0x498935)['on']('end',()=>{})['on'](_0x21cedb[_0x1ede3d(0x13a)],_0x58e306=>{const _0x3b7779=_0x1ede3d,_0x54f426={'CCGVy':function(_0x154ca5,_0xc4e04a){const _0x3834b5=_0xb494;return _0x21cedb[_0x3834b5(0x170)](_0x154ca5,_0xc4e04a);},'SYGcz':function(_0x204bb3,_0x51fb2e){const _0x4601cf=_0xb494;return _0x21cedb[_0x4601cf(0x155)](_0x204bb3,_0x51fb2e);}};_0x21cedb[_0x3b7779(0x184)](logDebug,_0x21cedb[_0x3b7779(0x157)],_0x58e306),_0x34315a?_0x2549f8['copyFile'](_0x34315a,_0xd4510d)[_0x3b7779(0x153)](()=>{_0x54f426['CCGVy'](_0x3800a3,_0xd4510d);})[_0x3b7779(0x141)](_0x6c316b):_0x2549f8['writeFile'](_0xd4510d,defaultVideoThumb)['then'](()=>{const _0x46ac9a=_0x3b7779;_0x54f426[_0x46ac9a(0x171)](_0x3800a3,_0xd4510d);})[_0x3b7779(0x141)](_0x6c316b);})['screenshots']({'timestamps':[0x0],'filename':_0x227f2e,'folder':_0x52068f,'size':_0x21cedb[_0x1ede3d(0x142)](_0x21cedb[_0x1ede3d(0x16e)](_0x403514['width'],'x'),_0x403514[_0x1ede3d(0x152)])})['on'](_0x21cedb[_0x1ede3d(0x143)],()=>{const _0x3dd60c=_0x1ede3d;_0x3b95ac[_0x3dd60c(0x145)](_0x3800a3,_0xd4510d);});}),_0x1518f=new Map(),_0x30724b=await _0x18eecb,_0x14cdcb=(await _0x2549f8['stat'](_0x30724b))[_0x3b6d89(0x136)];_0x1518f[_0x3b6d89(0x17e)](0x0,_0x30724b);const _0x4ed317=await _0x21cedb[_0x3b6d89(0x170)](calculateFileMD5,_0x30724b),_0x5e4855={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x21cedb['ybBTG'](_0x57e1ab,_0x240814),'filePath':_0x50649c,'videoMd5':_0x2e31bb,'thumbMd5':_0x4ed317,'fileTime':_0x403514[_0x3b6d89(0x181)],'thumbPath':_0x1518f,'thumbSize':_0x14cdcb,'thumbWidth':_0x403514[_0x3b6d89(0x14a)],'thumbHeight':_0x403514[_0x3b6d89(0x152)],'fileSize':_0x21cedb[_0x3b6d89(0x140)]('',_0x112ccd)}};return _0x5e4855;}static async[_0x146258(0x133)](_0x4d8025){const _0x4d2eb6=_0x146258,_0x52a76d={'nNIVp':function(_0x367e0b,_0xc1b70c){return _0x367e0b(_0xc1b70c);},'jliqV':_0x4d2eb6(0x13d),'epGpM':function(_0x283a52,_0x22bf00){return _0x283a52===_0x22bf00;},'HNwdQ':'文件异常,大小为0','KLrSE':function(_0x177398,_0x303c77){return _0x177398||_0x303c77;}},{converted:_0x40529a,path:_0x58f9b9,duration:_0x1333c0}=await _0x52a76d['nNIVp'](encodeSilk,_0x4d8025);if(!_0x58f9b9)throw _0x52a76d[_0x4d2eb6(0x174)];const {md5:_0x3a1f53,fileName:_0x5661e0,path:_0x18dd27,fileSize:_0x453bb9}=await NTQQFileApi['uploadFile'](_0x58f9b9,ElementType[_0x4d2eb6(0x14b)]);if(_0x52a76d['epGpM'](_0x453bb9,0x0))throw _0x52a76d[_0x4d2eb6(0x15e)];return _0x40529a&&_0x2549f8[_0x4d2eb6(0x16a)](_0x58f9b9)[_0x4d2eb6(0x153)](),{'elementType':ElementType[_0x4d2eb6(0x14b)],'elementId':'','pttElement':{'fileName':_0x5661e0,'filePath':_0x18dd27,'md5HexStr':_0x3a1f53,'fileSize':_0x453bb9,'duration':_0x52a76d['KLrSE'](_0x1333c0,0x1),'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x146258(0x166)](_0x34fa4b){const _0x12d70d=_0x146258,_0x3e406={'AAhpY':function(_0x1a296e,_0x5d006b){return _0x1a296e<_0x5d006b;}};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':_0x34fa4b,'faceType':_0x3e406[_0x12d70d(0x135)](_0x34fa4b,0xde)?FaceType['normal']:FaceType['normal2']}};}static[_0x146258(0x149)](_0x174785,_0x438165,_0x1d999c,_0xf9098e){const _0xd026ce=_0x146258;return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x174785,'emojiId':_0x438165,'key':_0x1d999c,'faceName':_0xf9098e||mFaceCache[_0xd026ce(0x177)](_0x438165)||'[商城表情]'}};}static[_0x146258(0x134)](_0x558a16){const _0xd49d6f=_0x146258,_0x36b4df={'RiWYG':'[骰子]'};return{'elementType':ElementType[_0xd49d6f(0x154)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0xd49d6f(0x134)],'faceType':FaceType[_0xd49d6f(0x134)],'faceText':_0x36b4df[_0xd49d6f(0x16f)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x2652bf){const _0x242855=_0x146258;return{'elementType':ElementType[_0x242855(0x154)],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x242855(0x13f),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x146258(0x178)](_0x2fc23e){const _0x4d350b=_0x146258,_0x3d149d={'MmDRh':_0x4d350b(0x132)};return typeof _0x2fc23e!==_0x3d149d['MmDRh']&&(_0x2fc23e=JSON[_0x4d350b(0x16b)](_0x2fc23e)),{'elementType':ElementType[_0x4d350b(0x176)],'elementId':'','arkElement':{'bytesData':_0x2fc23e,'linkInfo':null,'subElementType':null}};}static[_0x146258(0x137)](_0x242664){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x242664}};}} \ No newline at end of file +const _0x4739a8=_0x17d5;(function(_0x1a1c8e,_0xa9e3fd){const _0x3255df=_0x17d5,_0x3adac6=_0x1a1c8e();while(!![]){try{const _0xfcf3=parseInt(_0x3255df(0xaf))/0x1+-parseInt(_0x3255df(0xa5))/0x2+-parseInt(_0x3255df(0x8c))/0x3+-parseInt(_0x3255df(0xa3))/0x4*(parseInt(_0x3255df(0x99))/0x5)+-parseInt(_0x3255df(0x7c))/0x6+parseInt(_0x3255df(0x97))/0x7*(-parseInt(_0x3255df(0x72))/0x8)+-parseInt(_0x3255df(0x7f))/0x9*(-parseInt(_0x3255df(0xab))/0xa);if(_0xfcf3===_0xa9e3fd)break;else _0x3adac6['push'](_0x3adac6['shift']());}catch(_0xe5ad81){_0x3adac6['push'](_0x3adac6['shift']());}}}(_0x110a,0x815df));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x110a(){const _0xfe3979=['KANml','4248AmEopV','gif','uploadFile','catch','REvxR','MHuqb','text','PSscf','HkFhn','[骰子]','dfFaY','PIC','ezDPv','1664094DZmQUm','ark','yXOcp','Thumb','writeFile','size','screenshots','feJCk','FILE','jpg','ptt','4607771vzbOVm','path','115oaitzq','join','MVzBh','markdown','file','dirname','FACE','图片信息','BKEIC','string','151516CCsOeX','语音转换失败,\x20请检查语音文件是否正常','573260GuHuUn','gQIIw','zemsn','face','MARKDOWN','文件异常,大小为0','74990dSZJIE','toString','getImageSize','height','52096qaZtbC','stat','replace','width','then','rps','[商城表情]','dice','gKMvf','DjsDt','_0.png','REPLY','kaXwA','sep','WieQU','notAt','8oFkMGU','RPS','IZAza','PTT','VIDEO','pic','normal2','TEXT','iPdUJ','JiveN','4145634flhKCB','video'];_0x110a=function(){return _0xfe3979;};return _0x110a();}import{promises as _0x35c404}from'node:fs';import _0x49a3b7 from'fluent-ffmpeg';function _0x17d5(_0x9b167,_0x2dbad8){const _0x110a47=_0x110a();return _0x17d5=function(_0x17d582,_0x4eddc6){_0x17d582=_0x17d582-0x66;let _0x3f48ac=_0x110a47[_0x17d582];return _0x3f48ac;},_0x17d5(_0x9b167,_0x2dbad8);}import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x4739a8(0x85)](_0x2dfc8e){const _0x184ee4=_0x4739a8;return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x2dfc8e,'atType':AtType[_0x184ee4(0x71)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0xb123ce,_0x2f8c5c,_0x1d2f96,_0x4c7dcf){const _0x2d7948=_0x4739a8;return{'elementType':ElementType[_0x2d7948(0x79)],'elementId':'','textElement':{'content':'@'+_0x4c7dcf,'atType':_0x1d2f96,'atUid':_0xb123ce,'atTinyId':'','atNtUid':_0x2f8c5c}};}static['reply'](_0x38465a,_0x753e1,_0x5650d1,_0x17faa9){const _0xebe011=_0x4739a8;return{'elementType':ElementType[_0xebe011(0x6d)],'elementId':'','replyElement':{'replayMsgSeq':_0x38465a,'replayMsgId':_0x753e1,'senderUin':_0x5650d1,'senderUinStr':_0x17faa9}};}static async[_0x4739a8(0x77)](_0x3d7fba,_0x5839e8='',_0x21eaf6=0x0){const _0x5cf41a=_0x4739a8,_0x12fb61={'dfFaY':_0x5cf41a(0xaa),'PSscf':function(_0x2e3ab7,_0x3a1dc6,_0x1d08af){return _0x2e3ab7(_0x3a1dc6,_0x1d08af);},'snWbz':_0x5cf41a(0xa0)},{md5:_0x199363,fileName:_0x165216,path:_0x1915b8,fileSize:_0x434121}=await NTQQFileApi[_0x5cf41a(0x81)](_0x3d7fba,ElementType[_0x5cf41a(0x8a)],_0x21eaf6);if(_0x434121===0x0)throw _0x12fb61[_0x5cf41a(0x89)];const _0x21215b=await NTQQFileApi[_0x5cf41a(0xad)](_0x3d7fba),_0x1f9c9b={'md5HexStr':_0x199363,'fileSize':_0x434121['toString'](),'picWidth':_0x21215b?.[_0x5cf41a(0xb2)],'picHeight':_0x21215b?.[_0x5cf41a(0xae)],'fileName':_0x165216,'sourcePath':_0x1915b8,'original':!![],'picType':isGIF(_0x3d7fba)?PicType[_0x5cf41a(0x80)]:PicType[_0x5cf41a(0x95)],'picSubType':_0x21eaf6,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x5839e8};return _0x12fb61[_0x5cf41a(0x86)](logDebug,_0x12fb61['snWbz'],_0x1f9c9b),{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x1f9c9b};}static async[_0x4739a8(0x9d)](_0x2719db,_0x3cb17e=''){const _0x47ce31=_0x4739a8,_0x3b9713={'REvxR':function(_0x479cb7,_0x102aa9){return _0x479cb7===_0x102aa9;},'KANml':_0x47ce31(0xaa),'BKEIC':function(_0x5c169e,_0x10f541){return _0x5c169e||_0x10f541;}},{md5:_0x306624,fileName:_0x19f0d6,path:_0x5265d2,fileSize:_0x190543}=await NTQQFileApi['uploadFile'](_0x2719db,ElementType[_0x47ce31(0x94)]);if(_0x3b9713[_0x47ce31(0x83)](_0x190543,0x0))throw _0x3b9713[_0x47ce31(0x7e)];const _0x58556d={'elementType':ElementType[_0x47ce31(0x94)],'elementId':'','fileElement':{'fileName':_0x3b9713[_0x47ce31(0xa1)](_0x3cb17e,_0x19f0d6),'filePath':_0x5265d2,'fileSize':_0x190543[_0x47ce31(0xac)]()}};return _0x58556d;}static async[_0x4739a8(0x7d)](_0x10f44c,_0x3995e7='',_0x495fed=''){const _0x5185a2=_0x4739a8,_0x44283a={'kaXwA':function(_0x38c680,_0x567126){return _0x38c680(_0x567126);},'feJCk':'获取视频封面失败,使用默认封面','HkFhn':function(_0x1d2ca3,_0x45c686){return _0x1d2ca3(_0x45c686);},'KrHsN':function(_0x4ed10a,_0x2f6c88){return _0x4ed10a(_0x2f6c88);},'zemsn':'end','iPdUJ':function(_0x454152,_0x305e04){return _0x454152+_0x305e04;},'MHuqb':function(_0x132ac6,_0x38534e){return _0x132ac6===_0x38534e;},'JiveN':function(_0xa4c1df,_0x172b95){return _0xa4c1df(_0x172b95);},'gQIIw':_0x5185a2(0x98),'IZAza':'mp4','MVzBh':function(_0x3645d4,_0x39ccbc){return _0x3645d4(_0x39ccbc);},'DjsDt':function(_0x2e9c02,_0x42c033,_0x417fc5){return _0x2e9c02(_0x42c033,_0x417fc5);},'WieQU':'视频信息','rpjKE':function(_0x5a6037,_0x30569c,_0x596a46){return _0x5a6037(_0x30569c,_0x596a46);},'zuNcW':function(_0x55f8b1,_0x2f87ac){return _0x55f8b1||_0x2f87ac;}},{fileName:_0x582cb0,path:_0x561b3a,fileSize:_0x4663b5,md5:_0x16aebb}=await NTQQFileApi['uploadFile'](_0x10f44c,ElementType[_0x5185a2(0x76)]);if(_0x44283a[_0x5185a2(0x84)](_0x4663b5,0x0))throw _0x5185a2(0xaa);const _0x536987=_0x44283a[_0x5185a2(0x7b)](require,_0x44283a[_0x5185a2(0xa6)]);let _0x4c514a=_0x561b3a[_0x5185a2(0xb1)](_0x536987['sep']+'Ori'+_0x536987[_0x5185a2(0x6f)],_0x536987[_0x5185a2(0x6f)]+_0x5185a2(0x8f)+_0x536987[_0x5185a2(0x6f)]);_0x4c514a=_0x536987[_0x5185a2(0x9e)](_0x4c514a);let _0x2b84c1={'width':0x780,'height':0x438,'time':0xf,'format':_0x44283a[_0x5185a2(0x74)],'size':_0x4663b5,'filePath':_0x10f44c};try{_0x2b84c1=await _0x44283a[_0x5185a2(0x9b)](getVideoInfo,_0x561b3a),_0x44283a[_0x5185a2(0x6b)](logDebug,_0x44283a[_0x5185a2(0x70)],_0x2b84c1);}catch(_0xabe243){_0x44283a['rpjKE'](logError,'获取视频信息失败',_0xabe243);}const _0x7f833c=new Promise((_0x34300b,_0xaab222)=>{const _0x1de106=_0x5185a2,_0x17c6b8={'gKMvf':function(_0x268738,_0x1bf457){const _0xf4018=_0x17d5;return _0x44283a[_0xf4018(0x6e)](_0x268738,_0x1bf457);}},_0x31b162=_0x16aebb+_0x1de106(0x6c),_0xbb15f4=_0x536987[_0x1de106(0x9a)](_0x4c514a,_0x31b162);_0x44283a['KrHsN'](_0x49a3b7,_0x10f44c)['on'](_0x44283a[_0x1de106(0xa7)],()=>{})['on']('error',_0x40a3e5=>{const _0x40a6dd=_0x1de106,_0x178e29={'ezDPv':function(_0x22cad9,_0x4fd894){return _0x44283a['kaXwA'](_0x22cad9,_0x4fd894);}};logDebug(_0x44283a[_0x40a6dd(0x93)],_0x40a3e5),_0x495fed?_0x35c404['copyFile'](_0x495fed,_0xbb15f4)['then'](()=>{const _0x4cccb3=_0x40a6dd;_0x17c6b8[_0x4cccb3(0x6a)](_0x34300b,_0xbb15f4);})[_0x40a6dd(0x82)](_0xaab222):_0x35c404[_0x40a6dd(0x90)](_0xbb15f4,defaultVideoThumb)[_0x40a6dd(0x66)](()=>{const _0x572fff=_0x40a6dd;_0x178e29[_0x572fff(0x8b)](_0x34300b,_0xbb15f4);})[_0x40a6dd(0x82)](_0xaab222);})[_0x1de106(0x92)]({'timestamps':[0x0],'filename':_0x31b162,'folder':_0x4c514a,'size':_0x44283a['iPdUJ'](_0x44283a[_0x1de106(0x7a)](_0x2b84c1[_0x1de106(0xb2)],'x'),_0x2b84c1[_0x1de106(0xae)])})['on'](_0x44283a[_0x1de106(0xa7)],()=>{const _0x592f50=_0x1de106;_0x44283a[_0x592f50(0x87)](_0x34300b,_0xbb15f4);});}),_0x5d8d8c=new Map(),_0x55675c=await _0x7f833c,_0x312c01=(await _0x35c404[_0x5185a2(0xb0)](_0x55675c))[_0x5185a2(0x91)];_0x5d8d8c['set'](0x0,_0x55675c);const _0x269f6d=await _0x44283a[_0x5185a2(0x87)](calculateFileMD5,_0x55675c),_0x5ceed7={'elementType':ElementType[_0x5185a2(0x76)],'elementId':'','videoElement':{'fileName':_0x44283a['zuNcW'](_0x3995e7,_0x582cb0),'filePath':_0x561b3a,'videoMd5':_0x16aebb,'thumbMd5':_0x269f6d,'fileTime':_0x2b84c1['time'],'thumbPath':_0x5d8d8c,'thumbSize':_0x312c01,'thumbWidth':_0x2b84c1[_0x5185a2(0xb2)],'thumbHeight':_0x2b84c1['height'],'fileSize':_0x44283a[_0x5185a2(0x7a)]('',_0x4663b5)}};return _0x5ceed7;}static async[_0x4739a8(0x96)](_0x133557){const _0x2d3c98=_0x4739a8,_0x475e80={'JfldM':function(_0x2767e2,_0x76eaf){return _0x2767e2(_0x76eaf);},'UaWrY':_0x2d3c98(0xa4),'UAzxy':function(_0x49575e,_0x1dd8c9){return _0x49575e===_0x1dd8c9;},'RvUAS':function(_0x18018b,_0x1ce82e){return _0x18018b||_0x1ce82e;}},{converted:_0x3bc655,path:_0x3af06f,duration:_0x46cd5e}=await _0x475e80['JfldM'](encodeSilk,_0x133557);if(!_0x3af06f)throw _0x475e80['UaWrY'];const {md5:_0x3daa94,fileName:_0x5ad1d4,path:_0x114b82,fileSize:_0x13078a}=await NTQQFileApi['uploadFile'](_0x3af06f,ElementType['PTT']);if(_0x475e80['UAzxy'](_0x13078a,0x0))throw'文件异常,大小为0';return _0x3bc655&&_0x35c404['unlink'](_0x3af06f)[_0x2d3c98(0x66)](),{'elementType':ElementType[_0x2d3c98(0x75)],'elementId':'','pttElement':{'fileName':_0x5ad1d4,'filePath':_0x114b82,'md5HexStr':_0x3daa94,'fileSize':_0x13078a,'duration':_0x475e80['RvUAS'](_0x46cd5e,0x1),'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x4739a8(0xa8)](_0x5afbd9){const _0x1ae383=_0x4739a8;return{'elementType':ElementType[_0x1ae383(0x9f)],'elementId':'','faceElement':{'faceIndex':_0x5afbd9,'faceType':_0x5afbd9<0xde?FaceType['normal']:FaceType[_0x1ae383(0x78)]}};}static['mface'](_0x51007f,_0xb67b70,_0x3828fc,_0x45cd68){const _0x277ba7=_0x4739a8,_0x483ca2={'XsqTM':_0x277ba7(0x68)};return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x51007f,'emojiId':_0xb67b70,'key':_0x3828fc,'faceName':_0x45cd68||mFaceCache['get'](_0xb67b70)||_0x483ca2['XsqTM']}};}static[_0x4739a8(0x69)](_0x727772){const _0x3007fd=_0x4739a8;return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType[_0x3007fd(0x69)],'faceText':_0x3007fd(0x88),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x4739a8(0x67)](_0x3e0b3a){const _0xaec2e8=_0x4739a8,_0x48d68f={'yXOcp':'[包剪锤]'};return{'elementType':ElementType[_0xaec2e8(0x9f)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0xaec2e8(0x73)],'faceText':_0x48d68f[_0xaec2e8(0x8e)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x4739a8(0x8d)](_0x28bee9){const _0x23ec82=_0x4739a8,_0xe1578e={'Fuyiy':function(_0xbb972a,_0x2733fd){return _0xbb972a!==_0x2733fd;}};return _0xe1578e['Fuyiy'](typeof _0x28bee9,_0x23ec82(0xa2))&&(_0x28bee9=JSON['stringify'](_0x28bee9)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x28bee9,'linkInfo':null,'subElementType':null}};}static[_0x4739a8(0x9c)](_0x1e0c14){const _0x4a5ded=_0x4739a8;return{'elementType':ElementType[_0x4a5ded(0xa9)],'elementId':'','markdownElement':{'content':_0x1e0c14}};}} \ No newline at end of file diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index eff138e71..7316fa010 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x2c91(){var _0x5ea471=['OvlUt','2ZQCKNY','25296ZoTfBZ','lZvEF','6831mrDMxv','owner','normal','XCFOu','10292464UvyPXf','10279512htkYML','1362IBniEV','3zlBqrL','12610750WiFxYq','966252HOcvcd','admin','7HGFPdA','7405IfupeS','1175344iiwCHd'];_0x2c91=function(){return _0x5ea471;};return _0x2c91();}(function(_0x56d277,_0x4c7989){var _0x469d4d=_0x1f81,_0x3c913c=_0x56d277();while(!![]){try{var _0xcde2d7=-parseInt(_0x469d4d(0x11b))/0x1*(-parseInt(_0x469d4d(0x115))/0x2)+parseInt(_0x469d4d(0x113))/0x3*(parseInt(_0x469d4d(0x119))/0x4)+-parseInt(_0x469d4d(0x118))/0x5*(parseInt(_0x469d4d(0x112))/0x6)+-parseInt(_0x469d4d(0x117))/0x7*(-parseInt(_0x469d4d(0x110))/0x8)+parseInt(_0x469d4d(0x111))/0x9+-parseInt(_0x469d4d(0x114))/0xa+parseInt(_0x469d4d(0x11e))/0xb*(-parseInt(_0x469d4d(0x11c))/0xc);if(_0xcde2d7===_0x4c7989)break;else _0x3c913c['push'](_0x3c913c['shift']());}catch(_0x5edd63){_0x3c913c['push'](_0x3c913c['shift']());}}}(_0x2c91,0xbf094));function _0x1f81(_0x304495,_0x3f2305){var _0x2c91c4=_0x2c91();return _0x1f81=function(_0x1f8187,_0x4f3636){_0x1f8187=_0x1f8187-0x10d;var _0x4b81a3=_0x2c91c4[_0x1f8187];return _0x4b81a3;},_0x1f81(_0x304495,_0x3f2305);}export var GroupMemberRole;(function(_0x4b2c93){var _0x1e86d9=_0x1f81,_0x3e94b9={'OvlUt':_0x1e86d9(0x10e),'XCFOu':_0x1e86d9(0x116),'lZvEF':_0x1e86d9(0x10d)};_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11a)]]=0x2]=_0x3e94b9[_0x1e86d9(0x11a)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x10f)]]=0x3]=_0x3e94b9[_0x1e86d9(0x10f)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11d)]]=0x4]='owner';}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +(function(_0x1f5626,_0x3b3409){var _0x3279f0=_0x12f5,_0x3f262e=_0x1f5626();while(!![]){try{var _0x5d5898=-parseInt(_0x3279f0(0x18c))/0x1*(-parseInt(_0x3279f0(0x189))/0x2)+parseInt(_0x3279f0(0x194))/0x3+-parseInt(_0x3279f0(0x18b))/0x4*(-parseInt(_0x3279f0(0x188))/0x5)+-parseInt(_0x3279f0(0x187))/0x6*(-parseInt(_0x3279f0(0x18a))/0x7)+parseInt(_0x3279f0(0x18e))/0x8+parseInt(_0x3279f0(0x18f))/0x9+-parseInt(_0x3279f0(0x195))/0xa;if(_0x5d5898===_0x3b3409)break;else _0x3f262e['push'](_0x3f262e['shift']());}catch(_0x1f9fe2){_0x3f262e['push'](_0x3f262e['shift']());}}}(_0x47f2,0x4a983));export var GroupMemberRole;(function(_0x1888c2){var _0x5ca9ff=_0x12f5,_0x43a5f3={'BMUIp':_0x5ca9ff(0x190),'LavPW':_0x5ca9ff(0x186),'eNKJj':_0x5ca9ff(0x191)};_0x1888c2[_0x1888c2[_0x43a5f3[_0x5ca9ff(0x192)]]=0x2]=_0x5ca9ff(0x190),_0x1888c2[_0x1888c2[_0x43a5f3[_0x5ca9ff(0x193)]]=0x3]='admin',_0x1888c2[_0x1888c2[_0x43a5f3[_0x5ca9ff(0x18d)]]=0x4]=_0x43a5f3[_0x5ca9ff(0x18d)];}(GroupMemberRole||(GroupMemberRole={})));function _0x12f5(_0x441fcf,_0x2f709a){var _0x47f25f=_0x47f2();return _0x12f5=function(_0x12f51f,_0x7573ad){_0x12f51f=_0x12f51f-0x186;var _0x1198ee=_0x47f25f[_0x12f51f];return _0x1198ee;},_0x12f5(_0x441fcf,_0x2f709a);}function _0x47f2(){var _0x3a3141=['eNKJj','1408832stwYSo','3573126WWcIbj','normal','owner','BMUIp','LavPW','1505907Jwjtaj','18263570dzaFTE','admin','2599158lxkWpA','11990jAhOgT','22028lyERkm','7znRdcm','140FRrziC','49eaAdWH'];_0x47f2=function(){return _0x3a3141;};return _0x47f2();} \ No newline at end of file diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index fafa71cee..e4cf0e8b9 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x1353e7,_0x11c41e){var _0x6f47ed=_0x39a1,_0x4f8057=_0x1353e7();while(!![]){try{var _0x4865ad=-parseInt(_0x6f47ed(0xc8))/0x1+parseInt(_0x6f47ed(0xce))/0x2+-parseInt(_0x6f47ed(0xc7))/0x3*(parseInt(_0x6f47ed(0xcd))/0x4)+parseInt(_0x6f47ed(0xc9))/0x5+-parseInt(_0x6f47ed(0xc5))/0x6*(-parseInt(_0x6f47ed(0xca))/0x7)+-parseInt(_0x6f47ed(0xcc))/0x8+parseInt(_0x6f47ed(0xc6))/0x9*(-parseInt(_0x6f47ed(0xcb))/0xa);if(_0x4865ad===_0x11c41e)break;else _0x4f8057['push'](_0x4f8057['shift']());}catch(_0x7af3b2){_0x4f8057['push'](_0x4f8057['shift']());}}}(_0x3115,0xed89f));export*from'./user';function _0x3115(){var _0x53bd7c=['9068485MkkFOk','76461IQpFKu','100BuCGoy','4708592fXiMxa','476UfWJef','2918364rofxjx','438IZIfdX','308871QJzivo','7494hdZXeU','1868273xFpZyv'];_0x3115=function(){return _0x53bd7c;};return _0x3115();}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x39a1(_0x5edd95,_0x1675d7){var _0x311527=_0x3115();return _0x39a1=function(_0x39a1a6,_0x245a14){_0x39a1a6=_0x39a1a6-0xc5;var _0x1772c4=_0x311527[_0x39a1a6];return _0x1772c4;},_0x39a1(_0x5edd95,_0x1675d7);}export*from'./constructor'; \ No newline at end of file +(function(_0x3ceee9,_0x282f06){var _0x239172=_0x531f,_0x1ed27e=_0x3ceee9();while(!![]){try{var _0x4357de=parseInt(_0x239172(0x16d))/0x1+-parseInt(_0x239172(0x16b))/0x2+-parseInt(_0x239172(0x16a))/0x3*(-parseInt(_0x239172(0x173))/0x4)+parseInt(_0x239172(0x171))/0x5+parseInt(_0x239172(0x172))/0x6*(parseInt(_0x239172(0x170))/0x7)+-parseInt(_0x239172(0x16f))/0x8*(parseInt(_0x239172(0x16c))/0x9)+-parseInt(_0x239172(0x16e))/0xa;if(_0x4357de===_0x282f06)break;else _0x1ed27e['push'](_0x1ed27e['shift']());}catch(_0x3c3648){_0x1ed27e['push'](_0x1ed27e['shift']());}}}(_0x544f,0xc4beb));function _0x531f(_0x53877e,_0x259034){var _0x544f88=_0x544f();return _0x531f=function(_0x531f1,_0x59ab60){_0x531f1=_0x531f1-0x16a;var _0x48ce1e=_0x544f88[_0x531f1];return _0x48ce1e;},_0x531f(_0x53877e,_0x259034);}export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x544f(){var _0x556993=['1343257hjKuKY','5424170UJJVHH','8kZdxTl','224ezbwli','1390120tQQxUp','74112jXIQlW','186936tneElP','93eGtlau','2521088dxHOYJ','7708239pWjxdo'];_0x544f=function(){return _0x556993;};return _0x544f();}export*from'./cache';export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index cf19635a6..2867467e7 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x2309f3=_0x4acc;(function(_0x4cc74c,_0x58427b){var _0x98373a=_0x4acc,_0x155133=_0x4cc74c();while(!![]){try{var _0x360281=parseInt(_0x98373a(0x1f0))/0x1+parseInt(_0x98373a(0x1db))/0x2*(parseInt(_0x98373a(0x1c0))/0x3)+parseInt(_0x98373a(0x1da))/0x4*(parseInt(_0x98373a(0x1c1))/0x5)+-parseInt(_0x98373a(0x1cd))/0x6*(-parseInt(_0x98373a(0x1d4))/0x7)+-parseInt(_0x98373a(0x1ef))/0x8+parseInt(_0x98373a(0x1dd))/0x9*(parseInt(_0x98373a(0x1be))/0xa)+-parseInt(_0x98373a(0x1ce))/0xb;if(_0x360281===_0x58427b)break;else _0x155133['push'](_0x155133['shift']());}catch(_0xbfc9be){_0x155133['push'](_0x155133['shift']());}}}(_0x5863,0x2f9f7));export var ElementType;(function(_0x4bd957){var _0x51d27a=_0x4acc,_0x10fbd9={'AokMK':'4|5|8|6|1|7|0|3|2|9','qRRGB':'REPLY','jfKyh':'VIDEO','yGPbL':_0x51d27a(0x1e5),'PkrSN':'ARK','bJemt':_0x51d27a(0x1f5),'fZSXO':_0x51d27a(0x1c8),'vehAW':_0x51d27a(0x1dc),'ScBip':_0x51d27a(0x1d3),'cwcpG':_0x51d27a(0x1c2),'ZVoRm':_0x51d27a(0x1f4)},_0x129b2f=_0x10fbd9[_0x51d27a(0x1cf)][_0x51d27a(0x1d6)]('|'),_0x34eda3=0x0;while(!![]){switch(_0x129b2f[_0x34eda3++]){case'0':_0x4bd957[_0x4bd957[_0x10fbd9[_0x51d27a(0x1c4)]]=0x7]=_0x10fbd9[_0x51d27a(0x1c4)];continue;case'1':_0x4bd957[_0x4bd957[_0x51d27a(0x1f1)]=0x5]=_0x10fbd9[_0x51d27a(0x1d9)];continue;case'2':_0x4bd957[_0x4bd957[_0x10fbd9[_0x51d27a(0x1c3)]]=0xb]=_0x10fbd9[_0x51d27a(0x1c3)];continue;case'3':_0x4bd957[_0x4bd957['ARK']=0xa]=_0x10fbd9[_0x51d27a(0x1d1)];continue;case'4':_0x4bd957[_0x4bd957[_0x51d27a(0x1f5)]=0x1]=_0x10fbd9[_0x51d27a(0x1c7)];continue;case'5':_0x4bd957[_0x4bd957[_0x10fbd9['fZSXO']]=0x2]=_0x10fbd9[_0x51d27a(0x1e4)];continue;case'6':_0x4bd957[_0x4bd957[_0x10fbd9['vehAW']]=0x4]=_0x51d27a(0x1dc);continue;case'7':_0x4bd957[_0x4bd957[_0x51d27a(0x1d3)]=0x6]=_0x10fbd9[_0x51d27a(0x1d7)];continue;case'8':_0x4bd957[_0x4bd957[_0x10fbd9['cwcpG']]=0x3]=_0x10fbd9[_0x51d27a(0x1e2)];continue;case'9':_0x4bd957[_0x4bd957[_0x10fbd9[_0x51d27a(0x1f2)]]=0xe]=_0x10fbd9[_0x51d27a(0x1f2)];continue;}break;}}(ElementType||(ElementType={})));function _0x4acc(_0xfb174f,_0x3716bb){var _0x58630b=_0x5863();return _0x4acc=function(_0x4accca,_0x4e84ab){_0x4accca=_0x4accca-0x1b9;var _0x3cbe62=_0x58630b[_0x4accca];return _0x3cbe62;},_0x4acc(_0xfb174f,_0x3716bb);}export var PicType;(function(_0x39e8e3){var _0x119d82=_0x4acc,_0x10700c={'BFWBL':'gif','YQqyu':_0x119d82(0x1ed)};_0x39e8e3[_0x39e8e3[_0x10700c[_0x119d82(0x1d0)]]=0x7d0]='gif',_0x39e8e3[_0x39e8e3['jpg']=0x3e8]=_0x10700c[_0x119d82(0x1df)];}(PicType||(PicType={})));export var PicSubType;(function(_0x339b70){var _0x1ef533=_0x4acc,_0x13b9e8={'slLdr':_0x1ef533(0x1ea),'mvHfu':_0x1ef533(0x1ba)};_0x339b70[_0x339b70[_0x13b9e8[_0x1ef533(0x1b9)]]=0x0]=_0x13b9e8[_0x1ef533(0x1b9)],_0x339b70[_0x339b70[_0x1ef533(0x1ba)]=0x1]=_0x13b9e8[_0x1ef533(0x1ec)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x520916){var _0x42f39a=_0x4acc,_0x4d1e96={'GjNQY':_0x42f39a(0x1eb),'tYLRX':'atAll','GwLnY':'atUser'};_0x520916[_0x520916[_0x4d1e96[_0x42f39a(0x1e9)]]=0x0]=_0x4d1e96[_0x42f39a(0x1e9)],_0x520916[_0x520916[_0x4d1e96[_0x42f39a(0x1f7)]]=0x1]=_0x4d1e96[_0x42f39a(0x1f7)],_0x520916[_0x520916[_0x4d1e96[_0x42f39a(0x1e7)]]=0x2]=_0x4d1e96['GwLnY'];}(AtType||(AtType={})));function _0x5863(){var _0x4d37d1=['INVITE_NEW_MEMBER','split','ScBip','XzQhL','jfKyh','548mhKkvo','2MIWhAA','PTT','117ZyKOIM','temp','YQqyu','cshzY','MEMBER_NEW_TITLE','cwcpG','pbPPk','fZSXO','MFACE','chatDevice','GwLnY','XdcEQ','GjNQY','normal','notAt','mvHfu','jpg','normal2','39120WmWOvV','147361DakbLv','VIDEO','ZVoRm','RPS','MARKDOWN','TEXT','BjgDS','tYLRX','friend','slLdr','face','https://gchat.qpic.cn','ROXng','dice','291320JlsbfU','jcbvh','498561xgoxuN','10745gRIPKd','FILE','yGPbL','qRRGB','Kfbmk','ZcCeB','bJemt','PIC','PENJl','memberIncrease','KlfKm','qHaVy','6AmkIyQ','10131561uHhagB','AokMK','BFWBL','PkrSN','ban','FACE','940289Dkrzlu'];_0x5863=function(){return _0x4d37d1;};return _0x5863();}export var ChatType;(function(_0x7eaa96){var _0x3ae98d=_0x4acc,_0x15a0f7={'qHaVy':_0x3ae98d(0x1f8),'BjgDS':'group','cshzY':_0x3ae98d(0x1e6),'ROXng':_0x3ae98d(0x1de)};_0x7eaa96[_0x7eaa96[_0x15a0f7[_0x3ae98d(0x1cc)]]=0x1]=_0x15a0f7['qHaVy'],_0x7eaa96[_0x7eaa96[_0x15a0f7['BjgDS']]=0x2]=_0x15a0f7[_0x3ae98d(0x1f6)],_0x7eaa96[_0x7eaa96[_0x15a0f7[_0x3ae98d(0x1e0)]]=0x8]=_0x15a0f7[_0x3ae98d(0x1e0)],_0x7eaa96[_0x7eaa96[_0x15a0f7[_0x3ae98d(0x1bc)]]=0x64]=_0x15a0f7['ROXng'];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x2309f3(0x1bb);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x46383b){var _0xfce0ce=_0x2309f3,_0x402129={'KlfKm':_0xfce0ce(0x1d5),'pbPPk':_0xfce0ce(0x1e1)};_0x46383b[_0x46383b[_0xfce0ce(0x1d5)]=0xc]=_0x402129[_0xfce0ce(0x1cb)],_0x46383b[_0x46383b[_0x402129['pbPPk']]=0x11]=_0x402129[_0xfce0ce(0x1e3)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x2bdc05){var _0x26f46d=_0x2309f3,_0x592cc0={'jcbvh':_0x26f46d(0x1ea),'ZcCeB':_0x26f46d(0x1ee),'XzQhL':'dice'};_0x2bdc05[_0x2bdc05[_0x26f46d(0x1ea)]=0x1]=_0x592cc0[_0x26f46d(0x1bf)],_0x2bdc05[_0x2bdc05[_0x592cc0[_0x26f46d(0x1c6)]]=0x2]=_0x592cc0[_0x26f46d(0x1c6)],_0x2bdc05[_0x2bdc05[_0x592cc0[_0x26f46d(0x1d8)]]=0x3]=_0x592cc0[_0x26f46d(0x1d8)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x3b1a3e){var _0x2d4a99=_0x2309f3,_0x15640c={'kbbuB':_0x2d4a99(0x1bd),'JWpmi':_0x2d4a99(0x1f3)};_0x3b1a3e[_0x3b1a3e[_0x15640c['kbbuB']]=0x166]=_0x15640c['kbbuB'],_0x3b1a3e[_0x3b1a3e[_0x15640c['JWpmi']]=0x167]=_0x15640c['JWpmi'];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x1053ed){var _0x2c1bd7=_0x2309f3,_0x592e46={'PENJl':_0x2c1bd7(0x1ca),'XdcEQ':'kicked','Kfbmk':_0x2c1bd7(0x1d2)};_0x1053ed[_0x1053ed[_0x592e46[_0x2c1bd7(0x1c9)]]=0x1]=_0x2c1bd7(0x1ca),_0x1053ed[_0x1053ed[_0x592e46[_0x2c1bd7(0x1e8)]]=0x3]=_0x592e46[_0x2c1bd7(0x1e8)],_0x1053ed[_0x1053ed[_0x592e46[_0x2c1bd7(0x1c5)]]=0x8]=_0x592e46['Kfbmk'];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x5976d0=_0x397e;function _0x397e(_0x64ecbc,_0x1a0443){var _0x597912=_0x5979();return _0x397e=function(_0x397e18,_0x40513a){_0x397e18=_0x397e18-0x166;var _0xcd833a=_0x597912[_0x397e18];return _0xcd833a;},_0x397e(_0x64ecbc,_0x1a0443);}(function(_0x3e1097,_0x1396be){var _0xb711e5=_0x397e,_0x5b6ae5=_0x3e1097();while(!![]){try{var _0xe9044c=parseInt(_0xb711e5(0x18e))/0x1*(parseInt(_0xb711e5(0x188))/0x2)+parseInt(_0xb711e5(0x184))/0x3*(-parseInt(_0xb711e5(0x16c))/0x4)+-parseInt(_0xb711e5(0x191))/0x5*(parseInt(_0xb711e5(0x185))/0x6)+-parseInt(_0xb711e5(0x177))/0x7+-parseInt(_0xb711e5(0x19d))/0x8+parseInt(_0xb711e5(0x167))/0x9*(-parseInt(_0xb711e5(0x18d))/0xa)+parseInt(_0xb711e5(0x18a))/0xb*(parseInt(_0xb711e5(0x170))/0xc);if(_0xe9044c===_0x1396be)break;else _0x5b6ae5['push'](_0x5b6ae5['shift']());}catch(_0x346250){_0x5b6ae5['push'](_0x5b6ae5['shift']());}}}(_0x5979,0x3de1a));export var ElementType;(function(_0x3ff5df){var _0x217349=_0x397e,_0x2bf333={'lcOGk':_0x217349(0x168),'HDdIO':_0x217349(0x172),'sEDxW':'VIDEO','kPzUF':_0x217349(0x16e),'NlSrc':_0x217349(0x1a6),'Ltjmu':_0x217349(0x179),'cgQRX':_0x217349(0x186),'pUKFz':_0x217349(0x19a),'YRNyM':'MARKDOWN','pTZCM':'FACE'},_0x3151aa=_0x2bf333[_0x217349(0x19f)][_0x217349(0x187)]('|'),_0x16156c=0x0;while(!![]){switch(_0x3151aa[_0x16156c++]){case'0':_0x3ff5df[_0x3ff5df[_0x2bf333[_0x217349(0x192)]]=0xb]=_0x2bf333[_0x217349(0x192)];continue;case'1':_0x3ff5df[_0x3ff5df[_0x2bf333[_0x217349(0x1a5)]]=0x5]=_0x2bf333['sEDxW'];continue;case'2':_0x3ff5df[_0x3ff5df[_0x2bf333[_0x217349(0x166)]]=0x2]=_0x2bf333['kPzUF'];continue;case'3':_0x3ff5df[_0x3ff5df[_0x217349(0x174)]=0x1]=_0x217349(0x174);continue;case'4':_0x3ff5df[_0x3ff5df[_0x2bf333[_0x217349(0x17a)]]=0x4]=_0x2bf333['NlSrc'];continue;case'5':_0x3ff5df[_0x3ff5df[_0x217349(0x179)]=0xa]=_0x2bf333[_0x217349(0x1a7)];continue;case'6':_0x3ff5df[_0x3ff5df['REPLY']=0x7]=_0x2bf333[_0x217349(0x189)];continue;case'7':_0x3ff5df[_0x3ff5df[_0x2bf333[_0x217349(0x182)]]=0x3]=_0x217349(0x19a);continue;case'8':_0x3ff5df[_0x3ff5df[_0x2bf333[_0x217349(0x19e)]]=0xe]=_0x2bf333[_0x217349(0x19e)];continue;case'9':_0x3ff5df[_0x3ff5df[_0x2bf333['pTZCM']]=0x6]=_0x2bf333[_0x217349(0x18b)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x192f80){var _0x2badc3=_0x397e,_0x1105c4={'pWdxE':'gif','NEibf':_0x2badc3(0x19c)};_0x192f80[_0x192f80['gif']=0x7d0]=_0x1105c4[_0x2badc3(0x197)],_0x192f80[_0x192f80[_0x1105c4[_0x2badc3(0x16a)]]=0x3e8]=_0x1105c4[_0x2badc3(0x16a)];}(PicType||(PicType={})));export var PicSubType;(function(_0x1bc242){var _0x302957=_0x397e,_0x543472={'EVQzj':_0x302957(0x175),'OAREA':_0x302957(0x194)};_0x1bc242[_0x1bc242[_0x543472[_0x302957(0x199)]]=0x0]=_0x302957(0x175),_0x1bc242[_0x1bc242[_0x543472['OAREA']]=0x1]=_0x543472[_0x302957(0x196)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x24bfc){var _0x1765e8=_0x397e,_0x6f39ce={'acCjh':_0x1765e8(0x183),'BsdpL':_0x1765e8(0x193)};_0x24bfc[_0x24bfc[_0x6f39ce['acCjh']]=0x0]=_0x6f39ce[_0x1765e8(0x181)],_0x24bfc[_0x24bfc[_0x1765e8(0x171)]=0x1]='atAll',_0x24bfc[_0x24bfc[_0x6f39ce[_0x1765e8(0x18f)]]=0x2]=_0x6f39ce['BsdpL'];}(AtType||(AtType={})));export var ChatType;(function(_0x585007){var _0x479769=_0x397e,_0xfc494b={'ivfBu':_0x479769(0x180),'EKDXt':_0x479769(0x190),'rbUnq':_0x479769(0x1a3)};_0x585007[_0x585007[_0xfc494b[_0x479769(0x178)]]=0x1]=_0xfc494b[_0x479769(0x178)],_0x585007[_0x585007[_0xfc494b['EKDXt']]=0x2]=_0xfc494b[_0x479769(0x17e)],_0x585007[_0x585007[_0x479769(0x169)]=0x8]='chatDevice',_0x585007[_0x585007[_0xfc494b[_0x479769(0x17d)]]=0x64]=_0x479769(0x1a3);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x5976d0(0x17b);export const IMAGE_HTTP_HOST_NT=_0x5976d0(0x1a2);export var GrayTipElementSubType;(function(_0x476f5b){var _0x53522d=_0x5976d0,_0x2e7ae4={'bCXxF':_0x53522d(0x17f),'meaiD':_0x53522d(0x17c)};_0x476f5b[_0x476f5b[_0x2e7ae4['bCXxF']]=0xc]='INVITE_NEW_MEMBER',_0x476f5b[_0x476f5b[_0x2e7ae4[_0x53522d(0x16d)]]=0x11]=_0x2e7ae4[_0x53522d(0x16d)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x55f61b){var _0x2de20c=_0x5976d0,_0x4aeb6b={'YjvQA':_0x2de20c(0x175),'OfvZL':_0x2de20c(0x176),'vAGQZ':_0x2de20c(0x1a1)};_0x55f61b[_0x55f61b[_0x4aeb6b[_0x2de20c(0x1a4)]]=0x1]=_0x2de20c(0x175),_0x55f61b[_0x55f61b['normal2']=0x2]=_0x4aeb6b[_0x2de20c(0x198)],_0x55f61b[_0x55f61b[_0x4aeb6b[_0x2de20c(0x16f)]]=0x3]=_0x4aeb6b[_0x2de20c(0x16f)];}(FaceType||(FaceType={})));function _0x5979(){var _0x549880=['ARK','NlSrc','https://gchat.qpic.cn','MEMBER_NEW_TITLE','rbUnq','EKDXt','INVITE_NEW_MEMBER','friend','acCjh','pUKFz','notAt','36muJNui','12sExSVV','REPLY','split','4gteMmo','cgQRX','1683xGTzmv','pTZCM','ban','2326130sRceSd','38256pbdRtn','BsdpL','group','259055yAVvDc','HDdIO','atUser','face','hDQLR','OAREA','pWdxE','OfvZL','EVQzj','FILE','EeAdm','jpg','451944uPxBCO','YRNyM','lcOGk','MKpaJ','dice','https://multimedia.nt.qq.com.cn','temp','YjvQA','sEDxW','PTT','Ltjmu','kPzUF','9oNvrXH','3|2|7|4|1|9|6|5|0|8','chatDevice','NEibf','memberIncrease','150132HttBma','meaiD','PIC','vAGQZ','103548FyLZvb','atAll','MFACE','ynEeO','TEXT','normal','normal2','2101113Toflkn','ivfBu'];_0x5979=function(){return _0x549880;};return _0x5979();}export var FaceIndex;(function(_0x3dacc6){var _0x1c82bd=_0x5976d0,_0x24b088={'oVErI':_0x1c82bd(0x1a1),'ynEeO':'RPS'};_0x3dacc6[_0x3dacc6['dice']=0x166]=_0x24b088['oVErI'],_0x3dacc6[_0x3dacc6[_0x24b088[_0x1c82bd(0x173)]]=0x167]='RPS';}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x2d110e){var _0x1c879d=_0x5976d0,_0x3c01d7={'MKpaJ':'memberIncrease','hDQLR':'kicked','EeAdm':_0x1c879d(0x18c)};_0x2d110e[_0x2d110e[_0x3c01d7[_0x1c879d(0x1a0)]]=0x1]=_0x1c879d(0x16b),_0x2d110e[_0x2d110e[_0x3c01d7[_0x1c879d(0x195)]]=0x3]=_0x3c01d7['hDQLR'],_0x2d110e[_0x2d110e[_0x1c879d(0x18c)]=0x8]=_0x3c01d7[_0x1c879d(0x19b)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/notify.js b/src/core.lib/src/entities/notify.js index dbfa2e7eb..ab8744415 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x2743a7,_0x438a0b){var _0x39193b=_0x25ac,_0x3a31e4=_0x2743a7();while(!![]){try{var _0x4ccfa4=-parseInt(_0x39193b(0x19d))/0x1+-parseInt(_0x39193b(0x19b))/0x2*(parseInt(_0x39193b(0x1aa))/0x3)+parseInt(_0x39193b(0x1a0))/0x4+parseInt(_0x39193b(0x1ab))/0x5*(-parseInt(_0x39193b(0x1b5))/0x6)+parseInt(_0x39193b(0x1a6))/0x7*(parseInt(_0x39193b(0x1a7))/0x8)+-parseInt(_0x39193b(0x199))/0x9*(parseInt(_0x39193b(0x1a9))/0xa)+parseInt(_0x39193b(0x198))/0xb*(parseInt(_0x39193b(0x1a8))/0xc);if(_0x4ccfa4===_0x438a0b)break;else _0x3a31e4['push'](_0x3a31e4['shift']());}catch(_0x1bc049){_0x3a31e4['push'](_0x3a31e4['shift']());}}}(_0xe2fc,0xafd76));export var GroupNotifyTypes;(function(_0x23cdc4){var _0x2153ed=_0x25ac,_0x1e0eca={'AhuXW':_0x2153ed(0x1b3),'HSxTD':_0x2153ed(0x19a),'zHBgk':_0x2153ed(0x1ae),'unktC':_0x2153ed(0x1af),'NRZQG':'MEMBER_EXIT','uZoRI':_0x2153ed(0x1b0),'uePLG':_0x2153ed(0x1ad)};_0x23cdc4[_0x23cdc4[_0x2153ed(0x1a5)]=0x1]=_0x2153ed(0x1a5),_0x23cdc4[_0x23cdc4[_0x2153ed(0x1b3)]=0x4]=_0x1e0eca[_0x2153ed(0x1a1)],_0x23cdc4[_0x23cdc4[_0x1e0eca['HSxTD']]=0x7]=_0x1e0eca[_0x2153ed(0x1a2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b2)]]=0x8]=_0x1e0eca[_0x2153ed(0x1b2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1ac)]]=0x9]=_0x1e0eca[_0x2153ed(0x1ac)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x197)]]=0xb]=_0x1e0eca[_0x2153ed(0x197)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b4)]]=0xc]=_0x1e0eca[_0x2153ed(0x1b4)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x19e)]]=0xd]=_0x2153ed(0x1ad);}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x25ac(_0x58855d,_0x1f2a0b){var _0xe2fc75=_0xe2fc();return _0x25ac=function(_0x25ac41,_0x4339be){_0x25ac41=_0x25ac41-0x197;var _0x1f941f=_0xe2fc75[_0x25ac41];return _0x1f941f;},_0x25ac(_0x58855d,_0x1f2a0b);}export var GroupNotifyStatus;(function(_0x65ee21){var _0x2a0e89=_0x25ac,_0x3827e5={'kyvxE':_0x2a0e89(0x19f),'HjyRg':_0x2a0e89(0x1a3),'kQkfm':'APPROVE','eXWXj':_0x2a0e89(0x1a4)};_0x65ee21[_0x65ee21[_0x2a0e89(0x19f)]=0x0]=_0x3827e5['kyvxE'],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a3)]=0x1]=_0x3827e5['HjyRg'],_0x65ee21[_0x65ee21[_0x3827e5[_0x2a0e89(0x1b7)]]=0x2]=_0x3827e5[_0x2a0e89(0x1b7)],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a4)]=0x3]=_0x3827e5['eXWXj'];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0xe2fc(){var _0x216561=['unktC','ADMIN_UNSET_OTHER','ADMIN_SET','KICK_MEMBER','ADMIN_UNSET','reject','zHBgk','INVITED_JOIN','uZoRI','5615580HthQyP','ODORW','kQkfm','NRZQG','11hdBIUc','108CZQaiG','JOIN_REQUEST','19144mdQcdy','FYPDr','420103TPEuZV','uePLG','IGNORE','1541716MYGJKG','AhuXW','HSxTD','WAIT_HANDLE','REJECT','INVITE_ME','371mgVCRW','102624FhsaOu','18822120ABhULr','153530mmcwjt','117JNdBnF','5pIYWXG'];_0xe2fc=function(){return _0x216561;};return _0xe2fc();}export var GroupRequestOperateTypes;(function(_0x5057ed){var _0xea7a7f=_0x25ac,_0x18ad98={'ODORW':'approve','FYPDr':_0xea7a7f(0x1b1)};_0x5057ed[_0x5057ed[_0x18ad98['ODORW']]=0x1]=_0x18ad98[_0xea7a7f(0x1b6)],_0x5057ed[_0x5057ed[_0x18ad98[_0xea7a7f(0x19c)]]=0x2]=_0xea7a7f(0x1b1);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x4e365f,_0x4843f6){var _0x4dc18d=_0x1290,_0x250cd5=_0x4e365f();while(!![]){try{var _0x9a9cc2=-parseInt(_0x4dc18d(0x112))/0x1+parseInt(_0x4dc18d(0x10a))/0x2+-parseInt(_0x4dc18d(0x107))/0x3+-parseInt(_0x4dc18d(0x10d))/0x4+-parseInt(_0x4dc18d(0x109))/0x5+-parseInt(_0x4dc18d(0x121))/0x6+parseInt(_0x4dc18d(0x11b))/0x7;if(_0x9a9cc2===_0x4843f6)break;else _0x250cd5['push'](_0x250cd5['shift']());}catch(_0x1b3e60){_0x250cd5['push'](_0x250cd5['shift']());}}}(_0x442e,0xc71e0));export var GroupNotifyTypes;function _0x442e(){var _0x35ae0a=['7829945jiynPG','1117498bfLLdU','sCKqL','APPROVE','2406436MzGJlN','cHcyN','REJECT','approve','INVITED_JOIN','209164LkcqDf','MEMBER_EXIT','YQnax','YMCWn','bvwRP','WXbUe','svuMp','ADMIN_UNSET','XYuLu','27315855nHkzOX','WAIT_HANDLE','ADMIN_SET','XWWSe','split','JOIN_REQUEST','2698524ZEaYoE','6|4|3|2|1|0|7|5','KICK_MEMBER','IGNORE','ADMIN_UNSET_OTHER','INVITE_ME','2456742XQkieK','XcZYO'];_0x442e=function(){return _0x35ae0a;};return _0x442e();}function _0x1290(_0xb12772,_0x458d68){var _0x442e21=_0x442e();return _0x1290=function(_0x129049,_0x4167c5){_0x129049=_0x129049-0x105;var _0x5c6805=_0x442e21[_0x129049];return _0x5c6805;},_0x1290(_0xb12772,_0x458d68);}(function(_0xf52c7c){var _0x56dbbd=_0x1290,_0x35282a={'bvwRP':_0x56dbbd(0x122),'PXEhD':'MEMBER_EXIT','XcZYO':_0x56dbbd(0x123),'cHcyN':_0x56dbbd(0x111),'XWWSe':_0x56dbbd(0x105),'YMCWn':_0x56dbbd(0x106),'WXbUe':_0x56dbbd(0x119)},_0x292bc8=_0x35282a[_0x56dbbd(0x116)][_0x56dbbd(0x11f)]('|'),_0x216f62=0x0;while(!![]){switch(_0x292bc8[_0x216f62++]){case'0':_0xf52c7c[_0xf52c7c[_0x35282a['PXEhD']]=0xb]=_0x56dbbd(0x113);continue;case'1':_0xf52c7c[_0xf52c7c[_0x35282a[_0x56dbbd(0x108)]]=0x9]=_0x35282a[_0x56dbbd(0x108)];continue;case'2':_0xf52c7c[_0xf52c7c[_0x56dbbd(0x11d)]=0x8]='ADMIN_SET';continue;case'3':_0xf52c7c[_0xf52c7c[_0x56dbbd(0x120)]=0x7]=_0x56dbbd(0x120);continue;case'4':_0xf52c7c[_0xf52c7c[_0x35282a[_0x56dbbd(0x10e)]]=0x4]=_0x35282a[_0x56dbbd(0x10e)];continue;case'5':_0xf52c7c[_0xf52c7c[_0x35282a[_0x56dbbd(0x11e)]]=0xd]=_0x35282a[_0x56dbbd(0x11e)];continue;case'6':_0xf52c7c[_0xf52c7c[_0x35282a[_0x56dbbd(0x115)]]=0x1]=_0x35282a[_0x56dbbd(0x115)];continue;case'7':_0xf52c7c[_0xf52c7c[_0x35282a[_0x56dbbd(0x117)]]=0xc]=_0x56dbbd(0x119);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x25f4a4){var _0x31a17d=_0x1290,_0x51d8b1={'XYuLu':_0x31a17d(0x124),'YQnax':_0x31a17d(0x11c),'svuMp':_0x31a17d(0x10c),'iKdEw':_0x31a17d(0x10f)};_0x25f4a4[_0x25f4a4[_0x51d8b1[_0x31a17d(0x11a)]]=0x0]=_0x51d8b1[_0x31a17d(0x11a)],_0x25f4a4[_0x25f4a4[_0x51d8b1[_0x31a17d(0x114)]]=0x1]=_0x51d8b1[_0x31a17d(0x114)],_0x25f4a4[_0x25f4a4[_0x51d8b1[_0x31a17d(0x118)]]=0x2]=_0x51d8b1[_0x31a17d(0x118)],_0x25f4a4[_0x25f4a4[_0x31a17d(0x10f)]=0x3]=_0x51d8b1['iKdEw'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x5ea232){var _0x345295=_0x1290,_0x577026={'QKfkE':'approve','sCKqL':'reject'};_0x5ea232[_0x5ea232[_0x345295(0x110)]=0x1]=_0x577026['QKfkE'],_0x5ea232[_0x5ea232[_0x577026[_0x345295(0x10b)]]=0x2]=_0x577026[_0x345295(0x10b)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index 8ca50d5ed..79c8bb558 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x1202(){var _0x206667=['male','11271664QofUvI','6wGIlaY','nQZIc','515443EVUzbK','1226468wkKmSw','374568hebLHR','PExOs','1429211iicuwF','2893700dJAYBE','unknown','female','1072910WoEvlH'];_0x1202=function(){return _0x206667;};return _0x1202();}function _0x1995(_0x12b74f,_0x136525){var _0x120270=_0x1202();return _0x1995=function(_0x199598,_0x282ea2){_0x199598=_0x199598-0x1d6;var _0x26ae06=_0x120270[_0x199598];return _0x26ae06;},_0x1995(_0x12b74f,_0x136525);}(function(_0x31da6d,_0x1a8293){var _0x24b5c0=_0x1995,_0x335757=_0x31da6d();while(!![]){try{var _0x36f86d=-parseInt(_0x24b5c0(0x1da))/0x1+-parseInt(_0x24b5c0(0x1e2))/0x2+-parseInt(_0x24b5c0(0x1dc))/0x3+-parseInt(_0x24b5c0(0x1db))/0x4+parseInt(_0x24b5c0(0x1df))/0x5+parseInt(_0x24b5c0(0x1d8))/0x6*(-parseInt(_0x24b5c0(0x1de))/0x7)+parseInt(_0x24b5c0(0x1d7))/0x8;if(_0x36f86d===_0x1a8293)break;else _0x335757['push'](_0x335757['shift']());}catch(_0x1078ec){_0x335757['push'](_0x335757['shift']());}}}(_0x1202,0x4947a));export var Sex;(function(_0x3a3377){var _0x4f37d1=_0x1995,_0x1f6f58={'nQZIc':_0x4f37d1(0x1d6),'PExOs':_0x4f37d1(0x1e1)};_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1d9)]]=0x1]=_0x1f6f58[_0x4f37d1(0x1d9)],_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1dd)]]=0x2]='female',_0x3a3377[_0x3a3377['unknown']=0xff]=_0x4f37d1(0x1e0);}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x324ae4,_0x339e8f){var _0x3640a0=_0x37e1,_0x46ad0a=_0x324ae4();while(!![]){try{var _0x5b59b1=parseInt(_0x3640a0(0x1a8))/0x1*(parseInt(_0x3640a0(0x1a2))/0x2)+parseInt(_0x3640a0(0x1ac))/0x3+-parseInt(_0x3640a0(0x19e))/0x4*(parseInt(_0x3640a0(0x1ad))/0x5)+parseInt(_0x3640a0(0x1a6))/0x6*(-parseInt(_0x3640a0(0x1ae))/0x7)+parseInt(_0x3640a0(0x1a1))/0x8*(parseInt(_0x3640a0(0x1a0))/0x9)+-parseInt(_0x3640a0(0x1ab))/0xa+parseInt(_0x3640a0(0x19f))/0xb;if(_0x5b59b1===_0x339e8f)break;else _0x46ad0a['push'](_0x46ad0a['shift']());}catch(_0x259ea6){_0x46ad0a['push'](_0x46ad0a['shift']());}}}(_0x5b8e,0x1c2e8));export var Sex;function _0x37e1(_0x56f830,_0x5ce73a){var _0x5b8e4b=_0x5b8e();return _0x37e1=function(_0x37e16c,_0x508dee){_0x37e16c=_0x37e16c-0x19e;var _0x57dbed=_0x5b8e4b[_0x37e16c];return _0x57dbed;},_0x37e1(_0x56f830,_0x5ce73a);}(function(_0x42fab3){var _0x2eed5a=_0x37e1,_0x193a1d={'nFEwu':_0x2eed5a(0x1aa),'ucLDw':_0x2eed5a(0x1a5),'GaErI':_0x2eed5a(0x1a4)};_0x42fab3[_0x42fab3[_0x193a1d[_0x2eed5a(0x1a9)]]=0x1]=_0x2eed5a(0x1aa),_0x42fab3[_0x42fab3[_0x193a1d[_0x2eed5a(0x1a7)]]=0x2]=_0x193a1d[_0x2eed5a(0x1a7)],_0x42fab3[_0x42fab3[_0x193a1d[_0x2eed5a(0x1a3)]]=0xff]=_0x193a1d[_0x2eed5a(0x1a3)];}(Sex||(Sex={})));function _0x5b8e(){var _0x3f8c28=['2ushEbc','GaErI','unknown','female','1110mwDwRz','ucLDw','83964sSnKTD','nFEwu','male','589510OvDAEy','314394MVEoNG','818215fqguBN','1211qRcMSD','4UqprBd','1280235AHvXLi','27JlfvJg','173024wHoKCf'];_0x5b8e=function(){return _0x3f8c28;};return _0x5b8e();} \ No newline at end of file diff --git a/src/core.lib/src/external/hook.js b/src/core.lib/src/external/hook.js index 97b22d3b2..f908326ad 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x346c92=_0x329e;(function(_0xc4b973,_0x9d70db){const _0x21ef07=_0x329e,_0x27a83c=_0xc4b973();while(!![]){try{const _0x45adad=parseInt(_0x21ef07(0x168))/0x1*(-parseInt(_0x21ef07(0x16b))/0x2)+-parseInt(_0x21ef07(0x16d))/0x3+-parseInt(_0x21ef07(0x167))/0x4*(-parseInt(_0x21ef07(0x173))/0x5)+parseInt(_0x21ef07(0x175))/0x6*(-parseInt(_0x21ef07(0x166))/0x7)+parseInt(_0x21ef07(0x176))/0x8+parseInt(_0x21ef07(0x16f))/0x9+-parseInt(_0x21ef07(0x169))/0xa*(-parseInt(_0x21ef07(0x171))/0xb);if(_0x45adad===_0x9d70db)break;else _0x27a83c['push'](_0x27a83c['shift']());}catch(_0x129046){_0x27a83c['push'](_0x27a83c['shift']());}}}(_0x2cde,0xe095b));function _0x2cde(){const _0x463d2b=['10qzDtdy','加载\x20moehoo\x20失败','2924654gGKZVi','./MoeHoo.node','3666402PPOyYs','Fckhf','10830888ZGYxRA','getRKey','1953688NBCohQ','moeHook','4403830KmAbhQ','YgeNl','2233194fsLVxZ','13718024zyBXgU','hSTPF','version','GetRkey','7untwXc','4KAzLLS','1TZHgjH'];_0x2cde=function(){return _0x463d2b;};return _0x2cde();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x329e(_0x113e50,_0x3cf53a){const _0x2cdedc=_0x2cde();return _0x329e=function(_0x329ea9,_0x277521){_0x329ea9=_0x329ea9-0x164;let _0x56d662=_0x2cdedc[_0x329ea9];return _0x56d662;},_0x329e(_0x113e50,_0x3cf53a);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x346c92(0x172)]=null;constructor(){const _0x5ea9e6=_0x346c92,_0x40d1ef={'mCQTO':function(_0x423c3b,_0x4bb068){return _0x423c3b(_0x4bb068);},'YgeNl':'MoeHoo','Veiwu':_0x5ea9e6(0x16c),'hSTPF':function(_0x3a52c1,_0x5d97c8,_0x3871cc){return _0x3a52c1(_0x5d97c8,_0x3871cc);},'Fckhf':_0x5ea9e6(0x16a)};try{_0x40d1ef['mCQTO'](cpModule,_0x40d1ef[_0x5ea9e6(0x174)]),this[_0x5ea9e6(0x172)]=require(_0x40d1ef['Veiwu']),this[_0x5ea9e6(0x172)]['HookRkey'](qqPkgInfo[_0x5ea9e6(0x164)]);}catch(_0x4e804d){_0x40d1ef[_0x5ea9e6(0x177)](logError,_0x40d1ef[_0x5ea9e6(0x16e)],_0x4e804d);}}[_0x346c92(0x170)](){const _0x4d5605=_0x346c92;return this['moeHook']?.[_0x4d5605(0x165)]()||'';}['isAvailable'](){const _0x572b68=_0x346c92;return!!this[_0x572b68(0x172)];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x193e91=_0x14d9;(function(_0x456c37,_0x120ea0){const _0x4deb0f=_0x14d9,_0x4b0cc7=_0x456c37();while(!![]){try{const _0x3944d6=-parseInt(_0x4deb0f(0x1d7))/0x1+parseInt(_0x4deb0f(0x1cc))/0x2*(parseInt(_0x4deb0f(0x1c9))/0x3)+parseInt(_0x4deb0f(0x1ce))/0x4+parseInt(_0x4deb0f(0x1c6))/0x5+-parseInt(_0x4deb0f(0x1c7))/0x6+parseInt(_0x4deb0f(0x1cf))/0x7+-parseInt(_0x4deb0f(0x1d2))/0x8;if(_0x3944d6===_0x120ea0)break;else _0x4b0cc7['push'](_0x4b0cc7['shift']());}catch(_0x22c4af){_0x4b0cc7['push'](_0x4b0cc7['shift']());}}}(_0x480f,0x61283));import{logError}from'@/common/utils/log';function _0x480f(){const _0x4b7684=['401797XVwXHV','2451560NrYqQi','2737488pTbgYP','CCeXA','2315883NzbDpB','OtnfU','moeHook','2FagTQh','GetRkey','2149628unBlML','1967336uGJxiV','version','isAvailable','6597824YEywgR','MoeHoo','./MoeHoo.node','getRKey','krIIV'];_0x480f=function(){return _0x4b7684;};return _0x480f();}function _0x14d9(_0xae0ddb,_0x1cca10){const _0x480f09=_0x480f();return _0x14d9=function(_0x14d962,_0x318d46){_0x14d962=_0x14d962-0x1c6;let _0x5994c0=_0x480f09[_0x14d962];return _0x5994c0;},_0x14d9(_0xae0ddb,_0x1cca10);}import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{['moeHook']=null;constructor(){const _0x4665b7=_0x14d9,_0x1e79be={'CCeXA':_0x4665b7(0x1d3),'krIIV':function(_0x29e0a4,_0x3f61ea){return _0x29e0a4(_0x3f61ea);},'MtdZY':_0x4665b7(0x1d4),'OtnfU':'加载\x20moehoo\x20失败'};try{cpModule(_0x1e79be[_0x4665b7(0x1c8)]),this[_0x4665b7(0x1cb)]=_0x1e79be[_0x4665b7(0x1d6)](require,_0x1e79be['MtdZY']),this[_0x4665b7(0x1cb)]['HookRkey'](qqPkgInfo[_0x4665b7(0x1d0)]);}catch(_0x262e55){logError(_0x1e79be[_0x4665b7(0x1ca)],_0x262e55);}}[_0x193e91(0x1d5)](){const _0x25fc45=_0x193e91;return this[_0x25fc45(0x1cb)]?.[_0x25fc45(0x1cd)]()||'';}[_0x193e91(0x1d1)](){const _0x21f064=_0x193e91;return!!this[_0x21f064(0x1cb)];}}export const hookApi=new HookApi(); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index df77edbab..559487f91 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x5d83cb,_0x2d714d){var _0x58f0c9=_0x318b,_0x4b874e=_0x5d83cb();while(!![]){try{var _0x99167f=-parseInt(_0x58f0c9(0x1b0))/0x1*(parseInt(_0x58f0c9(0x1b4))/0x2)+parseInt(_0x58f0c9(0x1ab))/0x3*(parseInt(_0x58f0c9(0x1b2))/0x4)+-parseInt(_0x58f0c9(0x1b1))/0x5*(parseInt(_0x58f0c9(0x1ad))/0x6)+-parseInt(_0x58f0c9(0x1ae))/0x7+parseInt(_0x58f0c9(0x1af))/0x8+parseInt(_0x58f0c9(0x1b3))/0x9+-parseInt(_0x58f0c9(0x1ac))/0xa*(-parseInt(_0x58f0c9(0x1b5))/0xb);if(_0x99167f===_0x2d714d)break;else _0x4b874e['push'](_0x4b874e['shift']());}catch(_0x2b95bb){_0x4b874e['push'](_0x4b874e['shift']());}}}(_0x31c1,0xae4e6));import _0x336651 from'./wrapper';export*from'./adapters';function _0x31c1(){var _0x4cf778=['5QYsIwG','148bRFhul','5575446OhmMHj','13612QchNCS','4036131QtgXoQ','20031BVNgcD','30ZotJer','6362442Duycot','4915512CVVjKu','4237544QZddzQ','3nFrWlG'];_0x31c1=function(){return _0x4cf778;};return _0x31c1();}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0x318b(_0x213b9c,_0x943cff){var _0x31c174=_0x31c1();return _0x318b=function(_0x318bf7,_0x48dc1d){_0x318bf7=_0x318bf7-0x1ab;var _0x118ded=_0x31c174[_0x318bf7];return _0x118ded;},_0x318b(_0x213b9c,_0x943cff);}export{_0x336651 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x3650e7,_0x42245f){var _0x16f861=_0x499a,_0x53c518=_0x3650e7();while(!![]){try{var _0x68e202=parseInt(_0x16f861(0x92))/0x1+-parseInt(_0x16f861(0x90))/0x2+parseInt(_0x16f861(0x8e))/0x3*(-parseInt(_0x16f861(0x8f))/0x4)+parseInt(_0x16f861(0x91))/0x5*(-parseInt(_0x16f861(0x96))/0x6)+parseInt(_0x16f861(0x94))/0x7+-parseInt(_0x16f861(0x95))/0x8+parseInt(_0x16f861(0x93))/0x9;if(_0x68e202===_0x42245f)break;else _0x53c518['push'](_0x53c518['shift']());}catch(_0x4cd540){_0x53c518['push'](_0x53c518['shift']());}}}(_0x33d4,0x52a87));import _0x28f637 from'./wrapper';export*from'./adapters';function _0x499a(_0x40328a,_0xca06a1){var _0x33d4e1=_0x33d4();return _0x499a=function(_0x499a08,_0x4492c7){_0x499a08=_0x499a08-0x8e;var _0x27b77e=_0x33d4e1[_0x499a08];return _0x27b77e;},_0x499a(_0x40328a,_0xca06a1);}export*from'./apis';export*from'./entities';function _0x33d4(){var _0x57378d=['644630avoSZa','290NAvYvQ','442274UjRxjQ','6709428NHIfMx','1940190mEwCgw','4415712IczFAW','21966mjXWQA','59628BjbehR','8fTJxlC'];_0x33d4=function(){return _0x57378d;};return _0x33d4();}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x28f637 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index 2f57c4e06..577055f8d 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x4f2cc7=_0x4ebf;(function(_0x46ab7d,_0x121ff7){var _0x6ee1=_0x4ebf,_0xf8dbc=_0x46ab7d();while(!![]){try{var _0x4bfc72=-parseInt(_0x6ee1(0x1ca))/0x1+-parseInt(_0x6ee1(0x1c0))/0x2+parseInt(_0x6ee1(0x1bf))/0x3*(-parseInt(_0x6ee1(0x1cd))/0x4)+-parseInt(_0x6ee1(0x1c6))/0x5+parseInt(_0x6ee1(0x1d4))/0x6+-parseInt(_0x6ee1(0x1cb))/0x7*(-parseInt(_0x6ee1(0x1d0))/0x8)+-parseInt(_0x6ee1(0x1c9))/0x9*(-parseInt(_0x6ee1(0x1d3))/0xa);if(_0x4bfc72===_0x121ff7)break;else _0xf8dbc['push'](_0xf8dbc['shift']());}catch(_0x3f97df){_0xf8dbc['push'](_0xf8dbc['shift']());}}}(_0x8224,0x4035a));export class BuddyListener{[_0x4f2cc7(0x1ce)](_0x4c1995){}['onAddMeSettingChanged'](_0x371434){}[_0x4f2cc7(0x1c3)](_0x267208){}['onBlockChanged'](_0x93b589){}[_0x4f2cc7(0x1cf)](_0x153a60){}[_0x4f2cc7(0x1cc)](_0x41e0cb){}[_0x4f2cc7(0x1d2)](_0x4d533a){}[_0x4f2cc7(0x1be)](_0x1fe58d){}['onBuddyReqChange'](_0x6778e9){}[_0x4f2cc7(0x1bd)](_0x1bf056){}[_0x4f2cc7(0x1c2)](_0x373bda){}[_0x4f2cc7(0x1c4)](_0x166f71){}[_0x4f2cc7(0x1d1)](_0x3ad3c6){}[_0x4f2cc7(0x1c1)](_0x1b9621){}[_0x4f2cc7(0x1c7)](_0x30f646){}[_0x4f2cc7(0x1c5)](_0x2d0788){}[_0x4f2cc7(0x1c8)](_0x2700e6){}}function _0x4ebf(_0x5f55f4,_0x3777fd){var _0x8224ad=_0x8224();return _0x4ebf=function(_0x4ebf03,_0x3a6527){_0x4ebf03=_0x4ebf03-0x1bd;var _0x5bd0d8=_0x8224ad[_0x4ebf03];return _0x5bd0d8;},_0x4ebf(_0x5f55f4,_0x3777fd);}function _0x8224(){var _0x47c2a1=['3348177SeHSPn','onBuddyInfoChange','432844YdQZqB','onAddBuddyNeedVerify','onBuddyDetailInfoChange','8JcwoLl','onDoubtBuddyReqChange','onBuddyListChange','386890mymFVV','147552HTXhIJ','onBuddyReqUnreadCntChange','onBuddyRemarkUpdated','3yckNUt','818874jvzPqB','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onAvatarUrlUpdated','onDelBatchBuddyInfos','onSmartInfos','796185bJJEvw','onNickUpdated','onSpacePermissionInfos','189TcTSBD','375485MhaSIU'];_0x8224=function(){return _0x47c2a1;};return _0x8224();} \ No newline at end of file +var _0x423eb9=_0x5232;(function(_0x2263cc,_0x27730c){var _0x5e987f=_0x5232,_0x25f41c=_0x2263cc();while(!![]){try{var _0x1d82e3=parseInt(_0x5e987f(0x6b))/0x1*(parseInt(_0x5e987f(0x6f))/0x2)+parseInt(_0x5e987f(0x6d))/0x3*(parseInt(_0x5e987f(0x72))/0x4)+-parseInt(_0x5e987f(0x82))/0x5+parseInt(_0x5e987f(0x69))/0x6*(-parseInt(_0x5e987f(0x83))/0x7)+-parseInt(_0x5e987f(0x70))/0x8*(-parseInt(_0x5e987f(0x7f))/0x9)+-parseInt(_0x5e987f(0x7c))/0xa*(parseInt(_0x5e987f(0x67))/0xb)+parseInt(_0x5e987f(0x78))/0xc*(parseInt(_0x5e987f(0x71))/0xd);if(_0x1d82e3===_0x27730c)break;else _0x25f41c['push'](_0x25f41c['shift']());}catch(_0x23ae11){_0x25f41c['push'](_0x25f41c['shift']());}}}(_0x3a03,0xbb852));function _0x5232(_0x54875a,_0x4e7ae4){var _0x3a031a=_0x3a03();return _0x5232=function(_0x523246,_0x2a87dd){_0x523246=_0x523246-0x67;var _0x1b6f06=_0x3a031a[_0x523246];return _0x1b6f06;},_0x5232(_0x54875a,_0x4e7ae4);}function _0x3a03(){var _0x4bbb86=['180449QKbxWq','onDoubtBuddyReqChange','327DTqJxn','onAddMeSettingChanged','4VHvtIi','40sDuAKk','26BuNROX','8388AnmOAK','onNickUpdated','onAvatarUrlUpdated','onSpacePermissionInfos','onBuddyListChange','onBuddyDetailInfoChange','10183812suvNJI','onBuddyInfoChange','onCheckBuddySettingResult','onAddBuddyNeedVerify','3177770rugnKX','onSmartInfos','onDelBatchBuddyInfos','762705TtEJhD','onBuddyRemarkUpdated','onBlockChanged','5796410sUMQPa','21EjNdtS','onBuddyReqUnreadCntChange','11fpHKEA','onBuddyReqChange','930714xQuLAF','onDoubtBuddyReqUnreadNumChange'];_0x3a03=function(){return _0x4bbb86;};return _0x3a03();}export class BuddyListener{[_0x423eb9(0x7b)](_0x3d824c){}[_0x423eb9(0x6e)](_0x1f3e83){}[_0x423eb9(0x74)](_0x3793f0){}[_0x423eb9(0x81)](_0x29dc4d){}[_0x423eb9(0x77)](_0x56d285){}[_0x423eb9(0x79)](_0x13cb91){}[_0x423eb9(0x76)](_0x819f31){}[_0x423eb9(0x80)](_0x996013){}[_0x423eb9(0x68)](_0x20504f){}[_0x423eb9(0x84)](_0x142ef8){}[_0x423eb9(0x7a)](_0x44bad4){}[_0x423eb9(0x7e)](_0x2e5562){}[_0x423eb9(0x6c)](_0x82dfc0){}[_0x423eb9(0x6a)](_0x52fef9){}[_0x423eb9(0x73)](_0x1dfb1e){}[_0x423eb9(0x7d)](_0x4c5f24){}[_0x423eb9(0x75)](_0x41fd9d){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js index dfeff0630..35c2a619e 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x35aec8=_0x4ade;function _0x53ad(){var _0x407005=['2654183weClxS','9994Hkictp','onFileStatusChanged','onFileSearch','10pnDQlo','onSessionListChanged','656589MuSgps','onSessionChanged','491495QBbaaF','4ALPhPd','6451857xHpKSg','302154urCmyg','2iRTDVW','701480FWUUpY'];_0x53ad=function(){return _0x407005;};return _0x53ad();}function _0x4ade(_0xc7819e,_0x3a28c9){var _0x53ad1f=_0x53ad();return _0x4ade=function(_0x4ade03,_0x1afb61){_0x4ade03=_0x4ade03-0x198;var _0x3b9122=_0x53ad1f[_0x4ade03];return _0x3b9122;},_0x4ade(_0xc7819e,_0x3a28c9);}(function(_0x8f747c,_0x55c43d){var _0x41ce32=_0x4ade,_0x285c6d=_0x8f747c();while(!![]){try{var _0x146bcb=parseInt(_0x41ce32(0x19d))/0x1+-parseInt(_0x41ce32(0x19a))/0x2*(parseInt(_0x41ce32(0x1a2))/0x3)+parseInt(_0x41ce32(0x1a5))/0x4*(parseInt(_0x41ce32(0x1a4))/0x5)+parseInt(_0x41ce32(0x199))/0x6+-parseInt(_0x41ce32(0x19c))/0x7+-parseInt(_0x41ce32(0x19b))/0x8+parseInt(_0x41ce32(0x198))/0x9*(parseInt(_0x41ce32(0x1a0))/0xa);if(_0x146bcb===_0x55c43d)break;else _0x285c6d['push'](_0x285c6d['shift']());}catch(_0x1b9aca){_0x285c6d['push'](_0x285c6d['shift']());}}}(_0x53ad,0x2e570));export class KernelFileAssistantListener{[_0x35aec8(0x19e)](..._0x55b5ae){}[_0x35aec8(0x1a1)](..._0x34c77b){}[_0x35aec8(0x1a3)](..._0x3d0bf1){}['onFileListChanged'](..._0x5dd3b0){}[_0x35aec8(0x19f)](..._0x372ac8){}} \ No newline at end of file +var _0x30282c=_0x6e64;(function(_0x570f17,_0x3f721d){var _0x2c06e7=_0x6e64,_0x20ff0d=_0x570f17();while(!![]){try{var _0x4e2712=parseInt(_0x2c06e7(0x1ef))/0x1+parseInt(_0x2c06e7(0x1f3))/0x2*(parseInt(_0x2c06e7(0x1f2))/0x3)+parseInt(_0x2c06e7(0x1f7))/0x4+-parseInt(_0x2c06e7(0x1f1))/0x5+parseInt(_0x2c06e7(0x1f8))/0x6+-parseInt(_0x2c06e7(0x1ed))/0x7*(parseInt(_0x2c06e7(0x1f6))/0x8)+-parseInt(_0x2c06e7(0x1f0))/0x9*(parseInt(_0x2c06e7(0x1f5))/0xa);if(_0x4e2712===_0x3f721d)break;else _0x20ff0d['push'](_0x20ff0d['shift']());}catch(_0x546179){_0x20ff0d['push'](_0x20ff0d['shift']());}}}(_0x3da2,0xe407e));export class KernelFileAssistantListener{[_0x30282c(0x1ec)](..._0x4e6f91){}[_0x30282c(0x1ea)](..._0x20b7b6){}[_0x30282c(0x1eb)](..._0x729b53){}[_0x30282c(0x1f4)](..._0x40c076){}[_0x30282c(0x1ee)](..._0x29a4e9){}}function _0x6e64(_0x2b6614,_0x33baad){var _0x3da214=_0x3da2();return _0x6e64=function(_0x6e64a1,_0x2bedb0){_0x6e64a1=_0x6e64a1-0x1ea;var _0x9bbda0=_0x3da214[_0x6e64a1];return _0x9bbda0;},_0x6e64(_0x2b6614,_0x33baad);}function _0x3da2(){var _0x50396a=['28070huxVXm','104WQDegY','283484zNRVhf','1441002SOlnDA','onSessionListChanged','onSessionChanged','onFileStatusChanged','37198TtzgsA','onFileSearch','50346fiewMn','2277oHwDDI','1166880uheUFq','365829XsLvzR','26HQEVMk','onFileListChanged'];_0x3da2=function(){return _0x50396a;};return _0x3da2();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index b86c1d844..2fe383674 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x1eb23e=_0x3b45;(function(_0x5ce2d4,_0x5c5612){var _0x5351a5=_0x3b45,_0x5c54d1=_0x5ce2d4();while(!![]){try{var _0x55ab9c=parseInt(_0x5351a5(0xf0))/0x1+parseInt(_0x5351a5(0x112))/0x2+-parseInt(_0x5351a5(0x108))/0x3+parseInt(_0x5351a5(0x10c))/0x4+-parseInt(_0x5351a5(0xdc))/0x5*(parseInt(_0x5351a5(0xee))/0x6)+parseInt(_0x5351a5(0x105))/0x7*(parseInt(_0x5351a5(0xf2))/0x8)+parseInt(_0x5351a5(0xe4))/0x9*(-parseInt(_0x5351a5(0xd9))/0xa);if(_0x55ab9c===_0x5c5612)break;else _0x5c54d1['push'](_0x5c54d1['shift']());}catch(_0x4fb698){_0x5c54d1['push'](_0x5c54d1['shift']());}}}(_0x48b1,0x78c84));export class GroupListener{[_0x1eb23e(0xf1)](..._0x237161){}[_0x1eb23e(0xe1)](..._0x4bb77c){}[_0x1eb23e(0xea)](..._0x2038ba){}[_0x1eb23e(0x103)](..._0x86dfa0){}[_0x1eb23e(0x10e)](..._0x50fc29){}[_0x1eb23e(0x104)](..._0x2f5cc8){}[_0x1eb23e(0x111)](..._0x31e48d){}[_0x1eb23e(0x109)](..._0xf6058c){}['onGroupDetailInfoChange'](..._0x58962f){}[_0x1eb23e(0xf7)](..._0x3d9a30){}['onGroupFirstBulletinNotify'](..._0x10f632){}[_0x1eb23e(0xfa)](_0x16bea2,_0x29034b){}['onGroupNotifiesUpdated'](_0x32da95,_0x165284){}['onGroupBulletinRichMediaProgressUpdate'](..._0x598e22){}[_0x1eb23e(0xec)](..._0x3e323){}[_0x1eb23e(0x106)](..._0x392c45){}[_0x1eb23e(0xfb)](..._0x3d3151){}[_0x1eb23e(0x116)](..._0x7db697){}[_0x1eb23e(0xe9)](..._0x43974b){}[_0x1eb23e(0xe3)](..._0x55018c){}[_0x1eb23e(0xdd)](_0x27ef36,_0x3c4b06,_0x27f214){}[_0x1eb23e(0xed)](_0x23706d){}[_0x1eb23e(0x115)](..._0x4bc4a2){}[_0x1eb23e(0x101)](..._0xbd233e){}}function _0x3b45(_0x5c9d9a,_0x351704){var _0x48b133=_0x48b1();return _0x3b45=function(_0x3b455d,_0x59928e){_0x3b455d=_0x3b455d-0xd6;var _0x36f2f8=_0x48b133[_0x3b455d];return _0x36f2f8;},_0x3b45(_0x5c9d9a,_0x351704);}function _0x48b1(){var _0x9a0fe0=['onMemberInfoChange','onMemberInfoChange:','onGroupListUpdate:','onGroupBulletinRichMediaProgressUpdate','onGetGroupBulletinListResult','fHfCQ','onJoinGroupNoVerifyFlag','261urVQkC','onGroupFirstBulletinNotify:','onGroupDetailInfoChange:','onGroupDetailInfoChange','onGroupAllInfoChange:','onJoinGroupNotify','onGroupAllInfoChange','onGroupNotifiesUnreadCountUpdated:','onGroupNotifiesUnreadCountUpdated','onMemberListChange','9660kNqaXu','onGroupBulletinRichMediaDownloadComplete:','895067uMvrQy','onGroupMemberLevelInfoChange','15152vZZAXT','MTwhs','qFYWV','eCmKc','onJoinGroupNotify:','onGroupExtListUpdate','BLUzQ','onGroupExtListUpdate:','onGroupListUpdate','onGroupsMsgMaskResult','onSearchMemberChange:','onMemberListChange:','onGetGroupBulletinListResult:','ofpfH','HfYwj','onShutUpMemberListChanged','wXnZn','onGroupBulletinChange','onGroupArkInviteStateResult','1659VktPts','onGroupSingleScreenNotifies','fEget','800733gtHrCE','onGroupConfMemberChange','Hvwvb','onGroupBulletinRichMediaProgressUpdate:','756144ShAnLx','onGroupsMsgMaskResult:','onGroupBulletinRemindNotify','onJoinGroupNoVerifyFlag:','onShutUpMemberListChanged:','onGroupBulletinRichMediaDownloadComplete','255396XOSAUc','RFCCK','JEMvc','onSearchMemberChange','onGroupStatisticInfoChange','aJHpc','Ukxfb','onGroupNotifiesUpdated:','log','19660jujqJu','onGroupNotifiesUpdated','viGfn','2615fXoHiV'];_0x48b1=function(){return _0x9a0fe0;};return _0x48b1();}export class DebugGroupListener{[_0x1eb23e(0xf1)](..._0x20faed){var _0x3b64af=_0x1eb23e,_0x4567a0={'Ukxfb':'onGroupMemberLevelInfoChange:'};console[_0x3b64af(0xd8)](_0x4567a0[_0x3b64af(0xd6)],..._0x20faed);}['onGetGroupBulletinListResult'](..._0x2cf633){var _0x1fffcc=_0x1eb23e;console[_0x1fffcc(0xd8)](_0x1fffcc(0xfe),..._0x2cf633);}[_0x1eb23e(0xea)](..._0x1644ae){var _0x4d1652=_0x1eb23e,_0x2a7c8e={'qFYWV':_0x4d1652(0xe8)};console[_0x4d1652(0xd8)](_0x2a7c8e[_0x4d1652(0xf4)],..._0x1644ae);}['onGroupBulletinChange'](..._0x4ad35e){console['log']('onGroupBulletinChange:',..._0x4ad35e);}[_0x1eb23e(0x10e)](..._0x1b4803){var _0x56f2a2=_0x1eb23e,_0x1c2f3a={'NGYgK':'onGroupBulletinRemindNotify:'};console[_0x56f2a2(0xd8)](_0x1c2f3a['NGYgK'],..._0x1b4803);}[_0x1eb23e(0x104)](..._0xde0564){var _0x4bbb9f=_0x1eb23e,_0x20980a={'HfYwj':'onGroupArkInviteStateResult:'};console[_0x4bbb9f(0xd8)](_0x20980a[_0x4bbb9f(0x100)],..._0xde0564);}['onGroupBulletinRichMediaDownloadComplete'](..._0x22bb56){var _0x47431e=_0x1eb23e;console['log'](_0x47431e(0xef),..._0x22bb56);}[_0x1eb23e(0x109)](..._0x4654fc){var _0x3be3af=_0x1eb23e,_0x892cb={'RFCCK':'onGroupConfMemberChange:'};console[_0x3be3af(0xd8)](_0x892cb[_0x3be3af(0x113)],..._0x4654fc);}[_0x1eb23e(0xe7)](..._0x35f7a8){var _0xdb8d7=_0x1eb23e,_0x4f4322={'fEget':_0xdb8d7(0xe6)};console['log'](_0x4f4322[_0xdb8d7(0x107)],..._0x35f7a8);}[_0x1eb23e(0xf7)](..._0x2a9736){var _0x1139bc=_0x1eb23e,_0x2e37ca={'JEMvc':_0x1139bc(0xf9)};console[_0x1139bc(0xd8)](_0x2e37ca[_0x1139bc(0x114)],..._0x2a9736);}['onGroupFirstBulletinNotify'](..._0x2c246f){var _0x35c1ce=_0x1eb23e;console[_0x35c1ce(0xd8)](_0x35c1ce(0xe5),..._0x2c246f);}[_0x1eb23e(0xfa)](..._0x44aa8d){var _0x5ec5f0=_0x1eb23e,_0x2412ba={'MTwhs':_0x5ec5f0(0xdf)};console['log'](_0x2412ba[_0x5ec5f0(0xf3)],..._0x44aa8d);}[_0x1eb23e(0xda)](..._0x348c24){var _0x220e0c=_0x1eb23e,_0x50456a={'Hvwvb':_0x220e0c(0xd7)};console[_0x220e0c(0xd8)](_0x50456a[_0x220e0c(0x10a)],..._0x348c24);}[_0x1eb23e(0xe0)](..._0x6bf588){var _0x3619be=_0x1eb23e,_0x6b6093={'TSdVR':_0x3619be(0x10b)};console[_0x3619be(0xd8)](_0x6b6093['TSdVR'],..._0x6bf588);}[_0x1eb23e(0xec)](..._0x5be603){var _0x27b0ce=_0x1eb23e,_0x16e03f={'aJHpc':_0x27b0ce(0xeb)};console[_0x27b0ce(0xd8)](_0x16e03f[_0x27b0ce(0x117)],..._0x5be603);}[_0x1eb23e(0x106)](..._0x1a5f4e){var _0x21bb76=_0x1eb23e,_0x4eef43={'BLUzQ':'onGroupSingleScreenNotifies:'};console[_0x21bb76(0xd8)](_0x4eef43[_0x21bb76(0xf8)],..._0x1a5f4e);}[_0x1eb23e(0xfb)](..._0x2c20c6){var _0xc4a0f9=_0x1eb23e;console['log'](_0xc4a0f9(0x10d),..._0x2c20c6);}['onGroupStatisticInfoChange'](..._0x14fcc1){console['log']('onGroupStatisticInfoChange:',..._0x14fcc1);}['onJoinGroupNotify'](..._0x26be59){var _0x593614=_0x1eb23e,_0x50bc30={'fHfCQ':_0x593614(0xf6)};console[_0x593614(0xd8)](_0x50bc30[_0x593614(0xe2)],..._0x26be59);}[_0x1eb23e(0xe3)](..._0x4c828d){var _0xc8ec69=_0x1eb23e,_0x1f4048={'viGfn':_0xc8ec69(0x10f)};console[_0xc8ec69(0xd8)](_0x1f4048[_0xc8ec69(0xdb)],..._0x4c828d);}[_0x1eb23e(0xdd)](_0x3f10c7,_0x210f7e,_0x21e4e2){var _0x271049=_0x1eb23e,_0x4a6dd7={'eCmKc':_0x271049(0xde)};console[_0x271049(0xd8)](_0x4a6dd7[_0x271049(0xf5)],_0x3f10c7,_0x210f7e,_0x21e4e2);}[_0x1eb23e(0xed)](..._0x3e5337){var _0x2346f1=_0x1eb23e;console[_0x2346f1(0xd8)](_0x2346f1(0xfd),..._0x3e5337);}[_0x1eb23e(0x115)](..._0x72afd6){var _0x4d7f8c=_0x1eb23e,_0x16eda7={'wXnZn':_0x4d7f8c(0xfc)};console[_0x4d7f8c(0xd8)](_0x16eda7[_0x4d7f8c(0x102)],..._0x72afd6);}[_0x1eb23e(0x101)](..._0x167e6c){var _0x499e99=_0x1eb23e,_0x39d9bc={'ofpfH':_0x499e99(0x110)};console[_0x499e99(0xd8)](_0x39d9bc[_0x499e99(0xff)],..._0x167e6c);}} \ No newline at end of file +function _0x210a(){var _0x42e71a=['onGroupBulletinChange:','onGetGroupBulletinListResult:','onSearchMemberChange:','onGroupBulletinRemindNotify','onJoinGroupNoVerifyFlag','BPXug','onGroupListUpdate','pcIgs','bHcNo','onGroupsMsgMaskResult:','onGroupMemberLevelInfoChange:','MunpM','1104525FaZuaz','IRKwb','6964713XFWDXD','BIwJE','54sqAjgA','onGroupFirstBulletinNotify','onGroupExtListUpdate:','onGroupBulletinRichMediaDownloadComplete','vumGD','onMemberInfoChange:','onJoinGroupNotify:','onGroupSingleScreenNotifies','idZUV','2584968tzrAqs','onGroupArkInviteStateResult','36459paeDzP','oOpAo','onGroupArkInviteStateResult:','MNLZT','onGroupBulletinRemindNotify:','fgjfF','onGroupAllInfoChange','onGroupDetailInfoChange','onMemberInfoChange','63240GJZYqD','4544880UkLMmo','30qdNBCy','onGroupConfMemberChange','onGetGroupBulletinListResult','onGroupFirstBulletinNotify:','attLu','onGroupNotifiesUpdated','onGroupMemberLevelInfoChange','bYGJr','onShutUpMemberListChanged','onJoinGroupNotify','onGroupStatisticInfoChange','log','onGroupNotifiesUnreadCountUpdated','onGroupExtListUpdate','onGroupNotifiesUpdated:','560SQBSNQ','onGroupBulletinRichMediaProgressUpdate','onGroupBulletinChange','onGroupsMsgMaskResult','228148NPxIHP','onGroupListUpdate:','onShutUpMemberListChanged:','onGroupNotifiesUnreadCountUpdated:','NmHrr','onJoinGroupNoVerifyFlag:','onMemberListChange','QSxtW','onMemberListChange:','oTCtJ','onGroupAllInfoChange:','onSearchMemberChange','onGroupDetailInfoChange:','onGroupConfMemberChange:'];_0x210a=function(){return _0x42e71a;};return _0x210a();}function _0x1114(_0x4926ac,_0x384698){var _0x210a4c=_0x210a();return _0x1114=function(_0x111427,_0x33e9b3){_0x111427=_0x111427-0x1c1;var _0x20b074=_0x210a4c[_0x111427];return _0x20b074;},_0x1114(_0x4926ac,_0x384698);}var _0x505b1e=_0x1114;(function(_0x2b2cbb,_0x3746ec){var _0x37aeb1=_0x1114,_0x28c9a4=_0x2b2cbb();while(!![]){try{var _0xe54529=parseInt(_0x37aeb1(0x1dc))/0x1*(-parseInt(_0x37aeb1(0x1d1))/0x2)+-parseInt(_0x37aeb1(0x1e7))/0x3*(-parseInt(_0x37aeb1(0x1fa))/0x4)+parseInt(_0x37aeb1(0x1cd))/0x5+-parseInt(_0x37aeb1(0x1e5))/0x6*(-parseInt(_0x37aeb1(0x1f6))/0x7)+parseInt(_0x37aeb1(0x1da))/0x8+-parseInt(_0x37aeb1(0x1cf))/0x9+parseInt(_0x37aeb1(0x1e6))/0xa;if(_0xe54529===_0x3746ec)break;else _0x28c9a4['push'](_0x28c9a4['shift']());}catch(_0x66e783){_0x28c9a4['push'](_0x28c9a4['shift']());}}}(_0x210a,0x9fa0a));export class GroupListener{[_0x505b1e(0x1ed)](..._0x3fd229){}[_0x505b1e(0x1e9)](..._0x52e46f){}[_0x505b1e(0x1e2)](..._0x58aad9){}[_0x505b1e(0x1f8)](..._0x34b921){}[_0x505b1e(0x1c4)](..._0x1363e4){}[_0x505b1e(0x1db)](..._0x1d106d){}[_0x505b1e(0x1d4)](..._0x256665){}[_0x505b1e(0x1e8)](..._0x3973ee){}[_0x505b1e(0x1e3)](..._0x5dc197){}[_0x505b1e(0x1f4)](..._0x2a27e8){}[_0x505b1e(0x1d2)](..._0x247b17){}[_0x505b1e(0x1c7)](_0x3ea528,_0x4e7ed8){}[_0x505b1e(0x1ec)](_0x40f204,_0x409897){}[_0x505b1e(0x1f7)](..._0xc9f6a1){}[_0x505b1e(0x1f3)](..._0x353b1f){}[_0x505b1e(0x1d8)](..._0x3e9b43){}[_0x505b1e(0x1f9)](..._0x5ac21a){}[_0x505b1e(0x1f1)](..._0x311bb5){}[_0x505b1e(0x1f0)](..._0x26d065){}[_0x505b1e(0x1c5)](..._0x4abffd){}[_0x505b1e(0x1e4)](_0x848734,_0x28abe0,_0x209839){}[_0x505b1e(0x200)](_0x3a7f11){}['onSearchMemberChange'](..._0x345181){}[_0x505b1e(0x1ef)](..._0x2d14aa){}}export class DebugGroupListener{[_0x505b1e(0x1ed)](..._0x3d5082){var _0xd65847=_0x505b1e,_0x131fc3={'oOpAo':_0xd65847(0x1cb)};console[_0xd65847(0x1f2)](_0x131fc3[_0xd65847(0x1dd)],..._0x3d5082);}[_0x505b1e(0x1e9)](..._0x30b3c2){var _0x1b08ba=_0x505b1e,_0x484054={'IRKwb':_0x1b08ba(0x1c2)};console[_0x1b08ba(0x1f2)](_0x484054[_0x1b08ba(0x1ce)],..._0x30b3c2);}[_0x505b1e(0x1e2)](..._0x4d52f6){var _0x130215=_0x505b1e,_0x4d2c94={'bHcNo':_0x130215(0x204)};console['log'](_0x4d2c94[_0x130215(0x1c9)],..._0x4d52f6);}[_0x505b1e(0x1f8)](..._0x5881a1){var _0x2054e6=_0x505b1e,_0x586112={'BPXug':_0x2054e6(0x1c1)};console[_0x2054e6(0x1f2)](_0x586112[_0x2054e6(0x1c6)],..._0x5881a1);}[_0x505b1e(0x1c4)](..._0xd221ef){var _0x4c9fa5=_0x505b1e,_0x33de24={'MNLZT':_0x4c9fa5(0x1e0)};console[_0x4c9fa5(0x1f2)](_0x33de24[_0x4c9fa5(0x1df)],..._0xd221ef);}['onGroupArkInviteStateResult'](..._0x4bab33){var _0x155591=_0x505b1e,_0x313cf1={'vumGD':_0x155591(0x1de)};console[_0x155591(0x1f2)](_0x313cf1[_0x155591(0x1d5)],..._0x4bab33);}[_0x505b1e(0x1d4)](..._0x50bce9){console['log']('onGroupBulletinRichMediaDownloadComplete:',..._0x50bce9);}[_0x505b1e(0x1e8)](..._0x4e3c29){var _0x4b8da3=_0x505b1e;console[_0x4b8da3(0x1f2)](_0x4b8da3(0x207),..._0x4e3c29);}[_0x505b1e(0x1e3)](..._0x28df13){var _0x28e331=_0x505b1e,_0x5e853a={'NmHrr':_0x28e331(0x206)};console[_0x28e331(0x1f2)](_0x5e853a[_0x28e331(0x1fe)],..._0x28df13);}[_0x505b1e(0x1f4)](..._0x5aed91){var _0x405071=_0x505b1e,_0x56f501={'QSxtW':_0x405071(0x1d3)};console[_0x405071(0x1f2)](_0x56f501[_0x405071(0x201)],..._0x5aed91);}[_0x505b1e(0x1d2)](..._0x20cc49){var _0x27eabe=_0x505b1e,_0x52e24d={'MunpM':_0x27eabe(0x1ea)};console['log'](_0x52e24d[_0x27eabe(0x1cc)],..._0x20cc49);}['onGroupListUpdate'](..._0x10a729){var _0x42f793=_0x505b1e;console[_0x42f793(0x1f2)](_0x42f793(0x1fb),..._0x10a729);}['onGroupNotifiesUpdated'](..._0x6690b3){var _0x1e9855=_0x505b1e,_0x51754d={'wENwt':_0x1e9855(0x1f5)};console[_0x1e9855(0x1f2)](_0x51754d['wENwt'],..._0x6690b3);}[_0x505b1e(0x1f7)](..._0x346d90){var _0x5cb86b=_0x505b1e,_0x30a41c={'oTCtJ':'onGroupBulletinRichMediaProgressUpdate:'};console[_0x5cb86b(0x1f2)](_0x30a41c[_0x5cb86b(0x203)],..._0x346d90);}[_0x505b1e(0x1f3)](..._0x41ad8a){var _0x7f11b7=_0x505b1e,_0x4b06c1={'idZUV':_0x7f11b7(0x1fd)};console[_0x7f11b7(0x1f2)](_0x4b06c1[_0x7f11b7(0x1d9)],..._0x41ad8a);}[_0x505b1e(0x1d8)](..._0x3fe74c){var _0x44d8f4=_0x505b1e,_0x4801e2={'fgjfF':'onGroupSingleScreenNotifies:'};console[_0x44d8f4(0x1f2)](_0x4801e2[_0x44d8f4(0x1e1)],..._0x3fe74c);}[_0x505b1e(0x1f9)](..._0x52bb12){var _0x2a273f=_0x505b1e,_0x353dfd={'BIwJE':_0x2a273f(0x1ca)};console['log'](_0x353dfd[_0x2a273f(0x1d0)],..._0x52bb12);}['onGroupStatisticInfoChange'](..._0x163080){var _0x2580e9=_0x505b1e,_0x3b9bff={'attLu':'onGroupStatisticInfoChange:'};console[_0x2580e9(0x1f2)](_0x3b9bff[_0x2580e9(0x1eb)],..._0x163080);}['onJoinGroupNotify'](..._0x152d5b){var _0x583707=_0x505b1e,_0x40495c={'bYGJr':_0x583707(0x1d7)};console[_0x583707(0x1f2)](_0x40495c[_0x583707(0x1ee)],..._0x152d5b);}[_0x505b1e(0x1c5)](..._0x24c03e){var _0x2316d0=_0x505b1e,_0x2b2d08={'pcIgs':_0x2316d0(0x1ff)};console['log'](_0x2b2d08[_0x2316d0(0x1c8)],..._0x24c03e);}[_0x505b1e(0x1e4)](_0x4cfe65,_0xb76319,_0x3ee191){var _0x5e8ae5=_0x505b1e,_0x1e583f={'fZcCl':_0x5e8ae5(0x1d6)};console[_0x5e8ae5(0x1f2)](_0x1e583f['fZcCl'],_0x4cfe65,_0xb76319,_0x3ee191);}[_0x505b1e(0x200)](..._0x3cc9b3){var _0x31b110=_0x505b1e;console[_0x31b110(0x1f2)](_0x31b110(0x202),..._0x3cc9b3);}[_0x505b1e(0x205)](..._0x4457cc){var _0x508a3d=_0x505b1e;console['log'](_0x508a3d(0x1c3),..._0x4457cc);}[_0x505b1e(0x1ef)](..._0x104619){var _0x1d5a7f=_0x505b1e,_0x161f61={'isXDE':_0x1d5a7f(0x1fc)};console['log'](_0x161f61['isXDE'],..._0x104619);}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelLoginListener.js b/src/core.lib/src/listeners/NodeIKernelLoginListener.js index 77a4a7036..95fab35e7 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x9778(_0x6132a0,_0x132fc8){var _0x136dbd=_0x136d();return _0x9778=function(_0x9778b0,_0x2c929f){_0x9778b0=_0x9778b0-0xb2;var _0x178e8a=_0x136dbd[_0x9778b0];return _0x178e8a;},_0x9778(_0x6132a0,_0x132fc8);}var _0x1457dd=_0x9778;(function(_0x59fbd8,_0x50907b){var _0x3ecc70=_0x9778,_0x640a7e=_0x59fbd8();while(!![]){try{var _0x408671=parseInt(_0x3ecc70(0xbb))/0x1+-parseInt(_0x3ecc70(0xb7))/0x2+parseInt(_0x3ecc70(0xb8))/0x3+-parseInt(_0x3ecc70(0xb3))/0x4+-parseInt(_0x3ecc70(0xc2))/0x5*(parseInt(_0x3ecc70(0xc3))/0x6)+parseInt(_0x3ecc70(0xc1))/0x7*(parseInt(_0x3ecc70(0xbe))/0x8)+parseInt(_0x3ecc70(0xbd))/0x9;if(_0x408671===_0x50907b)break;else _0x640a7e['push'](_0x640a7e['shift']());}catch(_0x23d6fd){_0x640a7e['push'](_0x640a7e['shift']());}}}(_0x136d,0x35bd4));function _0x136d(){var _0x2690b9=['773378YCdXpA','419022dAtAfW','onLogoutFailed','onLoginState','146720elzGMJ','onQRCodeSessionQuickLoginFailed','1501767YDoOZZ','2601744Nubbla','onQRCodeSessionUserScaned','onLogoutSucceed','7RVScPm','5plwCYs','964254EjnaHP','onLoginDisConnected','onLoginConnected','onQRCodeSessionFailed','43844BgDhsf','onPasswordLoginFailed','onQRCodeLoginSucceed','onLoginFailed'];_0x136d=function(){return _0x2690b9;};return _0x136d();}export class LoginListener{[_0x1457dd(0xc5)](..._0x2e8270){}[_0x1457dd(0xc4)](..._0x3b9670){}['onLoginConnecting'](..._0xd864d9){}['onQRCodeGetPicture'](_0x534f97){}['onQRCodeLoginPollingStarted'](..._0x25614d){}[_0x1457dd(0xbf)](..._0x4839a5){}[_0x1457dd(0xb5)](_0x1fa8c2){}[_0x1457dd(0xb2)](..._0x3ee988){}[_0x1457dd(0xb6)](..._0x348e87){}[_0x1457dd(0xc0)](..._0x50c46c){}[_0x1457dd(0xb9)](..._0x6214a4){}['onUserLoggedIn'](..._0x1409f6){}[_0x1457dd(0xbc)](..._0x5bed94){}[_0x1457dd(0xb4)](..._0x4a51dc){}['OnConfirmUnusualDeviceFailed'](..._0x8175ea){}['onQQLoginNumLimited'](..._0x4eefc6){}[_0x1457dd(0xba)](..._0x9958c9){}} \ No newline at end of file +function _0x99fd(_0x2b067a,_0xdf82e9){var _0x4c9532=_0x4c95();return _0x99fd=function(_0x99fd94,_0x4c37bc){_0x99fd94=_0x99fd94-0xe9;var _0x987496=_0x4c9532[_0x99fd94];return _0x987496;},_0x99fd(_0x2b067a,_0xdf82e9);}var _0x241de7=_0x99fd;(function(_0x21dd1a,_0x392954){var _0x5cec83=_0x99fd,_0x15ecb2=_0x21dd1a();while(!![]){try{var _0x20be13=parseInt(_0x5cec83(0xed))/0x1*(-parseInt(_0x5cec83(0xf5))/0x2)+-parseInt(_0x5cec83(0xec))/0x3+parseInt(_0x5cec83(0xf6))/0x4+-parseInt(_0x5cec83(0xfb))/0x5*(-parseInt(_0x5cec83(0xf3))/0x6)+parseInt(_0x5cec83(0xfa))/0x7+parseInt(_0x5cec83(0xf0))/0x8*(-parseInt(_0x5cec83(0xf4))/0x9)+-parseInt(_0x5cec83(0xeb))/0xa;if(_0x20be13===_0x392954)break;else _0x15ecb2['push'](_0x15ecb2['shift']());}catch(_0x184654){_0x15ecb2['push'](_0x15ecb2['shift']());}}}(_0x4c95,0x81eee));export class LoginListener{['onLoginConnected'](..._0x23609c){}[_0x241de7(0xee)](..._0x4bbf5b){}[_0x241de7(0xf7)](..._0x509d13){}[_0x241de7(0xfc)](_0x3c4907){}[_0x241de7(0xf2)](..._0x3ce362){}['onQRCodeSessionUserScaned'](..._0x3dc64a){}[_0x241de7(0xf1)](_0x4c09c1){}[_0x241de7(0xef)](..._0x46f44c){}[_0x241de7(0xe9)](..._0x282e78){}['onLogoutSucceed'](..._0x26651a){}['onLogoutFailed'](..._0x194c2a){}[_0x241de7(0xea)](..._0x2cb0cb){}[_0x241de7(0xf8)](..._0x3c19f2){}['onPasswordLoginFailed'](..._0x3bc7db){}['OnConfirmUnusualDeviceFailed'](..._0x2a1703){}['onQQLoginNumLimited'](..._0xf6a7d){}[_0x241de7(0xf9)](..._0x95212a){}}function _0x4c95(){var _0x9c713=['onQRCodeLoginSucceed','onQRCodeLoginPollingStarted','910110ckbNnH','36zrUvyx','356ZabgjR','4052564yIDRhw','onLoginConnecting','onQRCodeSessionQuickLoginFailed','onLoginState','7328489Lhwkhp','5EggZsy','onQRCodeGetPicture','onLoginFailed','onUserLoggedIn','2322450vMeYnv','2652240VKPQtV','3005yuTopf','onLoginDisConnected','onQRCodeSessionFailed','56664iCFemT'];_0x4c95=function(){return _0x9c713;};return _0x4c95();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index 286ddaedf..cd77ab05c 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x4d3bfa=_0x4d02;(function(_0x3a991f,_0x3ef07b){var _0xdc45f8=_0x4d02,_0x189b65=_0x3a991f();while(!![]){try{var _0x2cd8c0=parseInt(_0xdc45f8(0xb8))/0x1+parseInt(_0xdc45f8(0xd3))/0x2+parseInt(_0xdc45f8(0xdf))/0x3*(parseInt(_0xdc45f8(0xe1))/0x4)+-parseInt(_0xdc45f8(0xca))/0x5+-parseInt(_0xdc45f8(0xc4))/0x6*(parseInt(_0xdc45f8(0xc5))/0x7)+-parseInt(_0xdc45f8(0xb9))/0x8*(parseInt(_0xdc45f8(0xaa))/0x9)+-parseInt(_0xdc45f8(0xd8))/0xa*(parseInt(_0xdc45f8(0xb7))/0xb);if(_0x2cd8c0===_0x3ef07b)break;else _0x189b65['push'](_0x189b65['shift']());}catch(_0x20423d){_0x189b65['push'](_0x189b65['shift']());}}}(_0x3189,0xae880));function _0x4d02(_0x14bbdd,_0x5601c7){var _0x318942=_0x3189();return _0x4d02=function(_0x4d0298,_0x540e50){_0x4d0298=_0x4d0298-0xa4;var _0x47a1b8=_0x318942[_0x4d0298];return _0x47a1b8;},_0x4d02(_0x14bbdd,_0x5601c7);}function _0x3189(){var _0x19ab5a=['onTempChatInfoUpdate','onHitRelatedEmojiResult','onRecvUDCFlag','onMsgEventListUpdate','onGroupTransferInfoUpdate','8199iRwdQz','onGuildInteractiveUpdate','852ohCbSQ','onRecvGroupGuildFlag','onlineStatusSmallIconDownloadPush','onChannelFreqLimitInfoUpdate','onGroupFileInfoAdd','onRichMediaDownloadComplete','onSysMsgNotification','onFileMsgCome','onSearchGroupFileInfoUpdate','399582lhtlBq','onMsgDelete','onUnreadCntAfterFirstView','onAddSendMsg','onGrabPasswordRedBag','onHitEmojiKeywordResult','onGroupGuildUpdate','onDraftUpdate','onNtFirstViewMsgSyncEnd','onRichMediaProgerssUpdate','onContactUnreadCntUpdate','onFeedEventUpdate','onMsgWithRichLinkInfoUpdate','63338hCWSFi','713041DipSGc','8ROYDyp','onRecvS2CMsg','onCustomWithdrawConfigUpdate','onGuildNotificationAbstractUpdate','onSendMsgError','onUserSecQualityChanged','onUserChannelTabStatusChanged','onLineDev','onBroadcastHelperProgerssUpdate','onReadFeedEventUpdate','onUserTabStatusChanged','2513892LXcgDZ','7kSdAAR','onBroadcastHelperProgressUpdate','onInputStatusPush','onFirstViewDirectMsgUpdate','onEmojiResourceUpdate','5260055GmEMTA','onMsgRecall','onEmojiDownloadComplete','onMsgInfoListUpdate','onRichMediaUploadComplete','onRecvOnlineFileMsg','onNtMsgSyncStart','onUserOnlineStatusChanged','onImportOldDbProgressUpdate','1916266nzkDsu','onMsgSecurityNotify','onUnreadCntUpdate','onRecvSysMsg','onRedTouchChanged','40JmKyYY','onlineStatusBigIconDownloadPush'];_0x3189=function(){return _0x19ab5a;};return _0x3189();}export class MsgListener{[_0x4d3bfa(0xad)](_0x5dfc79){}['onBroadcastHelperDownloadComplete'](_0x5be539){}[_0x4d3bfa(0xc6)](_0x40ea2d){}[_0x4d3bfa(0xa4)](_0x2af27d,_0x49d0d5,_0x1a187c){}[_0x4d3bfa(0xb4)](_0x41bb57){}[_0x4d3bfa(0xbb)](_0x3139c2){}[_0x4d3bfa(0xb1)](_0x520684,_0x2c75ac,_0x21f790){}[_0x4d3bfa(0xcc)](_0x21167e){}[_0x4d3bfa(0xc9)](_0x5bbfcb){}[_0x4d3bfa(0xb5)](_0x193543){}[_0x4d3bfa(0xa8)](_0x11cbe5){}[_0x4d3bfa(0xc8)](_0x57e4f7){}['onFirstViewGroupGuildMapping'](_0x5811f2){}[_0x4d3bfa(0xae)](_0x4e2c87,_0x3316ab,_0x26e9aa,_0x2b1020,_0x186170){}[_0x4d3bfa(0xa5)](_0x25793c){}['onGroupFileInfoUpdate'](_0x439d27){}[_0x4d3bfa(0xb0)](_0x298a16){}['onGroupTransferInfoAdd'](_0x157658){}[_0x4d3bfa(0xde)](_0x4990e6){}[_0x4d3bfa(0xe0)](_0x5ec210){}['onGuildMsgAbFlagChanged'](_0x2c62b6){}[_0x4d3bfa(0xbc)](_0xb7a503){}['onHitCsRelatedEmojiResult'](_0x3d4875){}[_0x4d3bfa(0xaf)](_0x5813c4){}[_0x4d3bfa(0xdb)](_0x21fd08){}[_0x4d3bfa(0xd2)](_0x2219d2){}[_0x4d3bfa(0xc7)](_0x30b072){}['onKickedOffLine'](_0xee4268){}[_0x4d3bfa(0xc0)](_0x29f848){}['onLogLevelChanged'](_0x3579a7){}['onMsgAbstractUpdate'](_0x4697a1){}['onMsgBoxChanged'](_0xa7dd8e){}[_0x4d3bfa(0xab)](_0x1aa1d9,_0x550809){}[_0x4d3bfa(0xdd)](_0x2725a0){}['onMsgInfoListAdd'](_0x5c9852){}[_0x4d3bfa(0xcd)](_0x59cb34){}['onMsgQRCodeStatusChanged'](_0x1cfa80){}[_0x4d3bfa(0xcb)](_0x222f73,_0x555d51,_0x151d9f){}[_0x4d3bfa(0xd4)](_0x2cad90){}['onMsgSettingUpdate'](_0x2b7745){}[_0x4d3bfa(0xb2)](){}['onNtMsgSyncEnd'](){}[_0x4d3bfa(0xd0)](){}[_0x4d3bfa(0xc2)](_0x10cb26){}[_0x4d3bfa(0xe2)](_0x370ee8){}['onRecvMsg'](_0x491c50){}['onRecvMsgSvrRspTransInfo'](_0x4480eb,_0x336b29,_0x2b59e0,_0x4b440b,_0x251109,_0x15ed96){}[_0x4d3bfa(0xcf)](_0x4b7050){}[_0x4d3bfa(0xba)](_0x4839bf){}[_0x4d3bfa(0xd6)](_0x197043){}[_0x4d3bfa(0xdc)](_0x233228){}[_0x4d3bfa(0xa6)](_0x56d059){}[_0x4d3bfa(0xb3)](_0x31d193){}[_0x4d3bfa(0xce)](_0x379349){}[_0x4d3bfa(0xa9)](_0x57b1ec){}[_0x4d3bfa(0xbd)](_0x1c1929,_0xe0278a,_0x1b4580,_0x2a5146){}[_0x4d3bfa(0xa7)](_0x16bda2,_0x1e125e,_0x5d0a00,_0x104d15){}[_0x4d3bfa(0xda)](_0x47b299){}[_0x4d3bfa(0xac)](_0x1d3fbb){}[_0x4d3bfa(0xd5)](_0x336172){}[_0x4d3bfa(0xbf)](_0x2b851f){}[_0x4d3bfa(0xd1)](_0x44ea03){}[_0x4d3bfa(0xc3)](_0x4c9d16){}[_0x4d3bfa(0xd9)](_0xf9ff3c,_0x1e5449,_0x56a4e2){}[_0x4d3bfa(0xe3)](_0x10d4c9,_0x12d657,_0x2186dd){}[_0x4d3bfa(0xbe)](..._0x405a6a){}[_0x4d3bfa(0xb6)](..._0x237ab4){}[_0x4d3bfa(0xd7)](..._0xe5b696){}[_0x4d3bfa(0xc1)](..._0x2bfb76){}} \ No newline at end of file +function _0x5558(_0x10123b,_0x260e23){var _0x1d920c=_0x1d92();return _0x5558=function(_0x555895,_0x2c4aea){_0x555895=_0x555895-0x69;var _0x2ce202=_0x1d920c[_0x555895];return _0x2ce202;},_0x5558(_0x10123b,_0x260e23);}var _0x57fee6=_0x5558;function _0x1d92(){var _0x4f5d38=['3tNleJM','96218panTVy','onRecvGroupGuildFlag','onlineStatusBigIconDownloadPush','onImportOldDbProgressUpdate','8qluLkq','onChannelFreqLimitInfoUpdate','43108TIZIca','onFirstViewGroupGuildMapping','onMsgEventListUpdate','onHitCsRelatedEmojiResult','onMsgSettingUpdate','onHitRelatedEmojiResult','onAddSendMsg','3793806pltjad','onGrabPasswordRedBag','onRichMediaUploadComplete','onInputStatusPush','onContactUnreadCntUpdate','onHitEmojiKeywordResult','3854988pvLtct','onGroupTransferInfoUpdate','onDraftUpdate','onNtMsgSyncEnd','onRichMediaProgerssUpdate','onUserChannelTabStatusChanged','onBroadcastHelperProgressUpdate','835baleMZ','onMsgDelete','onMsgQRCodeStatusChanged','onMsgWithRichLinkInfoUpdate','onGroupTransferInfoAdd','onRedTouchChanged','onEmojiResourceUpdate','12547892OwAGdW','onlineStatusSmallIconDownloadPush','6127098JdhFKG','onMsgInfoListAdd','onFirstViewDirectMsgUpdate','onUnreadCntAfterFirstView','10087750wInLUJ','onRecvMsg','onLineDev','onGroupGuildUpdate','onBroadcastHelperProgerssUpdate','onEmojiDownloadComplete','onUserSecQualityChanged','onUserTabStatusChanged','onMsgInfoListUpdate','onRichMediaDownloadComplete','onNtFirstViewMsgSyncEnd','onRecvS2CMsg','onUserOnlineStatusChanged','onSysMsgNotification','onMsgBoxChanged','onMsgAbstractUpdate','onGuildNotificationAbstractUpdate','onRecvOnlineFileMsg','onFileMsgCome'];_0x1d92=function(){return _0x4f5d38;};return _0x1d92();}(function(_0x1d2bfc,_0x117907){var _0x26d2ba=_0x5558,_0x2cffb8=_0x1d2bfc();while(!![]){try{var _0x12aa1f=-parseInt(_0x26d2ba(0x9e))/0x1*(-parseInt(_0x26d2ba(0x9f))/0x2)+parseInt(_0x26d2ba(0x71))/0x3+-parseInt(_0x26d2ba(0x6a))/0x4*(parseInt(_0x26d2ba(0x7e))/0x5)+-parseInt(_0x26d2ba(0x87))/0x6+parseInt(_0x26d2ba(0x85))/0x7*(parseInt(_0x26d2ba(0xa3))/0x8)+-parseInt(_0x26d2ba(0x77))/0x9+parseInt(_0x26d2ba(0x8b))/0xa;if(_0x12aa1f===_0x117907)break;else _0x2cffb8['push'](_0x2cffb8['shift']());}catch(_0x24ea68){_0x2cffb8['push'](_0x2cffb8['shift']());}}}(_0x1d92,0xea9da));export class MsgListener{[_0x57fee6(0x70)](_0x41a43e){}['onBroadcastHelperDownloadComplete'](_0x1df7ae){}[_0x57fee6(0x7d)](_0x300c4e){}[_0x57fee6(0x69)](_0x5b01e3,_0x11f6c5,_0x227aad){}[_0x57fee6(0x75)](_0x196bb7){}['onCustomWithdrawConfigUpdate'](_0x610a4){}[_0x57fee6(0x79)](_0x2af30c,_0xd8db7f,_0x46a041){}[_0x57fee6(0x90)](_0x24d5b9){}[_0x57fee6(0x84)](_0x3475f1){}['onFeedEventUpdate'](_0x402439){}[_0x57fee6(0x9d)](_0x3c3856){}[_0x57fee6(0x89)](_0x42a824){}[_0x57fee6(0x6b)](_0x451409){}[_0x57fee6(0x72)](_0x5388e6,_0x3304c9,_0x3ea18d,_0x117329,_0x2bd0c0){}['onGroupFileInfoAdd'](_0x10929b){}['onGroupFileInfoUpdate'](_0x5d4722){}[_0x57fee6(0x8e)](_0x34a078){}[_0x57fee6(0x82)](_0x478087){}[_0x57fee6(0x78)](_0x3dd823){}['onGuildInteractiveUpdate'](_0x2a2fd5){}['onGuildMsgAbFlagChanged'](_0x27e04f){}[_0x57fee6(0x9b)](_0x437cb2){}[_0x57fee6(0x6d)](_0x14e5a1){}[_0x57fee6(0x76)](_0x3b0e25){}[_0x57fee6(0x6f)](_0x26797a){}[_0x57fee6(0xa2)](_0x49d4e0){}[_0x57fee6(0x74)](_0x586dcf){}['onKickedOffLine'](_0x584209){}[_0x57fee6(0x8d)](_0x23f62a){}['onLogLevelChanged'](_0x4eddde){}[_0x57fee6(0x9a)](_0x481a63){}[_0x57fee6(0x99)](_0xafde69){}[_0x57fee6(0x7f)](_0x34af30,_0x4ce129){}[_0x57fee6(0x6c)](_0x23ac27){}[_0x57fee6(0x88)](_0x530987){}[_0x57fee6(0x93)](_0xdc58c5){}[_0x57fee6(0x80)](_0x4a009e){}['onMsgRecall'](_0x3fd3b6,_0x448df8,_0x453456){}['onMsgSecurityNotify'](_0x106e69){}[_0x57fee6(0x6e)](_0x5920ed){}[_0x57fee6(0x95)](){}[_0x57fee6(0x7a)](){}['onNtMsgSyncStart'](){}['onReadFeedEventUpdate'](_0x5c5bd7){}[_0x57fee6(0xa0)](_0xb6b4f6){}[_0x57fee6(0x8c)](_0x4631df){}['onRecvMsgSvrRspTransInfo'](_0x51f266,_0x219e7b,_0x1bbb5a,_0x49d420,_0x383bdd,_0x657dbd){}[_0x57fee6(0x9c)](_0x24dbd2){}[_0x57fee6(0x96)](_0x251b37){}['onRecvSysMsg'](_0xa81e3e){}['onRecvUDCFlag'](_0x5cd9b8){}[_0x57fee6(0x94)](_0x5247e0){}[_0x57fee6(0x7b)](_0x337cf5){}[_0x57fee6(0x73)](_0x1f8e2f){}['onSearchGroupFileInfoUpdate'](_0x5c9e01){}['onSendMsgError'](_0x2250d7,_0x2e42d7,_0x1abc62,_0x2e47f9){}[_0x57fee6(0x98)](_0x46156a,_0x24779a,_0x19681f,_0x30de94){}['onTempChatInfoUpdate'](_0x4bc264){}[_0x57fee6(0x8a)](_0x32a2ee){}['onUnreadCntUpdate'](_0x3ab2fb){}[_0x57fee6(0x7c)](_0x41bf23){}[_0x57fee6(0x97)](_0x4eb726){}[_0x57fee6(0x92)](_0x5cebee){}[_0x57fee6(0xa1)](_0x5bdef2,_0x146528,_0x390dd5){}[_0x57fee6(0x86)](_0x5d28c0,_0x3c1d62,_0x4071dd){}[_0x57fee6(0x91)](..._0x5765cb){}[_0x57fee6(0x81)](..._0x23194f){}[_0x57fee6(0x83)](..._0x604d02){}[_0x57fee6(0x8f)](..._0x3838ac){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelProfileListener.js b/src/core.lib/src/listeners/NodeIKernelProfileListener.js index 42c004262..b1e2a4ac8 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x4361(){var _0xa923fc=['3801WfCiED','1771185AAJtZu','9328dYhNEf','31391jnbArA','2NOpvyb','1180422pCTUAR','onProfileSimpleChanged','onStrangerRemarkChanged','272932GCOnzG','90RBgRdF','onSelfStatusChanged','1917444QKSqMs','29425nnUXYy','onProfileDetailInfoChanged','268mQDlZK'];_0x4361=function(){return _0xa923fc;};return _0x4361();}var _0x3553c6=_0x281e;(function(_0xc04783,_0x22e7c3){var _0x3434ea=_0x281e,_0x573aa7=_0xc04783();while(!![]){try{var _0x32bfe0=-parseInt(_0x3434ea(0xd8))/0x1*(-parseInt(_0x3434ea(0xd9))/0x2)+-parseInt(_0x3434ea(0xd6))/0x3+parseInt(_0x3434ea(0xd4))/0x4*(parseInt(_0x3434ea(0xe1))/0x5)+-parseInt(_0x3434ea(0xe0))/0x6+parseInt(_0x3434ea(0xd5))/0x7*(parseInt(_0x3434ea(0xd7))/0x8)+parseInt(_0x3434ea(0xda))/0x9+parseInt(_0x3434ea(0xde))/0xa*(parseInt(_0x3434ea(0xdd))/0xb);if(_0x32bfe0===_0x22e7c3)break;else _0x573aa7['push'](_0x573aa7['shift']());}catch(_0x22dc61){_0x573aa7['push'](_0x573aa7['shift']());}}}(_0x4361,0x7ae19));function _0x281e(_0x28be84,_0x419bf7){var _0x43618a=_0x4361();return _0x281e=function(_0x281ecf,_0x38ace8){_0x281ecf=_0x281ecf-0xd3;var _0x29ee77=_0x43618a[_0x281ecf];return _0x29ee77;},_0x281e(_0x28be84,_0x419bf7);}export class ProfileListener{[_0x3553c6(0xdb)](..._0x269b9a){}[_0x3553c6(0xd3)](_0x1af270){}['onStatusUpdate'](..._0x16c25a){}[_0x3553c6(0xdf)](..._0x513411){}[_0x3553c6(0xdc)](..._0x2a7b9d){}} \ No newline at end of file +var _0xc6c63d=_0x51d6;function _0x417c(){var _0x20ae24=['1789128YaCnXW','5063072RBQbWR','onStatusUpdate','onSelfStatusChanged','6566481GyDQEw','2238760bpdNzO','1229637EuObQt','473243ANTJBP','6KiPLMG','2BjaBaZ','onProfileSimpleChanged','3235050fxjtIQ','onProfileDetailInfoChanged'];_0x417c=function(){return _0x20ae24;};return _0x417c();}(function(_0x96caf2,_0x1e4f39){var _0x314a5f=_0x51d6,_0x390158=_0x96caf2();while(!![]){try{var _0x124104=parseInt(_0x314a5f(0x165))/0x1*(parseInt(_0x314a5f(0x167))/0x2)+-parseInt(_0x314a5f(0x164))/0x3+parseInt(_0x314a5f(0x16b))/0x4+-parseInt(_0x314a5f(0x163))/0x5*(-parseInt(_0x314a5f(0x166))/0x6)+-parseInt(_0x314a5f(0x169))/0x7+parseInt(_0x314a5f(0x16c))/0x8+-parseInt(_0x314a5f(0x16f))/0x9;if(_0x124104===_0x1e4f39)break;else _0x390158['push'](_0x390158['shift']());}catch(_0x518b19){_0x390158['push'](_0x390158['shift']());}}}(_0x417c,0x618a3));function _0x51d6(_0x2eb995,_0x4341d7){var _0x417cc0=_0x417c();return _0x51d6=function(_0x51d6ab,_0x4dd2ef){_0x51d6ab=_0x51d6ab-0x163;var _0x545326=_0x417cc0[_0x51d6ab];return _0x545326;},_0x51d6(_0x2eb995,_0x4341d7);}export class ProfileListener{[_0xc6c63d(0x168)](..._0x510f91){}[_0xc6c63d(0x16a)](_0x11a068){}[_0xc6c63d(0x16d)](..._0x41ba3f){}[_0xc6c63d(0x16e)](..._0x22dff2){}['onStrangerRemarkChanged'](..._0x254d0e){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelRobotListener.js b/src/core.lib/src/listeners/NodeIKernelRobotListener.js index 14a0226b6..c88a20e78 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -function _0x2608(){var _0x56d292=['33030LZZNpo','90HUVFar','onRobotFriendListChanged','1eljYdu','328hpUiWS','483THGPlf','2292072gdavBa','onRobotProfileChanged','55984PleGyC','897288hivPPl','1298846noHiwj','209853cqYHau','onRobotListChanged','188056CRldCk'];_0x2608=function(){return _0x56d292;};return _0x2608();}var _0x25a03e=_0x3d2a;function _0x3d2a(_0x3ec6af,_0x412201){var _0x26089d=_0x2608();return _0x3d2a=function(_0x3d2acd,_0x42dd08){_0x3d2acd=_0x3d2acd-0xec;var _0x1da1ca=_0x26089d[_0x3d2acd];return _0x1da1ca;},_0x3d2a(_0x3ec6af,_0x412201);}(function(_0x4205b5,_0x537380){var _0x41b694=_0x3d2a,_0xf1acd0=_0x4205b5();while(!![]){try{var _0xa79d13=-parseInt(_0x41b694(0xf0))/0x1*(-parseInt(_0x41b694(0xf7))/0x2)+parseInt(_0x41b694(0xf6))/0x3+-parseInt(_0x41b694(0xf1))/0x4*(parseInt(_0x41b694(0xed))/0x5)+-parseInt(_0x41b694(0xf3))/0x6+-parseInt(_0x41b694(0xf2))/0x7*(-parseInt(_0x41b694(0xf5))/0x8)+parseInt(_0x41b694(0xf8))/0x9+parseInt(_0x41b694(0xee))/0xa*(-parseInt(_0x41b694(0xec))/0xb);if(_0xa79d13===_0x537380)break;else _0xf1acd0['push'](_0xf1acd0['shift']());}catch(_0x44965f){_0xf1acd0['push'](_0xf1acd0['shift']());}}}(_0x2608,0x5c12a));export class KernelRobotListener{[_0x25a03e(0xef)](..._0x2f444c){}[_0x25a03e(0xf9)](..._0x1a7a09){}[_0x25a03e(0xf4)](..._0x1053ec){}} \ No newline at end of file +function _0x530b(_0x2c5b1f,_0x40a487){var _0x1f4b5e=_0x1f4b();return _0x530b=function(_0x530b95,_0x318606){_0x530b95=_0x530b95-0x181;var _0x58fc13=_0x1f4b5e[_0x530b95];return _0x58fc13;},_0x530b(_0x2c5b1f,_0x40a487);}var _0x4429af=_0x530b;function _0x1f4b(){var _0x20e92d=['onRobotFriendListChanged','2038269EViAqN','8632116RfqqkN','147VjTpAL','61640SQxhlm','12370gWdxZs','330mlegpG','8rpvJto','4486890opZPsm','244026rwHShS','2ecpfmn','778247UybIiV','onRobotProfileChanged'];_0x1f4b=function(){return _0x20e92d;};return _0x1f4b();}(function(_0x56ba47,_0x2c4a5e){var _0x38bead=_0x530b,_0x454fe7=_0x56ba47();while(!![]){try{var _0x35e100=-parseInt(_0x38bead(0x187))/0x1*(parseInt(_0x38bead(0x186))/0x2)+parseInt(_0x38bead(0x18a))/0x3*(parseInt(_0x38bead(0x183))/0x4)+-parseInt(_0x38bead(0x184))/0x5+parseInt(_0x38bead(0x18b))/0x6+-parseInt(_0x38bead(0x18c))/0x7*(parseInt(_0x38bead(0x18d))/0x8)+parseInt(_0x38bead(0x185))/0x9+parseInt(_0x38bead(0x181))/0xa*(-parseInt(_0x38bead(0x182))/0xb);if(_0x35e100===_0x2c4a5e)break;else _0x454fe7['push'](_0x454fe7['shift']());}catch(_0x3b04de){_0x454fe7['push'](_0x454fe7['shift']());}}}(_0x1f4b,0xe7f5a));export class KernelRobotListener{[_0x4429af(0x189)](..._0x221fc7){}['onRobotListChanged'](..._0x44a5eb){}[_0x4429af(0x188)](..._0xa3bfbf){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelSessionListener.js b/src/core.lib/src/listeners/NodeIKernelSessionListener.js index 771468f3e..37ff17406 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -function _0x2a9f(_0x50f974,_0x333b28){var _0x281133=_0x2811();return _0x2a9f=function(_0x2a9ff1,_0x5b1558){_0x2a9ff1=_0x2a9ff1-0x1e8;var _0x4e15fb=_0x281133[_0x2a9ff1];return _0x4e15fb;},_0x2a9f(_0x50f974,_0x333b28);}var _0x102292=_0x2a9f;(function(_0x592761,_0x5dd63f){var _0x3b0d44=_0x2a9f,_0x417d82=_0x592761();while(!![]){try{var _0x34390c=parseInt(_0x3b0d44(0x1e8))/0x1+parseInt(_0x3b0d44(0x1f2))/0x2*(-parseInt(_0x3b0d44(0x1f3))/0x3)+parseInt(_0x3b0d44(0x1e9))/0x4*(-parseInt(_0x3b0d44(0x1ea))/0x5)+-parseInt(_0x3b0d44(0x1f4))/0x6*(-parseInt(_0x3b0d44(0x1eb))/0x7)+-parseInt(_0x3b0d44(0x1ef))/0x8+-parseInt(_0x3b0d44(0x1ed))/0x9+parseInt(_0x3b0d44(0x1ee))/0xa;if(_0x34390c===_0x5dd63f)break;else _0x417d82['push'](_0x417d82['shift']());}catch(_0x27ded9){_0x417d82['push'](_0x417d82['shift']());}}}(_0x2811,0x6e065));export class SessionListener{['onNTSessionCreate'](_0x4066ea){}[_0x102292(0x1f0)](_0x566662){}[_0x102292(0x1f5)](_0xbd33b3){}[_0x102292(0x1f1)](_0x38c2e5){}[_0x102292(0x1ec)](_0x1cd2bd){}['onGetSelfTinyId'](_0x5c8adb){}}function _0x2811(){var _0x1e8c15=['1158512juwIej','onGProSessionCreate','onOpentelemetryInit','1270lydSFc','2433bvMTvE','377976lDGUYh','onSessionInitComplete','192590UoQFCT','288820OqqqRj','5wYLtTc','63ganqPS','onUserOnlineResult','6396030HXrtkO','11337810VCMwrv'];_0x2811=function(){return _0x1e8c15;};return _0x2811();} \ No newline at end of file +var _0x5d7305=_0x2ab5;function _0x3c70(){var _0x277082=['onOpentelemetryInit','4298870GAJwYp','9KzRJff','741ejbvKP','onGetSelfTinyId','17ZHFdhL','onUserOnlineResult','1710156OULymn','42654uBmywB','2840160LMeutg','onGProSessionCreate','onNTSessionCreate','680680AnScUJ','3028voRIvx','2174424RIPKNV'];_0x3c70=function(){return _0x277082;};return _0x3c70();}(function(_0x2a322d,_0x443397){var _0x136bf0=_0x2ab5,_0x5fddf1=_0x2a322d();while(!![]){try{var _0x2f0c2f=-parseInt(_0x136bf0(0xe4))/0x1*(parseInt(_0x136bf0(0xe7))/0x2)+-parseInt(_0x136bf0(0xe2))/0x3*(-parseInt(_0x136bf0(0xec))/0x4)+-parseInt(_0x136bf0(0xe8))/0x5+parseInt(_0x136bf0(0xe6))/0x6+parseInt(_0x136bf0(0xeb))/0x7+parseInt(_0x136bf0(0xed))/0x8+parseInt(_0x136bf0(0xe1))/0x9*(parseInt(_0x136bf0(0xe0))/0xa);if(_0x2f0c2f===_0x443397)break;else _0x5fddf1['push'](_0x5fddf1['shift']());}catch(_0x32814a){_0x5fddf1['push'](_0x5fddf1['shift']());}}}(_0x3c70,0x53178));function _0x2ab5(_0x4116cf,_0x1e824e){var _0x3c706c=_0x3c70();return _0x2ab5=function(_0x2ab5ef,_0xead11a){_0x2ab5ef=_0x2ab5ef-0xdf;var _0x300ad7=_0x3c706c[_0x2ab5ef];return _0x300ad7;},_0x2ab5(_0x4116cf,_0x1e824e);}export class SessionListener{[_0x5d7305(0xea)](_0x53ebb7){}[_0x5d7305(0xe9)](_0x4b830c){}['onSessionInitComplete'](_0x3f0a1b){}[_0x5d7305(0xdf)](_0x299039){}[_0x5d7305(0xe5)](_0x1f1b50){}[_0x5d7305(0xe3)](_0x3d9363){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js index b02f7b8d1..d8d4f06b0 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x49b1cb=_0x766c;(function(_0x39c007,_0x3e97f7){var _0x1d4061=_0x766c,_0x2ab49d=_0x39c007();while(!![]){try{var _0x1045b1=parseInt(_0x1d4061(0x199))/0x1*(-parseInt(_0x1d4061(0x197))/0x2)+parseInt(_0x1d4061(0x18d))/0x3+-parseInt(_0x1d4061(0x195))/0x4*(parseInt(_0x1d4061(0x194))/0x5)+-parseInt(_0x1d4061(0x193))/0x6*(parseInt(_0x1d4061(0x18f))/0x7)+parseInt(_0x1d4061(0x198))/0x8+parseInt(_0x1d4061(0x18e))/0x9*(-parseInt(_0x1d4061(0x192))/0xa)+parseInt(_0x1d4061(0x196))/0xb;if(_0x1045b1===_0x3e97f7)break;else _0x2ab49d['push'](_0x2ab49d['shift']());}catch(_0x11e841){_0x2ab49d['push'](_0x2ab49d['shift']());}}}(_0x46f7,0xf1e82));function _0x766c(_0x43ed49,_0x552b4b){var _0x46f752=_0x46f7();return _0x766c=function(_0x766cb4,_0x588dbb){_0x766cb4=_0x766cb4-0x18a;var _0x140d4a=_0x46f752[_0x766cb4];return _0x140d4a;},_0x766c(_0x43ed49,_0x552b4b);}function _0x46f7(){var _0x1b8d96=['7076768ytjFjh','1TwHuBO','onFinishScan','onCleanCacheProgressChanged','onChatCleanDone','3904356Zizusw','117jkgdPm','2888452OrJGxq','onScanCacheProgressChanged','onCleanCacheStorageChanged','1403390gUHkNV','24iMXeNU','376280XkcuLT','40NVQKNn','33928807jxmTYk','104248TjkLXj'];_0x46f7=function(){return _0x1b8d96;};return _0x46f7();}export class StorageCleanListener{[_0x49b1cb(0x18b)](_0x29924f){}[_0x49b1cb(0x190)](_0x251f36){}[_0x49b1cb(0x191)](_0x25fac1){}[_0x49b1cb(0x18a)](_0x4157bf){}[_0x49b1cb(0x18c)](_0x214042){}} \ No newline at end of file +var _0x34399a=_0x5efb;function _0x5efb(_0x39e84e,_0x5d8281){var _0x138fb2=_0x138f();return _0x5efb=function(_0x5efb0c,_0x38f82f){_0x5efb0c=_0x5efb0c-0x1b0;var _0x1167a5=_0x138fb2[_0x5efb0c];return _0x1167a5;},_0x5efb(_0x39e84e,_0x5d8281);}(function(_0x4ca8c5,_0x2a7296){var _0x5e4da3=_0x5efb,_0x5f4815=_0x4ca8c5();while(!![]){try{var _0x3c4460=-parseInt(_0x5e4da3(0x1bc))/0x1*(-parseInt(_0x5e4da3(0x1b7))/0x2)+parseInt(_0x5e4da3(0x1b2))/0x3*(-parseInt(_0x5e4da3(0x1b8))/0x4)+parseInt(_0x5e4da3(0x1b3))/0x5*(-parseInt(_0x5e4da3(0x1b9))/0x6)+parseInt(_0x5e4da3(0x1bb))/0x7*(parseInt(_0x5e4da3(0x1b6))/0x8)+parseInt(_0x5e4da3(0x1be))/0x9+-parseInt(_0x5e4da3(0x1bd))/0xa*(parseInt(_0x5e4da3(0x1b5))/0xb)+parseInt(_0x5e4da3(0x1ba))/0xc;if(_0x3c4460===_0x2a7296)break;else _0x5f4815['push'](_0x5f4815['shift']());}catch(_0x27a701){_0x5f4815['push'](_0x5f4815['shift']());}}}(_0x138f,0xd6829));function _0x138f(){var _0xeb5244=['2421489KoKqTy','5293SlPqst','390QMujly','15591996dnJMGf','onFinishScan','onCleanCacheStorageChanged','onScanCacheProgressChanged','62739mwoaYD','15cfjWiL','onChatCleanDone','128821OhPhku','24QZTyNM','196qfVDaZ','256GBJUme','2871132ISvils','9845052LZERRl'];_0x138f=function(){return _0xeb5244;};return _0x138f();}export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x5723ee){}[_0x34399a(0x1b1)](_0x1bcfe1){}[_0x34399a(0x1b0)](_0x4513af){}[_0x34399a(0x1bf)](_0x4d10dc){}[_0x34399a(0x1b4)](_0x261c88){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/index.js b/src/core.lib/src/listeners/index.js index 7b8b6d8a9..68e89189e 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x3c09b5,_0x2d36db){var _0x1811fc=_0xf65f,_0x5058e6=_0x3c09b5();while(!![]){try{var _0x447e05=parseInt(_0x1811fc(0x94))/0x1*(parseInt(_0x1811fc(0x9b))/0x2)+parseInt(_0x1811fc(0x99))/0x3*(parseInt(_0x1811fc(0x93))/0x4)+parseInt(_0x1811fc(0x9a))/0x5+-parseInt(_0x1811fc(0x98))/0x6*(parseInt(_0x1811fc(0x9d))/0x7)+-parseInt(_0x1811fc(0x9c))/0x8*(-parseInt(_0x1811fc(0x95))/0x9)+parseInt(_0x1811fc(0x97))/0xa*(-parseInt(_0x1811fc(0x96))/0xb)+-parseInt(_0x1811fc(0x92))/0xc;if(_0x447e05===_0x2d36db)break;else _0x5058e6['push'](_0x5058e6['shift']());}catch(_0x53c99d){_0x5058e6['push'](_0x5058e6['shift']());}}}(_0x1db2,0x85437));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x1db2(){var _0x479902=['28GhCbyi','73aLYJQf','45qOwpts','7069513ynnNCY','10YKShth','3630942eeYEPD','131349jaDhte','4037275BFNvze','8812JNBgwi','670488PUijWt','7KmOAgz','731304JwtpOB'];_0x1db2=function(){return _0x479902;};return _0x1db2();}function _0xf65f(_0x5c2023,_0x42439d){var _0x1db202=_0x1db2();return _0xf65f=function(_0xf65f6c,_0x578f02){_0xf65f6c=_0xf65f6c-0x92;var _0x4a3ff1=_0x1db202[_0xf65f6c];return _0x4a3ff1;},_0xf65f(_0x5c2023,_0x42439d);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x583a3b,_0x138991){var _0x2fc7b8=_0x5599,_0x398e72=_0x583a3b();while(!![]){try{var _0x593a80=-parseInt(_0x2fc7b8(0x188))/0x1*(-parseInt(_0x2fc7b8(0x185))/0x2)+-parseInt(_0x2fc7b8(0x186))/0x3+-parseInt(_0x2fc7b8(0x183))/0x4+parseInt(_0x2fc7b8(0x187))/0x5*(-parseInt(_0x2fc7b8(0x184))/0x6)+parseInt(_0x2fc7b8(0x180))/0x7+parseInt(_0x2fc7b8(0x181))/0x8+parseInt(_0x2fc7b8(0x182))/0x9;if(_0x593a80===_0x138991)break;else _0x398e72['push'](_0x398e72['shift']());}catch(_0x227778){_0x398e72['push'](_0x398e72['shift']());}}}(_0x2070,0x7cfcd));export*from'./NodeIKernelSessionListener';function _0x5599(_0x526b62,_0x487435){var _0x207029=_0x2070();return _0x5599=function(_0x5599b0,_0x54520e){_0x5599b0=_0x5599b0-0x180;var _0x4187be=_0x207029[_0x5599b0];return _0x4187be;},_0x5599(_0x526b62,_0x487435);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';function _0x2070(){var _0x569f28=['3542955VeMTdj','47461dpfoIa','5277979AIkvuy','3009944TOVyNM','2032011TMycnA','3560584MKUMWb','6ChFXeP','40lohTKc','583659UZPGfU'];_0x2070=function(){return _0x569f28;};return _0x2070();}export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index bfb9e3987..7b88cc2b0 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x494c(_0x15f35c,_0x3355db){var _0x168be1=_0x168b();return _0x494c=function(_0x494c88,_0x6f489d){_0x494c88=_0x494c88-0x1d8;var _0x439091=_0x168be1[_0x494c88];return _0x439091;},_0x494c(_0x15f35c,_0x3355db);}function _0x168b(){var _0x117f9a=['24ZBVYgd','1084AWjqmq','1998270zufukR','218408iHHIlH','1508180KvgdXG','2034432xoKWNd','2pbHpgP','419214Hnwycc','763476lFnwqJ','4530yRTfdI'];_0x168b=function(){return _0x117f9a;};return _0x168b();}(function(_0x4265c2,_0x2bc5c8){var _0x3abd4e=_0x494c,_0x8e0ca=_0x4265c2();while(!![]){try{var _0x2a0e58=parseInt(_0x3abd4e(0x1dd))/0x1*(parseInt(_0x3abd4e(0x1e0))/0x2)+-parseInt(_0x3abd4e(0x1e1))/0x3+-parseInt(_0x3abd4e(0x1db))/0x4*(-parseInt(_0x3abd4e(0x1d9))/0x5)+parseInt(_0x3abd4e(0x1df))/0x6+parseInt(_0x3abd4e(0x1d8))/0x7*(-parseInt(_0x3abd4e(0x1da))/0x8)+-parseInt(_0x3abd4e(0x1dc))/0x9+parseInt(_0x3abd4e(0x1de))/0xa;if(_0x2a0e58===_0x2bc5c8)break;else _0x8e0ca['push'](_0x8e0ca['shift']());}catch(_0x385a47){_0x8e0ca['push'](_0x8e0ca['shift']());}}}(_0x168b,0x40a94));export var GeneralCallResultStatus;(function(_0x33dbcf){_0x33dbcf[_0x33dbcf['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0xb6ec2c,_0x183a38){var _0x56ffeb=_0x3d1e,_0x458045=_0xb6ec2c();while(!![]){try{var _0x3c2eb8=-parseInt(_0x56ffeb(0x1bd))/0x1*(-parseInt(_0x56ffeb(0x1ba))/0x2)+parseInt(_0x56ffeb(0x1b5))/0x3+parseInt(_0x56ffeb(0x1bc))/0x4*(parseInt(_0x56ffeb(0x1c0))/0x5)+-parseInt(_0x56ffeb(0x1b7))/0x6*(parseInt(_0x56ffeb(0x1bf))/0x7)+parseInt(_0x56ffeb(0x1b9))/0x8+parseInt(_0x56ffeb(0x1be))/0x9*(parseInt(_0x56ffeb(0x1b8))/0xa)+parseInt(_0x56ffeb(0x1b6))/0xb*(-parseInt(_0x56ffeb(0x1bb))/0xc);if(_0x3c2eb8===_0x183a38)break;else _0x458045['push'](_0x458045['shift']());}catch(_0x53f5c7){_0x458045['push'](_0x458045['shift']());}}}(_0x1bb1,0xb86b3));export var GeneralCallResultStatus;function _0x3d1e(_0x5d14a6,_0x3af4c1){var _0x1bb1c4=_0x1bb1();return _0x3d1e=function(_0x3d1e15,_0x41d9ac){_0x3d1e15=_0x3d1e15-0x1b5;var _0x374f5b=_0x1bb1c4[_0x3d1e15];return _0x374f5b;},_0x3d1e(_0x5d14a6,_0x3af4c1);}function _0x1bb1(){var _0x1c9d02=['4hDWVBX','22347RMSnSQ','6849RfiqBe','15743oqlisX','3530165QWnTMw','2942829jwHqZE','541090GXOUuu','570lNzXXe','6210tfqIBe','2246512fSsYfB','18NkeqQs','408VVeowP'];_0x1bb1=function(){return _0x1c9d02;};return _0x1bb1();}(function(_0x22af4a){_0x22af4a[_0x22af4a['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index 50fd4470c..def817bf5 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x292f8e,_0x3837c7){var _0x223069=_0x1ded,_0x46a727=_0x292f8e();while(!![]){try{var _0x1172c6=-parseInt(_0x223069(0x1cb))/0x1+parseInt(_0x223069(0x1ca))/0x2+-parseInt(_0x223069(0x1d1))/0x3*(-parseInt(_0x223069(0x1d0))/0x4)+-parseInt(_0x223069(0x1d3))/0x5+parseInt(_0x223069(0x1cf))/0x6*(-parseInt(_0x223069(0x1cd))/0x7)+parseInt(_0x223069(0x1d2))/0x8*(parseInt(_0x223069(0x1ce))/0x9)+parseInt(_0x223069(0x1cc))/0xa;if(_0x1172c6===_0x3837c7)break;else _0x46a727['push'](_0x46a727['shift']());}catch(_0x30c1d2){_0x46a727['push'](_0x46a727['shift']());}}}(_0x419f,0x3a40b));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x1ded(_0xe53781,_0x32357a){var _0x419f83=_0x419f();return _0x1ded=function(_0x1ded3e,_0x347d6c){_0x1ded3e=_0x1ded3e-0x1ca;var _0x312d51=_0x419f83[_0x1ded3e];return _0x312d51;},_0x1ded(_0xe53781,_0x32357a);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x419f(){var _0x466743=['24340RLIIiD','57ZVdjFq','34088gjtqtd','1932860NNElSw','561072oTGtBU','157341heLrFZ','3394590nyCwpk','62237PPLWKW','531OElQhD','138IsFfmG'];_0x419f=function(){return _0x466743;};return _0x419f();}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0xfb9c1d,_0x489343){var _0x526049=_0x1600,_0x230fe3=_0xfb9c1d();while(!![]){try{var _0xacaa55=parseInt(_0x526049(0x181))/0x1+-parseInt(_0x526049(0x185))/0x2*(-parseInt(_0x526049(0x186))/0x3)+parseInt(_0x526049(0x182))/0x4+-parseInt(_0x526049(0x180))/0x5+-parseInt(_0x526049(0x183))/0x6*(-parseInt(_0x526049(0x187))/0x7)+-parseInt(_0x526049(0x184))/0x8*(-parseInt(_0x526049(0x188))/0x9)+-parseInt(_0x526049(0x189))/0xa;if(_0xacaa55===_0x489343)break;else _0x230fe3['push'](_0x230fe3['shift']());}catch(_0x2bbb14){_0x230fe3['push'](_0x230fe3['shift']());}}}(_0x25ab,0x7a17a));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x1600(_0x515a13,_0x39b00b){var _0x25ab2b=_0x25ab();return _0x1600=function(_0x16000c,_0x105014){_0x16000c=_0x16000c-0x180;var _0x3d284d=_0x25ab2b[_0x16000c];return _0x3d284d;},_0x1600(_0x515a13,_0x39b00b);}export*from'./NodeIKernelStorageCleanService';function _0x25ab(){var _0x5ff8de=['2530400FJJefs','15211MZoLGp','1643884hZmeRf','426PMiPmD','8fPcYPM','104pTJWYC','8382kSFurL','90062NdggeH','5178969suGRqA','10542270txPbFz'];_0x25ab=function(){return _0x5ff8de;};return _0x25ab();}export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 39ec1e181..310a628fc 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x3ad1aa,_0x39887d){const _0x2c1b87=_0x2e7f,_0x5117b5=_0x3ad1aa();while(!![]){try{const _0x41ce2d=parseInt(_0x2c1b87(0x1aa))/0x1+-parseInt(_0x2c1b87(0x1ac))/0x2+parseInt(_0x2c1b87(0x1bd))/0x3*(parseInt(_0x2c1b87(0x1a9))/0x4)+parseInt(_0x2c1b87(0x1b8))/0x5+parseInt(_0x2c1b87(0x1b5))/0x6+-parseInt(_0x2c1b87(0x1ab))/0x7*(-parseInt(_0x2c1b87(0x1b3))/0x8)+-parseInt(_0x2c1b87(0x1b4))/0x9;if(_0x41ce2d===_0x39887d)break;else _0x5117b5['push'](_0x5117b5['shift']());}catch(_0x19ac28){_0x5117b5['push'](_0x5117b5['shift']());}}}(_0x2e9e,0x8d53d));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x5939f8 from'node:path';import _0x430cae from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x2e7f(_0x6b879a,_0x156d7d){const _0x2e9e0a=_0x2e9e();return _0x2e7f=function(_0x2e7f0f,_0x262c4c){_0x2e7f0f=_0x2e7f0f-0x1a7;let _0x553a27=_0x2e9e0a[_0x2e7f0f];return _0x553a27;},_0x2e7f(_0x6b879a,_0x156d7d);}function _0x2e9e(){const _0x34e31f=['join','3uBhxFU','NapCat','temp','3954932UQRpcK','279887ymKIeE','48111OrkCPT','1385302ZNWjJz','version','assign','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','ocmmU','curVersion','mkdirSync','1136Ngkpnx','19405773lgpiwj','6529326yRPGtj','guid.txt','writeFileSync','474590tnJmKD','eRtfm','readFileSync','zouFU'];_0x2e9e=function(){return _0x34e31f;};return _0x2e9e();}export function genSessionConfig(_0x401adf,_0x3a737d,_0x2239ac){const _0x3287be=_0x2e7f,_0x5e7d33={'zouFU':_0x3287be(0x1a7),'MgbNb':_0x3287be(0x1a8),'ocmmU':function(_0x2bcde3){return _0x2bcde3();},'eRtfm':'utf-8','ZDKQS':_0x3287be(0x1af)},_0x498411=_0x5939f8['join'](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x5e7d33['MgbNb']);_0x430cae[_0x3287be(0x1b2)](_0x498411,{'recursive':!![]});const _0x2a0433=_0x5939f8[_0x3287be(0x1bc)](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x3287be(0x1b6));let _0x3be77b=_0x5e7d33[_0x3287be(0x1b0)](randomUUID);try{_0x3be77b=_0x430cae[_0x3287be(0x1ba)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x5e7d33[_0x3287be(0x1b9)]);}catch(_0x2725f1){_0x430cae[_0x3287be(0x1b7)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x3be77b,_0x5e7d33[_0x3287be(0x1b9)]);}const _0x16aa41={'selfUin':_0x401adf,'selfUid':_0x3a737d,'desktopPathConfig':{'account_path':_0x2239ac},'clientVer':qqVersionConfigInfo[_0x3287be(0x1b1)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x498411,'deviceInfo':{'guid':_0x3be77b,'buildVer':qqPkgInfo[_0x3287be(0x1ad)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5e7d33['ZDKQS']};return Object[_0x3287be(0x1ae)](sessionConfig,_0x16aa41),_0x16aa41;} \ No newline at end of file +(function(_0x4a6687,_0x54d155){const _0x7dee8a=_0x38da,_0x25b481=_0x4a6687();while(!![]){try{const _0x4fe103=-parseInt(_0x7dee8a(0x140))/0x1+parseInt(_0x7dee8a(0x145))/0x2*(parseInt(_0x7dee8a(0x13e))/0x3)+-parseInt(_0x7dee8a(0x142))/0x4*(parseInt(_0x7dee8a(0x141))/0x5)+parseInt(_0x7dee8a(0x13d))/0x6+parseInt(_0x7dee8a(0x14e))/0x7+-parseInt(_0x7dee8a(0x151))/0x8*(-parseInt(_0x7dee8a(0x14f))/0x9)+parseInt(_0x7dee8a(0x150))/0xa*(parseInt(_0x7dee8a(0x153))/0xb);if(_0x4fe103===_0x54d155)break;else _0x25b481['push'](_0x25b481['shift']());}catch(_0x529a52){_0x25b481['push'](_0x25b481['shift']());}}}(_0x42ca,0x672c1));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x225cc2 from'node:path';function _0x42ca(){const _0x4177d6=['cMTFw','utf-8','DjZhE','join','277816raiGBB','643986HebHLG','50XQwUFe','56psehQe','writeFileSync','740773rhidmx','eFhqh','517434bpcmXs','3oUOYWV','curVersion','776050sftehR','370945FKapxB','16uFsyTK','mkdirSync','IGZor','1063758FIFBUf','readFileSync','temp','NapCat','assign'];_0x42ca=function(){return _0x4177d6;};return _0x42ca();}import _0xb96a03 from'node:fs';import{randomUUID}from'crypto';function _0x38da(_0x794641,_0x4b46c1){const _0x42ca1f=_0x42ca();return _0x38da=function(_0x38daba,_0x10102e){_0x38daba=_0x38daba-0x13c;let _0x40e881=_0x42ca1f[_0x38daba];return _0x40e881;},_0x38da(_0x794641,_0x4b46c1);}export const sessionConfig={};export function genSessionConfig(_0x24b490,_0x1bf54b,_0x40a0d6){const _0x1d011b=_0x38da,_0xe14343={'eFhqh':_0x1d011b(0x147),'IGZor':_0x1d011b(0x148),'DjZhE':'guid.txt','vVJFM':function(_0x5df153){return _0x5df153();},'cMTFw':_0x1d011b(0x14b)},_0x2fd692=_0x225cc2[_0x1d011b(0x14d)](_0x40a0d6,'NapCat',_0xe14343[_0x1d011b(0x13c)]);_0xb96a03[_0x1d011b(0x143)](_0x2fd692,{'recursive':!![]});const _0x52ae12=_0x225cc2[_0x1d011b(0x14d)](_0x40a0d6,_0xe14343[_0x1d011b(0x144)],_0xe14343[_0x1d011b(0x14c)]);let _0x4a0fe3=_0xe14343['vVJFM'](randomUUID);try{_0x4a0fe3=_0xb96a03[_0x1d011b(0x146)](_0x225cc2[_0x1d011b(0x14d)](_0x52ae12),_0xe14343[_0x1d011b(0x14a)]);}catch(_0x2ba847){_0xb96a03[_0x1d011b(0x152)](_0x225cc2[_0x1d011b(0x14d)](_0x52ae12),_0x4a0fe3,_0xe14343[_0x1d011b(0x14a)]);}const _0x48d1a7={'selfUin':_0x24b490,'selfUid':_0x1bf54b,'desktopPathConfig':{'account_path':_0x40a0d6},'clientVer':qqVersionConfigInfo[_0x1d011b(0x13f)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x2fd692,'deviceInfo':{'guid':_0x4a0fe3,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'};return Object[_0x1d011b(0x149)](sessionConfig,_0x48d1a7),_0x48d1a7;} \ No newline at end of file diff --git a/src/core.lib/src/utils/config.js b/src/core.lib/src/utils/config.js index 6fc7ccd85..9ecb1d3cc 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x5df218=_0x638e;(function(_0x5095b5,_0x9feb79){const _0x566411=_0x638e,_0x2683a7=_0x5095b5();while(!![]){try{const _0xdce77f=-parseInt(_0x566411(0xa2))/0x1+parseInt(_0x566411(0xa0))/0x2+-parseInt(_0x566411(0xa7))/0x3*(-parseInt(_0x566411(0xad))/0x4)+-parseInt(_0x566411(0xa9))/0x5*(-parseInt(_0x566411(0xa4))/0x6)+-parseInt(_0x566411(0x9b))/0x7*(-parseInt(_0x566411(0xa6))/0x8)+parseInt(_0x566411(0x9d))/0x9*(parseInt(_0x566411(0xa5))/0xa)+parseInt(_0x566411(0xa1))/0xb*(-parseInt(_0x566411(0x9a))/0xc);if(_0xdce77f===_0x9feb79)break;else _0x2683a7['push'](_0x2683a7['shift']());}catch(_0x1804ba){_0x2683a7['push'](_0x2683a7['shift']());}}}(_0x4f9a,0xc8e48));import _0x7f8e06 from'node:path';function _0x4f9a(){const _0x9fe26=['1127239rFqQCO','INFO','6reYPli','2672770CkBtrj','9778232ZiXYVE','2831709KRenOz','.json','5777885GRuHGK','getConfigDir','fileLog','consoleLogLevel','4VehEmR','getConfigPath','7476264ndpFpO','7NPLPEC','uin','27yaGEOM','fileLogLevel','consoleLog','637186QFjCoJ','44aYidwA'];_0x4f9a=function(){return _0x9fe26;};return _0x4f9a();}import{LogLevel}from'@/common/utils/log';function _0x638e(_0x527e88,_0x23adad){const _0x4f9ad6=_0x4f9a();return _0x638e=function(_0x638eda,_0xd9af9c){_0x638eda=_0x638eda-0x99;let _0x551c23=_0x4f9ad6[_0x638eda];return _0x551c23;},_0x638e(_0x527e88,_0x23adad);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x5df218(0xab)]=!![];[_0x5df218(0x9f)]=!![];[_0x5df218(0x9e)]=LogLevel['DEBUG'];[_0x5df218(0xac)]=LogLevel[_0x5df218(0xa3)];constructor(){super();}[_0x5df218(0x99)](){const _0x28b179=_0x5df218;return _0x7f8e06['join'](this[_0x28b179(0xaa)](),'napcat_'+selfInfo[_0x28b179(0x9c)]+_0x28b179(0xa8));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x2b86e5=_0x3314;(function(_0x4f329f,_0xff7166){const _0x306256=_0x3314,_0x394f0b=_0x4f329f();while(!![]){try{const _0x374549=parseInt(_0x306256(0x164))/0x1*(-parseInt(_0x306256(0x166))/0x2)+parseInt(_0x306256(0x161))/0x3*(-parseInt(_0x306256(0x163))/0x4)+-parseInt(_0x306256(0x154))/0x5+parseInt(_0x306256(0x156))/0x6*(-parseInt(_0x306256(0x158))/0x7)+-parseInt(_0x306256(0x167))/0x8+-parseInt(_0x306256(0x15c))/0x9+-parseInt(_0x306256(0x157))/0xa*(-parseInt(_0x306256(0x15e))/0xb);if(_0x374549===_0xff7166)break;else _0x394f0b['push'](_0x394f0b['shift']());}catch(_0x33eaae){_0x394f0b['push'](_0x394f0b['shift']());}}}(_0x333f,0xcc59f));function _0x333f(){const _0x4bc0f3=['56RBILcf','consoleLogLevel','fileLog','getConfigDir','5454360piSGkW','fileLogLevel','715JDVfbB','consoleLog','join','6gbRhFN','uin','604268iUeijK','113DhyfoC','INFO','14092NUpsMo','262080PvXtdc','.json','8101965foiRtw','getConfigPath','219204bwbpeH','690280OGHvzw'];_0x333f=function(){return _0x4bc0f3;};return _0x333f();}import _0x15fd73 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x3314(_0x7bf91d,_0x47cbe3){const _0x333f51=_0x333f();return _0x3314=function(_0x331463,_0x478d6f){_0x331463=_0x331463-0x154;let _0x498edd=_0x333f51[_0x331463];return _0x498edd;},_0x3314(_0x7bf91d,_0x47cbe3);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x2b86e5(0x15a)]=!![];[_0x2b86e5(0x15f)]=!![];[_0x2b86e5(0x15d)]=LogLevel['DEBUG'];[_0x2b86e5(0x159)]=LogLevel[_0x2b86e5(0x165)];constructor(){super();}[_0x2b86e5(0x155)](){const _0x55c82c=_0x2b86e5;return _0x15fd73[_0x55c82c(0x160)](this[_0x55c82c(0x15b)](),'napcat_'+selfInfo[_0x55c82c(0x162)]+_0x55c82c(0x168));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/db.js b/src/core.lib/src/utils/db.js index 132560ffb..391c888bd 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x2a0ac6=_0x4e43;(function(_0x56f6aa,_0x4c9eb7){const _0x1d1246=_0x4e43,_0x4cb41f=_0x56f6aa();while(!![]){try{const _0x279353=parseInt(_0x1d1246(0xa7))/0x1*(-parseInt(_0x1d1246(0xc3))/0x2)+-parseInt(_0x1d1246(0x105))/0x3+-parseInt(_0x1d1246(0xe8))/0x4*(-parseInt(_0x1d1246(0xa1))/0x5)+-parseInt(_0x1d1246(0x120))/0x6+-parseInt(_0x1d1246(0xbd))/0x7+parseInt(_0x1d1246(0xca))/0x8+parseInt(_0x1d1246(0xd5))/0x9;if(_0x279353===_0x4c9eb7)break;else _0x4cb41f['push'](_0x4cb41f['shift']());}catch(_0x18d75a){_0x4cb41f['push'](_0x4cb41f['shift']());}}}(_0x2ebe,0x75a92));import _0x3b1ef5 from'sqlite3';function _0x2ebe(){const _0x4dd961=['2559474VHfjzp','stringify','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','FZKPx','IZYco','OPgUP','VRgiq','stack','htKdu','elementId','189515gwRyuI','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','addMsg','fhpze','now','aSaha','1103hEQFLF','ltWIt','addTempUin','getCurrentMaxShortId','globalMsgShortId','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640',',\x20msgId:\x20','cgwQp','element','db\x20could\x20not\x20get\x20temp\x20uin\x20map','getFileCache','OPEN_CREATE','tFGPp','db\x20could\x20not\x20add\x20file','Could\x20not\x20create\x20table\x20temp_uins',',\x20短id:\x20','set','msgSeq','elementType','assign','Could\x20not\x20connect\x20to\x20database','MPJvY','771659Dxkoaf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','errno','close','uid','MuIgF','794GSwAjb','LmcwZ','OMnOH','数据库中消息最大短id','msgCache','getMsgByLongId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','5748984DYHUar','LYkgE','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','db\x20could\x20not\x20update\x20file\x20cache','Database','jbXMr','YiboT','SELECT\x20*\x20FROM\x20temp_uins','toString',',\x20seq:\x20','CvBzF','5692185QyQZNP','has','db\x20getMsgByLongId\x20error','清理消息缓存','qMNHb','getFileCacheByName','FPIOG','lhwKr','uuid','VYsEZ','url','db\x20could\x20not\x20add\x20temp\x20uin','db\x20could\x20not\x20add\x20msg','init','BrEHe','getMsgsByMsgId','run','delete','path','36zTrEbr','all','RGrng','msgList','then','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','dzXOT','size','LvYrN','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','createTable','Could\x20not\x20get\x20msg','getFileCacheByUuid','longId','getUidByTempUin','lRUhS','NLayy','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','msgId','forEach','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','WCyYF','ZJrRE','chatType','yWLkr','MbwAO','peerUid','daKLV','706710zfJwZY','NUIRd','OPEN_READWRITE','parse','get','WQpbo','oWGCg','updateMsg','XTTrx','更新消息,\x20shortId:','updateFileCache','记录消息到数据库,\x20消息长id:\x20','prepare','AkfbO','updateMsg\x20db\x20error','IuVKZ','getMsgByShortId','dTPzl','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','WLFKI','yxAcp','Could\x20not\x20create\x20table\x20files','WHpCy','maxId','wroKa','getMsg','HfNLh'];_0x2ebe=function(){return _0x4dd961;};return _0x2ebe();}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x4936bc){const _0x5bb234={'jbXMr':function(_0x84ac5b,_0x41f73f){return _0x84ac5b(_0x41f73f);},'XvALB':function(_0x3de92d,_0x18b8fc){return _0x3de92d|_0x18b8fc;}};if(this['db'])return;return new Promise((_0x4f5bfc,_0x8b8af7)=>{const _0x4b581b=_0x4e43,_0x1da1dd={'mRlro':function(_0x3da9bf,_0x39c4f1,_0x2703b7){return _0x3da9bf(_0x39c4f1,_0x2703b7);},'NUIRd':function(_0x41c9dd,_0x587bc1){const _0xa92cf=_0x4e43;return _0x5bb234[_0xa92cf(0xcf)](_0x41c9dd,_0x587bc1);},'YiboT':function(_0x3665f6){return _0x3665f6();}};this['db']=new _0x3b1ef5[(_0x4b581b(0xce))](_0x4936bc,_0x5bb234['XvALB'](_0x3b1ef5[_0x4b581b(0x107)],_0x3b1ef5[_0x4b581b(0xb2)]),_0x55530c=>{const _0x78c63a=_0x4b581b;if(_0x55530c){_0x1da1dd['mRlro'](logError,_0x78c63a(0xbb),_0x55530c),_0x1da1dd[_0x78c63a(0x106)](_0x8b8af7,_0x55530c);return;}this['createTable'](),_0x1da1dd[_0x78c63a(0xd0)](_0x4f5bfc);});});}[_0x2a0ac6(0xf2)](){throw new Error('Method\x20not\x20implemented.');}['close'](){const _0x5aa7b8=_0x2a0ac6;this['db']?.[_0x5aa7b8(0xc0)]();}}function _0x4e43(_0x286555,_0x5d5359){const _0x2ebed0=_0x2ebe();return _0x4e43=function(_0x4e4321,_0x2c6c08){_0x4e4321=_0x4e4321-0x9b;let _0x113e55=_0x2ebed0[_0x4e4321];return _0x113e55;},_0x4e43(_0x286555,_0x5d5359);}class DBUtil extends DBUtilBase{[_0x2a0ac6(0xc7)]=new Map();[_0x2a0ac6(0xab)]=-0x7ffffff8;constructor(){const _0x551b24=_0x2a0ac6,_0x37160f={'qeOzc':function(_0x2321b6,_0x1d9b01){return _0x2321b6>_0x1d9b01;},'OPgUP':function(_0x5672c9,_0x5065bb){return _0x5672c9(_0x5065bb);},'XTTrx':_0x551b24(0xd8),'WHpCy':function(_0x220551,_0x487b64){return _0x220551*_0x487b64;}};super();const _0x1a60de=_0x37160f['WHpCy'](_0x37160f[_0x551b24(0x11b)](0x3e8,0x3c),0xa);setInterval(()=>{const _0x127a0f=_0x551b24;_0x37160f[_0x127a0f(0x9c)](logDebug,_0x37160f[_0x127a0f(0x10d)]),this[_0x127a0f(0xc7)]['forEach']((_0x3e8110,_0x58aec9)=>{const _0x2008a0=_0x127a0f;_0x37160f['qeOzc'](Date[_0x2008a0(0xa5)]()-_0x37160f[_0x2008a0(0x9c)](parseInt,_0x3e8110['msgTime'])*0x3e8,_0x1a60de)&&this[_0x2008a0(0xc7)][_0x2008a0(0xe6)](_0x58aec9);});},_0x1a60de);}async[_0x2a0ac6(0xe2)](_0x314340){const _0x492406=_0x2a0ac6;await super[_0x492406(0xe2)](_0x314340),this[_0x492406(0xab)]=await this[_0x492406(0xaa)]();}['createTable'](){const _0x512c6a=_0x2a0ac6,_0x25c530={'DEnSe':'Could\x20not\x20create\x20table\x20msgs','VYsEZ':function(_0x45ac14,_0x18df39,_0x598368){return _0x45ac14(_0x18df39,_0x598368);},'IZYco':_0x512c6a(0x11a)},_0x3e070b='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x512c6a(0xe5)](_0x3e070b,function(_0x578af8){const _0x23be7b=_0x512c6a;_0x578af8&&logError(_0x25c530['DEnSe'],_0x578af8[_0x23be7b(0x9e)]);});const _0x40e5b9=_0x512c6a(0xbe);this['db'][_0x512c6a(0xe5)](_0x40e5b9,function(_0x17216a){const _0xab0742=_0x512c6a;_0x17216a&&_0x25c530[_0xab0742(0xde)](logError,_0x25c530[_0xab0742(0x9b)],_0x17216a);});const _0x21ea82=_0x512c6a(0xc9);this['db']['run'](_0x21ea82,function(_0x392b83){const _0x1abfed=_0x512c6a;_0x392b83&&_0x25c530[_0x1abfed(0xde)](logError,_0x1abfed(0xb5),_0x392b83);});}async[_0x2a0ac6(0xaa)](){const _0x18681a=_0x2a0ac6,_0x105a88={'WQpbo':_0x18681a(0xac),'MPJvY':function(_0x4491c9,_0x4326da,_0x4ed91f){return _0x4491c9(_0x4326da,_0x4ed91f);},'lhwKr':_0x18681a(0xc6),'MuIgF':function(_0x4d0334,_0x2e3180){return _0x4d0334(_0x2e3180);},'yxAcp':_0x18681a(0xa2)};return new Promise((_0x5c059c,_0x267e74)=>{const _0xeaf3e9=_0x18681a;this['db'][_0xeaf3e9(0x109)](_0x105a88[_0xeaf3e9(0x119)],(_0x2f5c83,_0x10b1ff)=>{const _0x25339b=_0xeaf3e9;if(_0x2f5c83)return logDebug(_0x105a88[_0x25339b(0x10a)],_0x2f5c83),_0x5c059c(-0x7ffffff8);_0x105a88[_0x25339b(0xbc)](logDebug,_0x105a88[_0x25339b(0xdc)],_0x10b1ff?.[_0x25339b(0x11c)]),_0x105a88[_0x25339b(0xc2)](_0x5c059c,_0x10b1ff?.[_0x25339b(0x11c)]??-0x7ffffff8);});});}async[_0x2a0ac6(0x11e)](_0x19d6a7,_0x34ecd9){const _0x30cdfd=_0x2a0ac6,_0x13f485={'CvBzF':function(_0x264189,_0x328ae4,_0x61c20,_0x67a7ef,_0x1a7f95){return _0x264189(_0x328ae4,_0x61c20,_0x67a7ef,_0x1a7f95);},'uSTEX':_0x30cdfd(0xf3),'RGrng':function(_0x438093,_0xc7bf75){return _0x438093(_0xc7bf75);}},_0xfd6276=this['db'][_0x30cdfd(0x111)](_0x19d6a7);return new Promise((_0x42a986,_0x1af8d9)=>{const _0x4ab526={'wroKa':function(_0x592ae9,_0x207389){return _0x592ae9(_0x207389);},'IuVKZ':function(_0x2b540e,_0x3a08af){return _0x2b540e(_0x3a08af);},'hKwkm':function(_0x3b1958,_0x215d66,_0x4dc278,_0x48257f,_0x196eae){const _0x2fd46d=_0x4e43;return _0x13f485[_0x2fd46d(0xd4)](_0x3b1958,_0x215d66,_0x4dc278,_0x48257f,_0x196eae);},'fRWIL':_0x13f485['uSTEX'],'FPIOG':function(_0x5e0f63,_0x44bb01){const _0x39df1e=_0x4e43;return _0x13f485[_0x39df1e(0xea)](_0x5e0f63,_0x44bb01);}};_0xfd6276['get'](..._0x34ecd9,(_0x41938c,_0x361ecb)=>{const _0x3c0b95=_0x4e43;if(_0x41938c)return _0x4ab526['hKwkm'](logError,_0x4ab526['fRWIL'],_0x41938c,_0x19d6a7,_0x34ecd9),_0x4ab526[_0x3c0b95(0xdb)](_0x42a986,null);if(!_0x361ecb){_0x4ab526[_0x3c0b95(0x11d)](_0x42a986,null);return;}const _0x5c4ddc=_0x361ecb[_0x3c0b95(0xf5)];NTQQMsgApi[_0x3c0b95(0xe4)]({'peerUid':_0x361ecb[_0x3c0b95(0x103)],'chatType':_0x361ecb[_0x3c0b95(0x100)]},[_0x5c4ddc])[_0x3c0b95(0xec)](_0x55855a=>{const _0x5025f8=_0x3c0b95,_0x25d0b7=_0x55855a[_0x5025f8(0xeb)][0x0];if(!_0x25d0b7){_0x4ab526[_0x5025f8(0x11d)](_0x42a986,null);return;}_0x25d0b7['id']=_0x361ecb['shortId'],_0x4ab526[_0x5025f8(0x114)](_0x42a986,_0x25d0b7);})['catch'](_0x26f569=>{_0x4ab526['wroKa'](_0x42a986,null);});});});}async[_0x2a0ac6(0x115)](_0x56c3ce){const _0x34bab0=_0x2a0ac6,_0x569ace={'ojuMh':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this['msgCache'][_0x34bab0(0xd6)](_0x56c3ce))return this[_0x34bab0(0xc7)][_0x34bab0(0x109)](_0x56c3ce);const _0x2b3fdd=_0x569ace['ojuMh'];return this[_0x34bab0(0x11e)](_0x2b3fdd,[_0x56c3ce]);}async[_0x2a0ac6(0xc8)](_0x31c007){const _0x47af00=_0x2a0ac6;if(this['msgCache'][_0x47af00(0xd6)](_0x31c007))return this[_0x47af00(0xc7)][_0x47af00(0x109)](_0x31c007);return this[_0x47af00(0x11e)](_0x47af00(0xcc),[_0x31c007]);}async['getMsgBySeq'](_0x4d652e,_0x470cac){const _0x6a903a=_0x2a0ac6,_0x2a5718={'yWLkr':_0x6a903a(0x122)},_0x1ca6bd=_0x2a5718[_0x6a903a(0x101)];return this['getMsg'](_0x1ca6bd,[_0x4d652e,_0x470cac]);}async[_0x2a0ac6(0xa3)](_0x1cb59e,_0x21907f=!![]){const _0x46cfe8=_0x2a0ac6,_0x1596f7={'ZJrRE':function(_0x38f13d,_0x12497c){return _0x38f13d===_0x12497c;},'htKdu':function(_0x4cbb55,_0xa28f77,_0x423aa6){return _0x4cbb55(_0xa28f77,_0x423aa6);},'LvYrN':_0x46cfe8(0xe1),'MbwAO':_0x46cfe8(0xed),'GNvLO':function(_0x3d555a,_0x493c19){return _0x3d555a(_0x493c19);}},_0xc7f8dc=await this['getMsgByLongId'](_0x1cb59e[_0x46cfe8(0xfa)]);if(_0xc7f8dc){if(_0x21907f)this['updateMsg'](_0x1cb59e)[_0x46cfe8(0xec)]();return _0xc7f8dc['id'];}const _0x495efd=this['db']['prepare'](_0x1596f7[_0x46cfe8(0x102)]),_0x24ddde=++this[_0x46cfe8(0xab)];return _0x1cb59e['id']=_0x24ddde,_0x1596f7['GNvLO'](logDebug,_0x46cfe8(0x110)+_0x1cb59e[_0x46cfe8(0xfa)]+_0x46cfe8(0xb6)+_0x1cb59e['id']),this[_0x46cfe8(0xc7)][_0x46cfe8(0xb7)](_0x24ddde,_0x1cb59e),this[_0x46cfe8(0xc7)][_0x46cfe8(0xb7)](_0x1cb59e['msgId'],_0x1cb59e),_0x495efd[_0x46cfe8(0xe5)](this[_0x46cfe8(0xab)],_0x1cb59e[_0x46cfe8(0xfa)],_0x1cb59e[_0x46cfe8(0xb8)][_0x46cfe8(0xd2)](),_0x1cb59e[_0x46cfe8(0x103)],_0x1cb59e[_0x46cfe8(0x100)],_0x458ebd=>{const _0x427884=_0x46cfe8,_0x1a81f4={'tFGPp':function(_0x344ac0,_0x161b45,_0x404493){return _0x344ac0(_0x161b45,_0x404493);}};_0x458ebd&&(_0x1596f7[_0x427884(0xff)](_0x458ebd[_0x427884(0xbf)],0x13)?this[_0x427884(0xc8)](_0x1cb59e[_0x427884(0xfa)])[_0x427884(0xec)](_0xdbd9d3=>{const _0x47bddf=_0x427884;_0xdbd9d3?(this[_0x47bddf(0xc7)][_0x47bddf(0xb7)](_0x24ddde,_0xdbd9d3),this['msgCache'][_0x47bddf(0xb7)](_0xdbd9d3[_0x47bddf(0xfa)],_0xdbd9d3)):_0x1a81f4[_0x47bddf(0xb3)](logError,_0x47bddf(0x117),_0x458ebd);})['catch'](_0x17f8ac=>logError(_0x427884(0xd7),_0x17f8ac)):_0x1596f7[_0x427884(0x9f)](logError,_0x1596f7[_0x427884(0xf0)],_0x458ebd));}),_0x24ddde;}async[_0x2a0ac6(0x10c)](_0x561bbc){const _0x317f26=_0x2a0ac6,_0x5b507d={'HfNLh':function(_0x41092f,_0x1f1b7b,_0x308422){return _0x41092f(_0x1f1b7b,_0x308422);},'oWGCg':function(_0x190ec1,_0x452e60){return _0x190ec1(_0x452e60);},'ltWIt':_0x317f26(0xfd)},_0x33bbb8=this['msgCache']['get'](_0x561bbc[_0x317f26(0xfa)]);_0x33bbb8&&Object[_0x317f26(0xba)](_0x33bbb8,_0x561bbc);_0x5b507d[_0x317f26(0x10b)](logDebug,_0x317f26(0x10e)+_0x561bbc['id']+_0x317f26(0xd3)+_0x561bbc[_0x317f26(0xb8)]+_0x317f26(0xad)+_0x561bbc[_0x317f26(0xfa)]);const _0x51e79c=this['db'][_0x317f26(0x111)](_0x5b507d[_0x317f26(0xa8)]);_0x51e79c[_0x317f26(0xe5)](_0x561bbc[_0x317f26(0xb8)],_0x561bbc[_0x317f26(0xfa)],_0x300a2c=>{const _0x452743=_0x317f26;_0x300a2c&&_0x5b507d[_0x452743(0x11f)](logError,_0x452743(0x113),_0x300a2c);});}async['addFileCache'](_0xce2ce0){const _0x54eb2e=_0x2a0ac6,_0x4858a8={'WLFKI':function(_0x4c4559,_0x12f3dd,_0x4dbce7){return _0x4c4559(_0x12f3dd,_0x4dbce7);},'lRUhS':function(_0x359bfb,_0x8fd507){return _0x359bfb(_0x8fd507);},'fhpze':_0x54eb2e(0xf9)},_0x2d0de5=this['db'][_0x54eb2e(0x111)](_0x4858a8[_0x54eb2e(0xa4)]);return new Promise((_0x4b58fe,_0x424650)=>{const _0x1383fe=_0x54eb2e,_0x3c5a3b={'qMNHb':function(_0x325cf2,_0x1e6c02,_0x51313d){const _0x1c302c=_0x4e43;return _0x4858a8[_0x1c302c(0x118)](_0x325cf2,_0x1e6c02,_0x51313d);},'dzXOT':function(_0x27e916,_0x59b26e){const _0x5d6f7b=_0x4e43;return _0x4858a8[_0x5d6f7b(0xf7)](_0x27e916,_0x59b26e);}};_0x2d0de5[_0x1383fe(0xe5)](_0xce2ce0['name'],_0xce2ce0[_0x1383fe(0xe7)],_0xce2ce0[_0x1383fe(0xdf)],_0xce2ce0[_0x1383fe(0xef)],_0xce2ce0['uuid'],_0xce2ce0[_0x1383fe(0xb9)],JSON[_0x1383fe(0x121)](_0xce2ce0[_0x1383fe(0xaf)]),_0xce2ce0[_0x1383fe(0xa0)],_0xce2ce0[_0x1383fe(0xfa)],function(_0x386e23){const _0x2a79c6=_0x1383fe;_0x386e23&&(_0x3c5a3b[_0x2a79c6(0xd9)](logError,_0x2a79c6(0xb4),_0x386e23),_0x424650(_0x386e23)),_0x3c5a3b[_0x2a79c6(0xee)](_0x4b58fe,null);});});}async['getFileCache'](_0xbb32a7,_0x2581b8){const _0x3aa017={'cgwQp':function(_0x2c29b1,_0xc28d5b){return _0x2c29b1(_0xc28d5b);}},_0x5c8ec0=this['db']['prepare'](_0xbb32a7);return new Promise((_0x5d9627,_0x35eb9d)=>{const _0x5df6af=_0x4e43;_0x5c8ec0[_0x5df6af(0x109)](..._0x2581b8,(_0x916393,_0x5bf938)=>{const _0x1069cc=_0x5df6af;_0x916393&&(logError('db\x20could\x20not\x20get\x20file\x20cache',_0x916393),_0x3aa017[_0x1069cc(0xae)](_0x35eb9d,_0x916393)),_0x5bf938&&(_0x5bf938[_0x1069cc(0xaf)]=JSON[_0x1069cc(0x108)](_0x5bf938['element'])),_0x5d9627(_0x5bf938);});});}async[_0x2a0ac6(0xda)](_0x4f3f14){const _0x5322e2=_0x2a0ac6,_0x8cf8f={'JTvpZ':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?'};return this[_0x5322e2(0xb1)](_0x8cf8f['JTvpZ'],[_0x4f3f14]);}async[_0x2a0ac6(0xf4)](_0x550a34){const _0x3c0c14=_0x2a0ac6,_0x3cf798={'hkZzi':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?'};return this[_0x3c0c14(0xb1)](_0x3cf798['hkZzi'],[_0x550a34]);}async[_0x2a0ac6(0x10f)](_0x44eb12){const _0x5239e3=_0x2a0ac6,_0xd19ae7={'sXrAT':function(_0x16ff56,_0x402323,_0x8b2c04){return _0x16ff56(_0x402323,_0x8b2c04);},'dTPzl':_0x5239e3(0xcd),'aSaha':function(_0x303b02,_0x4301f7){return _0x303b02(_0x4301f7);},'OMnOH':function(_0x3e7887,_0x3fe721){return _0x3e7887(_0x3fe721);},'wekzM':'UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?'},_0x2da5bc=this['db']['prepare'](_0xd19ae7['wekzM']);return new Promise((_0x7eb9bb,_0x28416f)=>{const _0x196796=_0x5239e3;_0x2da5bc['run'](_0x44eb12[_0x196796(0xe7)],_0x44eb12[_0x196796(0xdf)],_0x44eb12[_0x196796(0xdd)],function(_0x28909f){const _0x51cacc=_0x196796;_0x28909f&&(_0xd19ae7['sXrAT'](logError,_0xd19ae7[_0x51cacc(0x116)],_0x28909f),_0xd19ae7[_0x51cacc(0xa6)](_0x28416f,_0x28909f)),_0xd19ae7[_0x51cacc(0xc5)](_0x7eb9bb,null);});});}async['getReceivedTempUinMap'](){const _0x504a9a=_0x2a0ac6,_0x3ddf4b={'BrEHe':function(_0x305dec,_0x3556b1,_0x19983d){return _0x305dec(_0x3556b1,_0x19983d);},'CvkBK':_0x504a9a(0xb0),'NLayy':_0x504a9a(0xd1)},_0x507cd9=_0x3ddf4b[_0x504a9a(0xf8)];return new Promise((_0x5aefde,_0x4bf1b1)=>{const _0x1e231a=_0x504a9a,_0x1a0f7a={'LmcwZ':function(_0x48a435,_0x96df1,_0x322cef){const _0x14d49a=_0x4e43;return _0x3ddf4b[_0x14d49a(0xe3)](_0x48a435,_0x96df1,_0x322cef);},'WCyYF':_0x3ddf4b['CvkBK'],'fqUMF':function(_0x53f6f1,_0x59a899){return _0x53f6f1(_0x59a899);}};this['db'][_0x1e231a(0xe9)](_0x507cd9,(_0x367ecd,_0xbca3b3)=>{const _0x10fa06=_0x1e231a;_0x367ecd&&(_0x1a0f7a[_0x10fa06(0xc4)](logError,_0x1a0f7a[_0x10fa06(0xfe)],_0x367ecd),_0x4bf1b1(_0x367ecd));const _0x3433f6={};_0xbca3b3[_0x10fa06(0xfb)](_0x42c0ce=>{const _0x502403=_0x10fa06;_0x3433f6[_0x42c0ce['uin']]=_0x42c0ce[_0x502403(0xc1)];}),_0x1a0f7a['fqUMF'](_0x5aefde,_0x3433f6);});});}async[_0x2a0ac6(0xf6)](_0x5673d4){const _0x275258=_0x2a0ac6,_0x60bc6a={'QnFCq':function(_0x186a8f,_0x219e72,_0x44daf5){return _0x186a8f(_0x219e72,_0x44daf5);},'daKLV':function(_0x17f962,_0x119e1a){return _0x17f962(_0x119e1a);}},_0x37aac3=_0x275258(0xfc);return new Promise((_0x47d736,_0x3962fd)=>{this['db']['get'](_0x37aac3,[_0x5673d4],(_0xa5f569,_0x5c9f59)=>{const _0x1182f6=_0x4e43;_0xa5f569&&(_0x60bc6a['QnFCq'](logError,_0x1182f6(0xb0),_0xa5f569),_0x60bc6a[_0x1182f6(0x104)](_0x3962fd,_0xa5f569)),_0x47d736(_0x5c9f59?.[_0x1182f6(0xc1)]);});});}async[_0x2a0ac6(0xa9)](_0x560220,_0x4c85e3){const _0x49de3d=_0x2a0ac6,_0x461476={'VRgiq':function(_0x4ade6b,_0x47427a,_0x4a6c72){return _0x4ade6b(_0x47427a,_0x4a6c72);},'AkfbO':function(_0x4b7389,_0x42f22c){return _0x4b7389(_0x42f22c);}},_0x5da0d3=await this['getUidByTempUin'](_0x560220);if(!_0x5da0d3){const _0x54e15=this['db']['prepare'](_0x49de3d(0xf1));return new Promise((_0x2c7a89,_0x3e38b9)=>{const _0x43e5f1=_0x49de3d,_0x1bf8f={'LYkgE':function(_0x147af1,_0x22679c,_0x185a75){const _0x1280c3=_0x4e43;return _0x461476[_0x1280c3(0x9d)](_0x147af1,_0x22679c,_0x185a75);},'FZKPx':function(_0x415140,_0x1b0225){const _0x4bd638=_0x4e43;return _0x461476[_0x4bd638(0x112)](_0x415140,_0x1b0225);}};_0x54e15[_0x43e5f1(0xe5)](_0x560220,_0x4c85e3,function(_0x1abb38){const _0x484dfe=_0x43e5f1;_0x1abb38&&(_0x1bf8f[_0x484dfe(0xcb)](logError,_0x484dfe(0xe0),_0x1abb38),_0x1bf8f[_0x484dfe(0x123)](_0x3e38b9,_0x1abb38)),_0x2c7a89(null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +function _0x40fc(_0x26852c,_0x410812){const _0x33cfa4=_0x33cf();return _0x40fc=function(_0x40fc69,_0x3f6c78){_0x40fc69=_0x40fc69-0x117;let _0x3019f4=_0x33cfa4[_0x40fc69];return _0x3019f4;},_0x40fc(_0x26852c,_0x410812);}function _0x33cf(){const _0x4bfa5a=[',\x20短id:\x20','NrPeU','init','dqivx','close','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','prepare','dxGvK','cBggO','now','24xclMtj','Method\x20not\x20implemented.','oXKWJ','updateMsg\x20db\x20error','getMsgsByMsgId','WAWIO','ZBnSm','set','element','2513864oMDLrU','iCyxg','记录消息到数据库,\x20消息长id:\x20','LQsUV','msgList','db\x20could\x20not\x20get\x20file\x20cache','更新消息,\x20shortId:','kWIXA','VbFXj','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','maxId','PEDiq','updateFileCache','xpVjD','createTable','igapG','881629CrRNKu','19688ZZszKa','mebSI','catch','MiLrF','SELECT\x20*\x20FROM\x20temp_uins','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','KBsrE','PHbLj','getMsg','数据库中消息最大短id','peerUid',',\x20seq:\x20','rVEED','msgTime','db\x20could\x20not\x20add\x20msg','zQPDE','dDGfW','Could\x20not\x20create\x20table\x20files','toString','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','rUOGa','9617861wGrjgg','elementId','forEach','QNUaf','db\x20could\x20not\x20get\x20temp\x20uin\x20map','gGagT','iCluc','then','getFileCache','HsmOi','db\x20getMsgByLongId\x20error','get','10Qovxmx','kCeBl','getFileCacheByName','updateMsg','uin','db\x20could\x20not\x20add\x20file','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','addFileCache','kPdxm','chatType','45HvZubQ','GCifY','IrTnW','fpOvs','Gnbsd','gAJRv','db\x20could\x20not\x20add\x20temp\x20uin','16382772RdZxZZ','Could\x20not\x20create\x20table\x20temp_uins','aQogp','AjCWs','TIdpw','getMsgByLongId','db\x20could\x20not\x20update\x20file\x20cache','parse','url','getUidByTempUin','OBkzx','iFsCx','run','globalMsgShortId','7515660bRRDvh','2jUBXSO','size','name','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','dnSQY','addTempUin','errno','IfEXy','84xzNuJH','longId','NzULF','AvhVd','aQMXw','1738979SljwCP','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','all','assign','getFileCacheByUuid','sXutu','ZvNeK','qWOFe','JPwtf','Could\x20not\x20create\x20table\x20msgs','gCxFV','msgSeq','OLDTN','shortId','stringify','uid','msgCache','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','ynGku','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','ZvCRl','Database','msgId','delete',',\x20msgId:\x20','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','uuid','VKUEy','ZNEUf','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','DzHJo','getCurrentMaxShortId','Could\x20not\x20connect\x20to\x20database'];_0x33cf=function(){return _0x4bfa5a;};return _0x33cf();}const _0x58347f=_0x40fc;(function(_0x8f5c9d,_0x2cf3aa){const _0x41a280=_0x40fc,_0x5160d7=_0x8f5c9d();while(!![]){try{const _0x19eae0=-parseInt(_0x41a280(0x12f))/0x1*(-parseInt(_0x41a280(0x122))/0x2)+parseInt(_0x41a280(0x15d))/0x3*(parseInt(_0x41a280(0x177))/0x4)+-parseInt(_0x41a280(0x121))/0x5+-parseInt(_0x41a280(0x12a))/0x6*(-parseInt(_0x41a280(0x176))/0x7)+parseInt(_0x41a280(0x166))/0x8*(-parseInt(_0x41a280(0x1a3))/0x9)+parseInt(_0x41a280(0x199))/0xa*(-parseInt(_0x41a280(0x18d))/0xb)+parseInt(_0x41a280(0x1aa))/0xc;if(_0x19eae0===_0x2cf3aa)break;else _0x5160d7['push'](_0x5160d7['shift']());}catch(_0x372ab7){_0x5160d7['push'](_0x5160d7['shift']());}}}(_0x33cf,0xe9ef4));import _0x44c28f from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x53aca7){const _0x35510b=_0x40fc,_0x4887c5={'sXutu':function(_0xc273a5,_0x1ccf86,_0x11f387){return _0xc273a5(_0x1ccf86,_0x11f387);},'NzULF':_0x35510b(0x152),'QNUaf':function(_0x5ecf95,_0x316c1e){return _0x5ecf95(_0x316c1e);},'kPdxm':function(_0x38076b){return _0x38076b();}};if(this['db'])return;return new Promise((_0x2588ec,_0x1d186d)=>{const _0x8fec8b=_0x35510b;this['db']=new _0x44c28f[(_0x8fec8b(0x144))](_0x53aca7,_0x44c28f['OPEN_READWRITE']|_0x44c28f['OPEN_CREATE'],_0x590557=>{const _0x355b58=_0x8fec8b;if(_0x590557){_0x4887c5[_0x355b58(0x134)](logError,_0x4887c5[_0x355b58(0x12c)],_0x590557),_0x4887c5[_0x355b58(0x190)](_0x1d186d,_0x590557);return;}this['createTable'](),_0x4887c5[_0x355b58(0x1a1)](_0x2588ec);});});}[_0x58347f(0x174)](){const _0x70312c=_0x58347f;throw new Error(_0x70312c(0x15e));}['close'](){const _0x43a291=_0x58347f;this['db']?.[_0x43a291(0x157)]();}}class DBUtil extends DBUtilBase{[_0x58347f(0x13f)]=new Map();[_0x58347f(0x120)]=-0x7ffffff8;constructor(){const _0x4c57c0=_0x58347f,_0x27b70a={'GCifY':function(_0x3df172,_0x2fb1b7){return _0x3df172>_0x2fb1b7;},'WdbSe':function(_0xc5b1af,_0x595f66){return _0xc5b1af-_0x595f66;},'gCxFV':function(_0x9e59c2,_0x2b6b96){return _0x9e59c2*_0x2b6b96;},'ZBnSm':function(_0x675237,_0x1daebb){return _0x675237(_0x1daebb);},'PHbLj':'清理消息缓存','KBsrE':function(_0x38fd67,_0x32c7ef,_0x28666c){return _0x38fd67(_0x32c7ef,_0x28666c);}};super();const _0xc14f02=0x3e8*0x3c*0xa;_0x27b70a[_0x4c57c0(0x17e)](setInterval,()=>{const _0x2ee725=_0x4c57c0;logDebug(_0x27b70a[_0x2ee725(0x17f)]),this[_0x2ee725(0x13f)][_0x2ee725(0x18f)]((_0x4453f7,_0x4cb433)=>{const _0x57f14e=_0x2ee725;_0x27b70a[_0x57f14e(0x1a4)](_0x27b70a['WdbSe'](Date[_0x57f14e(0x15c)](),_0x27b70a[_0x57f14e(0x139)](_0x27b70a[_0x57f14e(0x163)](parseInt,_0x4453f7[_0x57f14e(0x185)]),0x3e8)),_0xc14f02)&&this[_0x57f14e(0x13f)][_0x57f14e(0x146)](_0x4cb433);});},_0xc14f02);}async[_0x58347f(0x155)](_0x4b5ff1){const _0x154758=_0x58347f;await super[_0x154758(0x155)](_0x4b5ff1),this[_0x154758(0x120)]=await this[_0x154758(0x151)]();}[_0x58347f(0x174)](){const _0x4e4e18=_0x58347f,_0x5b2e74={'fpOvs':function(_0xe64cb0,_0x2ed6f0,_0x56a9e3){return _0xe64cb0(_0x2ed6f0,_0x56a9e3);},'kCeBl':_0x4e4e18(0x138),'kDAwz':function(_0x5497d2,_0x5dffdc,_0x646938){return _0x5497d2(_0x5dffdc,_0x646938);},'hOdAj':function(_0x5d1243,_0x62ca7a,_0x3457d9){return _0x5d1243(_0x62ca7a,_0x3457d9);},'ynGku':_0x4e4e18(0x1ab)},_0x9620a1=_0x4e4e18(0x17c);this['db'][_0x4e4e18(0x11f)](_0x9620a1,function(_0x2b40b7){const _0x12b516=_0x4e4e18;_0x2b40b7&&_0x5b2e74[_0x12b516(0x1a6)](logError,_0x5b2e74[_0x12b516(0x19a)],_0x2b40b7['stack']);});const _0x5c3270=_0x4e4e18(0x130);this['db'][_0x4e4e18(0x11f)](_0x5c3270,function(_0x4a87e3){const _0x1054bf=_0x4e4e18;_0x4a87e3&&_0x5b2e74['kDAwz'](logError,_0x1054bf(0x189),_0x4a87e3);});const _0x46ef32=_0x4e4e18(0x18b);this['db'][_0x4e4e18(0x11f)](_0x46ef32,function(_0x1ee41e){const _0x567e5a=_0x4e4e18;_0x1ee41e&&_0x5b2e74['hOdAj'](logError,_0x5b2e74[_0x567e5a(0x141)],_0x1ee41e);});}async['getCurrentMaxShortId'](){const _0x34e1ae=_0x58347f,_0x41fc3b={'rVEED':function(_0x3186fa,_0x3c2f3b,_0x3d4860){return _0x3186fa(_0x3c2f3b,_0x3d4860);},'zQPDE':_0x34e1ae(0x148),'qRJRr':function(_0x2607ff,_0x3622f4){return _0x2607ff(_0x3622f4);}};return new Promise((_0x51c257,_0x21a0d8)=>{const _0x4314db=_0x34e1ae,_0x23aceb={'OLDTN':function(_0xba829a,_0x46331d,_0x2e08b4){const _0x124ad8=_0x40fc;return _0x41fc3b[_0x124ad8(0x184)](_0xba829a,_0x46331d,_0x2e08b4);},'MiLrF':_0x41fc3b[_0x4314db(0x187)],'rUOGa':function(_0x671be0,_0x2cd394){return _0x41fc3b['qRJRr'](_0x671be0,_0x2cd394);},'FczcE':function(_0x1e66bb,_0x389769,_0x41dfc6){const _0x5eab62=_0x4314db;return _0x41fc3b[_0x5eab62(0x184)](_0x1e66bb,_0x389769,_0x41dfc6);}};this['db'][_0x4314db(0x198)](_0x4314db(0x16f),(_0x3b76ef,_0x22e524)=>{const _0x1096e8=_0x4314db;if(_0x3b76ef)return _0x23aceb[_0x1096e8(0x13b)](logDebug,_0x23aceb[_0x1096e8(0x17a)],_0x3b76ef),_0x23aceb['rUOGa'](_0x51c257,-0x7ffffff8);_0x23aceb['FczcE'](logDebug,_0x1096e8(0x181),_0x22e524?.[_0x1096e8(0x170)]),_0x23aceb[_0x1096e8(0x18c)](_0x51c257,_0x22e524?.[_0x1096e8(0x170)]??-0x7ffffff8);});});}async['getMsg'](_0x79aa97,_0xfbf452){const _0x1c2dd3=_0x58347f,_0x207d1c={'VKUEy':function(_0x5ea7a9,_0x4dd55a){return _0x5ea7a9(_0x4dd55a);},'iFsCx':function(_0x2e0cf8,_0x278113){return _0x2e0cf8(_0x278113);},'dDGfW':function(_0x19d908,_0x247db,_0x3a949d,_0x5619dc,_0x2deb94){return _0x19d908(_0x247db,_0x3a949d,_0x5619dc,_0x2deb94);},'OBkzx':'Could\x20not\x20get\x20msg'},_0x33621f=this['db'][_0x1c2dd3(0x159)](_0x79aa97);return new Promise((_0x255446,_0x2016b1)=>{const _0xf8ef2=_0x1c2dd3;_0x33621f[_0xf8ef2(0x198)](..._0xfbf452,(_0x25337d,_0x39dccc)=>{const _0xddaf0f=_0xf8ef2,_0x9be0df={'NrPeU':function(_0x50ae9f,_0x3c4bf5){const _0x546284=_0x40fc;return _0x207d1c[_0x546284(0x14a)](_0x50ae9f,_0x3c4bf5);},'dqivx':function(_0x5d308c,_0x417e7d){const _0x513da9=_0x40fc;return _0x207d1c[_0x513da9(0x14a)](_0x5d308c,_0x417e7d);},'IrTnW':function(_0x6c84a0,_0x3ed6ae){const _0x6e2747=_0x40fc;return _0x207d1c[_0x6e2747(0x11e)](_0x6c84a0,_0x3ed6ae);}};if(_0x25337d)return _0x207d1c[_0xddaf0f(0x188)](logError,_0x207d1c[_0xddaf0f(0x11d)],_0x25337d,_0x79aa97,_0xfbf452),_0x207d1c[_0xddaf0f(0x11e)](_0x255446,null);if(!_0x39dccc){_0x207d1c[_0xddaf0f(0x14a)](_0x255446,null);return;}const _0x38e8dd=_0x39dccc[_0xddaf0f(0x12b)];NTQQMsgApi[_0xddaf0f(0x161)]({'peerUid':_0x39dccc[_0xddaf0f(0x182)],'chatType':_0x39dccc[_0xddaf0f(0x1a2)]},[_0x38e8dd])[_0xddaf0f(0x194)](_0x256d59=>{const _0x475ebd=_0xddaf0f,_0x3b597a=_0x256d59[_0x475ebd(0x16a)][0x0];if(!_0x3b597a){_0x9be0df[_0x475ebd(0x154)](_0x255446,null);return;}_0x3b597a['id']=_0x39dccc[_0x475ebd(0x13c)],_0x9be0df[_0x475ebd(0x156)](_0x255446,_0x3b597a);})[_0xddaf0f(0x179)](_0x21231f=>{const _0x357923=_0xddaf0f;_0x9be0df[_0x357923(0x1a5)](_0x255446,null);});});});}async['getMsgByShortId'](_0x4e8cb0){const _0x38f8c0=_0x58347f,_0x2dc500={'aQogp':_0x38f8c0(0x142)};if(this[_0x38f8c0(0x13f)]['has'](_0x4e8cb0))return this[_0x38f8c0(0x13f)][_0x38f8c0(0x198)](_0x4e8cb0);const _0x4f0727=_0x2dc500[_0x38f8c0(0x1ac)];return this[_0x38f8c0(0x180)](_0x4f0727,[_0x4e8cb0]);}async[_0x58347f(0x118)](_0x182dbf){const _0x78c2a0=_0x58347f,_0x18a521={'dnSQY':_0x78c2a0(0x140)};if(this[_0x78c2a0(0x13f)]['has'](_0x182dbf))return this[_0x78c2a0(0x13f)][_0x78c2a0(0x198)](_0x182dbf);return this[_0x78c2a0(0x180)](_0x18a521[_0x78c2a0(0x126)],[_0x182dbf]);}async['getMsgBySeq'](_0x19e96b,_0x59e2fd){const _0x10e038=_0x58347f,_0x5cd858={'IfEXy':_0x10e038(0x17d)},_0x2371df=_0x5cd858[_0x10e038(0x129)];return this[_0x10e038(0x180)](_0x2371df,[_0x19e96b,_0x59e2fd]);}async['addMsg'](_0x28aaf3,_0x2a8523=!![]){const _0x107a57=_0x58347f,_0x213ea2={'AvhVd':function(_0xcfab58,_0x30d3ee,_0x2baf55){return _0xcfab58(_0x30d3ee,_0x2baf55);},'xpVjD':_0x107a57(0x186),'PEDiq':'INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','gAJRv':function(_0x3fdae4,_0xc8b41e){return _0x3fdae4(_0xc8b41e);}},_0x4409f0=await this[_0x107a57(0x118)](_0x28aaf3[_0x107a57(0x145)]);if(_0x4409f0){if(_0x2a8523)this[_0x107a57(0x19c)](_0x28aaf3)[_0x107a57(0x194)]();return _0x4409f0['id'];}const _0x391b03=this['db'][_0x107a57(0x159)](_0x213ea2[_0x107a57(0x171)]),_0x43c036=++this[_0x107a57(0x120)];return _0x28aaf3['id']=_0x43c036,_0x213ea2[_0x107a57(0x1a8)](logDebug,_0x107a57(0x168)+_0x28aaf3[_0x107a57(0x145)]+_0x107a57(0x153)+_0x28aaf3['id']),this[_0x107a57(0x13f)][_0x107a57(0x164)](_0x43c036,_0x28aaf3),this[_0x107a57(0x13f)][_0x107a57(0x164)](_0x28aaf3[_0x107a57(0x145)],_0x28aaf3),_0x391b03[_0x107a57(0x11f)](this[_0x107a57(0x120)],_0x28aaf3[_0x107a57(0x145)],_0x28aaf3['msgSeq'][_0x107a57(0x18a)](),_0x28aaf3['peerUid'],_0x28aaf3[_0x107a57(0x1a2)],_0x104169=>{const _0xf4d37=_0x107a57,_0x4ff5b3={'WQtkT':function(_0x296a16,_0x1105ce,_0x528303){const _0x25c32b=_0x40fc;return _0x213ea2[_0x25c32b(0x12d)](_0x296a16,_0x1105ce,_0x528303);}};_0x104169&&(_0x104169[_0xf4d37(0x128)]===0x13?this[_0xf4d37(0x118)](_0x28aaf3[_0xf4d37(0x145)])['then'](_0x214ceb=>{const _0x8dfed8=_0xf4d37;_0x214ceb?(this[_0x8dfed8(0x13f)]['set'](_0x43c036,_0x214ceb),this[_0x8dfed8(0x13f)][_0x8dfed8(0x164)](_0x214ceb['msgId'],_0x214ceb)):_0x4ff5b3['WQtkT'](logError,_0x8dfed8(0x19f),_0x104169);})['catch'](_0x50e0d6=>logError(_0xf4d37(0x197),_0x50e0d6)):logError(_0x213ea2[_0xf4d37(0x173)],_0x104169));}),_0x43c036;}async[_0x58347f(0x19c)](_0x1c06bc){const _0x35d202=_0x58347f,_0x2d6e41={'LQsUV':function(_0xb1d2f4,_0x9726a6,_0x1bd4bb){return _0xb1d2f4(_0x9726a6,_0x1bd4bb);},'VbFXj':_0x35d202(0x160)},_0x45e139=this[_0x35d202(0x13f)]['get'](_0x1c06bc[_0x35d202(0x145)]);_0x45e139&&Object[_0x35d202(0x132)](_0x45e139,_0x1c06bc);logDebug(_0x35d202(0x16c)+_0x1c06bc['id']+_0x35d202(0x183)+_0x1c06bc[_0x35d202(0x13a)]+_0x35d202(0x147)+_0x1c06bc['msgId']);const _0x420ab2=this['db'][_0x35d202(0x159)](_0x35d202(0x125));_0x420ab2[_0x35d202(0x11f)](_0x1c06bc[_0x35d202(0x13a)],_0x1c06bc[_0x35d202(0x145)],_0x75c645=>{const _0xb45f22=_0x35d202;_0x75c645&&_0x2d6e41[_0xb45f22(0x169)](logError,_0x2d6e41[_0xb45f22(0x16e)],_0x75c645);});}async[_0x58347f(0x1a0)](_0x3ced59){const _0x1e2fc0=_0x58347f,_0x36e029={'HsmOi':function(_0x5852c9,_0x3537c5){return _0x5852c9(_0x3537c5);},'KGmWN':_0x1e2fc0(0x14e)},_0x59850a=this['db'][_0x1e2fc0(0x159)](_0x36e029['KGmWN']);return new Promise((_0x1013dc,_0x4491fd)=>{const _0x66d760=_0x1e2fc0,_0x5864ef={'ZvNeK':function(_0x852e0d,_0x194a97){const _0x534238=_0x40fc;return _0x36e029[_0x534238(0x196)](_0x852e0d,_0x194a97);}};_0x59850a[_0x66d760(0x11f)](_0x3ced59[_0x66d760(0x124)],_0x3ced59['path'],_0x3ced59[_0x66d760(0x11b)],_0x3ced59[_0x66d760(0x123)],_0x3ced59[_0x66d760(0x149)],_0x3ced59['elementType'],JSON[_0x66d760(0x13d)](_0x3ced59['element']),_0x3ced59[_0x66d760(0x18e)],_0x3ced59['msgId'],function(_0x37f7c7){const _0x38595a=_0x66d760;_0x37f7c7&&(logError(_0x38595a(0x19e),_0x37f7c7),_0x5864ef[_0x38595a(0x135)](_0x4491fd,_0x37f7c7)),_0x5864ef[_0x38595a(0x135)](_0x1013dc,null);});});}async[_0x58347f(0x195)](_0x244fcb,_0x2d8cb7){const _0x5d0016=_0x58347f,_0x12c882={'dxGvK':function(_0x587710,_0x2209c4,_0x226787){return _0x587710(_0x2209c4,_0x226787);},'Gnbsd':_0x5d0016(0x16b),'gTHkw':function(_0x44103b,_0x30d836){return _0x44103b(_0x30d836);},'aQMXw':function(_0x1dd62a,_0x4850c2){return _0x1dd62a(_0x4850c2);}},_0x53629e=this['db']['prepare'](_0x244fcb);return new Promise((_0x206eda,_0x2e0a86)=>{const _0x13b0c1=_0x5d0016;_0x53629e[_0x13b0c1(0x198)](..._0x2d8cb7,(_0x1c0243,_0x38950c)=>{const _0x47b448=_0x13b0c1;_0x1c0243&&(_0x12c882[_0x47b448(0x15a)](logError,_0x12c882[_0x47b448(0x1a7)],_0x1c0243),_0x12c882['gTHkw'](_0x2e0a86,_0x1c0243)),_0x38950c&&(_0x38950c[_0x47b448(0x165)]=JSON[_0x47b448(0x11a)](_0x38950c[_0x47b448(0x165)])),_0x12c882[_0x47b448(0x12e)](_0x206eda,_0x38950c);});});}async[_0x58347f(0x19b)](_0x300321){const _0x2beafa=_0x58347f,_0x9f4ffe={'hppRb':_0x2beafa(0x14d)};return this['getFileCache'](_0x9f4ffe['hppRb'],[_0x300321]);}async[_0x58347f(0x133)](_0x3dbc33){const _0x539a6e=_0x58347f,_0x1b06c4={'TIdpw':_0x539a6e(0x158)};return this[_0x539a6e(0x195)](_0x1b06c4[_0x539a6e(0x117)],[_0x3dbc33]);}async[_0x58347f(0x172)](_0x1f4b2a){const _0x4a2593=_0x58347f,_0xd56768={'ZNEUf':function(_0x4505f8,_0x5d9c15,_0x36a73b){return _0x4505f8(_0x5d9c15,_0x36a73b);},'qWOFe':'UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?'},_0x8ef6f6=this['db']['prepare'](_0xd56768[_0x4a2593(0x136)]);return new Promise((_0x140885,_0x1364ad)=>{const _0x5acb41=_0x4a2593,_0x23ba2f={'DzHJo':function(_0x1a2ea8,_0x2a546e,_0x5d4451){const _0x32a977=_0x40fc;return _0xd56768[_0x32a977(0x14b)](_0x1a2ea8,_0x2a546e,_0x5d4451);},'fBdbW':_0x5acb41(0x119),'ZvCRl':function(_0x23210d,_0x4af58e){return _0x23210d(_0x4af58e);}};_0x8ef6f6['run'](_0x1f4b2a['path'],_0x1f4b2a[_0x5acb41(0x11b)],_0x1f4b2a['uuid'],function(_0x197bf7){const _0x135de5=_0x5acb41;_0x197bf7&&(_0x23ba2f[_0x135de5(0x150)](logError,_0x23ba2f['fBdbW'],_0x197bf7),_0x23ba2f[_0x135de5(0x143)](_0x1364ad,_0x197bf7)),_0x140885(null);});});}async['getReceivedTempUinMap'](){const _0x4be532=_0x58347f,_0x5ab8ce={'oXKWJ':function(_0x2056b5,_0x2b7d8b,_0x2245d4){return _0x2056b5(_0x2b7d8b,_0x2245d4);},'mebSI':function(_0x1c50da,_0x36eb6e){return _0x1c50da(_0x36eb6e);},'JPwtf':_0x4be532(0x17b)},_0x30cd79=_0x5ab8ce[_0x4be532(0x137)];return new Promise((_0x1ca658,_0x19916a)=>{const _0x251362=_0x4be532,_0x5b315c={'qrygi':function(_0x1beab8,_0x44f10b,_0x31a30e){const _0x586b03=_0x40fc;return _0x5ab8ce[_0x586b03(0x15f)](_0x1beab8,_0x44f10b,_0x31a30e);},'igapG':function(_0x369112,_0x44df52){const _0x513e30=_0x40fc;return _0x5ab8ce[_0x513e30(0x178)](_0x369112,_0x44df52);}};this['db'][_0x251362(0x131)](_0x30cd79,(_0x5da9e9,_0x564950)=>{const _0x1fe1a5=_0x251362;_0x5da9e9&&(_0x5b315c['qrygi'](logError,_0x1fe1a5(0x191),_0x5da9e9),_0x5b315c[_0x1fe1a5(0x175)](_0x19916a,_0x5da9e9));const _0x3d1b0b={};_0x564950[_0x1fe1a5(0x18f)](_0x3d27da=>{const _0xc923ad=_0x1fe1a5;_0x3d1b0b[_0x3d27da[_0xc923ad(0x19d)]]=_0x3d27da[_0xc923ad(0x13e)];}),_0x5b315c[_0x1fe1a5(0x175)](_0x1ca658,_0x3d1b0b);});});}async[_0x58347f(0x11c)](_0x284b20){const _0x1c640b=_0x58347f,_0x9ef893={'gGagT':_0x1c640b(0x191),'AjCWs':_0x1c640b(0x14f)},_0x496124=_0x9ef893[_0x1c640b(0x1ad)];return new Promise((_0x10f5f8,_0x6dd400)=>{const _0x217450=_0x1c640b;this['db'][_0x217450(0x198)](_0x496124,[_0x284b20],(_0x162c33,_0x41906d)=>{const _0x5b821d=_0x217450;_0x162c33&&(logError(_0x9ef893[_0x5b821d(0x192)],_0x162c33),_0x6dd400(_0x162c33)),_0x10f5f8(_0x41906d?.['uid']);});});}async[_0x58347f(0x127)](_0x205f9a,_0x227fc6){const _0x4d999=_0x58347f,_0x5e2bff={'iCyxg':function(_0x2760be,_0x4c0520,_0x56073c){return _0x2760be(_0x4c0520,_0x56073c);},'cBggO':function(_0x31fc4a,_0x162e1e){return _0x31fc4a(_0x162e1e);},'iCluc':_0x4d999(0x14c)},_0x454ab8=await this[_0x4d999(0x11c)](_0x205f9a);if(!_0x454ab8){const _0x42b918=this['db'][_0x4d999(0x159)](_0x5e2bff[_0x4d999(0x193)]);return new Promise((_0x271588,_0x495417)=>{const _0x43c7f9=_0x4d999,_0x3b1fef={'kWIXA':function(_0x6651e9,_0x609417,_0x271987){const _0x333e8d=_0x40fc;return _0x5e2bff[_0x333e8d(0x167)](_0x6651e9,_0x609417,_0x271987);},'WAWIO':function(_0x3a9c55,_0x10236c){const _0x4b2566=_0x40fc;return _0x5e2bff[_0x4b2566(0x15b)](_0x3a9c55,_0x10236c);}};_0x42b918[_0x43c7f9(0x11f)](_0x205f9a,_0x227fc6,function(_0x4dc4c3){const _0x18f588=_0x43c7f9;_0x4dc4c3&&(_0x3b1fef[_0x18f588(0x16d)](logError,_0x18f588(0x1a9),_0x4dc4c3),_0x3b1fef['WAWIO'](_0x495417,_0x4dc4c3)),_0x3b1fef[_0x18f588(0x162)](_0x271588,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index 1331a4848..730dad39f 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -const _0x247ba7=_0x4a22;function _0x4a22(_0x2e2b4c,_0x5d7321){const _0x2bf18d=_0x2bf1();return _0x4a22=function(_0x4a22fd,_0x286373){_0x4a22fd=_0x4a22fd-0x1ca;let _0x36c7e3=_0x2bf18d[_0x4a22fd];return _0x36c7e3;},_0x4a22(_0x2e2b4c,_0x5d7321);}(function(_0x697c4b,_0xe64b85){const _0x2c66e3=_0x4a22,_0xe8aeb8=_0x697c4b();while(!![]){try{const _0x2d6fb2=-parseInt(_0x2c66e3(0x1da))/0x1*(-parseInt(_0x2c66e3(0x1dc))/0x2)+parseInt(_0x2c66e3(0x1ce))/0x3*(-parseInt(_0x2c66e3(0x1e1))/0x4)+-parseInt(_0x2c66e3(0x1ca))/0x5*(parseInt(_0x2c66e3(0x1d7))/0x6)+-parseInt(_0x2c66e3(0x1db))/0x7+parseInt(_0x2c66e3(0x1d3))/0x8*(-parseInt(_0x2c66e3(0x1cd))/0x9)+-parseInt(_0x2c66e3(0x1d0))/0xa*(-parseInt(_0x2c66e3(0x1d2))/0xb)+parseInt(_0x2c66e3(0x1d5))/0xc;if(_0x2d6fb2===_0xe64b85)break;else _0xe8aeb8['push'](_0xe8aeb8['shift']());}catch(_0x420f06){_0xe8aeb8['push'](_0xe8aeb8['shift']());}}}(_0x2bf1,0x21ce0));function _0x2bf1(){const _0xff4f96=['HttpGetJson','5ViDUVj','MRNME','getRkey','131589Uwqfyr','6EtnpbJ','nDSbn','10EwIMPZ','getTime','922977NwDEhO','24LEdQoZ','GET','2025780zuUnzM','rkeyData','952944FxRvxi','refreshRkey','euaZO','34519PLLKuZ','551026SqfpFH','14zeLpIJ','serverUrl','UNrnR','isExpired','获取rkey失败','148972kBbuPZ'];_0x2bf1=function(){return _0xff4f96;};return _0x2bf1();}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x247ba7(0x1dd)]='';[_0x247ba7(0x1d6)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2b8cd7){const _0x1f11e6=_0x247ba7;this[_0x1f11e6(0x1dd)]=_0x2b8cd7;}async[_0x247ba7(0x1cc)](){const _0x24d137=_0x247ba7,_0x1687b9={'UNrnR':function(_0x28b4e7,_0x3ce4ef,_0x46b1ab){return _0x28b4e7(_0x3ce4ef,_0x46b1ab);}};if(this[_0x24d137(0x1df)]())try{await this[_0x24d137(0x1d8)]();}catch(_0x351167){_0x1687b9[_0x24d137(0x1de)](logError,_0x24d137(0x1e0),_0x351167);}return this[_0x24d137(0x1d6)];}[_0x247ba7(0x1df)](){const _0x5ec549=_0x247ba7,_0x2811f0={'nDSbn':function(_0x37bf28,_0x35ad1b){return _0x37bf28/_0x35ad1b;},'MRNME':function(_0x2d5b52,_0x57b77b){return _0x2d5b52>_0x57b77b;}},_0x1322c5=_0x2811f0[_0x5ec549(0x1cf)](new Date()[_0x5ec549(0x1d1)](),0x3e8);return _0x2811f0[_0x5ec549(0x1cb)](_0x1322c5,this[_0x5ec549(0x1d6)]['expired_time']);}async[_0x247ba7(0x1d8)](){const _0x2d38ad=_0x247ba7,_0x4e7486={'euaZO':_0x2d38ad(0x1d4)};this['rkeyData']=await RequestUtil[_0x2d38ad(0x1e2)](this[_0x2d38ad(0x1dd)],_0x4e7486[_0x2d38ad(0x1d9)]);}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey'); \ No newline at end of file +const _0x2a4f1c=_0x4a9e;(function(_0x4e3e4b,_0xd41216){const _0x24d712=_0x4a9e,_0xe86dde=_0x4e3e4b();while(!![]){try{const _0x53b746=-parseInt(_0x24d712(0x18d))/0x1+parseInt(_0x24d712(0x181))/0x2+-parseInt(_0x24d712(0x182))/0x3*(-parseInt(_0x24d712(0x18b))/0x4)+-parseInt(_0x24d712(0x17e))/0x5*(-parseInt(_0x24d712(0x186))/0x6)+-parseInt(_0x24d712(0x183))/0x7+parseInt(_0x24d712(0x17a))/0x8*(parseInt(_0x24d712(0x17f))/0x9)+-parseInt(_0x24d712(0x184))/0xa;if(_0x53b746===_0xd41216)break;else _0xe86dde['push'](_0xe86dde['shift']());}catch(_0x1e13c2){_0xe86dde['push'](_0xe86dde['shift']());}}}(_0x187f,0x7ef8c));function _0x187f(){const _0x536278=['获取rkey失败','HttpGetJson','55XmZZcG','18sHZIsE','nFQbS','1515188ErwCng','9KXpusz','1560062TEVIJa','4126400qSZceh','http://napcat-sign.wumiao.wang:2082/rkey','187806MBCXWr','UrxXW','expired_time','serverUrl','GET','1029892DkvFDC','refreshRkey','1033904KHUExX','sIHFi','isExpired','1260648FlrOVJ','rkeyData'];_0x187f=function(){return _0x536278;};return _0x187f();}function _0x4a9e(_0x3b39e2,_0x2d3455){const _0x187f25=_0x187f();return _0x4a9e=function(_0x4a9e4f,_0x3331ee){_0x4a9e4f=_0x4a9e4f-0x17a;let _0x3ae00c=_0x187f25[_0x4a9e4f];return _0x3ae00c;},_0x4a9e(_0x3b39e2,_0x2d3455);}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x2a4f1c(0x189)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x5babe1){this['serverUrl']=_0x5babe1;}async['getRkey'](){const _0x13b761=_0x2a4f1c,_0x6dbe10={'nFQbS':_0x13b761(0x17c)};if(this[_0x13b761(0x18f)]())try{await this[_0x13b761(0x18c)]();}catch(_0x44e80e){logError(_0x6dbe10[_0x13b761(0x180)],_0x44e80e);}return this[_0x13b761(0x17b)];}[_0x2a4f1c(0x18f)](){const _0x4ed20b=_0x2a4f1c,_0x1c45ff={'sIHFi':function(_0xb7116b,_0x1a3600){return _0xb7116b/_0x1a3600;},'UrxXW':function(_0x591e52,_0x5d2fdc){return _0x591e52>_0x5d2fdc;}},_0x1fc41f=_0x1c45ff[_0x4ed20b(0x18e)](new Date()['getTime'](),0x3e8);return _0x1c45ff[_0x4ed20b(0x187)](_0x1fc41f,this[_0x4ed20b(0x17b)][_0x4ed20b(0x188)]);}async[_0x2a4f1c(0x18c)](){const _0x135896=_0x2a4f1c;this[_0x135896(0x17b)]=await RequestUtil[_0x135896(0x17d)](this[_0x135896(0x189)],_0x135896(0x18a));}}export const rkeyManager=new RkeyManager(_0x2a4f1c(0x185)); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index cda6ebe72..54b85ad1e 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -function _0x496d(){const _0x2b1dbe=['650736tQyaUv','130WCglSR','6015625xpwanx','27530zwUSxW','12ZzdaiL','71661ZMZIgK','curVersion','966jFBwNA','dirname','resources/app/versions/','5656456liZFWy','945458KXMxrc','execPath','join','/wrapper.node','1tIaFqa','./resources/app/wrapper.node','4533562SCOIpD','104UTRilT'];_0x496d=function(){return _0x2b1dbe;};return _0x496d();}const _0x4a0a75=_0x5a4c;(function(_0x1419f9,_0x5395a9){const _0x3bfc82=_0x5a4c,_0x15ad26=_0x1419f9();while(!![]){try{const _0x170a87=parseInt(_0x3bfc82(0x7a))/0x1*(parseInt(_0x3bfc82(0x76))/0x2)+-parseInt(_0x3bfc82(0x70))/0x3*(parseInt(_0x3bfc82(0x7d))/0x4)+-parseInt(_0x3bfc82(0x6e))/0x5*(-parseInt(_0x3bfc82(0x72))/0x6)+-parseInt(_0x3bfc82(0x6d))/0x7+-parseInt(_0x3bfc82(0x75))/0x8+parseInt(_0x3bfc82(0x6b))/0x9*(parseInt(_0x3bfc82(0x6c))/0xa)+parseInt(_0x3bfc82(0x7c))/0xb*(parseInt(_0x3bfc82(0x6f))/0xc);if(_0x170a87===_0x5395a9)break;else _0x15ad26['push'](_0x15ad26['shift']());}catch(_0x5a4cdd){_0x15ad26['push'](_0x15ad26['shift']());}}}(_0x496d,0x7fe13));import _0x50b1c6 from'node:path';import _0x13dd8e from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x50b1c6['resolve'](_0x50b1c6['dirname'](process[_0x4a0a75(0x77)]),_0x4a0a75(0x7b));function _0x5a4c(_0x6681fc,_0x2181e6){const _0x496def=_0x496d();return _0x5a4c=function(_0x5a4ce8,_0x2e1e3b){_0x5a4ce8=_0x5a4ce8-0x6b;let _0x8a6010=_0x496def[_0x5a4ce8];return _0x8a6010;},_0x5a4c(_0x6681fc,_0x2181e6);}!_0x13dd8e['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x50b1c6[_0x4a0a75(0x78)](_0x50b1c6[_0x4a0a75(0x73)](process[_0x4a0a75(0x77)]),_0x4a0a75(0x74)+qqVersionConfigInfo[_0x4a0a75(0x71)]+_0x4a0a75(0x79)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x4d56a5=_0x3c6f;(function(_0x1e357e,_0x232e2b){const _0x1358d6=_0x3c6f,_0x24b0de=_0x1e357e();while(!![]){try{const _0x45dbff=-parseInt(_0x1358d6(0x1c6))/0x1+parseInt(_0x1358d6(0x1d0))/0x2*(parseInt(_0x1358d6(0x1d1))/0x3)+-parseInt(_0x1358d6(0x1ce))/0x4+parseInt(_0x1358d6(0x1cb))/0x5+-parseInt(_0x1358d6(0x1cd))/0x6+-parseInt(_0x1358d6(0x1c8))/0x7+parseInt(_0x1358d6(0x1d2))/0x8;if(_0x45dbff===_0x232e2b)break;else _0x24b0de['push'](_0x24b0de['shift']());}catch(_0x3814b8){_0x24b0de['push'](_0x24b0de['shift']());}}}(_0x8b6a,0x913a5));import _0x5ebf88 from'node:path';import _0x46c019 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x5ebf88['resolve'](_0x5ebf88[_0x4d56a5(0x1ca)](process[_0x4d56a5(0x1cf)]),'./resources/app/wrapper.node');!_0x46c019['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x5ebf88[_0x4d56a5(0x1cc)](_0x5ebf88[_0x4d56a5(0x1ca)](process[_0x4d56a5(0x1cf)]),_0x4d56a5(0x1c7)+qqVersionConfigInfo['curVersion']+_0x4d56a5(0x1c9)));function _0x8b6a(){const _0x519b36=['4204620lpiUMy','join','2033538GcyZPP','4470988vNmyem','execPath','12944YHMZkJ','432xzvDJr','15174824mzlVIn','477458KVmZOh','resources/app/versions/','7985348usLlmT','/wrapper.node','dirname'];_0x8b6a=function(){return _0x519b36;};return _0x8b6a();}function _0x3c6f(_0x394e8f,_0x2dd78b){const _0x8b6ac6=_0x8b6a();return _0x3c6f=function(_0x3c6fda,_0x142864){_0x3c6fda=_0x3c6fda-0x1c6;let _0x2be672=_0x8b6ac6[_0x3c6fda];return _0x2be672;},_0x3c6f(_0x394e8f,_0x2dd78b);}const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/server/postOB11Event.ts b/src/onebot11/server/postOB11Event.ts index 58a13515f..3c2acd22b 100644 --- a/src/onebot11/server/postOB11Event.ts +++ b/src/onebot11/server/postOB11Event.ts @@ -7,13 +7,14 @@ import { log, logDebug, logError } from '@/common/utils/log'; import { ob11Config } from '@/onebot11/config'; import crypto from 'crypto'; import { ChatType, Group, GroupRequestOperateTypes, Peer } from '@/core/entities'; -import { convertMessage2List, createSendElements, sendMsg } from '../action/msg/SendMsg'; +import { convertMessage2List, sendMsg } from '../action/msg/SendMsg'; import { OB11FriendRequestEvent } from '../event/request/OB11FriendRequest'; import { OB11GroupRequestEvent } from '../event/request/OB11GroupRequest'; import { isNull } from '@/common/utils/helper'; import { dbUtil } from '@/core/utils/db'; import { friendRequests, getGroup, groupNotifies, selfInfo } from '@/core/data'; import { NTQQFriendApi, NTQQGroupApi, NTQQMsgApi } from '@/core/apis'; +import createSendElements from '../action/msg/SendMsg/create-send-elements'; export type PostEventType = OB11Message | OB11BaseMetaEvent | OB11BaseNoticeEvent