Files
NapCatQQ/src/core.lib/src/data.js
T

1 line
4.3 KiB
JavaScript

const _0x342c92=_0x42ec;(function(_0x5ad2f5,_0x2a5bc7){const _0x3abb9f=_0x42ec,_0x325515=_0x5ad2f5();while(!![]){try{const _0x228d95=-parseInt(_0x3abb9f(0x1f1))/0x1+-parseInt(_0x3abb9f(0x1e4))/0x2*(-parseInt(_0x3abb9f(0x1ef))/0x3)+-parseInt(_0x3abb9f(0x1f0))/0x4*(parseInt(_0x3abb9f(0x1e1))/0x5)+parseInt(_0x3abb9f(0x1df))/0x6*(-parseInt(_0x3abb9f(0x1dd))/0x7)+parseInt(_0x3abb9f(0x1e5))/0x8+-parseInt(_0x3abb9f(0x1d9))/0x9*(-parseInt(_0x3abb9f(0x1f2))/0xa)+-parseInt(_0x3abb9f(0x1e3))/0xb;if(_0x228d95===_0x2a5bc7)break;else _0x325515['push'](_0x325515['shift']());}catch(_0xa7ac6a){_0x325515['push'](_0x325515['shift']());}}}(_0x4fac,0x4f5c2));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';function _0x42ec(_0x2a2762,_0x823fd7){const _0x4fac1c=_0x4fac();return _0x42ec=function(_0x42ec96,_0x182ba5){_0x42ec96=_0x42ec96-0x1d9;let _0x14757b=_0x4fac1c[_0x42ec96];return _0x14757b;},_0x42ec(_0x2a2762,_0x823fd7);}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(_0x50c10d){const _0x136603=_0x42ec;groups[_0x136603(0x1e0)](_0x50c10d),groupMembers[_0x136603(0x1e0)](_0x50c10d);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x342c92(0x1e9)};export async function getFriend(_0x133db0){const _0x161ddc=_0x342c92,_0x1c9265={'DWbAV':function(_0x155e6e,_0x27f52e){return _0x155e6e(_0x27f52e);}};_0x133db0=_0x133db0['toString']();if(_0x1c9265['DWbAV'](isNumeric,_0x133db0)){const _0x2d6ed8=Array[_0x161ddc(0x1db)](friends[_0x161ddc(0x1e2)]());return _0x2d6ed8[_0x161ddc(0x1ec)](_0x2ae97c=>_0x2ae97c[_0x161ddc(0x1da)]===_0x133db0);}else return friends[_0x161ddc(0x1ed)](_0x133db0);}export async function getGroup(_0xa74143){const _0x626808=_0x342c92;let _0x3b365e=groups[_0x626808(0x1ed)](_0xa74143[_0x626808(0x1e7)]());if(!_0x3b365e)try{const _0x1e3667=await NTQQGroupApi[_0x626808(0x1ee)]();_0x1e3667[_0x626808(0x1e6)]&&_0x1e3667['forEach'](_0x5a7def=>{const _0x5d55ba=_0x626808;groups[_0x5d55ba(0x1eb)](_0x5a7def['groupCode'],_0x5a7def);});}catch(_0x137f15){return undefined;}return _0x3b365e=groups[_0x626808(0x1ed)](_0xa74143['toString']()),_0x3b365e;}export async function getGroupMember(_0x55d333,_0x37c06e){const _0x39eb41=_0x342c92,_0x2dcafd={'mIfBY':function(_0x3cfeab,_0x36429a){return _0x3cfeab(_0x36429a);},'BsvpF':function(_0x36865f){return _0x36865f();}};_0x55d333=_0x55d333[_0x39eb41(0x1e7)](),_0x37c06e=_0x37c06e[_0x39eb41(0x1e7)]();let _0x4eb044=groupMembers['get'](_0x55d333);if(!_0x4eb044)try{_0x4eb044=await NTQQGroupApi[_0x39eb41(0x1dc)](_0x55d333),groupMembers['set'](_0x55d333,_0x4eb044);}catch(_0x96fdc2){return null;}const _0x55899f=()=>{const _0x936464=_0x39eb41;let _0x5eb8f5=undefined;return _0x2dcafd[_0x936464(0x1e8)](isNumeric,_0x37c06e)?_0x5eb8f5=Array[_0x936464(0x1db)](_0x4eb044['values']())[_0x936464(0x1ec)](_0x48ee56=>_0x48ee56[_0x936464(0x1da)]===_0x37c06e):_0x5eb8f5=_0x4eb044[_0x936464(0x1ed)](_0x37c06e),_0x5eb8f5;};let _0x2c1c06=_0x2dcafd[_0x39eb41(0x1ea)](_0x55899f);return!_0x2c1c06&&(_0x4eb044=await NTQQGroupApi[_0x39eb41(0x1dc)](_0x55d333),_0x2c1c06=_0x55899f()),_0x2c1c06;}export const uid2UinMap={};export function getUidByUin(_0x15488f){const _0x5f27f0=_0x342c92,_0x126fd0={'ZPUnu':function(_0x1d4000,_0x30d109){return _0x1d4000===_0x30d109;}};for(const _0x3e1c25 in uid2UinMap){if(_0x126fd0[_0x5f27f0(0x1de)](uid2UinMap[_0x3e1c25],_0x15488f))return _0x3e1c25;}}export const tempGroupCodeMap={};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};function _0x4fac(){const _0x487f82=['delete','15230ihXjND','values','2838143uIxxCd','10MkRRKW','2844816UrtMRo','length','toString','mIfBY','NapCat未能正常启动,请检查日志查看错误','BsvpF','set','find','get','getGroups','152169nlrShv','344yAwjBF','127648uULtAP','5819430viURzJ','9EKyRKE','uin','from','getGroupMembers','41335nFKNzz','ZPUnu','222SFKXTn'];_0x4fac=function(){return _0x487f82;};return _0x4fac();}