diff --git a/src/common/utils/cpmodule.ts b/src/common/utils/cpmodule.ts new file mode 100644 index 00000000..42cf6d26 --- /dev/null +++ b/src/common/utils/cpmodule.ts @@ -0,0 +1,19 @@ +import * as os from 'os'; +import path from 'node:path'; +import fs from 'fs'; + +export function getModuleWithArchName(moduleName: string) { + const systemPlatform = os.platform; + const cpuArch = os.arch; + return `${moduleName}-${systemPlatform}-${cpuArch}.node`; +} + +export function cpModule(moduleName: string) { + const currentDir = path.resolve(__dirname); + const fileName = `./${getModuleWithArchName(moduleName)}`; + try { + fs.copyFileSync(path.join(currentDir, fileName), path.join(currentDir, `${moduleName}.node`)); + } catch (e) { + + } +} diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 33d29062..09104258 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x11ff45=_0x43f8;(function(_0xbff971,_0x22129c){var _0x2dac99=_0x43f8,_0x31a31b=_0xbff971();while(!![]){try{var _0x4ff8a0=-parseInt(_0x2dac99(0x1a3))/0x1*(-parseInt(_0x2dac99(0x1a9))/0x2)+-parseInt(_0x2dac99(0x1aa))/0x3+-parseInt(_0x2dac99(0x1ac))/0x4+parseInt(_0x2dac99(0x1ab))/0x5+-parseInt(_0x2dac99(0x1a7))/0x6*(parseInt(_0x2dac99(0x1a8))/0x7)+parseInt(_0x2dac99(0x1a4))/0x8+parseInt(_0x2dac99(0x1ad))/0x9*(parseInt(_0x2dac99(0x1a6))/0xa);if(_0x4ff8a0===_0x22129c)break;else _0x31a31b['push'](_0x31a31b['shift']());}catch(_0x3609cb){_0x31a31b['push'](_0x31a31b['shift']());}}}(_0x4729,0x8cc2f));function _0x4729(){var _0x1f2f39=['767208LytSbJ','4504420cneFRC','524428yInWsx','1503WUQpzA','getGroupCode','1VCqzbr','2968648aSpoZl','onMSFStatusChange','17770uUuGwr','456DtCGfF','78127qsSoMu','485828gftNIE'];_0x4729=function(){return _0x1f2f39;};return _0x4729();}function _0x43f8(_0x516fac,_0xe66944){var _0x4729b0=_0x4729();return _0x43f8=function(_0x43f863,_0x574a3c){_0x43f863=_0x43f863-0x1a3;var _0x4ef781=_0x4729b0[_0x43f863];return _0x4ef781;},_0x43f8(_0x516fac,_0xe66944);}export class DependsAdapter{[_0x11ff45(0x1a5)](_0xe3de20){}['onMSFSsoError'](_0x25d6d6){}[_0x11ff45(0x1ae)](_0x363139){}} \ No newline at end of file +function _0x31f8(_0x56d33e,_0x24f970){var _0x296736=_0x2967();return _0x31f8=function(_0x31f824,_0x522cb7){_0x31f824=_0x31f824-0x1a5;var _0x2c6d2d=_0x296736[_0x31f824];return _0x2c6d2d;},_0x31f8(_0x56d33e,_0x24f970);}var _0x5d0365=_0x31f8;(function(_0x1d76c2,_0xb50adc){var _0x41c2e1=_0x31f8,_0xec6c30=_0x1d76c2();while(!![]){try{var _0x2f233e=parseInt(_0x41c2e1(0x1a8))/0x1+parseInt(_0x41c2e1(0x1ad))/0x2*(-parseInt(_0x41c2e1(0x1a9))/0x3)+-parseInt(_0x41c2e1(0x1a5))/0x4+-parseInt(_0x41c2e1(0x1ab))/0x5*(-parseInt(_0x41c2e1(0x1a6))/0x6)+parseInt(_0x41c2e1(0x1ac))/0x7+-parseInt(_0x41c2e1(0x1a7))/0x8+-parseInt(_0x41c2e1(0x1ae))/0x9;if(_0x2f233e===_0xb50adc)break;else _0xec6c30['push'](_0xec6c30['shift']());}catch(_0x3a8c5f){_0xec6c30['push'](_0xec6c30['shift']());}}}(_0x2967,0x33cf8));function _0x2967(){var _0x1b1424=['10152rmAHsG','1637595TzSNYd','84408uWOtrw','499332qTxOFZ','365384rQVbgS','342026oGNjal','237FQCiOv','getGroupCode','20VfygYE','1309252xPulxt'];_0x2967=function(){return _0x1b1424;};return _0x2967();}export class DependsAdapter{['onMSFStatusChange'](_0x41508e){}['onMSFSsoError'](_0x3a802b){}[_0x5d0365(0x1aa)](_0x21e5ce){}} \ 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 a3165483..67a06743 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x512b23=_0x4cfd;(function(_0x2f7546,_0x574023){var _0xc287df=_0x4cfd,_0x2455fb=_0x2f7546();while(!![]){try{var _0x437ad6=-parseInt(_0xc287df(0x1ef))/0x1+parseInt(_0xc287df(0x1f0))/0x2+-parseInt(_0xc287df(0x1f2))/0x3*(parseInt(_0xc287df(0x1ec))/0x4)+parseInt(_0xc287df(0x1ee))/0x5*(parseInt(_0xc287df(0x1f1))/0x6)+parseInt(_0xc287df(0x1f3))/0x7+parseInt(_0xc287df(0x1ed))/0x8+parseInt(_0xc287df(0x1eb))/0x9;if(_0x437ad6===_0x574023)break;else _0x2455fb['push'](_0x2455fb['shift']());}catch(_0x37a1a0){_0x2455fb['push'](_0x2455fb['shift']());}}}(_0x1e18,0x3790d));function _0x4cfd(_0x3d0a6e,_0x4ddb8f){var _0x1e18d9=_0x1e18();return _0x4cfd=function(_0x4cfdf5,_0x999cae){_0x4cfdf5=_0x4cfdf5-0x1eb;var _0x313f06=_0x1e18d9[_0x4cfdf5];return _0x313f06;},_0x4cfd(_0x3d0a6e,_0x4ddb8f);}export class DispatcherAdapter{[_0x512b23(0x1f4)](_0x3e7ad7){}['dispatchCall'](_0x236ffe){}['dispatchCallWithJson'](_0x581f05){}}function _0x1e18(){var _0x3dd7d7=['118405ghmVAF','dispatchRequest','2624670kuBPvl','315548SHexGt','347024RlUqry','5qHtiVW','130005QvhIeM','115328onEJKt','161412ZcaRfZ','3sIhqFF'];_0x1e18=function(){return _0x3dd7d7;};return _0x1e18();} \ No newline at end of file +var _0x2e9906=_0x435f;function _0x435f(_0x3b08bd,_0x52b37a){var _0x27da5c=_0x27da();return _0x435f=function(_0x435f05,_0x4d2ff3){_0x435f05=_0x435f05-0x1c9;var _0x44b58c=_0x27da5c[_0x435f05];return _0x44b58c;},_0x435f(_0x3b08bd,_0x52b37a);}function _0x27da(){var _0x23adff=['dispatchCall','4385736skUosG','495617WxpOmf','2COHwAP','4068niKkbY','2273068ZRVxLQ','8310fHcBsC','dispatchCallWithJson','3239685RWPaOy','3XQGsec','64792yHKaLw','21vStKwx','12wetkas','10232717zrcnii'];_0x27da=function(){return _0x23adff;};return _0x27da();}(function(_0x4b604d,_0x4c40d1){var _0x104ad5=_0x435f,_0x419e66=_0x4b604d();while(!![]){try{var _0x25191f=-parseInt(_0x104ad5(0x1ca))/0x1*(-parseInt(_0x104ad5(0x1cb))/0x2)+parseInt(_0x104ad5(0x1d1))/0x3*(parseInt(_0x104ad5(0x1cd))/0x4)+parseInt(_0x104ad5(0x1d0))/0x5+-parseInt(_0x104ad5(0x1c9))/0x6+parseInt(_0x104ad5(0x1d3))/0x7*(-parseInt(_0x104ad5(0x1d2))/0x8)+-parseInt(_0x104ad5(0x1cc))/0x9*(-parseInt(_0x104ad5(0x1ce))/0xa)+parseInt(_0x104ad5(0x1d5))/0xb*(-parseInt(_0x104ad5(0x1d4))/0xc);if(_0x25191f===_0x4c40d1)break;else _0x419e66['push'](_0x419e66['shift']());}catch(_0x61c0d5){_0x419e66['push'](_0x419e66['shift']());}}}(_0x27da,0x6220d));export class DispatcherAdapter{['dispatchRequest'](_0x205088){}[_0x2e9906(0x1d6)](_0x191998){}[_0x2e9906(0x1cf)](_0x3e287b){}} \ 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 d7090d3d..6475c19e 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -var _0x1ba250=_0x444e;(function(_0xd62b2d,_0xb35655){var _0x2a65a6=_0x444e,_0x17abc6=_0xd62b2d();while(!![]){try{var _0x40e1a8=-parseInt(_0x2a65a6(0x10c))/0x1*(parseInt(_0x2a65a6(0x10d))/0x2)+-parseInt(_0x2a65a6(0x101))/0x3*(-parseInt(_0x2a65a6(0x10e))/0x4)+parseInt(_0x2a65a6(0x105))/0x5*(-parseInt(_0x2a65a6(0x109))/0x6)+parseInt(_0x2a65a6(0x10a))/0x7*(parseInt(_0x2a65a6(0x108))/0x8)+-parseInt(_0x2a65a6(0x102))/0x9*(-parseInt(_0x2a65a6(0x111))/0xa)+parseInt(_0x2a65a6(0x106))/0xb+-parseInt(_0x2a65a6(0x10b))/0xc*(parseInt(_0x2a65a6(0x107))/0xd);if(_0x40e1a8===_0xb35655)break;else _0x17abc6['push'](_0x17abc6['shift']());}catch(_0x12db0e){_0x17abc6['push'](_0x17abc6['shift']());}}}(_0x2021,0xb95d8));function _0x444e(_0x58f4ab,_0xfc555b){var _0x202134=_0x2021();return _0x444e=function(_0x444e19,_0x45fb65){_0x444e19=_0x444e19-0x100;var _0x248de5=_0x202134[_0x444e19];return _0x248de5;},_0x444e(_0x58f4ab,_0xfc555b);}function _0x2021(){var _0x1160a2=['onInstallFinished','5cgyhFr','12273514Ipfzhz','3237KORppU','94592ixLJMy','4240542dwyMKr','175nejWQE','38148RdVkEb','22955LTkELI','94ItmHCt','2653072gTuece','onUpdateGeneralFlag','onLog','5330PxbIko','fixPicImgType','6ptgdik','10107ScGWKT','onGetSrvCalTime'];_0x2021=function(){return _0x1160a2;};return _0x2021();}export class GlobalAdapter{[_0x1ba250(0x110)](..._0x4d9a8a){}[_0x1ba250(0x103)](..._0x448fe3){}['onShowErrUITips'](..._0x3d1b8b){}[_0x1ba250(0x100)](..._0x25b7f2){}['getAppSetting'](..._0x8b3f5b){}[_0x1ba250(0x104)](..._0x415f74){}[_0x1ba250(0x10f)](..._0x1065c2){}['onGetOfflineMsg'](..._0x41b352){}} \ No newline at end of file +var _0x3c0adc=_0x225c;(function(_0x4cf10b,_0x267d2c){var _0x23e77e=_0x225c,_0xd3616a=_0x4cf10b();while(!![]){try{var _0x89053=parseInt(_0x23e77e(0x188))/0x1+parseInt(_0x23e77e(0x18a))/0x2+-parseInt(_0x23e77e(0x18c))/0x3+parseInt(_0x23e77e(0x184))/0x4+parseInt(_0x23e77e(0x18e))/0x5*(-parseInt(_0x23e77e(0x18d))/0x6)+parseInt(_0x23e77e(0x185))/0x7+parseInt(_0x23e77e(0x187))/0x8;if(_0x89053===_0x267d2c)break;else _0xd3616a['push'](_0xd3616a['shift']());}catch(_0x1c2563){_0xd3616a['push'](_0xd3616a['shift']());}}}(_0x2846,0xd44a3));export class GlobalAdapter{['onLog'](..._0xa54158){}[_0x3c0adc(0x190)](..._0xbb5742){}[_0x3c0adc(0x18b)](..._0x5a2514){}['fixPicImgType'](..._0x541339){}[_0x3c0adc(0x189)](..._0x5540a8){}[_0x3c0adc(0x18f)](..._0x35e71a){}[_0x3c0adc(0x191)](..._0x5291df){}[_0x3c0adc(0x186)](..._0x55eacc){}}function _0x225c(_0x41fc1b,_0x2018d2){var _0x2846ee=_0x2846();return _0x225c=function(_0x225c14,_0x59b802){_0x225c14=_0x225c14-0x184;var _0x18eb73=_0x2846ee[_0x225c14];return _0x18eb73;},_0x225c(_0x41fc1b,_0x2018d2);}function _0x2846(){var _0x15dbd0=['onShowErrUITips','3375393cVpLVc','34842IRPeaa','1495VHZYiB','onInstallFinished','onGetSrvCalTime','onUpdateGeneralFlag','1554192ruqSDq','4841578WIVyHK','onGetOfflineMsg','10101584YKDdgZ','219362DvJXcv','getAppSetting','2337402BiZQuv'];_0x2846=function(){return _0x15dbd0;};return _0x2846();} \ 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 2138ec68..c3047ced 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x114e6b,_0x553c01){var _0x48fd31=_0x3936,_0x34a7a9=_0x114e6b();while(!![]){try{var _0x1875be=-parseInt(_0x48fd31(0x108))/0x1*(-parseInt(_0x48fd31(0x106))/0x2)+parseInt(_0x48fd31(0x100))/0x3*(parseInt(_0x48fd31(0x107))/0x4)+-parseInt(_0x48fd31(0x105))/0x5*(-parseInt(_0x48fd31(0x104))/0x6)+-parseInt(_0x48fd31(0x109))/0x7+-parseInt(_0x48fd31(0x103))/0x8+parseInt(_0x48fd31(0x10a))/0x9+parseInt(_0x48fd31(0x102))/0xa*(-parseInt(_0x48fd31(0x101))/0xb);if(_0x1875be===_0x553c01)break;else _0x34a7a9['push'](_0x34a7a9['shift']());}catch(_0x53fae4){_0x34a7a9['push'](_0x34a7a9['shift']());}}}(_0x18ef,0x4624d));export*from'./NodeIDependsAdapter';function _0x3936(_0x4dbaaa,_0x39e048){var _0x18ef09=_0x18ef();return _0x3936=function(_0x3936dd,_0x224a65){_0x3936dd=_0x3936dd-0x100;var _0x1f2ab5=_0x18ef09[_0x3936dd];return _0x1f2ab5;},_0x3936(_0x4dbaaa,_0x39e048);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x18ef(){var _0x18e496=['1332149aDcqax','1957221CwmpoT','445083XUmsjw','5560357uPqDJX','20EtIWzB','382616mjsSJW','3270978XRtJFe','5HVyUkC','29882dSgIgu','12wXxNMV','22sYpmbh'];_0x18ef=function(){return _0x18e496;};return _0x18ef();} \ No newline at end of file +function _0x48e6(_0x550395,_0x4ef1f6){var _0x328d96=_0x328d();return _0x48e6=function(_0x48e60f,_0x4f5178){_0x48e60f=_0x48e60f-0x150;var _0x271366=_0x328d96[_0x48e60f];return _0x271366;},_0x48e6(_0x550395,_0x4ef1f6);}(function(_0x29846c,_0x2dcb5f){var _0x79d56d=_0x48e6,_0x314116=_0x29846c();while(!![]){try{var _0x59dacb=-parseInt(_0x79d56d(0x15a))/0x1+parseInt(_0x79d56d(0x155))/0x2*(-parseInt(_0x79d56d(0x158))/0x3)+-parseInt(_0x79d56d(0x150))/0x4+parseInt(_0x79d56d(0x152))/0x5*(parseInt(_0x79d56d(0x156))/0x6)+parseInt(_0x79d56d(0x154))/0x7*(parseInt(_0x79d56d(0x151))/0x8)+-parseInt(_0x79d56d(0x159))/0x9+parseInt(_0x79d56d(0x153))/0xa*(parseInt(_0x79d56d(0x157))/0xb);if(_0x59dacb===_0x2dcb5f)break;else _0x314116['push'](_0x314116['shift']());}catch(_0xfd1573){_0x314116['push'](_0x314116['shift']());}}}(_0x328d,0x5dad1));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x328d(){var _0x7e6f35=['80412XRbKqH','32EqItan','5qpSllF','30jfNTCs','1156043GkZJAl','50248LcxqGx','3818298wscmNn','2285503iDEhTk','12AJArCB','6261066WVCpMi','720328WZmgVV'];_0x328d=function(){return _0x7e6f35;};return _0x328d();} \ 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 7211a846..75d29aba 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x2656be=_0x3cfd;(function(_0x4d8e8a,_0x31ed54){const _0x27120b=_0x3cfd,_0xfe54a6=_0x4d8e8a();while(!![]){try{const _0x3d9d5b=-parseInt(_0x27120b(0x1a6))/0x1+-parseInt(_0x27120b(0x1cd))/0x2*(-parseInt(_0x27120b(0x19e))/0x3)+parseInt(_0x27120b(0x1cb))/0x4*(-parseInt(_0x27120b(0x1ba))/0x5)+parseInt(_0x27120b(0x1dc))/0x6*(-parseInt(_0x27120b(0x181))/0x7)+-parseInt(_0x27120b(0x1d6))/0x8+parseInt(_0x27120b(0x183))/0x9*(parseInt(_0x27120b(0x1aa))/0xa)+-parseInt(_0x27120b(0x1da))/0xb*(-parseInt(_0x27120b(0x1a7))/0xc);if(_0x3d9d5b===_0x31ed54)break;else _0xfe54a6['push'](_0xfe54a6['shift']());}catch(_0x1c7a12){_0xfe54a6['push'](_0xfe54a6['shift']());}}}(_0xb8d3,0xc48df));function _0x3cfd(_0x1c53c2,_0x2c4d4c){const _0xb8d30a=_0xb8d3();return _0x3cfd=function(_0x3cfd25,_0x565009){_0x3cfd25=_0x3cfd25-0x170;let _0x27c93d=_0xb8d30a[_0x3cfd25];return _0x27c93d;},_0x3cfd(_0x1c53c2,_0x2c4d4c);}import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0xb8d3(){const _0x4c27f6=['fileUuid','clearCacheDataByKeys','elementId','filePath','getStorageCleanService','error','md5HexStr','basename','removeKernelMsgListener','PIC','scanCache','picElement','SSgko','获取图片rkey失败','646513GzDrIP','uploadFile','27fXhmLN','destroy','now','sBRXw','addCacheScanedPaths','elements','originImageUrl','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/58.0.3029.110\x20Safari/537.36','bytes=0-0','BWwxQ','VMiqL','getDesktopTmpPath','chHOz','getChatCacheList','fileTypeFromFile','setCacheSilentScan','MtxDy','Check\x20rkey\x20request\x20time:','find','qgdwF','oqLCe','yCsfd','GVqzl','wwjRi','session','YaIVK','request','807006FQKHhB','end','Llevu','getMsgService','图片rkey获取成功','JKJCM','indexOf','abBCI','941693OoBQwn','7248ZwDplI','addListener','sourcePath','4200090VADykA','getFileSize','RfpMc','获取rkey失败','statusCode','clearCache','Check\x20rkey\x20headers:\x20','SziHF','CysIt','qfJoG','nDGuB','defaultFileDownloadPath','获取图片rkey...','BipPP','GtcTq','getChatCacheInfo','3085uPNYQe','peerUid','Check\x20rkey\x20request\x20timed\x20out','msgId','headers','hotUpdate','clearChatCache','nbPlc','getRKey','zdtFL','*/*','&rkey=','toUpperCase','stringify','getImageUrl','copyFile','dqxMX','6596dlMjTV','CiBVG','4BmcZGH','getImageSize','The\x20image\x20URL\x20is\x20not\x20accessible.','zgcfW','downloadMedia','onRichMediaDownloadComplete','/download','setTimeout','startsWith','3670928NjmqPi','jlszD','getFileType','pathname','32681HiBSzI','isAvailable','24QzDOkG','host','existsSync','Problem\x20with\x20rkey\x20request:\x20','sVted','getCacheSessionPathList','unlinkSync','includes','getHotUpdateCachePath','util','Sdyax','lCNKL','getRichMediaFilePathForGuild','message','CyhIJ','/gchatpic_new/0/0-0-','GET'];_0xb8d3=function(){return _0x4c27f6;};return _0xb8d3();}import _0x55892f from'path';import _0x24c401 from'fs';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x547bc3 from'file-type';import{MsgListener}from'@/core/listeners';import _0x59bc95 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import _0x57fa38 from'http';import{hookApi}from'@/core/external/hook';import{sleep}from'@/common/utils/helper';let privateImageRKey='',groupImageRKey='';export class NTQQFileApi{static async[_0x2656be(0x1d8)](_0x22efa3){const _0x11a606=_0x2656be;return _0x547bc3[_0x11a606(0x191)](_0x22efa3);}static async[_0x2656be(0x1c9)](_0x2a78ba,_0x470025){const _0x1082b9=_0x2656be;await napCatCore['util'][_0x1082b9(0x1c9)](_0x2a78ba,_0x470025);}static async[_0x2656be(0x1ab)](_0x3e9a90){const _0x3c064f=_0x2656be;return await napCatCore[_0x3c064f(0x1e5)][_0x3c064f(0x1ab)](_0x3e9a90);}static async[_0x2656be(0x182)](_0x298896,_0x16130b=ElementType[_0x2656be(0x17c)],_0x2ae6eb=0x0){const _0x3f2fe2=_0x2656be,_0x217ec4={'SziHF':function(_0x3b565d,_0x3f61de){return _0x3b565d(_0x3f61de);},'qfJoG':function(_0x391d19,_0x2611d1){return _0x391d19+_0x2611d1;}},_0x461e17=await _0x217ec4[_0x3f2fe2(0x1b1)](calculateFileMD5,_0x298896);let _0x490160=(await NTQQFileApi[_0x3f2fe2(0x1d8)](_0x298896))?.['ext']||'';_0x490160&&(_0x490160=_0x217ec4[_0x3f2fe2(0x1b3)]('.',_0x490160));let _0x2afb70=''+_0x55892f[_0x3f2fe2(0x17a)](_0x298896);_0x2afb70[_0x3f2fe2(0x1a4)]('.')===-0x1&&(_0x2afb70+=_0x490160);const _0x579a34=napCatCore[_0x3f2fe2(0x19b)][_0x3f2fe2(0x1a1)]()[_0x3f2fe2(0x1e8)]({'md5HexStr':_0x461e17,'fileName':_0x2afb70,'elementType':_0x16130b,'elementSubType':_0x2ae6eb,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x3f2fe2(0x1c9)](_0x298896,_0x579a34);const _0x29c4ff=await NTQQFileApi['getFileSize'](_0x298896);return{'md5':_0x461e17,'fileName':_0x2afb70,'path':_0x579a34,'fileSize':_0x29c4ff,'ext':_0x490160};}static async['downloadMedia'](_0x5e424b,_0xafcc59,_0x4ae258,_0x20101d,_0x554360,_0x39fa0d,_0x5a8825=0x3e8*0x3c*0x2,_0x5d3010=![]){const _0x3e4b28=_0x2656be,_0x17d522={'CwMpi':function(_0x1faf0b,_0x5324f4){return _0x1faf0b===_0x5324f4;},'SSgko':function(_0xef660,_0x5a3ba1){return _0xef660(_0x5a3ba1);},'zgcfW':function(_0x386393,_0x399e6a,_0x35d778){return _0x386393(_0x399e6a,_0x35d778);}};if(_0x39fa0d&&_0x24c401[_0x3e4b28(0x1de)](_0x39fa0d)){if(_0x5d3010)_0x24c401[_0x3e4b28(0x1e2)](_0x39fa0d);else return _0x39fa0d;}const _0x52b057=new MsgListener();return new Promise((_0x1b3184,_0x58a2b2)=>{const _0x2c0f7c=_0x3e4b28;let _0x5c73e4=![];_0x52b057[_0x2c0f7c(0x1d2)]=_0x219eb5=>{const _0x2b9da4=_0x2c0f7c;if(_0x17d522['CwMpi'](_0x219eb5[_0x2b9da4(0x1bd)],_0x5e424b)){_0x5c73e4=!![];let _0x4f3667=_0x219eb5[_0x2b9da4(0x176)];if(_0x4f3667[_0x2b9da4(0x1d5)]('\x5c')){const _0x356c55=sessionConfig?.[_0x2b9da4(0x1b5)];_0x4f3667=_0x55892f['join'](_0x356c55,_0x4f3667);}_0x1b3184(_0x4f3667),napCatCore[_0x2b9da4(0x19b)][_0x2b9da4(0x1a1)]()[_0x2b9da4(0x17b)](_0x487a10);}};const _0x487a10=napCatCore[_0x2c0f7c(0x1a8)](_0x52b057);_0x17d522[_0x2c0f7c(0x1d0)](setTimeout,()=>{const _0x3acf1d=_0x2c0f7c;!_0x5c73e4&&(_0x17d522[_0x3acf1d(0x17f)](_0x58a2b2,new Error('下载超时')),napCatCore[_0x3acf1d(0x19b)][_0x3acf1d(0x1a1)]()[_0x3acf1d(0x17b)](_0x487a10));},_0x5a8825),napCatCore[_0x2c0f7c(0x19b)][_0x2c0f7c(0x1a1)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x5e424b,'chatType':_0xafcc59,'peerUid':_0x4ae258,'elementId':_0x20101d,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x554360});});}static async[_0x2656be(0x1ce)](_0x2ec7ba){const _0x1e1d45={'CiBVG':function(_0x3e10f2,_0x1991ce,_0x6a8700){return _0x3e10f2(_0x1991ce,_0x6a8700);}};return new Promise((_0x5f230b,_0x5c7286)=>{const _0x5f22ea=_0x3cfd,_0x2dc659={'chHOz':function(_0x37657b,_0xadde99){return _0x37657b(_0xadde99);}};_0x1e1d45[_0x5f22ea(0x1cc)](_0x59bc95,_0x2ec7ba,(_0x163de7,_0x3254f8)=>{const _0x55cb99=_0x5f22ea;_0x163de7?_0x2dc659[_0x55cb99(0x18f)](_0x5c7286,_0x163de7):_0x2dc659[_0x55cb99(0x18f)](_0x5f230b,_0x3254f8);});});}static async[_0x2656be(0x1c8)](_0x3dc64f){const _0x21ac67=_0x2656be,_0xe0d27b={'nbPlc':function(_0x40a370,_0x1b65fe){return _0x40a370(_0x1b65fe);},'RDLgw':_0x21ac67(0x1b6),'CyhIJ':_0x21ac67(0x1a2),'qgdwF':function(_0x180209,_0x224924){return _0x180209(_0x224924);},'BWwxQ':function(_0x4848d8,_0x840d40){return _0x4848d8==_0x840d40;},'JKJCM':function(_0x10839c,_0x2a3a0c){return _0x10839c===_0x2a3a0c;},'PeaWc':function(_0x139a4e,_0x5bc908){return _0x139a4e(_0x5bc908);},'Sdyax':_0x21ac67(0x1cf),'qzgmc':_0x21ac67(0x172),'noacH':function(_0x8bfe78,_0x284c26){return _0x8bfe78+_0x284c26;},'GtcTq':_0x21ac67(0x18a),'sBRXw':_0x21ac67(0x178),'yCsfd':_0x21ac67(0x1d3),'RfpMc':'hookApi\x20is\x20not\x20available','eizSh':function(_0x2eae80,_0xb0d39d){return _0x2eae80!==_0xb0d39d;},'BipPP':'appid=1406','VMiqL':function(_0x345278){return _0x345278();},'Llevu':function(_0x460059,_0xed380e,_0x3253a0){return _0x460059(_0xed380e,_0x3253a0);},'wKsWx':_0x21ac67(0x180),'jlszD':function(_0x41df18,_0x283b77){return _0x41df18+_0x283b77;},'YaIVK':function(_0x572ec6,_0x544429){return _0x572ec6+_0x544429;},'MtxDy':_0x21ac67(0x194),'sVted':function(_0x592b9f,_0x827aa){return _0x592b9f+_0x827aa;},'GVqzl':function(_0x413232,_0x1dc048){return _0x413232+_0x1dc048;},'wwjRi':_0x21ac67(0x1ad),'zHxOC':function(_0x3b0e5c,_0x14379f){return _0x3b0e5c+_0x14379f;},'CysIt':function(_0xaca393,_0x41f287){return _0xaca393||_0x41f287;}},_0x1ff9fb=_0x3dc64f[_0x21ac67(0x188)][_0x21ac67(0x195)](_0x293cd8=>!!_0x293cd8[_0x21ac67(0x17e)]);if(!_0x1ff9fb)return'';const _0x330b59=_0x1ff9fb[_0x21ac67(0x17e)][_0x21ac67(0x189)],_0x2e9ba7=_0x1ff9fb[_0x21ac67(0x17e)][_0x21ac67(0x179)],_0x1c2aab=_0x1ff9fb[_0x21ac67(0x17e)][_0x21ac67(0x179)],_0x327153=_0x1ff9fb[_0x21ac67(0x17e)][_0x21ac67(0x173)];let _0x68eb2a='';if(_0x330b59){if(_0x330b59[_0x21ac67(0x1d5)](_0xe0d27b[_0x21ac67(0x198)])){if(_0x330b59[_0x21ac67(0x1e3)](_0x21ac67(0x1c5)))_0x68eb2a=IMAGE_HTTP_HOST_NT+_0x330b59;else{if(!hookApi[_0x21ac67(0x1db)]())return _0xe0d27b[_0x21ac67(0x196)](logDebug,_0xe0d27b[_0x21ac67(0x1ac)]),'';let _0xe3f1a6=![];_0xe0d27b['eizSh'](_0x330b59[_0x21ac67(0x1a4)](_0xe0d27b[_0x21ac67(0x1b7)]),-0x1)&&(_0xe3f1a6=!![]);let _0x5543be='';_0xe3f1a6?_0x5543be=privateImageRKey:_0x5543be=groupImageRKey;_0x5543be=_0x5543be||hookApi[_0x21ac67(0x1c2)]();const _0x5cecdd=async()=>{const _0x54c7ce=_0x21ac67;_0xe0d27b[_0x54c7ce(0x1c1)](logDebug,_0xe0d27b['RDLgw']),NTQQFileApi[_0x54c7ce(0x1d1)](_0x3dc64f[_0x54c7ce(0x1bd)],_0x3dc64f['chatType'],_0x3dc64f[_0x54c7ce(0x1bb)],_0x1ff9fb[_0x54c7ce(0x175)],'',_0x1ff9fb['picElement'][_0x54c7ce(0x1a9)],0x3e8,!![])['then']()['catch'](()=>{}),await sleep(0x12c);const _0x5d8d59=hookApi[_0x54c7ce(0x1c2)]();if(_0x5d8d59)return logDebug(_0xe0d27b[_0x54c7ce(0x170)],_0x5543be),_0x5543be=_0x5d8d59,_0x5543be;},_0x2baf9f=()=>{_0xe3f1a6?privateImageRKey=_0x5543be:groupImageRKey=_0x5543be;};if(!_0x5543be)try{await _0xe0d27b[_0x21ac67(0x18d)](_0x5cecdd);}catch(_0x19d421){return _0xe0d27b[_0x21ac67(0x1a0)](logError,_0xe0d27b['wKsWx'],_0x19d421),'';}_0x68eb2a=_0xe0d27b[_0x21ac67(0x1d7)](_0xe0d27b[_0x21ac67(0x19c)](IMAGE_HTTP_HOST_NT,_0x330b59),''+_0x5543be);const _0x1d985f=new Promise((_0x19bb4f,_0x50055a)=>{const _0x3ae868=_0x21ac67,_0x48ee76={'abBCI':function(_0x275029,_0x20cd64){const _0x3293ee=_0x3cfd;return _0xe0d27b[_0x3293ee(0x196)](_0x275029,_0x20cd64);},'oqLCe':function(_0x1f4ca1,_0x14d243){const _0x586326=_0x3cfd;return _0xe0d27b[_0x586326(0x196)](_0x1f4ca1,_0x14d243);},'lCNKL':function(_0x5b9429,_0x4eb4ac){const _0x298b47=_0x3cfd;return _0xe0d27b[_0x298b47(0x18c)](_0x5b9429,_0x4eb4ac);},'zdtFL':function(_0x1983b0,_0x2e159a){const _0x261c1b=_0x3cfd;return _0xe0d27b[_0x261c1b(0x1a3)](_0x1983b0,_0x2e159a);},'znSEr':function(_0x40a147,_0x5ab53d){return _0xe0d27b['PeaWc'](_0x40a147,_0x5ab53d);},'nDGuB':_0xe0d27b[_0x3ae868(0x1e6)],'dqxMX':function(_0x31b902,_0x5d5e99){return _0x31b902(_0x5d5e99);}},_0x30909a=new URL(_0x68eb2a),_0x341001={'method':_0xe0d27b['qzgmc'],'host':_0x30909a[_0x3ae868(0x1dd)],'path':_0xe0d27b['noacH'](_0x30909a[_0x3ae868(0x1d9)],_0x30909a['search']),'headers':{'User-Agent':_0xe0d27b[_0x3ae868(0x1b8)],'Accept':_0x3ae868(0x1c4),'Range':_0x3ae868(0x18b)}},_0x316e94=_0x57fa38[_0x3ae868(0x19d)](_0x341001,_0x30409c=>{const _0x16d193=_0x3ae868;_0x48ee76[_0x16d193(0x1a5)](logDebug,'Check\x20rkey\x20status:\x20'+_0x30409c[_0x16d193(0x1ae)]),_0x48ee76[_0x16d193(0x197)](logDebug,_0x16d193(0x1b0)+JSON[_0x16d193(0x1c7)](_0x30409c[_0x16d193(0x1be)])),_0x48ee76[_0x16d193(0x1e7)](_0x30409c[_0x16d193(0x1ae)],0xc8)||_0x48ee76[_0x16d193(0x1c3)](_0x30409c[_0x16d193(0x1ae)],0xce)?_0x48ee76['znSEr'](_0x19bb4f,'ok'):_0x50055a(_0x48ee76[_0x16d193(0x1b4)]);});_0x316e94[_0x3ae868(0x1d4)](0xbb8,()=>{const _0x21d70e=_0x3ae868;_0x316e94[_0x21d70e(0x184)](),_0x48ee76[_0x21d70e(0x1ca)](_0x50055a,_0x21d70e(0x1bc));}),_0x316e94['on'](_0xe0d27b[_0x3ae868(0x186)],_0x3793eb=>{const _0x3c6a48=_0x3ae868;console[_0x3c6a48(0x178)](_0x3c6a48(0x1df)+_0x3793eb[_0x3c6a48(0x1e9)]),_0x48ee76[_0x3c6a48(0x197)](_0x50055a,_0x3793eb[_0x3c6a48(0x1e9)]);}),_0x316e94[_0x3ae868(0x19f)]();});try{const _0x407c5e=Date[_0x21ac67(0x185)]();await _0x1d985f;const _0x3a8c02=Date[_0x21ac67(0x185)]();_0x2baf9f(),logDebug(_0xe0d27b[_0x21ac67(0x193)],_0x3a8c02-_0x407c5e);}catch(_0x336f4c){try{await _0xe0d27b[_0x21ac67(0x18d)](_0x5cecdd),_0x2baf9f(),_0x68eb2a=_0xe0d27b[_0x21ac67(0x1e0)](_0xe0d27b[_0x21ac67(0x199)](IMAGE_HTTP_HOST_NT,_0x330b59),''+_0x5543be);}catch(_0x573ec3){_0xe0d27b[_0x21ac67(0x1a0)](logError,_0xe0d27b[_0x21ac67(0x19a)],_0x573ec3);}}}}else _0x68eb2a=_0xe0d27b['zHxOC'](IMAGE_HTTP_HOST,_0x330b59);}else(_0x1c2aab||_0x2e9ba7)&&(_0x68eb2a=IMAGE_HTTP_HOST+_0x21ac67(0x171)+_0xe0d27b[_0x21ac67(0x1b2)](_0x1c2aab,_0x2e9ba7)[_0x21ac67(0x1c6)]()+'/0');return _0x68eb2a;}}export class NTQQFileCacheApi{static async[_0x2656be(0x192)](_0x7448ab=!![]){return'';}static[_0x2656be(0x1e1)](){return'';}static[_0x2656be(0x1af)](_0x2b5113=['tmp',_0x2656be(0x1bf)]){const _0x938eda=_0x2656be;return napCatCore['session'][_0x938eda(0x177)]()[_0x938eda(0x174)](_0x2b5113);}static['addCacheScannedPaths'](_0x54d783={}){const _0x3c377d=_0x2656be;return napCatCore[_0x3c377d(0x19b)][_0x3c377d(0x177)]()[_0x3c377d(0x187)](_0x54d783);}static[_0x2656be(0x17d)](){const _0x2550ba=_0x2656be;return napCatCore[_0x2550ba(0x19b)][_0x2550ba(0x177)]()['scanCache']();}static[_0x2656be(0x1e4)](){return'';}static[_0x2656be(0x18e)](){return'';}static[_0x2656be(0x190)](_0x40ae92,_0x3dbc0a=0x3e8,_0x287a4b=0x0){const _0x27f96c=_0x2656be;return napCatCore[_0x27f96c(0x19b)][_0x27f96c(0x177)]()[_0x27f96c(0x1b9)](_0x40ae92,_0x3dbc0a,0x1,_0x287a4b);}static['getFileCacheInfo'](_0x5736bb,_0xecd6bf=0x3e8,_0x156706){const _0x1f44a2=_0x156706?_0x156706:{'fileType':_0x5736bb};}static async[_0x2656be(0x1c0)](_0x1cea04=[],_0x4476a4=[]){const _0x2296b0=_0x2656be;return napCatCore[_0x2296b0(0x19b)][_0x2296b0(0x177)]()['clearChatCacheInfo'](_0x1cea04,_0x4476a4);}} \ No newline at end of file +const _0xe61f85=_0x4898;(function(_0x468494,_0xdb37b7){const _0x19470e=_0x4898,_0x103ed3=_0x468494();while(!![]){try{const _0x2bb927=-parseInt(_0x19470e(0x122))/0x1*(-parseInt(_0x19470e(0x120))/0x2)+parseInt(_0x19470e(0x10f))/0x3*(parseInt(_0x19470e(0x130))/0x4)+parseInt(_0x19470e(0x13e))/0x5*(parseInt(_0x19470e(0x103))/0x6)+-parseInt(_0x19470e(0x127))/0x7*(parseInt(_0x19470e(0x10a))/0x8)+parseInt(_0x19470e(0x10d))/0x9+-parseInt(_0x19470e(0x110))/0xa+-parseInt(_0x19470e(0x117))/0xb;if(_0x2bb927===_0xdb37b7)break;else _0x103ed3['push'](_0x103ed3['shift']());}catch(_0xe389e9){_0x103ed3['push'](_0x103ed3['shift']());}}}(_0x36ec,0xb23ea));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x37048c from'path';import _0x5f4fe0 from'fs';import _0x3e7440 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';function _0x36ec(){const _0x3777a4=['clearChatCache','copyFile','30783412XPrIZW','elementId','getFileCacheInfo','DPoCg','图片rkey获取失败','/download','util','ebjBY','unlink','217762jGgzVl','downloadMedia','8mhMMnn','tmp','join','下载超时','getHotUpdateCachePath','33509ypfnVR','addCacheScannedPaths','md5HexStr','InycN','fileTypeFromFile','getStorageCleanService','find','VLfDd','sourcePath','4wtAiPp','chatType','elements','QrNjA','uploadFile','RFgVj','getImageUrl','获取图片rkey...','indexOf','UQDac','toUpperCase','getMsgService','ext','removeKernelMsgListener','110UPoSww','now','clearCacheDataByKeys','&rkey=','getChatCacheList','CGEWG','getRichMediaFilePathForGuild','BKYDG','fileUuid','includes','startsWith','getFileType','elcZK','kPOUw','/gchatpic_new/0/0-0-','JSJkc','session','HDAfW','TLnKr','clearCache','getChatCacheInfo','RWcnP','msgId','existsSync','then','getFileSize','图片url获取失败','originImageUrl','yvOlF','ipPmR','194124OhSSQX','ELSlw','group','hookApi\x20is\x20not\x20available','LNSpo','PIC','getImageSize','488vBozzk','kwYQN','qhhNE','10639233VmnMGN','scanCache','3166923lIKyBb','250wbgHOu','hotUpdate','addCacheScanedPaths','addListener','picElement'];_0x36ec=function(){return _0x3777a4;};return _0x36ec();}import{calculateFileMD5}from'@/common/utils/file';import*as _0x42ea2c from'file-type';function _0x4898(_0x1e8cb5,_0x3fb8d9){const _0x36ec7d=_0x36ec();return _0x4898=function(_0x4898f9,_0x52131b){_0x4898f9=_0x4898f9-0xfc;let _0x3fc978=_0x36ec7d[_0x4898f9];return _0x3fc978;},_0x4898(_0x1e8cb5,_0x3fb8d9);}import{MsgListener}from'@/core/listeners';import _0x307d0b from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{sleep}from'@/common/utils/helper';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e;export class NTQQFileApi{static async[_0xe61f85(0x149)](_0x22d1c5){const _0x321252=_0xe61f85;return _0x42ea2c[_0x321252(0x12b)](_0x22d1c5);}static async[_0xe61f85(0x116)](_0x4c4ee6,_0x28376d){const _0x4cad7f=_0xe61f85;await napCatCore['util'][_0x4cad7f(0x116)](_0x4c4ee6,_0x28376d);}static async['getFileSize'](_0x37e288){const _0x543bc4=_0xe61f85;return await napCatCore[_0x543bc4(0x11d)][_0x543bc4(0xfe)](_0x37e288);}static async[_0xe61f85(0x134)](_0x1de61e,_0x32d5d=ElementType[_0xe61f85(0x108)],_0x5394f4=0x0){const _0x3dacd0=_0xe61f85,_0x33c9f0={'qdfHF':function(_0x5e48f0,_0x5dd74f){return _0x5e48f0(_0x5dd74f);},'InycN':function(_0x2e812d,_0x1c8ac7){return _0x2e812d+_0x1c8ac7;},'vjjYT':function(_0x2e5b9e,_0x4ab3ce){return _0x2e5b9e===_0x4ab3ce;}},_0x363276=await _0x33c9f0['qdfHF'](calculateFileMD5,_0x1de61e);let _0x30e866=(await NTQQFileApi[_0x3dacd0(0x149)](_0x1de61e))?.[_0x3dacd0(0x13c)]||'';_0x30e866&&(_0x30e866=_0x33c9f0[_0x3dacd0(0x12a)]('.',_0x30e866));let _0x56ac2a=''+_0x37048c['basename'](_0x1de61e);_0x33c9f0['vjjYT'](_0x56ac2a[_0x3dacd0(0x138)]('.'),-0x1)&&(_0x56ac2a+=_0x30e866);const _0x48e664=napCatCore[_0x3dacd0(0x14e)][_0x3dacd0(0x13b)]()[_0x3dacd0(0x144)]({'md5HexStr':_0x363276,'fileName':_0x56ac2a,'elementType':_0x32d5d,'elementSubType':_0x5394f4,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x1de61e,_0x48e664);const _0x11e7c2=await NTQQFileApi[_0x3dacd0(0xfe)](_0x1de61e);return{'md5':_0x363276,'fileName':_0x56ac2a,'path':_0x48e664,'fileSize':_0x11e7c2,'ext':_0x30e866};}static async[_0xe61f85(0x121)](_0x1236f7,_0x5188dd,_0x52e9c0,_0x311666,_0x2d90e4,_0x515d76,_0x3f6fd=0x3e8*0x3c*0x2,_0x37d61a=![]){const _0x49937f=_0xe61f85,_0x5cbda9={'RFgVj':_0x49937f(0x125),'LNSpo':function(_0x2258e8,_0x7e68af){return _0x2258e8(_0x7e68af);},'QrNjA':function(_0xe0d1fc,_0x4c1b6c,_0x4c9fb8){return _0xe0d1fc(_0x4c1b6c,_0x4c9fb8);}};if(_0x515d76&&_0x5f4fe0[_0x49937f(0xfc)](_0x515d76)){if(_0x37d61a)try{await _0x3e7440[_0x49937f(0x11f)](_0x515d76);}catch(_0x3191aa){}else return _0x515d76;}const _0x2ef781=new MsgListener();return new Promise((_0x484535,_0x6e3d0c)=>{const _0x1e46f6=_0x49937f,_0x4075cb={'DPoCg':function(_0x5cea58,_0x37125b){const _0x169456=_0x4898;return _0x5cbda9[_0x169456(0x107)](_0x5cea58,_0x37125b);}};let _0x3b5b71=![];_0x2ef781['onRichMediaDownloadComplete']=_0x37c0ce=>{const _0x9d21ed=_0x4898;if(_0x37c0ce[_0x9d21ed(0x154)]===_0x1236f7){_0x3b5b71=!![];let _0x53b7f9=_0x37c0ce['filePath'];if(_0x53b7f9[_0x9d21ed(0x148)]('\x5c')){const _0x1bb3f0=sessionConfig?.['defaultFileDownloadPath'];_0x53b7f9=_0x37048c[_0x9d21ed(0x124)](_0x1bb3f0,_0x53b7f9);}_0x4075cb[_0x9d21ed(0x11a)](_0x484535,_0x53b7f9),napCatCore['session'][_0x9d21ed(0x13b)]()[_0x9d21ed(0x13d)](_0xb5a69a);}};const _0xb5a69a=napCatCore[_0x1e46f6(0x113)](_0x2ef781);_0x5cbda9[_0x1e46f6(0x133)](setTimeout,()=>{const _0x2940f7=_0x1e46f6;!_0x3b5b71&&(_0x6e3d0c(new Error(_0x5cbda9[_0x2940f7(0x135)])),napCatCore[_0x2940f7(0x14e)][_0x2940f7(0x13b)]()['removeKernelMsgListener'](_0xb5a69a));},_0x3f6fd),napCatCore['session'][_0x1e46f6(0x13b)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x1236f7,'chatType':_0x5188dd,'peerUid':_0x52e9c0,'elementId':_0x311666,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x2d90e4});});}static async[_0xe61f85(0x109)](_0x3fee37){const _0x85fa62={'ipPmR':function(_0x645b96,_0x2bb339){return _0x645b96(_0x2bb339);},'HBsvd':function(_0x362f28,_0x43a0ea,_0x5c9892){return _0x362f28(_0x43a0ea,_0x5c9892);}};return new Promise((_0xa4d801,_0x8f6bd8)=>{const _0x473944={'HDAfW':function(_0x1fcac6,_0x4ba6ce){const _0x2a3850=_0x4898;return _0x85fa62[_0x2a3850(0x102)](_0x1fcac6,_0x4ba6ce);},'elcZK':function(_0x1fb9cf,_0x1ce9a5){return _0x1fb9cf(_0x1ce9a5);}};_0x85fa62['HBsvd'](_0x307d0b,_0x3fee37,(_0x4e8c40,_0x370455)=>{const _0x48624b=_0x4898;_0x4e8c40?_0x473944[_0x48624b(0x14f)](_0x8f6bd8,_0x4e8c40):_0x473944[_0x48624b(0x14a)](_0xa4d801,_0x370455);});});}static async[_0xe61f85(0x136)](_0x5e68d6){const _0x363ba3=_0xe61f85,_0x1b6374={'RWcnP':function(_0x56d232,_0x577ef9){return _0x56d232(_0x577ef9);},'kPOUw':_0x363ba3(0x137),'JSJkc':function(_0x41f761,_0xa4c0f7){return _0x41f761(_0xa4c0f7);},'TLnKr':function(_0x1727a7,_0x9f884e,_0x3e6937){return _0x1727a7(_0x9f884e,_0x3e6937);},'qhhNE':function(_0xffca1c,_0x33f4fa){return _0xffca1c(_0x33f4fa);},'ebjBY':function(_0x3e3eda,_0x1f852c){return _0x3e3eda!==_0x1f852c;},'UQDac':_0x363ba3(0x11c),'ELSlw':function(_0x265138,_0x45a9d1){return _0x265138+_0x45a9d1;},'STyFi':_0x363ba3(0x106),'kwYQN':function(_0xec3650,_0x2a2fd3){return _0xec3650>_0x2a2fd3;},'BKYDG':function(_0x5d2759,_0x167b4c){return _0x5d2759-_0x167b4c;},'bJsSf':function(_0x43d2ee){return _0x43d2ee();},'yvOlF':_0x363ba3(0x11b),'VLfDd':function(_0x516d9e,_0x1af854){return _0x516d9e+_0x1af854;},'WfewU':function(_0x1676da,_0x3801af){return _0x1676da||_0x3801af;},'CGEWG':_0x363ba3(0xff)},_0x52e886=_0x1b6374[_0x363ba3(0x11e)](_0x5e68d6[_0x363ba3(0x131)],ChatType[_0x363ba3(0x105)]),_0x17a180=_0x5e68d6[_0x363ba3(0x132)][_0x363ba3(0x12d)](_0x599124=>!!_0x599124[_0x363ba3(0x114)]);if(!_0x17a180)return'';const _0x4af94a=_0x17a180[_0x363ba3(0x114)][_0x363ba3(0x100)],_0x38802e=_0x17a180[_0x363ba3(0x114)][_0x363ba3(0x129)],_0xc58592=_0x17a180[_0x363ba3(0x114)][_0x363ba3(0x129)],_0x4c5173=_0x17a180[_0x363ba3(0x114)][_0x363ba3(0x146)],_0x13898e=_0x426bac=>{const _0x45cec1=_0x363ba3;_0x52e886?(privateImageRKey=_0x426bac,lastGetPrivateRKeyTime=Date[_0x45cec1(0x13f)]()):(groupImageRKey=_0x426bac,lastGetGroupRKeyTime=Date['now']());};if(_0x4af94a){if(_0x4af94a[_0x363ba3(0x148)](_0x1b6374[_0x363ba3(0x139)])){if(_0x4af94a[_0x363ba3(0x147)](_0x363ba3(0x141)))return _0x1b6374[_0x363ba3(0x104)](IMAGE_HTTP_HOST_NT,_0x4af94a);if(!hookApi['isAvailable']())return logDebug(_0x1b6374['STyFi']),'';const _0x328ab7=async()=>{const _0x177179=_0x363ba3;_0x1b6374[_0x177179(0x153)](logDebug,_0x1b6374[_0x177179(0x14b)]),NTQQFileApi[_0x177179(0x121)](_0x5e68d6[_0x177179(0x154)],_0x5e68d6[_0x177179(0x131)],_0x5e68d6['peerUid'],_0x17a180[_0x177179(0x118)],'',_0x17a180[_0x177179(0x114)][_0x177179(0x12f)],0x3e8,!![])[_0x177179(0xfd)]()['catch'](()=>{}),await _0x1b6374[_0x177179(0x14d)](sleep,0x3e8);const _0x1bfc96=hookApi['getRKey']();if(_0x1bfc96)return _0x1b6374[_0x177179(0x150)](logDebug,'图片rkey获取成功',_0x1bfc96),_0x1b6374[_0x177179(0x10c)](_0x13898e,_0x1bfc96),_0x1bfc96;},_0x5b492c=_0x52e886?privateImageRKey:groupImageRKey,_0x5bacda=_0x52e886?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x1b6374[_0x363ba3(0x10b)](_0x1b6374[_0x363ba3(0x145)](Date[_0x363ba3(0x13f)](),_0x5bacda),rkeyExpireTime)||!_0x5b492c){const _0x40b4c9=await _0x1b6374['bJsSf'](_0x328ab7);return _0x40b4c9?IMAGE_HTTP_HOST_NT+_0x4af94a+(''+_0x40b4c9):(logError(_0x1b6374[_0x363ba3(0x101)],_0x4af94a),'');}if(_0x5b492c)return _0x1b6374[_0x363ba3(0x104)](IMAGE_HTTP_HOST_NT+_0x4af94a,''+_0x5b492c);}else return _0x1b6374[_0x363ba3(0x12e)](IMAGE_HTTP_HOST,_0x4af94a);}else{if(_0x1b6374['WfewU'](_0xc58592,_0x38802e))return IMAGE_HTTP_HOST+_0x363ba3(0x14c)+(_0xc58592||_0x38802e)[_0x363ba3(0x13a)]()+'/0';}return _0x1b6374[_0x363ba3(0x150)](logDebug,_0x1b6374[_0x363ba3(0x143)],_0x5e68d6),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x156d65=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0xe61f85(0x151)](_0x5b5dc6=[_0xe61f85(0x123),_0xe61f85(0x111)]){const _0x1c212c=_0xe61f85;return napCatCore[_0x1c212c(0x14e)][_0x1c212c(0x12c)]()[_0x1c212c(0x140)](_0x5b5dc6);}static[_0xe61f85(0x128)](_0x59ab3f={}){const _0x1c2408=_0xe61f85;return napCatCore['session'][_0x1c2408(0x12c)]()[_0x1c2408(0x112)](_0x59ab3f);}static[_0xe61f85(0x10e)](){const _0x1bda0e=_0xe61f85;return napCatCore['session'][_0x1bda0e(0x12c)]()[_0x1bda0e(0x10e)]();}static[_0xe61f85(0x126)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0xe61f85(0x142)](_0x44b24f,_0x36be34=0x3e8,_0x586060=0x0){const _0x3d7175=_0xe61f85;return napCatCore[_0x3d7175(0x14e)][_0x3d7175(0x12c)]()[_0x3d7175(0x152)](_0x44b24f,_0x36be34,0x1,_0x586060);}static[_0xe61f85(0x119)](_0x3e9384,_0x4f2a76=0x3e8,_0x392b49){const _0x8f2f3b=_0x392b49?_0x392b49:{'fileType':_0x3e9384};}static async[_0xe61f85(0x115)](_0x58bdc2=[],_0x150364=[]){const _0x49eb1d=_0xe61f85;return napCatCore['session'][_0x49eb1d(0x12c)]()['clearChatCacheInfo'](_0x58bdc2,_0x150364);}} \ 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 67fea891..71de3216 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x4b60c7=_0x11f5;(function(_0x741934,_0xa87f8e){const _0x266b23=_0x11f5,_0x37801b=_0x741934();while(!![]){try{const _0x3ee2d0=parseInt(_0x266b23(0x1ef))/0x1+-parseInt(_0x266b23(0x1e8))/0x2+-parseInt(_0x266b23(0x1eb))/0x3+parseInt(_0x266b23(0x1e2))/0x4+parseInt(_0x266b23(0x1ea))/0x5+parseInt(_0x266b23(0x1f0))/0x6*(parseInt(_0x266b23(0x1de))/0x7)+-parseInt(_0x266b23(0x1ec))/0x8;if(_0x3ee2d0===_0xa87f8e)break;else _0x37801b['push'](_0x37801b['shift']());}catch(_0x3dd294){_0x37801b['push'](_0x37801b['shift']());}}}(_0xdc27,0x73381));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x11f5(_0x478502,_0x1745e0){const _0xdc27da=_0xdc27();return _0x11f5=function(_0x11f5bd,_0x1050b0){_0x11f5bd=_0x11f5bd-0x1de;let _0x84f446=_0xdc27da[_0x11f5bd];return _0x84f446;},_0x11f5(_0x478502,_0x1745e0);}import{uid2UinMap}from'@/core/data';function _0xdc27(){const _0x6c8f6f=['handleFriendRequest','4174205iukmLC','1086921eVfUJk','775816zVZzfn','获取好友列表超时','djqUm','858411lKpZgn','3516pOlaOS','approvalFriendRequest','uin','buddyList','pejqW','reqTime','removeKernelBuddyListener','NETqt','OXEtX','1743PNSEtK','获取好友列表完成','addListener','session','3072hNFXfF','YLijN','getBuddyService','friendUid','TirBV','getBuddyList','1817426CkoYuP'];_0xdc27=function(){return _0x6c8f6f;};return _0xdc27();}export class NTQQFriendApi{static async['getFriends'](_0x6fb27c=![]){const _0x60d6d9=_0x11f5,_0x1acbbb={'YLijN':function(_0x2de503,_0x26fd24){return _0x2de503(_0x26fd24);},'NETqt':_0x60d6d9(0x1ed),'pejqW':_0x60d6d9(0x1df),'hTmqF':'开始获取好友列表','TirBV':function(_0x57c4e5,_0x23e25a,_0x24a906){return _0x57c4e5(_0x23e25a,_0x24a906);}};return new Promise((_0x4546dd,_0x5188dd)=>{const _0x2d37c1=_0x60d6d9,_0x48b156={'iQxog':function(_0x4b81c1,_0x2581c5,_0x4b9297){return _0x4b81c1(_0x2581c5,_0x4b9297);},'djqUm':_0x1acbbb[_0x2d37c1(0x1f4)],'OXEtX':_0x1acbbb['hTmqF']};let _0x3e4960=![];_0x1acbbb[_0x2d37c1(0x1e6)](setTimeout,()=>{const _0x4a95a3=_0x2d37c1;!_0x3e4960&&(_0x1acbbb[_0x4a95a3(0x1e3)](logDebug,_0x1acbbb[_0x4a95a3(0x1f7)]),napCatCore[_0x4a95a3(0x1e1)][_0x4a95a3(0x1e4)]()[_0x4a95a3(0x1f6)](_0x2307e1),_0x5188dd(_0x1acbbb[_0x4a95a3(0x1f7)]));},0x1388);const _0x1a7dc0=new BuddyListener(),_0x289419=[];_0x1a7dc0['onBuddyListChange']=_0x53ec4e=>{const _0x59a253=_0x2d37c1;for(const _0x16da2e of _0x53ec4e){for(const _0x42be13 of _0x16da2e[_0x59a253(0x1f3)]){_0x289419['push'](_0x42be13),uid2UinMap[_0x42be13['uid']]=_0x42be13[_0x59a253(0x1f2)];}}_0x3e4960=!![],napCatCore[_0x59a253(0x1e1)][_0x59a253(0x1e4)]()[_0x59a253(0x1f6)](_0x2307e1),_0x48b156['iQxog'](logDebug,_0x48b156[_0x59a253(0x1ee)],_0x289419),_0x4546dd(_0x289419);};const _0x2307e1=napCatCore[_0x2d37c1(0x1e0)](_0x1a7dc0);napCatCore[_0x2d37c1(0x1e1)]['getBuddyService']()[_0x2d37c1(0x1e7)](_0x6fb27c)['then'](_0x5bbff1=>{const _0x4d73f4=_0x2d37c1;logDebug(_0x48b156[_0x4d73f4(0x1f8)],_0x5bbff1);});});}static async[_0x4b60c7(0x1e9)](_0x232d45,_0x49dec8){const _0x505ac1=_0x4b60c7;napCatCore['session'][_0x505ac1(0x1e4)]()?.[_0x505ac1(0x1f1)]({'friendUid':_0x232d45[_0x505ac1(0x1e5)],'reqTime':_0x232d45[_0x505ac1(0x1f5)],'accept':_0x49dec8});}} \ No newline at end of file +const _0xe990fd=_0x9d5e;(function(_0x4c12b7,_0x3815dd){const _0x2c2682=_0x9d5e,_0x13e992=_0x4c12b7();while(!![]){try{const _0x4643e7=parseInt(_0x2c2682(0xc2))/0x1*(parseInt(_0x2c2682(0xc3))/0x2)+-parseInt(_0x2c2682(0xd3))/0x3*(-parseInt(_0x2c2682(0xd8))/0x4)+parseInt(_0x2c2682(0xde))/0x5*(parseInt(_0x2c2682(0xcb))/0x6)+parseInt(_0x2c2682(0xc4))/0x7+parseInt(_0x2c2682(0xce))/0x8+-parseInt(_0x2c2682(0xd7))/0x9+-parseInt(_0x2c2682(0xc0))/0xa*(parseInt(_0x2c2682(0xcd))/0xb);if(_0x4643e7===_0x3815dd)break;else _0x13e992['push'](_0x13e992['shift']());}catch(_0x15dcd5){_0x13e992['push'](_0x13e992['shift']());}}}(_0x20d0,0x3a98a));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x20d0(){const _0x2ef77f=['92IksirK','1039101rwPLei','ktkFh','uid','bcdue','removeKernelBuddyListener','getFriends','reqTime','12fcuPYs','pqcIw','4769182CCrRFG','2939960zMcZQr','approvalFriendRequest','buddyList','onBuddyListChange','UMvpw','347835wJnSSG','获取好友列表完成','getBuddyService','friendUid','3612627pdPnmp','12fiWjfd','rQdtn','push','then','handleFriendRequest','获取好友列表超时','214745evnNNZ','hqebl','jIDQO','hbXag','session','uin','ymFHY','10oYGBUl','开始获取好友列表','2724ktefKK'];_0x20d0=function(){return _0x2ef77f;};return _0x20d0();}function _0x9d5e(_0x59808d,_0x22c087){const _0x20d0a3=_0x20d0();return _0x9d5e=function(_0x9d5e62,_0x32272e){_0x9d5e62=_0x9d5e62-0xbd;let _0x221714=_0x20d0a3[_0x9d5e62];return _0x221714;},_0x9d5e(_0x59808d,_0x22c087);}import{uid2UinMap}from'@/core/data';export class NTQQFriendApi{static async[_0xe990fd(0xc9)](_0x3d1024=![]){const _0x2ec714=_0xe990fd,_0x267701={'LShcE':function(_0x10d5e8,_0x43133c){return _0x10d5e8(_0x43133c);},'hqebl':_0x2ec714(0xdd),'ymFHY':function(_0x1b531b,_0x1367f8,_0x17426c){return _0x1b531b(_0x1367f8,_0x17426c);},'UMvpw':_0x2ec714(0xd4),'dfpEd':function(_0x701e53,_0x5b1340,_0x56ee63){return _0x701e53(_0x5b1340,_0x56ee63);}};return new Promise((_0x421983,_0x11909e)=>{const _0xd39db7=_0x2ec714,_0x14706b={'pqcIw':function(_0xeefd16,_0xb0dfdf){return _0x267701['LShcE'](_0xeefd16,_0xb0dfdf);},'jIDQO':_0x267701[_0xd39db7(0xdf)],'rQdtn':function(_0x38f095,_0x4de588,_0x4c49b2){const _0x2adf85=_0xd39db7;return _0x267701[_0x2adf85(0xbf)](_0x38f095,_0x4de588,_0x4c49b2);},'bcdue':_0x267701[_0xd39db7(0xd2)],'ktkFh':function(_0x4066d6,_0x276619,_0x29d959){return _0x4066d6(_0x276619,_0x29d959);},'hbXag':_0xd39db7(0xc1)};let _0xfc4bd0=![];_0x267701['dfpEd'](setTimeout,()=>{const _0x27b486=_0xd39db7;!_0xfc4bd0&&(_0x14706b[_0x27b486(0xcc)](logDebug,_0x14706b[_0x27b486(0xe0)]),napCatCore[_0x27b486(0xbd)][_0x27b486(0xd5)]()[_0x27b486(0xc8)](_0x3d459d),_0x14706b[_0x27b486(0xcc)](_0x11909e,_0x14706b[_0x27b486(0xe0)]));},0x1388);const _0x5f01af=new BuddyListener(),_0x454253=[];_0x5f01af[_0xd39db7(0xd1)]=_0x5d1bce=>{const _0x434a0b=_0xd39db7;for(const _0x1d424d of _0x5d1bce){for(const _0x23e68d of _0x1d424d[_0x434a0b(0xd0)]){_0x454253[_0x434a0b(0xda)](_0x23e68d),uid2UinMap[_0x23e68d[_0x434a0b(0xc6)]]=_0x23e68d[_0x434a0b(0xbe)];}}_0xfc4bd0=!![],napCatCore[_0x434a0b(0xbd)]['getBuddyService']()['removeKernelBuddyListener'](_0x3d459d),_0x14706b[_0x434a0b(0xd9)](logDebug,_0x14706b[_0x434a0b(0xc7)],_0x454253),_0x421983(_0x454253);};const _0x3d459d=napCatCore['addListener'](_0x5f01af);napCatCore[_0xd39db7(0xbd)][_0xd39db7(0xd5)]()['getBuddyList'](_0x3d1024)[_0xd39db7(0xdb)](_0x272082=>{const _0x18aba6=_0xd39db7;_0x14706b[_0x18aba6(0xc5)](logDebug,_0x14706b[_0x18aba6(0xe1)],_0x272082);});});}static async[_0xe990fd(0xdc)](_0x1cf02a,_0x391ac3){const _0x4bf756=_0xe990fd;napCatCore['session'][_0x4bf756(0xd5)]()?.[_0x4bf756(0xcf)]({'friendUid':_0x1cf02a[_0x4bf756(0xd6)],'reqTime':_0x1cf02a[_0x4bf756(0xca)],'accept':_0x391ac3});}} \ 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 8e986098..dda3fad4 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0xffb5ef=_0x54b2;function _0x54b2(_0x143ce8,_0x1356a5){const _0x1f93d9=_0x1f93();return _0x54b2=function(_0x54b2d2,_0x4137fb){_0x54b2d2=_0x54b2d2-0x6a;let _0x1f783d=_0x1f93d9[_0x54b2d2];return _0x1f783d;},_0x54b2(_0x143ce8,_0x1356a5);}function _0x1f93(){const _0x47d597=['setGroupTitle','setMemberCard','9QkQjYt','createMemberListScene','bhjhW','onGroupListUpdate','setMemberRole','5038pgxVVr','2388078TPDDmw','getGroups','removeKernelGroupListener','errMsg','获取群成员列表出错,','getGroupMembers','967698vcCcQt','PHIRt','forEach','then','getGroupIgnoreNotifies','getGroupList','session','getGroupService','6856FhoOzG','seq','mPXHt','TbIoA','finish','operateSysNotify','RlxdN','4584285PgpvBS','获取群(','setGroupShutUp','uin','quitGroup','5792085ZPvSJs','finish:\x20','30JYQKXf','modifyGroupName','result','2177kEriOW',')成员列表结果:','Qpzvq','2010176EfGgUS','获取群列表完成','setGroupName','groupCode','group','KgrAF','infos','mmbFm','getNextMemberList','getGroupNotifies','banMember','kickMember','modifyMemberCardName','UBXPo','groupMemberList_MainWindow'];_0x1f93=function(){return _0x47d597;};return _0x1f93();}(function(_0x255e66,_0x1f27c6){const _0x54f3f0=_0x54b2,_0x68325f=_0x255e66();while(!![]){try{const _0x32251c=parseInt(_0x54f3f0(0x78))/0x1+-parseInt(_0x54f3f0(0x71))/0x2*(-parseInt(_0x54f3f0(0x6c))/0x3)+-parseInt(_0x54f3f0(0x94))/0x4+-parseInt(_0x54f3f0(0x8c))/0x5+-parseInt(_0x54f3f0(0x72))/0x6+-parseInt(_0x54f3f0(0x91))/0x7*(-parseInt(_0x54f3f0(0x80))/0x8)+-parseInt(_0x54f3f0(0x87))/0x9*(-parseInt(_0x54f3f0(0x8e))/0xa);if(_0x32251c===_0x1f27c6)break;else _0x68325f['push'](_0x68325f['shift']());}catch(_0xf781e2){_0x68325f['push'](_0x68325f['shift']());}}}(_0x1f93,0xad8f7));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';export class NTQQGroupApi{static async[_0xffb5ef(0x73)](_0x56ecd3=![]){const _0x3d126f=_0xffb5ef,_0xe99e6d={'KgrAF':function(_0x4b86d1,_0x293950,_0x47f42d){return _0x4b86d1(_0x293950,_0x47f42d);},'RlxdN':_0x3d126f(0x95),'UBXPo':function(_0x4af722,_0x318e05){return _0x4af722(_0x318e05);},'VldxP':'获取群列表超时','mmbFm':function(_0x90f27e,_0x3010d6,_0x195030){return _0x90f27e(_0x3010d6,_0x195030);}};let _0x3f8f13=![];return new Promise((_0x3cc935,_0x655e44)=>{const _0x1418ab=_0x3d126f,_0x1c01a0={'bhjhW':function(_0x1465c4,_0x30d14c){return _0x1465c4(_0x30d14c);},'Qpzvq':_0xe99e6d['VldxP']};_0xe99e6d[_0x1418ab(0x9b)](setTimeout,()=>{const _0x219353=_0x1418ab;!_0x3f8f13&&(napCatCore['session']['getGroupService']()[_0x219353(0x74)](_0x5cd765),_0x1c01a0[_0x219353(0x6e)](logDebug,_0x1c01a0[_0x219353(0x93)]),_0x1c01a0[_0x219353(0x6e)](_0x655e44,_0x1c01a0[_0x219353(0x93)]));},0x1388);const _0x5764d2=new GroupListener();_0x5764d2[_0x1418ab(0x6f)]=(_0x359edf,_0xe825fd)=>{const _0x2dc08d=_0x1418ab;_0x3f8f13=!![],_0xe99e6d[_0x2dc08d(0x99)](logDebug,_0xe99e6d[_0x2dc08d(0x86)],_0xe825fd),_0xe99e6d[_0x2dc08d(0xa1)](_0x3cc935,_0xe825fd),napCatCore[_0x2dc08d(0x7e)][_0x2dc08d(0x7f)]()?.[_0x2dc08d(0x74)](_0x5cd765);};const _0x5cd765=napCatCore['addListener'](_0x5764d2);napCatCore[_0x1418ab(0x7e)][_0x1418ab(0x7f)]()[_0x1418ab(0x7d)](_0x56ecd3)[_0x1418ab(0x7b)]();});}static async[_0xffb5ef(0x77)](_0x336395,_0x413e77=0xbb8){const _0x14c1f1=_0xffb5ef,_0x1a9bd3={'PHIRt':function(_0x47425a,_0x10336c){return _0x47425a!==_0x10336c;},'wqmqT':_0x14c1f1(0x76),'mPXHt':function(_0x2a10d0,_0x20a558,_0x57e7f4){return _0x2a10d0(_0x20a558,_0x57e7f4);}},_0x5527df=napCatCore[_0x14c1f1(0x7e)][_0x14c1f1(0x7f)](),_0x1934b1=_0x5527df[_0x14c1f1(0x6d)](_0x336395,_0x14c1f1(0xa2)),_0x4f07b6=await _0x5527df[_0x14c1f1(0x9c)](_0x1934b1,undefined,_0x413e77);if(_0x1a9bd3[_0x14c1f1(0x79)](_0x4f07b6['errCode'],0x0))throw _0x1a9bd3['wqmqT']+_0x4f07b6[_0x14c1f1(0x75)];return _0x1a9bd3[_0x14c1f1(0x82)](logDebug,_0x14c1f1(0x88)+_0x336395+_0x14c1f1(0x92),_0x14c1f1(0x8d)+_0x4f07b6[_0x14c1f1(0x90)][_0x14c1f1(0x84)]),_0x4f07b6['result']['infos'][_0x14c1f1(0x7a)](_0x1ba10b=>{const _0x32acca=_0x14c1f1;uid2UinMap[_0x1ba10b['uid']]=_0x1ba10b[_0x32acca(0x8a)];}),_0x4f07b6[_0x14c1f1(0x90)][_0x14c1f1(0x9a)];}static async[_0xffb5ef(0x9d)](){}static async[_0xffb5ef(0x7c)](){}static async['handleGroupRequest'](_0x343905,_0x33deda,_0x39fa6b){const _0x5c0ee4=_0xffb5ef,_0x4288d3={'TbIoA':function(_0x16c538,_0x5c39fb){return _0x16c538||_0x5c39fb;}};return napCatCore[_0x5c0ee4(0x7e)][_0x5c0ee4(0x7f)]()[_0x5c0ee4(0x85)](![],{'operateType':_0x33deda,'targetMsg':{'seq':_0x343905[_0x5c0ee4(0x81)],'type':_0x343905['type'],'groupCode':_0x343905[_0x5c0ee4(0x98)][_0x5c0ee4(0x97)],'postscript':_0x4288d3[_0x5c0ee4(0x83)](_0x39fa6b,'')}});}static async[_0xffb5ef(0x8b)](_0x3a5b7d){const _0x4ddb10=_0xffb5ef;return napCatCore[_0x4ddb10(0x7e)]['getGroupService']()[_0x4ddb10(0x8b)](_0x3a5b7d);}static async['kickMember'](_0x156a5f,_0x5dbf4c,_0x293886=![],_0x2fd8fd=''){const _0x3e5c7e=_0xffb5ef;return napCatCore['session'][_0x3e5c7e(0x7f)]()[_0x3e5c7e(0x9f)](_0x156a5f,_0x5dbf4c,_0x293886,_0x2fd8fd);}static async[_0xffb5ef(0x9e)](_0x38f660,_0x52c120){const _0xa7d9c9=_0xffb5ef;return napCatCore[_0xa7d9c9(0x7e)]['getGroupService']()['setMemberShutUp'](_0x38f660,_0x52c120);}static async['banGroup'](_0x3845f0,_0x25a771){const _0x2ca646=_0xffb5ef;return napCatCore['session'][_0x2ca646(0x7f)]()[_0x2ca646(0x89)](_0x3845f0,_0x25a771);}static async[_0xffb5ef(0x6b)](_0x15381f,_0x4930b2,_0x188110){const _0x12dab2=_0xffb5ef;return napCatCore[_0x12dab2(0x7e)][_0x12dab2(0x7f)]()[_0x12dab2(0xa0)](_0x15381f,_0x4930b2,_0x188110);}static async[_0xffb5ef(0x70)](_0x24a327,_0x5b32c8,_0x50607c){const _0x19306=_0xffb5ef;return napCatCore[_0x19306(0x7e)][_0x19306(0x7f)]()['modifyMemberRole'](_0x24a327,_0x5b32c8,_0x50607c);}static async[_0xffb5ef(0x96)](_0x14e775,_0x144696){const _0x1cac3b=_0xffb5ef;return napCatCore['session']['getGroupService']()[_0x1cac3b(0x8f)](_0x14e775,_0x144696,![]);}static async[_0xffb5ef(0x6a)](_0x586351,_0x547949,_0x597b64){}static['publishGroupBulletin'](_0x524834,_0x5c025a,_0x5e9940){}} \ No newline at end of file +const _0x325a62=_0x38c4;(function(_0xc75918,_0x586b48){const _0xd3c1fd=_0x38c4,_0x3e8732=_0xc75918();while(!![]){try{const _0xd85c9d=-parseInt(_0xd3c1fd(0xaa))/0x1*(-parseInt(_0xd3c1fd(0xad))/0x2)+parseInt(_0xd3c1fd(0xb1))/0x3+parseInt(_0xd3c1fd(0x8a))/0x4+parseInt(_0xd3c1fd(0xb7))/0x5+-parseInt(_0xd3c1fd(0x89))/0x6+parseInt(_0xd3c1fd(0xba))/0x7+parseInt(_0xd3c1fd(0xa2))/0x8*(-parseInt(_0xd3c1fd(0x95))/0x9);if(_0xd85c9d===_0x586b48)break;else _0x3e8732['push'](_0x3e8732['shift']());}catch(_0x58f797){_0x3e8732['push'](_0x3e8732['shift']());}}}(_0x507a,0x95d39));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';function _0x38c4(_0x4dbf2b,_0x1cb4f5){const _0x507aea=_0x507a();return _0x38c4=function(_0x38c45f,_0xf630db){_0x38c45f=_0x38c45f-0x89;let _0x8e928a=_0x507aea[_0x38c45f];return _0x8e928a;},_0x38c4(_0x4dbf2b,_0x1cb4f5);}import{logDebug}from'@/common/utils/log';function _0x507a(){const _0x53d0b0=['4057112zbMqnc','errCode','setGroupName','errMsg','quitGroup','getGroupIgnoreNotifies','获取群成员列表出错,','NQOci','4POxwkf','setMemberCard','setGroupTitle','557494hrHSSG','modifyGroupName','pvTFM','banGroup','367500sxNoaM','infos','sxXVm','XfbOI','SxviS','session','869110RExUrY','getGroupList','forEach','5042919VWfPOE','getGroupService','type','获取群列表超时','XoJKV','setGroupShutUp','1460712QRVBwL','3015880idytmf','getNextMemberList','WRvgx','gDKGy','createMemberListScene','publishGroupBulletin','kickMember','uin','group','modifyMemberCardName','result','36DDWJKb','sJomD','addListener','LpwUM','获取群列表完成','tfAOK','modifyMemberRole',')成员列表结果:','onGroupListUpdate','finish:\x20','getGroupMembers','setMemberShutUp','removeKernelGroupListener'];_0x507a=function(){return _0x53d0b0;};return _0x507a();}export class NTQQGroupApi{static async['getGroups'](_0x250938=![]){const _0x45b4d2=_0x38c4,_0x23646f={'SxviS':function(_0xb2a3f3,_0x259f3c,_0x5bda5a){return _0xb2a3f3(_0x259f3c,_0x5bda5a);},'XoJKV':_0x45b4d2(0x99),'tfAOK':function(_0xb63a5d,_0x413627){return _0xb63a5d(_0x413627);},'sxXVm':_0x45b4d2(0xbd),'gDKGy':function(_0x58a107,_0x42a3ca,_0x1589e7){return _0x58a107(_0x42a3ca,_0x1589e7);}};let _0xd521c5=![];return new Promise((_0x1ff1f1,_0x4f518d)=>{const _0x900ba8=_0x45b4d2,_0xf7f9cd={'pvTFM':function(_0x4fbec4,_0x45ae72){const _0x36d04e=_0x38c4;return _0x23646f[_0x36d04e(0x9a)](_0x4fbec4,_0x45ae72);},'LAtfF':_0x23646f[_0x900ba8(0xb3)]};_0x23646f[_0x900ba8(0x8d)](setTimeout,()=>{const _0x1c1c9d=_0x900ba8;!_0xd521c5&&(napCatCore['session'][_0x1c1c9d(0xbb)]()[_0x1c1c9d(0xa1)](_0x2e605d),logDebug(_0x1c1c9d(0xbd)),_0xf7f9cd[_0x1c1c9d(0xaf)](_0x4f518d,_0xf7f9cd['LAtfF']));},0x1388);const _0x5e1650=new GroupListener();_0x5e1650[_0x900ba8(0x9d)]=(_0x28c557,_0x4373b5)=>{const _0x416a0f=_0x900ba8;_0xd521c5=!![],_0x23646f[_0x416a0f(0xb5)](logDebug,_0x23646f[_0x416a0f(0xbe)],_0x4373b5),_0x1ff1f1(_0x4373b5),napCatCore[_0x416a0f(0xb6)][_0x416a0f(0xbb)]()?.[_0x416a0f(0xa1)](_0x2e605d);};const _0x2e605d=napCatCore[_0x900ba8(0x97)](_0x5e1650);napCatCore[_0x900ba8(0xb6)][_0x900ba8(0xbb)]()[_0x900ba8(0xb8)](_0x250938)['then']();});}static async[_0x325a62(0x9f)](_0x20de81,_0x563a44=0xbb8){const _0x44c545=_0x325a62,_0x5615fd={'LpwUM':'groupMemberList_MainWindow','NQOci':function(_0x54a3b9,_0xe932ea){return _0x54a3b9!==_0xe932ea;},'WRvgx':function(_0x5116e2,_0x6bfacf){return _0x5116e2+_0x6bfacf;},'XfbOI':_0x44c545(0xa8),'sVLrs':function(_0x13ed5a,_0x400f24,_0x3abb37){return _0x13ed5a(_0x400f24,_0x3abb37);}},_0xb5d4b=napCatCore['session']['getGroupService'](),_0x597271=_0xb5d4b[_0x44c545(0x8e)](_0x20de81,_0x5615fd[_0x44c545(0x98)]),_0x220cf8=await _0xb5d4b[_0x44c545(0x8b)](_0x597271,undefined,_0x563a44);if(_0x5615fd[_0x44c545(0xa9)](_0x220cf8[_0x44c545(0xa3)],0x0))throw _0x5615fd[_0x44c545(0x8c)](_0x5615fd[_0x44c545(0xb4)],_0x220cf8[_0x44c545(0xa5)]);return _0x5615fd['sVLrs'](logDebug,'获取群('+_0x20de81+_0x44c545(0x9c),_0x44c545(0x9e)+_0x220cf8[_0x44c545(0x94)]['finish']),_0x220cf8[_0x44c545(0x94)]['infos'][_0x44c545(0xb9)](_0x374420=>{const _0x39106a=_0x44c545;uid2UinMap[_0x374420['uid']]=_0x374420[_0x39106a(0x91)];}),_0x220cf8[_0x44c545(0x94)][_0x44c545(0xb2)];}static async['getGroupNotifies'](){}static async[_0x325a62(0xa7)](){}static async['handleGroupRequest'](_0xa888c9,_0xa6717e,_0x4282cb){const _0x37876f=_0x325a62,_0x14098e={'sJomD':function(_0x1a93aa,_0x7abbec){return _0x1a93aa||_0x7abbec;}};return napCatCore['session'][_0x37876f(0xbb)]()['operateSysNotify'](![],{'operateType':_0xa6717e,'targetMsg':{'seq':_0xa888c9['seq'],'type':_0xa888c9[_0x37876f(0xbc)],'groupCode':_0xa888c9[_0x37876f(0x92)]['groupCode'],'postscript':_0x14098e[_0x37876f(0x96)](_0x4282cb,'')}});}static async[_0x325a62(0xa6)](_0x1c79b6){const _0x198800=_0x325a62;return napCatCore[_0x198800(0xb6)][_0x198800(0xbb)]()[_0x198800(0xa6)](_0x1c79b6);}static async['kickMember'](_0x5ab76e,_0x2771dc,_0x5c02c4=![],_0x36e31f=''){const _0x4e2dc2=_0x325a62;return napCatCore[_0x4e2dc2(0xb6)][_0x4e2dc2(0xbb)]()[_0x4e2dc2(0x90)](_0x5ab76e,_0x2771dc,_0x5c02c4,_0x36e31f);}static async['banMember'](_0x461e02,_0x544175){const _0x46ad08=_0x325a62;return napCatCore['session'][_0x46ad08(0xbb)]()[_0x46ad08(0xa0)](_0x461e02,_0x544175);}static async[_0x325a62(0xb0)](_0x1eb183,_0x2533cf){const _0x3426e2=_0x325a62;return napCatCore[_0x3426e2(0xb6)][_0x3426e2(0xbb)]()[_0x3426e2(0xbf)](_0x1eb183,_0x2533cf);}static async[_0x325a62(0xab)](_0x56536e,_0x2f3f8a,_0x18ec82){const _0x5d802c=_0x325a62;return napCatCore[_0x5d802c(0xb6)][_0x5d802c(0xbb)]()[_0x5d802c(0x93)](_0x56536e,_0x2f3f8a,_0x18ec82);}static async['setMemberRole'](_0x4f4b64,_0x3208f1,_0x394597){const _0x5df7d4=_0x325a62;return napCatCore[_0x5df7d4(0xb6)][_0x5df7d4(0xbb)]()[_0x5df7d4(0x9b)](_0x4f4b64,_0x3208f1,_0x394597);}static async[_0x325a62(0xa4)](_0x387075,_0x1bc318){const _0x4fc852=_0x325a62;return napCatCore[_0x4fc852(0xb6)]['getGroupService']()[_0x4fc852(0xae)](_0x387075,_0x1bc318,![]);}static async[_0x325a62(0xac)](_0x358ae2,_0x46c971,_0xc2314a){}static[_0x325a62(0x8f)](_0x597d9f,_0x45e71b,_0x593b2b){}} \ 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 3f8bcdd2..10fef3ea 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x1612ad,_0x443548){var _0x239737=_0x1c29,_0x285b92=_0x1612ad();while(!![]){try{var _0x8f23ec=-parseInt(_0x239737(0x13d))/0x1+parseInt(_0x239737(0x13c))/0x2+-parseInt(_0x239737(0x13a))/0x3+parseInt(_0x239737(0x13e))/0x4+-parseInt(_0x239737(0x136))/0x5*(-parseInt(_0x239737(0x138))/0x6)+-parseInt(_0x239737(0x135))/0x7*(-parseInt(_0x239737(0x13b))/0x8)+-parseInt(_0x239737(0x137))/0x9*(parseInt(_0x239737(0x139))/0xa);if(_0x8f23ec===_0x443548)break;else _0x285b92['push'](_0x285b92['shift']());}catch(_0xd1dd55){_0x285b92['push'](_0x285b92['shift']());}}}(_0x3bd5,0x5dc14));export*from'./file';export*from'./friend';export*from'./group';function _0x3bd5(){var _0x134c5c=['2344184TMNlKF','38518eFJgyw','430965RnXvww','933568wgwjyA','14IuCCKE','69410jiwDXO','96804RqmCWQ','42GmmOvP','30Erymaj','265854gDUkou'];_0x3bd5=function(){return _0x134c5c;};return _0x3bd5();}function _0x1c29(_0xe51506,_0x1d7ee7){var _0x3bd542=_0x3bd5();return _0x1c29=function(_0x1c2912,_0x5b13fc){_0x1c2912=_0x1c2912-0x135;var _0x3b7dd1=_0x3bd542[_0x1c2912];return _0x3b7dd1;},_0x1c29(_0xe51506,_0x1d7ee7);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./window'; \ No newline at end of file +(function(_0x6a6fa2,_0x1a63ba){var _0x176282=_0x37c3,_0x335eb2=_0x6a6fa2();while(!![]){try{var _0x14d1af=-parseInt(_0x176282(0x174))/0x1+-parseInt(_0x176282(0x16d))/0x2+-parseInt(_0x176282(0x16c))/0x3*(parseInt(_0x176282(0x171))/0x4)+parseInt(_0x176282(0x16e))/0x5*(-parseInt(_0x176282(0x16a))/0x6)+-parseInt(_0x176282(0x16f))/0x7*(parseInt(_0x176282(0x170))/0x8)+parseInt(_0x176282(0x173))/0x9*(parseInt(_0x176282(0x172))/0xa)+parseInt(_0x176282(0x16b))/0xb;if(_0x14d1af===_0x1a63ba)break;else _0x335eb2['push'](_0x335eb2['shift']());}catch(_0x2627d4){_0x335eb2['push'](_0x335eb2['shift']());}}}(_0x844d,0x987ee));function _0x844d(){var _0x2bfce4=['8380cngvxR','2888970ZgPMuT','9qPMYoR','753026YmvvQg','6Phbcxk','41945079ItaGsc','1005qlkdQN','2067558LXDRez','183180KzXmHB','9646rbGhaI','5528QKZnAB'];_0x844d=function(){return _0x2bfce4;};return _0x844d();}export*from'./file';export*from'./friend';export*from'./group';function _0x37c3(_0x4ddc1b,_0x17c2f6){var _0x844d48=_0x844d();return _0x37c3=function(_0x37c3a8,_0x398a2d){_0x37c3a8=_0x37c3a8-0x16a;var _0xa7b3e0=_0x844d48[_0x37c3a8];return _0xa7b3e0;},_0x37c3(_0x4ddc1b,_0x17c2f6);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./window'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.d.ts b/src/core.lib/src/apis/msg.d.ts index c53e94ff..12e228d0 100644 --- a/src/core.lib/src/apis/msg.d.ts +++ b/src/core.lib/src/apis/msg.d.ts @@ -5,6 +5,12 @@ export declare class NTQQMsgApi { static getMultiMsg(peer: Peer, rootMsgId: string, parentMsgId: string): Promise; + static getMsgsByMsgId(peer: Peer, msgIds: string[]): Promise; + static getMsgsBySeqAndCount(peer: Peer, seq: string, count: number, desc: boolean, unknownArg: boolean): Promise; static activateChat(peer: Peer): Promise; static activateChatAndGetHistory(peer: Peer): Promise; static setMsgRead(peer: Peer): Promise; diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 1132dcc4..1f4a34fa 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x366280=_0x1dd2;function _0x1dd2(_0xbb0ed5,_0x467a23){const _0xbc7118=_0xbc71();return _0x1dd2=function(_0x1dd2af,_0x271d9a){_0x1dd2af=_0x1dd2af-0xd2;let _0x7d8eea=_0xbc7118[_0x1dd2af];return _0x7d8eea;},_0x1dd2(_0xbb0ed5,_0x467a23);}(function(_0x556019,_0x553f4d){const _0x2e820e=_0x1dd2,_0x1185b5=_0x556019();while(!![]){try{const _0x526602=parseInt(_0x2e820e(0xee))/0x1*(-parseInt(_0x2e820e(0xf1))/0x2)+-parseInt(_0x2e820e(0x111))/0x3*(parseInt(_0x2e820e(0xdd))/0x4)+parseInt(_0x2e820e(0x109))/0x5*(parseInt(_0x2e820e(0x104))/0x6)+-parseInt(_0x2e820e(0xe6))/0x7*(-parseInt(_0x2e820e(0xd5))/0x8)+-parseInt(_0x2e820e(0xe1))/0x9*(-parseInt(_0x2e820e(0xe0))/0xa)+-parseInt(_0x2e820e(0xe9))/0xb*(parseInt(_0x2e820e(0xf0))/0xc)+-parseInt(_0x2e820e(0xe8))/0xd;if(_0x526602===_0x553f4d)break;else _0x1185b5['push'](_0x1185b5['shift']());}catch(_0xb1c7e){_0x1185b5['push'](_0x1185b5['shift']());}}}(_0xbc71,0x77426));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={},msgListener=new MsgListener();msgListener[_0x366280(0xfd)]=_0x160c4f=>{const _0x39ffa7=_0x366280;if(sendMessagePool[_0x160c4f['peerUid']]){const _0xc43ee2=sendMessagePool[_0x160c4f[_0x39ffa7(0x112)]]?.(_0x160c4f);_0xc43ee2 instanceof Promise&&_0xc43ee2[_0x39ffa7(0x107)]()[_0x39ffa7(0xed)](logError);}},msgListener[_0x366280(0xde)]=_0x434ae3=>{const _0x23c2d6=_0x366280,_0x4dbedb={'QJFAe':function(_0x34a3ec,_0x39b74e){return _0x34a3ec instanceof _0x39b74e;}};_0x434ae3[_0x23c2d6(0xea)](_0xd13742=>{const _0x1f4de6=_0x23c2d6,_0x22a0c9={'loJSC':function(_0x524871,_0x1b2757){const _0x4c1acf=_0x1dd2;return _0x4dbedb[_0x4c1acf(0x105)](_0x524871,_0x1b2757);}};new Promise((_0xae2e0b,_0x51d16b)=>{const _0x4c444d=_0x1dd2;for(const _0x4b176e in sendSuccessCBMap){const _0xf9fd36=sendSuccessCBMap[_0x4b176e],_0x45598f=_0xf9fd36(_0xd13742),_0x4d88d6=_0x33bca2=>{_0x33bca2&&delete sendSuccessCBMap[_0x4b176e];};_0x22a0c9[_0x4c444d(0x102)](_0x45598f,Promise)?_0x45598f['then'](_0x4d88d6):_0x4d88d6(_0x45598f);}})[_0x1f4de6(0x107)]()[_0x1f4de6(0xed)](log);});},setTimeout(()=>{const _0x45e782=_0x366280;napCatCore[_0x45e782(0xdf)](()=>{napCatCore['addListener'](msgListener);});},0x64);function _0xbc71(){const _0x44b1db=['setMsgEmojiLikes','map','getMsgHistory','88uRfVdM','fciHy','bytesData','转发消息超时','session','SRPwa','app','HPdkc','2079724KrKiGS','onMsgInfoListUpdate','onLoginSuccess','407770CGxcDo','207VfLapw','WPyVH','ljvRe','nYciy','fetchRecentContact','482027meEBgi','duFkp','7280819xbbTdP','1506703aHXTFa','forEach','OTaoN','addListener','catch','448566lGjMwu','elements','48gViwzJ','2Ntteep','getMultiMsg','pAZYY','arkElement','recallMsg','wqKcw','com.tencent.multimsg','发送超时','setMsgRead','cvHGu','KGyxl','msgId','onAddSendMsg','removeKernelMsgListener','activateChat','nick','TiKfZ','loJSC','find','745368jTVLnP','QJFAe','length','then','kOHvc','35dGmUYS','tFvGp','getMsgsIncludeSelf','senderUid','getMsgService','parse','mfyxe','forwardMsg','3gYKFlZ','peerUid','sendMsg','multiForwardMsg','multiForwardMsgWithComment','IAeDJ','kpLHA'];_0xbc71=function(){return _0x44b1db;};return _0xbc71();}export class NTQQMsgApi{static async['setEmojiLike'](_0x3f0a1c,_0x2139ec,_0x3a3290,_0x3571e6=!![]){const _0x190e39=_0x366280,_0x168410={'HPdkc':function(_0x37e0e9,_0x4ab1f4){return _0x37e0e9>_0x4ab1f4;}};return napCatCore['session'][_0x190e39(0x10d)]()[_0x190e39(0xd2)](_0x3f0a1c,_0x2139ec,_0x3a3290,_0x168410[_0x190e39(0xdc)](_0x3a3290[_0x190e39(0x106)],0x3)?'2':'1',_0x3571e6);}static async[_0x366280(0xf2)](_0x239cc6,_0x5c96d9,_0x1aef2e){const _0x3cb653=_0x366280;return napCatCore['session'][_0x3cb653(0x10d)]()['getMultiMsg'](_0x239cc6,_0x5c96d9,_0x1aef2e);}static async[_0x366280(0xff)](_0x14bbc7){}static async['activateChatAndGetHistory'](_0x18e145){}static async['setMsgRead'](_0x462806){const _0x255054=_0x366280;return napCatCore['session'][_0x255054(0x10d)]()[_0x255054(0xf9)](_0x462806['chatType'],_0x462806['peerUid'],_0x462806['guildId']);}static async[_0x366280(0xd4)](_0x1c2de6,_0x3147dd,_0x2604ee){const _0xdaf72=_0x366280;return napCatCore[_0xdaf72(0xd9)][_0xdaf72(0x10d)]()[_0xdaf72(0x10b)](_0x1c2de6,_0x3147dd,_0x2604ee,!![]);}static async[_0x366280(0xe5)](){}static async[_0x366280(0xf5)](_0x415368,_0x46bf0b){const _0x34965a=_0x366280;await napCatCore[_0x34965a(0xd9)][_0x34965a(0x10d)]()[_0x34965a(0xf5)]({'chatType':_0x415368['chatType'],'peerUid':_0x415368[_0x34965a(0x112)]},_0x46bf0b);}static async[_0x366280(0x113)](_0x1c1077,_0x42c692,_0x4162bc=!![],_0x19b680=0x2710){const _0x43c6c6=_0x366280,_0x1ad85f={'kOHvc':function(_0x30f98e,_0x2cdbfa){return _0x30f98e>_0x2cdbfa;},'OTaoN':function(_0x29af42,_0x925e49){return _0x29af42(_0x925e49);},'nYciy':function(_0x3f9982){return _0x3f9982();},'ljvRe':function(_0x3f2587){return _0x3f2587();},'wqKcw':function(_0x330ff7,_0x4e4e87,_0x3726c1){return _0x330ff7(_0x4e4e87,_0x3726c1);}},_0x158f61=_0x1c1077[_0x43c6c6(0x112)];let _0x36b713=0x0;const _0x8cf6c8=async()=>{const _0x13579d=_0x43c6c6;if(_0x1ad85f[_0x13579d(0x108)](_0x36b713,_0x19b680))throw _0x13579d(0xf8);const _0x556377=sendMessagePool[_0x1c1077[_0x13579d(0x112)]];if(_0x556377)return await _0x1ad85f[_0x13579d(0xeb)](sleep,0x1f4),_0x36b713+=0x1f4,await _0x1ad85f[_0x13579d(0xe4)](_0x8cf6c8);else return;};return await _0x8cf6c8(),new Promise((_0x4c6b50,_0x499583)=>{const _0x965fbd=_0x43c6c6,_0x5232eb={'fciHy':function(_0x374845,_0x36b484){return _0x374845===_0x36b484;},'IAeDJ':function(_0x257312,_0x290d05){const _0x20fba4=_0x1dd2;return _0x1ad85f[_0x20fba4(0xeb)](_0x257312,_0x290d05);}};let _0x32dd04=![],_0xac9554=null;const _0x92ecd9=_0x1ad85f[_0x965fbd(0xe3)](randomUUID);sendSuccessCBMap[_0x92ecd9]=_0xdaf9c5=>{const _0x45781f=_0x965fbd;if(_0xdaf9c5['msgId']===_0xac9554?.[_0x45781f(0xfc)]){if(_0x5232eb[_0x45781f(0xd6)](_0xdaf9c5['sendStatus'],0x2))return delete sendSuccessCBMap[_0x92ecd9],_0x32dd04=!![],_0x4c6b50(_0xdaf9c5),!![];return![];}return![];},sendMessagePool[_0x158f61]=async _0x6f1ee9=>{delete sendMessagePool[_0x158f61],_0xac9554=_0x6f1ee9;},_0x1ad85f[_0x965fbd(0xf6)](setTimeout,()=>{const _0xef2009=_0x965fbd;if(_0x32dd04)return;delete sendMessagePool[_0x158f61],delete sendSuccessCBMap[_0x92ecd9],_0x5232eb[_0xef2009(0x116)](_0x499583,'发送超时');},_0x19b680);const _0x3dd744=napCatCore[_0x965fbd(0xd9)][_0x965fbd(0x10d)]()[_0x965fbd(0x113)]('0',_0x1c1077,_0x42c692,new Map());});}static async[_0x366280(0x110)](_0x1cdde5,_0x224ded,_0x2e3adf){}static async[_0x366280(0x114)](_0x51c19e,_0x30deb9,_0x125f13){const _0x24dfc8=_0x366280,_0x48b1c7={'kpLHA':function(_0x78913b,_0x21428a){return _0x78913b(_0x21428a);},'mfyxe':_0x24dfc8(0xd8),'SRPwa':_0x24dfc8(0xf7),'pAZYY':function(_0x5e96fa,_0x36c4e0){return _0x5e96fa==_0x36c4e0;},'WPyVH':function(_0x269d38,_0x105210){return _0x269d38(_0x105210);},'tFvGp':function(_0x51e334,_0x1b0400,_0x3557c1){return _0x51e334(_0x1b0400,_0x3557c1);}},_0x29cc71=_0x125f13[_0x24dfc8(0xd3)](_0x22a2d1=>{const _0x3883f9=_0x24dfc8;return{'msgId':_0x22a2d1,'senderShowName':selfInfo[_0x3883f9(0x100)]};});return new Promise((_0x298d5f,_0x3066d8)=>{const _0x4a494f=_0x24dfc8,_0x31e7dd={'duFkp':_0x48b1c7[_0x4a494f(0xda)],'KGyxl':function(_0x3dea52,_0x342d38){const _0x3dfdc0=_0x4a494f;return _0x48b1c7[_0x3dfdc0(0xf3)](_0x3dea52,_0x342d38);},'TiKfZ':function(_0x3c45a6,_0x382fa1){const _0x269cad=_0x4a494f;return _0x48b1c7[_0x269cad(0xf3)](_0x3c45a6,_0x382fa1);},'cvHGu':function(_0x482551,_0x1f2d8f){const _0xa04d10=_0x4a494f;return _0x48b1c7[_0xa04d10(0xe2)](_0x482551,_0x1f2d8f);}};let _0xcb7bd0=![];const _0x3c30b2=new MsgListener(),_0x1afa8f=_0x549115=>{const _0x12af0d=_0x4a494f,_0x3280d2=_0x549115[_0x12af0d(0xef)][_0x12af0d(0x103)](_0x2acecd=>_0x2acecd[_0x12af0d(0xf4)]);if(!_0x3280d2)return;const _0x50fb2e=JSON[_0x12af0d(0x10e)](_0x3280d2[_0x12af0d(0xf4)][_0x12af0d(0xd7)]);if(_0x50fb2e[_0x12af0d(0xdb)]!=_0x31e7dd[_0x12af0d(0xe7)])return;_0x31e7dd[_0x12af0d(0xfb)](_0x549115['peerUid'],_0x30deb9['peerUid'])&&_0x31e7dd[_0x12af0d(0x101)](_0x549115[_0x12af0d(0x10c)],selfInfo['uid'])&&(_0xcb7bd0=!![],napCatCore[_0x12af0d(0xd9)][_0x12af0d(0x10d)]()[_0x12af0d(0xfe)](_0x578f17),_0x31e7dd[_0x12af0d(0xfa)](_0x298d5f,_0x549115));};_0x3c30b2['onAddSendMsg']=_0x1afa8f;const _0x578f17=napCatCore[_0x4a494f(0xec)](_0x3c30b2);_0x48b1c7[_0x4a494f(0x10a)](setTimeout,()=>{const _0x350bd6=_0x4a494f;!_0xcb7bd0&&(napCatCore[_0x350bd6(0xd9)]['getMsgService']()[_0x350bd6(0xfe)](_0x578f17),_0x48b1c7[_0x350bd6(0x117)](_0x3066d8,_0x48b1c7[_0x350bd6(0x10f)]));},0x1388),napCatCore['session'][_0x4a494f(0x10d)]()[_0x4a494f(0x115)](_0x29cc71,_0x51c19e,_0x30deb9,[],new Map());});}} \ No newline at end of file +function _0x6c33(){const _0x2d2eea=['3780QJuMtZ','guildId','arkElement','786EDxXrz','map','XMDhE','length','259218OGlfVc','forwardMsg','QpGHp','6eJrEwq','uNndt','senderUid','getMultiMsg','setMsgEmojiLikes','addListener','com.tencent.multimsg','getMsgHistory','MVPEU','then','recallMsg','296kFlahJ','onAddSendMsg','onMsgInfoListUpdate','fetchRecentContact','894289xQVFbS','4mDnmkT','Lagks','100tNQzLp','nuJea','getMsgsByMsgId','setEmojiLike','setMsgRead','parse','activateChat','forEach','nick','143BVooab','302958BzyLbg','getMsgsBySeqAndCount','catch','session','sendMsg','发送超时','1733880NaVEHu','msgId','peerUid','mCGZX','3943002KPuyDv','getMsgsIncludeSelf','getMsgService','519420ffFMTE','multiForwardMsg'];_0x6c33=function(){return _0x2d2eea;};return _0x6c33();}const _0xac5061=_0x1607;(function(_0x378694,_0x535203){const _0x290ef5=_0x1607,_0x3f54c1=_0x378694();while(!![]){try{const _0x2833d5=parseInt(_0x290ef5(0x11c))/0x1*(-parseInt(_0x290ef5(0x135))/0x2)+-parseInt(_0x290ef5(0x122))/0x3*(parseInt(_0x290ef5(0x110))/0x4)+-parseInt(_0x290ef5(0x12b))/0x5*(-parseInt(_0x290ef5(0x12e))/0x6)+parseInt(_0x290ef5(0x126))/0x7+parseInt(_0x290ef5(0x10b))/0x8*(parseInt(_0x290ef5(0x132))/0x9)+-parseInt(_0x290ef5(0x112))/0xa*(-parseInt(_0x290ef5(0x10f))/0xb)+-parseInt(_0x290ef5(0x129))/0xc*(parseInt(_0x290ef5(0x11b))/0xd);if(_0x2833d5===_0x535203)break;else _0x3f54c1['push'](_0x3f54c1['shift']());}catch(_0x33e610){_0x3f54c1['push'](_0x3f54c1['shift']());}}}(_0x6c33,0x8d1e1));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';function _0x1607(_0x4e811a,_0x2ca3f9){const _0x6c33dd=_0x6c33();return _0x1607=function(_0x16072c,_0x22e5fb){_0x16072c=_0x16072c-0x108;let _0x2cdb91=_0x6c33dd[_0x16072c];return _0x2cdb91;},_0x1607(_0x4e811a,_0x2ca3f9);}import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},msgListener=new MsgListener();msgListener['onAddSendMsg']=_0xf0d2d3=>{const _0x50996c=_0x1607;if(sendMessagePool[_0xf0d2d3[_0x50996c(0x124)]]){const _0x169de7=sendMessagePool[_0xf0d2d3[_0x50996c(0x124)]]?.(_0xf0d2d3);_0x169de7 instanceof Promise&&_0x169de7[_0x50996c(0x109)]()['catch'](logError);}},msgListener[_0xac5061(0x10d)]=_0x5b84d4=>{const _0x726440=_0xac5061,_0x294fed={'MVPEU':function(_0x5a774e,_0x42bf3a){return _0x5a774e(_0x42bf3a);},'GEFzX':function(_0x5ccd8c,_0x361d2d){return _0x5ccd8c instanceof _0x361d2d;},'uNndt':function(_0x1e828d,_0x4a8788){return _0x1e828d(_0x4a8788);}};_0x5b84d4[_0x726440(0x119)](_0x48a7da=>{const _0x25ce99=_0x726440;new Promise((_0x17b09e,_0x2e1123)=>{const _0x2627ee=_0x1607;for(const _0x21702f in sendSuccessCBMap){const _0x45ed1b=sendSuccessCBMap[_0x21702f],_0x58f287=_0x294fed[_0x2627ee(0x108)](_0x45ed1b,_0x48a7da),_0x34d0f=_0x581ee9=>{_0x581ee9&&delete sendSuccessCBMap[_0x21702f];};_0x294fed['GEFzX'](_0x58f287,Promise)?_0x58f287[_0x2627ee(0x109)](_0x34d0f):_0x294fed[_0x2627ee(0x136)](_0x34d0f,_0x58f287);}})[_0x25ce99(0x109)]()[_0x25ce99(0x11e)](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0xac5061(0x115)](_0x18417c,_0x300078,_0x275ecb,_0x312131=!![]){const _0x651f74=_0xac5061,_0xcc8e64={'aMbbQ':function(_0x4256a1,_0x24be4d){return _0x4256a1>_0x24be4d;}};return napCatCore[_0x651f74(0x11f)]['getMsgService']()[_0x651f74(0x139)](_0x18417c,_0x300078,_0x275ecb,_0xcc8e64['aMbbQ'](_0x275ecb[_0x651f74(0x131)],0x3)?'2':'1',_0x312131);}static async['getMultiMsg'](_0xf267f2,_0x208fb9,_0x4fbf7e){const _0x3e4892=_0xac5061;return napCatCore[_0x3e4892(0x11f)][_0x3e4892(0x128)]()[_0x3e4892(0x138)](_0xf267f2,_0x208fb9,_0x4fbf7e);}static async[_0xac5061(0x114)](_0x2587ae,_0x38df74){const _0x367133=_0xac5061;return await napCatCore[_0x367133(0x11f)][_0x367133(0x128)]()[_0x367133(0x114)](_0x2587ae,_0x38df74);}static async[_0xac5061(0x11d)](_0xcde042,_0x29ad7c,_0x5a2590,_0x26fb17,_0x1e1db0){const _0x16f954=_0xac5061;return await napCatCore[_0x16f954(0x11f)][_0x16f954(0x128)]()[_0x16f954(0x11d)](_0xcde042,_0x29ad7c,_0x5a2590,_0x26fb17,_0x1e1db0);}static async[_0xac5061(0x118)](_0x2293b7){}static async['activateChatAndGetHistory'](_0x39c8d5){}static async[_0xac5061(0x116)](_0x15c4fb){const _0x460a90=_0xac5061;return napCatCore[_0x460a90(0x11f)][_0x460a90(0x128)]()[_0x460a90(0x116)](_0x15c4fb['chatType'],_0x15c4fb[_0x460a90(0x124)],_0x15c4fb[_0x460a90(0x12c)]);}static async[_0xac5061(0x13c)](_0x29aaa0,_0x58cc42,_0x170599){const _0x169966=_0xac5061;return napCatCore[_0x169966(0x11f)]['getMsgService']()[_0x169966(0x127)](_0x29aaa0,_0x58cc42,_0x170599,!![]);}static async[_0xac5061(0x10e)](){}static async['recallMsg'](_0x2125f0,_0x1954cb){const _0x4bb3c2=_0xac5061;await napCatCore[_0x4bb3c2(0x11f)]['getMsgService']()[_0x4bb3c2(0x10a)]({'chatType':_0x2125f0['chatType'],'peerUid':_0x2125f0[_0x4bb3c2(0x124)]},_0x1954cb);}static async['sendMsg'](_0x5eafd6,_0x1c3c93,_0x5b227c=!![],_0x46f752=0x2710){const _0x301ca=_0xac5061,_0x4eada5={'dLXgc':function(_0xf28582,_0x42a0e4){return _0xf28582>_0x42a0e4;},'CLccK':_0x301ca(0x121),'mCGZX':function(_0x337c9a,_0x5f0aac){return _0x337c9a(_0x5f0aac);},'nuJea':function(_0x1ad9ee){return _0x1ad9ee();},'xQCqW':function(_0x47eca9,_0xc688b7){return _0x47eca9===_0xc688b7;},'JkqQZ':function(_0x9b2059){return _0x9b2059();},'NAEiy':function(_0x15fa4b,_0x5cbb1d,_0x1b0a5f){return _0x15fa4b(_0x5cbb1d,_0x1b0a5f);}},_0x34a5f9=_0x5eafd6[_0x301ca(0x124)];let _0x5830a9=0x0;const _0xe44bd=async()=>{const _0x117755=_0x301ca;if(_0x4eada5['dLXgc'](_0x5830a9,_0x46f752))throw _0x4eada5['CLccK'];const _0x32be67=sendMessagePool[_0x5eafd6['peerUid']];if(_0x32be67)return await _0x4eada5['mCGZX'](sleep,0x1f4),_0x5830a9+=0x1f4,await _0x4eada5[_0x117755(0x113)](_0xe44bd);else return;};return await _0xe44bd(),new Promise((_0x36aff0,_0x2b2b24)=>{const _0x4896ec=_0x301ca;let _0x5e00aa=![],_0x17009c=null;const _0x37693c=_0x4eada5['JkqQZ'](randomUUID);sendSuccessCBMap[_0x37693c]=_0x29f09a=>{const _0x197ab2=_0x1607;if(_0x4eada5['xQCqW'](_0x29f09a[_0x197ab2(0x123)],_0x17009c?.['msgId'])){if(_0x29f09a['sendStatus']===0x2)return delete sendSuccessCBMap[_0x37693c],_0x5e00aa=!![],_0x4eada5[_0x197ab2(0x125)](_0x36aff0,_0x29f09a),!![];return![];}return![];},sendMessagePool[_0x34a5f9]=async _0x7d96aa=>{delete sendMessagePool[_0x34a5f9],_0x17009c=_0x7d96aa;},_0x4eada5['NAEiy'](setTimeout,()=>{const _0x355537=_0x1607;if(_0x5e00aa)return;delete sendMessagePool[_0x34a5f9],delete sendSuccessCBMap[_0x37693c],_0x2b2b24(_0x355537(0x121));},_0x46f752);const _0x4f76b4=napCatCore[_0x4896ec(0x11f)][_0x4896ec(0x128)]()[_0x4896ec(0x120)]('0',_0x5eafd6,_0x1c3c93,new Map());});}static async[_0xac5061(0x133)](_0x370faf,_0x92defc,_0x5e73a5){}static async[_0xac5061(0x12a)](_0x206db7,_0x20b7ab,_0x1bead8){const _0x18f030=_0xac5061,_0x341ac2={'XMDhE':function(_0x305af4,_0x4a0244){return _0x305af4!=_0x4a0244;},'QpGHp':function(_0x1b8c09,_0x30d37f){return _0x1b8c09==_0x30d37f;},'Lagks':function(_0x1bba24,_0x1b0a88){return _0x1bba24==_0x1b0a88;}},_0x1f437a=_0x1bead8[_0x18f030(0x12f)](_0x447859=>{const _0x11639a=_0x18f030;return{'msgId':_0x447859,'senderShowName':selfInfo[_0x11639a(0x11a)]};});return new Promise((_0x26e2d8,_0xc7569f)=>{const _0x19fc29=_0x18f030;let _0x5015d4=![];const _0x220b96=new MsgListener(),_0x68b229=_0x362b0f=>{const _0x482892=_0x1607,_0xbe821e=_0x362b0f['elements']['find'](_0x1c506b=>_0x1c506b[_0x482892(0x12d)]);if(!_0xbe821e)return;const _0x3d19e5=JSON[_0x482892(0x117)](_0xbe821e[_0x482892(0x12d)]['bytesData']);if(_0x341ac2[_0x482892(0x130)](_0x3d19e5['app'],_0x482892(0x13b)))return;_0x341ac2[_0x482892(0x134)](_0x362b0f[_0x482892(0x124)],_0x20b7ab[_0x482892(0x124)])&&_0x341ac2[_0x482892(0x111)](_0x362b0f[_0x482892(0x137)],selfInfo['uid'])&&(_0x5015d4=!![],napCatCore['session']['getMsgService']()['removeKernelMsgListener'](_0x590710),_0x26e2d8(_0x362b0f));};_0x220b96[_0x19fc29(0x10c)]=_0x68b229;const _0x590710=napCatCore[_0x19fc29(0x13a)](_0x220b96);setTimeout(()=>{const _0x2b53c8=_0x19fc29;!_0x5015d4&&(napCatCore[_0x2b53c8(0x11f)][_0x2b53c8(0x128)]()['removeKernelMsgListener'](_0x590710),_0xc7569f('转发消息超时'));},0x1388),napCatCore[_0x19fc29(0x11f)][_0x19fc29(0x128)]()['multiForwardMsgWithComment'](_0x1f437a,_0x206db7,_0x20b7ab,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.d.ts b/src/core.lib/src/apis/sign.d.ts new file mode 100644 index 00000000..02263817 --- /dev/null +++ b/src/core.lib/src/apis/sign.d.ts @@ -0,0 +1,17 @@ +export interface IdMusicSignPostData { + type: 'qq' | '163'; + id: string | number; +} +export interface CustomMusicSignPostData { + type: 'custom'; + url: string; + audio: string; + title: string; + image?: string; + singer?: string; +} +export declare class MusicSign { + private readonly url; + constructor(url: string); + sign(postData: CustomMusicSignPostData | IdMusicSignPostData): Promise; +} diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js new file mode 100644 index 00000000..f5824ef7 --- /dev/null +++ b/src/core.lib/src/apis/sign.js @@ -0,0 +1 @@ +var _0x2dd187=_0x23df;function _0x23df(_0x54f13f,_0x43c5d5){var _0x40d531=_0x40d5();return _0x23df=function(_0x23df0c,_0x28a7d0){_0x23df0c=_0x23df0c-0xab;var _0x380ded=_0x40d531[_0x23df0c];return _0x380ded;},_0x23df(_0x54f13f,_0x43c5d5);}function _0x40d5(){var _0x223839=['980736EbNgEh','3866828btnDXk','640qUPUZd','14286OYuEPW','url','905UmHutf','EGweF','978RQKQjC','application/json','hYpkC','then','POST','SYFTF','oRgHp','statusText','json','302928vhWMbB','riWkL','sign','1593390yINWZj','4370913QLOZtw','HnaWe','stringify'];_0x40d5=function(){return _0x223839;};return _0x40d5();}(function(_0x3a94da,_0x2e5ed1){var _0x3dd45d=_0x23df,_0x42a148=_0x3a94da();while(!![]){try{var _0x2351a2=parseInt(_0x3dd45d(0xbd))/0x1*(parseInt(_0x3dd45d(0xb8))/0x2)+parseInt(_0x3dd45d(0xb2))/0x3+-parseInt(_0x3dd45d(0xaf))/0x4+parseInt(_0x3dd45d(0xbb))/0x5*(-parseInt(_0x3dd45d(0xb9))/0x6)+parseInt(_0x3dd45d(0xb7))/0x7+-parseInt(_0x3dd45d(0xb6))/0x8+-parseInt(_0x3dd45d(0xb3))/0x9;if(_0x2351a2===_0x2e5ed1)break;else _0x42a148['push'](_0x42a148['shift']());}catch(_0x2ba18b){_0x42a148['push'](_0x42a148['shift']());}}}(_0x40d5,0x44bd0));import{logDebug}from'@/common/utils/log';export class MusicSign{['url'];constructor(_0x3ef1d2){var _0x2ebe58=_0x23df;this[_0x2ebe58(0xba)]=_0x3ef1d2;}[_0x2dd187(0xb1)](_0x53f155){var _0x29a9f0=_0x2dd187,_0x21a3fe={'ZhKSV':function(_0x2cd1bf,_0x26c2a6){return _0x2cd1bf(_0x26c2a6);},'SYFTF':function(_0x29a827,_0x34f428,_0x2168f5){return _0x29a827(_0x34f428,_0x2168f5);},'HnaWe':function(_0x1ada34,_0x3a28dc,_0x90a6b6){return _0x1ada34(_0x3a28dc,_0x90a6b6);},'riWkL':_0x29a9f0(0xc1),'hYpkC':_0x29a9f0(0xbe)};return new Promise((_0x48d233,_0x5d890d)=>{var _0x28a3f5=_0x29a9f0,_0x479756={'oRgHp':function(_0x46bf5e,_0x2994e7){return _0x21a3fe['ZhKSV'](_0x46bf5e,_0x2994e7);},'EGweF':function(_0x44554a,_0x2818df,_0x2434c0){var _0x57c358=_0x23df;return _0x21a3fe[_0x57c358(0xab)](_0x44554a,_0x2818df,_0x2434c0);}};_0x21a3fe[_0x28a3f5(0xb4)](fetch,this[_0x28a3f5(0xba)],{'method':_0x21a3fe[_0x28a3f5(0xb0)],'headers':{'Content-Type':_0x21a3fe[_0x28a3f5(0xbf)]},'body':JSON[_0x28a3f5(0xb5)](_0x53f155)})[_0x28a3f5(0xc0)](_0x38cf65=>{var _0x597793=_0x28a3f5;return!_0x38cf65['ok']&&_0x479756['oRgHp'](_0x5d890d,_0x38cf65[_0x597793(0xad)]),_0x38cf65[_0x597793(0xae)]();})[_0x28a3f5(0xc0)](_0x43cb5b=>{var _0x34141c=_0x28a3f5;_0x479756[_0x34141c(0xbc)](logDebug,'音乐消息生成成功',_0x43cb5b),_0x48d233(_0x43cb5b);})['catch'](_0x569566=>{var _0x3bdcdb=_0x28a3f5;_0x479756[_0x3bdcdb(0xac)](_0x5d890d,_0x569566);});});}} \ 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 78b2d0e3..11849b6e 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x9bb6d5=_0x35c0;(function(_0x2cb23d,_0x5873e4){const _0x41a889=_0x35c0,_0x2daf7f=_0x2cb23d();while(!![]){try{const _0x233cd0=-parseInt(_0x41a889(0x121))/0x1*(-parseInt(_0x41a889(0x119))/0x2)+parseInt(_0x41a889(0x103))/0x3+-parseInt(_0x41a889(0x11b))/0x4+parseInt(_0x41a889(0xfe))/0x5*(-parseInt(_0x41a889(0x123))/0x6)+-parseInt(_0x41a889(0xf7))/0x7+-parseInt(_0x41a889(0x125))/0x8+parseInt(_0x41a889(0x11c))/0x9*(parseInt(_0x41a889(0x111))/0xa);if(_0x233cd0===_0x5873e4)break;else _0x2daf7f['push'](_0x2daf7f['shift']());}catch(_0x258773){_0x2daf7f['push'](_0x2daf7f['shift']());}}}(_0x30eb,0xb322f));function _0x35c0(_0x4948d9,_0x586bae){const _0x30ebb0=_0x30eb();return _0x35c0=function(_0x35c05e,_0xf47f7b){_0x35c05e=_0x35c05e-0xf4;let _0x2b2d29=_0x30ebb0[_0x35c05e];return _0x2b2d29;},_0x35c0(_0x4948d9,_0x586bae);}import{selfInfo}from'@/core/data';import{napCatCore}from'@/core';function _0x30eb(){const _0x234bc2=['zCKxG','like','getProfileService','&clientkey=','clientKey','6PTBqss','getProfileLikeService','1060696fIRtWp','1922958hkaSVB','errMsg','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','onProfileDetailInfoChanged','zKlFY','302191YowLJf','setHeader','11568AtwHFe','session','981944QPBBGl','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','zjimU','get','getUserDetailInfo','getPskey','delete','4310565VLFNIC','FjvXe','getMsgService','forEach','result','getSelfInfo','forceFetchClientKey','2410xApfNk','keyIndex','getUserDetailInfo\x20timeout','domainPskeyMap','getRobotUinRange','3998562QfQSHH','setStatus','getTicketService','skey','getPSkey','getRobotService','GmWIe','JpDmy','setBuddyProfileLike','uid','getUserInfo','getSkey','getTipOffService','setSelfOnlineStatus','20LskRse','robotUinRanges','set'];_0x30eb=function(){return _0x234bc2;};return _0x30eb();}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x9bb6d5(0x11f)]=_0x49f28f=>{const _0xa69b14=_0x9bb6d5;userInfoCache[_0x49f28f[_0xa69b14(0x10c)]]=_0x49f28f,userDetailHandlers[_0xa69b14(0xfa)](_0x92122b=>_0x92122b(_0x49f28f));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](profileListener);});},0x64);export class NTQQUserApi{static async[_0x9bb6d5(0x110)](_0x1fd390,_0x40e137,_0x40544e){const _0x592626=_0x9bb6d5;return napCatCore[_0x592626(0x124)][_0x592626(0xf9)]()[_0x592626(0x104)]({'status':_0x1fd390,'extStatus':_0x40e137,'batteryStatus':_0x40544e});}static async[_0x9bb6d5(0x115)](_0x2f9c56,_0x27ed1d=0x1){const _0x3fef13=_0x9bb6d5;return napCatCore[_0x3fef13(0x124)][_0x3fef13(0x11a)]()[_0x3fef13(0x10b)]({'friendUid':_0x2f9c56,'sourceId':0x47,'doLikeCount':_0x27ed1d,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x5c2441){const _0x698c8f=_0x9bb6d5,_0x198917=napCatCore[_0x698c8f(0x124)][_0x698c8f(0x116)]()[_0x698c8f(0x122)](_0x5c2441);return{'result':_0x198917?.[_0x698c8f(0xfb)],'errMsg':_0x198917?.[_0x698c8f(0x11d)]};}static async[_0x9bb6d5(0xfc)](){}static async[_0x9bb6d5(0x10d)](_0x11f0a5){}static async[_0x9bb6d5(0xf4)](_0x514eec){const _0x378d96=_0x9bb6d5,_0x59326c={'zKlFY':_0x378d96(0x100),'TQLnm':function(_0xf1605d,_0x58ca9b){return _0xf1605d(_0x58ca9b);},'FjvXe':function(_0x49611d){return _0x49611d();}},_0x43d813=napCatCore[_0x378d96(0x124)][_0x378d96(0x116)]();return new Promise((_0x3d48d5,_0x11b52e)=>{const _0x4f7bc3=_0x378d96,_0x9b23a2=_0x59326c[_0x4f7bc3(0xf8)](randomUUID);let _0x4a2c01=![];setTimeout(()=>{const _0x3c7087=_0x4f7bc3;!_0x4a2c01&&_0x11b52e(_0x59326c[_0x3c7087(0x120)]);},0x1388),userDetailHandlers[_0x4f7bc3(0x113)](_0x9b23a2,_0x2afd8b=>{const _0x280103=_0x4f7bc3;_0x2afd8b[_0x280103(0x10c)]===_0x514eec&&(_0x4a2c01=!![],userDetailHandlers[_0x280103(0xf6)](_0x9b23a2),_0x59326c['TQLnm'](_0x3d48d5,_0x2afd8b));}),_0x43d813['getUserDetailInfoWithBizInfo'](_0x514eec,[0x0])['then'](_0x34da42=>{});});}static async[_0x9bb6d5(0x107)](_0x44242a){const _0x499496=_0x9bb6d5,_0xf05df1=await napCatCore[_0x499496(0x124)][_0x499496(0x10f)]()[_0x499496(0xf5)](_0x44242a,!![]);if(_0xf05df1[_0x499496(0xfb)]===0x0){const _0x862e0f=_0xf05df1[_0x499496(0x101)];return Object['fromEntries'](_0x862e0f);}return{};}static async[_0x9bb6d5(0x102)](){const _0x4a1229=_0x9bb6d5,_0x331454=await napCatCore['session'][_0x4a1229(0x108)]()[_0x4a1229(0x102)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x331454?.['response']?.[_0x4a1229(0x112)];}static async[_0x9bb6d5(0x10e)](){const _0x590e66=_0x9bb6d5,_0x5b459e={'lRpDg':function(_0x4236a0,_0x33bdbd){return _0x4236a0!==_0x33bdbd;},'GmWIe':function(_0x1dce0a,_0x52dd14){return _0x1dce0a+_0x52dd14;},'zCKxG':function(_0x141067,_0x1b5a88){return _0x141067+_0x1b5a88;},'JpDmy':function(_0x117f53,_0xb3237e){return _0x117f53+_0xb3237e;},'vwqmh':function(_0x93599c,_0x553e6c){return _0x93599c+_0x553e6c;},'shcRB':_0x590e66(0x126),'SVUZb':_0x590e66(0x117),'zjimU':function(_0x40545c,_0x23d4ce){return _0x40545c(_0x23d4ce);},'yFCds':_0x590e66(0x106)};try{const _0x574941=await napCatCore[_0x590e66(0x124)][_0x590e66(0x105)]()[_0x590e66(0xfd)]('');if(_0x5b459e['lRpDg'](_0x574941[_0x590e66(0xfb)],0x0))return'';const _0x48dede=_0x574941[_0x590e66(0x118)],_0x2e73cd=_0x574941[_0x590e66(0xff)],_0x465c6d=_0x5b459e[_0x590e66(0x109)](_0x5b459e[_0x590e66(0x114)](_0x5b459e[_0x590e66(0x10a)](_0x5b459e['vwqmh'](_0x5b459e['shcRB'],selfInfo['uin']),_0x5b459e['SVUZb'])+_0x48dede,_0x590e66(0x11e)),_0x2e73cd),_0x4e72d9=await _0x5b459e[_0x590e66(0x127)](HttpGetWithCookies,_0x465c6d);return _0x4e72d9[_0x590e66(0x128)](_0x5b459e['yFCds']);}catch(_0xd372c1){}return undefined;}} \ No newline at end of file +const _0x51104c=_0x27f5;(function(_0x44b6bc,_0x208413){const _0x49c21f=_0x27f5,_0x153a86=_0x44b6bc();while(!![]){try{const _0x32300a=parseInt(_0x49c21f(0x84))/0x1+parseInt(_0x49c21f(0x8c))/0x2*(-parseInt(_0x49c21f(0x7f))/0x3)+-parseInt(_0x49c21f(0x96))/0x4+-parseInt(_0x49c21f(0x93))/0x5+-parseInt(_0x49c21f(0x90))/0x6*(-parseInt(_0x49c21f(0x80))/0x7)+-parseInt(_0x49c21f(0x81))/0x8*(-parseInt(_0x49c21f(0x7c))/0x9)+-parseInt(_0x49c21f(0x9e))/0xa*(-parseInt(_0x49c21f(0xa9))/0xb);if(_0x32300a===_0x208413)break;else _0x153a86['push'](_0x153a86['shift']());}catch(_0x1bc7a9){_0x153a86['push'](_0x153a86['shift']());}}}(_0x3e7b,0xb3519));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';function _0x3e7b(){const _0x5bfa85=['setStatus','getTipOffService','tRzeD','TyQtc','&clientkey=','getRobotService','setBuddyProfileLike','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','keyIndex','1062eoUTwC','result','getPSkey','3GayIje','225190oBSaru','49592UvZMbD','setHeader','getSelfInfo','863889XyAieH','response','uin','setQQAvatar','CreatTime','TBbtX','then','forEach','933886OSAzaJ','HoqZq','onLoginSuccess','fromEntries','6VsHlzc','like','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','2055685thmsyr','getTicketService','session','5357072UsDgLU','getProfileService','getPskey','YutcM','HQxce','getSkey','robotUinRanges','onProfileDetailInfoChanged','1471440XaZAml','getUserDetailInfo','Skey','dpcfy','hIMGK','now','getProfileLikeService','clientKey','rFdQd','delete','RdrBs','99OYnCSd','setSelfOnlineStatus'];_0x3e7b=function(){return _0x5bfa85;};return _0x3e7b();}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x51104c(0x9d)]=_0x3575d2=>{const _0x874d62=_0x51104c;userInfoCache[_0x3575d2['uid']]=_0x3575d2,userDetailHandlers[_0x874d62(0x8b)](_0x1e44ed=>_0x1e44ed(_0x3575d2));},setTimeout(()=>{const _0x301dab=_0x51104c;napCatCore[_0x301dab(0x8e)](()=>{napCatCore['addListener'](profileListener);});},0x64);function _0x27f5(_0x5316e6,_0x31e557){const _0x3e7b02=_0x3e7b();return _0x27f5=function(_0x27f57a,_0x37b04c){_0x27f57a=_0x27f57a-0x76;let _0x28a887=_0x3e7b02[_0x27f57a];return _0x28a887;},_0x27f5(_0x5316e6,_0x31e557);}export class NTQQUserApi{static async[_0x51104c(0xaa)](_0x42fd10,_0x414f20,_0x2b8948){const _0x29587c=_0x51104c;return napCatCore[_0x29587c(0x95)]['getMsgService']()[_0x29587c(0xab)]({'status':_0x42fd10,'extStatus':_0x414f20,'batteryStatus':_0x2b8948});}static async[_0x51104c(0x91)](_0x26895f,_0x339b5b=0x1){const _0x298210=_0x51104c;return napCatCore[_0x298210(0x95)][_0x298210(0xa4)]()[_0x298210(0x79)]({'friendUid':_0x26895f,'sourceId':0x47,'doLikeCount':_0x339b5b,'doLikeTollCount':0x0});}static async[_0x51104c(0x87)](_0x2c10d7){const _0x5cabad=_0x51104c,_0x2a4cb5=napCatCore[_0x5cabad(0x95)][_0x5cabad(0x97)]()[_0x5cabad(0x82)](_0x2c10d7);return{'result':_0x2a4cb5?.[_0x5cabad(0x7d)],'errMsg':_0x2a4cb5?.['errMsg']};}static async[_0x51104c(0x83)](){}static async['getUserInfo'](_0x52394b){}static async[_0x51104c(0x9f)](_0x54aec6){const _0x5271b8=_0x51104c,_0x513353={'aaXIL':function(_0x3398a4,_0x53ad95){return _0x3398a4===_0x53ad95;},'HQxce':function(_0x4f389d,_0xddc33a){return _0x4f389d(_0xddc33a);},'jXOUi':function(_0x7ce25d,_0x3a54eb,_0x3a3ec0){return _0x7ce25d(_0x3a54eb,_0x3a3ec0);}},_0x1b615f=napCatCore['session'][_0x5271b8(0x97)]();return new Promise((_0xfe7ead,_0x2d7995)=>{const _0x46a5c8=_0x5271b8,_0x36351f={'tRzeD':function(_0x48e749,_0x29ff1f){const _0x5a634a=_0x27f5;return _0x513353[_0x5a634a(0x9a)](_0x48e749,_0x29ff1f);}},_0xf9e47f=randomUUID();let _0x1dbd8b=![];_0x513353['jXOUi'](setTimeout,()=>{const _0x202ea5=_0x27f5;!_0x1dbd8b&&_0x36351f[_0x202ea5(0xad)](_0x2d7995,'getUserDetailInfo\x20timeout');},0x1388),userDetailHandlers['set'](_0xf9e47f,_0x266ac3=>{const _0x21b7ae=_0x27f5;_0x513353['aaXIL'](_0x266ac3['uid'],_0x54aec6)&&(_0x1dbd8b=!![],userDetailHandlers[_0x21b7ae(0xa7)](_0xf9e47f),_0x513353[_0x21b7ae(0x9a)](_0xfe7ead,_0x266ac3));}),_0x1b615f['getUserDetailInfoWithBizInfo'](_0x54aec6,[0x0])[_0x46a5c8(0x8a)](_0x2068fa=>{});});}static async[_0x51104c(0x7e)](_0x368fff){const _0x2741eb=_0x51104c,_0x575eb7={'rFdQd':function(_0x53102b,_0x28ce9d){return _0x53102b===_0x28ce9d;}},_0x2d406d=await napCatCore[_0x2741eb(0x95)][_0x2741eb(0xac)]()[_0x2741eb(0x98)](_0x368fff,!![]);if(_0x575eb7[_0x2741eb(0xa6)](_0x2d406d[_0x2741eb(0x7d)],0x0)){const _0x31e484=_0x2d406d['domainPskeyMap'];return Object[_0x2741eb(0x8f)](_0x31e484);}return{};}static async['getRobotUinRange'](){const _0x23c7c1=_0x51104c,_0x501eab=await napCatCore[_0x23c7c1(0x95)][_0x23c7c1(0x78)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x501eab?.[_0x23c7c1(0x85)]?.[_0x23c7c1(0x9c)];}static async[_0x51104c(0x9b)](){const _0x44564c=_0x51104c,_0x2b7d26={'YutcM':function(_0x39be80,_0x2ba8c7){return _0x39be80==_0x2ba8c7;},'RdrBs':function(_0x5187a6,_0x3d238d){return _0x5187a6>_0x3d238d;},'TBbtX':function(_0xfc6257,_0x50e449){return _0xfc6257*_0x50e449;},'dpcfy':function(_0x1c618a,_0x1521f7){return _0x1c618a!==_0x1521f7;},'hIMGK':function(_0x3e777d,_0x4ed21b){return _0x3e777d+_0x4ed21b;},'TyQtc':function(_0x487ad6,_0x5940d0){return _0x487ad6(_0x5940d0);},'HoqZq':'skey'};try{if(_0x2b7d26[_0x44564c(0x99)](Credentials[_0x44564c(0x88)],0x0)||_0x2b7d26[_0x44564c(0xa8)](Date[_0x44564c(0xa3)]()-Credentials[_0x44564c(0x88)],_0x2b7d26[_0x44564c(0x89)](0x3e8,0xe10))){const _0x288784=await napCatCore[_0x44564c(0x95)][_0x44564c(0x94)]()['forceFetchClientKey']('');if(_0x2b7d26[_0x44564c(0xa1)](_0x288784['result'],0x0))return'';const _0x313ef4=_0x288784[_0x44564c(0xa5)],_0x27c059=_0x288784[_0x44564c(0x7b)],_0x4ddd1c=_0x2b7d26[_0x44564c(0xa2)](_0x2b7d26[_0x44564c(0xa2)](_0x2b7d26['hIMGK'](_0x44564c(0x92),selfInfo[_0x44564c(0x86)]),_0x44564c(0x77))+_0x313ef4,_0x44564c(0x7a))+_0x27c059,_0x8bf6=await _0x2b7d26[_0x44564c(0x76)](HttpGetWithCookies,_0x4ddd1c);let _0x301969=_0x8bf6['get'](_0x2b7d26[_0x44564c(0x8d)]);if(!_0x301969)return'';return Credentials[_0x44564c(0x88)]=Date['now'](),Credentials[_0x44564c(0xa0)]=_0x301969,_0x301969;}return Credentials[_0x44564c(0xa0)];}catch(_0x146e81){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.d.ts b/src/core.lib/src/apis/webapi.d.ts index e9108a3c..9229f5f1 100644 --- a/src/core.lib/src/apis/webapi.d.ts +++ b/src/core.lib/src/apis/webapi.d.ts @@ -58,9 +58,33 @@ export interface WebApiGroupNoticeRet { svrt: number; ad: number; } +interface GroupEssenceMsg { + group_code: string; + msg_seq: number; + msg_random: number; + sender_uin: string; + sender_nick: string; + sender_time: number; + add_digest_uin: string; + add_digest_nick: string; + add_digest_time: number; + msg_content: any[]; + can_be_removed: true; +} +export interface GroupEssenceMsgRet { + retcode: number; + retmsg: string; + data: { + msg_list: GroupEssenceMsg[]; + is_end: boolean; + group_role: number; + config_page_url: string; + }; +} export declare class WebApi { + static getGroupEssenceMsg(GroupCode: string, page_start: string): Promise; static getGroupMembers(GroupCode: string): Promise; - static setGroupNotice(GroupCode: string): Promise; + static setGroupNotice(GroupCode: string, Content?: string): Promise; static getGrouptNotice(GroupCode: string): Promise; static httpDataText(url?: string, method?: string, data?: string, CookiesValue?: string): Promise; static httpDataJson(url?: string, method?: string, data?: string, CookiesValue?: string): Promise; diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index 4ff24c62..bfb12799 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -function _0x7c20(){const _0xfa4c80=['DQuxQ','&bkn=','NdQJQ','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','setGroupNotice','JgovY','BCtYN','1023525dJHjEy',';\x20skey=','text','getPSkey','SNFvo','dElQQ','FhoBj','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','length','5694712rqltHF','jWeLq','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','458956DqMAUb','rDYRK','genBkn','toString','wpesx','POST','319611PmzTXn','1369206zkvoIu','wmdVm','AQXYs','uin','AvkMl','p_skey=','vyeKE','QmQix','BtGzP','getSkey','1492190hlEaWy','XTxNJ','DfbBF','QzRyV','OnYTL','376950zbISTo','HeKDu','tezbc','httpDataJson','errcode','LLleY','ceil','getGrouptNotice','fbcZP','qun.qq.com','1elopcu','application/x-www-form-urlencoded','push','raCmZ','guCkL','yLXFU','hTDVs','getGroupMembers','BiPoU','charCodeAt','&qid=','mems','9gAFkBK','YuWcd','BGzWY','httpDataText',';\x20p_uin=o'];_0x7c20=function(){return _0xfa4c80;};return _0x7c20();}const _0x10f7ab=_0x3c7e;(function(_0x218775,_0x59cae2){const _0xc678da=_0x3c7e,_0x4db1c1=_0x218775();while(!![]){try{const _0x4a8705=-parseInt(_0xc678da(0x1a1))/0x1*(-parseInt(_0xc678da(0x197))/0x2)+-parseInt(_0xc678da(0x187))/0x3+parseInt(_0xc678da(0x1c5))/0x4+parseInt(_0xc678da(0x1b9))/0x5+parseInt(_0xc678da(0x188))/0x6+parseInt(_0xc678da(0x192))/0x7+-parseInt(_0xc678da(0x1c2))/0x8*(parseInt(_0xc678da(0x1ad))/0x9);if(_0x4a8705===_0x59cae2)break;else _0x4db1c1['push'](_0x4db1c1['shift']());}catch(_0x1cd677){_0x4db1c1['push'](_0x4db1c1['shift']());}}}(_0x7c20,0x1ff62));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';function _0x3c7e(_0x35d588,_0x5c14d1){const _0x7c2086=_0x7c20();return _0x3c7e=function(_0x3c7ed0,_0xe6b0fa){_0x3c7ed0=_0x3c7ed0-0x182;let _0x23f776=_0x7c2086[_0x3c7ed0];return _0x23f776;},_0x3c7e(_0x35d588,_0x5c14d1);}export class WebApi{static async[_0x10f7ab(0x1a8)](_0x3e47de){const _0x21921d=_0x10f7ab,_0x15726b={'YAJuQ':_0x21921d(0x1a0),'YuWcd':function(_0x4229d4,_0x3f4acf){return _0x4229d4+_0x3f4acf;},'BGzWY':function(_0x4190ce,_0x3a5bf7){return _0x4190ce||_0x3a5bf7;},'AvkMl':function(_0x2d8812,_0x150763){return _0x2d8812<=_0x150763;},'wmdVm':function(_0x38b856,_0x177054){return _0x38b856+_0x177054;},'OnYTL':function(_0x294888,_0x5349d4){return _0x294888+_0x5349d4;},'DQuxQ':function(_0x11581f,_0x5229a9){return _0x11581f+_0x5229a9;},'AQXYs':_0x21921d(0x1b5),'BiPoU':function(_0x3e1a3c,_0x2562db){return _0x3e1a3c-_0x2562db;},'wpesx':'&end=','NdQJQ':function(_0x4d75b9,_0x36f5e3){return _0x4d75b9*_0x36f5e3;},'dElQQ':'&sort=1&gc=','yLXFU':_0x21921d(0x1b3),'UkOsZ':_0x21921d(0x186),'QmQix':function(_0x4cddee,_0x645fda){return _0x4cddee!==_0x645fda;},'guCkL':function(_0x1dac85,_0x491d53){return _0x1dac85/_0x491d53;}},_0x2d4410=(await NTQQUserApi[_0x21921d(0x1bc)]([_0x21921d(0x1a0)]))[_0x15726b['YAJuQ']],_0x12e7c5=await NTQQUserApi[_0x21921d(0x191)](),_0x33769b=_0x15726b[_0x21921d(0x1ae)](_0x15726b[_0x21921d(0x1ae)](_0x15726b['YuWcd'](_0x15726b[_0x21921d(0x1ae)](_0x21921d(0x18d)+_0x2d4410,_0x21921d(0x1ba)),_0x12e7c5),_0x21921d(0x1b1)),selfInfo[_0x21921d(0x18b)]),_0xbc124d=new Array();if(_0x15726b[_0x21921d(0x1af)](!_0x12e7c5,!_0x2d4410))return _0xbc124d;const _0x490e10=WebApi['genBkn'](_0x12e7c5);let _0x3985f5=0x1;for(let _0xd8bf47=0x1;_0x15726b[_0x21921d(0x18c)](_0xd8bf47,_0x3985f5);_0xd8bf47++){const _0x51f188=await WebApi[_0x21921d(0x19a)](_0x15726b[_0x21921d(0x1ae)](_0x15726b[_0x21921d(0x189)](_0x15726b['YuWcd'](_0x15726b[_0x21921d(0x196)](_0x15726b[_0x21921d(0x1b2)](_0x15726b[_0x21921d(0x18a)],_0x15726b[_0x21921d(0x1a9)](_0xd8bf47,0x1)*0x28),_0x15726b[_0x21921d(0x185)]),_0x15726b[_0x21921d(0x1b4)](_0xd8bf47,0x28)),_0x15726b[_0x21921d(0x1be)])+_0x3e47de+_0x15726b[_0x21921d(0x1a6)],_0x490e10),_0x15726b['UkOsZ'],'',_0x33769b);if(!_0x51f188?.['count']||_0x15726b[_0x21921d(0x18f)](_0x51f188?.[_0x21921d(0x19b)],0x0)||!_0x51f188[_0x21921d(0x1ac)])break;_0x3985f5=Math[_0x21921d(0x19d)](_0x15726b[_0x21921d(0x1a5)](_0x51f188['count'],0x28));for(const _0xe2a8b0 in _0x51f188[_0x21921d(0x1ac)]){_0xbc124d[_0x21921d(0x1a3)](_0x51f188['mems'][_0xe2a8b0]);}}return _0xbc124d;}static async[_0x10f7ab(0x1b6)](_0x3245e8){}static async[_0x10f7ab(0x19e)](_0x2bea9a){const _0xceaf9d=_0x10f7ab,_0x28d829={'QeZUt':_0xceaf9d(0x1a0),'JgovY':function(_0x4404c0,_0x4872df){return _0x4404c0+_0x4872df;},'raCmZ':function(_0x194cf2,_0x3fd476){return _0x194cf2+_0x3fd476;},'HeKDu':_0xceaf9d(0x18d),'fbcZP':_0xceaf9d(0x1ba),'LUTzx':_0xceaf9d(0x1b1),'sbQBf':function(_0x450881,_0x259b16){return _0x450881||_0x259b16;},'XTxNJ':function(_0x1c8f91,_0x3ad8ee){return _0x1c8f91+_0x3ad8ee;},'zmOXy':function(_0xfb10f3,_0x3708d9){return _0xfb10f3+_0x3708d9;},'BCtYN':_0xceaf9d(0x1ab),'QzRyV':_0xceaf9d(0x1c0),'FhoBj':function(_0x16c760,_0x20d1ba){return _0x16c760!==_0x20d1ba;}};let _0x20991b=(await NTQQUserApi[_0xceaf9d(0x1bc)]([_0x28d829['QeZUt']]))[_0x28d829['QeZUt']],_0x4214c9=await NTQQUserApi['getSkey'](),_0x47a5a0=_0x28d829[_0xceaf9d(0x1b7)](_0x28d829[_0xceaf9d(0x1b7)](_0x28d829[_0xceaf9d(0x1a4)](_0x28d829[_0xceaf9d(0x198)],_0x20991b),_0x28d829[_0xceaf9d(0x19f)]),_0x4214c9)+_0x28d829['LUTzx']+selfInfo[_0xceaf9d(0x18b)],_0x6008b4=undefined;if(_0x28d829['sbQBf'](!_0x4214c9,!_0x20991b))return undefined;let _0x30ac04=WebApi[_0xceaf9d(0x183)](_0x4214c9),_0x1626aa=_0x28d829[_0xceaf9d(0x193)](_0x28d829['zmOXy'](_0x28d829['XTxNJ'](_0xceaf9d(0x1c4)+_0x30ac04,_0x28d829[_0xceaf9d(0x1b8)]),_0x2bea9a),_0x28d829[_0xceaf9d(0x195)]);try{_0x6008b4=await WebApi[_0xceaf9d(0x19a)](_0x1626aa,'GET','',_0x47a5a0);if(_0x28d829[_0xceaf9d(0x1bf)](_0x6008b4?.['ec'],0x0))return undefined;return _0x6008b4;}catch(_0x548223){return undefined;}return undefined;}static async[_0x10f7ab(0x1b0)](_0x5cf125='',_0x36873e='GET',_0x4789b7='',_0x288d9a=''){const _0x36e9da=_0x10f7ab,_0x11af82={'tezbc':function(_0x2961f4,_0x2b9f2e,_0x4fd341){return _0x2961f4(_0x2b9f2e,_0x4fd341);},'SNFvo':_0x36e9da(0x1a2),'hTDVs':function(_0x336b39,_0x54af61){return _0x336b39(_0x54af61);}};let _0x18a099='';return new Promise(async(_0x5e5ac7,_0x5097bb)=>{const _0x4583f4=_0x36e9da;try{const _0x502d64=await _0x11af82[_0x4583f4(0x199)](fetch,_0x5cf125,{'method':_0x36873e,'headers':{'Content-Type':_0x11af82[_0x4583f4(0x1bd)],'Cookie':_0x288d9a},'body':_0x4789b7});if(_0x502d64['ok'])_0x18a099=await _0x502d64[_0x4583f4(0x1bb)]();else{}}catch(_0x956886){}_0x11af82[_0x4583f4(0x1a7)](_0x5e5ac7,_0x18a099);});}static async[_0x10f7ab(0x19a)](_0x2c67ca='',_0x553e11='GET',_0x298692='',_0x3c28e2=''){const _0x46fdb0=_0x10f7ab,_0x5d0ad1={'rDYRK':_0x46fdb0(0x1a2),'jWeLq':function(_0x5312f2,_0x47dcf0){return _0x5312f2(_0x47dcf0);}};let _0x326958=undefined;return new Promise(async(_0x178c23,_0x3289dc)=>{const _0x46e3fd=_0x46fdb0;try{const _0xb27baa=await fetch(_0x2c67ca,{'method':_0x553e11,'headers':{'Content-Type':_0x5d0ad1[_0x46e3fd(0x182)],'Cookie':_0x3c28e2},'body':_0x298692});if(_0xb27baa['ok'])_0x326958=await _0xb27baa['json']();else{}}catch(_0x2cbde4){}_0x5d0ad1[_0x46e3fd(0x1c3)](_0x178c23,_0x326958);});}static[_0x10f7ab(0x183)](_0x84585b){const _0x2245c2=_0x10f7ab,_0x2e431f={'LLleY':function(_0x324a33,_0x5aea0d){return _0x324a33||_0x5aea0d;},'vyeKE':function(_0x4f19f9,_0x236693){return _0x4f19f9<_0x236693;},'BtGzP':function(_0x2966c2,_0x290114){return _0x2966c2+_0x290114;},'RFsHB':function(_0x9ceffd,_0x23e807){return _0x9ceffd<<_0x23e807;},'DfbBF':function(_0x12cc20,_0x3e4129){return _0x12cc20&_0x3e4129;}};_0x84585b=_0x2e431f[_0x2245c2(0x19c)](_0x84585b,'');let _0x1c967a=0x1505;for(let _0x6e4706=0x0;_0x2e431f[_0x2245c2(0x18e)](_0x6e4706,_0x84585b[_0x2245c2(0x1c1)]);_0x6e4706++){const _0xc17280=_0x84585b[_0x2245c2(0x1aa)](_0x6e4706);_0x1c967a=_0x2e431f['BtGzP'](_0x2e431f[_0x2245c2(0x190)](_0x1c967a,_0x2e431f['RFsHB'](_0x1c967a,0x5)),_0xc17280);}return _0x2e431f[_0x2245c2(0x194)](_0x1c967a,0x7fffffff)[_0x2245c2(0x184)]();}} \ No newline at end of file +const _0x54f164=_0x216f;(function(_0x174d63,_0x583747){const _0x4abd0f=_0x216f,_0xfb5296=_0x174d63();while(!![]){try{const _0xc20005=-parseInt(_0x4abd0f(0x132))/0x1+-parseInt(_0x4abd0f(0xe2))/0x2+parseInt(_0x4abd0f(0xdc))/0x3*(-parseInt(_0x4abd0f(0xec))/0x4)+-parseInt(_0x4abd0f(0xfd))/0x5*(-parseInt(_0x4abd0f(0xde))/0x6)+-parseInt(_0x4abd0f(0x115))/0x7+-parseInt(_0x4abd0f(0xdd))/0x8+-parseInt(_0x4abd0f(0xd0))/0x9*(-parseInt(_0x4abd0f(0x114))/0xa);if(_0xc20005===_0x583747)break;else _0xfb5296['push'](_0xfb5296['shift']());}catch(_0x59c7fe){_0xfb5296['push'](_0xfb5296['shift']());}}}(_0x4eea,0xc2e75));import{selfInfo}from'@/core/data';function _0x4eea(){const _0x5557a0=['&text=','POST','getPSkey','lGjbe','lwmfi','EKmIg','mxXdj','UROqc','httpDataJson','552285DvBWiW','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','yKzYo','uin','upkJN','10355157XJCSbU','CMJGN','cIMxU','qun.qq.com','oPbiD','DSYYm','&page_start=','json','aBuKz','charCodeAt','eKXhL','aVgUj','524739dccTVz','9923040QutojU','162YJMPuX','CWEJi','HEAD','errcode','362002dJHgdC','vVhIy','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','IKGzH','text','UQgYc','application/x-www-form-urlencoded','p_skey=','FggJK','16DexYNM','OnBpc','&qid=','yBWer',';\x20skey=','UJryM','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=',';\x20p_uin=o','hveEG','ZSdGf','pKbij','RriDn','OABZe','&sort=1&gc=','ppUKr','GET','Xsgwl','261750EpIHDn','LTHEw','getGrouptNotice','lZDrY','nPIaN','Sscez','mems','jioSA','MhKrF','Fvpgg','qid=','fNpiE','iFGuu','getGroupEssenceMsg','nVSda','DErKN','push','hOWZI','jDqhP',';\x20uin=o','CzzrG','lsJvi','tPIjk','20LmsgBv','1700671McdtOy','tzqKy','httpDataText','scwaP','Vyhcs','cPgdo','&bkn=','&page_limit=20','mUiuG','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','AXMWR','jBgWR','pICqQ','EBKXj','ceil','count','tJvOI','genBkn','setGroupNotice','BKXwn'];_0x4eea=function(){return _0x5557a0;};return _0x4eea();}import{NTQQUserApi}from'./user';function _0x216f(_0x58b6c9,_0x4863e0){const _0x4eeaf9=_0x4eea();return _0x216f=function(_0x216fae,_0x3deedf){_0x216fae=_0x216fae-0xcd;let _0x5dd45a=_0x4eeaf9[_0x216fae];return _0x5dd45a;},_0x216f(_0x58b6c9,_0x4863e0);}export class WebApi{static async[_0x54f164(0x10a)](_0x25bc65,_0x54a34d){const _0x4b1d27=_0x54f164,_0x5ce4f8={'OnBpc':_0x4b1d27(0xd3),'Xsgwl':function(_0x480760,_0x5b1567){return _0x480760+_0x5b1567;},'eKXhL':function(_0x4352f9,_0x37faa5){return _0x4352f9+_0x37faa5;},'ppUKr':_0x4b1d27(0xf0),'iFGuu':_0x4b1d27(0xf3),'tzqKy':function(_0xc1de8a,_0x58528c){return _0xc1de8a||_0x58528c;},'Qlalq':function(_0x4b6c7a,_0x54da7c){return _0x4b6c7a+_0x54da7c;},'xVyWL':function(_0x1de011,_0x461177){return _0x1de011+_0x461177;},'scwaP':function(_0x3000d8,_0xaf5dca){return _0x3000d8+_0xaf5dca;},'lZDrY':function(_0x264994,_0x14b17c){return _0x264994+_0x14b17c;},'tJvOI':_0x4b1d27(0xe5),'RriDn':'&group_code=','Sscez':_0x4b1d27(0xfb),'CzzrG':function(_0x5a5cdc,_0xc33f55){return _0x5a5cdc!==_0xc33f55;}},_0x509c87=(await NTQQUserApi[_0x4b1d27(0x12b)]([_0x5ce4f8['OnBpc']]))[_0x5ce4f8[_0x4b1d27(0xed)]],_0x2f3f41=await NTQQUserApi['getSkey'](),_0x1c49be=_0x5ce4f8['Xsgwl'](_0x5ce4f8[_0x4b1d27(0xfc)](_0x5ce4f8[_0x4b1d27(0xda)](_0x5ce4f8[_0x4b1d27(0xfc)](_0x4b1d27(0xea)+_0x509c87,_0x5ce4f8[_0x4b1d27(0xfa)]),_0x2f3f41),_0x5ce4f8[_0x4b1d27(0x109)])+selfInfo['uin']+_0x4b1d27(0x110),selfInfo[_0x4b1d27(0xce)]);if(_0x5ce4f8[_0x4b1d27(0x116)](!_0x2f3f41,!_0x509c87))return undefined;const _0x3a0137=WebApi[_0x4b1d27(0x126)](_0x2f3f41);let _0x5104f1=_0x5ce4f8['Qlalq'](_0x5ce4f8['xVyWL'](_0x5ce4f8[_0x4b1d27(0x118)](_0x5ce4f8[_0x4b1d27(0x100)](_0x5ce4f8[_0x4b1d27(0x125)],_0x3a0137),_0x5ce4f8[_0x4b1d27(0xf7)])+_0x25bc65+_0x4b1d27(0xd6),_0x54a34d),_0x4b1d27(0x11c)),_0x3086b9=await WebApi[_0x4b1d27(0x131)](_0x5104f1,_0x5ce4f8[_0x4b1d27(0x102)],'',_0x1c49be);if(_0x5ce4f8[_0x4b1d27(0x111)](_0x3086b9['retcode'],0x0))return undefined;return _0x3086b9;}static async['getGroupMembers'](_0x18adb0){const _0xf6b2b8=_0x54f164,_0x2e275f={'EKmIg':_0xf6b2b8(0xd3),'lwmfi':function(_0x125b0d,_0x4a0dd3){return _0x125b0d+_0x4a0dd3;},'sRZPC':function(_0x286613,_0x272218){return _0x286613+_0x272218;},'FggJK':_0xf6b2b8(0xea),'tyJgM':_0xf6b2b8(0xf3),'jioSA':function(_0x544c14,_0x194fc7){return _0x544c14<=_0x194fc7;},'nVSda':function(_0x4e8fbd,_0x5c9fed){return _0x4e8fbd+_0x5c9fed;},'MhKrF':function(_0x5b8058,_0x4bfb37){return _0x5b8058+_0x4bfb37;},'OABZe':function(_0x30b12e,_0x3ccd70){return _0x30b12e+_0x3ccd70;},'hOWZI':function(_0x30dac0,_0x4c3973){return _0x30dac0*_0x4c3973;},'ICNkh':'&end=','cFOfO':_0xf6b2b8(0xf9),'aVgUj':_0xf6b2b8(0x11b),'oPbiD':_0xf6b2b8(0x12a),'EaNUA':function(_0xa74037,_0x268b2b){return _0xa74037!==_0x268b2b;},'UROqc':function(_0x19282b,_0x4c19b3){return _0x19282b/_0x4c19b3;}},_0x2585ea=(await NTQQUserApi['getPSkey']([_0x2e275f[_0xf6b2b8(0x12e)]]))[_0x2e275f[_0xf6b2b8(0x12e)]],_0x1c70ab=await NTQQUserApi['getSkey'](),_0x4134d3=_0x2e275f['lwmfi'](_0x2e275f['sRZPC'](_0x2e275f[_0xf6b2b8(0x12d)](_0x2e275f[_0xf6b2b8(0xeb)],_0x2585ea)+_0xf6b2b8(0xf0)+_0x1c70ab,_0x2e275f['tyJgM']),selfInfo[_0xf6b2b8(0xce)]),_0x9c3dc8=new Array();if(!_0x1c70ab||!_0x2585ea)return _0x9c3dc8;const _0x27ce56=WebApi[_0xf6b2b8(0x126)](_0x1c70ab);let _0x1a9534=0x1;for(let _0x51486d=0x1;_0x2e275f[_0xf6b2b8(0x104)](_0x51486d,_0x1a9534);_0x51486d++){const _0x254692=await WebApi[_0xf6b2b8(0x131)](_0x2e275f['lwmfi'](_0x2e275f[_0xf6b2b8(0x10b)](_0x2e275f[_0xf6b2b8(0x105)](_0x2e275f[_0xf6b2b8(0xf8)]('https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=',_0x2e275f[_0xf6b2b8(0x10e)](_0x51486d-0x1,0x28)),_0x2e275f['ICNkh'])+_0x2e275f[_0xf6b2b8(0x10e)](_0x51486d,0x28),_0x2e275f['cFOfO'])+_0x18adb0+_0x2e275f[_0xf6b2b8(0xdb)],_0x27ce56),_0x2e275f[_0xf6b2b8(0xd4)],'',_0x4134d3);if(!_0x254692?.[_0xf6b2b8(0x124)]||_0x2e275f['EaNUA'](_0x254692?.[_0xf6b2b8(0xe1)],0x0)||!_0x254692[_0xf6b2b8(0x103)])break;_0x1a9534=Math[_0xf6b2b8(0x123)](_0x2e275f[_0xf6b2b8(0x130)](_0x254692[_0xf6b2b8(0x124)],0x28));for(const _0x15844b in _0x254692[_0xf6b2b8(0x103)]){_0x9c3dc8[_0xf6b2b8(0x10d)](_0x254692[_0xf6b2b8(0x103)][_0x15844b]);}}return _0x9c3dc8;}static async[_0x54f164(0x127)](_0x1e6aff,_0xf9b84c=''){const _0x2b78e5=_0x54f164,_0xd90918={'hveEG':_0x2b78e5(0xd3),'UJryM':function(_0x292b54,_0x26b9f1){return _0x292b54+_0x26b9f1;},'jBgWR':function(_0x55b8c9,_0x23f69b){return _0x55b8c9+_0x23f69b;},'UQgYc':'p_skey=','AXMWR':_0x2b78e5(0xf0),'BKXwn':';\x20p_uin=o','mUiuG':function(_0x419401,_0x203779){return _0x419401||_0x203779;},'vVhIy':function(_0x598469,_0x6f4060){return _0x598469+_0x6f4060;},'ZSdGf':_0x2b78e5(0x107),'LTHEw':_0x2b78e5(0x129),'upkJN':_0x2b78e5(0x133),'CWEJi':_0x2b78e5(0x11e)};let _0x388151=(await NTQQUserApi[_0x2b78e5(0x12b)]([_0xd90918[_0x2b78e5(0xf4)]]))[_0xd90918[_0x2b78e5(0xf4)]],_0x28a0fe=await NTQQUserApi['getSkey'](),_0x78511f=_0xd90918[_0x2b78e5(0xf1)](_0xd90918[_0x2b78e5(0x120)](_0xd90918[_0x2b78e5(0xf1)](_0xd90918[_0x2b78e5(0xe8)],_0x388151),_0xd90918[_0x2b78e5(0x11f)])+_0x28a0fe+_0xd90918[_0x2b78e5(0x128)],selfInfo['uin']),_0x201538=undefined;if(_0xd90918[_0x2b78e5(0x11d)](!_0x28a0fe,!_0x388151))return undefined;let _0x2080b8=WebApi[_0x2b78e5(0x126)](_0x28a0fe),_0x40c1ad=_0xd90918[_0x2b78e5(0xf1)](_0xd90918['jBgWR'](_0xd90918[_0x2b78e5(0xe3)](_0xd90918['jBgWR'](_0xd90918[_0x2b78e5(0xf5)],_0x1e6aff)+'&bkn='+_0x2080b8,_0xd90918[_0x2b78e5(0xfe)]),_0xf9b84c),_0xd90918[_0x2b78e5(0xcf)]),_0x523e2c=_0xd90918[_0x2b78e5(0xf1)](_0xd90918[_0x2b78e5(0xdf)],_0x2080b8);try{return _0x201538=await WebApi['httpDataJson'](_0x523e2c,'GET','',_0x78511f),_0x201538;}catch(_0x45f7ee){return undefined;}return undefined;}static async[_0x54f164(0xff)](_0x34b6ea){const _0x200919=_0x54f164,_0x375463={'CMJGN':_0x200919(0xd3),'lsJvi':function(_0x4c3ab7,_0x15df39){return _0x4c3ab7+_0x15df39;},'aBuKz':_0x200919(0xea),'DErKN':';\x20skey=','IKGzH':_0x200919(0xf3),'fNpiE':function(_0x5702ac,_0x1cda3d){return _0x5702ac||_0x1cda3d;},'Vyhcs':function(_0x421bd4,_0x3782ce){return _0x421bd4+_0x3782ce;},'pKbij':function(_0x41ce1a,_0x234d2d){return _0x41ce1a+_0x234d2d;},'Fvpgg':_0x200919(0xf2),'Ncked':_0x200919(0xee),'EBKXj':_0x200919(0xe4),'cIMxU':_0x200919(0xfb)};let _0x413e63=(await NTQQUserApi[_0x200919(0x12b)]([_0x375463[_0x200919(0xd1)]]))[_0x375463['CMJGN']],_0x2b440e=await NTQQUserApi['getSkey'](),_0xc5236e=_0x375463[_0x200919(0x112)](_0x375463[_0x200919(0x112)](_0x375463[_0x200919(0x112)](_0x375463[_0x200919(0x112)](_0x375463[_0x200919(0x112)](_0x375463[_0x200919(0xd8)],_0x413e63),_0x375463[_0x200919(0x10c)]),_0x2b440e),_0x375463[_0x200919(0xe6)]),selfInfo[_0x200919(0xce)]),_0x265797=undefined;if(_0x375463[_0x200919(0x108)](!_0x2b440e,!_0x413e63))return undefined;let _0xbe45c2=WebApi[_0x200919(0x126)](_0x2b440e),_0x41908a=_0x375463[_0x200919(0x119)](_0x375463['Vyhcs'](_0x375463[_0x200919(0xf6)](_0x375463[_0x200919(0x119)](_0x375463[_0x200919(0x106)],_0xbe45c2),_0x375463['Ncked']),_0x34b6ea),_0x375463[_0x200919(0x122)]);try{_0x265797=await WebApi['httpDataJson'](_0x41908a,_0x375463[_0x200919(0xd2)],'',_0xc5236e);if(_0x265797?.['ec']!==0x0)return undefined;return _0x265797;}catch(_0x108f7c){return undefined;}return undefined;}static async[_0x54f164(0x117)](_0x221b9d='',_0x408068=_0x54f164(0xfb),_0x46fb9f='',_0x4a473f=''){const _0x45afd1=_0x54f164,_0x2e9604={'pykOW':function(_0x49af4d,_0x2d14e0){return _0x49af4d===_0x2d14e0;},'itFEo':_0x45afd1(0xe0),'lGjbe':function(_0x840e30,_0x52e112,_0x4deeb3){return _0x840e30(_0x52e112,_0x4deeb3);},'jDqhP':_0x45afd1(0xe9),'JQEqs':function(_0x3c7d53,_0x30f4e9){return _0x3c7d53(_0x30f4e9);}};let _0x4a0dd1='';return new Promise(async(_0xd3403d,_0x2bc5df)=>{const _0x9b6f2d=_0x45afd1;try{let _0xa1f101=undefined;_0x408068===_0x9b6f2d(0xfb)||_0x2e9604['pykOW'](_0x408068,_0x2e9604['itFEo'])?_0xa1f101=await _0x2e9604[_0x9b6f2d(0x12c)](fetch,_0x221b9d,{'method':_0x408068,'headers':{'Content-Type':_0x2e9604[_0x9b6f2d(0x10f)],'Cookie':_0x4a473f}}):_0xa1f101=await fetch(_0x221b9d,{'method':_0x408068,'headers':{'Content-Type':_0x2e9604[_0x9b6f2d(0x10f)],'Cookie':_0x4a473f},'body':_0x46fb9f});if(_0xa1f101['ok'])_0x4a0dd1=await _0xa1f101[_0x9b6f2d(0xe7)]();else{}}catch(_0x5d3bfc){}_0x2e9604['JQEqs'](_0xd3403d,_0x4a0dd1);});}static async[_0x54f164(0x131)](_0x5b966a='',_0xd5cda1=_0x54f164(0xfb),_0x452248='',_0x37f370=''){const _0x362e8d=_0x54f164,_0x3d245b={'mxXdj':function(_0x52937d,_0x2e61a0){return _0x52937d===_0x2e61a0;},'uLXLv':_0x362e8d(0xfb),'DSYYm':function(_0x31db60,_0x59e33b){return _0x31db60===_0x59e33b;},'yKzYo':_0x362e8d(0xe0),'nPIaN':function(_0x4edd9c,_0x291b4f,_0x2d6f88){return _0x4edd9c(_0x291b4f,_0x2d6f88);},'yBWer':'application/x-www-form-urlencoded','cPgdo':function(_0x2b7330,_0x25ea6d){return _0x2b7330(_0x25ea6d);}};let _0x51924a=undefined;return new Promise(async(_0x50430c,_0x329ea3)=>{const _0xe3a69d=_0x362e8d;try{let _0x16c93f=undefined;_0x3d245b[_0xe3a69d(0x12f)](_0xd5cda1,_0x3d245b['uLXLv'])||_0x3d245b[_0xe3a69d(0xd5)](_0xd5cda1,_0x3d245b[_0xe3a69d(0xcd)])?_0x16c93f=await _0x3d245b[_0xe3a69d(0x101)](fetch,_0x5b966a,{'method':_0xd5cda1,'headers':{'Content-Type':_0xe3a69d(0xe9),'Cookie':_0x37f370}}):_0x16c93f=await _0x3d245b[_0xe3a69d(0x101)](fetch,_0x5b966a,{'method':_0xd5cda1,'headers':{'Content-Type':_0x3d245b[_0xe3a69d(0xef)],'Cookie':_0x37f370},'body':_0x452248});if(_0x16c93f['ok'])_0x51924a=await _0x16c93f[_0xe3a69d(0xd7)]();else{}}catch(_0x4a338a){}_0x3d245b[_0xe3a69d(0x11a)](_0x50430c,_0x51924a);});}static[_0x54f164(0x126)](_0x164c15){const _0x102ef9=_0x54f164,_0x112320={'uJjIF':function(_0x2bd088,_0x2f8cf1){return _0x2bd088||_0x2f8cf1;},'yoRin':function(_0x5418e1,_0x16147f){return _0x5418e1<_0x16147f;},'pICqQ':function(_0x283d5a,_0x281dee){return _0x283d5a+_0x281dee;},'tPIjk':function(_0x27324e,_0x3df1c5){return _0x27324e&_0x3df1c5;}};_0x164c15=_0x112320['uJjIF'](_0x164c15,'');let _0x1466b2=0x1505;for(let _0x12fd2a=0x0;_0x112320['yoRin'](_0x12fd2a,_0x164c15['length']);_0x12fd2a++){const _0xe42621=_0x164c15[_0x102ef9(0xd9)](_0x12fd2a);_0x1466b2=_0x112320[_0x102ef9(0x121)](_0x1466b2,_0x1466b2<<0x5)+_0xe42621;}return _0x112320[_0x102ef9(0x113)](_0x1466b2,0x7fffffff)['toString']();}} \ No newline at end of file diff --git a/src/core.lib/src/apis/window.js b/src/core.lib/src/apis/window.js index a057f238..c05cdbf1 100644 --- a/src/core.lib/src/apis/window.js +++ b/src/core.lib/src/apis/window.js @@ -1 +1 @@ -var _0x1ad846=_0x2638;(function(_0x408af1,_0x297472){var _0x562184=_0x2638,_0x4fb621=_0x408af1();while(!![]){try{var _0x140d80=-parseInt(_0x562184(0xd6))/0x1+-parseInt(_0x562184(0xcd))/0x2+-parseInt(_0x562184(0xcf))/0x3*(-parseInt(_0x562184(0xd5))/0x4)+parseInt(_0x562184(0xd7))/0x5*(parseInt(_0x562184(0xd4))/0x6)+-parseInt(_0x562184(0xd2))/0x7*(-parseInt(_0x562184(0xcb))/0x8)+parseInt(_0x562184(0xd3))/0x9+-parseInt(_0x562184(0xd9))/0xa*(parseInt(_0x562184(0xce))/0xb);if(_0x140d80===_0x297472)break;else _0x4fb621['push'](_0x4fb621['shift']());}catch(_0x14f6d6){_0x4fb621['push'](_0x4fb621['shift']());}}}(_0x1e06,0x34b6a));function _0x1e06(){var _0x48ea62=['1090848Hwoogx','GroupEssenceWindow','60676oRRUKf','5275952nkItow','6FtMfme','#/group-notify-filter','GroupNotifyFilterWindow','21jHDdkU','1200699wGuMfk','1640802BBlSos','114028HdZnYL','147076QuHdGW','5CfOGmQ','#/group-essence','10kSNkMb','GroupHomeWorkWindow'];_0x1e06=function(){return _0x48ea62;};return _0x1e06();}export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x1ad846(0xca),'windowUrlHash':'#/group-home-work'};static [_0x1ad846(0xd1)]={'windowName':'GroupNotifyFilterWindow','windowUrlHash':_0x1ad846(0xd0)};static [_0x1ad846(0xcc)]={'windowName':_0x1ad846(0xcc),'windowUrlHash':_0x1ad846(0xd8)};}function _0x2638(_0x2e9046,_0x3cdb6e){var _0x1e0669=_0x1e06();return _0x2638=function(_0x26384f,_0x56141d){_0x26384f=_0x26384f-0xca;var _0x478a96=_0x1e0669[_0x26384f];return _0x478a96;},_0x2638(_0x2e9046,_0x3cdb6e);}export class NTQQWindowApi{} \ No newline at end of file +var _0x1ce3a8=_0xe104;function _0x5cdf(){var _0x3084fa=['#/group-notify-filter','220407XkwnSM','2fLePHr','386276HmvZDA','GroupEssenceWindow','13420TPToEL','1321680svlCgY','438nxuJuC','355353tFhRdR','1187732QzUjlu','6642648VGxdpS','GroupNotifyFilterWindow','GroupHomeWorkWindow'];_0x5cdf=function(){return _0x3084fa;};return _0x5cdf();}(function(_0x3115f9,_0x3b4e4e){var _0x2615eb=_0xe104,_0x1e11d4=_0x3115f9();while(!![]){try{var _0x23deea=-parseInt(_0x2615eb(0xce))/0x1+-parseInt(_0x2615eb(0xcf))/0x2*(parseInt(_0x2615eb(0xc8))/0x3)+-parseInt(_0x2615eb(0xc3))/0x4+-parseInt(_0x2615eb(0xc5))/0x5*(parseInt(_0x2615eb(0xc7))/0x6)+parseInt(_0x2615eb(0xc9))/0x7+-parseInt(_0x2615eb(0xc6))/0x8+parseInt(_0x2615eb(0xca))/0x9;if(_0x23deea===_0x3b4e4e)break;else _0x1e11d4['push'](_0x1e11d4['shift']());}catch(_0x58a2fb){_0x1e11d4['push'](_0x1e11d4['shift']());}}}(_0x5cdf,0x1b24b));function _0xe104(_0x52a202,_0x1085ee){var _0x5cdf9c=_0x5cdf();return _0xe104=function(_0xe104fe,_0x15d69b){_0xe104fe=_0xe104fe-0xc3;var _0x29dfda=_0x5cdf9c[_0xe104fe];return _0x29dfda;},_0xe104(_0x52a202,_0x1085ee);}export class NTQQWindows{static [_0x1ce3a8(0xcc)]={'windowName':_0x1ce3a8(0xcc),'windowUrlHash':'#/group-home-work'};static [_0x1ce3a8(0xcb)]={'windowName':_0x1ce3a8(0xcb),'windowUrlHash':_0x1ce3a8(0xcd)};static [_0x1ce3a8(0xc4)]={'windowName':_0x1ce3a8(0xc4),'windowUrlHash':'#/group-essence'};}export class NTQQWindowApi{} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 1c17e1f0..ebc5b001 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -function _0x2b87(_0x226adc,_0x2a396f){const _0x4c1184=_0x4c11();return _0x2b87=function(_0x2b8767,_0x4a9dcc){_0x2b8767=_0x2b8767-0xdb;let _0x186c26=_0x4c1184[_0x2b8767];return _0x186c26;},_0x2b87(_0x226adc,_0x2a396f);}const _0x4d4041=_0x2b87;(function(_0x450224,_0x571f52){const _0x2c468c=_0x2b87,_0x3d2fea=_0x450224();while(!![]){try{const _0xe80e12=parseInt(_0x2c468c(0x12a))/0x1*(parseInt(_0x2c468c(0x167))/0x2)+parseInt(_0x2c468c(0x16b))/0x3+-parseInt(_0x2c468c(0x147))/0x4*(-parseInt(_0x2c468c(0x10a))/0x5)+parseInt(_0x2c468c(0xed))/0x6+parseInt(_0x2c468c(0xe8))/0x7*(parseInt(_0x2c468c(0x121))/0x8)+-parseInt(_0x2c468c(0xfe))/0x9+parseInt(_0x2c468c(0x150))/0xa*(-parseInt(_0x2c468c(0x156))/0xb);if(_0xe80e12===_0x571f52)break;else _0x3d2fea['push'](_0x3d2fea['shift']());}catch(_0x747088){_0x3d2fea['push'](_0x3d2fea['shift']());}}}(_0x4c11,0x2fc35));import _0x126a09 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';function _0x4c11(){const _0x1c5e98=['uin','EIhYP','onLoginSuccessFuncList','qrLogin','engine','consoleLogLevel','constructor','140022013','NodeIKernelMsgListener','onLoginSuccess','zYwua','获取二维码登录超时','getProfileService','init\x20failed\x20','proxyHandler','V1_WIN_NQ_','NodeIGlobalAdapter','./.config/QQ','quickLogin','sceneId','base64','onSessionInitComplete','etpFd','kTvzF','eTSJI','tNyGA','NodeQQNTWrapperUtil','./nt_qq/global','12JqnWwc','fileLogLevel','getLoginList','forEach','loginListener','dataPathGlobal','dataPath','getGroupService','wyHZR','123790neaTnn','getQRCodePicture','dLFzB','initWithDeskTopConfig','onQRCodeSessionFailed','md5','385gtSDLT','.db','BuddyListener','catch','快速登录不可用','uGyYt','本账号数据/缓存目录:','pngBase64QrcodeData','HfuNZ','onLoginFailed','onMemberListChange','kdyOq','HtxcY','set','qrcodeUrl','NMpyy','push','34RRzHRh','get','createHash','find','196428wkoooh','startNT','passwordLogin','mkdirSync','ProfileListener','loginErrorInfo','getBuddyService','infos','consoleLog','read','onQRCodeGetPicture','map','onBuddyListChange','initSession\x20failed','groupMemberList_MainWindow','homedir','NodeIQQNTWrapperSession','7XVGfQZ','onGroupListUpdate','addKernelProfileListener','./NapCat/data','quickLoginWithUin','2265648myCenB','groupCode','frDRw','kVYng','EYMDX','hex','replace','util','Ppjyu','digest','assign','errMsg','initSession','msgId','recallTime','split','resolve','2987136daNYyu','then','vJtnh','uid','onProfileDetailInfoChanged','NodeIKernelGroupListener','aRhxO','result','KiScW','buddyList','NodeIKernelLoginService','getNTUserDataInfoConfig','259505KcriKL','getMsgService','NodeIDispatcherAdapter','session','SwYqS','KqNSC','curVersion','nPEXz','PTtKl','aBUhh','RCTLj','initDataListener','nZMYY','loginService','启动失败:\x20','NodeIQQNTWrapperEngine','initConfig','addKernelBuddyListener','IAXDr','\x20has\x20no\x20method\x20','data:image/png;base64,','addListener','isQuickLogin','1566208LZNeYv','has','addKernelLoginListener','_GW_B','TKeXV','pyrJr','EbpDD','name','Windows\x2010\x20Pro','9779rwZJSF'];_0x4c11=function(){return _0x1c5e98;};return _0x4c11();}import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x4f6968 from'node:path';import _0xca4cbd from'node:os';import _0x34553c from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/common/utils/db';import{sleep}from'@/common/utils/helper';import _0x217241 from'node:crypto';import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x4d4041(0x10d)];[_0x4d4041(0xf4)];[_0x4d4041(0x12f)];[_0x4d4041(0x117)];[_0x4d4041(0x14b)];[_0x4d4041(0x12d)]=[];[_0x4d4041(0x139)]={'get'(target,prop,receiver){const _0x3cb44a=_0x4d4041,MEhWNG={'dLFzB':function(callee,param1){return callee(param1);},'aRhxO':'undefined'};if(typeof target[prop]===MEhWNG[_0x3cb44a(0x104)])return(...args)=>{const _0x16ddbd=_0x3cb44a;MEhWNG[_0x16ddbd(0x152)](logDebug,target[_0x16ddbd(0x131)][_0x16ddbd(0x128)]+_0x16ddbd(0x11d)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x2cbcc2=_0x4d4041,_0x1fe728={'MwdRT':_0x2cbcc2(0xe4),'pyrJr':function(_0x5e6d97,_0x3319e3,_0x21f88d){return _0x5e6d97(_0x3319e3,_0x21f88d);},'vJtnh':function(_0x3823c1,_0x17c209){return _0x3823c1 instanceof _0x17c209;},'yhbxI':function(_0x4816f8,_0x4ca3df){return _0x4816f8(_0x4ca3df);},'HtxcY':_0x2cbcc2(0x15c),'IRfRJ':'登录失败'};this[_0x2cbcc2(0x12f)]=new _0x126a09[(_0x2cbcc2(0x119))](),this[_0x2cbcc2(0xf4)]=new _0x126a09[(_0x2cbcc2(0x145))](),this[_0x2cbcc2(0x117)]=new _0x126a09[(_0x2cbcc2(0x108))](),this[_0x2cbcc2(0x10d)]=new _0x126a09[(_0x2cbcc2(0xe7))](),this[_0x2cbcc2(0x14b)]=new LoginListener(),this[_0x2cbcc2(0x14b)]['onQRCodeLoginSucceed']=_0x16871a=>{const _0x24c747=_0x2cbcc2,_0x5ae6a6={'UYRPx':function(_0x543b3a,_0x527aac,_0x242370){const _0x3ff301=_0x2b87;return _0x1fe728[_0x3ff301(0x126)](_0x543b3a,_0x527aac,_0x242370);},'RCTLj':function(_0x6895df,_0x43aabb){const _0x3e2a4d=_0x2b87;return _0x1fe728[_0x3e2a4d(0x100)](_0x6895df,_0x43aabb);},'kTvzF':function(_0x223820,_0x55883b){return _0x1fe728['yhbxI'](_0x223820,_0x55883b);},'EYMDX':_0x1fe728[_0x24c747(0x162)]};this[_0x24c747(0xf9)](_0x16871a[_0x24c747(0x12b)],_0x16871a[_0x24c747(0x101)])[_0x24c747(0xff)](_0x1b7bed=>{const _0x2b8104=_0x24c747;selfInfo[_0x2b8104(0x12b)]=_0x16871a[_0x2b8104(0x12b)],selfInfo[_0x2b8104(0x101)]=_0x16871a[_0x2b8104(0x101)],napCatConfig[_0x2b8104(0xe0)](),_0x5ae6a6['UYRPx'](setLogLevel,napCatConfig[_0x2b8104(0x148)],napCatConfig[_0x2b8104(0x130)]),_0x5ae6a6[_0x2b8104(0x142)](enableFileLog,napCatConfig['fileLog']),_0x5ae6a6[_0x2b8104(0x142)](enableConsoleLog,napCatConfig[_0x2b8104(0xdf)]),setLogSelfInfo(selfInfo);const _0x19a7af=_0x4f6968[_0x2b8104(0xfd)](this[_0x2b8104(0x14d)],_0x2b8104(0xeb));_0x34553c['mkdirSync'](_0x19a7af,{'recursive':!![]}),logDebug(_0x5ae6a6[_0x2b8104(0xf1)],_0x19a7af),dbUtil['createConnection'](_0x4f6968['resolve'](_0x19a7af,'./'+_0x16871a[_0x2b8104(0x12b)]+_0x2b8104(0x157))),this[_0x2b8104(0x115)](),this[_0x2b8104(0x12d)][_0x2b8104(0xe2)](_0x5a77ba=>{const _0x410893=_0x2b8104,_0x1202d2={'MdDPT':function(_0x5bc2fd,_0x3fa6a6,_0x42e7e9){return _0x5ae6a6['UYRPx'](_0x5bc2fd,_0x3fa6a6,_0x42e7e9);},'PTtKl':function(_0x1424fb,_0x55c301){const _0x2e2f93=_0x2b87;return _0x5ae6a6[_0x2e2f93(0x114)](_0x1424fb,_0x55c301);}};new Promise((_0x37ba79,_0x259d5d)=>{const _0x44012e=_0x2b87,_0x3ac858=_0x1202d2['MdDPT'](_0x5a77ba,_0x16871a[_0x44012e(0x12b)],_0x16871a[_0x44012e(0x101)]);_0x1202d2[_0x44012e(0x112)](_0x3ac858,Promise)&&_0x3ac858['then'](_0x37ba79)['catch'](_0x259d5d);})[_0x410893(0xff)]();});})[_0x24c747(0x159)](_0x5257bf=>{const _0x5d7cc9=_0x24c747;logError(_0x1fe728['MwdRT'],_0x5257bf);throw new Error(_0x5d7cc9(0x118)+JSON['stringify'](_0x5257bf));});},this[_0x2cbcc2(0x14b)][_0x2cbcc2(0x154)]=_0x5a268d=>{_0x1fe728['pyrJr'](logError,_0x1fe728['IRfRJ'],_0x5a268d);},this[_0x2cbcc2(0x14b)][_0x2cbcc2(0x15f)]=_0xb8a68c=>{_0x1fe728['pyrJr'](logError,_0x1fe728['IRfRJ'],_0xb8a68c);},this[_0x2cbcc2(0x14b)]=new Proxy(this[_0x2cbcc2(0x14b)],this['proxyHandler']),this[_0x2cbcc2(0x117)][_0x2cbcc2(0x123)](new _0x126a09['NodeIKernelLoginListener'](this[_0x2cbcc2(0x14b)])),this[_0x2cbcc2(0x11a)]();}get[_0x4d4041(0x14d)](){const _0x1751ae=_0x4d4041,_0x2adba3={'aBUhh':_0x1751ae(0x13c)};let _0xad87e2=this['util'][_0x1751ae(0x109)]();return!_0xad87e2&&(_0xad87e2=_0x4f6968['resolve'](_0xca4cbd[_0x1751ae(0xe6)](),_0x2adba3[_0x1751ae(0x113)]),_0x34553c[_0x1751ae(0x16e)](_0xad87e2,{'recursive':!![]})),_0xad87e2;}get['dataPathGlobal'](){const _0x5d93b1=_0x4d4041,_0x35945d={'kVYng':_0x5d93b1(0x146)};return _0x4f6968[_0x5d93b1(0xfd)](this[_0x5d93b1(0x14d)],_0x35945d[_0x5d93b1(0xf0)]);}[_0x4d4041(0x11a)](){const _0x5ef523=_0x4d4041,_0x6ad97d={'EbpDD':_0x5ef523(0x129)};this['engine'][_0x5ef523(0x153)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5ef523(0x110)],'os_version':_0x6ad97d[_0x5ef523(0x127)],'use_xlog':!![],'qua':_0x5ef523(0x13a)+qqVersionConfigInfo[_0x5ef523(0x110)][_0x5ef523(0xf3)]('-','_')+_0x5ef523(0x124),'global_path_config':{'desktopGlobalPath':this[_0x5ef523(0x14c)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x126a09[(_0x5ef523(0x13b))](new GlobalAdapter())),this[_0x5ef523(0x117)][_0x5ef523(0x11a)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5ef523(0x14c)],'clientVer':qqVersionConfigInfo[_0x5ef523(0x110)],'hostName':hostname});}['initSession'](_0x469522,_0x1843cb){const _0x2e1a5d={'tZKLP':function(_0x203502,_0x29a42a){return _0x203502===_0x29a42a;},'zYwua':function(_0x42aea2,_0x3a3822){return _0x42aea2(_0x3a3822);},'IAXDr':function(_0x24f508,_0x432a80){return _0x24f508(_0x432a80);},'HfuNZ':function(_0x479d28,_0x19e344,_0x32136e,_0x44f2f4){return _0x479d28(_0x19e344,_0x32136e,_0x44f2f4);},'TKeXV':function(_0x5acc78,_0x298da1){return _0x5acc78+_0x298da1;}};return new Promise((_0x3ea273,_0x34826e)=>{const _0x1c31e3=_0x2b87,_0x42982a=_0x2e1a5d[_0x1c31e3(0x15e)](genSessionConfig,_0x469522,_0x1843cb,this['dataPath']),_0xbfb733=new SessionListener();_0xbfb733[_0x1c31e3(0x140)]=_0x3d879c=>{const _0x4a010c=_0x1c31e3;if(_0x2e1a5d['tZKLP'](_0x3d879c,0x0))return _0x2e1a5d[_0x4a010c(0x135)](_0x3ea273,0x0);_0x2e1a5d[_0x4a010c(0x11c)](_0x34826e,_0x3d879c);},this['session']['init'](_0x42982a,new _0x126a09['NodeIDependsAdapter'](new DependsAdapter()),new _0x126a09[(_0x1c31e3(0x10c))](new DispatcherAdapter()),new _0x126a09['NodeIKernelSessionListener'](_0xbfb733));try{this['session'][_0x1c31e3(0x16c)](0x0);}catch(_0x469769){try{this[_0x1c31e3(0x10d)][_0x1c31e3(0x16c)]();}catch(_0xd1cc4){_0x2e1a5d[_0x1c31e3(0x135)](_0x34826e,_0x2e1a5d[_0x1c31e3(0x125)](_0x1c31e3(0x138),_0xd1cc4));}}});}[_0x4d4041(0x115)](){const _0x5d00f3=_0x4d4041,_0x54bd97={'Ppjyu':function(_0x2109da,_0x2c5caa){return _0x2109da===_0x2c5caa;},'qnzsT':_0x5d00f3(0xe5)},_0x597150=new MsgListener();_0x597150['onMsgInfoListUpdate']=_0x2f43bf=>{const _0x4a123a=_0x5d00f3;_0x2f43bf[_0x4a123a(0xe2)](_0x55535c=>{const _0x671fa2=_0x4a123a;_0x54bd97[_0x671fa2(0xf5)](_0x55535c['recallTime'],'0')?dbUtil['addMsg'](_0x55535c)[_0x671fa2(0xff)]()[_0x671fa2(0x159)]():dbUtil['getMsgByLongId'](_0x55535c[_0x671fa2(0xfa)])[_0x671fa2(0xff)](_0xe3afbb=>{const _0x56734b=_0x671fa2;_0xe3afbb&&(_0xe3afbb[_0x56734b(0xfb)]=_0x55535c[_0x56734b(0xfb)],dbUtil['updateMsg'](_0xe3afbb)[_0x56734b(0xff)]());});});},this['addListener'](_0x597150);const _0x5a941f=new BuddyListener();_0x5a941f[_0x5d00f3(0xe3)]=_0x5ce287=>{const _0x45786f=_0x5d00f3;for(const _0x274d2a of _0x5ce287){for(const _0x15b6cd of _0x274d2a[_0x45786f(0x107)]){const _0x2e40ed=friends[_0x45786f(0x168)](_0x15b6cd['uid']);uid2UinMap[_0x15b6cd[_0x45786f(0x101)]]=_0x15b6cd[_0x45786f(0x12b)],_0x2e40ed?Object[_0x45786f(0xf7)](_0x2e40ed,_0x15b6cd):friends[_0x45786f(0x163)](_0x15b6cd[_0x45786f(0x101)],_0x15b6cd);}}},this[_0x5d00f3(0x11f)](_0x5a941f),this[_0x5d00f3(0x10d)][_0x5d00f3(0xdd)]()['getBuddyList'](!![])['then'](_0x1b5c89=>{});const _0x172e42=new ProfileListener();_0x172e42[_0x5d00f3(0x102)]=_0x434a7a=>{const _0x5ca4b1=_0x5d00f3;_0x434a7a[_0x5ca4b1(0x101)]===selfInfo[_0x5ca4b1(0x101)]&&Object['assign'](selfInfo,_0x434a7a);},this[_0x5d00f3(0x11f)](_0x172e42);const _0x7890bc=new GroupListener();_0x7890bc[_0x5d00f3(0xe9)]=(_0x167c5e,_0x24dc3f)=>{_0x24dc3f['map'](_0x227f2b=>{const _0x39413f=_0x2b87,_0x202139=groups[_0x39413f(0x168)](_0x227f2b[_0x39413f(0xee)]);if(_0x202139)Object['assign'](_0x202139,_0x227f2b);else{groups[_0x39413f(0x163)](_0x227f2b[_0x39413f(0xee)],_0x227f2b);const _0x4e6ac2=this['session'][_0x39413f(0x14e)]()['createMemberListScene'](_0x227f2b[_0x39413f(0xee)],_0x54bd97['qnzsT']);this[_0x39413f(0x10d)][_0x39413f(0x14e)]()['getNextMemberList'](_0x4e6ac2,undefined,0xbb8)['then'](_0x42ed8c=>{});}});},_0x7890bc[_0x5d00f3(0x160)]=_0x152fed=>{const _0x3ed465=_0x5d00f3,_0xb6e2d9=_0x152fed[_0x3ed465(0x13e)][_0x3ed465(0xfc)]('_')[0x0];if(groupMembers[_0x3ed465(0x122)](_0xb6e2d9)){const _0x4480d6=groupMembers['get'](_0xb6e2d9);_0x152fed[_0x3ed465(0xde)][_0x3ed465(0x14a)]((_0x54859f,_0x21c725)=>{const _0x26b316=_0x3ed465,_0x5b1e2a=_0x4480d6[_0x26b316(0x168)](_0x21c725);_0x5b1e2a?Object['assign'](_0x5b1e2a,_0x54859f):_0x4480d6[_0x26b316(0x163)](_0x21c725,_0x54859f);});}else groupMembers[_0x3ed465(0x163)](_0xb6e2d9,_0x152fed[_0x3ed465(0xde)]);},_0x7890bc['onMemberInfoChange']=(_0x6a1f5e,_0x4462f0,_0x374334)=>{const _0x431381=_0x5d00f3;_0x374334[_0x431381(0x14a)]((_0x2df934,_0xa2a67c)=>{const _0x3e89ef=_0x431381;uid2UinMap[_0xa2a67c]=_0x2df934[_0x3e89ef(0x12b)];});const _0x4f4929=groupMembers['get'](_0x6a1f5e);_0x4f4929?_0x374334[_0x431381(0x14a)]((_0x304b01,_0x5cd904)=>{const _0xe64299=_0x431381,_0x31b082=_0x4f4929['get'](_0x5cd904);_0x31b082?Object[_0xe64299(0xf7)](_0x31b082,_0x304b01):_0x4f4929['set'](_0x5cd904,_0x304b01);}):groupMembers['set'](_0x6a1f5e,_0x374334);},this[_0x5d00f3(0x11f)](_0x7890bc);}[_0x4d4041(0x11f)](_0x301a3e){const _0x3dd178=_0x4d4041,_0x570500={'frDRw':_0x3dd178(0x158),'kdyOq':'GroupListener','wyHZR':'MsgListener','cmcQx':_0x3dd178(0xdb)};_0x301a3e=new Proxy(_0x301a3e,this[_0x3dd178(0x139)]);switch(_0x301a3e['constructor']['name']){case _0x570500[_0x3dd178(0xef)]:{return this[_0x3dd178(0x10d)][_0x3dd178(0xdd)]()[_0x3dd178(0x11b)](new _0x126a09['NodeIKernelBuddyListener'](_0x301a3e));}case _0x570500[_0x3dd178(0x161)]:{return this[_0x3dd178(0x10d)][_0x3dd178(0x14e)]()['addKernelGroupListener'](new _0x126a09[(_0x3dd178(0x103))](_0x301a3e));}case _0x570500[_0x3dd178(0x14f)]:{return this['session'][_0x3dd178(0x10b)]()['addKernelMsgListener'](new _0x126a09[(_0x3dd178(0x133))](_0x301a3e));}case _0x570500['cmcQx']:{return this[_0x3dd178(0x10d)][_0x3dd178(0x137)]()[_0x3dd178(0xea)](new _0x126a09['NodeIKernelProfileListener'](_0x301a3e));}default:return-0x1;}}[_0x4d4041(0x134)](_0x178f03){const _0x28136c=_0x4d4041;this[_0x28136c(0x12d)][_0x28136c(0x166)](_0x178f03);}async[_0x4d4041(0x13d)](_0x5ee569){const _0x2d3a08=_0x4d4041,_0x403bb0={'fwzEs':function(_0x1a4c22,_0x2f8b95){return _0x1a4c22!==_0x2f8b95;},'nZMYY':'没有可快速登录的QQ号','SwYqS':'快速登录失败\x20'},_0x735c35=await this[_0x2d3a08(0x117)]['getLoginList']();if(_0x403bb0['fwzEs'](_0x735c35[_0x2d3a08(0x105)],0x0))throw new Error(_0x403bb0[_0x2d3a08(0x116)]);const _0x1cad99=_0x735c35['LocalLoginInfoList'][_0x2d3a08(0x16a)](_0x1eea49=>_0x1eea49[_0x2d3a08(0x12b)]===_0x5ee569);if(!_0x1cad99||!_0x1cad99?.[_0x2d3a08(0x120)])throw new Error(_0x5ee569+_0x2d3a08(0x15a));await sleep(0x3e8);const _0x30322a=await this[_0x2d3a08(0x117)][_0x2d3a08(0xec)](_0x5ee569);if(!_0x30322a[_0x2d3a08(0x105)])throw new Error(_0x403bb0[_0x2d3a08(0x10e)]+_0x30322a[_0x2d3a08(0xdc)][_0x2d3a08(0xf8)]);return _0x30322a;}async[_0x4d4041(0x12e)](){const _0x2f6f43=_0x4d4041,_0x3d5bb8={'EIhYP':_0x2f6f43(0x13f),'KqNSC':function(_0x24864b,_0x1cc8e2){return _0x24864b(_0x1cc8e2);},'etpFd':_0x2f6f43(0x136),'KiScW':function(_0x2d94b0,_0x34efb8,_0x2ff59d){return _0x2d94b0(_0x34efb8,_0x2ff59d);}};let _0x193388=![];return new Promise((_0x50a565,_0x3b4927)=>{const _0x45b610=_0x2f6f43,_0x23f8f1={'FdoxI':function(_0x2a7159,_0x5c9d62){return _0x2a7159(_0x5c9d62);},'NMpyy':_0x3d5bb8[_0x45b610(0x141)]};_0x3d5bb8[_0x45b610(0x106)](setTimeout,()=>{const _0x39c15d=_0x45b610;!_0x193388&&_0x23f8f1['FdoxI'](_0x3b4927,_0x23f8f1[_0x39c15d(0x165)]);},0x2710),this['loginListener'][_0x45b610(0xe1)]=_0x56e5c4=>{const _0x1103ee=_0x45b610;_0x193388=!![];const _0x3a0c8e=_0x56e5c4[_0x1103ee(0x15d)][_0x1103ee(0xfc)](_0x1103ee(0x11e))[0x1],_0x1ce6bf=Buffer['from'](_0x3a0c8e,_0x3d5bb8[_0x1103ee(0x12c)]);_0x3d5bb8[_0x1103ee(0x10f)](_0x50a565,{'url':_0x56e5c4[_0x1103ee(0x164)],'base64':_0x56e5c4[_0x1103ee(0x15d)],'buffer':_0x1ce6bf});},this[_0x45b610(0x117)][_0x45b610(0x151)]();});}async[_0x4d4041(0x16d)](_0x45da41,_0x13b6d2,_0x370845,_0x55ca13,_0x380950){const _0x8e3b1=_0x4d4041,_0x5e6704={'nPEXz':_0x8e3b1(0x155),'HAfSt':_0x8e3b1(0xf2),'tNyGA':function(_0x1e2948,_0x491800){return _0x1e2948&&_0x491800;},'eTSJI':function(_0xc8ceb3,_0x38cfa5){return _0xc8ceb3||_0x38cfa5;},'uGyYt':'140022008','tZNQL':_0x8e3b1(0x132)},_0x403cdc=_0x217241[_0x8e3b1(0x169)](_0x5e6704[_0x8e3b1(0x111)])['update'](_0x13b6d2)[_0x8e3b1(0xf6)](_0x5e6704['HAfSt']),_0x578852={'uin':_0x45da41,'passwordMd5':_0x403cdc,'step':_0x5e6704[_0x8e3b1(0x144)](_0x370845,_0x55ca13)&&_0x380950?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x370845||'','proofWaterRand':_0x5e6704[_0x8e3b1(0x143)](_0x55ca13,''),'proofWaterSid':_0x380950||''};await this['loginService'][_0x8e3b1(0x149)](),await sleep(0x3e8);const _0x57e7b2=await this[_0x8e3b1(0x117)][_0x8e3b1(0x16d)](_0x578852);switch(_0x57e7b2[_0x8e3b1(0x105)]){case'0':{break;}case _0x5e6704[_0x8e3b1(0x15b)]:{break;}case'4':case _0x5e6704['tZNQL']:default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x59bad7=_0x1924;(function(_0x20842a,_0xe19870){const _0x5cefc6=_0x1924,_0x52280a=_0x20842a();while(!![]){try{const _0x36a1f2=-parseInt(_0x5cefc6(0x129))/0x1+parseInt(_0x5cefc6(0x18e))/0x2*(parseInt(_0x5cefc6(0x148))/0x3)+parseInt(_0x5cefc6(0x149))/0x4+-parseInt(_0x5cefc6(0x17f))/0x5*(-parseInt(_0x5cefc6(0x117))/0x6)+parseInt(_0x5cefc6(0x17d))/0x7*(parseInt(_0x5cefc6(0x198))/0x8)+-parseInt(_0x5cefc6(0x164))/0x9+-parseInt(_0x5cefc6(0x19f))/0xa;if(_0x36a1f2===_0xe19870)break;else _0x52280a['push'](_0x52280a['shift']());}catch(_0x313f94){_0x52280a['push'](_0x52280a['shift']());}}}(_0x5279,0x29fff));import _0x2c75d4 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x4b3ea6 from'node:path';function _0x5279(){const _0x43d514=['本账号数据/缓存目录:','MsgListener','set','dataPathGlobal','loginService','constructor','OoQAN','quickLogin','2416IoJRtg','from','buddyList','VQtnJ','engine','jurxD','aoIUT','2792510VUiFfj','uid','proxyHandler','onQRCodeLoginSucceed','没有可快速登录的QQ号','initConfig','IZhng','140022013','登录失败','NodeIKernelProfileListener','qrcodeUrl','name','获取二维码登录超时','vLsKd','Ndmxa','loginListener','jfMlM','jMVMC','read','ycpKo','KdFyJ','mkdirSync','addKernelProfileListener','assign','LocalLoginInfoList','onSessionInitComplete','WOUdO','result','msgId','758070YBucPC','uin','consoleLog','NodeIDependsAdapter','createMemberListScene','init\x20failed\x20','onMemberListChange','then','ProfileListener','sceneId','undefined','iIJMG','ohGjC','getMsgService','-v2.db','fkviQ','initWithDeskTopConfig','quickLoginWithUin','205785YqHuXE','base64','groupMemberList_MainWindow','uORQt','getQRCodePicture','xZAaL','groupCode','HIWOb','kDgJx','onLoginFailed','qPVXA','catch','快速登录失败\x20','find','startNT','push','./NapCat/data','FhJRb','onLoginSuccessFuncList','getBuddyList','getGroupService','140022008','loginErrorInfo','NodeIKernelLoginService','addKernelLoginListener','md5','qrLogin','init','digest','util','getLoginList','193089PcjcSG','115304ZuxQib','_GW_B','onQRCodeGetPicture','NodeQQNTWrapperUtil','tBcbr','NodeIGlobalAdapter','initSession\x20failed','isQuickLogin','homedir','pzUHZ','forEach','onLoginSuccess','HJPQc','update','get','getNextMemberList','pWFfF','Vwkat','NodeIKernelMsgListener','V1_WIN_NQ_','./.config/QQ','passwordLogin','stringify','GroupListener','updateMsg','qeRtc','onBuddyListChange','684135lhxwwT','hex','DrTxQ','split','createHash','hpJgc','nzrhh','initSession','replace','getBuddyService','onQRCodeSessionFailed','pngBase64QrcodeData','oAqoA','curVersion','Sksls','OAfJj','bfjht','xLWJi','EmdBM','Windows\x2010\x20Pro','resolve','dataPath','initDataListener','NodeIKernelBuddyListener','addListener','5936oSWseM','WAcUd','5oCkWJj','NodeIKernelSessionListener','JtDOa','数据库初始化失败','session','recallTime','CXuNI','onProfileDetailInfoChanged','consoleLogLevel','DndKX','getNTUserDataInfoConfig','infos','getMsgByLongId','FRwHH','rkkcv','10yOwftz','getProfileService'];_0x5279=function(){return _0x43d514;};return _0x5279();}import _0xedd1de from'node:os';import _0xc1eb1a from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';function _0x1924(_0x43e0ea,_0x230f25){const _0x5279fd=_0x5279();return _0x1924=function(_0x19243e,_0x6344b0){_0x19243e=_0x19243e-0xfe;let _0x49fdd3=_0x5279fd[_0x19243e];return _0x49fdd3;},_0x1924(_0x43e0ea,_0x230f25);}import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x886fcc from'node:crypto';import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x59bad7(0x183)];[_0x59bad7(0x146)];['engine'];['loginService'];[_0x59bad7(0x109)];[_0x59bad7(0x13b)]=[];['proxyHandler']={'get'(target,prop,receiver){const _0x4ffdb4=_0x59bad7,ClcxOS={'RIfgF':function(callee,param1){return callee(param1);},'EmdBM':function(x,y){return x===y;}};if(ClcxOS[_0x4ffdb4(0x176)](typeof target[prop],_0x4ffdb4(0x121)))return(...args)=>{const _0x238c33=_0x4ffdb4;ClcxOS['RIfgF'](logDebug,target[_0x238c33(0x195)][_0x238c33(0x105)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x4ffdb4(0x157)](target,prop,receiver);}};constructor(){const _0x4e2333=_0x59bad7,_0x5125f6={'vCmIw':_0x4e2333(0x14f),'VQxzY':function(_0x2be806,_0x1b9e37){return _0x2be806 instanceof _0x1b9e37;},'tBcbr':function(_0x5103c2,_0x53064f,_0x3d0c10){return _0x5103c2(_0x53064f,_0x3d0c10);},'HIWOb':function(_0x1187b7,_0x297605){return _0x1187b7(_0x297605);},'hpJgc':_0x4e2333(0x190),'jurxD':function(_0x19fa4d,_0x51d3e4,_0x2d8e8c){return _0x19fa4d(_0x51d3e4,_0x2d8e8c);}};this[_0x4e2333(0x19c)]=new _0x2c75d4['NodeIQQNTWrapperEngine'](),this['util']=new _0x2c75d4[(_0x4e2333(0x14c))](),this[_0x4e2333(0x194)]=new _0x2c75d4[(_0x4e2333(0x140))](),this[_0x4e2333(0x183)]=new _0x2c75d4['NodeIQQNTWrapperSession'](),this[_0x4e2333(0x109)]=new LoginListener(),this[_0x4e2333(0x109)][_0x4e2333(0x1a2)]=_0x33e1f4=>{const _0x26fa47=_0x4e2333,_0x4a6598={'Vwkat':function(_0xa69d87,_0x2f4b52){return _0x5125f6['VQxzY'](_0xa69d87,_0x2f4b52);},'xZAaL':_0x26fa47(0x182),'SympT':function(_0x299a93,_0x394c2d,_0x5e1b91){const _0x43de31=_0x26fa47;return _0x5125f6[_0x43de31(0x14d)](_0x299a93,_0x394c2d,_0x5e1b91);},'DndKX':function(_0x2d6f87,_0x45a9f9){return _0x5125f6['HIWOb'](_0x2d6f87,_0x45a9f9);},'FhJRb':function(_0x47fc14,_0x4b42ff){const _0x4cbf8b=_0x26fa47;return _0x5125f6[_0x4cbf8b(0x130)](_0x47fc14,_0x4b42ff);},'uORQt':function(_0xa9840f,_0x3b02f0,_0x3fa646){return _0xa9840f(_0x3b02f0,_0x3fa646);},'jMVMC':_0x5125f6[_0x26fa47(0x169)]};this[_0x26fa47(0x16b)](_0x33e1f4[_0x26fa47(0x118)],_0x33e1f4[_0x26fa47(0x1a0)])[_0x26fa47(0x11e)](_0x2b5826=>{const _0x120d3b=_0x26fa47,_0x8985da={'VQtnJ':function(_0x5238a2,_0x182238,_0x2944d2){return _0x5238a2(_0x182238,_0x2944d2);},'KOBNI':function(_0x130f29,_0x2ba2b0){const _0x1bc8b2=_0x1924;return _0x4a6598[_0x1bc8b2(0x15a)](_0x130f29,_0x2ba2b0);},'wmCVC':_0x4a6598[_0x120d3b(0x12e)]};selfInfo[_0x120d3b(0x118)]=_0x33e1f4[_0x120d3b(0x118)],selfInfo['uid']=_0x33e1f4[_0x120d3b(0x1a0)],napCatConfig[_0x120d3b(0x10c)](),_0x4a6598['SympT'](setLogLevel,napCatConfig['fileLogLevel'],napCatConfig[_0x120d3b(0x187)]),_0x4a6598['DndKX'](enableFileLog,napCatConfig['fileLog']),_0x4a6598[_0x120d3b(0x13a)](enableConsoleLog,napCatConfig[_0x120d3b(0x119)]),_0x4a6598[_0x120d3b(0x188)](setLogSelfInfo,selfInfo);const _0x3813a5=_0x4b3ea6['resolve'](this['dataPath'],_0x120d3b(0x139));_0xc1eb1a[_0x120d3b(0x10f)](_0x3813a5,{'recursive':!![]}),_0x4a6598[_0x120d3b(0x12c)](logDebug,_0x4a6598[_0x120d3b(0x10b)],_0x3813a5),dbUtil['init'](_0x4b3ea6[_0x120d3b(0x178)](_0x3813a5,'./'+_0x33e1f4[_0x120d3b(0x118)]+_0x120d3b(0x125)))[_0x120d3b(0x11e)](()=>{const _0x4e6727=_0x120d3b;this[_0x4e6727(0x17a)](),this[_0x4e6727(0x13b)]['map'](_0x21ddf8=>{const _0x2ab5e9=_0x4e6727,_0x9ea47b={'qPVXA':function(_0x3c2cba,_0x4c0c5c,_0x40b501){const _0x154672=_0x1924;return _0x8985da[_0x154672(0x19b)](_0x3c2cba,_0x4c0c5c,_0x40b501);},'Ndmxa':function(_0x4cce22,_0x2a122e){return _0x8985da['KOBNI'](_0x4cce22,_0x2a122e);}};new Promise((_0x547e7a,_0x4b344a)=>{const _0x50a048=_0x1924,_0x134e72=_0x9ea47b[_0x50a048(0x133)](_0x21ddf8,_0x33e1f4[_0x50a048(0x118)],_0x33e1f4[_0x50a048(0x1a0)]);_0x9ea47b[_0x50a048(0x108)](_0x134e72,Promise)&&_0x134e72[_0x50a048(0x11e)](_0x547e7a)['catch'](_0x4b344a);})[_0x2ab5e9(0x11e)]();});})['catch'](_0x503776=>{_0x8985da['VQtnJ'](logError,_0x8985da['wmCVC'],_0x503776);});})[_0x26fa47(0x134)](_0x286c67=>{const _0x3b83d0=_0x26fa47;logError(_0x5125f6['vCmIw'],_0x286c67);throw new Error('启动失败:\x20'+JSON[_0x3b83d0(0x15f)](_0x286c67));});},this[_0x4e2333(0x109)][_0x4e2333(0x16e)]=_0x7f8a3=>{_0x5125f6['tBcbr'](logError,'登录失败',_0x7f8a3);},this[_0x4e2333(0x109)][_0x4e2333(0x132)]=_0x370478=>{const _0x208a8f=_0x4e2333;_0x5125f6[_0x208a8f(0x19d)](logError,_0x208a8f(0x102),_0x370478);},this[_0x4e2333(0x109)]=new Proxy(this[_0x4e2333(0x109)],this[_0x4e2333(0x1a1)]),this[_0x4e2333(0x194)][_0x4e2333(0x141)](new _0x2c75d4['NodeIKernelLoginListener'](this[_0x4e2333(0x109)])),this[_0x4e2333(0xff)]();}get[_0x59bad7(0x179)](){const _0x3ff111=_0x59bad7;let _0x51f0e5=this['util'][_0x3ff111(0x189)]();return!_0x51f0e5&&(_0x51f0e5=_0x4b3ea6[_0x3ff111(0x178)](_0xedd1de[_0x3ff111(0x151)](),_0x3ff111(0x15d)),_0xc1eb1a[_0x3ff111(0x10f)](_0x51f0e5,{'recursive':!![]})),_0x51f0e5;}get[_0x59bad7(0x193)](){const _0x7025cd=_0x59bad7,_0x49d7aa={'WAcUd':'./nt_qq/global'};return _0x4b3ea6[_0x7025cd(0x178)](this[_0x7025cd(0x179)],_0x49d7aa[_0x7025cd(0x17e)]);}[_0x59bad7(0xff)](){const _0x48a30e=_0x59bad7;this[_0x48a30e(0x19c)][_0x48a30e(0x127)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo['curVersion'],'os_version':_0x48a30e(0x177),'use_xlog':!![],'qua':_0x48a30e(0x15c)+qqVersionConfigInfo[_0x48a30e(0x171)][_0x48a30e(0x16c)]('-','_')+_0x48a30e(0x14a),'global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x2c75d4[(_0x48a30e(0x14e))](new GlobalAdapter())),this[_0x48a30e(0x194)][_0x48a30e(0xff)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0x59bad7(0x16b)](_0x23a50c,_0x1488d0){const _0x49e762=_0x59bad7,_0x7428a8={'DrTxQ':function(_0x4a2a5f,_0x4216ae){return _0x4a2a5f(_0x4216ae);},'qPbkU':function(_0x6d84d8,_0x483eb2){return _0x6d84d8(_0x483eb2);},'qeRtc':function(_0x8a32ee,_0x19fd3c){return _0x8a32ee+_0x19fd3c;},'iIJMG':_0x49e762(0x11c)};return new Promise((_0x1654fb,_0x495f08)=>{const _0x5478ab=_0x49e762,_0x1eb8fe={'rkkcv':function(_0xd1d0e6,_0x5ade9b){const _0x174c9b=_0x1924;return _0x7428a8[_0x174c9b(0x166)](_0xd1d0e6,_0x5ade9b);},'OoQAN':function(_0x44c5bc,_0x1b1c9d){const _0x578157=_0x1924;return _0x7428a8[_0x578157(0x166)](_0x44c5bc,_0x1b1c9d);}},_0x491e7d=genSessionConfig(_0x23a50c,_0x1488d0,this[_0x5478ab(0x179)]),_0x5ee3c9=new SessionListener();_0x5ee3c9[_0x5478ab(0x113)]=_0x172782=>{const _0x4dedc7=_0x5478ab;if(_0x172782===0x0)return _0x1eb8fe[_0x4dedc7(0x18d)](_0x1654fb,0x0);_0x1eb8fe[_0x4dedc7(0x196)](_0x495f08,_0x172782);},this[_0x5478ab(0x183)][_0x5478ab(0x144)](_0x491e7d,new _0x2c75d4[(_0x5478ab(0x11a))](new DependsAdapter()),new _0x2c75d4['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x2c75d4[(_0x5478ab(0x180))](_0x5ee3c9));try{this[_0x5478ab(0x183)][_0x5478ab(0x137)](0x0);}catch(_0x98c52b){try{this[_0x5478ab(0x183)]['startNT']();}catch(_0x3e8048){_0x7428a8['qPbkU'](_0x495f08,_0x7428a8[_0x5478ab(0x162)](_0x7428a8[_0x5478ab(0x122)],_0x3e8048));}}});}[_0x59bad7(0x17a)](){const _0x4854a8=_0x59bad7,_0x175650={'JtDOa':function(_0x530471,_0x138c44){return _0x530471===_0x138c44;},'ycpKo':_0x4854a8(0x12b)},_0xdb75c0=new MsgListener();_0xdb75c0['onMsgInfoListUpdate']=_0x2b9963=>{const _0x3bcbb2={'ohGjC':function(_0x41ff50,_0x34a6b4){const _0x5b5e92=_0x1924;return _0x175650[_0x5b5e92(0x181)](_0x41ff50,_0x34a6b4);}};_0x2b9963['map'](_0x9c8228=>{const _0x5a1edf=_0x1924;_0x3bcbb2[_0x5a1edf(0x123)](_0x9c8228['recallTime'],'0')?dbUtil['addMsg'](_0x9c8228)[_0x5a1edf(0x11e)]()['catch']():dbUtil[_0x5a1edf(0x18b)](_0x9c8228[_0x5a1edf(0x116)])[_0x5a1edf(0x11e)](_0x3dceb2=>{const _0x4b1515=_0x5a1edf;_0x3dceb2&&(_0x3dceb2[_0x4b1515(0x184)]=_0x9c8228[_0x4b1515(0x184)],dbUtil[_0x4b1515(0x161)](_0x3dceb2)[_0x4b1515(0x11e)]());});});},this[_0x4854a8(0x17c)](_0xdb75c0);const _0x272898=new BuddyListener();_0x272898[_0x4854a8(0x163)]=_0x28fc5e=>{const _0x32b683=_0x4854a8;for(const _0x1ee101 of _0x28fc5e){for(const _0x286859 of _0x1ee101[_0x32b683(0x19a)]){const _0x3e801c=friends[_0x32b683(0x157)](_0x286859[_0x32b683(0x1a0)]);uid2UinMap[_0x286859[_0x32b683(0x1a0)]]=_0x286859[_0x32b683(0x118)],_0x3e801c?Object[_0x32b683(0x111)](_0x3e801c,_0x286859):friends[_0x32b683(0x192)](_0x286859[_0x32b683(0x1a0)],_0x286859);}}},this[_0x4854a8(0x17c)](_0x272898),this[_0x4854a8(0x183)][_0x4854a8(0x16d)]()[_0x4854a8(0x13c)](!![])['then'](_0x55768f=>{});const _0xb26ecc=new ProfileListener();_0xb26ecc[_0x4854a8(0x186)]=_0x56d34b=>{const _0x4b92e9=_0x4854a8;_0x56d34b[_0x4b92e9(0x1a0)]===selfInfo['uid']&&Object[_0x4b92e9(0x111)](selfInfo,_0x56d34b);},this[_0x4854a8(0x17c)](_0xb26ecc);const _0x403b65=new GroupListener();_0x403b65['onGroupListUpdate']=(_0x4d3241,_0x2502dd)=>{const _0x1abd24=_0x4854a8,_0x9aeaa5={'jfMlM':_0x175650[_0x1abd24(0x10d)]};_0x2502dd['map'](_0x589b37=>{const _0x339a9b=_0x1abd24,_0x57ebc1=groups[_0x339a9b(0x157)](_0x589b37[_0x339a9b(0x12f)]);if(_0x57ebc1)Object[_0x339a9b(0x111)](_0x57ebc1,_0x589b37);else{groups[_0x339a9b(0x192)](_0x589b37['groupCode'],_0x589b37);const _0x336d20=this[_0x339a9b(0x183)]['getGroupService']()[_0x339a9b(0x11b)](_0x589b37['groupCode'],_0x9aeaa5[_0x339a9b(0x10a)]);this[_0x339a9b(0x183)]['getGroupService']()[_0x339a9b(0x158)](_0x336d20,undefined,0xbb8)[_0x339a9b(0x11e)](_0x2cb141=>{});}});},_0x403b65[_0x4854a8(0x11d)]=_0x17e61c=>{const _0x492828=_0x4854a8,_0x10d269=_0x17e61c[_0x492828(0x120)][_0x492828(0x167)]('_')[0x0];if(groupMembers['has'](_0x10d269)){const _0x3d7f1c=groupMembers[_0x492828(0x157)](_0x10d269);_0x17e61c[_0x492828(0x18a)]['forEach']((_0xd7f4a5,_0x44c0b0)=>{const _0x14891b=_0x492828,_0x2dba7e=_0x3d7f1c[_0x14891b(0x157)](_0x44c0b0);_0x2dba7e?Object[_0x14891b(0x111)](_0x2dba7e,_0xd7f4a5):_0x3d7f1c[_0x14891b(0x192)](_0x44c0b0,_0xd7f4a5);});}else groupMembers[_0x492828(0x192)](_0x10d269,_0x17e61c['infos']);},_0x403b65['onMemberInfoChange']=(_0x5a5fd1,_0x17b57d,_0x51bb16)=>{const _0x14f062=_0x4854a8;_0x51bb16[_0x14f062(0x153)]((_0x48e12e,_0x513cf6)=>{uid2UinMap[_0x513cf6]=_0x48e12e['uin'];});const _0x241dbc=groupMembers['get'](_0x5a5fd1);_0x241dbc?_0x51bb16[_0x14f062(0x153)]((_0x2cb5aa,_0x15c02c)=>{const _0x2dc635=_0x14f062,_0x23935f=_0x241dbc['get'](_0x15c02c);_0x23935f?Object[_0x2dc635(0x111)](_0x23935f,_0x2cb5aa):_0x241dbc['set'](_0x15c02c,_0x2cb5aa);}):groupMembers[_0x14f062(0x192)](_0x5a5fd1,_0x51bb16);},this[_0x4854a8(0x17c)](_0x403b65);}[_0x59bad7(0x17c)](_0x1056ed){const _0x1768e9=_0x59bad7,_0x31a23d={'oAqoA':'BuddyListener','IZhng':_0x1768e9(0x160),'aoIUT':_0x1768e9(0x191)};_0x1056ed=new Proxy(_0x1056ed,this['proxyHandler']);switch(_0x1056ed[_0x1768e9(0x195)][_0x1768e9(0x105)]){case _0x31a23d[_0x1768e9(0x170)]:{return this[_0x1768e9(0x183)][_0x1768e9(0x16d)]()['addKernelBuddyListener'](new _0x2c75d4[(_0x1768e9(0x17b))](_0x1056ed));}case _0x31a23d[_0x1768e9(0x100)]:{return this['session'][_0x1768e9(0x13d)]()['addKernelGroupListener'](new _0x2c75d4['NodeIKernelGroupListener'](_0x1056ed));}case _0x31a23d[_0x1768e9(0x19e)]:{return this[_0x1768e9(0x183)][_0x1768e9(0x124)]()['addKernelMsgListener'](new _0x2c75d4[(_0x1768e9(0x15b))](_0x1056ed));}case _0x1768e9(0x11f):{return this[_0x1768e9(0x183)][_0x1768e9(0x18f)]()[_0x1768e9(0x110)](new _0x2c75d4[(_0x1768e9(0x103))](_0x1056ed));}default:return-0x1;}}[_0x59bad7(0x154)](_0x1ac889){const _0x50b0f0=_0x59bad7;this[_0x50b0f0(0x13b)][_0x50b0f0(0x138)](_0x1ac889);}async[_0x59bad7(0x197)](_0x4ad4e5){const _0x2aeaf7=_0x59bad7,_0xc7f275={'KdFyJ':_0x2aeaf7(0xfe),'fkviQ':function(_0x358039,_0x52efae){return _0x358039(_0x52efae);},'nzrhh':function(_0x4472b0,_0xedf0ba){return _0x4472b0+_0xedf0ba;}},_0x3aaff7=await this[_0x2aeaf7(0x194)][_0x2aeaf7(0x147)]();if(_0x3aaff7['result']!==0x0)throw new Error(_0xc7f275[_0x2aeaf7(0x10e)]);const _0x881798=_0x3aaff7[_0x2aeaf7(0x112)][_0x2aeaf7(0x136)](_0x1aae9e=>_0x1aae9e[_0x2aeaf7(0x118)]===_0x4ad4e5);if(!_0x881798||!_0x881798?.[_0x2aeaf7(0x150)])throw new Error(_0x4ad4e5+'快速登录不可用');await _0xc7f275[_0x2aeaf7(0x126)](sleep,0x3e8);const _0x22df9d=await this[_0x2aeaf7(0x194)][_0x2aeaf7(0x128)](_0x4ad4e5);if(!_0x22df9d['result'])throw new Error(_0xc7f275[_0x2aeaf7(0x16a)](_0x2aeaf7(0x135),_0x22df9d[_0x2aeaf7(0x13f)]['errMsg']));return _0x22df9d;}async[_0x59bad7(0x143)](){const _0x1eecc7=_0x59bad7,_0x5f1d87={'xLWJi':function(_0x73210e,_0x7e43a3){return _0x73210e(_0x7e43a3);},'kDgJx':'data:image/png;base64,','pWFfF':_0x1eecc7(0x12a),'HJPQc':function(_0x380131,_0x5e26b0){return _0x380131(_0x5e26b0);}};let _0x412bb7=![];return new Promise((_0x377182,_0x47fe3b)=>{const _0x2be763=_0x1eecc7,_0x280676={'vLsKd':_0x5f1d87[_0x2be763(0x131)],'Sksls':_0x5f1d87[_0x2be763(0x159)],'aLDSg':function(_0x20a03b,_0x327550){const _0xcff596=_0x2be763;return _0x5f1d87[_0xcff596(0x155)](_0x20a03b,_0x327550);}};setTimeout(()=>{const _0x51cdae=_0x2be763;!_0x412bb7&&_0x5f1d87[_0x51cdae(0x175)](_0x47fe3b,_0x51cdae(0x106));},0x2710),this[_0x2be763(0x109)][_0x2be763(0x14b)]=_0x59679=>{const _0x497c03=_0x2be763;_0x412bb7=!![];const _0x2bba56=_0x59679[_0x497c03(0x16f)]['split'](_0x280676[_0x497c03(0x107)])[0x1],_0x30229d=Buffer[_0x497c03(0x199)](_0x2bba56,_0x280676[_0x497c03(0x172)]);_0x280676['aLDSg'](_0x377182,{'url':_0x59679[_0x497c03(0x104)],'base64':_0x59679[_0x497c03(0x16f)],'buffer':_0x30229d});},this[_0x2be763(0x194)][_0x2be763(0x12d)]();});}async[_0x59bad7(0x15e)](_0x1624db,_0x1a602a,_0x56fc4a,_0x2d559e,_0x3f384e){const _0x39110a=_0x59bad7,_0x4779a8={'pzUHZ':_0x39110a(0x142),'FRwHH':_0x39110a(0x165),'UmqZZ':function(_0x43fb97,_0x18cc54){return _0x43fb97&&_0x18cc54;},'WOUdO':function(_0x4073b1,_0x2c6f47){return _0x4073b1||_0x2c6f47;},'OAfJj':function(_0x311be7,_0xd07bb5){return _0x311be7||_0xd07bb5;},'CXuNI':_0x39110a(0x13e),'bfjht':_0x39110a(0x101)},_0x2235be=_0x886fcc[_0x39110a(0x168)](_0x4779a8[_0x39110a(0x152)])[_0x39110a(0x156)](_0x1a602a)[_0x39110a(0x145)](_0x4779a8[_0x39110a(0x18c)]),_0xd2852a={'uin':_0x1624db,'passwordMd5':_0x2235be,'step':_0x4779a8['UmqZZ'](_0x56fc4a,_0x2d559e)&&_0x3f384e?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4779a8[_0x39110a(0x114)](_0x56fc4a,''),'proofWaterRand':_0x2d559e||'','proofWaterSid':_0x4779a8[_0x39110a(0x173)](_0x3f384e,'')};await this[_0x39110a(0x194)][_0x39110a(0x147)](),await sleep(0x3e8);const _0x30043d=await this['loginService']['passwordLogin'](_0xd2852a);switch(_0x30043d[_0x39110a(0x115)]){case'0':{break;}case _0x4779a8[_0x39110a(0x185)]:{break;}case'4':case _0x4779a8[_0x39110a(0x174)]:default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.d.ts b/src/core.lib/src/data.d.ts index 1f0f82e8..1f2fd294 100644 --- a/src/core.lib/src/data.d.ts +++ b/src/core.lib/src/data.d.ts @@ -1,4 +1,8 @@ import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo } from './entities'; +export declare const Credentials: { + Skey: string; + CreatTime: number; +}; export declare const selfInfo: SelfInfo; export declare const groups: Map; export declare function deleteGroup(groupQQ: string): void; diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index c1650df6..e3290a8e 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -(function(_0x4201a2,_0x599706){const _0x4d0761=_0x2d13,_0x54b1ec=_0x4201a2();while(!![]){try{const _0x384717=parseInt(_0x4d0761(0xd1))/0x1*(-parseInt(_0x4d0761(0xd4))/0x2)+-parseInt(_0x4d0761(0xd0))/0x3*(parseInt(_0x4d0761(0xc0))/0x4)+parseInt(_0x4d0761(0xbe))/0x5*(parseInt(_0x4d0761(0xc9))/0x6)+-parseInt(_0x4d0761(0xbf))/0x7*(-parseInt(_0x4d0761(0xc5))/0x8)+-parseInt(_0x4d0761(0xc2))/0x9*(-parseInt(_0x4d0761(0xd2))/0xa)+-parseInt(_0x4d0761(0xbd))/0xb*(parseInt(_0x4d0761(0xbc))/0xc)+parseInt(_0x4d0761(0xd5))/0xd*(-parseInt(_0x4d0761(0xca))/0xe);if(_0x384717===_0x599706)break;else _0x54b1ec['push'](_0x54b1ec['shift']());}catch(_0x390043){_0x54b1ec['push'](_0x54b1ec['shift']());}}}(_0xfff8,0xaa33b));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x5a0e94){const _0x3ddcdc=_0x2d13;groups[_0x3ddcdc(0xcd)](_0x5a0e94),groupMembers[_0x3ddcdc(0xcd)](_0x5a0e94);}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(_0x436d16){const _0x8c1e7e=_0x2d13,_0x90ef8a={'CEroC':function(_0x562c00,_0x5524ea){return _0x562c00(_0x5524ea);}};_0x436d16=_0x436d16[_0x8c1e7e(0xcf)]();if(_0x90ef8a['CEroC'](isNumeric,_0x436d16)){const _0x50c284=Array[_0x8c1e7e(0xce)](friends[_0x8c1e7e(0xc4)]());return _0x50c284[_0x8c1e7e(0xc6)](_0x36c200=>_0x36c200[_0x8c1e7e(0xc8)]===_0x436d16);}else return friends[_0x8c1e7e(0xbb)](_0x436d16);}export async function getGroup(_0x2bb128){const _0x122dbf=_0x2d13;let _0x563cdf=groups[_0x122dbf(0xbb)](_0x2bb128[_0x122dbf(0xcf)]());if(!_0x563cdf)try{const _0x1a4c80=await NTQQGroupApi['getGroups']();_0x1a4c80[_0x122dbf(0xcb)]&&_0x1a4c80[_0x122dbf(0xc7)](_0xa63d0=>{const _0x5611a4=_0x122dbf;groups[_0x5611a4(0xcc)](_0xa63d0['groupCode'],_0xa63d0);});}catch(_0x31b261){return undefined;}return _0x563cdf=groups[_0x122dbf(0xbb)](_0x2bb128['toString']()),_0x563cdf;}export async function getGroupMember(_0x47b352,_0xfab6f6){const _0x41b6d6=_0x2d13,_0x6a9b6f={'jBwfP':function(_0x17cbf8,_0x221ea9){return _0x17cbf8(_0x221ea9);},'jqdZa':function(_0x5d3e6e,_0x4462b2){return _0x5d3e6e(_0x4462b2);}};_0x47b352=_0x47b352[_0x41b6d6(0xcf)](),_0xfab6f6=_0xfab6f6['toString']();let _0x530e4c=groupMembers[_0x41b6d6(0xbb)](_0x47b352);if(!_0x530e4c)try{_0x530e4c=await NTQQGroupApi['getGroupMembers'](_0x47b352),groupMembers[_0x41b6d6(0xcc)](_0x47b352,_0x530e4c);}catch(_0x558dc3){return null;}const _0x4c764f=_0x49ed9d=>{const _0x634bd6=_0x41b6d6;let _0x1e05d4=undefined;return _0x6a9b6f[_0x634bd6(0xd3)](isNumeric,_0x49ed9d)?_0x1e05d4=Array[_0x634bd6(0xce)](_0x530e4c[_0x634bd6(0xc4)]())[_0x634bd6(0xc6)](_0x3f48b4=>_0x3f48b4[_0x634bd6(0xc8)]===_0x49ed9d):_0x1e05d4=_0x530e4c[_0x634bd6(0xbb)](_0x49ed9d),_0x1e05d4;};let _0x5a0cb9=_0x6a9b6f[_0x41b6d6(0xc3)](_0x4c764f,_0xfab6f6);return!_0x5a0cb9&&(_0x530e4c=await NTQQGroupApi[_0x41b6d6(0xc1)](_0x47b352),_0x5a0cb9=_0x4c764f(_0xfab6f6)),_0x5a0cb9;}export const uid2UinMap={};function _0xfff8(){const _0x384f92=['find','forEach','uin','6rhsBcx','12656IcvTwf','length','set','delete','from','toString','114354HqcDNL','1185pViQBu','10EUhtOE','jBwfP','598psMoMY','429ZQCdyy','get','48SPYWKS','2991868MATJSm','6934135VkLvwH','357BctBgX','64vdMdrA','getGroupMembers','11831706NiiDPr','jqdZa','values','12184kNXwNE'];_0xfff8=function(){return _0x384f92;};return _0xfff8();}export function getUidByUin(_0xb95a52){for(const _0x4ac69c in uid2UinMap){if(uid2UinMap[_0x4ac69c]===_0xb95a52)return _0x4ac69c;}}function _0x2d13(_0x3b1dc2,_0xf6987e){const _0xfff898=_0xfff8();return _0x2d13=function(_0x2d13b5,_0x216d0a){_0x2d13b5=_0x2d13b5-0xbb;let _0x86cdeb=_0xfff898[_0x2d13b5];return _0x86cdeb;},_0x2d13(_0x3b1dc2,_0xf6987e);}export const tempGroupCodeMap={}; \ No newline at end of file +const _0x22790e=_0x3cfc;(function(_0x5c310b,_0x5dc004){const _0x56473b=_0x3cfc,_0x29f9de=_0x5c310b();while(!![]){try{const _0x59bb0f=parseInt(_0x56473b(0x1e1))/0x1*(-parseInt(_0x56473b(0x1ca))/0x2)+-parseInt(_0x56473b(0x1e5))/0x3*(parseInt(_0x56473b(0x1d8))/0x4)+parseInt(_0x56473b(0x1da))/0x5*(parseInt(_0x56473b(0x1d3))/0x6)+parseInt(_0x56473b(0x1cb))/0x7*(parseInt(_0x56473b(0x1dc))/0x8)+parseInt(_0x56473b(0x1d5))/0x9*(parseInt(_0x56473b(0x1e4))/0xa)+parseInt(_0x56473b(0x1cf))/0xb+-parseInt(_0x56473b(0x1e2))/0xc*(parseInt(_0x56473b(0x1d2))/0xd);if(_0x59bb0f===_0x5dc004)break;else _0x29f9de['push'](_0x29f9de['shift']());}catch(_0x592758){_0x29f9de['push'](_0x29f9de['shift']());}}}(_0x272b,0x6118e));function _0x3cfc(_0x51762a,_0x4e69f6){const _0x272b64=_0x272b();return _0x3cfc=function(_0x3cfc0c,_0x4d7736){_0x3cfc0c=_0x3cfc0c-0x1c9;let _0xc778e=_0x272b64[_0x3cfc0c];return _0xc778e;},_0x3cfc(_0x51762a,_0x4e69f6);}import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x4a6f4d){const _0x386461=_0x3cfc;groups['delete'](_0x4a6f4d),groupMembers[_0x386461(0x1d9)](_0x4a6f4d);}export const groupMembers=new Map();export const friends=new Map();function _0x272b(){const _0x56eabb=['getGroups','108JsvYMc','values','uin','973204GIZlhx','delete','5vibzhB','NapCat未能正常启动,请检查日志查看错误','4093024YinkGP','set','eRiwP','length','find','17cexqSx','634188NXrPbV','get','557090XWPAXQ','6EmfqAk','getGroupMembers','6010ImaFgd','7GNNcdU','toString','lkEVt','from','3709871jritpP','ZllfO','groupCode','169pBJrlL','630222WXNOKh'];_0x272b=function(){return _0x56eabb;};return _0x272b();}export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x22790e(0x1db)};export async function getFriend(_0x3ccd25){const _0x43032e=_0x22790e,_0x1c1170={'ZllfO':function(_0x3040d9,_0x39f0bc){return _0x3040d9(_0x39f0bc);}};_0x3ccd25=_0x3ccd25[_0x43032e(0x1cc)]();if(_0x1c1170[_0x43032e(0x1d0)](isNumeric,_0x3ccd25)){const _0x163d4c=Array['from'](friends[_0x43032e(0x1d6)]());return _0x163d4c['find'](_0x4c1205=>_0x4c1205['uin']===_0x3ccd25);}else return friends['get'](_0x3ccd25);}export async function getGroup(_0x49e2ad){const _0x5bf4ce=_0x22790e;let _0x50ca68=groups[_0x5bf4ce(0x1e3)](_0x49e2ad[_0x5bf4ce(0x1cc)]());if(!_0x50ca68)try{const _0x377d55=await NTQQGroupApi[_0x5bf4ce(0x1d4)]();_0x377d55[_0x5bf4ce(0x1df)]&&_0x377d55['forEach'](_0x2dd1f0=>{const _0x5bc165=_0x5bf4ce;groups[_0x5bc165(0x1dd)](_0x2dd1f0[_0x5bc165(0x1d1)],_0x2dd1f0);});}catch(_0x4222fc){return undefined;}return _0x50ca68=groups[_0x5bf4ce(0x1e3)](_0x49e2ad[_0x5bf4ce(0x1cc)]()),_0x50ca68;}export async function getGroupMember(_0x4f2e35,_0x26fcb6){const _0x12261d=_0x22790e,_0x323221={'Fxnlw':function(_0x50c71e,_0x4226a3){return _0x50c71e(_0x4226a3);},'lkEVt':function(_0x46e5c7,_0x55f2fc){return _0x46e5c7(_0x55f2fc);}};_0x4f2e35=_0x4f2e35[_0x12261d(0x1cc)](),_0x26fcb6=_0x26fcb6['toString']();let _0x3cc22e=groupMembers[_0x12261d(0x1e3)](_0x4f2e35);if(!_0x3cc22e)try{_0x3cc22e=await NTQQGroupApi['getGroupMembers'](_0x4f2e35),groupMembers[_0x12261d(0x1dd)](_0x4f2e35,_0x3cc22e);}catch(_0x4e375e){return null;}const _0x584611=_0x39164c=>{const _0x5ba090=_0x12261d;let _0xe7f2b1=undefined;return _0x323221['Fxnlw'](isNumeric,_0x39164c)?_0xe7f2b1=Array[_0x5ba090(0x1ce)](_0x3cc22e[_0x5ba090(0x1d6)]())[_0x5ba090(0x1e0)](_0x175775=>_0x175775[_0x5ba090(0x1d7)]===_0x39164c):_0xe7f2b1=_0x3cc22e['get'](_0x39164c),_0xe7f2b1;};let _0x283351=_0x584611(_0x26fcb6);return!_0x283351&&(_0x3cc22e=await NTQQGroupApi[_0x12261d(0x1c9)](_0x4f2e35),_0x283351=_0x323221[_0x12261d(0x1cd)](_0x584611,_0x26fcb6)),_0x283351;}export const uid2UinMap={};export function getUidByUin(_0x168e17){const _0x7bd26b=_0x22790e,_0x53b815={'eRiwP':function(_0x5d8eb8,_0x21f24c){return _0x5d8eb8===_0x21f24c;}};for(const _0x444444 in uid2UinMap){if(_0x53b815[_0x7bd26b(0x1de)](uid2UinMap[_0x444444],_0x168e17))return _0x444444;}}export const tempGroupCodeMap={}; \ 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 5184c20b..8db09c80 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x4f8262,_0x3237c8){var _0x104b40=_0x31ea,_0x49f93a=_0x4f8262();while(!![]){try{var _0x11e406=-parseInt(_0x104b40(0xb0))/0x1*(parseInt(_0x104b40(0xb6))/0x2)+-parseInt(_0x104b40(0xa9))/0x3*(parseInt(_0x104b40(0xb4))/0x4)+parseInt(_0x104b40(0xad))/0x5+parseInt(_0x104b40(0xac))/0x6*(-parseInt(_0x104b40(0xa1))/0x7)+parseInt(_0x104b40(0xb7))/0x8+-parseInt(_0x104b40(0xa7))/0x9+parseInt(_0x104b40(0xa6))/0xa*(parseInt(_0x104b40(0xb3))/0xb);if(_0x11e406===_0x3237c8)break;else _0x49f93a['push'](_0x49f93a['shift']());}catch(_0x563d3a){_0x49f93a['push'](_0x49f93a['shift']());}}}(_0x2e13,0x88fbb));function _0x31ea(_0x3b1308,_0x1b79b1){var _0x2e1399=_0x2e13();return _0x31ea=function(_0x31ea40,_0x3b3134){_0x31ea40=_0x31ea40-0xa1;var _0x550bc0=_0x2e1399[_0x31ea40];return _0x550bc0;},_0x31ea(_0x3b1308,_0x1b79b1);}function _0x2e13(){var _0x53a681=['2CPvkMb','299800cCiHRS','4018497gwrXvu','cwexk','OTHER','CWeCv','tHhor','350nCNGRW','4080384AgbJwu','JFCDN','156QRvoti','xflqa','4|2|0|3|1','6PAfvDu','3046110Bsesjw','BTGXq','AUDIO','293bwohsZ','split','IMAGE','337150JMjFCv','10048NxEBIu','VIDEO'];_0x2e13=function(){return _0x53a681;};return _0x2e13();}export var CacheFileType;(function(_0x27a8c0){var _0x4bd418=_0x31ea,_0x3a82d6={'BTGXq':_0x4bd418(0xab),'CWeCv':_0x4bd418(0xaf),'tHhor':_0x4bd418(0xa3),'xflqa':_0x4bd418(0xb5),'JFCDN':'DOCUMENT','cwexk':_0x4bd418(0xb2)},_0x15e76b=_0x3a82d6[_0x4bd418(0xae)][_0x4bd418(0xb1)]('|'),_0x52f049=0x0;while(!![]){switch(_0x15e76b[_0x52f049++]){case'0':_0x27a8c0[_0x27a8c0[_0x3a82d6[_0x4bd418(0xa4)]]=0x2]='AUDIO';continue;case'1':_0x27a8c0[_0x27a8c0[_0x4bd418(0xa3)]=0x4]=_0x3a82d6[_0x4bd418(0xa5)];continue;case'2':_0x27a8c0[_0x27a8c0[_0x3a82d6[_0x4bd418(0xaa)]]=0x1]=_0x3a82d6['xflqa'];continue;case'3':_0x27a8c0[_0x27a8c0[_0x3a82d6[_0x4bd418(0xa8)]]=0x3]=_0x3a82d6[_0x4bd418(0xa8)];continue;case'4':_0x27a8c0[_0x27a8c0[_0x3a82d6[_0x4bd418(0xa2)]]=0x0]=_0x3a82d6[_0x4bd418(0xa2)];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0x595ae3,_0x23182f){var _0x208eaa=_0x4d5d,_0x469909=_0x595ae3();while(!![]){try{var _0x494dd3=parseInt(_0x208eaa(0xd5))/0x1+parseInt(_0x208eaa(0xd8))/0x2+-parseInt(_0x208eaa(0xda))/0x3*(-parseInt(_0x208eaa(0xdb))/0x4)+-parseInt(_0x208eaa(0xdc))/0x5+parseInt(_0x208eaa(0xde))/0x6+-parseInt(_0x208eaa(0xd7))/0x7*(-parseInt(_0x208eaa(0xcd))/0x8)+parseInt(_0x208eaa(0xdf))/0x9*(-parseInt(_0x208eaa(0xd6))/0xa);if(_0x494dd3===_0x23182f)break;else _0x469909['push'](_0x469909['shift']());}catch(_0x2c5c45){_0x469909['push'](_0x469909['shift']());}}}(_0x12c8,0x700d4));function _0x4d5d(_0x13dc3e,_0x57c3e0){var _0x12c864=_0x12c8();return _0x4d5d=function(_0x4d5d05,_0x143f82){_0x4d5d05=_0x4d5d05-0xcd;var _0x241188=_0x12c864[_0x4d5d05];return _0x241188;},_0x4d5d(_0x13dc3e,_0x57c3e0);}export var CacheFileType;(function(_0x4a3b7e){var _0x1187a5=_0x4d5d,_0x2d115c={'anykz':'IMAGE','UNuEH':_0x1187a5(0xd3),'gCXqp':_0x1187a5(0xce),'IkGEs':'DOCUMENT','HurKq':_0x1187a5(0xd1)},_0x27eb26='0|1|4|3|2'[_0x1187a5(0xdd)]('|'),_0x22f341=0x0;while(!![]){switch(_0x27eb26[_0x22f341++]){case'0':_0x4a3b7e[_0x4a3b7e[_0x1187a5(0xd2)]=0x0]=_0x2d115c['anykz'];continue;case'1':_0x4a3b7e[_0x4a3b7e[_0x2d115c[_0x1187a5(0xd9)]]=0x1]=_0x2d115c[_0x1187a5(0xd9)];continue;case'2':_0x4a3b7e[_0x4a3b7e[_0x2d115c[_0x1187a5(0xcf)]]=0x4]=_0x2d115c[_0x1187a5(0xcf)];continue;case'3':_0x4a3b7e[_0x4a3b7e[_0x2d115c[_0x1187a5(0xd4)]]=0x3]=_0x2d115c['IkGEs'];continue;case'4':_0x4a3b7e[_0x4a3b7e[_0x2d115c[_0x1187a5(0xd0)]]=0x2]=_0x2d115c[_0x1187a5(0xd0)];continue;}break;}}(CacheFileType||(CacheFileType={})));function _0x12c8(){var _0x52b088=['OTHER','gCXqp','HurKq','AUDIO','IMAGE','VIDEO','IkGEs','636329zLvUtS','3173270evIJbq','56CHorpc','953790DwgbvE','UNuEH','3kJufjF','1438876RSFyCm','321345azFrbR','split','467928bXSdtb','54WYmwHo','876264YfyjEv'];_0x12c8=function(){return _0x52b088;};return _0x12c8();} \ 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 7ea3b141..d259caf7 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x25c5f6=_0x37aa;(function(_0x424971,_0x556253){const _0x2b1927=_0x37aa,_0xca0457=_0x424971();while(!![]){try{const _0x580859=parseInt(_0x2b1927(0x106))/0x1*(-parseInt(_0x2b1927(0x116))/0x2)+parseInt(_0x2b1927(0x11a))/0x3*(-parseInt(_0x2b1927(0x128))/0x4)+-parseInt(_0x2b1927(0x130))/0x5+parseInt(_0x2b1927(0x117))/0x6*(parseInt(_0x2b1927(0xec))/0x7)+-parseInt(_0x2b1927(0x127))/0x8+-parseInt(_0x2b1927(0xf3))/0x9+parseInt(_0x2b1927(0x10f))/0xa;if(_0x580859===_0x556253)break;else _0xca0457['push'](_0xca0457['shift']());}catch(_0x256037){_0xca0457['push'](_0xca0457['shift']());}}}(_0x1456,0x42a47));function _0x37aa(_0xcfd77e,_0x1e2a3f){const _0x1456ca=_0x1456();return _0x37aa=function(_0x37aabe,_0x591cee){_0x37aabe=_0x37aabe-0xe4;let _0x263a77=_0x1456ca[_0x37aabe];return _0x263a77;},_0x37aa(_0xcfd77e,_0x1e2a3f);}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x1456(){const _0x361a2a=['Ori','PIC','writeFile','_0.png','获取视频信息失败','fudZV','EXYbO','文件异常,大小为0','rps','2463909nHvuZJ','获取视频封面失败,使用默认封面','wnDKy','tUEHL','[骰子]','VIDEO','kjDZd','3599451bZRxwz','jpg','语音转换失败,\x20请检查语音文件是否正常','join','JhuEQ','catch','pic','time','width','图片信息','bBMwk','视频信息','TEXT','PTT','copyFile','face','REPLY','ARK','error','4253FDzjdR','height','path','replace','normal2','Pdlhj','TtyfL','string','CupUX','13317670wWxzJz','stat','ptt','lNIcp','then','text','notAt','86PzLAgX','6tdQwhQ','toString','rcECF','23577MygSFo','stringify','wStsr','gif','rpmMe','dice','NdmZJ','GBlKX','MPpzF','ATXfM','sep','uploadFile','PbOEB','2469640iGhPeV','236ynxKQq','EgpJo','video','markdown','FACE','file','FILE','screenshots','277915TsxprI'];_0x1456=function(){return _0x361a2a;};return _0x1456();}import{promises as _0x328b52}from'node:fs';import _0x11d823 from'fluent-ffmpeg';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 class SendMsgElementConstructor{static[_0x25c5f6(0x114)](_0x2db0d4){const _0x2cc049=_0x25c5f6;return{'elementType':ElementType[_0x2cc049(0xff)],'elementId':'','textElement':{'content':_0x2db0d4,'atType':AtType[_0x2cc049(0x115)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x2bc77d,_0x8e1d26,_0x53afe6,_0xcc1a){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0xcc1a,'atType':_0x53afe6,'atUid':_0x2bc77d,'atTinyId':'','atNtUid':_0x8e1d26}};}static['reply'](_0x44decd,_0x53dec3,_0x9b8703,_0x52af17){const _0x49a01d=_0x25c5f6;return{'elementType':ElementType[_0x49a01d(0x103)],'elementId':'','replyElement':{'replayMsgSeq':_0x44decd,'replayMsgId':_0x53dec3,'senderUin':_0x9b8703,'senderUinStr':_0x52af17}};}static async[_0x25c5f6(0xf9)](_0x2d3162,_0x1ca1b9='',_0x4f0287=0x0){const _0x21ae54=_0x25c5f6,_0x191ff5={'wStsr':function(_0x1f99cd,_0x57ab8a){return _0x1f99cd===_0x57ab8a;},'EXYbO':'文件异常,大小为0','qqoZC':function(_0x5143d5,_0x2b9b8c){return _0x5143d5(_0x2b9b8c);},'ZbWUB':function(_0x445231,_0xa3fd79,_0x15951e){return _0x445231(_0xa3fd79,_0x15951e);},'rcECF':_0x21ae54(0xfc)},{md5:_0x386f68,fileName:_0x1059d9,path:_0x4d10f4,fileSize:_0x3e5183}=await NTQQFileApi['uploadFile'](_0x2d3162,ElementType['PIC'],_0x4f0287);if(_0x191ff5[_0x21ae54(0x11c)](_0x3e5183,0x0))throw _0x191ff5[_0x21ae54(0xe9)];const _0x58d635=await NTQQFileApi['getImageSize'](_0x2d3162),_0xece665={'md5HexStr':_0x386f68,'fileSize':_0x3e5183[_0x21ae54(0x118)](),'picWidth':_0x58d635?.[_0x21ae54(0xfb)],'picHeight':_0x58d635?.[_0x21ae54(0x107)],'fileName':_0x1059d9,'sourcePath':_0x4d10f4,'original':!![],'picType':_0x191ff5['qqoZC'](isGIF,_0x2d3162)?PicType[_0x21ae54(0x11d)]:PicType[_0x21ae54(0xf4)],'picSubType':_0x4f0287,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x1ca1b9};return _0x191ff5['ZbWUB'](logDebug,_0x191ff5[_0x21ae54(0x119)],_0xece665),{'elementType':ElementType[_0x21ae54(0xe4)],'elementId':'','picElement':_0xece665};}static async[_0x25c5f6(0x12d)](_0x16ab63,_0xbcdc0d=''){const _0x48d2c6=_0x25c5f6,_0x57d88e={'JhuEQ':function(_0x119e26,_0x388e8b){return _0x119e26===_0x388e8b;},'fudZV':'文件异常,大小为0'},{md5:_0x31d39e,fileName:_0x293e50,path:_0x121117,fileSize:_0x5ec543}=await NTQQFileApi[_0x48d2c6(0x125)](_0x16ab63,ElementType[_0x48d2c6(0x12e)]);if(_0x57d88e[_0x48d2c6(0xf7)](_0x5ec543,0x0))throw _0x57d88e[_0x48d2c6(0xe8)];const _0x1cbf5d={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0xbcdc0d||_0x293e50,'filePath':_0x121117,'fileSize':_0x5ec543[_0x48d2c6(0x118)]()}};return _0x1cbf5d;}static async[_0x25c5f6(0x12a)](_0x23457b,_0x62ca57='',_0x286741=''){const _0x186930=_0x25c5f6,_0x89a16={'lNIcp':function(_0x4ca27c,_0x79c334,_0x590d8e){return _0x4ca27c(_0x79c334,_0x590d8e);},'GBlKX':_0x186930(0xed),'EgpJo':function(_0x22c3b9,_0x462753){return _0x22c3b9(_0x462753);},'rpmMe':'end','bDtID':_0x186930(0x105),'ATXfM':function(_0x250e74,_0x27073c){return _0x250e74+_0x27073c;},'xlCLr':'文件异常,大小为0','Pdlhj':function(_0x5cebba,_0x3f68ea){return _0x5cebba(_0x3f68ea);},'CupUX':'mp4','MPpzF':function(_0x15986d,_0x21a405){return _0x15986d(_0x21a405);},'RwGlP':_0x186930(0xfe),'PbOEB':function(_0x43fe91,_0x285ef4){return _0x43fe91||_0x285ef4;}},{fileName:_0x56d37a,path:_0x456740,fileSize:_0x20c6c1,md5:_0x3a1fe7}=await NTQQFileApi[_0x186930(0x125)](_0x23457b,ElementType[_0x186930(0xf1)]);if(_0x20c6c1===0x0)throw _0x89a16['xlCLr'];const _0x10643c=_0x89a16['Pdlhj'](require,_0x186930(0x108));let _0x1995dc=_0x456740[_0x186930(0x109)](_0x10643c[_0x186930(0x124)]+_0x186930(0x131)+_0x10643c[_0x186930(0x124)],_0x10643c[_0x186930(0x124)]+'Thumb'+_0x10643c[_0x186930(0x124)]);_0x1995dc=_0x10643c['dirname'](_0x1995dc);let _0x1cfda0={'width':0x780,'height':0x438,'time':0xf,'format':_0x89a16[_0x186930(0x10e)],'size':_0x20c6c1,'filePath':_0x23457b};try{_0x1cfda0=await _0x89a16[_0x186930(0x122)](getVideoInfo,_0x456740),logDebug(_0x89a16['RwGlP'],_0x1cfda0);}catch(_0x48fc1f){_0x89a16[_0x186930(0x112)](logError,_0x186930(0xe7),_0x48fc1f);}const _0x22aac9=new Promise((_0x4864b2,_0x1215d3)=>{const _0x2e1f84=_0x186930,_0x943d20={'TtyfL':function(_0x4f633f,_0x4df742){const _0x1d7599=_0x37aa;return _0x89a16[_0x1d7599(0x129)](_0x4f633f,_0x4df742);},'rvjzu':function(_0x35e765,_0x5f00b0){return _0x35e765(_0x5f00b0);}},_0x457f4a=_0x3a1fe7+_0x2e1f84(0xe6),_0x137137=_0x10643c[_0x2e1f84(0xf6)](_0x1995dc,_0x457f4a);_0x89a16[_0x2e1f84(0x129)](_0x11d823,_0x23457b)['on'](_0x89a16[_0x2e1f84(0x11e)],()=>{})['on'](_0x89a16['bDtID'],_0x481ba6=>{const _0x1820c0=_0x2e1f84,_0x5bee20={'bEXWU':function(_0x3c0787,_0xd03d1a){return _0x3c0787(_0xd03d1a);}};_0x89a16[_0x1820c0(0x112)](logDebug,_0x89a16[_0x1820c0(0x121)],_0x481ba6),_0x286741?_0x328b52[_0x1820c0(0x101)](_0x286741,_0x137137)[_0x1820c0(0x113)](()=>{const _0x4539b7=_0x1820c0;_0x943d20[_0x4539b7(0x10c)](_0x4864b2,_0x137137);})[_0x1820c0(0xf8)](_0x1215d3):_0x328b52[_0x1820c0(0xe5)](_0x137137,defaultVideoThumb)[_0x1820c0(0x113)](()=>{_0x5bee20['bEXWU'](_0x4864b2,_0x137137);})[_0x1820c0(0xf8)](_0x1215d3);})[_0x2e1f84(0x12f)]({'timestamps':[0x0],'filename':_0x457f4a,'folder':_0x1995dc,'size':_0x89a16[_0x2e1f84(0x123)](_0x89a16[_0x2e1f84(0x123)](_0x1cfda0[_0x2e1f84(0xfb)],'x'),_0x1cfda0['height'])})['on'](_0x89a16['rpmMe'],()=>{_0x943d20['rvjzu'](_0x4864b2,_0x137137);});}),_0x374898=new Map(),_0x17c259=await _0x22aac9,_0x166452=(await _0x328b52[_0x186930(0x110)](_0x17c259))['size'];_0x374898['set'](0x0,_0x17c259);const _0x447434=await _0x89a16[_0x186930(0x10b)](calculateFileMD5,_0x17c259),_0xbc1f={'elementType':ElementType[_0x186930(0xf1)],'elementId':'','videoElement':{'fileName':_0x89a16[_0x186930(0x126)](_0x62ca57,_0x56d37a),'filePath':_0x456740,'videoMd5':_0x3a1fe7,'thumbMd5':_0x447434,'fileTime':_0x1cfda0[_0x186930(0xfa)],'thumbPath':_0x374898,'thumbSize':_0x166452,'thumbWidth':_0x1cfda0['width'],'thumbHeight':_0x1cfda0[_0x186930(0x107)],'fileSize':''+_0x20c6c1}};return _0xbc1f;}static async[_0x25c5f6(0x111)](_0xc5348){const _0x5a331f=_0x25c5f6,_0x218e49={'wnDKy':_0x5a331f(0xf5),'kjDZd':function(_0x31b26f,_0x457edb){return _0x31b26f===_0x457edb;},'dHPGi':_0x5a331f(0xea)},{converted:_0x561599,path:_0x2636c5,duration:_0x2bd8c5}=await encodeSilk(_0xc5348);if(!_0x2636c5)throw _0x218e49[_0x5a331f(0xee)];const {md5:_0x5e5302,fileName:_0x3b9a0a,path:_0x5b91b3,fileSize:_0x195316}=await NTQQFileApi[_0x5a331f(0x125)](_0x2636c5,ElementType[_0x5a331f(0x100)]);if(_0x218e49[_0x5a331f(0xf2)](_0x195316,0x0))throw _0x218e49['dHPGi'];return _0x561599&&_0x328b52['unlink'](_0x2636c5)['then'](),{'elementType':ElementType[_0x5a331f(0x100)],'elementId':'','pttElement':{'fileName':_0x3b9a0a,'filePath':_0x5b91b3,'md5HexStr':_0x5e5302,'fileSize':_0x195316,'duration':_0x2bd8c5||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[_0x25c5f6(0x102)](_0x459b27){const _0x4cda68=_0x25c5f6,_0x394cc7={'bBMwk':function(_0x4792de,_0x31cfdc){return _0x4792de<_0x31cfdc;}};return{'elementType':ElementType[_0x4cda68(0x12c)],'elementId':'','faceElement':{'faceIndex':_0x459b27,'faceType':_0x394cc7[_0x4cda68(0xfd)](_0x459b27,0xde)?FaceType['normal']:FaceType[_0x4cda68(0x10a)]}};}static[_0x25c5f6(0x11f)](_0x16d36f){const _0x464bb9=_0x25c5f6,_0x193219={'LngaV':_0x464bb9(0xf0)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType[_0x464bb9(0x11f)],'faceText':_0x193219['LngaV'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x25c5f6(0xeb)](_0x3b3edc){const _0x4f0c75=_0x25c5f6,_0x2afbf8={'tUEHL':'[包剪锤]'};return{'elementType':ElementType[_0x4f0c75(0x12c)],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x2afbf8[_0x4f0c75(0xef)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['ark'](_0x276233){const _0x348b8c=_0x25c5f6,_0x26f74b={'NdmZJ':function(_0x128126,_0x234411){return _0x128126!==_0x234411;},'SUGuP':_0x348b8c(0x10d)};return _0x26f74b[_0x348b8c(0x120)](typeof _0x276233,_0x26f74b['SUGuP'])&&(_0x276233=JSON[_0x348b8c(0x11b)](_0x276233)),{'elementType':ElementType[_0x348b8c(0x104)],'elementId':'','arkElement':{'bytesData':_0x276233,'linkInfo':null,'subElementType':null}};}static[_0x25c5f6(0x12b)](_0x5163d3){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x5163d3}};}} \ No newline at end of file +const _0x1c9102=_0x3ec8;(function(_0x5c59f1,_0x5cf118){const _0x486894=_0x3ec8,_0x536e94=_0x5c59f1();while(!![]){try{const _0x3082c2=parseInt(_0x486894(0x1fa))/0x1+parseInt(_0x486894(0x200))/0x2*(-parseInt(_0x486894(0x21b))/0x3)+-parseInt(_0x486894(0x1ea))/0x4+parseInt(_0x486894(0x1d6))/0x5+parseInt(_0x486894(0x202))/0x6+parseInt(_0x486894(0x206))/0x7*(-parseInt(_0x486894(0x1e4))/0x8)+parseInt(_0x486894(0x20e))/0x9;if(_0x3082c2===_0x5cf118)break;else _0x536e94['push'](_0x536e94['shift']());}catch(_0x50c04a){_0x536e94['push'](_0x536e94['shift']());}}}(_0x12e4,0xbf11c));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x1e44a5}from'node:fs';import _0xc13242 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';function _0x3ec8(_0x5e526f,_0x3c9358){const _0x12e402=_0x12e4();return _0x3ec8=function(_0x3ec825,_0x258e52){_0x3ec825=_0x3ec825-0x1d4;let _0x3fe486=_0x12e402[_0x3ec825];return _0x3fe486;},_0x3ec8(_0x5e526f,_0x3c9358);}function _0x12e4(){const _0x3da23e=['stat','UzLEM','1776icXnVh','EnYUn','RPS','KVtGM','视频信息','normal','text','GRDgr','PIC','sep','copyFile','ark','69295ahWoPa','EJLJM','获取视频封面失败,使用默认封面','normal2','rtAWJ','jpg','lLSTQ','获取视频信息失败','hzVTN','wbsdb','uPLYX','VIDEO','replace','screenshots','21968MXTrIU','face','TEXT','pGvSd','[包剪锤]','REPLY','5782004mBqEiG','kFdmT','FACE','toString','catch','width','FILE','MWHxv','ypaGK','stringify','ptt','FOGfE','join','height','图片信息','GYjkC','96244TYZJju','dice','unlink','gif','path','fDcAi','2060QXDQsd','wkOVJ','6645864CMVYkG','uploadFile','writeFile','[骰子]','2513ZVCaUd','Thumb','FwxcX','set','reply','PTT','then','markdown','23453532QUbNxp','文件异常,大小为0','getImageSize','ARK','NObFO','AsUbA','MARKDOWN','notAt','jdMqk','pdfbW','语音转换失败,\x20请检查语音文件是否正常'];_0x12e4=function(){return _0x3da23e;};return _0x12e4();}import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export class SendMsgElementConstructor{static[_0x1c9102(0x221)](_0x1a5ca9){const _0x41d4a4=_0x1c9102;return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x1a5ca9,'atType':AtType[_0x41d4a4(0x215)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x19ad72,_0x38d7ee,_0x52b830,_0x3a9016){const _0x36efa6=_0x1c9102;return{'elementType':ElementType[_0x36efa6(0x1e6)],'elementId':'','textElement':{'content':'@'+_0x3a9016,'atType':_0x52b830,'atUid':_0x19ad72,'atTinyId':'','atNtUid':_0x38d7ee}};}static[_0x1c9102(0x20a)](_0x13744b,_0x51ceaa,_0xde672,_0x4d6188){const _0x29ec9d=_0x1c9102;return{'elementType':ElementType[_0x29ec9d(0x1e9)],'elementId':'','replyElement':{'replayMsgSeq':_0x13744b,'replayMsgId':_0x51ceaa,'senderUin':_0xde672,'senderUinStr':_0x4d6188}};}static async['pic'](_0x5ec640,_0x58353d='',_0x4c6588=0x0){const _0x536bf6=_0x1c9102,_0x4fbe23={'wkOVJ':function(_0x267e86,_0x31ee2c){return _0x267e86===_0x31ee2c;},'GRDgr':_0x536bf6(0x20f),'FOGfE':function(_0x578f74,_0x35152b){return _0x578f74(_0x35152b);},'dRvho':_0x536bf6(0x1f8)},{md5:_0x1c5447,fileName:_0x49442e,path:_0x5411f0,fileSize:_0x5686b7}=await NTQQFileApi[_0x536bf6(0x203)](_0x5ec640,ElementType['PIC'],_0x4c6588);if(_0x4fbe23[_0x536bf6(0x201)](_0x5686b7,0x0))throw _0x4fbe23[_0x536bf6(0x222)];const _0x4e8dfb=await NTQQFileApi[_0x536bf6(0x210)](_0x5ec640),_0x98fec7={'md5HexStr':_0x1c5447,'fileSize':_0x5686b7['toString'](),'picWidth':_0x4e8dfb?.[_0x536bf6(0x1ef)],'picHeight':_0x4e8dfb?.[_0x536bf6(0x1f7)],'fileName':_0x49442e,'sourcePath':_0x5411f0,'original':!![],'picType':_0x4fbe23[_0x536bf6(0x1f5)](isGIF,_0x5ec640)?PicType[_0x536bf6(0x1fd)]:PicType[_0x536bf6(0x1db)],'picSubType':_0x4c6588,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x58353d};return logDebug(_0x4fbe23['dRvho'],_0x98fec7),{'elementType':ElementType[_0x536bf6(0x223)],'elementId':'','picElement':_0x98fec7};}static async['file'](_0xd2db22,_0x288e75=''){const _0x5b563f=_0x1c9102,_0x2e59ec={'hzVTN':function(_0x5ae302,_0x45496f){return _0x5ae302===_0x45496f;},'NObFO':_0x5b563f(0x20f),'wbsdb':function(_0xc683c3,_0x21ec10){return _0xc683c3||_0x21ec10;}},{md5:_0x8eab5b,fileName:_0x2a2904,path:_0x1d1f73,fileSize:_0x2110dc}=await NTQQFileApi[_0x5b563f(0x203)](_0xd2db22,ElementType[_0x5b563f(0x1f0)]);if(_0x2e59ec[_0x5b563f(0x1de)](_0x2110dc,0x0))throw _0x2e59ec[_0x5b563f(0x212)];const _0x5e3014={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x2e59ec[_0x5b563f(0x1df)](_0x288e75,_0x2a2904),'filePath':_0x1d1f73,'fileSize':_0x2110dc[_0x5b563f(0x1ed)]()}};return _0x5e3014;}static async['video'](_0xe1c204,_0x226ab8='',_0x28dae6=''){const _0x2e037c=_0x1c9102,_0x4dc4fa={'EnYUn':function(_0x205af0,_0x18648e){return _0x205af0(_0x18648e);},'QpoYy':function(_0x85c19d,_0x4b8ef4,_0x5c924a){return _0x85c19d(_0x4b8ef4,_0x5c924a);},'XLXDo':_0x2e037c(0x1d8),'fDcAi':'end','ypaGK':function(_0x4471f0,_0x2a5230){return _0x4471f0+_0x2a5230;},'FwxcX':function(_0x4c3a22,_0x16c6de){return _0x4c3a22===_0x16c6de;},'GYjkC':function(_0x1db8c1,_0x22d56f){return _0x1db8c1(_0x22d56f);},'AsUbA':'mp4','kFdmT':function(_0x2e3d4b,_0x23fcdc,_0x283f2a){return _0x2e3d4b(_0x23fcdc,_0x283f2a);},'jdMqk':_0x2e037c(0x21f),'pdfbW':function(_0xcad02f,_0x21fa98,_0x572721){return _0xcad02f(_0x21fa98,_0x572721);},'BLHgN':function(_0x597d63,_0x2d7bdf){return _0x597d63||_0x2d7bdf;},'UzLEM':function(_0x54e814,_0x16331b){return _0x54e814+_0x16331b;}},{fileName:_0x538f02,path:_0x3f49a5,fileSize:_0x369b9c,md5:_0x44f0d1}=await NTQQFileApi[_0x2e037c(0x203)](_0xe1c204,ElementType[_0x2e037c(0x1e1)]);if(_0x4dc4fa[_0x2e037c(0x208)](_0x369b9c,0x0))throw'文件异常,大小为0';const _0x478a9b=_0x4dc4fa[_0x2e037c(0x1f9)](require,_0x2e037c(0x1fe));let _0x377e05=_0x3f49a5[_0x2e037c(0x1e2)](_0x478a9b[_0x2e037c(0x224)]+'Ori'+_0x478a9b[_0x2e037c(0x224)],_0x478a9b[_0x2e037c(0x224)]+_0x2e037c(0x207)+_0x478a9b[_0x2e037c(0x224)]);_0x377e05=_0x478a9b['dirname'](_0x377e05);let _0x2cd5dd={'width':0x780,'height':0x438,'time':0xf,'format':_0x4dc4fa[_0x2e037c(0x213)],'size':_0x369b9c,'filePath':_0xe1c204};try{_0x2cd5dd=await _0x4dc4fa[_0x2e037c(0x1f9)](getVideoInfo,_0x3f49a5),_0x4dc4fa[_0x2e037c(0x1eb)](logDebug,_0x4dc4fa[_0x2e037c(0x216)],_0x2cd5dd);}catch(_0x4bd73f){_0x4dc4fa[_0x2e037c(0x217)](logError,_0x2e037c(0x1dd),_0x4bd73f);}const _0x177e82=new Promise((_0x1a3f50,_0x22addd)=>{const _0x401c3d=_0x2e037c,_0x14a5dd={'XknuP':function(_0x33d492,_0x414967){const _0x1fde8a=_0x3ec8;return _0x4dc4fa[_0x1fde8a(0x21c)](_0x33d492,_0x414967);},'pAfrn':function(_0x528fb1,_0x112bf7,_0xcc8960){return _0x4dc4fa['QpoYy'](_0x528fb1,_0x112bf7,_0xcc8960);},'uPLYX':_0x4dc4fa['XLXDo']},_0x2ff755=_0x44f0d1+'_0.png',_0x1b2224=_0x478a9b[_0x401c3d(0x1f6)](_0x377e05,_0x2ff755);_0x4dc4fa[_0x401c3d(0x21c)](_0xc13242,_0xe1c204)['on'](_0x4dc4fa[_0x401c3d(0x1ff)],()=>{})['on']('error',_0x3cb5f0=>{const _0x317e55=_0x401c3d,_0x919f60={'rtAWJ':function(_0x303681,_0x2df939){return _0x14a5dd['XknuP'](_0x303681,_0x2df939);}};_0x14a5dd['pAfrn'](logDebug,_0x14a5dd[_0x317e55(0x1e0)],_0x3cb5f0),_0x28dae6?_0x1e44a5[_0x317e55(0x1d4)](_0x28dae6,_0x1b2224)['then'](()=>{const _0x5080ef=_0x317e55;_0x919f60[_0x5080ef(0x1da)](_0x1a3f50,_0x1b2224);})['catch'](_0x22addd):_0x1e44a5[_0x317e55(0x204)](_0x1b2224,defaultVideoThumb)[_0x317e55(0x20c)](()=>{_0x1a3f50(_0x1b2224);})[_0x317e55(0x1ee)](_0x22addd);})[_0x401c3d(0x1e3)]({'timestamps':[0x0],'filename':_0x2ff755,'folder':_0x377e05,'size':_0x4dc4fa[_0x401c3d(0x1f2)](_0x4dc4fa[_0x401c3d(0x1f2)](_0x2cd5dd[_0x401c3d(0x1ef)],'x'),_0x2cd5dd['height'])})['on'](_0x4dc4fa[_0x401c3d(0x1ff)],()=>{const _0x138c58=_0x401c3d;_0x4dc4fa[_0x138c58(0x21c)](_0x1a3f50,_0x1b2224);});}),_0x37fecf=new Map(),_0x3a8a54=await _0x177e82,_0xf1489e=(await _0x1e44a5[_0x2e037c(0x219)](_0x3a8a54))['size'];_0x37fecf[_0x2e037c(0x209)](0x0,_0x3a8a54);const _0x8d0bb4=await _0x4dc4fa[_0x2e037c(0x21c)](calculateFileMD5,_0x3a8a54),_0x4144c4={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x4dc4fa['BLHgN'](_0x226ab8,_0x538f02),'filePath':_0x3f49a5,'videoMd5':_0x44f0d1,'thumbMd5':_0x8d0bb4,'fileTime':_0x2cd5dd['time'],'thumbPath':_0x37fecf,'thumbSize':_0xf1489e,'thumbWidth':_0x2cd5dd[_0x2e037c(0x1ef)],'thumbHeight':_0x2cd5dd['height'],'fileSize':_0x4dc4fa[_0x2e037c(0x21a)]('',_0x369b9c)}};return _0x4144c4;}static async[_0x1c9102(0x1f4)](_0x300822){const _0x607b9c=_0x1c9102,_0x348330={'UOfQV':function(_0x2a6a93,_0x241af8){return _0x2a6a93(_0x241af8);},'GnZkz':_0x607b9c(0x218),'MWHxv':_0x607b9c(0x20f),'EJLJM':function(_0x2f780d,_0xba1633){return _0x2f780d||_0xba1633;}},{converted:_0x29243a,path:_0x29ba32,duration:_0x4388b2}=await _0x348330['UOfQV'](encodeSilk,_0x300822);if(!_0x29ba32)throw _0x348330['GnZkz'];const {md5:_0x397816,fileName:_0x4822f1,path:_0xf07d57,fileSize:_0x18a545}=await NTQQFileApi[_0x607b9c(0x203)](_0x29ba32,ElementType['PTT']);if(_0x18a545===0x0)throw _0x348330[_0x607b9c(0x1f1)];return _0x29243a&&_0x1e44a5[_0x607b9c(0x1fc)](_0x29ba32)[_0x607b9c(0x20c)](),{'elementType':ElementType[_0x607b9c(0x20b)],'elementId':'','pttElement':{'fileName':_0x4822f1,'filePath':_0xf07d57,'md5HexStr':_0x397816,'fileSize':_0x18a545,'duration':_0x348330[_0x607b9c(0x1d7)](_0x4388b2,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[_0x1c9102(0x1e5)](_0xea2b0e){const _0x561cf1=_0x1c9102,_0x3740c1={'lLSTQ':function(_0x383de1,_0x28a63c){return _0x383de1<_0x28a63c;}};return{'elementType':ElementType[_0x561cf1(0x1ec)],'elementId':'','faceElement':{'faceIndex':_0xea2b0e,'faceType':_0x3740c1[_0x561cf1(0x1dc)](_0xea2b0e,0xde)?FaceType[_0x561cf1(0x220)]:FaceType[_0x561cf1(0x1d9)]}};}static[_0x1c9102(0x1fb)](_0x3cd1c7){const _0xbd4544=_0x1c9102;return{'elementType':ElementType[_0xbd4544(0x1ec)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0xbd4544(0x1fb)],'faceType':FaceType['dice'],'faceText':_0xbd4544(0x205),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x4ffcd7){const _0x450786=_0x1c9102;return{'elementType':ElementType[_0x450786(0x1ec)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x450786(0x21d)],'faceText':_0x450786(0x1e8),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x1c9102(0x1d5)](_0x285b50){const _0x19832d=_0x1c9102,_0x517a2e={'KVtGM':function(_0x54ef7f,_0x45ea28){return _0x54ef7f!==_0x45ea28;},'pGvSd':'string'};return _0x517a2e[_0x19832d(0x21e)](typeof _0x285b50,_0x517a2e[_0x19832d(0x1e7)])&&(_0x285b50=JSON[_0x19832d(0x1f3)](_0x285b50)),{'elementType':ElementType[_0x19832d(0x211)],'elementId':'','arkElement':{'bytesData':_0x285b50,'linkInfo':null,'subElementType':null}};}static[_0x1c9102(0x20d)](_0x4566b8){const _0x3ab7a1=_0x1c9102;return{'elementType':ElementType[_0x3ab7a1(0x214)],'elementId':'','markdownElement':{'content':_0x4566b8}};}} \ 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 6b5e2082..ea6fbbd8 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x3f3ac0,_0x57cdae){var _0x3ac60d=_0x4b9b,_0x121e96=_0x3f3ac0();while(!![]){try{var _0x2819e1=parseInt(_0x3ac60d(0x1ca))/0x1+parseInt(_0x3ac60d(0x1cd))/0x2*(parseInt(_0x3ac60d(0x1c0))/0x3)+parseInt(_0x3ac60d(0x1bf))/0x4*(-parseInt(_0x3ac60d(0x1c1))/0x5)+-parseInt(_0x3ac60d(0x1c7))/0x6*(-parseInt(_0x3ac60d(0x1cb))/0x7)+parseInt(_0x3ac60d(0x1c2))/0x8+parseInt(_0x3ac60d(0x1cc))/0x9+-parseInt(_0x3ac60d(0x1c8))/0xa;if(_0x2819e1===_0x57cdae)break;else _0x121e96['push'](_0x121e96['shift']());}catch(_0x59a5e2){_0x121e96['push'](_0x121e96['shift']());}}}(_0x2830,0x4ce47));function _0x4b9b(_0x38e050,_0x25c68d){var _0x283097=_0x2830();return _0x4b9b=function(_0x4b9bcf,_0x2d38d7){_0x4b9bcf=_0x4b9bcf-0x1bf;var _0x5160f8=_0x283097[_0x4b9bcf];return _0x5160f8;},_0x4b9b(_0x38e050,_0x25c68d);}function _0x2830(){var _0x1bbac4=['4219506LOAwWk','1178066XJxUJA','1776204gfzLBr','3HkoZrt','5AgoiTN','2824536MZmwqm','iEfoE','rvNSi','OSPdO','admin','42AEWJTO','15239200UFvCvI','normal','608123IfgpmF','263865LZrZqI'];_0x2830=function(){return _0x1bbac4;};return _0x2830();}export var GroupMemberRole;(function(_0x1b4baa){var _0x190706=_0x4b9b,_0x3f79c3={'OSPdO':_0x190706(0x1c9),'iEfoE':_0x190706(0x1c6),'rvNSi':'owner'};_0x1b4baa[_0x1b4baa[_0x3f79c3[_0x190706(0x1c5)]]=0x2]=_0x3f79c3[_0x190706(0x1c5)],_0x1b4baa[_0x1b4baa[_0x3f79c3[_0x190706(0x1c3)]]=0x3]=_0x3f79c3[_0x190706(0x1c3)],_0x1b4baa[_0x1b4baa[_0x3f79c3[_0x190706(0x1c4)]]=0x4]=_0x3f79c3[_0x190706(0x1c4)];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +(function(_0x7749b4,_0x1c9be4){var _0x1d5029=_0x3385,_0x7421dd=_0x7749b4();while(!![]){try{var _0x536ce4=parseInt(_0x1d5029(0x1d3))/0x1+parseInt(_0x1d5029(0x1d7))/0x2*(parseInt(_0x1d5029(0x1d2))/0x3)+-parseInt(_0x1d5029(0x1db))/0x4+-parseInt(_0x1d5029(0x1d5))/0x5+parseInt(_0x1d5029(0x1dd))/0x6*(parseInt(_0x1d5029(0x1d6))/0x7)+parseInt(_0x1d5029(0x1dc))/0x8+parseInt(_0x1d5029(0x1cf))/0x9;if(_0x536ce4===_0x1c9be4)break;else _0x7421dd['push'](_0x7421dd['shift']());}catch(_0x36e53d){_0x7421dd['push'](_0x7421dd['shift']());}}}(_0x21e4,0xe9437));export var GroupMemberRole;function _0x3385(_0xf46a60,_0x4e5ee7){var _0x21e489=_0x21e4();return _0x3385=function(_0x338516,_0x5b7ac1){_0x338516=_0x338516-0x1cf;var _0x42ba7e=_0x21e489[_0x338516];return _0x42ba7e;},_0x3385(_0xf46a60,_0x4e5ee7);}(function(_0xa1b96a){var _0x1ed765=_0x3385,_0x2ca72a={'EONfr':_0x1ed765(0x1d8),'ssoHQ':'admin','MeZzr':_0x1ed765(0x1d4)};_0xa1b96a[_0xa1b96a[_0x2ca72a[_0x1ed765(0x1da)]]=0x2]=_0x2ca72a[_0x1ed765(0x1da)],_0xa1b96a[_0xa1b96a[_0x1ed765(0x1d0)]=0x3]=_0x2ca72a[_0x1ed765(0x1d1)],_0xa1b96a[_0xa1b96a[_0x1ed765(0x1d4)]=0x4]=_0x2ca72a[_0x1ed765(0x1d9)];}(GroupMemberRole||(GroupMemberRole={})));function _0x21e4(){var _0x15a8ee=['ssoHQ','686097ddkTAV','262742qpWfeI','owner','6656460eTjbDb','1483167qjAgJM','10uqSyfv','normal','MeZzr','EONfr','5770960gVzoIC','6652192GgzwKH','18uVsrxt','7704675vqscgO','admin'];_0x21e4=function(){return _0x15a8ee;};return _0x21e4();} \ 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 941226ed..ddc0bed9 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x4ed3e5,_0x5c1095){var _0x1c2eac=_0x1a17,_0x4eb635=_0x4ed3e5();while(!![]){try{var _0x17c8cf=-parseInt(_0x1c2eac(0x11a))/0x1*(-parseInt(_0x1c2eac(0x118))/0x2)+parseInt(_0x1c2eac(0x11b))/0x3*(-parseInt(_0x1c2eac(0x11c))/0x4)+-parseInt(_0x1c2eac(0x11f))/0x5+-parseInt(_0x1c2eac(0x119))/0x6+parseInt(_0x1c2eac(0x11e))/0x7*(parseInt(_0x1c2eac(0x117))/0x8)+-parseInt(_0x1c2eac(0x11d))/0x9+parseInt(_0x1c2eac(0x120))/0xa;if(_0x17c8cf===_0x5c1095)break;else _0x4eb635['push'](_0x4eb635['shift']());}catch(_0x101ca4){_0x4eb635['push'](_0x4eb635['shift']());}}}(_0x156e,0xe5fe1));function _0x1a17(_0x1915ac,_0x4d949b){var _0x156e47=_0x156e();return _0x1a17=function(_0x1a1709,_0xa74fd8){_0x1a1709=_0x1a1709-0x117;var _0x13c8fd=_0x156e47[_0x1a1709];return _0x13c8fd;},_0x1a17(_0x1915ac,_0x4d949b);}function _0x156e(){var _0x4f9769=['246813CkfsgO','44BlaoLv','16283898tgTvIF','1253231HDHPGo','626865DuaZGQ','38249360NFHUoU','16ZQgbxA','110TkWibf','4830522JpQqpP','7342GnEhCI'];_0x156e=function(){return _0x4f9769;};return _0x156e();}export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x23e59d,_0x4e6cae){var _0x49fe9d=_0x4c4a,_0x35d0a4=_0x23e59d();while(!![]){try{var _0x47d3b7=-parseInt(_0x49fe9d(0x12e))/0x1*(parseInt(_0x49fe9d(0x132))/0x2)+parseInt(_0x49fe9d(0x130))/0x3*(-parseInt(_0x49fe9d(0x137))/0x4)+parseInt(_0x49fe9d(0x138))/0x5*(-parseInt(_0x49fe9d(0x135))/0x6)+parseInt(_0x49fe9d(0x12f))/0x7*(-parseInt(_0x49fe9d(0x134))/0x8)+parseInt(_0x49fe9d(0x136))/0x9+parseInt(_0x49fe9d(0x133))/0xa*(parseInt(_0x49fe9d(0x139))/0xb)+parseInt(_0x49fe9d(0x131))/0xc;if(_0x47d3b7===_0x4e6cae)break;else _0x35d0a4['push'](_0x35d0a4['shift']());}catch(_0x18e913){_0x35d0a4['push'](_0x35d0a4['shift']());}}}(_0xfcf6,0xc2f40));function _0x4c4a(_0x59d1d8,_0x27c5b4){var _0xfcf634=_0xfcf6();return _0x4c4a=function(_0x4c4a6f,_0xeba65d){_0x4c4a6f=_0x4c4a6f-0x12e;var _0x54fa05=_0xfcf634[_0x4c4a6f];return _0x54fa05;},_0x4c4a(_0x59d1d8,_0x27c5b4);}export*from'./user';function _0xfcf6(){var _0x391e9f=['19624nGjVaF','1670935BrwsEF','121rLBHRa','1zlyTsn','21UtcJhR','465OJVyei','28808748OelcOo','308510iBaSsI','595890DesFtH','1517640rsiiQz','24iAKsvJ','5065812xMPlAM'];_0xfcf6=function(){return _0x391e9f;};return _0xfcf6();}export*from'./group';export*from'./msg';export*from'./notify';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 f8c4c225..0260afe5 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x44a5f6=_0x1ce1;(function(_0x237397,_0x3793d6){var _0x11f555=_0x1ce1,_0x59186b=_0x237397();while(!![]){try{var _0x2a36f0=parseInt(_0x11f555(0x13e))/0x1+parseInt(_0x11f555(0x15e))/0x2*(-parseInt(_0x11f555(0x160))/0x3)+parseInt(_0x11f555(0x13b))/0x4+parseInt(_0x11f555(0x145))/0x5+parseInt(_0x11f555(0x159))/0x6*(parseInt(_0x11f555(0x134))/0x7)+parseInt(_0x11f555(0x152))/0x8*(-parseInt(_0x11f555(0x13d))/0x9)+-parseInt(_0x11f555(0x146))/0xa;if(_0x2a36f0===_0x3793d6)break;else _0x59186b['push'](_0x59186b['shift']());}catch(_0x449b1c){_0x59186b['push'](_0x59186b['shift']());}}}(_0x1d5b,0x5124a));export var ElementType;(function(_0x2a880f){var _0x3109d6=_0x1ce1,_0xc40c3d={'jHyuZ':_0x3109d6(0x15b),'HaHvB':_0x3109d6(0x139),'hVOGT':_0x3109d6(0x137),'DMDTq':_0x3109d6(0x140),'Cpzjz':_0x3109d6(0x149),'NrGoU':_0x3109d6(0x163),'cdTMw':_0x3109d6(0x14d),'mmQbk':_0x3109d6(0x14e),'GdAPk':_0x3109d6(0x147)};_0x2a880f[_0x2a880f[_0xc40c3d[_0x3109d6(0x15d)]]=0x1]=_0xc40c3d[_0x3109d6(0x15d)],_0x2a880f[_0x2a880f[_0xc40c3d[_0x3109d6(0x162)]]=0x2]=_0xc40c3d['HaHvB'],_0x2a880f[_0x2a880f[_0xc40c3d[_0x3109d6(0x157)]]=0x3]=_0x3109d6(0x137),_0x2a880f[_0x2a880f[_0xc40c3d['DMDTq']]=0x4]=_0xc40c3d['DMDTq'],_0x2a880f[_0x2a880f['VIDEO']=0x5]=_0xc40c3d[_0x3109d6(0x169)],_0x2a880f[_0x2a880f[_0xc40c3d['NrGoU']]=0x6]=_0xc40c3d[_0x3109d6(0x161)],_0x2a880f[_0x2a880f[_0xc40c3d[_0x3109d6(0x14b)]]=0x7]=_0xc40c3d['cdTMw'],_0x2a880f[_0x2a880f[_0xc40c3d[_0x3109d6(0x158)]]=0xa]=_0x3109d6(0x14e),_0x2a880f[_0x2a880f[_0xc40c3d[_0x3109d6(0x141)]]=0xe]=_0xc40c3d['GdAPk'];}(ElementType||(ElementType={})));export var PicType;(function(_0x4a16f5){var _0xf51452=_0x1ce1,_0x53abfe={'NEsme':'gif','UCgOJ':'jpg'};_0x4a16f5[_0x4a16f5[_0xf51452(0x14c)]=0x7d0]=_0x53abfe[_0xf51452(0x155)],_0x4a16f5[_0x4a16f5[_0x53abfe['UCgOJ']]=0x3e8]=_0x53abfe[_0xf51452(0x167)];}(PicType||(PicType={})));export var PicSubType;(function(_0x3c2edc){var _0x2ed008=_0x1ce1,_0x11cc17={'ISmNQ':_0x2ed008(0x138),'vIpfV':'face'};_0x3c2edc[_0x3c2edc[_0x2ed008(0x138)]=0x0]=_0x11cc17['ISmNQ'],_0x3c2edc[_0x3c2edc[_0x11cc17[_0x2ed008(0x13f)]]=0x1]=_0x11cc17[_0x2ed008(0x13f)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x172fca){var _0x2fd373=_0x1ce1,_0x1d07ee={'qbErs':_0x2fd373(0x166),'eLflx':'atAll','qWYSY':_0x2fd373(0x13a)};_0x172fca[_0x172fca[_0x1d07ee['qbErs']]=0x0]=_0x1d07ee[_0x2fd373(0x168)],_0x172fca[_0x172fca[_0x1d07ee['eLflx']]=0x1]=_0x1d07ee[_0x2fd373(0x16a)],_0x172fca[_0x172fca[_0x1d07ee['qWYSY']]=0x2]=_0x1d07ee[_0x2fd373(0x156)];}(AtType||(AtType={})));function _0x1d5b(){var _0x41e332=['kicked','notAt','UCgOJ','qbErs','Cpzjz','eLflx','memberIncrease','14JTlODA','PcXWB','EAOkj','FILE','normal','PIC','atUser','2032000JZWUjJ','Vfahn','1151433CMouTx','186263YdoLug','vIpfV','PTT','GdAPk','RPS','YKyHG','friend','2585700RAUtJl','3621640qhtSfR','MARKDOWN','group','VIDEO','ban','cdTMw','gif','REPLY','ARK','temp','wOzUE','dice','24WlLupa','gjmyG','https://multimedia.nt.qq.com.cn','NEsme','qWYSY','hVOGT','mmQbk','721914nxtXeQ','hiXWq','TEXT','normal2','jHyuZ','1354pBrWyI','xMkWh','1656FruOrz','NrGoU','HaHvB','FACE','Jajgx'];_0x1d5b=function(){return _0x41e332;};return _0x1d5b();}export var ChatType;(function(_0x3addc9){var _0x4376b7=_0x1ce1,_0x1e667c={'hiXWq':_0x4376b7(0x144),'Jajgx':_0x4376b7(0x14f)};_0x3addc9[_0x3addc9[_0x1e667c[_0x4376b7(0x15a)]]=0x1]=_0x1e667c[_0x4376b7(0x15a)],_0x3addc9[_0x3addc9[_0x4376b7(0x148)]=0x2]=_0x4376b7(0x148),_0x3addc9[_0x3addc9[_0x1e667c[_0x4376b7(0x164)]]=0x64]=_0x1e667c[_0x4376b7(0x164)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT=_0x44a5f6(0x154);export var GrayTipElementSubType;(function(_0x13972b){var _0x42a181=_0x44a5f6,_0x368948={'xMkWh':'INVITE_NEW_MEMBER','Vfahn':'MEMBER_NEW_TITLE'};_0x13972b[_0x13972b[_0x368948[_0x42a181(0x15f)]]=0xc]=_0x368948[_0x42a181(0x15f)],_0x13972b[_0x13972b[_0x368948[_0x42a181(0x13c)]]=0x11]=_0x368948[_0x42a181(0x13c)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x82ed30){var _0x570b51=_0x44a5f6,_0x5bd7fc={'YKyHG':_0x570b51(0x138),'wbYYg':_0x570b51(0x15c),'EAOkj':_0x570b51(0x151)};_0x82ed30[_0x82ed30[_0x5bd7fc[_0x570b51(0x143)]]=0x1]='normal',_0x82ed30[_0x82ed30[_0x5bd7fc['wbYYg']]=0x2]=_0x570b51(0x15c),_0x82ed30[_0x82ed30[_0x5bd7fc[_0x570b51(0x136)]]=0x3]=_0x5bd7fc['EAOkj'];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x586ef9){var _0x186a36=_0x44a5f6,_0x143baa={'cTbEI':_0x186a36(0x151),'wOzUE':'RPS'};_0x586ef9[_0x586ef9[_0x143baa['cTbEI']]=0x166]='dice',_0x586ef9[_0x586ef9[_0x143baa[_0x186a36(0x150)]]=0x167]=_0x186a36(0x142);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;function _0x1ce1(_0x1cac19,_0x485f25){var _0x1d5bd2=_0x1d5b();return _0x1ce1=function(_0x1ce122,_0x11256a){_0x1ce122=_0x1ce122-0x134;var _0xca6bc6=_0x1d5bd2[_0x1ce122];return _0xca6bc6;},_0x1ce1(_0x1cac19,_0x485f25);}(function(_0x482aa8){var _0x451fe5=_0x44a5f6,_0x33b766={'gjmyG':_0x451fe5(0x16b),'PcXWB':_0x451fe5(0x165)};_0x482aa8[_0x482aa8[_0x33b766['gjmyG']]=0x1]=_0x33b766[_0x451fe5(0x153)],_0x482aa8[_0x482aa8[_0x33b766[_0x451fe5(0x135)]]=0x3]=_0x33b766[_0x451fe5(0x135)],_0x482aa8[_0x482aa8[_0x451fe5(0x14a)]=0x8]=_0x451fe5(0x14a);}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x341484=_0x48d8;(function(_0x11f307,_0x23b76b){var _0x308746=_0x48d8,_0x32af3c=_0x11f307();while(!![]){try{var _0x590a2a=-parseInt(_0x308746(0x19a))/0x1*(parseInt(_0x308746(0x19b))/0x2)+parseInt(_0x308746(0x197))/0x3*(-parseInt(_0x308746(0x1a8))/0x4)+-parseInt(_0x308746(0x1a3))/0x5*(-parseInt(_0x308746(0x1ac))/0x6)+parseInt(_0x308746(0x19c))/0x7+-parseInt(_0x308746(0x194))/0x8+parseInt(_0x308746(0x186))/0x9*(-parseInt(_0x308746(0x18c))/0xa)+parseInt(_0x308746(0x189))/0xb*(parseInt(_0x308746(0x18f))/0xc);if(_0x590a2a===_0x23b76b)break;else _0x32af3c['push'](_0x32af3c['shift']());}catch(_0x3e8a4c){_0x32af3c['push'](_0x32af3c['shift']());}}}(_0x1d31,0xa1850));export var ElementType;(function(_0x57ee57){var _0x3aa4b5=_0x48d8,_0x4bbd9f={'uTbGP':_0x3aa4b5(0x1b9),'ZWKAL':'PIC','GouZJ':'FILE','HsPkO':_0x3aa4b5(0x1a4),'Zzpvf':_0x3aa4b5(0x1a1),'IjMVj':_0x3aa4b5(0x1b3),'EqcsN':'REPLY','PWYxd':_0x3aa4b5(0x1aa),'VHkLd':_0x3aa4b5(0x18a)};_0x57ee57[_0x57ee57[_0x4bbd9f[_0x3aa4b5(0x193)]]=0x1]=_0x4bbd9f[_0x3aa4b5(0x193)],_0x57ee57[_0x57ee57[_0x4bbd9f[_0x3aa4b5(0x1b2)]]=0x2]='PIC',_0x57ee57[_0x57ee57[_0x3aa4b5(0x185)]=0x3]=_0x4bbd9f[_0x3aa4b5(0x1a9)],_0x57ee57[_0x57ee57[_0x3aa4b5(0x1a4)]=0x4]=_0x4bbd9f[_0x3aa4b5(0x191)],_0x57ee57[_0x57ee57[_0x4bbd9f['Zzpvf']]=0x5]=_0x4bbd9f[_0x3aa4b5(0x188)],_0x57ee57[_0x57ee57[_0x3aa4b5(0x1b3)]=0x6]=_0x4bbd9f['IjMVj'],_0x57ee57[_0x57ee57[_0x4bbd9f[_0x3aa4b5(0x1b1)]]=0x7]=_0x4bbd9f[_0x3aa4b5(0x1b1)],_0x57ee57[_0x57ee57[_0x4bbd9f['PWYxd']]=0xa]='ARK',_0x57ee57[_0x57ee57[_0x4bbd9f[_0x3aa4b5(0x1b7)]]=0xe]=_0x4bbd9f[_0x3aa4b5(0x1b7)];}(ElementType||(ElementType={})));export var PicType;(function(_0x598308){var _0x102545=_0x48d8,_0x17d8bf={'iVYxG':_0x102545(0x1bc),'IezfD':_0x102545(0x1af)};_0x598308[_0x598308[_0x102545(0x1bc)]=0x7d0]=_0x17d8bf[_0x102545(0x1b8)],_0x598308[_0x598308[_0x17d8bf[_0x102545(0x1a5)]]=0x3e8]='jpg';}(PicType||(PicType={})));export var PicSubType;function _0x48d8(_0x2cc26b,_0x2b2819){var _0x1d319c=_0x1d31();return _0x48d8=function(_0x48d83f,_0x5866f6){_0x48d83f=_0x48d83f-0x183;var _0xc2edb=_0x1d319c[_0x48d83f];return _0xc2edb;},_0x48d8(_0x2cc26b,_0x2b2819);}(function(_0x36a080){var _0x538488=_0x48d8,_0x5cb130={'ifUQN':_0x538488(0x199),'cptkY':_0x538488(0x1b0)};_0x36a080[_0x36a080[_0x5cb130[_0x538488(0x1a2)]]=0x0]=_0x5cb130['ifUQN'],_0x36a080[_0x36a080[_0x5cb130[_0x538488(0x187)]]=0x1]=_0x5cb130[_0x538488(0x187)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x244ab8){var _0x1659f9=_0x48d8,_0x3aa526={'ZDBsy':_0x1659f9(0x1b5),'IFbhW':_0x1659f9(0x1a7),'mnDFj':_0x1659f9(0x18b)};_0x244ab8[_0x244ab8['notAt']=0x0]=_0x3aa526['ZDBsy'],_0x244ab8[_0x244ab8[_0x3aa526[_0x1659f9(0x1ba)]]=0x1]=_0x3aa526[_0x1659f9(0x1ba)],_0x244ab8[_0x244ab8[_0x1659f9(0x18b)]=0x2]=_0x3aa526[_0x1659f9(0x1ab)];}(AtType||(AtType={})));function _0x1d31(){var _0x3378d6=['ARK','mnDFj','40626EzowUZ','YgJTR','https://multimedia.nt.qq.com.cn','jpg','face','EqcsN','ZWKAL','FACE','INVITE_NEW_MEMBER','notAt','RisWo','VHkLd','iVYxG','TEXT','IFbhW','Kitch','gif','https://gchat.qpic.cn','memberIncrease','FILE','9702zMXUng','cptkY','Zzpvf','275FJoLQi','MARKDOWN','atUser','1150ZdaqLZ','SQNbD','temp','529212eUeMWg','bWUYV','HsPkO','ban','uTbGP','1781360SXoMka','rtzdc','WnIXW','1934883NeFrxI','friend','normal','4911kkThfz','124GGPkou','5227642syBrwe','FzNtl','dice','group','RPS','VIDEO','ifUQN','80xKqrRh','PTT','IezfD','cHEnP','atAll','4baeQLi','GouZJ'];_0x1d31=function(){return _0x3378d6;};return _0x1d31();}export var ChatType;(function(_0xf594fb){var _0x180acc=_0x48d8,_0xa50278={'SQNbD':_0x180acc(0x198),'WnIXW':_0x180acc(0x19f),'RisWo':'temp'};_0xf594fb[_0xf594fb[_0xa50278['SQNbD']]=0x1]=_0xa50278[_0x180acc(0x18d)],_0xf594fb[_0xf594fb[_0xa50278[_0x180acc(0x196)]]=0x2]=_0x180acc(0x19f),_0xf594fb[_0xf594fb[_0x180acc(0x18e)]=0x64]=_0xa50278[_0x180acc(0x1b6)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x341484(0x183);export const IMAGE_HTTP_HOST_NT=_0x341484(0x1ae);export var GrayTipElementSubType;(function(_0x1ef0d2){var _0x4b1e8e=_0x341484,_0x36c046={'YgJTR':'INVITE_NEW_MEMBER','rtzdc':'MEMBER_NEW_TITLE'};_0x1ef0d2[_0x1ef0d2[_0x36c046[_0x4b1e8e(0x1ad)]]=0xc]=_0x4b1e8e(0x1b4),_0x1ef0d2[_0x1ef0d2[_0x36c046[_0x4b1e8e(0x195)]]=0x11]=_0x36c046['rtzdc'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x3c9d79){var _0x1e2cdf=_0x341484,_0x57cc88={'mByCD':_0x1e2cdf(0x199),'bWUYV':'normal2','FzNtl':_0x1e2cdf(0x19e)};_0x3c9d79[_0x3c9d79['normal']=0x1]=_0x57cc88['mByCD'],_0x3c9d79[_0x3c9d79[_0x57cc88['bWUYV']]=0x2]=_0x57cc88[_0x1e2cdf(0x190)],_0x3c9d79[_0x3c9d79[_0x57cc88[_0x1e2cdf(0x19d)]]=0x3]=_0x57cc88[_0x1e2cdf(0x19d)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0xcfad71){var _0x29d374=_0x341484,_0x3c3689={'FkqkM':_0x29d374(0x19e),'VoWjE':_0x29d374(0x1a0)};_0xcfad71[_0xcfad71['dice']=0x166]=_0x3c3689['FkqkM'],_0xcfad71[_0xcfad71[_0x3c3689['VoWjE']]=0x167]=_0x29d374(0x1a0);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x6853cf){var _0x292ad1=_0x341484,_0x5aac3c={'bBQNh':_0x292ad1(0x184),'Kitch':'kicked','cHEnP':_0x292ad1(0x192)};_0x6853cf[_0x6853cf[_0x5aac3c['bBQNh']]=0x1]=_0x5aac3c['bBQNh'],_0x6853cf[_0x6853cf[_0x5aac3c[_0x292ad1(0x1bb)]]=0x3]=_0x5aac3c[_0x292ad1(0x1bb)],_0x6853cf[_0x6853cf['ban']=0x8]=_0x5aac3c[_0x292ad1(0x1a6)];}(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 e1d37663..5540ab45 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x81518a,_0x36b9e8){var _0x2ebeee=_0x1309,_0x308e32=_0x81518a();while(!![]){try{var _0x2d9c30=parseInt(_0x2ebeee(0x1b7))/0x1*(-parseInt(_0x2ebeee(0x1c1))/0x2)+-parseInt(_0x2ebeee(0x1d5))/0x3+parseInt(_0x2ebeee(0x1c8))/0x4*(-parseInt(_0x2ebeee(0x1c2))/0x5)+-parseInt(_0x2ebeee(0x1bc))/0x6+parseInt(_0x2ebeee(0x1c4))/0x7*(-parseInt(_0x2ebeee(0x1cc))/0x8)+parseInt(_0x2ebeee(0x1cb))/0x9*(-parseInt(_0x2ebeee(0x1c7))/0xa)+-parseInt(_0x2ebeee(0x1ba))/0xb*(-parseInt(_0x2ebeee(0x1c9))/0xc);if(_0x2d9c30===_0x36b9e8)break;else _0x308e32['push'](_0x308e32['shift']());}catch(_0x2d6c39){_0x308e32['push'](_0x308e32['shift']());}}}(_0x2e5e,0xb4451));export var GroupNotifyTypes;(function(_0x42b14c){var _0x5bb080=_0x1309,_0x18eaf4={'VPJUx':_0x5bb080(0x1c0),'APOhA':_0x5bb080(0x1d0),'wUpno':_0x5bb080(0x1b9),'Wkkge':_0x5bb080(0x1ce),'uAdjZ':'JOIN_REQUEST','jBsnk':'INVITED_JOIN','sGmaP':_0x5bb080(0x1be),'rNZJl':'MEMBER_EXIT'},_0x237df9=_0x18eaf4['VPJUx'][_0x5bb080(0x1d7)]('|'),_0x2d8cfc=0x0;while(!![]){switch(_0x237df9[_0x2d8cfc++]){case'0':_0x42b14c[_0x42b14c[_0x18eaf4[_0x5bb080(0x1c5)]]=0xc]=_0x18eaf4[_0x5bb080(0x1c5)];continue;case'1':_0x42b14c[_0x42b14c[_0x18eaf4[_0x5bb080(0x1c6)]]=0x1]=_0x18eaf4[_0x5bb080(0x1c6)];continue;case'2':_0x42b14c[_0x42b14c[_0x18eaf4[_0x5bb080(0x1d3)]]=0x8]=_0x18eaf4[_0x5bb080(0x1d3)];continue;case'3':_0x42b14c[_0x42b14c[_0x5bb080(0x1c3)]=0x7]=_0x18eaf4[_0x5bb080(0x1d2)];continue;case'4':_0x42b14c[_0x42b14c[_0x18eaf4[_0x5bb080(0x1d4)]]=0x4]='INVITED_JOIN';continue;case'5':_0x42b14c[_0x42b14c[_0x5bb080(0x1be)]=0x9]=_0x18eaf4[_0x5bb080(0x1d8)];continue;case'6':_0x42b14c[_0x42b14c[_0x18eaf4[_0x5bb080(0x1bb)]]=0xb]=_0x18eaf4['rNZJl'];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x97a310){var _0x3e6faa=_0x1309,_0x366a29={'DhJYZ':'IGNORE','DsTbS':_0x3e6faa(0x1cf),'TsYeL':_0x3e6faa(0x1d6),'LImfH':'REJECT'};_0x97a310[_0x97a310[_0x366a29[_0x3e6faa(0x1d1)]]=0x0]='IGNORE',_0x97a310[_0x97a310[_0x366a29[_0x3e6faa(0x1bf)]]=0x1]='WAIT_HANDLE',_0x97a310[_0x97a310[_0x3e6faa(0x1d6)]=0x2]=_0x366a29[_0x3e6faa(0x1b6)],_0x97a310[_0x97a310[_0x3e6faa(0x1bd)]=0x3]=_0x366a29[_0x3e6faa(0x1ca)];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x1309(_0x5dd592,_0x1f0935){var _0x2e5e46=_0x2e5e();return _0x1309=function(_0x1309a4,_0x3ef891){_0x1309a4=_0x1309a4-0x1b6;var _0x1869b9=_0x2e5e46[_0x1309a4];return _0x1869b9;},_0x1309(_0x5dd592,_0x1f0935);}function _0x2e5e(){var _0x3d21ed=['Wkkge','jBsnk','2134413PJCbaI','APPROVE','split','sGmaP','reject','TsYeL','1370753sPeMtv','sNFLG','INVITE_ME','209lLoCPQ','rNZJl','224898CQLQPk','REJECT','KICK_MEMBER','DsTbS','1|4|3|2|5|6|0','2wyEeVR','6233905yGEOXo','JOIN_REQUEST','7HOaGov','APOhA','wUpno','5130PvyrEO','4bKyjKO','3031572tcrfiU','LImfH','4077KLrAdI','3701816BOVpwd','jPgfe','ADMIN_SET','WAIT_HANDLE','ADMIN_UNSET','DhJYZ','uAdjZ'];_0x2e5e=function(){return _0x3d21ed;};return _0x2e5e();}export var GroupRequestOperateTypes;(function(_0x5b281c){var _0x3ce1c4=_0x1309,_0x1f93cb={'jPgfe':'approve','sNFLG':_0x3ce1c4(0x1d9)};_0x5b281c[_0x5b281c[_0x1f93cb['jPgfe']]=0x1]=_0x1f93cb[_0x3ce1c4(0x1cd)],_0x5b281c[_0x5b281c[_0x1f93cb[_0x3ce1c4(0x1b8)]]=0x2]=_0x1f93cb['sNFLG'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x31e4ac,_0x249973){var _0x4f1535=_0x2cbe,_0x221ffa=_0x31e4ac();while(!![]){try{var _0x34996d=-parseInt(_0x4f1535(0x1bf))/0x1+-parseInt(_0x4f1535(0x1cb))/0x2*(-parseInt(_0x4f1535(0x1c5))/0x3)+-parseInt(_0x4f1535(0x1c1))/0x4*(-parseInt(_0x4f1535(0x1d8))/0x5)+-parseInt(_0x4f1535(0x1c8))/0x6*(-parseInt(_0x4f1535(0x1c4))/0x7)+parseInt(_0x4f1535(0x1bc))/0x8*(parseInt(_0x4f1535(0x1c9))/0x9)+-parseInt(_0x4f1535(0x1cd))/0xa*(parseInt(_0x4f1535(0x1d7))/0xb)+-parseInt(_0x4f1535(0x1ca))/0xc;if(_0x34996d===_0x249973)break;else _0x221ffa['push'](_0x221ffa['shift']());}catch(_0x3a0af4){_0x221ffa['push'](_0x221ffa['shift']());}}}(_0xad2c,0x478d0));function _0xad2c(){var _0x38c4cd=['WNxlr','iHTpR','PbvwB','iFMIi','Rpqqj','reject','68272GXntLj','ADMIN_UNSET','JOIN_REQUEST','483345DEJmxb','TDBwU','4vkMEaD','lvCkQ','ndVfE','3848971YejGIL','861258nITlyn','DJuvr','approve','6zXQGYn','531mIuXWF','7096584MIBoqK','4nShfle','APPROVE','5299610Zcwqqf','aQiaN','WAIT_HANDLE','INVITE_ME','MEMBER_EXIT','ADMIN_SET','split','KICK_MEMBER','IGNORE','PSEjv','11HeHxNX','1351145hPSqnT','4|0|6|5|2|3|1','REJECT'];_0xad2c=function(){return _0x38c4cd;};return _0xad2c();}export var GroupNotifyTypes;(function(_0x2dcd88){var _0x15dacf=_0x2cbe,_0x55e48b={'Rpqqj':_0x15dacf(0x1b4),'kHIPG':'INVITED_JOIN','lvCkQ':_0x15dacf(0x1bd),'iHTpR':_0x15dacf(0x1d4),'WNxlr':_0x15dacf(0x1d1),'ndVfE':_0x15dacf(0x1d0),'TDBwU':_0x15dacf(0x1d2),'KRvLH':_0x15dacf(0x1be)},_0x5dd8b0=_0x55e48b[_0x15dacf(0x1ba)][_0x15dacf(0x1d3)]('|'),_0x219ef3=0x0;while(!![]){switch(_0x5dd8b0[_0x219ef3++]){case'0':_0x2dcd88[_0x2dcd88['INVITED_JOIN']=0x4]=_0x55e48b['kHIPG'];continue;case'1':_0x2dcd88[_0x2dcd88['ADMIN_UNSET']=0xc]=_0x55e48b[_0x15dacf(0x1c2)];continue;case'2':_0x2dcd88[_0x2dcd88[_0x15dacf(0x1d4)]=0x9]=_0x55e48b[_0x15dacf(0x1b7)];continue;case'3':_0x2dcd88[_0x2dcd88[_0x55e48b[_0x15dacf(0x1b6)]]=0xb]=_0x55e48b[_0x15dacf(0x1b6)];continue;case'4':_0x2dcd88[_0x2dcd88[_0x55e48b[_0x15dacf(0x1c3)]]=0x1]=_0x15dacf(0x1d0);continue;case'5':_0x2dcd88[_0x2dcd88[_0x15dacf(0x1d2)]=0x8]=_0x55e48b[_0x15dacf(0x1c0)];continue;case'6':_0x2dcd88[_0x2dcd88[_0x55e48b['KRvLH']]=0x7]=_0x15dacf(0x1be);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x67023c){var _0x2ccc54=_0x2cbe,_0x4be008={'aQiaN':_0x2ccc54(0x1d5),'DJuvr':'WAIT_HANDLE','PSEjv':_0x2ccc54(0x1cc),'YPIxi':'REJECT'};_0x67023c[_0x67023c[_0x2ccc54(0x1d5)]=0x0]=_0x4be008[_0x2ccc54(0x1ce)],_0x67023c[_0x67023c[_0x4be008[_0x2ccc54(0x1c6)]]=0x1]=_0x2ccc54(0x1cf),_0x67023c[_0x67023c[_0x4be008['PSEjv']]=0x2]=_0x4be008[_0x2ccc54(0x1d6)],_0x67023c[_0x67023c[_0x2ccc54(0x1b5)]=0x3]=_0x4be008['YPIxi'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x2cbe(_0x59ace3,_0x391758){var _0xad2cc6=_0xad2c();return _0x2cbe=function(_0x2cbeb1,_0x480775){_0x2cbeb1=_0x2cbeb1-0x1b4;var _0x266a04=_0xad2cc6[_0x2cbeb1];return _0x266a04;},_0x2cbe(_0x59ace3,_0x391758);}(function(_0x19c2e1){var _0x568e71=_0x2cbe,_0x5f13a0={'PbvwB':_0x568e71(0x1c7),'iFMIi':_0x568e71(0x1bb)};_0x19c2e1[_0x19c2e1[_0x5f13a0[_0x568e71(0x1b8)]]=0x1]=_0x568e71(0x1c7),_0x19c2e1[_0x19c2e1[_0x5f13a0[_0x568e71(0x1b9)]]=0x2]=_0x568e71(0x1bb);}(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 f01440a1..577166e6 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x3a7879,_0x17fc3a){var _0xe94a39=_0x559a,_0x45da76=_0x3a7879();while(!![]){try{var _0x476c50=parseInt(_0xe94a39(0x1ba))/0x1*(-parseInt(_0xe94a39(0x1b3))/0x2)+-parseInt(_0xe94a39(0x1b9))/0x3+-parseInt(_0xe94a39(0x1b4))/0x4*(-parseInt(_0xe94a39(0x1bb))/0x5)+parseInt(_0xe94a39(0x1b5))/0x6+-parseInt(_0xe94a39(0x1bc))/0x7*(-parseInt(_0xe94a39(0x1b6))/0x8)+parseInt(_0xe94a39(0x1b8))/0x9+-parseInt(_0xe94a39(0x1be))/0xa;if(_0x476c50===_0x17fc3a)break;else _0x45da76['push'](_0x45da76['shift']());}catch(_0x1c2ff4){_0x45da76['push'](_0x45da76['shift']());}}}(_0x3493,0xb6072));export var Sex;function _0x559a(_0x3ca2d6,_0x41d217){var _0x34934d=_0x3493();return _0x559a=function(_0x559a64,_0x1a68af){_0x559a64=_0x559a64-0x1b2;var _0x51f7b6=_0x34934d[_0x559a64];return _0x51f7b6;},_0x559a(_0x3ca2d6,_0x41d217);}function _0x3493(){var _0x5d886a=['5418474IjfOeF','8gXZBLA','unknown','9708966kXckVk','2404473moGZcx','13993cqCjny','112780UcyVpI','4676812EAxgEG','hIbRP','1041700qWLAHX','uCNDw','female','pjXmR','204bYYZOM','76FNEKWw'];_0x3493=function(){return _0x5d886a;};return _0x3493();}(function(_0x1fe50f){var _0x5baac8=_0x559a,_0x57e349={'uCNDw':'male','hIbRP':_0x5baac8(0x1c0),'pjXmR':_0x5baac8(0x1b7)};_0x1fe50f[_0x1fe50f[_0x57e349['uCNDw']]=0x1]=_0x57e349[_0x5baac8(0x1bf)],_0x1fe50f[_0x1fe50f['female']=0x2]=_0x57e349[_0x5baac8(0x1bd)],_0x1fe50f[_0x1fe50f[_0x57e349[_0x5baac8(0x1b2)]]=0xff]=_0x5baac8(0x1b7);}(Sex||(Sex={}))); \ No newline at end of file +function _0x2d7b(){var _0x24f43e=['5452348DfIioS','male','98646mnMYQY','1692512LyUSrP','811115VnlOvg','1446IGUzUU','24nSRYzM','686559EwrNOg','female','582hvVsEX','7VYqTZM','519003TntORA','20PDQkAR','unknown'];_0x2d7b=function(){return _0x24f43e;};return _0x2d7b();}(function(_0x46f7df,_0x5dc335){var _0x212d89=_0x20a2,_0x1710d2=_0x46f7df();while(!![]){try{var _0x3366a0=-parseInt(_0x212d89(0xe7))/0x1*(parseInt(_0x212d89(0xf1))/0x2)+parseInt(_0x212d89(0xe5))/0x3+-parseInt(_0x212d89(0xef))/0x4+-parseInt(_0x212d89(0xf0))/0x5+parseInt(_0x212d89(0xee))/0x6*(-parseInt(_0x212d89(0xe8))/0x7)+-parseInt(_0x212d89(0xe4))/0x8*(-parseInt(_0x212d89(0xe9))/0x9)+parseInt(_0x212d89(0xea))/0xa*(parseInt(_0x212d89(0xec))/0xb);if(_0x3366a0===_0x5dc335)break;else _0x1710d2['push'](_0x1710d2['shift']());}catch(_0x5a53ed){_0x1710d2['push'](_0x1710d2['shift']());}}}(_0x2d7b,0x5a7b4));export var Sex;function _0x20a2(_0x47f4a4,_0xed399f){var _0x2d7bba=_0x2d7b();return _0x20a2=function(_0x20a2da,_0x2b4a14){_0x20a2da=_0x20a2da-0xe4;var _0x453073=_0x2d7bba[_0x20a2da];return _0x453073;},_0x20a2(_0x47f4a4,_0xed399f);}(function(_0x1b0c23){var _0x1d42a7=_0x20a2,_0x5e0653={'jjlRB':'male','dmRMY':_0x1d42a7(0xeb)};_0x1b0c23[_0x1b0c23[_0x5e0653['jjlRB']]=0x1]=_0x1d42a7(0xed),_0x1b0c23[_0x1b0c23[_0x1d42a7(0xe6)]=0x2]=_0x1d42a7(0xe6),_0x1b0c23[_0x1b0c23[_0x1d42a7(0xeb)]=0xff]=_0x5e0653['dmRMY'];}(Sex||(Sex={}))); \ 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 c39623c7..4648cca1 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x2a1e54=_0x25c7;(function(_0x2607ab,_0xe1e2d5){const _0x3a4b5a=_0x25c7,_0x461555=_0x2607ab();while(!![]){try{const _0x3f419f=-parseInt(_0x3a4b5a(0x6c))/0x1+parseInt(_0x3a4b5a(0x7b))/0x2+parseInt(_0x3a4b5a(0x72))/0x3*(parseInt(_0x3a4b5a(0x75))/0x4)+-parseInt(_0x3a4b5a(0x77))/0x5*(parseInt(_0x3a4b5a(0x7d))/0x6)+parseInt(_0x3a4b5a(0x6b))/0x7+parseInt(_0x3a4b5a(0x74))/0x8+parseInt(_0x3a4b5a(0x6e))/0x9*(parseInt(_0x3a4b5a(0x7c))/0xa);if(_0x3f419f===_0xe1e2d5)break;else _0x461555['push'](_0x461555['shift']());}catch(_0x207e39){_0x461555['push'](_0x461555['shift']());}}}(_0x1f41,0xbeb47));function _0x25c7(_0x54c1bc,_0x481b78){const _0x1f416c=_0x1f41();return _0x25c7=function(_0x25c7c2,_0x13718b){_0x25c7c2=_0x25c7c2-0x6b;let _0x55d5e1=_0x1f416c[_0x25c7c2];return _0x55d5e1;},_0x25c7(_0x54c1bc,_0x481b78);}import{logError}from'@/common/utils/log';import{cpuArch,systemPlatform}from'@/common/utils/system';class HookApi{[_0x2a1e54(0x73)]=null;constructor(){const _0x358c3a=_0x2a1e54,_0xb62ab6={'VtcTr':function(_0x9c2ce3,_0x413769){return _0x9c2ce3(_0x413769);},'sxuQT':function(_0x5f2a72,_0x732224,_0x4042ac){return _0x5f2a72(_0x732224,_0x4042ac);}};try{this['moeHook']=_0xb62ab6[_0x358c3a(0x6d)](require,_0x358c3a(0x78)+systemPlatform+'-'+cpuArch+'.node'),this[_0x358c3a(0x73)][_0x358c3a(0x79)]();}catch(_0x314d69){_0xb62ab6[_0x358c3a(0x71)](logError,_0x358c3a(0x6f),_0x314d69);}}[_0x2a1e54(0x76)](){const _0x244405=_0x2a1e54;return this['moeHook']?.[_0x244405(0x7a)]()||'';}[_0x2a1e54(0x70)](){const _0x55d919=_0x2a1e54;return!!this[_0x55d919(0x73)];}}function _0x1f41(){const _0x4376a7=['moeHook','757248dacopO','48hIOyIR','getRKey','6947945LWcRHl','./MoeHoo-','HookRkey','GetRkey','708268KagvZV','15940lGGGyM','6GCVtED','10078327FCXPby','1231059gGUMnY','VtcTr','4482WuWqgZ','加载\x20moehoo\x20失败','isAvailable','sxuQT','179853pohamA'];_0x1f41=function(){return _0x4376a7;};return _0x1f41();}export const hookApi=new HookApi(); \ No newline at end of file +const _0x29f7c0=_0xad66;(function(_0x44e13b,_0x16a874){const _0x97e0ff=_0xad66,_0x576181=_0x44e13b();while(!![]){try{const _0x3d4329=-parseInt(_0x97e0ff(0xfd))/0x1*(-parseInt(_0x97e0ff(0xf3))/0x2)+-parseInt(_0x97e0ff(0xf8))/0x3+parseInt(_0x97e0ff(0x104))/0x4*(parseInt(_0x97e0ff(0xfc))/0x5)+-parseInt(_0x97e0ff(0x102))/0x6*(parseInt(_0x97e0ff(0x103))/0x7)+-parseInt(_0x97e0ff(0xf5))/0x8+parseInt(_0x97e0ff(0xf6))/0x9*(parseInt(_0x97e0ff(0x105))/0xa)+-parseInt(_0x97e0ff(0xf7))/0xb*(-parseInt(_0x97e0ff(0x100))/0xc);if(_0x3d4329===_0x16a874)break;else _0x576181['push'](_0x576181['shift']());}catch(_0x410d0a){_0x576181['push'](_0x576181['shift']());}}}(_0x7f56,0xd4ac9));function _0xad66(_0x3c94d6,_0x5554df){const _0x7f56cf=_0x7f56();return _0xad66=function(_0xad66f5,_0x3c9983){_0xad66f5=_0xad66f5-0xf3;let _0x4d9250=_0x7f56cf[_0xad66f5];return _0x4d9250;},_0xad66(_0x3c94d6,_0x5554df);}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';class HookApi{[_0x29f7c0(0x109)]=null;constructor(){const _0x3011ef=_0x29f7c0,_0x520ac8={'cAeRr':function(_0x1f6eba,_0x33a2ea){return _0x1f6eba(_0x33a2ea);},'rSMmD':function(_0x35b3f4,_0x541b83){return _0x35b3f4(_0x541b83);},'VhjkW':_0x3011ef(0x108),'JGJQR':function(_0x1b81a0,_0x4d7666,_0x553603){return _0x1b81a0(_0x4d7666,_0x553603);},'azwbh':_0x3011ef(0xf9)};try{_0x520ac8[_0x3011ef(0x107)](cpModule,_0x3011ef(0x101)),this['moeHook']=_0x520ac8[_0x3011ef(0xfe)](require,_0x520ac8[_0x3011ef(0xff)]),this[_0x3011ef(0x109)][_0x3011ef(0x10a)]();}catch(_0x991ccb){_0x520ac8[_0x3011ef(0xfa)](logError,_0x520ac8[_0x3011ef(0x106)],_0x991ccb);}}[_0x29f7c0(0xfb)](){const _0x12d6d1=_0x29f7c0;return this[_0x12d6d1(0x109)]?.[_0x12d6d1(0xf4)]()||'';}['isAvailable'](){const _0x187726=_0x29f7c0;return!!this[_0x187726(0x109)];}}export const hookApi=new HookApi();function _0x7f56(){const _0x1601b4=['683436geANhE','MoeHoo','12JZblmz','5702564eMSGgP','4sAKQAU','138830wIgAiP','azwbh','cAeRr','./MoeHoo.node','moeHook','HookRkey','1123216dLpcTv','GetRkey','2498136pbGfcz','702GtsKlD','33XkdQli','2462853VKFOVi','加载\x20moehoo\x20失败','JGJQR','getRKey','6283430kYmXii','2pIdkpr','rSMmD','VhjkW'];_0x7f56=function(){return _0x1601b4;};return _0x7f56();} \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index 4f6092b4..2b7fde5e 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0xf75f8a,_0x41f8a9){var _0x58364b=_0x5006,_0x3e183e=_0xf75f8a();while(!![]){try{var _0x27f7c5=-parseInt(_0x58364b(0x13e))/0x1*(-parseInt(_0x58364b(0x145))/0x2)+parseInt(_0x58364b(0x142))/0x3*(-parseInt(_0x58364b(0x143))/0x4)+-parseInt(_0x58364b(0x144))/0x5*(-parseInt(_0x58364b(0x13f))/0x6)+-parseInt(_0x58364b(0x13b))/0x7*(parseInt(_0x58364b(0x140))/0x8)+-parseInt(_0x58364b(0x13d))/0x9*(-parseInt(_0x58364b(0x13c))/0xa)+parseInt(_0x58364b(0x141))/0xb+-parseInt(_0x58364b(0x13a))/0xc;if(_0x27f7c5===_0x41f8a9)break;else _0x3e183e['push'](_0x3e183e['shift']());}catch(_0x4a3989){_0x3e183e['push'](_0x3e183e['shift']());}}}(_0x5bcb,0xda5c9));import _0x20d610 from'./wrapper';export*from'./adapters';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';function _0x5006(_0x397f17,_0x12428c){var _0x5bcb95=_0x5bcb();return _0x5006=function(_0x500692,_0x27b2fd){_0x500692=_0x500692-0x13a;var _0x5a4c70=_0x5bcb95[_0x500692];return _0x5a4c70;},_0x5006(_0x397f17,_0x12428c);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x20d610 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';function _0x5bcb(){var _0x4fd9dc=['1897WZdtIv','30zrdvuF','4820058CBHrwh','119IlbnVZ','6JkkjdC','15968bhOumW','13479499nxhrkA','9qaJsSm','538584GYkpHg','5937655lxyBRz','5022srkeyX','29750064tkPSvA'];_0x5bcb=function(){return _0x4fd9dc;};return _0x5bcb();}export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x409264,_0x387366){var _0x2a9b47=_0x2cd1,_0x420f52=_0x409264();while(!![]){try{var _0x1b9a2f=parseInt(_0x2a9b47(0x12d))/0x1*(-parseInt(_0x2a9b47(0x136))/0x2)+-parseInt(_0x2a9b47(0x132))/0x3*(-parseInt(_0x2a9b47(0x130))/0x4)+parseInt(_0x2a9b47(0x12c))/0x5+-parseInt(_0x2a9b47(0x135))/0x6*(parseInt(_0x2a9b47(0x12e))/0x7)+-parseInt(_0x2a9b47(0x134))/0x8+parseInt(_0x2a9b47(0x12f))/0x9+-parseInt(_0x2a9b47(0x131))/0xa*(-parseInt(_0x2a9b47(0x133))/0xb);if(_0x1b9a2f===_0x387366)break;else _0x420f52['push'](_0x420f52['shift']());}catch(_0x511f2d){_0x420f52['push'](_0x420f52['shift']());}}}(_0x42fb,0x24bc7));import _0x19433c from'./wrapper';export*from'./adapters';function _0x2cd1(_0x39b6a0,_0x4acb24){var _0x42fbb1=_0x42fb();return _0x2cd1=function(_0x2cd1e0,_0x53e893){_0x2cd1e0=_0x2cd1e0-0x12c;var _0x527c21=_0x42fbb1[_0x2cd1e0];return _0x527c21;},_0x2cd1(_0x39b6a0,_0x4acb24);}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';function _0x42fb(){var _0x19e226=['1GtxuJf','560CtpUXI','292725pnsjhG','8uFGRJJ','10jNFyrT','322707FoYyHs','6827062TScSJG','1984712DpdjVT','15510BnkGoC','584378nAgKYC','146220pjdwUj'];_0x42fb=function(){return _0x19e226;};return _0x42fb();}export*as Services from'./services';export{_0x19433c 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 d5b80f46..76b5828a 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x206995=_0x186d;(function(_0x29c055,_0x3cc5dc){var _0x2f9252=_0x186d,_0x44077c=_0x29c055();while(!![]){try{var _0x1891a8=-parseInt(_0x2f9252(0x1be))/0x1+parseInt(_0x2f9252(0x1af))/0x2*(parseInt(_0x2f9252(0x1ad))/0x3)+-parseInt(_0x2f9252(0x1bf))/0x4+-parseInt(_0x2f9252(0x1bc))/0x5*(-parseInt(_0x2f9252(0x1b8))/0x6)+parseInt(_0x2f9252(0x1b1))/0x7*(-parseInt(_0x2f9252(0x1ac))/0x8)+-parseInt(_0x2f9252(0x1b4))/0x9*(parseInt(_0x2f9252(0x1b6))/0xa)+parseInt(_0x2f9252(0x1ba))/0xb;if(_0x1891a8===_0x3cc5dc)break;else _0x44077c['push'](_0x44077c['shift']());}catch(_0xb255d8){_0x44077c['push'](_0x44077c['shift']());}}}(_0x3d18,0x4ff31));function _0x186d(_0x1c5a6c,_0x18e79f){var _0x3d18f5=_0x3d18();return _0x186d=function(_0x186dfe,_0x49e745){_0x186dfe=_0x186dfe-0x1ac;var _0x24b23e=_0x3d18f5[_0x186dfe];return _0x24b23e;},_0x186d(_0x1c5a6c,_0x18e79f);}function _0x3d18(){var _0x2b9bc3=['115OVDDSW','onBuddyReqChange','231999YGRdjs','1450996ayyfXT','onBuddyRemarkUpdated','onSpacePermissionInfos','onNickUpdated','onAddBuddyNeedVerify','onBuddyDetailInfoChange','24MhvGWw','144489LNBzZN','onAddMeSettingChanged','10jHYUdp','onBlockChanged','1204147BFDwgn','onBuddyListChange','onBuddyInfoChange','45SEAIqg','onSmartInfos','98860tlKKrz','onDoubtBuddyReqUnreadNumChange','81078THECbn','onAvatarUrlUpdated','10297100POrwEx','onCheckBuddySettingResult'];_0x3d18=function(){return _0x2b9bc3;};return _0x3d18();}export class BuddyListener{[_0x206995(0x1c3)](_0xfdd058){}[_0x206995(0x1ae)](_0x550fee){}[_0x206995(0x1b9)](_0x1576dc){}[_0x206995(0x1b0)](_0xb17a29){}[_0x206995(0x1c4)](_0x2d5214){}[_0x206995(0x1b3)](_0x43f2ac){}[_0x206995(0x1b2)](_0xb8c1de){}[_0x206995(0x1c0)](_0x59b53d){}[_0x206995(0x1bd)](_0x441bba){}['onBuddyReqUnreadCntChange'](_0x12fabf){}[_0x206995(0x1bb)](_0x1e1e24){}['onDelBatchBuddyInfos'](_0x5427c6){}['onDoubtBuddyReqChange'](_0x3e6239){}[_0x206995(0x1b7)](_0x3da34c){}[_0x206995(0x1c2)](_0x48bd05){}[_0x206995(0x1b5)](_0x475a32){}[_0x206995(0x1c1)](_0x249674){}} \ No newline at end of file +function _0x36d1(){var _0x2a9187=['onAddMeSettingChanged','1084ZtjwbA','onCheckBuddySettingResult','onBuddyListChange','462303ByfzkZ','266mzGhsn','onDelBatchBuddyInfos','onAddBuddyNeedVerify','onNickUpdated','408OwiUpv','2261GLcBOS','595830dMorjo','onBuddyInfoChange','411037ZlHpLn','onBlockChanged','onBuddyRemarkUpdated','22696mptKbl','onDoubtBuddyReqChange','36897627DuUUwL','onBuddyReqChange','8753jQmNNT','onSpacePermissionInfos','40NptYMR','100UoHRCA','15459aHpXXv','onDoubtBuddyReqUnreadNumChange','onBuddyReqUnreadCntChange','onBuddyDetailInfoChange'];_0x36d1=function(){return _0x2a9187;};return _0x36d1();}var _0x5125f6=_0x17cd;function _0x17cd(_0x3072de,_0x57e39a){var _0x36d1d6=_0x36d1();return _0x17cd=function(_0x17cda9,_0x5c0e88){_0x17cda9=_0x17cda9-0x1cb;var _0x2704fb=_0x36d1d6[_0x17cda9];return _0x2704fb;},_0x17cd(_0x3072de,_0x57e39a);}(function(_0x31de55,_0xf35921){var _0x215628=_0x17cd,_0x58b4aa=_0x31de55();while(!![]){try{var _0x220b3e=parseInt(_0x215628(0x1e1))/0x1*(parseInt(_0x215628(0x1d2))/0x2)+parseInt(_0x215628(0x1e5))/0x3*(-parseInt(_0x215628(0x1ce))/0x4)+-parseInt(_0x215628(0x1e3))/0x5*(-parseInt(_0x215628(0x1d8))/0x6)+parseInt(_0x215628(0x1d7))/0x7*(-parseInt(_0x215628(0x1dd))/0x8)+parseInt(_0x215628(0x1d1))/0x9*(-parseInt(_0x215628(0x1e4))/0xa)+-parseInt(_0x215628(0x1da))/0xb*(parseInt(_0x215628(0x1d6))/0xc)+parseInt(_0x215628(0x1df))/0xd;if(_0x220b3e===_0xf35921)break;else _0x58b4aa['push'](_0x58b4aa['shift']());}catch(_0x5318bc){_0x58b4aa['push'](_0x58b4aa['shift']());}}}(_0x36d1,0xaae02));export class BuddyListener{[_0x5125f6(0x1d4)](_0x3aef0a){}[_0x5125f6(0x1cd)](_0x40f612){}['onAvatarUrlUpdated'](_0x173070){}[_0x5125f6(0x1db)](_0x399d1b){}[_0x5125f6(0x1cc)](_0x1abe7c){}[_0x5125f6(0x1d9)](_0x518395){}[_0x5125f6(0x1d0)](_0x52c80f){}[_0x5125f6(0x1dc)](_0x4d6bdb){}[_0x5125f6(0x1e0)](_0xd07641){}[_0x5125f6(0x1cb)](_0x3d3751){}[_0x5125f6(0x1cf)](_0x3ef0f6){}[_0x5125f6(0x1d3)](_0x4ba788){}[_0x5125f6(0x1de)](_0x593225){}[_0x5125f6(0x1e6)](_0x541996){}[_0x5125f6(0x1d5)](_0x27d808){}['onSmartInfos'](_0x36e5be){}[_0x5125f6(0x1e2)](_0x2e92e2){}} \ 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 bdadef4d..4dd8d2e5 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x5840b2=_0x5ccc;function _0x49c6(){var _0x1786e9=['510729aZdyhJ','1750295VvzDfh','8LGEGER','onFileListChanged','onFileSearch','4mqGKYT','748958FLmihY','876642VYllUi','onSessionChanged','184246sZjInk','2043920wEQDUO','8214550ErRgNQ','onFileStatusChanged','onSessionListChanged','9DWtbQN'];_0x49c6=function(){return _0x1786e9;};return _0x49c6();}function _0x5ccc(_0x257503,_0x84f009){var _0x49c60a=_0x49c6();return _0x5ccc=function(_0x5ccc95,_0x3fc251){_0x5ccc95=_0x5ccc95-0xc9;var _0x4ea891=_0x49c60a[_0x5ccc95];return _0x4ea891;},_0x5ccc(_0x257503,_0x84f009);}(function(_0x462aec,_0x3a50ad){var _0xc19f46=_0x5ccc,_0x5d49ff=_0x462aec();while(!![]){try{var _0xa21dde=-parseInt(_0xc19f46(0xca))/0x1+parseInt(_0xc19f46(0xd2))/0x2*(parseInt(_0xc19f46(0xd0))/0x3)+parseInt(_0xc19f46(0xd5))/0x4*(-parseInt(_0xc19f46(0xd1))/0x5)+-parseInt(_0xc19f46(0xd7))/0x6+-parseInt(_0xc19f46(0xd6))/0x7+-parseInt(_0xc19f46(0xcb))/0x8+-parseInt(_0xc19f46(0xcf))/0x9*(-parseInt(_0xc19f46(0xcc))/0xa);if(_0xa21dde===_0x3a50ad)break;else _0x5d49ff['push'](_0x5d49ff['shift']());}catch(_0x4c3430){_0x5d49ff['push'](_0x5d49ff['shift']());}}}(_0x49c6,0x7030b));export class KernelFileAssistantListener{[_0x5840b2(0xcd)](..._0x26ecd9){}[_0x5840b2(0xce)](..._0x30d14a){}[_0x5840b2(0xc9)](..._0x5de70b){}[_0x5840b2(0xd3)](..._0xd62147){}[_0x5840b2(0xd4)](..._0x134e8d){}} \ No newline at end of file +function _0x5969(_0x215ae7,_0x3f86aa){var _0x197855=_0x1978();return _0x5969=function(_0x59698a,_0x53966e){_0x59698a=_0x59698a-0x1a7;var _0x311cb5=_0x197855[_0x59698a];return _0x311cb5;},_0x5969(_0x215ae7,_0x3f86aa);}var _0x38aaa8=_0x5969;(function(_0x4373a7,_0x18f0ed){var _0xdb53b9=_0x5969,_0x18669b=_0x4373a7();while(!![]){try{var _0x37bdf1=parseInt(_0xdb53b9(0x1b3))/0x1+parseInt(_0xdb53b9(0x1ad))/0x2+-parseInt(_0xdb53b9(0x1b0))/0x3*(parseInt(_0xdb53b9(0x1ae))/0x4)+parseInt(_0xdb53b9(0x1b2))/0x5+parseInt(_0xdb53b9(0x1ac))/0x6*(-parseInt(_0xdb53b9(0x1a7))/0x7)+parseInt(_0xdb53b9(0x1ab))/0x8*(-parseInt(_0xdb53b9(0x1a9))/0x9)+-parseInt(_0xdb53b9(0x1a8))/0xa;if(_0x37bdf1===_0x18f0ed)break;else _0x18669b['push'](_0x18669b['shift']());}catch(_0x4aadd5){_0x18669b['push'](_0x18669b['shift']());}}}(_0x1978,0x19d52));function _0x1978(){var _0x36ad8e=['479101kWExlj','595010isAwGH','6732XQzAtd','onSessionListChanged','304vzFjGT','12rFmYBJ','188986kaCIGI','40MZgJfc','onFileStatusChanged','31731tIkWeU','onFileListChanged','955800IlnNOj','150738wwyDBJ'];_0x1978=function(){return _0x36ad8e;};return _0x1978();}export class KernelFileAssistantListener{[_0x38aaa8(0x1af)](..._0x12f7c9){}[_0x38aaa8(0x1aa)](..._0x40d8f7){}['onSessionChanged'](..._0x366964){}[_0x38aaa8(0x1b1)](..._0x397e0e){}['onFileSearch'](..._0x224e0d){}} \ 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 3980861c..99de606d 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -function _0x4158(_0x401fbf,_0x26b392){var _0x1a1c10=_0x1a1c();return _0x4158=function(_0x41587b,_0x3da17a){_0x41587b=_0x41587b-0x147;var _0x28505b=_0x1a1c10[_0x41587b];return _0x28505b;},_0x4158(_0x401fbf,_0x26b392);}var _0x570b60=_0x4158;(function(_0x22888a,_0x3e1c00){var _0x2a09af=_0x4158,_0x362230=_0x22888a();while(!![]){try{var _0x10ba3a=-parseInt(_0x2a09af(0x16c))/0x1*(-parseInt(_0x2a09af(0x16a))/0x2)+parseInt(_0x2a09af(0x183))/0x3*(-parseInt(_0x2a09af(0x184))/0x4)+-parseInt(_0x2a09af(0x175))/0x5+-parseInt(_0x2a09af(0x15f))/0x6+-parseInt(_0x2a09af(0x185))/0x7*(parseInt(_0x2a09af(0x14e))/0x8)+-parseInt(_0x2a09af(0x14b))/0x9+parseInt(_0x2a09af(0x177))/0xa;if(_0x10ba3a===_0x3e1c00)break;else _0x362230['push'](_0x362230['shift']());}catch(_0x4b61f9){_0x362230['push'](_0x362230['shift']());}}}(_0x1a1c,0x6393d));export class GroupListener{[_0x570b60(0x15a)](..._0x116391){}[_0x570b60(0x150)](..._0x257fd9){}['onGroupAllInfoChange'](..._0x24a2ed){}[_0x570b60(0x17b)](..._0x4e26d0){}[_0x570b60(0x182)](..._0x2777a1){}[_0x570b60(0x16e)](..._0x975497){}[_0x570b60(0x166)](..._0x30c977){}['onGroupConfMemberChange'](..._0x1ba66c){}[_0x570b60(0x16f)](..._0x5490a7){}[_0x570b60(0x169)](..._0x31be0c){}[_0x570b60(0x163)](..._0x127ab3){}['onGroupListUpdate'](_0x212f67,_0x3f73f6){}[_0x570b60(0x148)](_0x4282c2,_0x45b564){}[_0x570b60(0x160)](..._0x440c0d){}[_0x570b60(0x172)](..._0x7f5f8e){}[_0x570b60(0x167)](..._0x4f495d){}['onGroupsMsgMaskResult'](..._0x2d4c58){}[_0x570b60(0x17d)](..._0x125a19){}['onJoinGroupNotify'](..._0x76a7b8){}['onJoinGroupNoVerifyFlag'](..._0x550558){}[_0x570b60(0x165)](_0x1bc08f,_0x423888,_0x16d4d6){}[_0x570b60(0x14f)](_0x4be743){}[_0x570b60(0x171)](..._0x41755b){}['onShutUpMemberListChanged'](..._0x24af60){}}export class DebugGroupListener{[_0x570b60(0x15a)](..._0x4a6a65){var _0x27a00e=_0x570b60,_0x32de39={'cOiRf':'onGroupMemberLevelInfoChange:'};console[_0x27a00e(0x176)](_0x32de39['cOiRf'],..._0x4a6a65);}[_0x570b60(0x150)](..._0x498dbc){var _0x451012=_0x570b60,_0x511fcb={'rFyJL':'onGetGroupBulletinListResult:'};console[_0x451012(0x176)](_0x511fcb[_0x451012(0x151)],..._0x498dbc);}[_0x570b60(0x168)](..._0x458b8f){var _0x29e68f=_0x570b60,_0x4119b8={'ZtUXl':'onGroupAllInfoChange:'};console[_0x29e68f(0x176)](_0x4119b8[_0x29e68f(0x154)],..._0x458b8f);}['onGroupBulletinChange'](..._0x136aac){var _0x37d5fe=_0x570b60,_0x17ecbd={'Yknqa':_0x37d5fe(0x17e)};console[_0x37d5fe(0x176)](_0x17ecbd['Yknqa'],..._0x136aac);}[_0x570b60(0x182)](..._0x5c3e92){var _0x5ca50a=_0x570b60,_0x268bdb={'yeYbf':_0x5ca50a(0x153)};console[_0x5ca50a(0x176)](_0x268bdb['yeYbf'],..._0x5c3e92);}[_0x570b60(0x16e)](..._0x348e81){var _0x1817e0=_0x570b60,_0x5aefff={'SVgSy':_0x1817e0(0x174)};console[_0x1817e0(0x176)](_0x5aefff[_0x1817e0(0x152)],..._0x348e81);}[_0x570b60(0x166)](..._0x76832c){console['log']('onGroupBulletinRichMediaDownloadComplete:',..._0x76832c);}['onGroupConfMemberChange'](..._0x5f4420){var _0x1d9ec4=_0x570b60;console['log'](_0x1d9ec4(0x161),..._0x5f4420);}[_0x570b60(0x16f)](..._0xfc04f7){var _0x29c99b=_0x570b60,_0x11901c={'iSrqX':_0x29c99b(0x17f)};console['log'](_0x11901c[_0x29c99b(0x178)],..._0xfc04f7);}[_0x570b60(0x169)](..._0x2f07e8){var _0x50744e=_0x570b60,_0x1ea550={'xwEpv':_0x50744e(0x173)};console['log'](_0x1ea550[_0x50744e(0x15d)],..._0x2f07e8);}[_0x570b60(0x163)](..._0x264364){var _0x50c2a3=_0x570b60,_0x5dae2b={'QagKI':_0x50c2a3(0x157)};console['log'](_0x5dae2b[_0x50c2a3(0x149)],..._0x264364);}[_0x570b60(0x14c)](..._0x3e4dc9){var _0x502caf=_0x570b60,_0x1e9ec5={'HCQiI':_0x502caf(0x179)};console[_0x502caf(0x176)](_0x1e9ec5[_0x502caf(0x15e)],..._0x3e4dc9);}[_0x570b60(0x148)](..._0x545042){var _0x5c8843=_0x570b60,_0x3f610f={'lKQHq':_0x5c8843(0x14d)};console[_0x5c8843(0x176)](_0x3f610f[_0x5c8843(0x16d)],..._0x545042);}[_0x570b60(0x160)](..._0x6146d3){var _0x366ca7=_0x570b60,_0x2501a2={'tcOjv':'onGroupBulletinRichMediaProgressUpdate:'};console[_0x366ca7(0x176)](_0x2501a2[_0x366ca7(0x16b)],..._0x6146d3);}[_0x570b60(0x172)](..._0x40014f){var _0x472e49=_0x570b60,_0x4a8a6b={'qhnBD':_0x472e49(0x180)};console['log'](_0x4a8a6b[_0x472e49(0x162)],..._0x40014f);}[_0x570b60(0x167)](..._0x282543){var _0x35bcb7=_0x570b60,_0x3869c5={'BTXTP':_0x35bcb7(0x170)};console[_0x35bcb7(0x176)](_0x3869c5[_0x35bcb7(0x164)],..._0x282543);}['onGroupsMsgMaskResult'](..._0x549458){var _0x8631f9=_0x570b60,_0x5e225e={'BMSMf':_0x8631f9(0x159)};console[_0x8631f9(0x176)](_0x5e225e[_0x8631f9(0x15c)],..._0x549458);}[_0x570b60(0x17d)](..._0x319775){var _0x485a48=_0x570b60,_0xce6b7={'CkDav':_0x485a48(0x15b)};console[_0x485a48(0x176)](_0xce6b7[_0x485a48(0x181)],..._0x319775);}[_0x570b60(0x156)](..._0x574150){var _0x531434=_0x570b60,_0x5a3645={'MuNny':_0x531434(0x155)};console['log'](_0x5a3645[_0x531434(0x17c)],..._0x574150);}['onJoinGroupNoVerifyFlag'](..._0x513c74){var _0x4154f9=_0x570b60,_0x245910={'WTLLu':'onJoinGroupNoVerifyFlag:'};console[_0x4154f9(0x176)](_0x245910['WTLLu'],..._0x513c74);}[_0x570b60(0x165)](_0x414a41,_0x38d22b,_0x2dc340){var _0x1b8db1=_0x570b60;console[_0x1b8db1(0x176)](_0x1b8db1(0x14a),_0x414a41,_0x38d22b,_0x2dc340);}['onMemberListChange'](..._0x429dc3){var _0x2cfbfd=_0x570b60;console[_0x2cfbfd(0x176)](_0x2cfbfd(0x186),..._0x429dc3);}[_0x570b60(0x171)](..._0x5832a3){var _0x27894d=_0x570b60,_0x52fba1={'ydTwV':_0x27894d(0x17a)};console['log'](_0x52fba1['ydTwV'],..._0x5832a3);}[_0x570b60(0x147)](..._0x7be37){var _0x149956=_0x570b60,_0x628bc8={'TrNRF':_0x149956(0x158)};console[_0x149956(0x176)](_0x628bc8['TrNRF'],..._0x7be37);}}function _0x1a1c(){var _0x590f0d=['onGroupArkInviteStateResult:','1160870tXjdau','log','28561320apWIqe','iSrqX','onGroupListUpdate:','onSearchMemberChange:','onGroupBulletinChange','MuNny','onGroupStatisticInfoChange','onGroupBulletinChange:','onGroupDetailInfoChange:','onGroupNotifiesUnreadCountUpdated:','CkDav','onGroupBulletinRemindNotify','437985MyINjr','20NknltR','21PVZkTC','onMemberListChange:','onShutUpMemberListChanged','onGroupNotifiesUpdated','QagKI','onMemberInfoChange:','5898870iKtOAD','onGroupListUpdate','onGroupNotifiesUpdated:','744152VIJSBH','onMemberListChange','onGetGroupBulletinListResult','rFyJL','SVgSy','onGroupBulletinRemindNotify:','ZtUXl','onJoinGroupNotify:','onJoinGroupNotify','onGroupFirstBulletinNotify:','onShutUpMemberListChanged:','onGroupsMsgMaskResult:','onGroupMemberLevelInfoChange','onGroupStatisticInfoChange:','BMSMf','xwEpv','HCQiI','4842984qXjoeN','onGroupBulletinRichMediaProgressUpdate','onGroupConfMemberChange:','qhnBD','onGroupFirstBulletinNotify','BTXTP','onMemberInfoChange','onGroupBulletinRichMediaDownloadComplete','onGroupSingleScreenNotifies','onGroupAllInfoChange','onGroupExtListUpdate','170358YjJuNf','tcOjv','3TEuVHO','lKQHq','onGroupArkInviteStateResult','onGroupDetailInfoChange','onGroupSingleScreenNotifies:','onSearchMemberChange','onGroupNotifiesUnreadCountUpdated','onGroupExtListUpdate:'];_0x1a1c=function(){return _0x590f0d;};return _0x1a1c();} \ No newline at end of file +function _0x4957(){var _0x12615b=['onGroupMemberLevelInfoChange','187nIWnnV','onGroupStatisticInfoChange','jKkDb','onGetGroupBulletinListResult','onGroupListUpdate','onJoinGroupNotify:','onMemberInfoChange','IYOEH','kqXoI','onGroupConfMemberChange','onShutUpMemberListChanged:','1770JgrFFh','onGroupFirstBulletinNotify:','735894ABHObY','onGroupListUpdate:','PqJle','onGroupExtListUpdate','onGroupFirstBulletinNotify','onJoinGroupNoVerifyFlag','onGroupBulletinRichMediaDownloadComplete','EXJhL','23633779JSYZfJ','onMemberListChange:','onGroupMemberLevelInfoChange:','535KhwEea','onGroupDetailInfoChange','516429nqNjPI','onGroupNotifiesUpdated','onJoinGroupNoVerifyFlag:','onJoinGroupNotify','4VVGlHb','onGroupBulletinRichMediaProgressUpdate:','onGroupArkInviteStateResult','onShutUpMemberListChanged','fiHQa','1SajutZ','onGroupBulletinChange:','onSearchMemberChange','PUzbE','onGroupsMsgMaskResult','2262806LWWyHs','onGroupBulletinRichMediaProgressUpdate','onGroupBulletinRichMediaDownloadComplete:','KPDNL','onMemberListChange','onGroupArkInviteStateResult:','djams','onGroupAllInfoChange','onGroupBulletinChange','9fLFSWr','log','onGroupBulletinRemindNotify','onGroupSingleScreenNotifies:','vdKNm','onGroupExtListUpdate:','onSearchMemberChange:','12samCOx','onGroupDetailInfoChange:','onMemberInfoChange:','onGroupNotifiesUpdated:','onGroupSingleScreenNotifies','272230wpXicH','941736ZYdjdn'];_0x4957=function(){return _0x12615b;};return _0x4957();}var _0xfb998f=_0x3da1;(function(_0x41aaf9,_0x5777c5){var _0x4b1fe8=_0x3da1,_0x4a2acd=_0x41aaf9();while(!![]){try{var _0x4032b9=parseInt(_0x4b1fe8(0x19c))/0x1*(-parseInt(_0x4b1fe8(0x186))/0x2)+parseInt(_0x4b1fe8(0x193))/0x3*(-parseInt(_0x4b1fe8(0x197))/0x4)+parseInt(_0x4b1fe8(0x191))/0x5*(-parseInt(_0x4b1fe8(0x184))/0x6)+-parseInt(_0x4b1fe8(0x1a1))/0x7+parseInt(_0x4b1fe8(0x1b7))/0x8*(-parseInt(_0x4b1fe8(0x1aa))/0x9)+parseInt(_0x4b1fe8(0x1b6))/0xa*(-parseInt(_0x4b1fe8(0x1b9))/0xb)+-parseInt(_0x4b1fe8(0x1b1))/0xc*(-parseInt(_0x4b1fe8(0x18e))/0xd);if(_0x4032b9===_0x5777c5)break;else _0x4a2acd['push'](_0x4a2acd['shift']());}catch(_0x1f5128){_0x4a2acd['push'](_0x4a2acd['shift']());}}}(_0x4957,0x53a22));function _0x3da1(_0x492068,_0x4f4d7b){var _0x49571b=_0x4957();return _0x3da1=function(_0x3da116,_0x4bf714){_0x3da116=_0x3da116-0x17d;var _0x68930=_0x49571b[_0x3da116];return _0x68930;},_0x3da1(_0x492068,_0x4f4d7b);}export class GroupListener{[_0xfb998f(0x1b8)](..._0x525d6e){}['onGetGroupBulletinListResult'](..._0x5d4565){}[_0xfb998f(0x1a8)](..._0x57ebaf){}[_0xfb998f(0x1a9)](..._0x1c524f){}[_0xfb998f(0x1ac)](..._0x31d24c){}[_0xfb998f(0x199)](..._0x11508e){}[_0xfb998f(0x18c)](..._0x1b63cd){}[_0xfb998f(0x182)](..._0x12d214){}[_0xfb998f(0x192)](..._0x3c0a0d){}['onGroupExtListUpdate'](..._0x33862f){}[_0xfb998f(0x18a)](..._0x396627){}[_0xfb998f(0x17d)](_0x5a9c15,_0x28555d){}[_0xfb998f(0x194)](_0xc4d190,_0x2b956a){}[_0xfb998f(0x1a2)](..._0x1022ec){}['onGroupNotifiesUnreadCountUpdated'](..._0x17d2ee){}[_0xfb998f(0x1b5)](..._0x837931){}['onGroupsMsgMaskResult'](..._0x3ab265){}[_0xfb998f(0x1ba)](..._0x5a08ea){}['onJoinGroupNotify'](..._0x40d261){}[_0xfb998f(0x18b)](..._0x61a71f){}['onMemberInfoChange'](_0x13cbaf,_0x53365c,_0x11d46f){}[_0xfb998f(0x1a5)](_0x11d7dc){}[_0xfb998f(0x19e)](..._0x2089aa){}['onShutUpMemberListChanged'](..._0x494501){}}export class DebugGroupListener{[_0xfb998f(0x1b8)](..._0x5d3190){var _0x448f90=_0xfb998f;console[_0x448f90(0x1ab)](_0x448f90(0x190),..._0x5d3190);}[_0xfb998f(0x1bc)](..._0x453082){var _0x4c3c30=_0xfb998f,_0x258689={'jKkDb':'onGetGroupBulletinListResult:'};console['log'](_0x258689[_0x4c3c30(0x1bb)],..._0x453082);}[_0xfb998f(0x1a8)](..._0x150689){var _0x3e5a71=_0xfb998f;console[_0x3e5a71(0x1ab)]('onGroupAllInfoChange:',..._0x150689);}['onGroupBulletinChange'](..._0x3492f6){var _0xb215e7=_0xfb998f,_0x127abb={'vdKNm':_0xb215e7(0x19d)};console[_0xb215e7(0x1ab)](_0x127abb[_0xb215e7(0x1ae)],..._0x3492f6);}['onGroupBulletinRemindNotify'](..._0x1c86ea){var _0x54b327=_0xfb998f;console[_0x54b327(0x1ab)]('onGroupBulletinRemindNotify:',..._0x1c86ea);}['onGroupArkInviteStateResult'](..._0x562b25){var _0x3f9d6c=_0xfb998f,_0x50fef4={'KPDNL':_0x3f9d6c(0x1a6)};console[_0x3f9d6c(0x1ab)](_0x50fef4[_0x3f9d6c(0x1a4)],..._0x562b25);}['onGroupBulletinRichMediaDownloadComplete'](..._0x356682){var _0x56c688=_0xfb998f,_0x3122ea={'uDuzL':_0x56c688(0x1a3)};console[_0x56c688(0x1ab)](_0x3122ea['uDuzL'],..._0x356682);}[_0xfb998f(0x182)](..._0x430c48){var _0x334f38={'mhyfQ':'onGroupConfMemberChange:'};console['log'](_0x334f38['mhyfQ'],..._0x430c48);}[_0xfb998f(0x192)](..._0x43c04){var _0x90c605=_0xfb998f;console[_0x90c605(0x1ab)](_0x90c605(0x1b2),..._0x43c04);}[_0xfb998f(0x189)](..._0x3978f2){var _0x550176=_0xfb998f,_0xc2a935={'djams':_0x550176(0x1af)};console[_0x550176(0x1ab)](_0xc2a935[_0x550176(0x1a7)],..._0x3978f2);}['onGroupFirstBulletinNotify'](..._0x1e58dd){var _0x5bd7ce=_0xfb998f,_0x128ea0={'PqJle':_0x5bd7ce(0x185)};console[_0x5bd7ce(0x1ab)](_0x128ea0[_0x5bd7ce(0x188)],..._0x1e58dd);}['onGroupListUpdate'](..._0xafea79){var _0x5454a2=_0xfb998f,_0x51d13c={'IYOEH':_0x5454a2(0x187)};console[_0x5454a2(0x1ab)](_0x51d13c[_0x5454a2(0x180)],..._0xafea79);}[_0xfb998f(0x194)](..._0x3e0336){var _0x26e419=_0xfb998f,_0x234f4e={'zgcQn':_0x26e419(0x1b4)};console[_0x26e419(0x1ab)](_0x234f4e['zgcQn'],..._0x3e0336);}[_0xfb998f(0x1a2)](..._0x4baf70){var _0x2ef24f=_0xfb998f,_0x202c54={'DMzZj':_0x2ef24f(0x198)};console[_0x2ef24f(0x1ab)](_0x202c54['DMzZj'],..._0x4baf70);}['onGroupNotifiesUnreadCountUpdated'](..._0x2d872b){var _0x2476a1=_0xfb998f;console[_0x2476a1(0x1ab)]('onGroupNotifiesUnreadCountUpdated:',..._0x2d872b);}[_0xfb998f(0x1b5)](..._0x4f3c0f){var _0x4c24af=_0xfb998f,_0x57c10b={'EXJhL':_0x4c24af(0x1ad)};console[_0x4c24af(0x1ab)](_0x57c10b[_0x4c24af(0x18d)],..._0x4f3c0f);}[_0xfb998f(0x1a0)](..._0x346ae0){var _0x41b550=_0xfb998f,_0x3af9b2={'fiHQa':'onGroupsMsgMaskResult:'};console['log'](_0x3af9b2[_0x41b550(0x19b)],..._0x346ae0);}[_0xfb998f(0x1ba)](..._0x11a572){var _0x446c79=_0xfb998f,_0x452067={'kqXoI':'onGroupStatisticInfoChange:'};console[_0x446c79(0x1ab)](_0x452067[_0x446c79(0x181)],..._0x11a572);}[_0xfb998f(0x196)](..._0x4095ce){var _0xff4152=_0xfb998f;console[_0xff4152(0x1ab)](_0xff4152(0x17e),..._0x4095ce);}[_0xfb998f(0x18b)](..._0x79c097){var _0x2bebe2=_0xfb998f,_0x53ff={'PUzbE':_0x2bebe2(0x195)};console[_0x2bebe2(0x1ab)](_0x53ff[_0x2bebe2(0x19f)],..._0x79c097);}[_0xfb998f(0x17f)](_0x434df6,_0x2c1784,_0x5e56bb){var _0x41b698=_0xfb998f,_0x54e6f0={'bixWD':_0x41b698(0x1b3)};console[_0x41b698(0x1ab)](_0x54e6f0['bixWD'],_0x434df6,_0x2c1784,_0x5e56bb);}[_0xfb998f(0x1a5)](..._0x1ea31d){var _0x34e60e=_0xfb998f;console[_0x34e60e(0x1ab)](_0x34e60e(0x18f),..._0x1ea31d);}[_0xfb998f(0x19e)](..._0x156087){var _0xe2dbd3=_0xfb998f,_0x458648={'GYewS':_0xe2dbd3(0x1b0)};console[_0xe2dbd3(0x1ab)](_0x458648['GYewS'],..._0x156087);}[_0xfb998f(0x19a)](..._0x2fd189){var _0x1eb70e=_0xfb998f,_0x38c68e={'JNnqj':_0x1eb70e(0x183)};console[_0x1eb70e(0x1ab)](_0x38c68e['JNnqj'],..._0x2fd189);}} \ 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 493ca290..7a204b62 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x5bd1(_0x1f81bd,_0x53dfa3){var _0x422125=_0x4221();return _0x5bd1=function(_0x5bd18b,_0x43a4f3){_0x5bd18b=_0x5bd18b-0x182;var _0x1fb0d4=_0x422125[_0x5bd18b];return _0x1fb0d4;},_0x5bd1(_0x1f81bd,_0x53dfa3);}var _0x1f3293=_0x5bd1;(function(_0x141cbe,_0x39be0b){var _0xbba66b=_0x5bd1,_0x13c431=_0x141cbe();while(!![]){try{var _0x110360=parseInt(_0xbba66b(0x197))/0x1+-parseInt(_0xbba66b(0x187))/0x2*(parseInt(_0xbba66b(0x18b))/0x3)+-parseInt(_0xbba66b(0x186))/0x4*(parseInt(_0xbba66b(0x185))/0x5)+-parseInt(_0xbba66b(0x193))/0x6*(parseInt(_0xbba66b(0x195))/0x7)+-parseInt(_0xbba66b(0x189))/0x8+-parseInt(_0xbba66b(0x183))/0x9*(parseInt(_0xbba66b(0x199))/0xa)+parseInt(_0xbba66b(0x184))/0xb;if(_0x110360===_0x39be0b)break;else _0x13c431['push'](_0x13c431['shift']());}catch(_0x114a07){_0x13c431['push'](_0x13c431['shift']());}}}(_0x4221,0x55f5b));export class LoginListener{[_0x1f3293(0x192)](..._0x53a1ff){}[_0x1f3293(0x182)](..._0x38802f){}[_0x1f3293(0x19a)](..._0x23c940){}[_0x1f3293(0x18f)](_0x1342a5){}[_0x1f3293(0x190)](..._0x25e878){}[_0x1f3293(0x198)](..._0x1ef55d){}['onQRCodeLoginSucceed'](_0x5c8255){}['onQRCodeSessionFailed'](..._0xb72bee){}[_0x1f3293(0x188)](..._0x5d1e23){}[_0x1f3293(0x196)](..._0x55ce70){}['onLogoutFailed'](..._0x427327){}[_0x1f3293(0x191)](..._0x3beb32){}[_0x1f3293(0x18e)](..._0x524f20){}[_0x1f3293(0x18d)](..._0x260b07){}[_0x1f3293(0x18a)](..._0x196eb3){}[_0x1f3293(0x194)](..._0x37cd75){}[_0x1f3293(0x18c)](..._0x4ac9aa){}}function _0x4221(){var _0x4a17e2=['12mLgswR','onLoginState','onPasswordLoginFailed','onQRCodeSessionQuickLoginFailed','onQRCodeGetPicture','onQRCodeLoginPollingStarted','onUserLoggedIn','onLoginConnected','450mfAMEr','onQQLoginNumLimited','35987CHTkVU','onLogoutSucceed','568644LvIjPb','onQRCodeSessionUserScaned','1210BAJUct','onLoginConnecting','onLoginDisConnected','43128bJqZge','16857456fNeytj','7750HfltRa','952FUSPMk','172738vYxegh','onLoginFailed','554128BKgyTG','OnConfirmUnusualDeviceFailed'];_0x4221=function(){return _0x4a17e2;};return _0x4221();} \ No newline at end of file +function _0xe81d(_0x24d85e,_0xb9f5af){var _0x390dc7=_0x390d();return _0xe81d=function(_0xe81d01,_0xe36ba4){_0xe81d01=_0xe81d01-0x162;var _0x425223=_0x390dc7[_0xe81d01];return _0x425223;},_0xe81d(_0x24d85e,_0xb9f5af);}var _0x35dbeb=_0xe81d;function _0x390d(){var _0x408a75=['127746GBwZox','onQRCodeSessionUserScaned','930159FpmJjW','onLogoutSucceed','6qhbFEd','onLogoutFailed','14irDBVf','813980dSydzw','onUserLoggedIn','onQRCodeLoginPollingStarted','2994929SAVDKP','onLoginDisConnected','onQQLoginNumLimited','onQRCodeSessionQuickLoginFailed','24279Jpgaio','onQRCodeLoginSucceed','onLoginState','1676896fZCWJK','26412RQxvfa','165OKZtCp','onLoginConnecting','onLoginConnected','onPasswordLoginFailed'];_0x390d=function(){return _0x408a75;};return _0x390d();}(function(_0x485952,_0x4de4a3){var _0xa1fe=_0xe81d,_0x5cf2a3=_0x485952();while(!![]){try{var _0x5612b4=-parseInt(_0xa1fe(0x16d))/0x1+parseInt(_0xa1fe(0x173))/0x2*(parseInt(_0xa1fe(0x164))/0x3)+parseInt(_0xa1fe(0x168))/0x4*(parseInt(_0xa1fe(0x169))/0x5)+-parseInt(_0xa1fe(0x171))/0x6*(-parseInt(_0xa1fe(0x177))/0x7)+-parseInt(_0xa1fe(0x167))/0x8+parseInt(_0xa1fe(0x16f))/0x9+-parseInt(_0xa1fe(0x174))/0xa;if(_0x5612b4===_0x4de4a3)break;else _0x5cf2a3['push'](_0x5cf2a3['shift']());}catch(_0x16489c){_0x5cf2a3['push'](_0x5cf2a3['shift']());}}}(_0x390d,0x5e7b0));export class LoginListener{[_0x35dbeb(0x16b)](..._0x3ca13e){}[_0x35dbeb(0x178)](..._0x1428f2){}[_0x35dbeb(0x16a)](..._0x11856a){}['onQRCodeGetPicture'](_0x14f900){}[_0x35dbeb(0x176)](..._0x1867f){}[_0x35dbeb(0x16e)](..._0x412a74){}[_0x35dbeb(0x165)](_0x504ab4){}['onQRCodeSessionFailed'](..._0x5e97a9){}['onLoginFailed'](..._0x314126){}[_0x35dbeb(0x170)](..._0x5df9d6){}[_0x35dbeb(0x172)](..._0x85d898){}[_0x35dbeb(0x175)](..._0x2391e4){}[_0x35dbeb(0x163)](..._0x1c9e95){}[_0x35dbeb(0x16c)](..._0x5e402b){}['OnConfirmUnusualDeviceFailed'](..._0x342488){}[_0x35dbeb(0x162)](..._0x1f859c){}[_0x35dbeb(0x166)](..._0x6d0900){}} \ 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 76476f8a..459e18b1 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x4476(){var _0xc9feb9=['onMsgDelete','3393176ewYWeB','onRecvS2CMsg','5930845lBcKQF','onBroadcastHelperDownloadComplete','onRecvMsg','onEmojiResourceUpdate','onMsgAbstractUpdate','onMsgSecurityNotify','1641CaQdpO','onFileMsgCome','onHitRelatedEmojiResult','7DTXOeg','390184jLtoqD','onHitEmojiKeywordResult','onUnreadCntAfterFirstView','onGuildMsgAbFlagChanged','onGroupTransferInfoAdd','onSysMsgNotification','onRedTouchChanged','onGroupFileInfoAdd','onFeedEventUpdate','onRichMediaProgerssUpdate','onUserSecQualityChanged','onRecvOnlineFileMsg','onUserOnlineStatusChanged','onHitCsRelatedEmojiResult','onUserTabStatusChanged','onGroupGuildUpdate','onGuildInteractiveUpdate','onFirstViewGroupGuildMapping','onLineDev','onInputStatusPush','onContactUnreadCntUpdate','onLogLevelChanged','5222214pXVBEh','onKickedOffLine','onTempChatInfoUpdate','onRecvMsgSvrRspTransInfo','onChannelFreqLimitInfoUpdate','onMsgInfoListUpdate','onMsgWithRichLinkInfoUpdate','onSearchGroupFileInfoUpdate','onMsgSettingUpdate','onRecvSysMsg','onRichMediaUploadComplete','onNtMsgSyncEnd','onReadFeedEventUpdate','2908nuIeyj','onRecvUDCFlag','onMsgQRCodeStatusChanged','835046OSqyUw','onRecvGroupGuildFlag','onBroadcastHelperProgerssUpdate','onMsgRecall','onlineStatusBigIconDownloadPush','onAddSendMsg','onMsgInfoListAdd','onFirstViewDirectMsgUpdate','onlineStatusSmallIconDownloadPush','onRichMediaDownloadComplete','onMsgBoxChanged','7460358ZYWTho'];_0x4476=function(){return _0xc9feb9;};return _0x4476();}var _0x3f9196=_0x5e2c;(function(_0x4b57f6,_0x169fcb){var _0x50f656=_0x5e2c,_0x5b50e8=_0x4b57f6();while(!![]){try{var _0x4437d2=-parseInt(_0x50f656(0xbf))/0x1+-parseInt(_0x50f656(0x99))/0x2+parseInt(_0x50f656(0x95))/0x3*(parseInt(_0x50f656(0xbc))/0x4)+parseInt(_0x50f656(0xce))/0x5+parseInt(_0x50f656(0xca))/0x6+-parseInt(_0x50f656(0x98))/0x7*(parseInt(_0x50f656(0xcc))/0x8)+-parseInt(_0x50f656(0xaf))/0x9;if(_0x4437d2===_0x169fcb)break;else _0x5b50e8['push'](_0x5b50e8['shift']());}catch(_0x1912ea){_0x5b50e8['push'](_0x5b50e8['shift']());}}}(_0x4476,0xc187c));function _0x5e2c(_0x13c851,_0x309288){var _0x44766f=_0x4476();return _0x5e2c=function(_0x5e2c45,_0x3362f5){_0x5e2c45=_0x5e2c45-0x95;var _0x2dba9f=_0x44766f[_0x5e2c45];return _0x2dba9f;},_0x5e2c(_0x13c851,_0x309288);}export class MsgListener{[_0x3f9196(0xc4)](_0x3da729){}[_0x3f9196(0xcf)](_0x2eeb99){}['onBroadcastHelperProgressUpdate'](_0x16acf8){}[_0x3f9196(0xb3)](_0x1ca0fb,_0x9d9b37,_0x4138e2){}[_0x3f9196(0xad)](_0xcc06eb){}['onCustomWithdrawConfigUpdate'](_0x3c3f62){}['onDraftUpdate'](_0x26461d,_0x360f00,_0x28f9b8){}['onEmojiDownloadComplete'](_0x4fe085){}[_0x3f9196(0xd1)](_0x20a00f){}[_0x3f9196(0xa1)](_0x2e565a){}[_0x3f9196(0x96)](_0x1652d3){}[_0x3f9196(0xc6)](_0x5829a0){}[_0x3f9196(0xaa)](_0x1a21ef){}['onGrabPasswordRedBag'](_0x9b5faa,_0x1ecbf5,_0xd1eddf,_0x42c185,_0x27b67e){}[_0x3f9196(0xa0)](_0x50fa0e){}['onGroupFileInfoUpdate'](_0x16113b){}[_0x3f9196(0xa8)](_0x3973dd){}[_0x3f9196(0x9d)](_0x1da2e4){}['onGroupTransferInfoUpdate'](_0x26ccf7){}[_0x3f9196(0xa9)](_0x4a3579){}[_0x3f9196(0x9c)](_0x19eb88){}['onGuildNotificationAbstractUpdate'](_0x531eb5){}[_0x3f9196(0xa6)](_0x4e78be){}[_0x3f9196(0x9a)](_0x115d04){}[_0x3f9196(0x97)](_0x146ac7){}['onImportOldDbProgressUpdate'](_0x4de19c){}[_0x3f9196(0xac)](_0x2f0407){}[_0x3f9196(0xb0)](_0xf15c99){}[_0x3f9196(0xab)](_0x53b6c3){}[_0x3f9196(0xae)](_0x37701e){}[_0x3f9196(0xd2)](_0x453a37){}[_0x3f9196(0xc9)](_0x19d918){}[_0x3f9196(0xcb)](_0x443534,_0x1e3d10){}['onMsgEventListUpdate'](_0x155151){}[_0x3f9196(0xc5)](_0x4b6228){}[_0x3f9196(0xb4)](_0x194cf8){}[_0x3f9196(0xbe)](_0x2dc5bf){}[_0x3f9196(0xc2)](_0xf29d42,_0x1b06ea,_0x17a05f){}[_0x3f9196(0xd3)](_0x601da2){}[_0x3f9196(0xb7)](_0x5e8c05){}['onNtFirstViewMsgSyncEnd'](){}[_0x3f9196(0xba)](){}['onNtMsgSyncStart'](){}[_0x3f9196(0xbb)](_0x53e8c4){}[_0x3f9196(0xc0)](_0x105cee){}[_0x3f9196(0xd0)](_0x23f130){}[_0x3f9196(0xb2)](_0x103ae2,_0x86c4a8,_0x955f3d,_0x56d907,_0x2fa73e,_0x3328c3){}[_0x3f9196(0xa4)](_0x47df39){}[_0x3f9196(0xcd)](_0x54b04a){}[_0x3f9196(0xb8)](_0x3108f8){}[_0x3f9196(0xbd)](_0x29efb4){}[_0x3f9196(0xc8)](_0x3ca8dd){}[_0x3f9196(0xa2)](_0x211d2e){}[_0x3f9196(0xb9)](_0x1d77f5){}[_0x3f9196(0xb6)](_0x53d8b3){}['onSendMsgError'](_0x4bfc5b,_0x4856db,_0x310331,_0x1c2e7d){}[_0x3f9196(0x9e)](_0x14b468,_0x59f094,_0x3a1e60,_0x1388b7){}[_0x3f9196(0xb1)](_0x1de631){}[_0x3f9196(0x9b)](_0x415ecc){}['onUnreadCntUpdate'](_0x3b97bf){}['onUserChannelTabStatusChanged'](_0x1e89dc){}[_0x3f9196(0xa5)](_0x45c596){}[_0x3f9196(0xa7)](_0x3a57d2){}[_0x3f9196(0xc3)](_0x1e8b6b,_0x53f039,_0x2c0de9){}[_0x3f9196(0xc7)](_0x32bff5,_0x2f4d69,_0x801375){}[_0x3f9196(0xa3)](..._0x5b3c27){}[_0x3f9196(0xb5)](..._0x259e3d){}[_0x3f9196(0x9f)](..._0x3f4bbe){}[_0x3f9196(0xc1)](..._0x150953){}} \ No newline at end of file +var _0x5efc55=_0x1f98;function _0x1f98(_0x29e6ef,_0x5b2fa6){var _0x473f76=_0x473f();return _0x1f98=function(_0x1f989b,_0x4e88b9){_0x1f989b=_0x1f989b-0x128;var _0x348390=_0x473f76[_0x1f989b];return _0x348390;},_0x1f98(_0x29e6ef,_0x5b2fa6);}function _0x473f(){var _0x1fa2e4=['onFirstViewGroupGuildMapping','onFileMsgCome','574240TeksZZ','609726XEmlkG','onRecvOnlineFileMsg','onMsgWithRichLinkInfoUpdate','onGroupTransferInfoAdd','onFeedEventUpdate','onMsgAbstractUpdate','onSysMsgNotification','onMsgRecall','onCustomWithdrawConfigUpdate','onMsgSettingUpdate','onlineStatusSmallIconDownloadPush','onDraftUpdate','onGroupGuildUpdate','3238568flkBsr','224926kurWNu','onRecvS2CMsg','onRichMediaDownloadComplete','1990gFSkCi','onMsgBoxChanged','onEmojiDownloadComplete','onGroupFileInfoUpdate','onUnreadCntAfterFirstView','onRecvSysMsg','onUserSecQualityChanged','21yiXIUM','4176MANnsc','onUnreadCntUpdate','onMsgDelete','onBroadcastHelperDownloadComplete','onGuildInteractiveUpdate','onUserTabStatusChanged','onGuildMsgAbFlagChanged','onlineStatusBigIconDownloadPush','onMsgSecurityNotify','onRedTouchChanged','onImportOldDbProgressUpdate','onHitEmojiKeywordResult','onInputStatusPush','18BBaZbN','onLineDev','onGroupFileInfoAdd','onMsgInfoListAdd','onNtMsgSyncStart','10161880FAciTq','onEmojiResourceUpdate','onRecvMsgSvrRspTransInfo','onNtFirstViewMsgSyncEnd','onHitRelatedEmojiResult','onLogLevelChanged','onRecvMsg','477972iMAkmf','onMsgInfoListUpdate'];_0x473f=function(){return _0x1fa2e4;};return _0x473f();}(function(_0x3f987d,_0x3216ab){var _0x339ec4=_0x1f98,_0x5e8a67=_0x3f987d();while(!![]){try{var _0xe78358=parseInt(_0x339ec4(0x157))/0x1+parseInt(_0x339ec4(0x12f))/0x2+-parseInt(_0x339ec4(0x153))/0x3+parseInt(_0x339ec4(0x13a))/0x4*(parseInt(_0x339ec4(0x132))/0x5)+parseInt(_0x339ec4(0x158))/0x6*(-parseInt(_0x339ec4(0x139))/0x7)+parseInt(_0x339ec4(0x12e))/0x8*(parseInt(_0x339ec4(0x147))/0x9)+-parseInt(_0x339ec4(0x14c))/0xa;if(_0xe78358===_0x3216ab)break;else _0x5e8a67['push'](_0x5e8a67['shift']());}catch(_0x1f13c3){_0x5e8a67['push'](_0x5e8a67['shift']());}}}(_0x473f,0x6957a));export class MsgListener{['onAddSendMsg'](_0x340d57){}[_0x5efc55(0x13d)](_0x21bc54){}['onBroadcastHelperProgressUpdate'](_0x2897d6){}['onChannelFreqLimitInfoUpdate'](_0x23b0c9,_0x44b9b5,_0x3fee7b){}['onContactUnreadCntUpdate'](_0x3f5ab8){}[_0x5efc55(0x129)](_0x314df4){}[_0x5efc55(0x12c)](_0xff533a,_0x5c09a6,_0x3d3c48){}[_0x5efc55(0x134)](_0x28d81e){}[_0x5efc55(0x14d)](_0x1b7c2c){}[_0x5efc55(0x15c)](_0x3adf6a){}[_0x5efc55(0x156)](_0x18a49d){}['onFirstViewDirectMsgUpdate'](_0x3927f9){}[_0x5efc55(0x155)](_0x274568){}['onGrabPasswordRedBag'](_0x42c744,_0x4e7aca,_0x3124d4,_0xc47d12,_0xa00366){}[_0x5efc55(0x149)](_0x57aa41){}[_0x5efc55(0x135)](_0x4c664a){}[_0x5efc55(0x12d)](_0x3753fb){}[_0x5efc55(0x15b)](_0x61abd9){}['onGroupTransferInfoUpdate'](_0x1f17fc){}[_0x5efc55(0x13e)](_0x29e296){}[_0x5efc55(0x140)](_0x4b4c0e){}['onGuildNotificationAbstractUpdate'](_0x412881){}['onHitCsRelatedEmojiResult'](_0x74fe78){}[_0x5efc55(0x145)](_0x167da5){}[_0x5efc55(0x150)](_0x1e2166){}[_0x5efc55(0x144)](_0x247a84){}[_0x5efc55(0x146)](_0x1d64b0){}['onKickedOffLine'](_0x1d75c8){}[_0x5efc55(0x148)](_0x38b6ea){}[_0x5efc55(0x151)](_0x321552){}[_0x5efc55(0x15d)](_0x4788cd){}[_0x5efc55(0x133)](_0x5c6f7e){}[_0x5efc55(0x13c)](_0x22ccdd,_0x5dd45d){}['onMsgEventListUpdate'](_0x5caa7a){}[_0x5efc55(0x14a)](_0x4e00bf){}[_0x5efc55(0x154)](_0x4af7d5){}['onMsgQRCodeStatusChanged'](_0x507e88){}[_0x5efc55(0x128)](_0x13647c,_0x1e4391,_0x2a08fd){}[_0x5efc55(0x142)](_0xbf6375){}[_0x5efc55(0x12a)](_0x59995d){}[_0x5efc55(0x14f)](){}['onNtMsgSyncEnd'](){}[_0x5efc55(0x14b)](){}['onReadFeedEventUpdate'](_0xbbc99c){}['onRecvGroupGuildFlag'](_0x1b0c12){}[_0x5efc55(0x152)](_0x819725){}[_0x5efc55(0x14e)](_0x26800d,_0xd365e8,_0x169c7f,_0x22c260,_0x3f7002,_0x134336){}[_0x5efc55(0x159)](_0x6bb65a){}[_0x5efc55(0x130)](_0x1a334a){}[_0x5efc55(0x137)](_0x52c9ee){}['onRecvUDCFlag'](_0x58f4bf){}[_0x5efc55(0x131)](_0x1ba648){}['onRichMediaProgerssUpdate'](_0x1cd66d){}['onRichMediaUploadComplete'](_0x31aaea){}['onSearchGroupFileInfoUpdate'](_0x56c624){}['onSendMsgError'](_0x5e649a,_0x2d10c6,_0x144e83,_0x5be97e){}[_0x5efc55(0x15e)](_0x599320,_0x24e131,_0x4b90f1,_0x3e71e9){}['onTempChatInfoUpdate'](_0x2b8fd1){}[_0x5efc55(0x136)](_0x63908f){}[_0x5efc55(0x13b)](_0x16d872){}['onUserChannelTabStatusChanged'](_0x148646){}['onUserOnlineStatusChanged'](_0x2e26fd){}[_0x5efc55(0x13f)](_0x37c691){}[_0x5efc55(0x141)](_0xbc0ece,_0x213bac,_0x1b0374){}[_0x5efc55(0x12b)](_0x2fdcc3,_0x149636,_0x1f970a){}[_0x5efc55(0x138)](..._0x23c60a){}[_0x5efc55(0x15a)](..._0x40eeee){}[_0x5efc55(0x143)](..._0x2c333b){}['onBroadcastHelperProgerssUpdate'](..._0x4b19c5){}} \ 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 bdf92234..c6669105 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x2d5b(){var _0x36e056=['1329643NVRLXu','onStrangerRemarkChanged','200DtBSNG','36abziIe','558207WykoDg','onProfileSimpleChanged','205RBNlcK','onSelfStatusChanged','3102408sPooAx','1391916xtKvkJ','22240GsvPFO','2878htBqfO','297580jLgDWh'];_0x2d5b=function(){return _0x36e056;};return _0x2d5b();}function _0x37d5(_0x5e1725,_0x25625b){var _0x2d5bb6=_0x2d5b();return _0x37d5=function(_0x37d5eb,_0x31d2b7){_0x37d5eb=_0x37d5eb-0x1e6;var _0x8eac36=_0x2d5bb6[_0x37d5eb];return _0x8eac36;},_0x37d5(_0x5e1725,_0x25625b);}var _0x180e42=_0x37d5;(function(_0x414d8d,_0x58a6b3){var _0x507d57=_0x37d5,_0x2ac258=_0x414d8d();while(!![]){try{var _0x2e795f=parseInt(_0x507d57(0x1f0))/0x1*(-parseInt(_0x507d57(0x1e8))/0x2)+parseInt(_0x507d57(0x1ee))/0x3+parseInt(_0x507d57(0x1e7))/0x4*(parseInt(_0x507d57(0x1ec))/0x5)+-parseInt(_0x507d57(0x1e6))/0x6+-parseInt(_0x507d57(0x1ea))/0x7+parseInt(_0x507d57(0x1f2))/0x8+parseInt(_0x507d57(0x1ed))/0x9*(parseInt(_0x507d57(0x1e9))/0xa);if(_0x2e795f===_0x58a6b3)break;else _0x2ac258['push'](_0x2ac258['shift']());}catch(_0x37b52d){_0x2ac258['push'](_0x2ac258['shift']());}}}(_0x2d5b,0x306e4));export class ProfileListener{[_0x180e42(0x1ef)](..._0x1a27a1){}['onProfileDetailInfoChanged'](_0x35977f){}['onStatusUpdate'](..._0x103677){}[_0x180e42(0x1f1)](..._0x283124){}[_0x180e42(0x1eb)](..._0x128526){}} \ No newline at end of file +function _0x1e9e(){var _0xd354d9=['279344bXjOqh','onStrangerRemarkChanged','54768pYqOHz','6BRyPYX','onProfileSimpleChanged','6310115AgRUtg','1371802IEXZwf','6gEogHk','25aJcCwu','onStatusUpdate','10858990oKTPcu','onProfileDetailInfoChanged','821404RKaJjC','1863KswbNd','20706202cMPXJg'];_0x1e9e=function(){return _0xd354d9;};return _0x1e9e();}function _0x2f22(_0x1a476c,_0x3b695e){var _0x1e9e5d=_0x1e9e();return _0x2f22=function(_0x2f223b,_0x53c055){_0x2f223b=_0x2f223b-0x6f;var _0x26b5dd=_0x1e9e5d[_0x2f223b];return _0x26b5dd;},_0x2f22(_0x1a476c,_0x3b695e);}var _0x2cf302=_0x2f22;(function(_0xb23c07,_0x3feee8){var _0x235faa=_0x2f22,_0x1b03b6=_0xb23c07();while(!![]){try{var _0x252e12=-parseInt(_0x235faa(0x7c))/0x1+-parseInt(_0x235faa(0x73))/0x2*(parseInt(_0x235faa(0x74))/0x3)+-parseInt(_0x235faa(0x79))/0x4*(parseInt(_0x235faa(0x75))/0x5)+parseInt(_0x235faa(0x70))/0x6*(-parseInt(_0x235faa(0x72))/0x7)+-parseInt(_0x235faa(0x6f))/0x8*(-parseInt(_0x235faa(0x7a))/0x9)+parseInt(_0x235faa(0x77))/0xa+parseInt(_0x235faa(0x7b))/0xb;if(_0x252e12===_0x3feee8)break;else _0x1b03b6['push'](_0x1b03b6['shift']());}catch(_0x25d075){_0x1b03b6['push'](_0x1b03b6['shift']());}}}(_0x1e9e,0xc4ca9));export class ProfileListener{[_0x2cf302(0x71)](..._0x596c3c){}[_0x2cf302(0x78)](_0x311f65){}[_0x2cf302(0x76)](..._0x4910de){}['onSelfStatusChanged'](..._0x2415bf){}[_0x2cf302(0x7d)](..._0x391015){}} \ 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 2162f875..5fa15f8d 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x820039=_0x6c22;(function(_0x464b26,_0xd792ee){var _0x3e182e=_0x6c22,_0x5dae39=_0x464b26();while(!![]){try{var _0x3bdfc6=-parseInt(_0x3e182e(0x18d))/0x1+-parseInt(_0x3e182e(0x18e))/0x2+-parseInt(_0x3e182e(0x18c))/0x3+parseInt(_0x3e182e(0x187))/0x4*(parseInt(_0x3e182e(0x184))/0x5)+-parseInt(_0x3e182e(0x188))/0x6*(parseInt(_0x3e182e(0x18b))/0x7)+-parseInt(_0x3e182e(0x185))/0x8*(parseInt(_0x3e182e(0x18f))/0x9)+parseInt(_0x3e182e(0x189))/0xa;if(_0x3bdfc6===_0xd792ee)break;else _0x5dae39['push'](_0x5dae39['shift']());}catch(_0x435cfd){_0x5dae39['push'](_0x5dae39['shift']());}}}(_0x44cf,0x69e8a));function _0x6c22(_0x3c0dc3,_0x50fa86){var _0x44cfbe=_0x44cf();return _0x6c22=function(_0x6c22af,_0xcd85a3){_0x6c22af=_0x6c22af-0x184;var _0x253f5c=_0x44cfbe[_0x6c22af];return _0x253f5c;},_0x6c22(_0x3c0dc3,_0x50fa86);}function _0x44cf(){var _0x327dfc=['333216pRNvZE','1235542nEIZSF','2687679NrRChe','2555045fjYOyX','16SbIxxB','onRobotListChanged','4xJNjSN','12qaWNzC','23479760mgHCjw','onRobotFriendListChanged','1989540vRDnWL','925482Uuuyoa'];_0x44cf=function(){return _0x327dfc;};return _0x44cf();}export class KernelRobotListener{[_0x820039(0x18a)](..._0x2198dd){}[_0x820039(0x186)](..._0x46ade8){}['onRobotProfileChanged'](..._0x456928){}} \ No newline at end of file +function _0x2814(_0x4b60a3,_0x50dc43){var _0x37f5db=_0x37f5();return _0x2814=function(_0x281466,_0x297c8a){_0x281466=_0x281466-0xf0;var _0x490194=_0x37f5db[_0x281466];return _0x490194;},_0x2814(_0x4b60a3,_0x50dc43);}var _0x33329f=_0x2814;(function(_0x389486,_0x3a9423){var _0xe0f197=_0x2814,_0x45e983=_0x389486();while(!![]){try{var _0x3eadfe=parseInt(_0xe0f197(0xf2))/0x1*(parseInt(_0xe0f197(0xf8))/0x2)+parseInt(_0xe0f197(0xf0))/0x3*(-parseInt(_0xe0f197(0xf3))/0x4)+-parseInt(_0xe0f197(0xf7))/0x5+parseInt(_0xe0f197(0xfb))/0x6+parseInt(_0xe0f197(0xf6))/0x7+-parseInt(_0xe0f197(0xf1))/0x8+parseInt(_0xe0f197(0xf5))/0x9;if(_0x3eadfe===_0x3a9423)break;else _0x45e983['push'](_0x45e983['shift']());}catch(_0x491786){_0x45e983['push'](_0x45e983['shift']());}}}(_0x37f5,0xc9dee));export class KernelRobotListener{[_0x33329f(0xf4)](..._0x5f0737){}[_0x33329f(0xfa)](..._0x4bf031){}[_0x33329f(0xf9)](..._0x316566){}}function _0x37f5(){var _0x471680=['10852779CBZJQA','3306865ULjLKe','166qCjMvC','onRobotProfileChanged','onRobotListChanged','3631998fNXnSR','2238nuwwqW','1144440oDFaNH','6170PmziLg','5800jieqJG','onRobotFriendListChanged','406350UhFceb'];_0x37f5=function(){return _0x471680;};return _0x37f5();} \ 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 e9ec9fc3..3b40c8d5 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x5272e6=_0x1fbf;function _0x1fbf(_0x41a5b1,_0x906f95){var _0xc2dd83=_0xc2dd();return _0x1fbf=function(_0x1fbf32,_0x37f3b0){_0x1fbf32=_0x1fbf32-0x1a4;var _0x21d8a4=_0xc2dd83[_0x1fbf32];return _0x21d8a4;},_0x1fbf(_0x41a5b1,_0x906f95);}(function(_0x4126fd,_0x103a7a){var _0x35f063=_0x1fbf,_0x3a8267=_0x4126fd();while(!![]){try{var _0xe1aff6=parseInt(_0x35f063(0x1ad))/0x1*(parseInt(_0x35f063(0x1ac))/0x2)+parseInt(_0x35f063(0x1af))/0x3+parseInt(_0x35f063(0x1a9))/0x4+-parseInt(_0x35f063(0x1b0))/0x5+parseInt(_0x35f063(0x1ab))/0x6*(-parseInt(_0x35f063(0x1a8))/0x7)+parseInt(_0x35f063(0x1ae))/0x8+-parseInt(_0x35f063(0x1a6))/0x9;if(_0xe1aff6===_0x103a7a)break;else _0x3a8267['push'](_0x3a8267['shift']());}catch(_0x5698a6){_0x3a8267['push'](_0x3a8267['shift']());}}}(_0xc2dd,0xe2f9e));export class SessionListener{['onNTSessionCreate'](_0x5a6e54){}[_0x5272e6(0x1a5)](_0x1ef4ab){}['onSessionInitComplete'](_0xf2bb36){}[_0x5272e6(0x1a4)](_0x478551){}[_0x5272e6(0x1aa)](_0x1d6cdf){}[_0x5272e6(0x1a7)](_0x2f4483){}}function _0xc2dd(){var _0x160700=['386796iGCLnC','3346XOzKya','488WlTWYr','9388088PkEkyn','1226826YWMeTV','1817970dQgnYi','onOpentelemetryInit','onGProSessionCreate','6461199Fgkhva','onGetSelfTinyId','161VZaKRB','4380160WLbvSi','onUserOnlineResult'];_0xc2dd=function(){return _0x160700;};return _0xc2dd();} \ No newline at end of file +function _0x2f44(_0x49d5de,_0x4675b6){var _0x4f5b6a=_0x4f5b();return _0x2f44=function(_0x2f4437,_0x4c49bb){_0x2f4437=_0x2f4437-0x163;var _0x39250b=_0x4f5b6a[_0x2f4437];return _0x39250b;},_0x2f44(_0x49d5de,_0x4675b6);}var _0x619f54=_0x2f44;function _0x4f5b(){var _0x4af813=['3567033XjQBuY','7uTsyNC','125980laDdxt','onSessionInitComplete','onNTSessionCreate','onOpentelemetryInit','13njTGyX','50cRknOO','5036752HwGRHR','1658459crrISm','150jzIHgD','232toyMyn','6470556IUthYT','62803RVwHCK','4533TAQFlM','onUserOnlineResult','4GWTRAH'];_0x4f5b=function(){return _0x4af813;};return _0x4f5b();}(function(_0x3fd2f2,_0x50ce8b){var _0x17c3ff=_0x2f44,_0x845a4c=_0x3fd2f2();while(!![]){try{var _0x4e816a=-parseInt(_0x17c3ff(0x16b))/0x1*(parseInt(_0x17c3ff(0x16e))/0x2)+parseInt(_0x17c3ff(0x16c))/0x3*(-parseInt(_0x17c3ff(0x169))/0x4)+parseInt(_0x17c3ff(0x171))/0x5*(parseInt(_0x17c3ff(0x168))/0x6)+-parseInt(_0x17c3ff(0x170))/0x7*(parseInt(_0x17c3ff(0x166))/0x8)+parseInt(_0x17c3ff(0x16f))/0x9+-parseInt(_0x17c3ff(0x165))/0xa*(-parseInt(_0x17c3ff(0x167))/0xb)+-parseInt(_0x17c3ff(0x16a))/0xc*(parseInt(_0x17c3ff(0x164))/0xd);if(_0x4e816a===_0x50ce8b)break;else _0x845a4c['push'](_0x845a4c['shift']());}catch(_0x42af5f){_0x845a4c['push'](_0x845a4c['shift']());}}}(_0x4f5b,0x612cf));export class SessionListener{[_0x619f54(0x173)](_0x251d84){}['onGProSessionCreate'](_0x814b73){}[_0x619f54(0x172)](_0x3c55f2){}[_0x619f54(0x163)](_0x13d3e7){}[_0x619f54(0x16d)](_0x330456){}['onGetSelfTinyId'](_0x1b0e7e){}} \ 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 bb7dbcc4..bfa06425 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x24980f=_0x2479;(function(_0x42c19b,_0x12ed17){var _0x1e8336=_0x2479,_0x44da1b=_0x42c19b();while(!![]){try{var _0x33dd55=parseInt(_0x1e8336(0x13e))/0x1*(-parseInt(_0x1e8336(0x140))/0x2)+-parseInt(_0x1e8336(0x137))/0x3*(parseInt(_0x1e8336(0x13d))/0x4)+-parseInt(_0x1e8336(0x136))/0x5*(parseInt(_0x1e8336(0x13c))/0x6)+parseInt(_0x1e8336(0x133))/0x7+parseInt(_0x1e8336(0x134))/0x8*(parseInt(_0x1e8336(0x142))/0x9)+-parseInt(_0x1e8336(0x13b))/0xa+-parseInt(_0x1e8336(0x141))/0xb*(-parseInt(_0x1e8336(0x13a))/0xc);if(_0x33dd55===_0x12ed17)break;else _0x44da1b['push'](_0x44da1b['shift']());}catch(_0x4138be){_0x44da1b['push'](_0x44da1b['shift']());}}}(_0x1164,0x2b479));function _0x2479(_0x1140fa,_0x3669dd){var _0x11646a=_0x1164();return _0x2479=function(_0x247974,_0x8c5140){_0x247974=_0x247974-0x133;var _0x1ad14d=_0x11646a[_0x247974];return _0x1ad14d;},_0x2479(_0x1140fa,_0x3669dd);}export class StorageCleanListener{[_0x24980f(0x138)](_0x4592ef){}[_0x24980f(0x139)](_0x2d5a98){}[_0x24980f(0x135)](_0x1f7e23){}['onFinishScan'](_0x30468e){}[_0x24980f(0x13f)](_0x201dd9){}}function _0x1164(){var _0x123e2c=['onCleanCacheStorageChanged','5dFwfKx','696xxrszH','onCleanCacheProgressChanged','onScanCacheProgressChanged','60uyOXOi','2164980hyAPnv','638382JYzVjx','2116GnfUSd','1pATkBY','onChatCleanDone','607506AKUNjp','1841939zJtmWi','9tmNHvv','599963mXZUOS','29560FcllpC'];_0x1164=function(){return _0x123e2c;};return _0x1164();} \ No newline at end of file +function _0x379b(_0x5d5d55,_0x324a79){var _0x50686b=_0x5068();return _0x379b=function(_0x379b6f,_0x4c62a9){_0x379b6f=_0x379b6f-0x82;var _0x1a0908=_0x50686b[_0x379b6f];return _0x1a0908;},_0x379b(_0x5d5d55,_0x324a79);}var _0x163422=_0x379b;(function(_0x4c9de8,_0x449f4c){var _0x2fe582=_0x379b,_0x387a16=_0x4c9de8();while(!![]){try{var _0x2dc803=-parseInt(_0x2fe582(0x82))/0x1*(parseInt(_0x2fe582(0x8d))/0x2)+-parseInt(_0x2fe582(0x83))/0x3+-parseInt(_0x2fe582(0x8b))/0x4+parseInt(_0x2fe582(0x84))/0x5*(-parseInt(_0x2fe582(0x8e))/0x6)+parseInt(_0x2fe582(0x85))/0x7+-parseInt(_0x2fe582(0x87))/0x8*(-parseInt(_0x2fe582(0x86))/0x9)+parseInt(_0x2fe582(0x89))/0xa;if(_0x2dc803===_0x449f4c)break;else _0x387a16['push'](_0x387a16['shift']());}catch(_0x36bdb2){_0x387a16['push'](_0x387a16['shift']());}}}(_0x5068,0xb38de));export class StorageCleanListener{[_0x163422(0x8c)](_0x113603){}[_0x163422(0x8f)](_0x250527){}[_0x163422(0x88)](_0x46ef5){}['onFinishScan'](_0x21ba95){}[_0x163422(0x8a)](_0x409ad5){}}function _0x5068(){var _0x5616df=['onScanCacheProgressChanged','6OnnOMs','983481VzfFJl','10FdtDyd','7277984UrDWKe','1521bNkzdn','12328RQiELe','onCleanCacheStorageChanged','22514860tLcDce','onChatCleanDone','1984672fmyKLL','onCleanCacheProgressChanged','413302KfZMcK','2256816nemQCY'];_0x5068=function(){return _0x5616df;};return _0x5068();} \ 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 07b83cab..466ad611 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x5001cc,_0x233d31){var _0x492ac2=_0x3c9b,_0x400e79=_0x5001cc();while(!![]){try{var _0x13832e=parseInt(_0x492ac2(0x1af))/0x1*(-parseInt(_0x492ac2(0x1ab))/0x2)+-parseInt(_0x492ac2(0x1ae))/0x3+-parseInt(_0x492ac2(0x1ac))/0x4*(-parseInt(_0x492ac2(0x1b0))/0x5)+parseInt(_0x492ac2(0x1b1))/0x6*(parseInt(_0x492ac2(0x1a8))/0x7)+-parseInt(_0x492ac2(0x1b2))/0x8*(-parseInt(_0x492ac2(0x1aa))/0x9)+-parseInt(_0x492ac2(0x1a9))/0xa+-parseInt(_0x492ac2(0x1ad))/0xb*(-parseInt(_0x492ac2(0x1b3))/0xc);if(_0x13832e===_0x233d31)break;else _0x400e79['push'](_0x400e79['shift']());}catch(_0x187373){_0x400e79['push'](_0x400e79['shift']());}}}(_0x3b72,0x89a8e));export*from'./NodeIKernelSessionListener';function _0x3b72(){var _0x381cc2=['2guLbBU','8HOJTsK','180257celPEt','2136021Arfmkn','314569wDLBxF','111075aoQSXa','186AAVVzb','88AryhiP','708wPYkPC','178661UUHfFr','4780370IEERwZ','217629FXCxIp'];_0x3b72=function(){return _0x381cc2;};return _0x3b72();}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x3c9b(_0x7f5309,_0x113802){var _0x3b72eb=_0x3b72();return _0x3c9b=function(_0x3c9b04,_0x1f6fd6){_0x3c9b04=_0x3c9b04-0x1a8;var _0xd154bc=_0x3b72eb[_0x3c9b04];return _0xd154bc;},_0x3c9b(_0x7f5309,_0x113802);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x3a0460,_0x35036c){var _0x44e1d9=_0x3256,_0x5aafeb=_0x3a0460();while(!![]){try{var _0x37207c=-parseInt(_0x44e1d9(0x103))/0x1+parseInt(_0x44e1d9(0x108))/0x2+parseInt(_0x44e1d9(0x10a))/0x3*(parseInt(_0x44e1d9(0x107))/0x4)+parseInt(_0x44e1d9(0x106))/0x5+-parseInt(_0x44e1d9(0x104))/0x6+parseInt(_0x44e1d9(0x105))/0x7+parseInt(_0x44e1d9(0x109))/0x8*(-parseInt(_0x44e1d9(0x10b))/0x9);if(_0x37207c===_0x35036c)break;else _0x5aafeb['push'](_0x5aafeb['shift']());}catch(_0x1ef140){_0x5aafeb['push'](_0x5aafeb['shift']());}}}(_0x873b,0x4da44));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x873b(){var _0x46b761=['3679417SdfCXW','932635KZtGSW','295604tzKGYZ','480114wWBlky','109304jFSNgO','21XevVMl','423KkeWZP','338315qtGxgW','1026156UpUexc'];_0x873b=function(){return _0x46b761;};return _0x873b();}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x3256(_0xa1ef11,_0x3fceeb){var _0x873b1=_0x873b();return _0x3256=function(_0x32561c,_0x375d8d){_0x32561c=_0x32561c-0x103;var _0x591e6c=_0x873b1[_0x32561c];return _0x591e6c;},_0x3256(_0xa1ef11,_0x3fceeb);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/NodeIKernelMsgService.d.ts b/src/core.lib/src/services/NodeIKernelMsgService.d.ts index 0c121f20..6f934dce 100644 --- a/src/core.lib/src/services/NodeIKernelMsgService.d.ts +++ b/src/core.lib/src/services/NodeIKernelMsgService.d.ts @@ -76,8 +76,12 @@ export interface NodeIKernelMsgService { getMsgsWithMsgTimeAndClientSeqForC2C(...args: unknown[]): unknown; getMsgsWithStatus(...args: unknown[]): unknown; getMsgsBySeqRange(...args: unknown[]): unknown; - getMsgsBySeqAndCount(...args: unknown[]): unknown; - getMsgsByMsgId(...args: unknown[]): unknown; + getMsgsBySeqAndCount(peer: Peer, seq: string, count: number, desc: boolean, unknownArg: boolean): Promise; + getMsgsByMsgId(peer: Peer, ids: string[]): Promise; getRecallMsgsByMsgId(...args: unknown[]): unknown; getMsgsBySeqList(...args: unknown[]): unknown; getSingleMsg(...args: unknown[]): unknown; diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 75a51d60..a95056d3 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x361e(_0x315603,_0x51952b){var _0x221524=_0x2215();return _0x361e=function(_0x361e94,_0x2f3d00){_0x361e94=_0x361e94-0x14c;var _0x1d913c=_0x221524[_0x361e94];return _0x1d913c;},_0x361e(_0x315603,_0x51952b);}(function(_0x54fb50,_0x5b866c){var _0x26f199=_0x361e,_0x117e99=_0x54fb50();while(!![]){try{var _0x19a00b=parseInt(_0x26f199(0x150))/0x1+parseInt(_0x26f199(0x151))/0x2+-parseInt(_0x26f199(0x152))/0x3+parseInt(_0x26f199(0x14d))/0x4+-parseInt(_0x26f199(0x14e))/0x5+parseInt(_0x26f199(0x14c))/0x6+-parseInt(_0x26f199(0x14f))/0x7;if(_0x19a00b===_0x5b866c)break;else _0x117e99['push'](_0x117e99['shift']());}catch(_0x1d73cc){_0x117e99['push'](_0x117e99['shift']());}}}(_0x2215,0x7867f));export var GeneralCallResultStatus;function _0x2215(){var _0x5c7c93=['2014746DoAynC','3840700sQrgNg','2223280GqXGnm','8465303ZjGEKz','691398sTlWgR','1768028YfktgW','2172630hJtVCs'];_0x2215=function(){return _0x5c7c93;};return _0x2215();}(function(_0x2079dd){_0x2079dd[_0x2079dd['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x1eb81c,_0x1c15fd){var _0x312b6a=_0x3c5e,_0x4e62e6=_0x1eb81c();while(!![]){try{var _0xb7a822=parseInt(_0x312b6a(0x13d))/0x1+-parseInt(_0x312b6a(0x143))/0x2+-parseInt(_0x312b6a(0x13f))/0x3*(parseInt(_0x312b6a(0x142))/0x4)+parseInt(_0x312b6a(0x144))/0x5*(parseInt(_0x312b6a(0x140))/0x6)+parseInt(_0x312b6a(0x145))/0x7+parseInt(_0x312b6a(0x13e))/0x8+-parseInt(_0x312b6a(0x141))/0x9*(parseInt(_0x312b6a(0x146))/0xa);if(_0xb7a822===_0x1c15fd)break;else _0x4e62e6['push'](_0x4e62e6['shift']());}catch(_0x8bc644){_0x4e62e6['push'](_0x4e62e6['shift']());}}}(_0x33ec,0xf1efe));function _0x3c5e(_0x2d0be1,_0x4ea531){var _0x33ec06=_0x33ec();return _0x3c5e=function(_0x3c5ebb,_0x4a9c7d){_0x3c5ebb=_0x3c5ebb-0x13d;var _0x1b0ae5=_0x33ec06[_0x3c5ebb];return _0x1b0ae5;},_0x3c5e(_0x2d0be1,_0x4ea531);}function _0x33ec(){var _0xcae923=['4155iPgODk','6YDxcRT','11673ntqmcK','1440UKhyBL','3078906OThGEx','5928165kbcAHV','12673682mebDqc','22190TrOnSy','1807196XCQArG','8829720xOVejJ'];_0x33ec=function(){return _0xcae923;};return _0x33ec();}export var GeneralCallResultStatus;(function(_0x43f454){_0x43f454[_0x43f454['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 d0f90431..6cdd2817 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x84a061,_0x3b94a8){var _0x4d5b62=_0x4b40,_0x37a2c5=_0x84a061();while(!![]){try{var _0xfe6130=parseInt(_0x4d5b62(0xeb))/0x1+-parseInt(_0x4d5b62(0xea))/0x2+parseInt(_0x4d5b62(0xee))/0x3+parseInt(_0x4d5b62(0xf0))/0x4+-parseInt(_0x4d5b62(0xed))/0x5*(-parseInt(_0x4d5b62(0xec))/0x6)+-parseInt(_0x4d5b62(0xf2))/0x7*(parseInt(_0x4d5b62(0xf3))/0x8)+parseInt(_0x4d5b62(0xef))/0x9*(-parseInt(_0x4d5b62(0xf1))/0xa);if(_0xfe6130===_0x3b94a8)break;else _0x37a2c5['push'](_0x37a2c5['shift']());}catch(_0x56e40a){_0x37a2c5['push'](_0x37a2c5['shift']());}}}(_0x432a,0xdf304));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x432a(){var _0x4e8ed5=['150DXSKKz','28720pFEBJU','4031637joMDkR','3252897iRtDgg','3386268ZoSacr','80afVwwj','119chYyMi','33608LAfQRL','331150VqVgcJ','1708590RMLbKH'];_0x432a=function(){return _0x4e8ed5;};return _0x432a();}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';function _0x4b40(_0x3fbfdb,_0x23e566){var _0x432ad4=_0x432a();return _0x4b40=function(_0x4b401c,_0x1ed71a){_0x4b401c=_0x4b401c-0xea;var _0x250bee=_0x432ad4[_0x4b401c];return _0x250bee;},_0x4b40(_0x3fbfdb,_0x23e566);}export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file +(function(_0x6ad867,_0x3544e6){var _0x54db52=_0x34ae,_0x580efa=_0x6ad867();while(!![]){try{var _0x2a7984=-parseInt(_0x54db52(0x1d2))/0x1*(-parseInt(_0x54db52(0x1cd))/0x2)+-parseInt(_0x54db52(0x1cc))/0x3+-parseInt(_0x54db52(0x1d0))/0x4*(parseInt(_0x54db52(0x1cf))/0x5)+parseInt(_0x54db52(0x1ca))/0x6*(-parseInt(_0x54db52(0x1cb))/0x7)+-parseInt(_0x54db52(0x1d1))/0x8+-parseInt(_0x54db52(0x1ce))/0x9*(-parseInt(_0x54db52(0x1d3))/0xa)+parseInt(_0x54db52(0x1c9))/0xb;if(_0x2a7984===_0x3544e6)break;else _0x580efa['push'](_0x580efa['shift']());}catch(_0x359a05){_0x580efa['push'](_0x580efa['shift']());}}}(_0x34fe,0xb3311));export*from'./common';function _0x34fe(){var _0x41e949=['34uuYMCF','949527wFFDUq','10tGnPgb','1659424aEEYAL','10602552hJhjwA','41765alvrTB','110RhZbtF','36927055ifQhpM','2507778TwZlHL','21cAoYKO','3253962XCnYYr'];_0x34fe=function(){return _0x41e949;};return _0x34fe();}export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';function _0x34ae(_0x5672e4,_0x3b39b7){var _0x34fece=_0x34fe();return _0x34ae=function(_0x34ae6e,_0x7e40ea){_0x34ae6e=_0x34ae6e-0x1c9;var _0x4a45f6=_0x34fece[_0x34ae6e];return _0x4a45f6;},_0x34ae(_0x5672e4,_0x3b39b7);}export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index fadf08d4..1064f6af 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x5e2c2a,_0x490df7){const _0x4ac8ea=_0x39dd,_0x35f78d=_0x5e2c2a();while(!![]){try{const _0x42a1f7=parseInt(_0x4ac8ea(0x73))/0x1*(parseInt(_0x4ac8ea(0x7e))/0x2)+parseInt(_0x4ac8ea(0x6e))/0x3*(-parseInt(_0x4ac8ea(0x81))/0x4)+-parseInt(_0x4ac8ea(0x82))/0x5+-parseInt(_0x4ac8ea(0x80))/0x6+-parseInt(_0x4ac8ea(0x6d))/0x7*(-parseInt(_0x4ac8ea(0x7c))/0x8)+-parseInt(_0x4ac8ea(0x76))/0x9+parseInt(_0x4ac8ea(0x6f))/0xa;if(_0x42a1f7===_0x490df7)break;else _0x35f78d['push'](_0x35f78d['shift']());}catch(_0x19816b){_0x35f78d['push'](_0x35f78d['shift']());}}}(_0x4699,0xd3982));function _0x4699(){const _0x47569e=['temp','12hQrTAr','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','6741852QLbwDe','364jyuIdy','5993000lOIRaO','curVersion','112XQxkMf','41247RtMdzT','37760120IWbQMP','guid.txt','mkdirSync','join','51215pfhVJB','version','utf-8','11687139mfGdBg','readFileSync','writeFileSync','DazAY','yjAWK','NapCat','827680pCnKWE'];_0x4699=function(){return _0x47569e;};return _0x4699();}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x5c1d5f from'node:path';import _0x1f5cc8 from'node:fs';import{randomUUID}from'crypto';export let sessionConfig=null;function _0x39dd(_0x5d7b66,_0x6fdecf){const _0x46996e=_0x4699();return _0x39dd=function(_0x39dd4b,_0x425575){_0x39dd4b=_0x39dd4b-0x6d;let _0x5cdc6f=_0x46996e[_0x39dd4b];return _0x5cdc6f;},_0x39dd(_0x5d7b66,_0x6fdecf);}export function genSessionConfig(_0x17c1c6,_0x93206d,_0xb49ef4){const _0xe57240=_0x39dd,_0x58c186={'brgxC':_0xe57240(0x7b),'DazAY':_0xe57240(0x7d),'yjAWK':_0xe57240(0x75)},_0x5dc923=_0x5c1d5f['join'](_0xb49ef4,_0x58c186['brgxC'],_0x58c186[_0xe57240(0x79)]);_0x1f5cc8[_0xe57240(0x71)](_0x5dc923,{'recursive':!![]});const _0x3f7ac2=_0x5c1d5f[_0xe57240(0x72)](_0xb49ef4,_0x58c186['brgxC'],_0xe57240(0x70));let _0x5072d2=randomUUID();try{_0x5072d2=_0x1f5cc8[_0xe57240(0x77)](_0x5c1d5f[_0xe57240(0x72)](_0x3f7ac2),_0x58c186[_0xe57240(0x7a)]);}catch(_0x5ce339){_0x1f5cc8[_0xe57240(0x78)](_0x5c1d5f[_0xe57240(0x72)](_0x3f7ac2),_0x5072d2,_0x58c186[_0xe57240(0x7a)]);}const _0xc2a802={'selfUin':_0x17c1c6,'selfUid':_0x93206d,'desktopPathConfig':{'account_path':_0xb49ef4},'clientVer':qqVersionConfigInfo[_0xe57240(0x83)],'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':_0x5dc923,'deviceInfo':{'guid':_0x5072d2,'buildVer':qqPkgInfo[_0xe57240(0x74)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0xe57240(0x7f)};return sessionConfig=_0xc2a802,_0xc2a802;} \ No newline at end of file +(function(_0x454fb9,_0x4804b4){const _0x4bd3fb=_0x33f2,_0x1214c7=_0x454fb9();while(!![]){try{const _0x22260c=-parseInt(_0x4bd3fb(0xa8))/0x1*(parseInt(_0x4bd3fb(0xac))/0x2)+-parseInt(_0x4bd3fb(0xa9))/0x3*(-parseInt(_0x4bd3fb(0xb2))/0x4)+parseInt(_0x4bd3fb(0xaf))/0x5*(parseInt(_0x4bd3fb(0xb3))/0x6)+parseInt(_0x4bd3fb(0xb7))/0x7+-parseInt(_0x4bd3fb(0xa7))/0x8*(-parseInt(_0x4bd3fb(0xb6))/0x9)+parseInt(_0x4bd3fb(0xb1))/0xa+parseInt(_0x4bd3fb(0xbc))/0xb*(-parseInt(_0x4bd3fb(0xaa))/0xc);if(_0x22260c===_0x4804b4)break;else _0x1214c7['push'](_0x1214c7['shift']());}catch(_0x5221ff){_0x1214c7['push'](_0x1214c7['shift']());}}}(_0xa525,0x8e3b8));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';function _0x33f2(_0x5be23f,_0x39a1d9){const _0xa5256d=_0xa525();return _0x33f2=function(_0x33f2e7,_0x4e0e07){_0x33f2e7=_0x33f2e7-0xa4;let _0x2b6576=_0xa5256d[_0x33f2e7];return _0x2b6576;},_0x33f2(_0x5be23f,_0x39a1d9);}import _0x43efee from'node:path';function _0xa525(){const _0x544567=['4646060yyopir','1172tzhenz','162NWcdkO','idLht','NapCat','174969wihBuM','1358161rPcrkr','IMLzZ','rFccc','temp','guid.txt','55lUNcgf','bAkuQ','version','curVersion','join','136FiPhOX','396878dCxmZY','11463JYUmCc','3114084bALRBy','utf-8','2myFTyi','jgegH','mkdirSync','31170BmNJyp','readFileSync'];_0xa525=function(){return _0x544567;};return _0xa525();}import _0x138bda from'node:fs';import{randomUUID}from'crypto';export let sessionConfig=null;export function genSessionConfig(_0x2fd9e3,_0x5d44c7,_0x46be8c){const _0x2c98ae=_0x33f2,_0x27159e={'IMLzZ':_0x2c98ae(0xb5),'bAkuQ':_0x2c98ae(0xba),'jgegH':_0x2c98ae(0xbb),'rFccc':function(_0x31f6ad){return _0x31f6ad();},'idLht':_0x2c98ae(0xab),'llelP':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x897c34=_0x43efee[_0x2c98ae(0xa6)](_0x46be8c,_0x27159e['IMLzZ'],_0x27159e[_0x2c98ae(0xbd)]);_0x138bda[_0x2c98ae(0xae)](_0x897c34,{'recursive':!![]});const _0x1d2126=_0x43efee[_0x2c98ae(0xa6)](_0x46be8c,_0x27159e[_0x2c98ae(0xb8)],_0x27159e[_0x2c98ae(0xad)]);let _0x4c2e29=_0x27159e[_0x2c98ae(0xb9)](randomUUID);try{_0x4c2e29=_0x138bda[_0x2c98ae(0xb0)](_0x43efee[_0x2c98ae(0xa6)](_0x1d2126),_0x27159e[_0x2c98ae(0xb4)]);}catch(_0xd6792e){_0x138bda['writeFileSync'](_0x43efee[_0x2c98ae(0xa6)](_0x1d2126),_0x4c2e29,_0x27159e[_0x2c98ae(0xb4)]);}const _0x50b12e={'selfUin':_0x2fd9e3,'selfUid':_0x5d44c7,'desktopPathConfig':{'account_path':_0x46be8c},'clientVer':qqVersionConfigInfo[_0x2c98ae(0xa5)],'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':_0x897c34,'deviceInfo':{'guid':_0x4c2e29,'buildVer':qqPkgInfo[_0x2c98ae(0xa4)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x27159e['llelP']};return sessionConfig=_0x50b12e,_0x50b12e;} \ 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 60f20a5d..27253866 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x2c838f=_0x24b2;function _0x2690(){const _0x1799f8=['6139240EVzMKP','91EqTlZU','consoleLog','124FuiMwD','3akeYGU','fileLogLevel','52970cLONpy','8808WByxrd','join','9oHmTPI','227224uspUEa','17383wxYCMC','getConfigDir','66GQCDHW','23992KwcHgQ','224kFXHWx','consoleLogLevel','fileLog','INFO','15302NcohQz','15455GKfmaO'];_0x2690=function(){return _0x1799f8;};return _0x2690();}(function(_0x16d6f9,_0x2fe858){const _0x2921c9=_0x24b2,_0x5e4d4f=_0x16d6f9();while(!![]){try{const _0x33c7fd=-parseInt(_0x2921c9(0x17a))/0x1*(parseInt(_0x2921c9(0x172))/0x2)+-parseInt(_0x2921c9(0x173))/0x3*(-parseInt(_0x2921c9(0x179))/0x4)+parseInt(_0x2921c9(0x175))/0x5*(-parseInt(_0x2921c9(0x17c))/0x6)+-parseInt(_0x2921c9(0x17e))/0x7*(-parseInt(_0x2921c9(0x17d))/0x8)+-parseInt(_0x2921c9(0x178))/0x9*(-parseInt(_0x2921c9(0x16f))/0xa)+-parseInt(_0x2921c9(0x16e))/0xb*(-parseInt(_0x2921c9(0x176))/0xc)+-parseInt(_0x2921c9(0x170))/0xd*(parseInt(_0x2921c9(0x16d))/0xe);if(_0x33c7fd===_0x2fe858)break;else _0x5e4d4f['push'](_0x5e4d4f['shift']());}catch(_0x2d1fc0){_0x5e4d4f['push'](_0x5e4d4f['shift']());}}}(_0x2690,0x91845));import _0x16ad88 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x24b2(_0x24bd17,_0x53d7fc){const _0x26907a=_0x2690();return _0x24b2=function(_0x24b20b,_0x248a62){_0x24b20b=_0x24b20b-0x16b;let _0x3f934a=_0x26907a[_0x24b20b];return _0x3f934a;},_0x24b2(_0x24bd17,_0x53d7fc);}class Config extends ConfigBase{[_0x2c838f(0x16b)]=!![];[_0x2c838f(0x171)]=!![];[_0x2c838f(0x174)]=LogLevel['DEBUG'];[_0x2c838f(0x17f)]=LogLevel[_0x2c838f(0x16c)];constructor(){super();}['getConfigPath'](){const _0x3376fc=_0x2c838f;return _0x16ad88[_0x3376fc(0x177)](this[_0x3376fc(0x17b)](),'napcat_'+selfInfo['uin']+'.json');}}export const napCatConfig=new Config(); \ No newline at end of file +function _0x3213(_0x555b8d,_0x161f69){const _0x37cda9=_0x37cd();return _0x3213=function(_0x3213ab,_0x4bfd6e){_0x3213ab=_0x3213ab-0x1e3;let _0x5c9973=_0x37cda9[_0x3213ab];return _0x5c9973;},_0x3213(_0x555b8d,_0x161f69);}const _0x18aa09=_0x3213;(function(_0x4110a0,_0xc7bcfe){const _0x2239f5=_0x3213,_0xaa384f=_0x4110a0();while(!![]){try{const _0x569162=-parseInt(_0x2239f5(0x1f5))/0x1+-parseInt(_0x2239f5(0x1ef))/0x2*(-parseInt(_0x2239f5(0x1f0))/0x3)+-parseInt(_0x2239f5(0x1e7))/0x4*(-parseInt(_0x2239f5(0x1f1))/0x5)+parseInt(_0x2239f5(0x1ee))/0x6*(-parseInt(_0x2239f5(0x1e9))/0x7)+parseInt(_0x2239f5(0x1ea))/0x8*(-parseInt(_0x2239f5(0x1f2))/0x9)+parseInt(_0x2239f5(0x1ed))/0xa*(-parseInt(_0x2239f5(0x1e6))/0xb)+-parseInt(_0x2239f5(0x1f3))/0xc*(-parseInt(_0x2239f5(0x1eb))/0xd);if(_0x569162===_0xc7bcfe)break;else _0xaa384f['push'](_0xaa384f['shift']());}catch(_0xff6ea1){_0xaa384f['push'](_0xaa384f['shift']());}}}(_0x37cd,0x6aacd));import _0x2e00fd from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x18aa09(0x1e4)]=!![];['fileLogLevel']=LogLevel[_0x18aa09(0x1f6)];[_0x18aa09(0x1f4)]=LogLevel[_0x18aa09(0x1e5)];constructor(){super();}[_0x18aa09(0x1ec)](){const _0x37fd36=_0x18aa09;return _0x2e00fd['join'](this['getConfigDir'](),_0x37fd36(0x1e3)+selfInfo[_0x37fd36(0x1e8)]+'.json');}}function _0x37cd(){const _0x4848d4=['INFO','11dTEWFq','8wReOPp','uin','1119097cYrsdj','712808dumbGz','2066415gStxbb','getConfigPath','3279480kabkkP','12hbrMBv','2TZrSvW','1968378YyOQWi','2093755aucoyA','18bYEDtg','48hlPBAV','consoleLogLevel','866615XNiWBK','DEBUG','napcat_','consoleLog'];_0x37cd=function(){return _0x4848d4;};return _0x37cd();}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/db.d.ts b/src/core.lib/src/utils/db.d.ts new file mode 100644 index 00000000..478b3051 --- /dev/null +++ b/src/core.lib/src/utils/db.d.ts @@ -0,0 +1,43 @@ +import { ElementType, FileElement, PicElement, PttElement, RawMessage, VideoElement } from '../entities'; +import sqlite3 from 'sqlite3'; +type DBFile = { + name: string; + path: string; + url: string; + size: number; + uuid: string; + msgId: string; + elementId: string; + element: PicElement | VideoElement | FileElement | PttElement; + elementType: ElementType.PIC | ElementType.VIDEO | ElementType.FILE | ElementType.PTT; +}; +declare class DBUtilBase { + protected db: sqlite3.Database | undefined; + init(dbPath: string): Promise; + protected createTable(): void; + close(): void; +} +declare class DBUtil extends DBUtilBase { + private msgCache; + private globalMsgShortId; + constructor(); + init(dbPath: string): Promise; + protected createTable(): void; + private getCurrentMaxShortId; + private getMsg; + getMsgByShortId(shortId: number): Promise; + getMsgByLongId(longId: string): Promise; + getMsgBySeq(peerUid: string, seq: string): Promise; + addMsg(msg: RawMessage, update?: boolean): Promise; + updateMsg(msg: RawMessage): Promise; + addFileCache(file: DBFile): Promise; + private getFileCache; + getFileCacheByName(name: string): Promise; + getFileCacheByUuid(uuid: string): Promise; + updateFileCache(file: DBFile): Promise; + getReceivedTempUinMap(): Promise>; + getUidByTempUin(uid: string): Promise; + addTempUin(uin: string, uid: string): Promise; +} +export declare const dbUtil: DBUtil; +export {}; diff --git a/src/core.lib/src/utils/db.js b/src/core.lib/src/utils/db.js new file mode 100644 index 00000000..f9e3f358 --- /dev/null +++ b/src/core.lib/src/utils/db.js @@ -0,0 +1 @@ +const _0xe848a3=_0x4a0a;(function(_0x575935,_0x3e6854){const _0x101d5a=_0x4a0a,_0x3ec393=_0x575935();while(!![]){try{const _0x8c4c1c=parseInt(_0x101d5a(0xc9))/0x1*(-parseInt(_0x101d5a(0xf4))/0x2)+parseInt(_0x101d5a(0x91))/0x3+parseInt(_0x101d5a(0xdb))/0x4*(-parseInt(_0x101d5a(0xcc))/0x5)+-parseInt(_0x101d5a(0xb2))/0x6*(parseInt(_0x101d5a(0xe2))/0x7)+parseInt(_0x101d5a(0xd2))/0x8*(-parseInt(_0x101d5a(0xa1))/0x9)+parseInt(_0x101d5a(0xbc))/0xa+parseInt(_0x101d5a(0x103))/0xb;if(_0x8c4c1c===_0x3e6854)break;else _0x3ec393['push'](_0x3ec393['shift']());}catch(_0x2d62fb){_0x3ec393['push'](_0x3ec393['shift']());}}}(_0x18b0,0xe5745));import _0x119764 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0xf53ca5){const _0x5b46b5=_0x4a0a,_0x47f3a3={'yHbWQ':function(_0x4fa9f9,_0x268aed,_0x49ff59){return _0x4fa9f9(_0x268aed,_0x49ff59);},'sOtjd':_0x5b46b5(0xf1),'QTFWH':function(_0x2c157b,_0x32aaf6){return _0x2c157b(_0x32aaf6);},'DmbFU':function(_0x25ad57){return _0x25ad57();},'tKPMo':function(_0x327071,_0x3cdbf7){return _0x327071|_0x3cdbf7;}};if(this['db'])return;return new Promise((_0x5acd4d,_0x34f138)=>{const _0x3d96a3=_0x5b46b5;this['db']=new _0x119764[(_0x3d96a3(0xaa))](_0xf53ca5,_0x47f3a3[_0x3d96a3(0xdc)](_0x119764['OPEN_READWRITE'],_0x119764[_0x3d96a3(0xb8)]),_0x4017f4=>{const _0x22e385=_0x3d96a3;if(_0x4017f4){_0x47f3a3[_0x22e385(0x101)](logError,_0x47f3a3[_0x22e385(0xfd)],_0x4017f4),_0x47f3a3['QTFWH'](_0x34f138,_0x4017f4);return;}this[_0x22e385(0xc6)](),_0x47f3a3[_0x22e385(0xe5)](_0x5acd4d);});});}[_0xe848a3(0xc6)](){const _0x384ea2=_0xe848a3;throw new Error(_0x384ea2(0xce));}[_0xe848a3(0xc4)](){const _0x58f9d1=_0xe848a3;this['db']?.[_0x58f9d1(0xc4)]();}}function _0x18b0(){const _0x5499cf=['wKKlf','OPVMY','getFileCacheByName','wxRlc','path','BIXUu','QPbMT','OWUzf','getMsgByShortId','element','toString',',\x20短id:\x20','yQUFq','4715565GgHnQU','WcHXJ','pUVVK','then','uid','\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)','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','addTempUin','globalMsgShortId','TWtKc','WeUZy','VyoWt','forEach','\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)','dHltf','Could\x20not\x20create\x20table\x20msgs','4856814KUUTkx','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','LqqdX','hFwGB','SxAnY','getFileCache','记录消息到数据库,\x20消息长id:\x20','addFileCache','getUidByTempUin','Database','msgCache','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','uuid','parse','TrHYO','prepare','msgTime','161982PQGyWU','chatType','tbCMy','getMsgsByMsgId','VvaRD','kDkLT','OPEN_CREATE','ErRai','PYkzs','XBcpv','13393190WCnWZc','db\x20could\x20not\x20get\x20file\x20cache','stringify','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','dyJng','db\x20could\x20not\x20get\x20temp\x20uin\x20map','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','getCurrentMaxShortId','close','msgSeq','createTable','VSOBy','set','4lEDmOX','MxotL','ZAyDM','7853965bdhlFO','db\x20could\x20not\x20add\x20msg','Method\x20not\x20implemented.','msgId','mxHbk','name','16zWNXjY','init','Flsvx','getMsgByLongId','KEzRM','zPigP',',\x20msgId:\x20','errno','db\x20getMsgByLongId\x20error','4Qfvmqp','tKPMo','JevKb','stack','assign','YJxdP','\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)','476hGoLoM','SELECT\x20*\x20FROM\x20temp_uins','Uyfep','DmbFU','oxEhI','elementType','Could\x20not\x20create\x20table\x20files','now','updateFileCache','更新消息,\x20shortId:','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','url','bmiZE','has','Dritj','Could\x20not\x20connect\x20to\x20database','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','dfudv','40428bRPMxr','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','peerUid','getMsg','xlqOJ','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','maxId',',\x20seq:\x20','数据库中消息最大短id','sOtjd','catch','tHjQG','run','yHbWQ','updateMsg\x20db\x20error','28549488thWIen','elementId','JMwLi','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','get','getFileCacheByUuid','uin','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','updateMsg','db\x20could\x20not\x20update\x20file\x20cache','AsrtT','delete','KaXAg','getMsgBySeq'];_0x18b0=function(){return _0x5499cf;};return _0x18b0();}class DBUtil extends DBUtilBase{[_0xe848a3(0xab)]=new Map();[_0xe848a3(0x99)]=-0x7ffffff8;constructor(){const _0x2c5d03=_0xe848a3,_0x1aaa0b={'QPbMT':function(_0x36227a,_0x488f19){return _0x36227a(_0x488f19);},'TrHYO':function(_0x25043e,_0x49de81){return _0x25043e(_0x49de81);},'KaXAg':function(_0x1037ac,_0x1f0a5e){return _0x1037ac*_0x1f0a5e;},'hFwGB':function(_0x336168,_0x4c9648,_0x2b2905){return _0x336168(_0x4c9648,_0x2b2905);}};super();const _0x33f443=_0x1aaa0b['KaXAg'](_0x1aaa0b[_0x2c5d03(0x10f)](0x3e8,0x3c),0xa);_0x1aaa0b[_0x2c5d03(0xa4)](setInterval,()=>{const _0x418453=_0x2c5d03,_0x2e37db={'ErRai':function(_0x138284,_0x29f76e){return _0x138284>_0x29f76e;},'gwKCM':function(_0x57febf,_0x1a0f2a){return _0x57febf-_0x1a0f2a;},'zPigP':function(_0x26eff5,_0x3a5869){return _0x26eff5*_0x3a5869;},'Dritj':function(_0x5657cd,_0x44f09e){const _0x3d39fd=_0x4a0a;return _0x1aaa0b[_0x3d39fd(0x8a)](_0x5657cd,_0x44f09e);}};_0x1aaa0b[_0x418453(0xaf)](logDebug,'清理消息缓存'),this[_0x418453(0xab)][_0x418453(0x9d)]((_0xa0dd28,_0x105836)=>{const _0x3f0762=_0x418453;_0x2e37db[_0x3f0762(0xb9)](_0x2e37db['gwKCM'](Date[_0x3f0762(0xe9)](),_0x2e37db[_0x3f0762(0xd7)](_0x2e37db[_0x3f0762(0xf0)](parseInt,_0xa0dd28[_0x3f0762(0xb1)]),0x3e8)),_0x33f443)&&this[_0x3f0762(0xab)][_0x3f0762(0x10e)](_0x105836);});},_0x33f443);}async[_0xe848a3(0xd3)](_0x4663fc){const _0x902087=_0xe848a3;await super['init'](_0x4663fc),this['globalMsgShortId']=await this[_0x902087(0xc3)]();}['createTable'](){const _0x42c39c=_0xe848a3,_0x5b5dc0={'OPVMY':function(_0x497da3,_0x4e3ff9,_0x7bdaf1){return _0x497da3(_0x4e3ff9,_0x7bdaf1);},'JWNtx':_0x42c39c(0xa0),'ohdGb':_0x42c39c(0xe8),'kDkLT':'Could\x20not\x20create\x20table\x20temp_uins'},_0x40169b=_0x42c39c(0x96);this['db'][_0x42c39c(0x100)](_0x40169b,function(_0x15f794){const _0x43cdc8=_0x42c39c;_0x15f794&&_0x5b5dc0[_0x43cdc8(0x112)](logError,_0x5b5dc0['JWNtx'],_0x15f794[_0x43cdc8(0xde)]);});const _0x36147e=_0x42c39c(0x9e);this['db'][_0x42c39c(0x100)](_0x36147e,function(_0x522e23){_0x522e23&&logError(_0x5b5dc0['ohdGb'],_0x522e23);});const _0x4bc9fc=_0x42c39c(0xe1);this['db'][_0x42c39c(0x100)](_0x4bc9fc,function(_0x2cc3fd){const _0x5cd5be=_0x42c39c;_0x2cc3fd&&_0x5b5dc0[_0x5cd5be(0x112)](logError,_0x5b5dc0[_0x5cd5be(0xb7)],_0x2cc3fd);});}async['getCurrentMaxShortId'](){const _0x22b896=_0xe848a3,_0x907024={'dHltf':_0x22b896(0x97),'MxotL':function(_0x58ff5f,_0x183c34){return _0x58ff5f(_0x183c34);},'TWtKc':function(_0x27f33f,_0x3e2e25,_0xf31f0a){return _0x27f33f(_0x3e2e25,_0xf31f0a);},'AsrtT':_0x22b896(0xfc),'OWUzf':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x22bf3f,_0x6e3ad9)=>{const _0x4ee6fd=_0x22b896;this['db'][_0x4ee6fd(0x107)](_0x907024[_0x4ee6fd(0x8b)],(_0x3da268,_0x28c06c)=>{const _0x5f51e9=_0x4ee6fd;if(_0x3da268)return logDebug(_0x907024[_0x5f51e9(0x9f)],_0x3da268),_0x907024[_0x5f51e9(0xca)](_0x22bf3f,-0x7ffffff8);_0x907024[_0x5f51e9(0x9a)](logDebug,_0x907024[_0x5f51e9(0x10d)],_0x28c06c?.[_0x5f51e9(0xfa)]),_0x22bf3f(_0x28c06c?.[_0x5f51e9(0xfa)]??-0x7ffffff8);});});}async[_0xe848a3(0xf7)](_0xe5a304,_0x20494a){const _0x519945={'JMwLi':function(_0x20d68c,_0x3190ec,_0xb7594,_0x49d650,_0x5bfda6){return _0x20d68c(_0x3190ec,_0xb7594,_0x49d650,_0x5bfda6);},'xlqOJ':'Could\x20not\x20get\x20msg','tHjQG':function(_0x50b05b,_0x43e8ed){return _0x50b05b(_0x43e8ed);},'ixeXl':function(_0x2bc158,_0x131fff){return _0x2bc158(_0x131fff);}},_0x3095fe=this['db']['prepare'](_0xe5a304);return new Promise((_0x1ff180,_0x59ed84)=>{const _0x2a76e9={'Uyfep':function(_0x3efbc0,_0x577634){return _0x519945['ixeXl'](_0x3efbc0,_0x577634);},'lbEyC':function(_0x32a296,_0xe599ea){const _0x487fb0=_0x4a0a;return _0x519945[_0x487fb0(0xff)](_0x32a296,_0xe599ea);}};_0x3095fe['get'](..._0x20494a,(_0xf55974,_0x380410)=>{const _0x361776=_0x4a0a;if(_0xf55974)return _0x519945[_0x361776(0x105)](logError,_0x519945[_0x361776(0xf8)],_0xf55974,_0xe5a304,_0x20494a),_0x519945[_0x361776(0xff)](_0x1ff180,null);if(!_0x380410){_0x519945['ixeXl'](_0x1ff180,null);return;}const _0x132adb=_0x380410['longId'];NTQQMsgApi[_0x361776(0xb5)]({'peerUid':_0x380410[_0x361776(0xf6)],'chatType':_0x380410[_0x361776(0xb3)]},[_0x132adb])['then'](_0x2524cb=>{const _0x31b7a2=_0x361776,_0x98e5=_0x2524cb['msgList'][0x0];if(!_0x98e5){_0x2a76e9[_0x31b7a2(0xe4)](_0x1ff180,null);return;}_0x98e5['id']=_0x380410['shortId'],_0x2a76e9['Uyfep'](_0x1ff180,_0x98e5);})[_0x361776(0xfe)](_0x109df0=>{_0x2a76e9['lbEyC'](_0x1ff180,null);});});});}async[_0xe848a3(0x8c)](_0x40b180){const _0x1dddce=_0xe848a3,_0x55e982={'LqqdX':_0x1dddce(0xa2)};if(this[_0x1dddce(0xab)][_0x1dddce(0xef)](_0x40b180))return this['msgCache'][_0x1dddce(0x107)](_0x40b180);const _0x275410=_0x55e982[_0x1dddce(0xa3)];return this[_0x1dddce(0xf7)](_0x275410,[_0x40b180]);}async[_0xe848a3(0xd5)](_0x307970){const _0x1a426a=_0xe848a3,_0x4bbc0f={'Flsvx':_0x1a426a(0xf9)};if(this[_0x1a426a(0xab)][_0x1a426a(0xef)](_0x307970))return this[_0x1a426a(0xab)][_0x1a426a(0x107)](_0x307970);return this[_0x1a426a(0xf7)](_0x4bbc0f[_0x1a426a(0xd4)],[_0x307970]);}async[_0xe848a3(0x110)](_0x2c3671,_0x3875c5){const _0x29d1db=_0xe848a3,_0x3b656e={'bmiZE':_0x29d1db(0xac)},_0x3c1b32=_0x3b656e[_0x29d1db(0xee)];return this[_0x29d1db(0xf7)](_0x3c1b32,[_0x2c3671,_0x3875c5]);}async['addMsg'](_0x5d3912,_0x4a1eb2=!![]){const _0x3cfaf5=_0xe848a3,_0x13c6e7={'VvaRD':_0x3cfaf5(0xf2),'yQUFq':function(_0x89d6b4,_0x551d56){return _0x89d6b4===_0x551d56;},'ZAyDM':function(_0x41ee31,_0x353ce9,_0x236ff6){return _0x41ee31(_0x353ce9,_0x236ff6);},'WeUZy':_0x3cfaf5(0xcd),'mxHbk':function(_0x416251,_0x1e7c00){return _0x416251(_0x1e7c00);}},_0x2e9c34=await this[_0x3cfaf5(0xd5)](_0x5d3912[_0x3cfaf5(0xcf)]);if(_0x2e9c34){if(_0x4a1eb2)this['updateMsg'](_0x5d3912)[_0x3cfaf5(0x94)]();return _0x2e9c34['id'];}const _0x1776ee=this['db'][_0x3cfaf5(0xb0)](_0x3cfaf5(0xbf)),_0x20164f=++this['globalMsgShortId'];return _0x5d3912['id']=_0x20164f,_0x13c6e7[_0x3cfaf5(0xd0)](logDebug,_0x3cfaf5(0xa7)+_0x5d3912[_0x3cfaf5(0xcf)]+_0x3cfaf5(0x8f)+_0x5d3912['id']),this[_0x3cfaf5(0xab)][_0x3cfaf5(0xc8)](_0x20164f,_0x5d3912),this[_0x3cfaf5(0xab)][_0x3cfaf5(0xc8)](_0x5d3912[_0x3cfaf5(0xcf)],_0x5d3912),_0x1776ee['run'](this[_0x3cfaf5(0x99)],_0x5d3912[_0x3cfaf5(0xcf)],_0x5d3912[_0x3cfaf5(0xc5)][_0x3cfaf5(0x8e)](),_0x5d3912[_0x3cfaf5(0xf6)],_0x5d3912[_0x3cfaf5(0xb3)],_0xfede0b=>{const _0x36f5a0=_0x3cfaf5;_0xfede0b&&(_0x13c6e7[_0x36f5a0(0x90)](_0xfede0b[_0x36f5a0(0xd9)],0x13)?this[_0x36f5a0(0xd5)](_0x5d3912[_0x36f5a0(0xcf)])[_0x36f5a0(0x94)](_0x1697e3=>{const _0x29ee06=_0x36f5a0;_0x1697e3?(this[_0x29ee06(0xab)]['set'](_0x20164f,_0x1697e3),this[_0x29ee06(0xab)][_0x29ee06(0xc8)](_0x1697e3[_0x29ee06(0xcf)],_0x1697e3)):logError(_0x13c6e7[_0x29ee06(0xb6)],_0xfede0b);})[_0x36f5a0(0xfe)](_0x2f1a61=>logError(_0x36f5a0(0xda),_0x2f1a61)):_0x13c6e7[_0x36f5a0(0xcb)](logError,_0x13c6e7[_0x36f5a0(0x9b)],_0xfede0b));}),_0x20164f;}async[_0xe848a3(0x10b)](_0x341f67){const _0x429cfc=_0xe848a3,_0x2e7b57={'BIXUu':_0x429cfc(0x102),'YJxdP':function(_0x24d346,_0x18aa18){return _0x24d346(_0x18aa18);},'djxpu':_0x429cfc(0x10a)},_0x5cc14d=this['msgCache'][_0x429cfc(0x107)](_0x341f67[_0x429cfc(0xcf)]);_0x5cc14d&&Object[_0x429cfc(0xdf)](_0x5cc14d,_0x341f67);_0x2e7b57[_0x429cfc(0xe0)](logDebug,_0x429cfc(0xeb)+_0x341f67['id']+_0x429cfc(0xfb)+_0x341f67[_0x429cfc(0xc5)]+_0x429cfc(0xd8)+_0x341f67[_0x429cfc(0xcf)]);const _0x2aa1dd=this['db']['prepare'](_0x2e7b57['djxpu']);_0x2aa1dd[_0x429cfc(0x100)](_0x341f67[_0x429cfc(0xc5)],_0x341f67[_0x429cfc(0xcf)],_0x580126=>{const _0x221dca=_0x429cfc;_0x580126&&logError(_0x2e7b57[_0x221dca(0x89)],_0x580126);});}async[_0xe848a3(0xa8)](_0x5b22c3){const _0x1a8c50=_0xe848a3,_0x26d367={'VyoWt':function(_0x5003f9,_0x1e779,_0x5721b6){return _0x5003f9(_0x1e779,_0x5721b6);},'dfudv':function(_0x3a360e,_0x279d7f){return _0x3a360e(_0x279d7f);},'XBcpv':function(_0x59a770,_0x30cba3){return _0x59a770(_0x30cba3);}},_0x5a4897=this['db'][_0x1a8c50(0xb0)](_0x1a8c50(0xf5));return new Promise((_0x5d2220,_0x34999b)=>{const _0x49ccb1=_0x1a8c50;_0x5a4897[_0x49ccb1(0x100)](_0x5b22c3[_0x49ccb1(0xd1)],_0x5b22c3[_0x49ccb1(0x88)],_0x5b22c3['url'],_0x5b22c3['size'],_0x5b22c3[_0x49ccb1(0xad)],_0x5b22c3[_0x49ccb1(0xe7)],JSON[_0x49ccb1(0xbe)](_0x5b22c3['element']),_0x5b22c3[_0x49ccb1(0x104)],_0x5b22c3[_0x49ccb1(0xcf)],function(_0x5db04d){const _0x176ead=_0x49ccb1;_0x5db04d&&(_0x26d367[_0x176ead(0x9c)](logError,'db\x20could\x20not\x20add\x20file',_0x5db04d),_0x26d367[_0x176ead(0xf3)](_0x34999b,_0x5db04d)),_0x26d367[_0x176ead(0xbb)](_0x5d2220,null);});});}async[_0xe848a3(0xa6)](_0x1ac684,_0xad4a43){const _0x46d93d=_0xe848a3,_0x274b77={'JevKb':_0x46d93d(0xbd),'oxEhI':function(_0x45eae3,_0x5c1f81){return _0x45eae3(_0x5c1f81);},'pUVVK':function(_0x228038,_0x10e567){return _0x228038(_0x10e567);}},_0x3c0d38=this['db'][_0x46d93d(0xb0)](_0x1ac684);return new Promise((_0x12b8ea,_0x5ea003)=>{_0x3c0d38['get'](..._0xad4a43,(_0xf2f99c,_0x210593)=>{const _0x2246ee=_0x4a0a;_0xf2f99c&&(logError(_0x274b77[_0x2246ee(0xdd)],_0xf2f99c),_0x274b77[_0x2246ee(0xe6)](_0x5ea003,_0xf2f99c)),_0x210593&&(_0x210593['element']=JSON[_0x2246ee(0xae)](_0x210593[_0x2246ee(0x8d)])),_0x274b77[_0x2246ee(0x93)](_0x12b8ea,_0x210593);});});}async[_0xe848a3(0x113)](_0x20390f){const _0x2b1dd=_0xe848a3,_0x31996c={'dyJng':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?'};return this[_0x2b1dd(0xa6)](_0x31996c[_0x2b1dd(0xc0)],[_0x20390f]);}async[_0xe848a3(0x108)](_0x351d6e){const _0x51b9cb=_0xe848a3;return this[_0x51b9cb(0xa6)](_0x51b9cb(0xc2),[_0x351d6e]);}async[_0xe848a3(0xea)](_0x16f7d4){const _0x5b3313=_0xe848a3,_0x3a0332={'WcHXJ':_0x5b3313(0x106)},_0x23428f=this['db'][_0x5b3313(0xb0)](_0x3a0332[_0x5b3313(0x92)]);return new Promise((_0x26a3fc,_0x9d69dc)=>{const _0x18dd1a=_0x5b3313,_0x300bfe={'FWIWT':function(_0x177f78,_0x34aeb2,_0x1660cf){return _0x177f78(_0x34aeb2,_0x1660cf);}};_0x23428f[_0x18dd1a(0x100)](_0x16f7d4[_0x18dd1a(0x88)],_0x16f7d4[_0x18dd1a(0xed)],_0x16f7d4[_0x18dd1a(0xad)],function(_0x5b6d84){const _0x4cd232=_0x18dd1a;_0x5b6d84&&(_0x300bfe['FWIWT'](logError,_0x4cd232(0x10c),_0x5b6d84),_0x9d69dc(_0x5b6d84)),_0x26a3fc(null);});});}async['getReceivedTempUinMap'](){const _0xbb5c52=_0xe848a3,_0x22195e={'KEzRM':function(_0x352c11,_0x2dd349,_0x2d721a){return _0x352c11(_0x2dd349,_0x2d721a);},'wKKlf':function(_0x548945,_0x22385d){return _0x548945(_0x22385d);}},_0x4c57d0=_0xbb5c52(0xe3);return new Promise((_0x27dcf8,_0x3b41ba)=>{const _0x5b6160=_0xbb5c52,_0x115a36={'wxRlc':function(_0x15966c,_0x3afc86,_0x5ae662){const _0x3acc40=_0x4a0a;return _0x22195e[_0x3acc40(0xd6)](_0x15966c,_0x3afc86,_0x5ae662);},'tbCMy':_0x5b6160(0xc1),'VSOBy':function(_0x17ad0d,_0x7eb70e){const _0x4fc65c=_0x5b6160;return _0x22195e[_0x4fc65c(0x111)](_0x17ad0d,_0x7eb70e);}};this['db']['all'](_0x4c57d0,(_0x1f5a18,_0x198e50)=>{const _0x1f1fec=_0x5b6160;_0x1f5a18&&(_0x115a36[_0x1f1fec(0x114)](logError,_0x115a36[_0x1f1fec(0xb4)],_0x1f5a18),_0x3b41ba(_0x1f5a18));const _0x3749c7={};_0x198e50['forEach'](_0x291ad4=>{const _0x1b9bfc=_0x1f1fec;_0x3749c7[_0x291ad4[_0x1b9bfc(0x109)]]=_0x291ad4['uid'];}),_0x115a36[_0x1f1fec(0xc7)](_0x27dcf8,_0x3749c7);});});}async[_0xe848a3(0xa9)](_0x1f9074){const _0x1ed491={'CYUyC':'SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?'},_0x120ba7=_0x1ed491['CYUyC'];return new Promise((_0x3f54cc,_0x10fed2)=>{const _0x471269=_0x4a0a,_0x2d8239={'PYkzs':_0x471269(0xc1)};this['db'][_0x471269(0x107)](_0x120ba7,[_0x1f9074],(_0x3192f6,_0x47cead)=>{const _0x1c3054=_0x471269;_0x3192f6&&(logError(_0x2d8239[_0x1c3054(0xba)],_0x3192f6),_0x10fed2(_0x3192f6)),_0x3f54cc(_0x47cead?.[_0x1c3054(0x95)]);});});}async[_0xe848a3(0x98)](_0x537ad6,_0xc95638){const _0x4ed451=_0xe848a3,_0x49076d={'jHUWs':function(_0x44ac9d,_0x4cd8a0,_0x31a144){return _0x44ac9d(_0x4cd8a0,_0x31a144);},'SxAnY':function(_0x2c7af3,_0x5b575f){return _0x2c7af3(_0x5b575f);},'Mylxp':_0x4ed451(0xec)},_0x2b80e6=await this[_0x4ed451(0xa9)](_0x537ad6);if(!_0x2b80e6){const _0x5ec719=this['db'][_0x4ed451(0xb0)](_0x49076d['Mylxp']);return new Promise((_0x2cf913,_0x3e5166)=>{const _0x363a87=_0x4ed451;_0x5ec719[_0x363a87(0x100)](_0x537ad6,_0xc95638,function(_0x2a52c9){const _0x4da696=_0x363a87;_0x2a52c9&&(_0x49076d['jHUWs'](logError,'db\x20could\x20not\x20add\x20temp\x20uin',_0x2a52c9),_0x3e5166(_0x2a52c9)),_0x49076d[_0x4da696(0xa5)](_0x2cf913,null);});});}}}function _0x4a0a(_0x5ee508,_0x451034){const _0x18b0b0=_0x18b0();return _0x4a0a=function(_0x4a0a90,_0x4f5baa){_0x4a0a90=_0x4a0a90-0x88;let _0xd4869e=_0x18b0b0[_0x4a0a90];return _0xd4869e;},_0x4a0a(_0x5ee508,_0x451034);}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 83cd0720..66dda6d4 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -function _0x1aa4(){const _0x5b0cf4=['3777653pphkcw','./resources/app/wrapper.node','1392930EdtvEk','185148FCpNZr','2277513zSzhIX','736632ItPzCK','existsSync','execPath','8jwgcUu','208076DSkdUy','dirname','10VhIBZU','join','resolve','426oaMTVx','6hspPFq','resources/app/versions/','2380qqGJcV'];_0x1aa4=function(){return _0x5b0cf4;};return _0x1aa4();}const _0x23fbce=_0x31e3;(function(_0x57b9dd,_0x320090){const _0x34ce24=_0x31e3,_0x48d91b=_0x57b9dd();while(!![]){try{const _0x52ae05=parseInt(_0x34ce24(0x109))/0x1+parseInt(_0x34ce24(0x10b))/0x2+parseInt(_0x34ce24(0x115))/0x3*(parseInt(_0x34ce24(0x10f))/0x4)+-parseInt(_0x34ce24(0x117))/0x5*(parseInt(_0x34ce24(0x114))/0x6)+-parseInt(_0x34ce24(0x108))/0x7+parseInt(_0x34ce24(0x10e))/0x8*(parseInt(_0x34ce24(0x10a))/0x9)+-parseInt(_0x34ce24(0x111))/0xa*(parseInt(_0x34ce24(0x118))/0xb);if(_0x52ae05===_0x320090)break;else _0x48d91b['push'](_0x48d91b['shift']());}catch(_0x3f1232){_0x48d91b['push'](_0x48d91b['shift']());}}}(_0x1aa4,0x51a0e));function _0x31e3(_0x3904be,_0x414b1e){const _0x1aa43e=_0x1aa4();return _0x31e3=function(_0x31e3c4,_0x2307ae){_0x31e3c4=_0x31e3c4-0x108;let _0x184385=_0x1aa43e[_0x31e3c4];return _0x184385;},_0x31e3(_0x3904be,_0x414b1e);}import _0xd80143 from'node:path';import _0x3af38f from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0xd80143[_0x23fbce(0x113)](_0xd80143[_0x23fbce(0x110)](process['execPath']),_0x23fbce(0x119));!_0x3af38f[_0x23fbce(0x10c)](wrapperNodePath)&&(wrapperNodePath=_0xd80143[_0x23fbce(0x112)](_0xd80143['dirname'](process[_0x23fbce(0x10d)]),_0x23fbce(0x116)+qqVersionConfigInfo['curVersion']+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +function _0x52d2(){const _0x26b715=['3573588BWUysC','13914TKvSmm','2205DpeYQc','6334629PArUKC','12984184Sdqwjh','27NkqAQi','resolve','/wrapper.node','3308308FEkbFh','./resources/app/wrapper.node','3114980RddoQp','existsSync','dirname','1599995EAHyXP'];_0x52d2=function(){return _0x26b715;};return _0x52d2();}const _0x4adf10=_0x1930;(function(_0x1e5852,_0x3a20f9){const _0x1bac4a=_0x1930,_0xcb2435=_0x1e5852();while(!![]){try{const _0x366df2=-parseInt(_0x1bac4a(0x126))/0x1+parseInt(_0x1bac4a(0x131))/0x2+-parseInt(_0x1bac4a(0x127))/0x3+-parseInt(_0x1bac4a(0x12f))/0x4+-parseInt(_0x1bac4a(0x129))/0x5*(parseInt(_0x1bac4a(0x128))/0x6)+-parseInt(_0x1bac4a(0x12a))/0x7+-parseInt(_0x1bac4a(0x12b))/0x8*(-parseInt(_0x1bac4a(0x12c))/0x9);if(_0x366df2===_0x3a20f9)break;else _0xcb2435['push'](_0xcb2435['shift']());}catch(_0x3f1900){_0xcb2435['push'](_0xcb2435['shift']());}}}(_0x52d2,0xd7019));import _0x295c3d from'node:path';import _0x2c126a from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x295c3d[_0x4adf10(0x12d)](_0x295c3d[_0x4adf10(0x125)](process['execPath']),_0x4adf10(0x130));!_0x2c126a[_0x4adf10(0x124)](wrapperNodePath)&&(wrapperNodePath=_0x295c3d['join'](_0x295c3d['dirname'](process['execPath']),'resources/app/versions/'+qqVersionConfigInfo['curVersion']+_0x4adf10(0x12e)));const QQWrapper=require(wrapperNodePath);function _0x1930(_0x49127b,_0x200fc6){const _0x52d236=_0x52d2();return _0x1930=function(_0x19300b,_0x336f9a){_0x19300b=_0x19300b-0x124;let _0x575645=_0x52d236[_0x19300b];return _0x575645;},_0x1930(_0x49127b,_0x200fc6);}export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/action/group/GetGroupMemberList.ts b/src/onebot11/action/group/GetGroupMemberList.ts index d19312b6..3516a276 100644 --- a/src/onebot11/action/group/GetGroupMemberList.ts +++ b/src/onebot11/action/group/GetGroupMemberList.ts @@ -16,14 +16,14 @@ class GetGroupMemberList extends BaseAction { actionName = ActionName.GetGroupMemberList; protected async _handle(payload: PayloadType) { - let MemberMap: Map = new Map(); - let WebGroupMember = await WebApi.getGroupMembers(payload.group_id.toString()); + const MemberMap: Map = new Map(); + const WebGroupMember = await WebApi.getGroupMembers(payload.group_id.toString()); // await NTQQGroupApi.getGroupMembers(payload.group_id.toString()); const group = await getGroup(payload.group_id.toString()); if (!group) { throw (`群${payload.group_id}不存在`); } - let GroupMember = OB11Constructor.groupMembers(group); + const GroupMember = OB11Constructor.groupMembers(group); // 方便索引处理 for (let i = 0, len = GroupMember.length; i < len; i++) { MemberMap.set(GroupMember[i].user_id, GroupMember[i]); @@ -33,7 +33,7 @@ class GetGroupMemberList extends BaseAction { if (!WebGroupMember[i]?.uin) { continue; } - let MemberData = MemberMap.get(WebGroupMember[i]?.uin); + const MemberData = MemberMap.get(WebGroupMember[i]?.uin); if (MemberData) { MemberData.join_time = WebGroupMember[i]?.join_time; MemberData.last_sent_time = WebGroupMember[i]?.last_speak_time; @@ -43,7 +43,7 @@ class GetGroupMemberList extends BaseAction { } } // 还原Map到Array - let RetGroupMember: OB11GroupMember[] = Array.from(MemberMap.values()); + const RetGroupMember: OB11GroupMember[] = Array.from(MemberMap.values()); return RetGroupMember; } }