From 3c6503d495fbef7cefe124449533930f5c022f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 3 Jun 2024 21:02:43 +0800 Subject: [PATCH] feat: support SetSelfProfile --- .../src/adapters/NodeIDependsAdapter.js | 2 +- .../src/adapters/NodeIDispatcherAdapter.js | 2 +- .../src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/system.js | 2 +- src/core.lib/src/apis/user.d.ts | 3 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.d.ts | 11 +++++++ src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/index.js | 2 +- .../src/listeners/NodeIKernelBuddyListener.js | 2 +- .../NodeIKernelFileAssistantListener.js | 2 +- .../src/listeners/NodeIKernelGroupListener.js | 2 +- .../src/listeners/NodeIKernelLoginListener.js | 2 +- .../src/listeners/NodeIKernelMsgListener.js | 2 +- .../listeners/NodeIKernelProfileListener.js | 2 +- .../src/listeners/NodeIKernelRobotListener.js | 2 +- .../listeners/NodeIKernelSessionListener.js | 2 +- .../NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- .../services/NodeIKernelProfileService.d.ts | 3 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/rkey.js | 2 +- src/core.lib/src/wrapper.js | 2 +- src/onebot11/action/extends/SetSelfProfile.ts | 32 +++++++++++++++++++ src/onebot11/action/types.ts | 3 +- 44 files changed, 88 insertions(+), 42 deletions(-) create mode 100644 src/onebot11/action/extends/SetSelfProfile.ts diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 1e3ce592..7c44827e 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x1061d1=_0x4744;(function(_0x2a10e0,_0x258add){var _0x50331b=_0x4744,_0x314614=_0x2a10e0();while(!![]){try{var _0x527921=-parseInt(_0x50331b(0x19c))/0x1+parseInt(_0x50331b(0x197))/0x2+-parseInt(_0x50331b(0x196))/0x3+-parseInt(_0x50331b(0x19a))/0x4+parseInt(_0x50331b(0x19d))/0x5+parseInt(_0x50331b(0x193))/0x6*(parseInt(_0x50331b(0x199))/0x7)+-parseInt(_0x50331b(0x198))/0x8*(-parseInt(_0x50331b(0x19b))/0x9);if(_0x527921===_0x258add)break;else _0x314614['push'](_0x314614['shift']());}catch(_0x1d7995){_0x314614['push'](_0x314614['shift']());}}}(_0x4a07,0x4d856));function _0x4744(_0x4cb419,_0x5a62cc){var _0x4a0770=_0x4a07();return _0x4744=function(_0x47440c,_0x11aabb){_0x47440c=_0x47440c-0x193;var _0x4b16cf=_0x4a0770[_0x47440c];return _0x4b16cf;},_0x4744(_0x4cb419,_0x5a62cc);}export class DependsAdapter{[_0x1061d1(0x194)](_0x18e985,_0x5071cd){}[_0x1061d1(0x195)](_0x4caa94){}['getGroupCode'](_0x29d708){}}function _0x4a07(){var _0x1b4f91=['onMSFStatusChange','onMSFSsoError','1841751XVxVjf','1225904bwCghB','305336Nplodu','373667tIGowu','2479268AXcKwa','144tdRuJV','266911qPVfpD','2172020sZpiUH','18JoPQNC'];_0x4a07=function(){return _0x1b4f91;};return _0x4a07();} \ No newline at end of file +var _0x3f82b3=_0x22dd;function _0x22dd(_0x57fb9f,_0x29c8f7){var _0x27d81f=_0x27d8();return _0x22dd=function(_0x22dd9a,_0x236d49){_0x22dd9a=_0x22dd9a-0xb1;var _0x688351=_0x27d81f[_0x22dd9a];return _0x688351;},_0x22dd(_0x57fb9f,_0x29c8f7);}(function(_0x721ecc,_0x256ba3){var _0x22350d=_0x22dd,_0x1120eb=_0x721ecc();while(!![]){try{var _0x17283f=parseInt(_0x22350d(0xb3))/0x1+-parseInt(_0x22350d(0xb9))/0x2+-parseInt(_0x22350d(0xb4))/0x3+-parseInt(_0x22350d(0xba))/0x4*(-parseInt(_0x22350d(0xb6))/0x5)+parseInt(_0x22350d(0xb8))/0x6*(parseInt(_0x22350d(0xb5))/0x7)+-parseInt(_0x22350d(0xb7))/0x8+parseInt(_0x22350d(0xb2))/0x9;if(_0x17283f===_0x256ba3)break;else _0x1120eb['push'](_0x1120eb['shift']());}catch(_0x37aa46){_0x1120eb['push'](_0x1120eb['shift']());}}}(_0x27d8,0xabd2e));function _0x27d8(){var _0x4731f0=['302115EVHqky','49SrRYMd','325rbNSYW','4494344GRWKRp','1001514hnIbbs','1467374CEWAdQ','1048BsLaKG','getGroupCode','7466850IUbYlJ','84862ALbAcM'];_0x27d8=function(){return _0x4731f0;};return _0x27d8();}export class DependsAdapter{['onMSFStatusChange'](_0x3b272e,_0x12a362){}['onMSFSsoError'](_0x37047d){}[_0x3f82b3(0xb1)](_0x263af0){}} \ 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 e6022bd6..ed31b98b 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x1b0d(_0x227d16,_0x4d3a9c){var _0x5dfe5c=_0x5dfe();return _0x1b0d=function(_0x1b0d57,_0x10ae68){_0x1b0d57=_0x1b0d57-0x1d4;var _0x924160=_0x5dfe5c[_0x1b0d57];return _0x924160;},_0x1b0d(_0x227d16,_0x4d3a9c);}function _0x5dfe(){var _0x4aa4a5=['11743490LgOGHh','6fYiWVv','1958652lmRwYc','1522295TywOnC','4slQRPm','2ynonqR','dispatchCallWithJson','13923JmeQYX','2624251OrQgXp','437992HNmgdY','44447lZumsH','dispatchRequest','11WWcPBS'];_0x5dfe=function(){return _0x4aa4a5;};return _0x5dfe();}var _0x4ce69d=_0x1b0d;(function(_0x132232,_0x193157){var _0x37f43d=_0x1b0d,_0x21da6c=_0x132232();while(!![]){try{var _0xd8aebc=-parseInt(_0x37f43d(0x1d8))/0x1*(-parseInt(_0x37f43d(0x1e0))/0x2)+parseInt(_0x37f43d(0x1d5))/0x3+-parseInt(_0x37f43d(0x1df))/0x4*(parseInt(_0x37f43d(0x1de))/0x5)+-parseInt(_0x37f43d(0x1dc))/0x6*(parseInt(_0x37f43d(0x1d6))/0x7)+-parseInt(_0x37f43d(0x1d7))/0x8+-parseInt(_0x37f43d(0x1dd))/0x9+-parseInt(_0x37f43d(0x1db))/0xa*(-parseInt(_0x37f43d(0x1da))/0xb);if(_0xd8aebc===_0x193157)break;else _0x21da6c['push'](_0x21da6c['shift']());}catch(_0x1d6e4c){_0x21da6c['push'](_0x21da6c['shift']());}}}(_0x5dfe,0x4255c));export class DispatcherAdapter{[_0x4ce69d(0x1d9)](_0x506fa7){}['dispatchCall'](_0x185959){}[_0x4ce69d(0x1d4)](_0x2364b3){}} \ No newline at end of file +var _0x4c2a17=_0x185b;(function(_0x3a242d,_0x321c4b){var _0xa97144=_0x185b,_0x435d20=_0x3a242d();while(!![]){try{var _0x453a9a=parseInt(_0xa97144(0x19a))/0x1+parseInt(_0xa97144(0x1a4))/0x2+-parseInt(_0xa97144(0x19f))/0x3+-parseInt(_0xa97144(0x19e))/0x4+-parseInt(_0xa97144(0x1a1))/0x5*(-parseInt(_0xa97144(0x1a2))/0x6)+-parseInt(_0xa97144(0x1a3))/0x7+parseInt(_0xa97144(0x1a0))/0x8*(parseInt(_0xa97144(0x19d))/0x9);if(_0x453a9a===_0x321c4b)break;else _0x435d20['push'](_0x435d20['shift']());}catch(_0xb294d1){_0x435d20['push'](_0x435d20['shift']());}}}(_0x5701,0x2b8dd));export class DispatcherAdapter{['dispatchRequest'](_0x4860de){}[_0x4c2a17(0x19c)](_0x3bc209){}[_0x4c2a17(0x19b)](_0x2837ab){}}function _0x185b(_0x742677,_0x5c30a9){var _0x5701d8=_0x5701();return _0x185b=function(_0x185bb3,_0x427dd5){_0x185bb3=_0x185bb3-0x19a;var _0x4c71bf=_0x5701d8[_0x185bb3];return _0x4c71bf;},_0x185b(_0x742677,_0x5c30a9);}function _0x5701(){var _0xe65c8f=['10zFJgtE','666654FEXrQO','1613570uMuAkM','27436mLgyFg','170753HkFFqH','dispatchCallWithJson','dispatchCall','171378JbeOfg','212092JBbkyw','576915UWobAl','104ynzZuI'];_0x5701=function(){return _0xe65c8f;};return _0x5701();} \ 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 717069b4..1256a4b5 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0xd4f5(){var _0x60be0=['onLog','8298OZuKLh','onGetSrvCalTime','2775552oXZApV','2698084NlCzDa','31497YLyxAE','686599RSeFHu','6520318zyvnNL','246xOQOBY','onShowErrUITips','onGetOfflineMsg','4620bOOabS','fixPicImgType','getAppSetting','12911616aoxdne'];_0xd4f5=function(){return _0x60be0;};return _0xd4f5();}var _0xe4342=_0x586d;(function(_0x5ebfa4,_0x4f0141){var _0x768f7d=_0x586d,_0x1b212e=_0x5ebfa4();while(!![]){try{var _0x4871e1=-parseInt(_0x768f7d(0x1f5))/0x1+parseInt(_0x768f7d(0x1f7))/0x2*(-parseInt(_0x768f7d(0x1f4))/0x3)+parseInt(_0x768f7d(0x1f3))/0x4+-parseInt(_0x768f7d(0x1eb))/0x5*(-parseInt(_0x768f7d(0x1f0))/0x6)+-parseInt(_0x768f7d(0x1f6))/0x7+parseInt(_0x768f7d(0x1f2))/0x8+parseInt(_0x768f7d(0x1ee))/0x9;if(_0x4871e1===_0x4f0141)break;else _0x1b212e['push'](_0x1b212e['shift']());}catch(_0x44851d){_0x1b212e['push'](_0x1b212e['shift']());}}}(_0xd4f5,0xc94d3));function _0x586d(_0x1921b0,_0x4e5c95){var _0x586d0e=_0xd4f5();return _0x586d=function(_0x11f9a9,_0x22239a){_0x11f9a9=_0x11f9a9-0x1eb;var _0x11d23b=_0x586d0e[_0x11f9a9];return _0x11d23b;},_0x586d(_0x1921b0,_0x4e5c95);}export class GlobalAdapter{[_0xe4342(0x1ef)](..._0x46daa9){}[_0xe4342(0x1f1)](..._0x257496){}[_0xe4342(0x1f8)](..._0xc16111){}[_0xe4342(0x1ec)](..._0x379207){}[_0xe4342(0x1ed)](..._0x175a7b){}['onInstallFinished'](..._0x2ae097){}['onUpdateGeneralFlag'](..._0x1f5c0f){}[_0xe4342(0x1f9)](..._0xe292fd){}} \ No newline at end of file +function _0x275e(){var _0x3e20d6=['fixPicImgType','346456AgfTja','927216RGmngc','4605084HeUpRA','onGetOfflineMsg','370eNCBsi','546290deLSYq','1312143FFHPIJ','1127dRkIEP','68280WuUXyh','onInstallFinished','40zkWsrA'];_0x275e=function(){return _0x3e20d6;};return _0x275e();}function _0x16de(_0x38e95c,_0x4a1aa8){var _0x275e8c=_0x275e();return _0x16de=function(_0x16de29,_0x51ad25){_0x16de29=_0x16de29-0xb8;var _0x856b25=_0x275e8c[_0x16de29];return _0x856b25;},_0x16de(_0x38e95c,_0x4a1aa8);}var _0x2df007=_0x16de;(function(_0x39b367,_0x1f01be){var _0x5cacef=_0x16de,_0x59bc9e=_0x39b367();while(!![]){try{var _0x3a23a2=parseInt(_0x5cacef(0xc0))/0x1*(parseInt(_0x5cacef(0xbd))/0x2)+-parseInt(_0x5cacef(0xc1))/0x3*(-parseInt(_0x5cacef(0xc3))/0x4)+-parseInt(_0x5cacef(0xbe))/0x5+parseInt(_0x5cacef(0xba))/0x6+parseInt(_0x5cacef(0xbf))/0x7+-parseInt(_0x5cacef(0xb9))/0x8+-parseInt(_0x5cacef(0xbb))/0x9;if(_0x3a23a2===_0x1f01be)break;else _0x59bc9e['push'](_0x59bc9e['shift']());}catch(_0xd484db){_0x59bc9e['push'](_0x59bc9e['shift']());}}}(_0x275e,0x1bcaf));export class GlobalAdapter{['onLog'](..._0x390fcc){}['onGetSrvCalTime'](..._0xdcf846){}['onShowErrUITips'](..._0x5f5817){}[_0x2df007(0xb8)](..._0x2005e4){}['getAppSetting'](..._0x23ae95){}[_0x2df007(0xc2)](..._0x4b6ed8){}['onUpdateGeneralFlag'](..._0x21cc0e){}[_0x2df007(0xbc)](..._0x5dcff5){}} \ 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 a8cbd3b8..228aa503 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0x31d4(){var _0x1e9bcd=['1161711GrnywJ','770364ojnkYr','37430TJFjvw','5378744OUmIzf','1153566YVVucR','487480ZvAQjI','5vOFGyo','721301SMrTGj'];_0x31d4=function(){return _0x1e9bcd;};return _0x31d4();}(function(_0x5b1d31,_0x4d2e34){var _0x3a75fa=_0x1628,_0x38854b=_0x5b1d31();while(!![]){try{var _0x570c2a=-parseInt(_0x3a75fa(0x12b))/0x1+parseInt(_0x3a75fa(0x12a))/0x2+parseInt(_0x3a75fa(0x129))/0x3+-parseInt(_0x3a75fa(0x12e))/0x4*(parseInt(_0x3a75fa(0x12f))/0x5)+parseInt(_0x3a75fa(0x12d))/0x6+parseInt(_0x3a75fa(0x128))/0x7+-parseInt(_0x3a75fa(0x12c))/0x8;if(_0x570c2a===_0x4d2e34)break;else _0x38854b['push'](_0x38854b['shift']());}catch(_0x141178){_0x38854b['push'](_0x38854b['shift']());}}}(_0x31d4,0x39a30));export*from'./NodeIDependsAdapter';function _0x1628(_0x2a63b8,_0xf0be68){var _0x31d4d3=_0x31d4();return _0x1628=function(_0x162876,_0x2eb280){_0x162876=_0x162876-0x128;var _0x2cbab4=_0x31d4d3[_0x162876];return _0x2cbab4;},_0x1628(_0x2a63b8,_0xf0be68);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +(function(_0x4453b5,_0x26728a){var _0x2e552d=_0x1eba,_0x32fa15=_0x4453b5();while(!![]){try{var _0x36a0ad=-parseInt(_0x2e552d(0x87))/0x1*(-parseInt(_0x2e552d(0x7e))/0x2)+parseInt(_0x2e552d(0x89))/0x3*(-parseInt(_0x2e552d(0x82))/0x4)+-parseInt(_0x2e552d(0x86))/0x5+-parseInt(_0x2e552d(0x7f))/0x6*(-parseInt(_0x2e552d(0x80))/0x7)+parseInt(_0x2e552d(0x83))/0x8*(-parseInt(_0x2e552d(0x88))/0x9)+-parseInt(_0x2e552d(0x7d))/0xa*(parseInt(_0x2e552d(0x81))/0xb)+parseInt(_0x2e552d(0x85))/0xc*(parseInt(_0x2e552d(0x84))/0xd);if(_0x36a0ad===_0x26728a)break;else _0x32fa15['push'](_0x32fa15['shift']());}catch(_0x598cda){_0x32fa15['push'](_0x32fa15['shift']());}}}(_0x20f1,0x4be00));function _0x1eba(_0x2b8e1f,_0x5d4a06){var _0x20f1dd=_0x20f1();return _0x1eba=function(_0x1ebac2,_0x2256f3){_0x1ebac2=_0x1ebac2-0x7d;var _0x5c98cb=_0x20f1dd[_0x1ebac2];return _0x5c98cb;},_0x1eba(_0x2b8e1f,_0x5d4a06);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x20f1(){var _0xbac62b=['3Fuvswm','24530YHpReu','238rfHdAz','358374DkVMsw','7XRtDSv','242MXbmjT','1641196IBLAVy','632936jNsZvb','2642757LfPMze','72xUPMnc','2336610LBWyAt','1018oNZJdI','18jDPtKk'];_0x20f1=function(){return _0xbac62b;};return _0x20f1();} \ 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 ad92b082..b9b43e68 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x338cc2=_0x4cbf;function _0x4a10(){const _0x50b43f=['delete','BEukc','join','getFileCacheInfo','mKhjt','2296383HWdJOV','private_rkey','existsSync','copyFile','clearChatCache','getDesktopTmpPath','ext','2743454sQhPGK','NuFEc','GFLAQ','PIC','getMsgService','set','getRichMediaFilePathForGuild','下载超时','util','indexOf','fileTypeFromFile','/gchatpic_new/0/0-0-','session','wMxXJ','图片url获取失败','getRkey','&rkey=','EtoRZ','unlink','toUpperCase','2561746bFXsdD','548711JeGIqB','yXoPG','8dOhtvL','includes','msgId','getHotUpdateCachePath','addCacheScanedPaths','5512870byXzVO','filePath','group_rkey','7385712ixDXNi','getStorageCleanService','addCacheScannedPaths','downloadRichMedia','clearCache','addListener','getFileSize','kTlvs','Itiwi','defaultFileDownloadPath','fileUuid','clearCacheDataByKeys','getChatCacheList','hotUpdate','scanCache','originImageUrl','oDOrH','fGtOS','9834376HmZsbu','uploadFile','setCacheSilentScan','getChatCacheInfo','getImageSize','downloadMedia'];_0x4a10=function(){return _0x50b43f;};return _0x4a10();}(function(_0x339db4,_0x1000c6){const _0x378487=_0x4cbf,_0x3d56b5=_0x339db4();while(!![]){try{const _0x5a4a44=parseInt(_0x378487(0x18f))/0x1+-parseInt(_0x378487(0x18e))/0x2+-parseInt(_0x378487(0x173))/0x3*(parseInt(_0x378487(0x191))/0x4)+parseInt(_0x378487(0x196))/0x5+parseInt(_0x378487(0x199))/0x6+-parseInt(_0x378487(0x17a))/0x7+parseInt(_0x378487(0x168))/0x8;if(_0x5a4a44===_0x1000c6)break;else _0x3d56b5['push'](_0x3d56b5['shift']());}catch(_0x2246e6){_0x3d56b5['push'](_0x3d56b5['shift']());}}}(_0x4a10,0xdda29));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x2836a8 from'path';import _0x59f0e2 from'fs';import _0x5398ee from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x6e576f from'file-type';function _0x4cbf(_0x47feab,_0x54f40c){const _0x4a10f4=_0x4a10();return _0x4cbf=function(_0x4cbffe,_0x1b9827){_0x4cbffe=_0x4cbffe-0x164;let _0x35d29b=_0x4a10f4[_0x4cbffe];return _0x35d29b;},_0x4cbf(_0x47feab,_0x54f40c);}import{MsgListener}from'@/core/listeners';import _0x549715 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x288a63=>{const _0x2f7430=_0x4cbf;for(const [_0x2ea97e,_0x1ac338]of downloadMediaTasks){_0x1ac338(_0x288a63),downloadMediaTasks[_0x2f7430(0x16e)](_0x2ea97e);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x336bca=_0x4cbf;napCatCore[_0x336bca(0x19e)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x1983a3){const _0x2062ef=_0x4cbf;return _0x6e576f[_0x2062ef(0x184)](_0x1983a3);}static async['copyFile'](_0x4dcb63,_0x33c8dd){const _0x5552d4=_0x4cbf;await napCatCore[_0x5552d4(0x182)][_0x5552d4(0x176)](_0x4dcb63,_0x33c8dd);}static async[_0x338cc2(0x19f)](_0x4eea60){const _0x1fa70a=_0x338cc2;return await napCatCore[_0x1fa70a(0x182)][_0x1fa70a(0x19f)](_0x4eea60);}static async[_0x338cc2(0x169)](_0x5ce74b,_0x4b1fd5=ElementType[_0x338cc2(0x17d)],_0x36945d=0x0){const _0x111599=_0x338cc2,_0x4ab97d={'EtoRZ':function(_0x4e3070,_0x162888){return _0x4e3070(_0x162888);},'NuFEc':function(_0x5caeaa,_0x3f3b05){return _0x5caeaa+_0x3f3b05;},'HsXcu':function(_0x217754,_0x307f36){return _0x217754===_0x307f36;}},_0x4abdf6=await _0x4ab97d[_0x111599(0x18b)](calculateFileMD5,_0x5ce74b);let _0x577e20=(await NTQQFileApi['getFileType'](_0x5ce74b))?.[_0x111599(0x179)]||'';_0x577e20&&(_0x577e20=_0x4ab97d[_0x111599(0x17b)]('.',_0x577e20));let _0x3c01a5=''+_0x2836a8['basename'](_0x5ce74b);_0x4ab97d['HsXcu'](_0x3c01a5[_0x111599(0x183)]('.'),-0x1)&&(_0x3c01a5+=_0x577e20);const _0x3ebdaa=napCatCore['session']['getMsgService']()[_0x111599(0x180)]({'md5HexStr':_0x4abdf6,'fileName':_0x3c01a5,'elementType':_0x4b1fd5,'elementSubType':_0x36945d,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x111599(0x176)](_0x5ce74b,_0x3ebdaa);const _0x3a9646=await NTQQFileApi['getFileSize'](_0x5ce74b);return{'md5':_0x4abdf6,'fileName':_0x3c01a5,'path':_0x3ebdaa,'fileSize':_0x3a9646,'ext':_0x577e20};}static async[_0x338cc2(0x16d)](_0x4b8bde,_0x2dbb65,_0x619437,_0x404c60,_0x2308f4,_0xad9021,_0x29a58b=0x3e8*0x3c*0x2,_0x554b62=![]){const _0x3fcfcd=_0x338cc2,_0xdb2ea7={'mlAwl':function(_0x598d52,_0x3a2e9f){return _0x598d52===_0x3a2e9f;},'kTlvs':function(_0x42ca72,_0x35c41e){return _0x42ca72(_0x35c41e);}};if(_0xad9021&&_0x59f0e2[_0x3fcfcd(0x175)](_0xad9021)){if(_0x554b62)try{await _0x5398ee[_0x3fcfcd(0x18c)](_0xad9021);}catch(_0x415eda){}else return _0xad9021;}return new Promise((_0x4ef1dd,_0x2df638)=>{const _0x1412cd=_0x3fcfcd,_0x1246bc={'yXoPG':function(_0x1274a5,_0x5af7f6){return _0x1274a5(_0x5af7f6);}};let _0x1b00c9=![];const _0x54c530=_0x1b25d3=>{const _0x65477f=_0x4cbf;if(_0xdb2ea7['mlAwl'](_0x1b25d3[_0x65477f(0x193)],_0x4b8bde)){_0x1b00c9=!![];let _0x15dc16=_0x1b25d3[_0x65477f(0x197)];if(_0x15dc16['startsWith']('\x5c')){const _0x142f1a=sessionConfig[_0x65477f(0x1a2)];_0x15dc16=_0x2836a8[_0x65477f(0x170)](_0x142f1a,_0x15dc16);}_0xdb2ea7[_0x65477f(0x1a0)](_0x4ef1dd,_0x15dc16);}};downloadMediaTasks[_0x1412cd(0x17f)](randomUUID(),_0x54c530),setTimeout(()=>{const _0x1634d9=_0x1412cd;!_0x1b00c9&&_0x1246bc[_0x1634d9(0x190)](_0x2df638,_0x1634d9(0x181));},_0x29a58b),napCatCore[_0x1412cd(0x186)][_0x1412cd(0x17e)]()[_0x1412cd(0x19c)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x4b8bde,'chatType':_0x2dbb65,'peerUid':_0x619437,'elementId':_0x404c60,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x2308f4});});}static async[_0x338cc2(0x16c)](_0x1b7247){const _0xabc669={'BEukc':function(_0x4759ae,_0x341d8f){return _0x4759ae(_0x341d8f);}};return new Promise((_0x54a25a,_0x264808)=>{const _0x225b95={'wMxXJ':function(_0x429daf,_0xf766da){return _0x429daf(_0xf766da);},'fGtOS':function(_0x48283e,_0x2d8946){const _0x370227=_0x4cbf;return _0xabc669[_0x370227(0x16f)](_0x48283e,_0x2d8946);}};_0x549715(_0x1b7247,(_0x594c92,_0x242557)=>{const _0x3af19e=_0x4cbf;_0x594c92?_0x225b95[_0x3af19e(0x187)](_0x264808,_0x594c92):_0x225b95[_0x3af19e(0x167)](_0x54a25a,_0x242557);});});}static async['getImageUrl'](_0x44163a,_0x543bdd){const _0x23e4fb=_0x338cc2,_0x5a271a={'mKhjt':'/download','GFLAQ':function(_0x48c028,_0x2cff5d){return _0x48c028+_0x2cff5d;},'oDOrH':function(_0x9cb6f8,_0x39f00c){return _0x9cb6f8||_0x39f00c;},'sRMmz':function(_0x15b737,_0xd4d997){return _0x15b737||_0xd4d997;},'qLDXc':function(_0x438912,_0x4e379d,_0xf67286){return _0x438912(_0x4e379d,_0xf67286);},'Itiwi':_0x23e4fb(0x188)};if(!_0x44163a)return'';const _0x3e8bd1=_0x44163a[_0x23e4fb(0x165)],_0x373d1f=_0x44163a['md5HexStr'],_0x4d69dc=_0x44163a['md5HexStr'],_0x19c106=_0x44163a[_0x23e4fb(0x1a3)];if(_0x3e8bd1){if(_0x3e8bd1['startsWith'](_0x5a271a[_0x23e4fb(0x172)])){if(_0x3e8bd1[_0x23e4fb(0x192)](_0x23e4fb(0x18a)))return _0x5a271a['GFLAQ'](IMAGE_HTTP_HOST_NT,_0x3e8bd1);const _0x260075=await rkeyManager[_0x23e4fb(0x189)](),_0x244608=_0x543bdd?_0x260075[_0x23e4fb(0x174)]:_0x260075[_0x23e4fb(0x198)];return _0x5a271a[_0x23e4fb(0x17c)](_0x5a271a[_0x23e4fb(0x17c)](IMAGE_HTTP_HOST_NT,_0x3e8bd1),''+_0x244608);}else return IMAGE_HTTP_HOST+_0x3e8bd1;}else{if(_0x5a271a[_0x23e4fb(0x166)](_0x4d69dc,_0x373d1f))return IMAGE_HTTP_HOST+_0x23e4fb(0x185)+_0x5a271a['sRMmz'](_0x4d69dc,_0x373d1f)[_0x23e4fb(0x18d)]()+'/0';}return _0x5a271a['qLDXc'](logDebug,_0x5a271a[_0x23e4fb(0x1a1)],_0x44163a),'';}}export class NTQQFileCacheApi{static async[_0x338cc2(0x16a)](_0x51b768=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x338cc2(0x19d)](_0x5891ec=['tmp',_0x338cc2(0x1a6)]){const _0x1c54eb=_0x338cc2;return napCatCore[_0x1c54eb(0x186)][_0x1c54eb(0x19a)]()[_0x1c54eb(0x1a4)](_0x5891ec);}static[_0x338cc2(0x19b)](_0x2bf53c={}){const _0x2322a0=_0x338cc2;return napCatCore[_0x2322a0(0x186)]['getStorageCleanService']()[_0x2322a0(0x195)](_0x2bf53c);}static[_0x338cc2(0x164)](){const _0x52e2fd=_0x338cc2;return napCatCore[_0x52e2fd(0x186)][_0x52e2fd(0x19a)]()['scanCache']();}static[_0x338cc2(0x194)](){return'';}static[_0x338cc2(0x178)](){return'';}static[_0x338cc2(0x1a5)](_0x450dbd,_0x587ee8=0x3e8,_0x6fd0be=0x0){const _0x367f74=_0x338cc2;return napCatCore[_0x367f74(0x186)][_0x367f74(0x19a)]()[_0x367f74(0x16b)](_0x450dbd,_0x587ee8,0x1,_0x6fd0be);}static[_0x338cc2(0x171)](_0x1c9b2f,_0x284fd8=0x3e8,_0x2c03f7){const _0x4f67db=_0x2c03f7?_0x2c03f7:{'fileType':_0x1c9b2f};}static async[_0x338cc2(0x177)](_0x3cb814=[],_0x22998a=[]){const _0x5dcee7=_0x338cc2;return napCatCore['session'][_0x5dcee7(0x19a)]()['clearChatCacheInfo'](_0x3cb814,_0x22998a);}} \ No newline at end of file +function _0x5ad4(){const _0x2f7f5a=['scanCache','7832wVzElX','getChatCacheList','aSUau','getDesktopTmpPath','BOMvu','getRichMediaFilePathForGuild','addCacheScannedPaths','ext','12MPPpAK','getStorageCleanService','basename','getFileCacheInfo','RmIge','下载超时','msgId','OODvw','vQFRU','jSkOL','56796kbBkXd','1499286uxsaSP','filePath','originImageUrl','util','onRichMediaDownloadComplete','14031vDkieT','2216ZhBaIj','getFileType','clearChatCacheInfo','startsWith','2136dVEpVP','10280huCVmO','1313465CKMPPt','toUpperCase','downloadMedia','md5HexStr','delete','copyFile','indexOf','27835KcmQvP','addCacheScanedPaths','downloadRichMedia','VxzMw','group_rkey','session','onLoginSuccess','mqAOP','join','wstBV','addListener','fileTypeFromFile','setCacheSilentScan','35VFbAMP','hpCVb','QqNBH','defaultFileDownloadPath','set','getMsgService','sjfZf','151450FNSsdy','getFileSize','getImageUrl','20uGGquv','getChatCacheInfo','tmp','getRkey','/download','private_rkey','EMlmo','图片url获取失败','getImageSize','existsSync','wqqCK','WFVPP'];_0x5ad4=function(){return _0x2f7f5a;};return _0x5ad4();}const _0xca6636=_0x1ba9;(function(_0x4dfb9c,_0x4256ea){const _0x16c211=_0x1ba9,_0x147a5d=_0x4dfb9c();while(!![]){try{const _0x1d5bf1=-parseInt(_0x16c211(0x1fd))/0x1+parseInt(_0x16c211(0x1e9))/0x2*(-parseInt(_0x16c211(0x229))/0x3)+-parseInt(_0x16c211(0x214))/0x4*(parseInt(_0x16c211(0x1f6))/0x5)+-parseInt(_0x16c211(0x1ea))/0x6*(-parseInt(_0x16c211(0x20a))/0x7)+-parseInt(_0x16c211(0x1f0))/0x8*(parseInt(_0x16c211(0x1ef))/0x9)+parseInt(_0x16c211(0x1f5))/0xa*(-parseInt(_0x16c211(0x221))/0xb)+parseInt(_0x16c211(0x1f4))/0xc*(parseInt(_0x16c211(0x211))/0xd);if(_0x1d5bf1===_0x4256ea)break;else _0x147a5d['push'](_0x147a5d['shift']());}catch(_0x3024de){_0x147a5d['push'](_0x147a5d['shift']());}}}(_0x5ad4,0xabfb2));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x314c2d from'path';import _0x3c355c from'fs';function _0x1ba9(_0x4674a8,_0x1d753e){const _0x5ad410=_0x5ad4();return _0x1ba9=function(_0x1ba907,_0x417924){_0x1ba907=_0x1ba907-0x1e4;let _0x555fc7=_0x5ad410[_0x1ba907];return _0x555fc7;},_0x1ba9(_0x4674a8,_0x1d753e);}import _0x14b903 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x156868 from'file-type';import{MsgListener}from'@/core/listeners';import _0x9f914f from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0xca6636(0x1ee)]=_0x1e42dd=>{const _0x13bdef=_0xca6636,_0x380239={'sjfZf':function(_0x265a86,_0x2caea1){return _0x265a86(_0x2caea1);}};for(const [_0x2f592a,_0x165151]of downloadMediaTasks){_0x380239[_0x13bdef(0x210)](_0x165151,_0x1e42dd),downloadMediaTasks[_0x13bdef(0x1fa)](_0x2f592a);}},setTimeout(()=>{const _0x271835=_0xca6636;napCatCore[_0x271835(0x203)](()=>{const _0x478605=_0x271835;napCatCore[_0x478605(0x207)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0xca6636(0x1f1)](_0x139a8e){const _0x558f7f=_0xca6636;return _0x156868[_0x558f7f(0x208)](_0x139a8e);}static async[_0xca6636(0x1fb)](_0xabdcf6,_0x1df4df){const _0x1dfc9a=_0xca6636;await napCatCore[_0x1dfc9a(0x1ed)][_0x1dfc9a(0x1fb)](_0xabdcf6,_0x1df4df);}static async['getFileSize'](_0x1ba46f){const _0x218ce8=_0xca6636;return await napCatCore[_0x218ce8(0x1ed)]['getFileSize'](_0x1ba46f);}static async['uploadFile'](_0x52dc56,_0x64e6e=ElementType['PIC'],_0x1a0297=0x0){const _0x1ac50b=_0xca6636,_0x1a2c35={'vQFRU':function(_0x8d27cc,_0x2b27ce){return _0x8d27cc(_0x2b27ce);},'LLgam':function(_0x3c9ca0,_0x18fb19){return _0x3c9ca0+_0x18fb19;},'mfxtk':function(_0x261e34,_0x267b32){return _0x261e34===_0x267b32;}},_0x15141c=await _0x1a2c35[_0x1ac50b(0x1e7)](calculateFileMD5,_0x52dc56);let _0x40a75b=(await NTQQFileApi[_0x1ac50b(0x1f1)](_0x52dc56))?.[_0x1ac50b(0x228)]||'';_0x40a75b&&(_0x40a75b=_0x1a2c35['LLgam']('.',_0x40a75b));let _0x116a0e=''+_0x314c2d[_0x1ac50b(0x22b)](_0x52dc56);_0x1a2c35['mfxtk'](_0x116a0e[_0x1ac50b(0x1fc)]('.'),-0x1)&&(_0x116a0e+=_0x40a75b);const _0xd29ebc=napCatCore[_0x1ac50b(0x202)]['getMsgService']()[_0x1ac50b(0x226)]({'md5HexStr':_0x15141c,'fileName':_0x116a0e,'elementType':_0x64e6e,'elementSubType':_0x1a0297,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x1ac50b(0x1fb)](_0x52dc56,_0xd29ebc);const _0x53d8ee=await NTQQFileApi[_0x1ac50b(0x212)](_0x52dc56);return{'md5':_0x15141c,'fileName':_0x116a0e,'path':_0xd29ebc,'fileSize':_0x53d8ee,'ext':_0x40a75b};}static async[_0xca6636(0x1f8)](_0x3a926b,_0x4e8ac7,_0x11db49,_0x49e0ff,_0x21ad40,_0x476223,_0x102e49=0x3e8*0x3c*0x2,_0x44bab8=![]){const _0x1a3ad0=_0xca6636,_0x4ae1f5={'jSkOL':function(_0x485f4e,_0x29cf78){return _0x485f4e===_0x29cf78;},'heQeu':function(_0x1ffe0f,_0x22d2cc){return _0x1ffe0f(_0x22d2cc);},'EMlmo':_0x1a3ad0(0x1e4),'aSUau':function(_0x35c10f){return _0x35c10f();},'QqNBH':function(_0xf6fd10,_0x5ee224,_0xf848c9){return _0xf6fd10(_0x5ee224,_0xf848c9);}};if(_0x476223&&_0x3c355c[_0x1a3ad0(0x21d)](_0x476223)){if(_0x44bab8)try{await _0x14b903['unlink'](_0x476223);}catch(_0x249832){}else return _0x476223;}return new Promise((_0x57cbe8,_0xd61577)=>{const _0x170a9c=_0x1a3ad0,_0x190824={'wstBV':_0x4ae1f5[_0x170a9c(0x21a)]};let _0x13d0da=![];const _0x5efc37=_0x5a1f46=>{const _0x92706=_0x170a9c;if(_0x4ae1f5[_0x92706(0x1e8)](_0x5a1f46[_0x92706(0x1e5)],_0x3a926b)){_0x13d0da=!![];let _0x1fc030=_0x5a1f46[_0x92706(0x1eb)];if(_0x1fc030[_0x92706(0x1f3)]('\x5c')){const _0x5c8ff2=sessionConfig[_0x92706(0x20d)];_0x1fc030=_0x314c2d[_0x92706(0x205)](_0x5c8ff2,_0x1fc030);}_0x4ae1f5['heQeu'](_0x57cbe8,_0x1fc030);}};downloadMediaTasks[_0x170a9c(0x20e)](_0x4ae1f5[_0x170a9c(0x223)](randomUUID),_0x5efc37),_0x4ae1f5[_0x170a9c(0x20c)](setTimeout,()=>{const _0x4aa11d=_0x170a9c;!_0x13d0da&&_0xd61577(_0x190824[_0x4aa11d(0x206)]);},_0x102e49),napCatCore[_0x170a9c(0x202)][_0x170a9c(0x20f)]()[_0x170a9c(0x1ff)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x3a926b,'chatType':_0x4e8ac7,'peerUid':_0x11db49,'elementId':_0x49e0ff,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x21ad40});});}static async[_0xca6636(0x21c)](_0x4c3fcf){const _0x5a7f80={'mqAOP':function(_0x385c24,_0x4a0890){return _0x385c24(_0x4a0890);},'VxzMw':function(_0x520598,_0xbb6433,_0x461ad1){return _0x520598(_0xbb6433,_0x461ad1);}};return new Promise((_0x56233b,_0x1acde9)=>{const _0x43fa4d=_0x1ba9,_0x557da3={'wqqCK':function(_0x56c9dd,_0x5595cf){const _0x47ff45=_0x1ba9;return _0x5a7f80[_0x47ff45(0x204)](_0x56c9dd,_0x5595cf);}};_0x5a7f80[_0x43fa4d(0x200)](_0x9f914f,_0x4c3fcf,(_0x2c87ae,_0x369ec9)=>{const _0x24c847=_0x43fa4d;_0x2c87ae?_0x557da3[_0x24c847(0x21e)](_0x1acde9,_0x2c87ae):_0x56233b(_0x369ec9);});});}static async[_0xca6636(0x213)](_0x40855f,_0x45b41b){const _0x382a03=_0xca6636,_0x16fd46={'zDRkF':_0x382a03(0x218),'hpCVb':'&rkey=','OODvw':function(_0x52fcfc,_0x1a2644){return _0x52fcfc+_0x1a2644;},'BOMvu':function(_0x21a39c,_0x2505a2){return _0x21a39c||_0x2505a2;},'xluiJ':function(_0x52873d,_0x5d7737){return _0x52873d||_0x5d7737;},'RmIge':function(_0xdb9ec4,_0x18c412,_0x1428b4){return _0xdb9ec4(_0x18c412,_0x1428b4);},'WFVPP':_0x382a03(0x21b)};if(!_0x40855f)return'';const _0x46de6b=_0x40855f[_0x382a03(0x1ec)],_0x79ad3a=_0x40855f['md5HexStr'],_0x50c3ab=_0x40855f[_0x382a03(0x1f9)],_0x4eb05a=_0x40855f['fileUuid'];if(_0x46de6b){if(_0x46de6b['startsWith'](_0x16fd46['zDRkF'])){if(_0x46de6b['includes'](_0x16fd46[_0x382a03(0x20b)]))return _0x16fd46[_0x382a03(0x1e6)](IMAGE_HTTP_HOST_NT,_0x46de6b);const _0x408fd2=await rkeyManager[_0x382a03(0x217)](),_0x3a6a02=_0x45b41b?_0x408fd2[_0x382a03(0x219)]:_0x408fd2[_0x382a03(0x201)];return IMAGE_HTTP_HOST_NT+_0x46de6b+(''+_0x3a6a02);}else return _0x16fd46[_0x382a03(0x1e6)](IMAGE_HTTP_HOST,_0x46de6b);}else{if(_0x16fd46[_0x382a03(0x225)](_0x50c3ab,_0x79ad3a))return IMAGE_HTTP_HOST+'/gchatpic_new/0/0-0-'+_0x16fd46['xluiJ'](_0x50c3ab,_0x79ad3a)[_0x382a03(0x1f7)]()+'/0';}return _0x16fd46[_0x382a03(0x22d)](logDebug,_0x16fd46[_0x382a03(0x21f)],_0x40855f),'';}}export class NTQQFileCacheApi{static async[_0xca6636(0x209)](_0x56f12b=!![]){return'';}static['getCacheSessionPathList'](){return'';}static['clearCache'](_0x2f28b6=[_0xca6636(0x216),'hotUpdate']){return napCatCore['session']['getStorageCleanService']()['clearCacheDataByKeys'](_0x2f28b6);}static[_0xca6636(0x227)](_0x3e805b={}){const _0x21519c=_0xca6636;return napCatCore[_0x21519c(0x202)]['getStorageCleanService']()[_0x21519c(0x1fe)](_0x3e805b);}static[_0xca6636(0x220)](){const _0x4e4208=_0xca6636;return napCatCore[_0x4e4208(0x202)][_0x4e4208(0x22a)]()[_0x4e4208(0x220)]();}static['getHotUpdateCachePath'](){return'';}static[_0xca6636(0x224)](){return'';}static[_0xca6636(0x222)](_0x2230fc,_0xad0513=0x3e8,_0x298b78=0x0){const _0x18d273=_0xca6636;return napCatCore[_0x18d273(0x202)][_0x18d273(0x22a)]()[_0x18d273(0x215)](_0x2230fc,_0xad0513,0x1,_0x298b78);}static[_0xca6636(0x22c)](_0x4b4177,_0x44a7e1=0x3e8,_0x162607){const _0x5dec87=_0x162607?_0x162607:{'fileType':_0x4b4177};}static async['clearChatCache'](_0x743d7c=[],_0x5988aa=[]){const _0x5b31bc=_0xca6636;return napCatCore[_0x5b31bc(0x202)][_0x5b31bc(0x22a)]()[_0x5b31bc(0x1f2)](_0x743d7c,_0x5988aa);}} \ 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 c9d3f5c6..333d7850 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -function _0x44cd(){const _0x53bbf6=['415098RcXDEV','push','reqTime','8834749onjeeP','session','CallNormalEvent','buddyList','1676rrWXBy','NodeIKernelBuddyListener/onBuddyListChange','44699280kNSMHB','56gusyin','1964547OiEIxg','5070600vfPmrs','NodeIKernelBuddyService/getBuddyList','1680bhZSZW','approvalFriendRequest','getFriends','582090Nisahp','uin','handleFriendRequest','2sUqxFV','uid','qjTeZ'];_0x44cd=function(){return _0x53bbf6;};return _0x44cd();}const _0x4d614a=_0x5f1e;(function(_0x40a84c,_0x50bfd1){const _0x424a0e=_0x5f1e,_0x2cc564=_0x40a84c();while(!![]){try{const _0x1419f8=-parseInt(_0x424a0e(0x91))/0x1*(parseInt(_0x424a0e(0x94))/0x2)+-parseInt(_0x424a0e(0x8b))/0x3+-parseInt(_0x424a0e(0x87))/0x4*(parseInt(_0x424a0e(0x8e))/0x5)+-parseInt(_0x424a0e(0x8c))/0x6+-parseInt(_0x424a0e(0x9a))/0x7+-parseInt(_0x424a0e(0x8a))/0x8*(parseInt(_0x424a0e(0x97))/0x9)+parseInt(_0x424a0e(0x89))/0xa;if(_0x1419f8===_0x50bfd1)break;else _0x2cc564['push'](_0x2cc564['shift']());}catch(_0x16a0aa){_0x2cc564['push'](_0x2cc564['shift']());}}}(_0x44cd,0xa1a80));import{napCatCore}from'@/core';function _0x5f1e(_0x507db6,_0x315477){const _0x44cd0e=_0x44cd();return _0x5f1e=function(_0x5f1eaa,_0x15fd4d){_0x5f1eaa=_0x5f1eaa-0x84;let _0x3b34ba=_0x44cd0e[_0x5f1eaa];return _0x3b34ba;},_0x5f1e(_0x507db6,_0x315477);}import{uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQFriendApi{static async[_0x4d614a(0x90)](_0x26e249=![]){const _0x4f81eb=_0x4d614a,_0x36f606={'xOdji':_0x4f81eb(0x8d),'qjTeZ':_0x4f81eb(0x88)};let [_0x436409,_0x2a3559]=await NTEventDispatch[_0x4f81eb(0x85)](_0x36f606['xOdji'],_0x36f606[_0x4f81eb(0x96)],0x1,0x1388,_0x26e249);const _0x3e313e=[];for(const _0x49190b of _0x2a3559){for(const _0x359875 of _0x49190b[_0x4f81eb(0x86)]){_0x3e313e[_0x4f81eb(0x98)](_0x359875),uid2UinMap[_0x359875[_0x4f81eb(0x95)]]=_0x359875[_0x4f81eb(0x92)];}}return _0x3e313e;}static async[_0x4d614a(0x93)](_0x22cf30,_0x2f8ca2){const _0x298616=_0x4d614a;napCatCore[_0x298616(0x84)]['getBuddyService']()?.[_0x298616(0x8f)]({'friendUid':_0x22cf30['friendUid'],'reqTime':_0x22cf30[_0x298616(0x99)],'accept':_0x2f8ca2});}} \ No newline at end of file +const _0x27c185=_0x5a4c;function _0xeae3(){const _0x38369c=['3462lrkGcC','session','3312845FOGBuE','approvalFriendRequest','17669349pjbnjo','push','getFriends','532akEmam','3000662ArRTbp','buddyList','36VnpcwZ','reqTime','53956mLqVtB','uin','1943888WYaMyC','NodeIKernelBuddyListener/onBuddyListChange','10ESRPDm','CallNormalEvent','2947404WYeVmS','friendUid'];_0xeae3=function(){return _0x38369c;};return _0xeae3();}(function(_0x54f7bd,_0x1156fb){const _0x41a76c=_0x5a4c,_0x5e145=_0x54f7bd();while(!![]){try{const _0x3155da=parseInt(_0x41a76c(0xa2))/0x1*(parseInt(_0x41a76c(0xa0))/0x2)+parseInt(_0x41a76c(0xaa))/0x3*(-parseInt(_0x41a76c(0x9d))/0x4)+parseInt(_0x41a76c(0xac))/0x5+parseInt(_0x41a76c(0xa8))/0x6+parseInt(_0x41a76c(0x9e))/0x7+parseInt(_0x41a76c(0xa4))/0x8+parseInt(_0x41a76c(0x9a))/0x9*(-parseInt(_0x41a76c(0xa6))/0xa);if(_0x3155da===_0x1156fb)break;else _0x5e145['push'](_0x5e145['shift']());}catch(_0x51678c){_0x5e145['push'](_0x5e145['shift']());}}}(_0xeae3,0xa5ff0));import{napCatCore}from'@/core';import{uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';function _0x5a4c(_0x5d0147,_0xa4cd90){const _0xeae34a=_0xeae3();return _0x5a4c=function(_0x5a4ca3,_0x362525){_0x5a4ca3=_0x5a4ca3-0x99;let _0x2e7212=_0xeae34a[_0x5a4ca3];return _0x2e7212;},_0x5a4c(_0x5d0147,_0xa4cd90);}export class NTQQFriendApi{static async[_0x27c185(0x9c)](_0x3eaa41=![]){const _0x45df72=_0x27c185,_0x249ade={'WIyDA':'NodeIKernelBuddyService/getBuddyList'};let [_0x385406,_0x3155f8]=await NTEventDispatch[_0x45df72(0xa7)](_0x249ade['WIyDA'],_0x45df72(0xa5),0x1,0x1388,_0x3eaa41);const _0xeefb35=[];for(const _0xb0e917 of _0x3155f8){for(const _0x28ab47 of _0xb0e917[_0x45df72(0x9f)]){_0xeefb35[_0x45df72(0x9b)](_0x28ab47),uid2UinMap[_0x28ab47['uid']]=_0x28ab47[_0x45df72(0xa3)];}}return _0xeefb35;}static async['handleFriendRequest'](_0x2be293,_0x2bf4fd){const _0x56a1c8=_0x27c185;napCatCore[_0x56a1c8(0xab)]['getBuddyService']()?.[_0x56a1c8(0x99)]({'friendUid':_0x2be293[_0x56a1c8(0xa9)],'reqTime':_0x2be293[_0x56a1c8(0xa1)],'accept':_0x2bf4fd});}} \ 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 355db1e6..b08303c8 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x31a2b1=_0x30e2;(function(_0x4bbbe5,_0x382d3c){const _0x2cb9f8=_0x30e2,_0x279206=_0x4bbbe5();while(!![]){try{const _0x115e36=parseInt(_0x2cb9f8(0x189))/0x1+parseInt(_0x2cb9f8(0x1a8))/0x2+-parseInt(_0x2cb9f8(0x198))/0x3+parseInt(_0x2cb9f8(0x184))/0x4+parseInt(_0x2cb9f8(0x18f))/0x5*(parseInt(_0x2cb9f8(0x174))/0x6)+parseInt(_0x2cb9f8(0x180))/0x7+-parseInt(_0x2cb9f8(0x1a0))/0x8;if(_0x115e36===_0x382d3c)break;else _0x279206['push'](_0x279206['shift']());}catch(_0x4c480e){_0x279206['push'](_0x279206['shift']());}}}(_0x1265,0x9fbed));import{NTQQUserApi,napCatCore}from'@/core';function _0x30e2(_0x5869c6,_0x1454e2){const _0x1265e3=_0x1265();return _0x30e2=function(_0x30e2d2,_0x2730d2){_0x30e2d2=_0x30e2d2-0x16f;let _0x2b4e91=_0x1265e3[_0x30e2d2];return _0x2b4e91;},_0x30e2(_0x5869c6,_0x1454e2);}function _0x1265(){const _0x107641=['publishGroupBulletin','type','getGroups','errMsg','aTxYD','2041582ubuAZQ','quitGroup','qun.qq.com','CallNormalEvent','batchGetGroupFileCount','getGroupService','kgwqX','6852BZxmfW','kHSyY','getGroupIgnoreNotifies','session','createGroupFolder','groupMemberList_MainWindow','uploadGroupBulletinPic','setMemberCard','xKvez','modifyMemberCardName','NodeIKernelGroupListener/onGroupSingleScreenNotifies','NodeIKernelGroupService/getGroupList','4932655zddUaT','获取群成员列表出错,','setGroupName','deleteGroupFolder','2819532urolHY','setMemberShutUp','infos','operateSysNotify','DelGroupFileFolder','196816JCmPck','deleteGroupFile','createMemberListScene','uid','errCode','DelGroupFile','265mmrmBg','NodeIKernelGroupListener/onGroupListUpdate','GetGroupFileCount','banGroup','getRichMediaService','getNextMemberList','hWMey','forEach','uin','3688038qZpYCW','handleGroupRequest','CreatGroupFileFolder','kickMember','setGroupTitle','setGroupShutUp','result','getPSkey','6432144VYQZas','getGroupNotifies','NodeIKernelGroupService/getSingleScreenNotifies'];_0x1265=function(){return _0x107641;};return _0x1265();}import{uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQGroupApi{static async[_0x31a2b1(0x1a5)](_0x53665d=![]){const _0xa5f31e=_0x31a2b1,_0x15c22e={'xKvez':_0xa5f31e(0x17f)};let [_0x2a8f7a,_0x8f5c7c,_0x3ff70e]=await NTEventDispatch[_0xa5f31e(0x170)](_0x15c22e[_0xa5f31e(0x17c)],_0xa5f31e(0x190),0x1,0x1388,_0x53665d);return _0x3ff70e;}static async[_0x31a2b1(0x19a)](_0x10e291,_0x1ac7ab){const _0x2527ea=_0x31a2b1;return napCatCore['session'][_0x2527ea(0x193)]()[_0x2527ea(0x178)](_0x10e291,_0x1ac7ab);}static async[_0x31a2b1(0x18e)](_0x1c52cb,_0x51c482){const _0x35df9d=_0x31a2b1;return napCatCore[_0x35df9d(0x177)]['getRichMediaService']()[_0x35df9d(0x18a)](_0x1c52cb,[0x66],_0x51c482);}static async[_0x31a2b1(0x188)](_0x38ed74,_0x2397a9){const _0x298840=_0x31a2b1;return napCatCore[_0x298840(0x177)][_0x298840(0x193)]()[_0x298840(0x183)](_0x38ed74,_0x2397a9);}static async['getSingleScreenNotifies'](_0x100a48){const _0x787d9c=_0x31a2b1,_0x19b8ac={'mtAkU':_0x787d9c(0x1a2),'DeDLa':_0x787d9c(0x17e)};let [_0x1af2c8,_0xcfeac6,_0x2554b6,_0x59fcda]=await NTEventDispatch[_0x787d9c(0x170)](_0x19b8ac['mtAkU'],_0x19b8ac['DeDLa'],0x1,0x1388,![],'',_0x100a48);return _0x59fcda;}static async['getGroupMembers'](_0x2c0f04,_0x52c915=0xbb8){const _0x95c98a=_0x31a2b1,_0x5edd38={'kHSyY':function(_0x4f4c30,_0x476e3e){return _0x4f4c30!==_0x476e3e;},'BABCT':function(_0x38df53,_0x2ee402){return _0x38df53+_0x2ee402;},'TdCRM':_0x95c98a(0x181)},_0x5649b4=napCatCore[_0x95c98a(0x177)][_0x95c98a(0x172)](),_0x20ad67=_0x5649b4[_0x95c98a(0x18b)](_0x2c0f04,_0x95c98a(0x179)),_0x436dc9=await _0x5649b4[_0x95c98a(0x194)](_0x20ad67,undefined,_0x52c915);if(_0x5edd38[_0x95c98a(0x175)](_0x436dc9[_0x95c98a(0x18d)],0x0))throw _0x5edd38['BABCT'](_0x5edd38['TdCRM'],_0x436dc9[_0x95c98a(0x1a6)]);return _0x436dc9[_0x95c98a(0x19e)][_0x95c98a(0x186)][_0x95c98a(0x196)](_0x5b1a48=>{const _0x50a186=_0x95c98a;uid2UinMap[_0x5b1a48[_0x50a186(0x18c)]]=_0x5b1a48[_0x50a186(0x197)];}),_0x436dc9['result']['infos'];}static async[_0x31a2b1(0x1a1)](){}static async[_0x31a2b1(0x191)](_0x3412fd){const _0x5c96ce=_0x31a2b1;return napCatCore[_0x5c96ce(0x177)][_0x5c96ce(0x193)]()[_0x5c96ce(0x171)](_0x3412fd);}static async[_0x31a2b1(0x176)](){}static async[_0x31a2b1(0x17a)](_0x42cf7d,_0x38416d){const _0x265d94=_0x31a2b1,_0x63d82e={'kgwqX':_0x265d94(0x16f)},_0x3237b2=(await NTQQUserApi[_0x265d94(0x19f)]([_0x63d82e['kgwqX']]))[_0x63d82e[_0x265d94(0x173)]];return napCatCore[_0x265d94(0x177)]['getGroupService']()[_0x265d94(0x17a)](_0x42cf7d,_0x3237b2,_0x38416d);}static async[_0x31a2b1(0x199)](_0x4935dc,_0x13a6ae,_0x17946b){const _0x521003=_0x31a2b1;return napCatCore[_0x521003(0x177)][_0x521003(0x172)]()[_0x521003(0x187)](![],{'operateType':_0x13a6ae,'targetMsg':{'seq':_0x4935dc['seq'],'type':_0x4935dc[_0x521003(0x1a4)],'groupCode':_0x4935dc['group']['groupCode'],'postscript':_0x17946b||''}});}static async['quitGroup'](_0x57a169){const _0x3f4349=_0x31a2b1;return napCatCore[_0x3f4349(0x177)][_0x3f4349(0x172)]()[_0x3f4349(0x1a9)](_0x57a169);}static async[_0x31a2b1(0x19b)](_0x390d3a,_0x16b960,_0x19b910=![],_0x43f3ba=''){const _0x33070a=_0x31a2b1;return napCatCore['session'][_0x33070a(0x172)]()[_0x33070a(0x19b)](_0x390d3a,_0x16b960,_0x19b910,_0x43f3ba);}static async['banMember'](_0x63ae5d,_0x26c6a3){const _0x41ace1=_0x31a2b1;return napCatCore[_0x41ace1(0x177)]['getGroupService']()[_0x41ace1(0x185)](_0x63ae5d,_0x26c6a3);}static async[_0x31a2b1(0x192)](_0x160305,_0x6c642c){const _0x481dff=_0x31a2b1;return napCatCore[_0x481dff(0x177)]['getGroupService']()[_0x481dff(0x19d)](_0x160305,_0x6c642c);}static async[_0x31a2b1(0x17b)](_0x3d9384,_0xd5d79e,_0x12a19a){const _0x3c87bf=_0x31a2b1;return napCatCore['session']['getGroupService']()[_0x3c87bf(0x17d)](_0x3d9384,_0xd5d79e,_0x12a19a);}static async['setMemberRole'](_0x151660,_0x125533,_0x52cbeb){const _0x33e3cb=_0x31a2b1;return napCatCore[_0x33e3cb(0x177)][_0x33e3cb(0x172)]()['modifyMemberRole'](_0x151660,_0x125533,_0x52cbeb);}static async[_0x31a2b1(0x182)](_0x5a1351,_0x1733e8){const _0x51a53a=_0x31a2b1;return napCatCore['session'][_0x51a53a(0x172)]()['modifyGroupName'](_0x5a1351,_0x1733e8,![]);}static async[_0x31a2b1(0x19c)](_0x5b7edb,_0x279325,_0x617d5c){}static async['publishGroupBulletin'](_0x4b1479,_0x1767ee,_0x2cf3d6=undefined,_0x245a18=0x0,_0x37560a=0x0){const _0x4d5171=_0x31a2b1,_0x168127={'hWMey':_0x4d5171(0x16f),'aTxYD':function(_0x191507,_0x2c0ff9){return _0x191507(_0x2c0ff9);}},_0x3c7bba=(await NTQQUserApi[_0x4d5171(0x19f)]([_0x168127[_0x4d5171(0x195)]]))[_0x168127['hWMey']];let _0x4bdbaf={'text':_0x168127[_0x4d5171(0x1a7)](encodeURI,_0x1767ee),'picInfo':_0x2cf3d6,'oldFeedsId':'','pinned':_0x245a18,'confirmRequired':_0x37560a};return napCatCore[_0x4d5171(0x177)][_0x4d5171(0x172)]()[_0x4d5171(0x1a3)](_0x4b1479,_0x3c7bba,_0x4bdbaf);}} \ No newline at end of file +function _0x3638(){const _0x24ef13=['8048pmfrws','bDUNN','forEach','3642MTtaxF','getGroups','modifyMemberCardName','modifyMemberRole','setGroupTitle','pKYRN','NodeIKernelGroupListener/onGroupSingleScreenNotifies','type','TKBLg','1475kWSBuO','modifyGroupName','getGroupNotifies','36770zUHfHV','operateSysNotify','1qncAZR','44vrbbKD','getRichMediaService','infos','getGroupService','setGroupName','DelGroupFile','groupCode','NodeIKernelGroupService/getGroupList','session','wKwXx','getSingleScreenNotifies','387tHFIwd','errMsg','149747tVZcsI','NodeIKernelGroupListener/onGroupListUpdate','148868zBnkOs','deleteGroupFolder','qun.qq.com','7kPkrtV','peKnx','kickMember','getGroupIgnoreNotifies','setMemberRole','handleGroupRequest','uid','createGroupFolder','getPSkey','createMemberListScene','getGroupMembers','banGroup','uploadGroupBulletinPic','CreatGroupFileFolder','banMember','result','TLUok','deleteGroupFile','CallNormalEvent','setGroupShutUp','642252pIVtWX','quitGroup','333NSHzWQ','mBuym','getNextMemberList','seq','batchGetGroupFileCount','uin','setMemberCard','errCode','1809704EgoZJP'];_0x3638=function(){return _0x24ef13;};return _0x3638();}function _0x2b6a(_0x4fe85b,_0x30cecc){const _0x363835=_0x3638();return _0x2b6a=function(_0x2b6a6c,_0xa5fa5b){_0x2b6a6c=_0x2b6a6c-0xcf;let _0x92a6b9=_0x363835[_0x2b6a6c];return _0x92a6b9;},_0x2b6a(_0x4fe85b,_0x30cecc);}const _0x5c2cf0=_0x2b6a;(function(_0x3d2bd9,_0x6dd615){const _0x221b26=_0x2b6a,_0x109356=_0x3d2bd9();while(!![]){try{const _0x5b6a38=-parseInt(_0x221b26(0xf6))/0x1*(-parseInt(_0x221b26(0x106))/0x2)+parseInt(_0x221b26(0xdc))/0x3*(parseInt(_0x221b26(0xe5))/0x4)+-parseInt(_0x221b26(0xf1))/0x5*(-parseInt(_0x221b26(0xe8))/0x6)+parseInt(_0x221b26(0x109))/0x7*(-parseInt(_0x221b26(0xe4))/0x8)+-parseInt(_0x221b26(0x102))/0x9*(-parseInt(_0x221b26(0xf4))/0xa)+parseInt(_0x221b26(0xf7))/0xb*(-parseInt(_0x221b26(0xda))/0xc)+parseInt(_0x221b26(0x104))/0xd;if(_0x5b6a38===_0x6dd615)break;else _0x109356['push'](_0x109356['shift']());}catch(_0x20ed8a){_0x109356['push'](_0x109356['shift']());}}}(_0x3638,0x32554));import{NTQQUserApi,napCatCore}from'@/core';import{uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQGroupApi{static async[_0x5c2cf0(0xe9)](_0x422bc8=![]){const _0x397bfc=_0x5c2cf0,_0x21e657={'wKwXx':_0x397bfc(0xfe),'bDUNN':_0x397bfc(0x105)};let [_0x2ff26,_0x1a0e3b,_0x48b834]=await NTEventDispatch[_0x397bfc(0xd8)](_0x21e657[_0x397bfc(0x100)],_0x21e657[_0x397bfc(0xe6)],0x1,0x1388,_0x422bc8);return _0x48b834;}static async[_0x5c2cf0(0xd3)](_0x160e91,_0x1644ff){const _0x58efb5=_0x5c2cf0;return napCatCore[_0x58efb5(0xff)][_0x58efb5(0xf8)]()[_0x58efb5(0x110)](_0x160e91,_0x1644ff);}static async[_0x5c2cf0(0xfc)](_0x558f83,_0x36d1e3){const _0x497593=_0x5c2cf0;return napCatCore['session'][_0x497593(0xf8)]()[_0x497593(0xd7)](_0x558f83,[0x66],_0x36d1e3);}static async['DelGroupFileFolder'](_0x3f4b6b,_0x127248){const _0x1583ff=_0x5c2cf0;return napCatCore[_0x1583ff(0xff)][_0x1583ff(0xf8)]()[_0x1583ff(0x107)](_0x3f4b6b,_0x127248);}static async[_0x5c2cf0(0x101)](_0x34d033){const _0x4c1317=_0x5c2cf0,_0x44c7a1={'TKBLg':'NodeIKernelGroupService/getSingleScreenNotifies','mBuym':_0x4c1317(0xee)};let [_0x378053,_0x200fdf,_0x1a3187,_0x2a71f9]=await NTEventDispatch[_0x4c1317(0xd8)](_0x44c7a1[_0x4c1317(0xf0)],_0x44c7a1[_0x4c1317(0xdd)],0x1,0x1388,![],'',_0x34d033);return _0x2a71f9;}static async[_0x5c2cf0(0xd0)](_0x4cf9d0,_0x65587c=0xbb8){const _0x4901fb=_0x5c2cf0,_0x1b2b99={'pKYRN':'获取群成员列表出错,'},_0x42d883=napCatCore['session'][_0x4901fb(0xfa)](),_0xf8c143=_0x42d883[_0x4901fb(0xcf)](_0x4cf9d0,'groupMemberList_MainWindow'),_0x58ec2c=await _0x42d883[_0x4901fb(0xde)](_0xf8c143,undefined,_0x65587c);if(_0x58ec2c[_0x4901fb(0xe3)]!==0x0)throw _0x1b2b99[_0x4901fb(0xed)]+_0x58ec2c[_0x4901fb(0x103)];return _0x58ec2c[_0x4901fb(0xd5)][_0x4901fb(0xf9)][_0x4901fb(0xe7)](_0x128e40=>{const _0x54087e=_0x4901fb;uid2UinMap[_0x128e40[_0x54087e(0x10f)]]=_0x128e40[_0x54087e(0xe1)];}),_0x58ec2c[_0x4901fb(0xd5)][_0x4901fb(0xf9)];}static async[_0x5c2cf0(0xf3)](){}static async['GetGroupFileCount'](_0x596f4b){const _0x1ebf96=_0x5c2cf0;return napCatCore['session'][_0x1ebf96(0xf8)]()[_0x1ebf96(0xe0)](_0x596f4b);}static async[_0x5c2cf0(0x10c)](){}static async[_0x5c2cf0(0xd2)](_0x3e7a48,_0x5b1cc1){const _0x4b9f55=_0x5c2cf0,_0x4cd34d={'TySUk':_0x4b9f55(0x108)},_0x5aeb4a=(await NTQQUserApi[_0x4b9f55(0x111)]([_0x4cd34d['TySUk']]))[_0x4b9f55(0x108)];return napCatCore[_0x4b9f55(0xff)][_0x4b9f55(0xfa)]()[_0x4b9f55(0xd2)](_0x3e7a48,_0x5aeb4a,_0x5b1cc1);}static async[_0x5c2cf0(0x10e)](_0x3a3647,_0x2147c0,_0xb3cf3e){const _0x161363=_0x5c2cf0,_0x2da3c4={'peKnx':function(_0x26ae38,_0x17bcc1){return _0x26ae38||_0x17bcc1;}};return napCatCore[_0x161363(0xff)][_0x161363(0xfa)]()[_0x161363(0xf5)](![],{'operateType':_0x2147c0,'targetMsg':{'seq':_0x3a3647[_0x161363(0xdf)],'type':_0x3a3647[_0x161363(0xef)],'groupCode':_0x3a3647['group'][_0x161363(0xfd)],'postscript':_0x2da3c4[_0x161363(0x10a)](_0xb3cf3e,'')}});}static async[_0x5c2cf0(0xdb)](_0xb28aa6){const _0x1fc141=_0x5c2cf0;return napCatCore['session'][_0x1fc141(0xfa)]()[_0x1fc141(0xdb)](_0xb28aa6);}static async[_0x5c2cf0(0x10b)](_0x3fc910,_0x254b0b,_0x4ed640=![],_0x51f88e=''){const _0x18da6c=_0x5c2cf0;return napCatCore[_0x18da6c(0xff)][_0x18da6c(0xfa)]()[_0x18da6c(0x10b)](_0x3fc910,_0x254b0b,_0x4ed640,_0x51f88e);}static async[_0x5c2cf0(0xd4)](_0x4213a4,_0xc497c6){const _0x94358e=_0x5c2cf0;return napCatCore[_0x94358e(0xff)][_0x94358e(0xfa)]()['setMemberShutUp'](_0x4213a4,_0xc497c6);}static async[_0x5c2cf0(0xd1)](_0x4f4d08,_0x4a119b){const _0x12f3ea=_0x5c2cf0;return napCatCore[_0x12f3ea(0xff)][_0x12f3ea(0xfa)]()[_0x12f3ea(0xd9)](_0x4f4d08,_0x4a119b);}static async[_0x5c2cf0(0xe2)](_0x18d474,_0x1d6594,_0x16015f){const _0x2b5179=_0x5c2cf0;return napCatCore[_0x2b5179(0xff)]['getGroupService']()[_0x2b5179(0xea)](_0x18d474,_0x1d6594,_0x16015f);}static async[_0x5c2cf0(0x10d)](_0x515054,_0x5dc8f2,_0x30b836){const _0x1e831d=_0x5c2cf0;return napCatCore[_0x1e831d(0xff)]['getGroupService']()[_0x1e831d(0xeb)](_0x515054,_0x5dc8f2,_0x30b836);}static async[_0x5c2cf0(0xfb)](_0x2b9f59,_0x3631a7){const _0x456285=_0x5c2cf0;return napCatCore['session'][_0x456285(0xfa)]()[_0x456285(0xf2)](_0x2b9f59,_0x3631a7,![]);}static async[_0x5c2cf0(0xec)](_0x2bb399,_0x3f8fd7,_0x31a1f9){}static async['publishGroupBulletin'](_0x1ad6c9,_0x2da5b8,_0x559066=undefined,_0x42080e=0x0,_0x915e02=0x0){const _0x36afad=_0x5c2cf0,_0x425bf8={'UQVEx':'qun.qq.com','TLUok':function(_0x549da1,_0x51d6bf){return _0x549da1(_0x51d6bf);}},_0x3aa3f4=(await NTQQUserApi[_0x36afad(0x111)]([_0x425bf8['UQVEx']]))[_0x36afad(0x108)];let _0x3f2ca0={'text':_0x425bf8[_0x36afad(0xd6)](encodeURI,_0x2da5b8),'picInfo':_0x559066,'oldFeedsId':'','pinned':_0x42080e,'confirmRequired':_0x915e02};return napCatCore[_0x36afad(0xff)][_0x36afad(0xfa)]()['publishGroupBulletin'](_0x1ad6c9,_0x3aa3f4,_0x3f2ca0);}} \ 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 64747ce8..087ba874 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x10c93e,_0x8a35ee){var _0x34e403=_0x2179,_0x293caa=_0x10c93e();while(!![]){try{var _0x27f966=-parseInt(_0x34e403(0x69))/0x1+parseInt(_0x34e403(0x6d))/0x2+-parseInt(_0x34e403(0x67))/0x3*(parseInt(_0x34e403(0x6c))/0x4)+parseInt(_0x34e403(0x68))/0x5*(-parseInt(_0x34e403(0x6a))/0x6)+-parseInt(_0x34e403(0x64))/0x7*(parseInt(_0x34e403(0x6f))/0x8)+parseInt(_0x34e403(0x6b))/0x9*(-parseInt(_0x34e403(0x66))/0xa)+parseInt(_0x34e403(0x65))/0xb*(parseInt(_0x34e403(0x6e))/0xc);if(_0x27f966===_0x8a35ee)break;else _0x293caa['push'](_0x293caa['shift']());}catch(_0x5e43de){_0x293caa['push'](_0x293caa['shift']());}}}(_0x4081,0x824ec));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x2179(_0x23e756,_0x2e99a9){var _0x40814e=_0x4081();return _0x2179=function(_0x217956,_0x39d2cb){_0x217956=_0x217956-0x64;var _0x42e7ab=_0x40814e[_0x217956];return _0x42e7ab;},_0x2179(_0x23e756,_0x2e99a9);}function _0x4081(){var _0x17d96a=['1365088XqpduL','2016976QPUPmG','852VkXjic','8qqxltC','1863463EttXXx','216183gnchEc','1690wZqsVq','3qPGSPr','5wKVTAf','190925tDQMCO','4776396cKKpxL','14679JGMoQt'];_0x4081=function(){return _0x17d96a;};return _0x4081();}export*from'./system'; \ No newline at end of file +(function(_0x20bc9f,_0x1a17d7){var _0xdb4180=_0x3f7b,_0xedd61f=_0x20bc9f();while(!![]){try{var _0x5c9507=parseInt(_0xdb4180(0x98))/0x1*(-parseInt(_0xdb4180(0x95))/0x2)+parseInt(_0xdb4180(0x9a))/0x3+parseInt(_0xdb4180(0x9b))/0x4*(parseInt(_0xdb4180(0x96))/0x5)+parseInt(_0xdb4180(0x99))/0x6+-parseInt(_0xdb4180(0x9c))/0x7+-parseInt(_0xdb4180(0x97))/0x8+parseInt(_0xdb4180(0x9d))/0x9;if(_0x5c9507===_0x1a17d7)break;else _0xedd61f['push'](_0xedd61f['shift']());}catch(_0x725596){_0xedd61f['push'](_0xedd61f['shift']());}}}(_0x41db,0x225c2));export*from'./file';function _0x3f7b(_0x351df5,_0x4a8f78){var _0x41db22=_0x41db();return _0x3f7b=function(_0x3f7bb4,_0x282761){_0x3f7bb4=_0x3f7bb4-0x95;var _0x1546dc=_0x41db22[_0x3f7bb4];return _0x1546dc;},_0x3f7b(_0x351df5,_0x4a8f78);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';function _0x41db(){var _0x81c157=['8hExUeY','454200RhUAZn','498996tIfZPe','4BqjXpg','937223YWNcPO','1462995jgliWA','51438gQeQaD','1119105FbhabX','1184232Zuzdho'];_0x41db=function(){return _0x81c157;};return _0x41db();}export*from'./webapi';export*from'./sign';export*from'./system'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 5d53784e..a5b43774 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0xd58e9f=_0x56cb;(function(_0x42dd63,_0x136564){const _0x54f6e1=_0x56cb,_0x11bb5f=_0x42dd63();while(!![]){try{const _0x17c8ac=-parseInt(_0x54f6e1(0x1e7))/0x1*(parseInt(_0x54f6e1(0x217))/0x2)+parseInt(_0x54f6e1(0x21e))/0x3*(parseInt(_0x54f6e1(0x206))/0x4)+-parseInt(_0x54f6e1(0x1eb))/0x5+-parseInt(_0x54f6e1(0x210))/0x6*(parseInt(_0x54f6e1(0x213))/0x7)+parseInt(_0x54f6e1(0x207))/0x8*(parseInt(_0x54f6e1(0x1e4))/0x9)+-parseInt(_0x54f6e1(0x20a))/0xa+parseInt(_0x54f6e1(0x1f6))/0xb;if(_0x17c8ac===_0x136564)break;else _0x11bb5f['push'](_0x11bb5f['shift']());}catch(_0x36f9a4){_0x11bb5f['push'](_0x11bb5f['shift']());}}}(_0x14db,0xa7fbd));import{selfInfo}from'@/core/data';function _0x56cb(_0x3b71ea,_0x227ea7){const _0x14dbf6=_0x14db();return _0x56cb=function(_0x56cbb2,_0x4067ed){_0x56cbb2=_0x56cbb2-0x1e4;let _0x1c7aa1=_0x14dbf6[_0x56cbb2];return _0x1c7aa1;},_0x56cb(_0x3b71ea,_0x227ea7);}import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';function _0x14db(){const _0x3be266=['app','2EFkeCi','getMsgService','map','set','getMsgsByMsgId','getMsgsBySeqAndCount','msgId','621009EOsCAe','SUVZL','setMsgRead','cFujH','onLoginSuccess','bytesData','CjRZz','getRichMediaService','forwardMsg','9zjnJQl','uRkTC','bZOgL','662557qRTwAF','转发消息超时','wSFJt','peerUid','4634885sgplzv','setEmojiLike','nick','MHdJW','JFQUJ','item','NWcpy','sendMsg','catch','activateChatAndGetHistory','iFjLs','17791807IRpSxl','sendStatus','forEach','setMsgEmojiLikes','multiForwardMsgWithComment','session','rUNvu','tiJHl','发送超时','arkElement','toString','recallMsg','getGroupFileList','chatType','parse','delete','20FIRPPI','7209704QXxUlX','zNuhL','length','3579870ndiAjW','com.tencent.multimsg','senderUid','then','uid','multiForwardMsg','5508498nRGneL','hkgmW','getMultiMsg','7YdGAzP','find','AOpLP'];_0x14db=function(){return _0x3be266;};return _0x14db();}import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},GroupFileInfoUpdateTasks=new Map(),sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onGroupFileInfoUpdate']=_0x335385=>{const _0x173fb2=_0x56cb;for(const [_0x444e70,_0x4f1426]of GroupFileInfoUpdateTasks){_0x4f1426(_0x335385),GroupFileInfoUpdateTasks[_0x173fb2(0x205)](_0x444e70);}},msgListener['onAddSendMsg']=_0x55e990=>{const _0x4c6a8b=_0x56cb,_0x21a7bd={'hTIRv':function(_0x2a5e6a,_0x3331a2){return _0x2a5e6a instanceof _0x3331a2;}};for(const [_0x23e82f,_0x3e0fbf]of sentMsgTasks){_0x3e0fbf(_0x55e990),sentMsgTasks[_0x4c6a8b(0x205)](_0x23e82f);}if(sendMessagePool[_0x55e990[_0x4c6a8b(0x1ea)]]){const _0x440a9f=sendMessagePool[_0x55e990[_0x4c6a8b(0x1ea)]]?.(_0x55e990);_0x21a7bd['hTIRv'](_0x440a9f,Promise)&&_0x440a9f[_0x4c6a8b(0x20d)]()[_0x4c6a8b(0x1f3)](logError);}},msgListener['onMsgInfoListUpdate']=_0x166c99=>{const _0x20b672=_0x56cb,_0x289689={'bZOgL':function(_0x104ee6,_0x594bec){return _0x104ee6(_0x594bec);}};_0x166c99[_0x20b672(0x1f8)](_0x1b81cb=>{const _0x34da94=_0x20b672,_0x1974a2={'wSFJt':function(_0x16799c,_0x428916){const _0x453634=_0x56cb;return _0x289689[_0x453634(0x1e6)](_0x16799c,_0x428916);}};new Promise((_0x3d46b9,_0x384ec4)=>{const _0x17ee96=_0x56cb;for(const _0xda943f in sendSuccessCBMap){const _0x274cff=sendSuccessCBMap[_0xda943f],_0x5a6be7=_0x1974a2[_0x17ee96(0x1e9)](_0x274cff,_0x1b81cb),_0x5b68e7=_0x112514=>{_0x112514&&delete sendSuccessCBMap[_0xda943f];};_0x5a6be7 instanceof Promise?_0x5a6be7['then'](_0x5b68e7):_0x1974a2[_0x17ee96(0x1e9)](_0x5b68e7,_0x5a6be7);}})[_0x34da94(0x20d)]()[_0x34da94(0x1f3)](log);});},setTimeout(()=>{const _0x2c6f6b=_0x56cb;napCatCore[_0x2c6f6b(0x222)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0xd58e9f(0x1ec)](_0x20beb3,_0x2eeba9,_0x2c6ac1,_0x3848f1=!![]){const _0x184700=_0xd58e9f,_0x33331f={'jVVXy':function(_0x42af0f,_0x3fe8a0){return _0x42af0f>_0x3fe8a0;}};return _0x2c6ac1=_0x2c6ac1[_0x184700(0x200)](),napCatCore[_0x184700(0x1fb)][_0x184700(0x218)]()[_0x184700(0x1f9)](_0x20beb3,_0x2eeba9,_0x2c6ac1,_0x33331f['jVVXy'](_0x2c6ac1[_0x184700(0x209)],0x3)?'2':'1',_0x3848f1);}static async[_0xd58e9f(0x212)](_0xa6194d,_0x2ddbb3,_0x3a43e7){const _0x45236c=_0xd58e9f;return napCatCore['session'][_0x45236c(0x218)]()[_0x45236c(0x212)](_0xa6194d,_0x2ddbb3,_0x3a43e7);}static async[_0xd58e9f(0x21b)](_0x212ee8,_0x2bd6c9){const _0x245888=_0xd58e9f;return await napCatCore[_0x245888(0x1fb)][_0x245888(0x218)]()[_0x245888(0x21b)](_0x212ee8,_0x2bd6c9);}static async[_0xd58e9f(0x21c)](_0x5c5ee6,_0x1eefb6,_0x474b0a,_0x9f747,_0x5bde6e){const _0x39c437=_0xd58e9f;return await napCatCore[_0x39c437(0x1fb)][_0x39c437(0x218)]()['getMsgsBySeqAndCount'](_0x5c5ee6,_0x1eefb6,_0x474b0a,_0x9f747,_0x5bde6e);}static async['activateChat'](_0x5c045a){}static async[_0xd58e9f(0x1f4)](_0x1a376d){}static async[_0xd58e9f(0x220)](_0x4b841b){const _0x58def2=_0xd58e9f;return napCatCore['session'][_0x58def2(0x218)]()['setMsgRead'](_0x4b841b);}static async[_0xd58e9f(0x202)](_0x38627f,_0x49402d){const _0x1305c0={'tiJHl':function(_0x459163,_0x1d76a2){return _0x459163(_0x1d76a2);},'pcXdB':function(_0xe2d62f){return _0xe2d62f();}};return new Promise(async(_0x4daf69,_0x8702c8)=>{const _0x27fb28=_0x56cb,_0xc64c7f={'iFjLs':function(_0x4fae40,_0x42789b){return _0x4fae40(_0x42789b);}};let _0x6a5412=![];setTimeout(()=>{const _0x317f66=_0x56cb;!_0x6a5412&&_0x1305c0[_0x317f66(0x1fd)](_0x8702c8,'获取群文件列表超时');},0x1388);const _0x2c4eb8=_0x204fa3=>{const _0x38450a=_0x56cb;_0x6a5412=!![],_0xc64c7f[_0x38450a(0x1f5)](_0x4daf69,_0x204fa3[_0x38450a(0x1f0)]);};GroupFileInfoUpdateTasks[_0x27fb28(0x21a)](_0x1305c0['pcXdB'](randomUUID),_0x2c4eb8),await napCatCore[_0x27fb28(0x1fb)][_0x27fb28(0x225)]()['getGroupFileList'](_0x38627f,_0x49402d);});}static async['getMsgHistory'](_0x4df171,_0x5377c9,_0x5d072b){const _0x8470db=_0xd58e9f;return napCatCore['session'][_0x8470db(0x218)]()['getMsgsIncludeSelf'](_0x4df171,_0x5377c9,_0x5d072b,!![]);}static async['fetchRecentContact'](){}static async[_0xd58e9f(0x201)](_0x390ce0,_0x25b45){const _0x1d428a=_0xd58e9f;await napCatCore[_0x1d428a(0x1fb)][_0x1d428a(0x218)]()[_0x1d428a(0x201)]({'chatType':_0x390ce0[_0x1d428a(0x203)],'peerUid':_0x390ce0[_0x1d428a(0x1ea)]},_0x25b45);}static async[_0xd58e9f(0x1f2)](_0x35793d,_0x55b297,_0x30f483=!![],_0x3a62da=0x2710){const _0x4c4c2a=_0xd58e9f,_0x515cc4={'hkgmW':function(_0x52c75f,_0x271ad3){return _0x52c75f>_0x271ad3;},'AOpLP':_0x4c4c2a(0x1fe),'jbTLr':function(_0x20fed8,_0x3dbbd5){return _0x20fed8(_0x3dbbd5);},'CjRZz':function(_0x1a5ac9){return _0x1a5ac9();},'lHOnO':function(_0x1ab332,_0x114475){return _0x1ab332===_0x114475;},'rUNvu':function(_0x4c85ed,_0x4e06c5){return _0x4c85ed===_0x4e06c5;},'oCZhr':function(_0x1dcb2e){return _0x1dcb2e();}},_0x645678=_0x35793d['peerUid'];let _0x2e6af6=0x0;const _0x539662=async()=>{const _0x19765d=_0x4c4c2a;if(_0x515cc4[_0x19765d(0x211)](_0x2e6af6,_0x3a62da))throw _0x515cc4[_0x19765d(0x215)];const _0x23b179=sendMessagePool[_0x35793d[_0x19765d(0x1ea)]];if(_0x23b179)return await _0x515cc4['jbTLr'](sleep,0x1f4),_0x2e6af6+=0x1f4,await _0x515cc4[_0x19765d(0x224)](_0x539662);else return;};return await _0x539662(),new Promise((_0xbeb577,_0x58c354)=>{const _0x2ae6c7=_0x4c4c2a;let _0xfb9f69=![],_0xea145f=null;const _0x2c6929=_0x515cc4['oCZhr'](randomUUID);sendSuccessCBMap[_0x2c6929]=_0x52c157=>{const _0x2e64c3=_0x56cb;if(_0x515cc4['lHOnO'](_0x52c157[_0x2e64c3(0x21d)],_0xea145f?.['msgId'])){if(_0x515cc4[_0x2e64c3(0x1fc)](_0x52c157[_0x2e64c3(0x1f7)],0x2))return delete sendSuccessCBMap[_0x2c6929],_0xfb9f69=!![],_0xbeb577(_0x52c157),!![];return![];}return![];},sendMessagePool[_0x645678]=async _0x51b898=>{delete sendMessagePool[_0x645678],_0xea145f=_0x51b898;},setTimeout(()=>{const _0x5dc121=_0x56cb;if(_0xfb9f69)return;delete sendMessagePool[_0x645678],delete sendSuccessCBMap[_0x2c6929],_0x58c354(_0x515cc4[_0x5dc121(0x215)]);},_0x3a62da);const _0x551980=napCatCore[_0x2ae6c7(0x1fb)][_0x2ae6c7(0x218)]()[_0x2ae6c7(0x1f2)]('0',_0x35793d,_0x55b297,new Map());});}static async[_0xd58e9f(0x226)](_0x3e4dc6,_0x35b15a,_0x48777c){const _0x3b5cfa=_0xd58e9f;return napCatCore[_0x3b5cfa(0x1fb)]['getMsgService']()['forwardMsg'](_0x48777c,_0x3e4dc6,[_0x35b15a],new Map());}static async[_0xd58e9f(0x20f)](_0x4f4938,_0x2f90bc,_0x1eb8e0){const _0x375a35=_0xd58e9f,_0x168213={'MHdJW':function(_0x3d6176,_0x1ab865){return _0x3d6176!=_0x1ab865;},'cFujH':function(_0x302623,_0x1081ed){return _0x302623==_0x1081ed;},'zNuhL':function(_0x4e9ddf,_0x4bd3a9){return _0x4e9ddf(_0x4bd3a9);}},_0xe1d91a=_0x1eb8e0[_0x375a35(0x219)](_0x19b9d9=>{const _0x4bab4f=_0x375a35;return{'msgId':_0x19b9d9,'senderShowName':selfInfo[_0x4bab4f(0x1ed)]};});return new Promise((_0xe7ca02,_0x5c90bb)=>{const _0x44ca52=_0x375a35,_0x5358ff={'NWcpy':function(_0x2d909a,_0x5ee08b){const _0x2c4b7e=_0x56cb;return _0x168213[_0x2c4b7e(0x1ee)](_0x2d909a,_0x5ee08b);},'LZgui':_0x44ca52(0x20b),'JFQUJ':function(_0x57d866,_0x11623a){const _0x4f2599=_0x44ca52;return _0x168213[_0x4f2599(0x221)](_0x57d866,_0x11623a);},'uRkTC':function(_0x55d335,_0x4d4910){return _0x55d335==_0x4d4910;},'SUVZL':function(_0x859d0b,_0xfbeccf){const _0x118b52=_0x44ca52;return _0x168213[_0x118b52(0x208)](_0x859d0b,_0xfbeccf);},'hIgFT':function(_0x5a371d,_0xb07f9e){return _0x168213['zNuhL'](_0x5a371d,_0xb07f9e);}};let _0x3432b6=![];const _0x562142=_0x36e435=>{const _0x1e48c1=_0x44ca52,_0x45b2da=_0x36e435['elements'][_0x1e48c1(0x214)](_0x404fc0=>_0x404fc0[_0x1e48c1(0x1ff)]);if(!_0x45b2da)return;const _0x1dddd5=JSON[_0x1e48c1(0x204)](_0x45b2da['arkElement'][_0x1e48c1(0x223)]);if(_0x5358ff[_0x1e48c1(0x1f1)](_0x1dddd5[_0x1e48c1(0x216)],_0x5358ff['LZgui']))return;_0x5358ff[_0x1e48c1(0x1ef)](_0x36e435['peerUid'],_0x2f90bc['peerUid'])&&_0x5358ff[_0x1e48c1(0x1e5)](_0x36e435[_0x1e48c1(0x20c)],selfInfo[_0x1e48c1(0x20e)])&&(_0x3432b6=!![],_0x5358ff[_0x1e48c1(0x21f)](_0xe7ca02,_0x36e435));};sentMsgTasks['set'](randomUUID(),_0x562142),setTimeout(()=>{const _0x2b801d=_0x44ca52;!_0x3432b6&&_0x5358ff['hIgFT'](_0x5c90bb,_0x2b801d(0x1e8));},0x1388),napCatCore['session']['getMsgService']()[_0x44ca52(0x1fa)](_0xe1d91a,_0x4f4938,_0x2f90bc,[],new Map());});}} \ No newline at end of file +const _0x582727=_0x456c;(function(_0x1feabc,_0x1d068b){const _0x41a86e=_0x456c,_0x5c4a86=_0x1feabc();while(!![]){try{const _0xcbb275=parseInt(_0x41a86e(0x90))/0x1*(-parseInt(_0x41a86e(0x8f))/0x2)+parseInt(_0x41a86e(0xaf))/0x3+-parseInt(_0x41a86e(0xb1))/0x4*(-parseInt(_0x41a86e(0xc4))/0x5)+parseInt(_0x41a86e(0xa7))/0x6+parseInt(_0x41a86e(0xb2))/0x7*(-parseInt(_0x41a86e(0x8a))/0x8)+-parseInt(_0x41a86e(0xa9))/0x9*(parseInt(_0x41a86e(0xc7))/0xa)+parseInt(_0x41a86e(0xca))/0xb*(parseInt(_0x41a86e(0xcb))/0xc);if(_0xcbb275===_0x1d068b)break;else _0x5c4a86['push'](_0x5c4a86['shift']());}catch(_0x599b14){_0x5c4a86['push'](_0x5c4a86['shift']());}}}(_0x3ff3,0x5f563));import{selfInfo}from'@/core/data';function _0x456c(_0x5c4917,_0x416739){const _0x3ff356=_0x3ff3();return _0x456c=function(_0x456cd6,_0x2913bf){_0x456cd6=_0x456cd6-0x89;let _0x8db5b5=_0x3ff356[_0x456cd6];return _0x8db5b5;},_0x456c(_0x5c4917,_0x416739);}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={},GroupFileInfoUpdateTasks=new Map(),sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onGroupFileInfoUpdate']=_0x532ccd=>{const _0x55c2c2=_0x456c,_0x4a088d={'TKYeb':function(_0x5d0d54,_0x48ed5a){return _0x5d0d54(_0x48ed5a);}};for(const [_0x5d94fb,_0x3bca3a]of GroupFileInfoUpdateTasks){_0x4a088d[_0x55c2c2(0xa2)](_0x3bca3a,_0x532ccd),GroupFileInfoUpdateTasks['delete'](_0x5d94fb);}},msgListener[_0x582727(0xc9)]=_0x485de7=>{const _0x7086d2=_0x582727,_0x2a70ac={'YXiJn':function(_0x26bc05,_0x4c66bd){return _0x26bc05 instanceof _0x4c66bd;}};for(const [_0x21f425,_0xb7b785]of sentMsgTasks){_0xb7b785(_0x485de7),sentMsgTasks['delete'](_0x21f425);}if(sendMessagePool[_0x485de7[_0x7086d2(0x98)]]){const _0x5d6446=sendMessagePool[_0x485de7[_0x7086d2(0x98)]]?.(_0x485de7);_0x2a70ac['YXiJn'](_0x5d6446,Promise)&&_0x5d6446[_0x7086d2(0x8b)]()[_0x7086d2(0xa4)](logError);}},msgListener['onMsgInfoListUpdate']=_0x5af27d=>{const _0x1190a9=_0x582727,_0x38a059={'zEhEZ':function(_0x419737,_0x5691f4){return _0x419737(_0x5691f4);}};_0x5af27d[_0x1190a9(0x9d)](_0xa79ea5=>{const _0xb96f95=_0x1190a9;new Promise((_0x232546,_0x523831)=>{const _0x5c9dff=_0x456c;for(const _0x3b277f in sendSuccessCBMap){const _0x2655d7=sendSuccessCBMap[_0x3b277f],_0x49f79c=_0x38a059[_0x5c9dff(0xbe)](_0x2655d7,_0xa79ea5),_0x23a8c3=_0x49af8c=>{_0x49af8c&&delete sendSuccessCBMap[_0x3b277f];};_0x49f79c instanceof Promise?_0x49f79c[_0x5c9dff(0x8b)](_0x23a8c3):_0x38a059['zEhEZ'](_0x23a8c3,_0x49f79c);}})[_0xb96f95(0x8b)]()['catch'](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async['setEmojiLike'](_0x2c2954,_0x8af953,_0x505d89,_0x4b5fb2=!![]){const _0x18cd6b=_0x582727,_0x2ea831={'HffCn':function(_0xb3026f,_0xe61535){return _0xb3026f>_0xe61535;}};return _0x505d89=_0x505d89[_0x18cd6b(0xb3)](),napCatCore[_0x18cd6b(0xac)][_0x18cd6b(0x91)]()['setMsgEmojiLikes'](_0x2c2954,_0x8af953,_0x505d89,_0x2ea831[_0x18cd6b(0xcc)](_0x505d89[_0x18cd6b(0x89)],0x3)?'2':'1',_0x4b5fb2);}static async['getMultiMsg'](_0x67225,_0x1ab73c,_0x2fc53b){const _0x47320e=_0x582727;return napCatCore[_0x47320e(0xac)][_0x47320e(0x91)]()[_0x47320e(0x92)](_0x67225,_0x1ab73c,_0x2fc53b);}static async[_0x582727(0xba)](_0x5dd06c,_0x4faa7f){const _0x1a16d1=_0x582727;return await napCatCore[_0x1a16d1(0xac)][_0x1a16d1(0x91)]()['getMsgsByMsgId'](_0x5dd06c,_0x4faa7f);}static async[_0x582727(0x9a)](_0x4121d1,_0x587377,_0x3c53fb,_0x2a5f2d,_0xf1971c){const _0x524106=_0x582727;return await napCatCore[_0x524106(0xac)][_0x524106(0x91)]()[_0x524106(0x9a)](_0x4121d1,_0x587377,_0x3c53fb,_0x2a5f2d,_0xf1971c);}static async['activateChat'](_0x15a104){}static async[_0x582727(0x8c)](_0xb89eea){}static async['setMsgRead'](_0x4d0843){const _0x2cc493=_0x582727;return napCatCore[_0x2cc493(0xac)]['getMsgService']()[_0x2cc493(0x95)](_0x4d0843);}static async[_0x582727(0xb9)](_0x25df7d,_0x4cb322){const _0xbe866f={'vOTNZ':function(_0x3b4231,_0x5e657c){return _0x3b4231(_0x5e657c);},'MiNNt':function(_0x266a8b,_0x488682,_0x44efbd){return _0x266a8b(_0x488682,_0x44efbd);},'asawg':function(_0xeff2b4){return _0xeff2b4();}};return new Promise(async(_0x460cf4,_0x90f076)=>{const _0x3c72d6=_0x456c,_0x2ce7cc={'ptZLq':function(_0x1a4847,_0x2f444b){const _0x16bd44=_0x456c;return _0xbe866f[_0x16bd44(0xb8)](_0x1a4847,_0x2f444b);}};let _0x2971a2=![];_0xbe866f[_0x3c72d6(0xad)](setTimeout,()=>{const _0x472143=_0x3c72d6;!_0x2971a2&&_0x90f076(_0x472143(0x99));},0x1388);const _0x4eabd2=_0x322010=>{const _0x236ad9=_0x3c72d6;_0x2971a2=!![],_0x2ce7cc['ptZLq'](_0x460cf4,_0x322010[_0x236ad9(0x8e)]);};GroupFileInfoUpdateTasks['set'](_0xbe866f[_0x3c72d6(0xb6)](randomUUID),_0x4eabd2),await napCatCore[_0x3c72d6(0xac)]['getRichMediaService']()[_0x3c72d6(0xb9)](_0x25df7d,_0x4cb322);});}static async[_0x582727(0xa8)](_0x25de16,_0x2d2cf5,_0x3fb060){const _0x4fffc7=_0x582727;return napCatCore[_0x4fffc7(0xac)][_0x4fffc7(0x91)]()[_0x4fffc7(0xab)](_0x25de16,_0x2d2cf5,_0x3fb060,!![]);}static async['fetchRecentContact'](){}static async['recallMsg'](_0x38de82,_0x33e18a){const _0x5e6756=_0x582727;await napCatCore[_0x5e6756(0xac)][_0x5e6756(0x91)]()[_0x5e6756(0xc3)]({'chatType':_0x38de82[_0x5e6756(0xc6)],'peerUid':_0x38de82[_0x5e6756(0x98)]},_0x33e18a);}static async[_0x582727(0x8d)](_0x233cf8,_0x505cd1,_0x1997ec=!![],_0x44867c=0x2710){const _0x4c71fe=_0x582727,_0x3d4758={'IklQo':function(_0x1e8622,_0x388755){return _0x1e8622>_0x388755;},'cBYei':_0x4c71fe(0xb0),'TYZQT':function(_0x1dec20,_0x2793b2){return _0x1dec20(_0x2793b2);},'AtnEZ':function(_0x3cd5d4,_0x11334f){return _0x3cd5d4===_0x11334f;},'JEkWk':function(_0x479c78,_0x48632d){return _0x479c78===_0x48632d;},'ZovcH':function(_0x33599c,_0x28f47c){return _0x33599c(_0x28f47c);},'eLRbt':function(_0x42835b){return _0x42835b();},'GjqeC':function(_0xe26119,_0xf38cf,_0x16bf4c){return _0xe26119(_0xf38cf,_0x16bf4c);}},_0x1ea47b=_0x233cf8[_0x4c71fe(0x98)];let _0x1f31f0=0x0;const _0x146daf=async()=>{const _0x21edc3=_0x4c71fe;if(_0x3d4758[_0x21edc3(0xc0)](_0x1f31f0,_0x44867c))throw _0x3d4758[_0x21edc3(0xb7)];const _0x17d927=sendMessagePool[_0x233cf8['peerUid']];if(_0x17d927)return await _0x3d4758[_0x21edc3(0x9e)](sleep,0x1f4),_0x1f31f0+=0x1f4,await _0x146daf();else return;};return await _0x146daf(),new Promise((_0x84915d,_0xfc04fc)=>{const _0x22ef48=_0x4c71fe;let _0x317c26=![],_0x24d215=null;const _0x408b08=_0x3d4758['eLRbt'](randomUUID);sendSuccessCBMap[_0x408b08]=_0x43ac48=>{const _0x66d1c9=_0x456c;if(_0x3d4758['AtnEZ'](_0x43ac48[_0x66d1c9(0xc2)],_0x24d215?.['msgId'])){if(_0x3d4758['JEkWk'](_0x43ac48[_0x66d1c9(0xae)],0x2))return delete sendSuccessCBMap[_0x408b08],_0x317c26=!![],_0x3d4758['TYZQT'](_0x84915d,_0x43ac48),!![];return![];}return![];},sendMessagePool[_0x1ea47b]=async _0x691707=>{delete sendMessagePool[_0x1ea47b],_0x24d215=_0x691707;},_0x3d4758[_0x22ef48(0xc5)](setTimeout,()=>{const _0x505650=_0x22ef48;if(_0x317c26)return;delete sendMessagePool[_0x1ea47b],delete sendSuccessCBMap[_0x408b08],_0x3d4758[_0x505650(0xb5)](_0xfc04fc,_0x3d4758['cBYei']);},_0x44867c);const _0x5e7a14=napCatCore['session']['getMsgService']()[_0x22ef48(0x8d)]('0',_0x233cf8,_0x505cd1,new Map());});}static async['forwardMsg'](_0x4ff8b3,_0x11f1e1,_0x1d0fc1){const _0x1661ca=_0x582727;return napCatCore[_0x1661ca(0xac)][_0x1661ca(0x91)]()[_0x1661ca(0x94)](_0x1d0fc1,_0x4ff8b3,[_0x11f1e1],new Map());}static async[_0x582727(0xa5)](_0x3c01f6,_0xf2fa21,_0x55df8d){const _0x319477=_0x582727,_0x34741d={'tTrYZ':'转发消息超时','OylWu':function(_0xe42d4b,_0x15278d){return _0xe42d4b!=_0x15278d;},'bUYqS':_0x319477(0xbb),'vqWJs':function(_0x1649bb,_0xf4034){return _0x1649bb(_0xf4034);},'xyQnB':function(_0x6e6393){return _0x6e6393();},'WpcuE':function(_0x4e0868,_0x47fe26,_0x1f81fe){return _0x4e0868(_0x47fe26,_0x1f81fe);}},_0x4d5cfa=_0x55df8d[_0x319477(0xaa)](_0x4a5fa8=>{const _0x173acf=_0x319477;return{'msgId':_0x4a5fa8,'senderShowName':selfInfo[_0x173acf(0x9b)]};});return new Promise((_0x32751f,_0x4faf59)=>{const _0x2bc8b5=_0x319477,_0x35dee1={'VtKHe':function(_0x2e3de8,_0x2f7c77){return _0x34741d['OylWu'](_0x2e3de8,_0x2f7c77);},'SaNMG':_0x34741d[_0x2bc8b5(0x9c)],'GgPxx':function(_0x3d55d7,_0x324858){return _0x3d55d7==_0x324858;},'ZPTWA':function(_0x25ccbf,_0x442012){return _0x34741d['vqWJs'](_0x25ccbf,_0x442012);}};let _0x2fbc0f=![];const _0x45b057=_0x5c2a80=>{const _0xe6b3a9=_0x2bc8b5,_0x32e52e=_0x5c2a80[_0xe6b3a9(0x96)][_0xe6b3a9(0xa1)](_0xdb7353=>_0xdb7353[_0xe6b3a9(0xbf)]);if(!_0x32e52e)return;const _0x477d7a=JSON[_0xe6b3a9(0xbc)](_0x32e52e['arkElement'][_0xe6b3a9(0x9f)]);if(_0x35dee1[_0xe6b3a9(0x93)](_0x477d7a[_0xe6b3a9(0xb4)],_0x35dee1['SaNMG']))return;_0x35dee1[_0xe6b3a9(0xc1)](_0x5c2a80['peerUid'],_0xf2fa21[_0xe6b3a9(0x98)])&&_0x35dee1[_0xe6b3a9(0xc1)](_0x5c2a80[_0xe6b3a9(0xa0)],selfInfo[_0xe6b3a9(0xa6)])&&(_0x2fbc0f=!![],_0x35dee1[_0xe6b3a9(0x97)](_0x32751f,_0x5c2a80));};sentMsgTasks['set'](_0x34741d[_0x2bc8b5(0xc8)](randomUUID),_0x45b057),_0x34741d[_0x2bc8b5(0xa3)](setTimeout,()=>{const _0x55b037=_0x2bc8b5;!_0x2fbc0f&&_0x4faf59(_0x34741d[_0x55b037(0xbd)]);},0x1388),napCatCore['session'][_0x2bc8b5(0x91)]()['multiForwardMsgWithComment'](_0x4d5cfa,_0x3c01f6,_0xf2fa21,[],new Map());});}}function _0x3ff3(){const _0x13705f=['IklQo','GgPxx','msgId','recallMsg','40845WiXhTB','GjqeC','chatType','4280970hxHvuF','xyQnB','onAddSendMsg','30327ElwzpB','2916gEkCYu','HffCn','length','8tEOkiE','then','activateChatAndGetHistory','sendMsg','item','254ujeUlt','2321ylLJMP','getMsgService','getMultiMsg','VtKHe','forwardMsg','setMsgRead','elements','ZPTWA','peerUid','获取群文件列表超时','getMsgsBySeqAndCount','nick','bUYqS','forEach','TYZQT','bytesData','senderUid','find','TKYeb','WpcuE','catch','multiForwardMsg','uid','1503426HaVJxU','getMsgHistory','9uNFwzP','map','getMsgsIncludeSelf','session','MiNNt','sendStatus','1195119WLsUXd','发送超时','148rHcxUe','3554495QxSWce','toString','app','ZovcH','asawg','cBYei','vOTNZ','getGroupFileList','getMsgsByMsgId','com.tencent.multimsg','parse','tTrYZ','zEhEZ','arkElement'];_0x3ff3=function(){return _0x13705f;};return _0x3ff3();} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index 3a40b372..2245b665 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x44dc(){const _0x1bef26=['preview','312zyeoRL','uin','4AAfMHW','1731788kNQBWL','GET','hNvYw','normal','FOqhW','getSkey','Itgml','JmkDj',';\x20uin=o',';\x20skey=','miniapp','33047MvPYUD','com.tencent.miniapp.lua','qyeLd','eQgiu','jumpUrl','1169652XZwwjP','&ark=','HttpGetJson','KRhWx','replace','CEPAR','232741bhyWGQ','skey','tag','genBkn','tagIcon','prompt','cssMZ','638390veDYEv','data','171oFcGRg','p_skey=','uAbUg','signed_ark','448857exEpoS','BhFlF','getQzoneCookies','\x5c/\x5c/','https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','629880ZiAWSA'];_0x44dc=function(){return _0x1bef26;};return _0x44dc();}(function(_0x545921,_0x23fadc){const _0x2554a7=_0x52c9,_0x862306=_0x545921();while(!![]){try{const _0x45c422=-parseInt(_0x2554a7(0x17c))/0x1*(parseInt(_0x2554a7(0x165))/0x2)+parseInt(_0x2554a7(0x15c))/0x3+-parseInt(_0x2554a7(0x166))/0x4+-parseInt(_0x2554a7(0x161))/0x5+-parseInt(_0x2554a7(0x176))/0x6+-parseInt(_0x2554a7(0x171))/0x7*(-parseInt(_0x2554a7(0x163))/0x8)+-parseInt(_0x2554a7(0x185))/0x9*(-parseInt(_0x2554a7(0x183))/0xa);if(_0x45c422===_0x23fadc)break;else _0x862306['push'](_0x862306['shift']());}catch(_0x53cc57){_0x862306['push'](_0x862306['shift']());}}}(_0x44dc,0x4fea4));import{logDebug}from'@/common/utils/log';function _0x52c9(_0x1dff9d,_0x551d80){const _0x44dc4b=_0x44dc();return _0x52c9=function(_0x52c9fe,_0x4f4bae){_0x52c9fe=_0x52c9fe-0x15b;let _0x5b94f5=_0x44dc4b[_0x52c9fe];return _0x5b94f5;},_0x52c9(_0x1dff9d,_0x551d80);}import{NTQQUserApi}from'./user';import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';export async function SignMiniApp(_0x4ad3b3){const _0x1eb403=_0x52c9,_0x33da63={'JmkDj':_0x1eb403(0x172),'FOqhW':'tianxuan.imgJumpArk','uAbUg':_0x1eb403(0x170),'hNvYw':'\x5c/\x5c/','eQgiu':function(_0x10fd22,_0x404e44){return _0x10fd22+_0x404e44;},'cssMZ':function(_0x72ffc4,_0xc81475){return _0x72ffc4+_0xc81475;},'KRhWx':function(_0x4f4f25,_0xe633dc){return _0x4f4f25+_0xe633dc;},'BhFlF':_0x1eb403(0x16f),'qyeLd':function(_0x3699f4,_0x2a78d2){return _0x3699f4+_0x2a78d2;},'Itgml':_0x1eb403(0x160),'CEPAR':function(_0x3fe661,_0x53468e){return _0x3fe661(_0x53468e);},'HrCRx':function(_0x5628a8,_0x14dfcf,_0x2c1ef2){return _0x5628a8(_0x14dfcf,_0x2c1ef2);},'BntkV':'MiniApp\x20JSON\x20消息生成失败'};let _0x1f001e={'app':_0x33da63[_0x1eb403(0x16d)],'bizsrc':_0x33da63[_0x1eb403(0x16a)],'view':_0x33da63[_0x1eb403(0x187)],'prompt':_0x4ad3b3[_0x1eb403(0x181)],'config':{'type':_0x1eb403(0x169),'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x4ad3b3['title'],'preview':_0x4ad3b3[_0x1eb403(0x162)][_0x1eb403(0x17a)](/\\/g,_0x33da63[_0x1eb403(0x168)]),'jumpUrl':_0x4ad3b3[_0x1eb403(0x175)][_0x1eb403(0x17a)](/\\/g,_0x33da63[_0x1eb403(0x168)]),'tag':_0x4ad3b3[_0x1eb403(0x17e)],'tagIcon':_0x4ad3b3[_0x1eb403(0x180)]['replace'](/\\/g,_0x1eb403(0x15f)),'source':_0x4ad3b3['source'],'sourcelogo':_0x4ad3b3['sourcelogo'][_0x1eb403(0x17a)](/\\/g,_0x33da63[_0x1eb403(0x168)])}}};const _0x541be1=await NTQQUserApi[_0x1eb403(0x16b)]();let _0x155982=await NTQQUserApi[_0x1eb403(0x15e)]();const _0x49668d=WebApi[_0x1eb403(0x17f)](_0x155982['p_skey']),_0x2da31c=_0x33da63['eQgiu'](_0x33da63['eQgiu'](_0x33da63[_0x1eb403(0x174)](_0x33da63[_0x1eb403(0x174)](_0x33da63[_0x1eb403(0x182)](_0x33da63[_0x1eb403(0x179)](_0x1eb403(0x186),_0x155982['p_skey']),_0x33da63[_0x1eb403(0x15d)]),_0x155982[_0x1eb403(0x17d)]),';\x20p_uin=o'),selfInfo['uin'])+_0x1eb403(0x16e),selfInfo[_0x1eb403(0x164)]);let _0x522863=_0x33da63[_0x1eb403(0x173)](_0x33da63[_0x1eb403(0x173)](_0x33da63[_0x1eb403(0x174)](_0x33da63[_0x1eb403(0x16c)],_0x49668d),_0x1eb403(0x177)),_0x33da63[_0x1eb403(0x17b)](encodeURIComponent,JSON['stringify'](_0x1f001e))),_0xd55845='';try{let _0x343cb3=await RequestUtil[_0x1eb403(0x178)](_0x522863,_0x1eb403(0x167),undefined,{'Cookie':_0x2da31c});_0xd55845=_0x343cb3[_0x1eb403(0x184)][_0x1eb403(0x15b)];}catch(_0x3e73aa){_0x33da63['HrCRx'](logDebug,_0x33da63['BntkV'],_0x3e73aa);}return _0xd55845;} \ No newline at end of file +(function(_0x296bed,_0x132d8e){const _0x262b81=_0xd46a,_0x244f5f=_0x296bed();while(!![]){try{const _0x579391=-parseInt(_0x262b81(0x7b))/0x1+-parseInt(_0x262b81(0x7a))/0x2+parseInt(_0x262b81(0x91))/0x3+-parseInt(_0x262b81(0x85))/0x4+-parseInt(_0x262b81(0x88))/0x5*(-parseInt(_0x262b81(0x80))/0x6)+-parseInt(_0x262b81(0x8c))/0x7*(parseInt(_0x262b81(0x6f))/0x8)+parseInt(_0x262b81(0x8e))/0x9*(parseInt(_0x262b81(0x78))/0xa);if(_0x579391===_0x132d8e)break;else _0x244f5f['push'](_0x244f5f['shift']());}catch(_0x2b837e){_0x244f5f['push'](_0x244f5f['shift']());}}}(_0x477f,0x57763));function _0xd46a(_0x1b7e74,_0x1d0265){const _0x477ffb=_0x477f();return _0xd46a=function(_0xd46a54,_0x35d3f9){_0xd46a54=_0xd46a54-0x69;let _0x109c92=_0x477ffb[_0xd46a54];return _0x109c92;},_0xd46a(_0x1b7e74,_0x1d0265);}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';function _0x477f(){const _0x4ef6e0=['genBkn','jumpUrl','12984gcbrvd','nwrMH','EMfLd','p_skey','normal','754520HxGdKH','replace','sourcelogo','1395IpYnyB','com.tencent.miniapp.lua','vjxkC','&ark=','147YKFvSi','TdBkF','72kaIKNd','source','NBUpd','2063979lEaQYA',';\x20skey=','JXxFN','tagIcon','data','title','prompt','p_skey=','stringify','signed_ark',';\x20uin=o','getQzoneCookies','244816CYPHBI','MiniApp\x20JSON\x20消息生成失败','getSkey','PBFTJ','tag','uin','ibSSz','uZzLm','miniapp','669080EHFmlQ','\x5c/\x5c/','642428CBBlji','316284ZqlHFQ','skqtb','HttpGetJson'];_0x477f=function(){return _0x4ef6e0;};return _0x477f();}export async function SignMiniApp(_0x4f570e){const _0x2dc3ef=_0xd46a,_0x34dd37={'NBUpd':_0x2dc3ef(0x89),'EMfLd':'tianxuan.imgJumpArk','uZzLm':_0x2dc3ef(0x84),'JXxFN':_0x2dc3ef(0x79),'PBFTJ':function(_0x2e0d51,_0x2aadfa){return _0x2e0d51+_0x2aadfa;},'AfBYk':_0x2dc3ef(0x6a),'skqtb':_0x2dc3ef(0x92),'nwrMH':_0x2dc3ef(0x6d),'ibSSz':'https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','vjxkC':_0x2dc3ef(0x8b),'TdBkF':function(_0x514095,_0x59a822,_0x52694c){return _0x514095(_0x59a822,_0x52694c);}};let _0x50678d={'app':_0x34dd37[_0x2dc3ef(0x90)],'bizsrc':_0x34dd37[_0x2dc3ef(0x82)],'view':_0x2dc3ef(0x77),'prompt':_0x4f570e[_0x2dc3ef(0x69)],'config':{'type':_0x34dd37[_0x2dc3ef(0x76)],'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x4f570e[_0x2dc3ef(0x96)],'preview':_0x4f570e['preview'][_0x2dc3ef(0x86)](/\\/g,_0x2dc3ef(0x79)),'jumpUrl':_0x4f570e[_0x2dc3ef(0x7f)][_0x2dc3ef(0x86)](/\\/g,_0x34dd37[_0x2dc3ef(0x93)]),'tag':_0x4f570e[_0x2dc3ef(0x73)],'tagIcon':_0x4f570e[_0x2dc3ef(0x94)]['replace'](/\\/g,_0x2dc3ef(0x79)),'source':_0x4f570e[_0x2dc3ef(0x8f)],'sourcelogo':_0x4f570e[_0x2dc3ef(0x87)]['replace'](/\\/g,_0x2dc3ef(0x79))}}};const _0x224399=await NTQQUserApi[_0x2dc3ef(0x71)]();let _0x19d3e4=await NTQQUserApi[_0x2dc3ef(0x6e)]();const _0x4bf95f=WebApi[_0x2dc3ef(0x7e)](_0x19d3e4[_0x2dc3ef(0x83)]),_0x575fb4=_0x34dd37[_0x2dc3ef(0x72)](_0x34dd37[_0x2dc3ef(0x72)](_0x34dd37['AfBYk']+_0x19d3e4[_0x2dc3ef(0x83)]+_0x34dd37[_0x2dc3ef(0x7c)]+_0x19d3e4['skey'],';\x20p_uin=o')+selfInfo[_0x2dc3ef(0x74)]+_0x34dd37[_0x2dc3ef(0x81)],selfInfo[_0x2dc3ef(0x74)]);let _0x278d24=_0x34dd37[_0x2dc3ef(0x72)](_0x34dd37[_0x2dc3ef(0x75)],_0x4bf95f)+_0x34dd37[_0x2dc3ef(0x8a)]+encodeURIComponent(JSON[_0x2dc3ef(0x6b)](_0x50678d)),_0x4214c0='';try{let _0x5777af=await RequestUtil[_0x2dc3ef(0x7d)](_0x278d24,'GET',undefined,{'Cookie':_0x575fb4});_0x4214c0=_0x5777af[_0x2dc3ef(0x95)][_0x2dc3ef(0x6c)];}catch(_0x317ff0){_0x34dd37[_0x2dc3ef(0x8d)](logDebug,_0x2dc3ef(0x70),_0x317ff0);}return _0x4214c0;} \ No newline at end of file diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index 12834e36..817fc772 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -var _0x48fabb=_0x5cdf;function _0x4f01(){var _0x16a11d=['wantWinScreenOCR','678285qErWna','hasOtherRunningQQProcess','7uvBmqp','483438jMCYoh','18992cKhrVp','ORCImage','translateEnWordToZn','util','249953CdtBIb','448392ZhBXuP','39578OGXpGX','session','288728rIRoMw','250BJLnky','getRichMediaService','getNodeMiscService','216QRONSH','3eVoHON'];_0x4f01=function(){return _0x16a11d;};return _0x4f01();}(function(_0x1ae161,_0x5bc7a4){var _0x5b8593=_0x5cdf,_0x1464e5=_0x1ae161();while(!![]){try{var _0x42cdc0=-parseInt(_0x5b8593(0xa9))/0x1+parseInt(_0x5b8593(0xab))/0x2*(-parseInt(_0x5b8593(0xb0))/0x3)+-parseInt(_0x5b8593(0xa8))/0x4+-parseInt(_0x5b8593(0xb2))/0x5+-parseInt(_0x5b8593(0xb5))/0x6*(parseInt(_0x5b8593(0xb4))/0x7)+-parseInt(_0x5b8593(0xb6))/0x8*(-parseInt(_0x5b8593(0xaf))/0x9)+parseInt(_0x5b8593(0xac))/0xa*(parseInt(_0x5b8593(0xa7))/0xb);if(_0x42cdc0===_0x5bc7a4)break;else _0x1464e5['push'](_0x1464e5['shift']());}catch(_0x48d46d){_0x1464e5['push'](_0x1464e5['shift']());}}}(_0x4f01,0x1b88d));import{napCatCore}from'@/core';function _0x5cdf(_0x323dea,_0x21913c){var _0x4f01be=_0x4f01();return _0x5cdf=function(_0x5cdf5e,_0x28602c){_0x5cdf5e=_0x5cdf5e-0xa4;var _0x4c3b20=_0x4f01be[_0x5cdf5e];return _0x4c3b20;},_0x5cdf(_0x323dea,_0x21913c);}export class NTQQSystemApi{static async[_0x48fabb(0xb3)](){var _0x521348=_0x48fabb;return napCatCore[_0x521348(0xa6)][_0x521348(0xb3)]();}static async[_0x48fabb(0xa4)](_0x3d5feb){var _0x33968e=_0x48fabb;return napCatCore['session'][_0x33968e(0xae)]()[_0x33968e(0xb1)](_0x3d5feb);}static async[_0x48fabb(0xa5)](_0x30e074){var _0x208829=_0x48fabb;return napCatCore[_0x208829(0xaa)][_0x208829(0xad)]()['translateEnWordToZn'](_0x30e074);}} \ No newline at end of file +var _0x336049=_0x5720;(function(_0x15b8bb,_0x416247){var _0x4989e1=_0x5720,_0x493159=_0x15b8bb();while(!![]){try{var _0x550e07=-parseInt(_0x4989e1(0x18f))/0x1*(-parseInt(_0x4989e1(0x18c))/0x2)+-parseInt(_0x4989e1(0x17f))/0x3*(-parseInt(_0x4989e1(0x181))/0x4)+-parseInt(_0x4989e1(0x189))/0x5*(-parseInt(_0x4989e1(0x190))/0x6)+-parseInt(_0x4989e1(0x188))/0x7*(-parseInt(_0x4989e1(0x18b))/0x8)+parseInt(_0x4989e1(0x180))/0x9+parseInt(_0x4989e1(0x18d))/0xa*(-parseInt(_0x4989e1(0x187))/0xb)+parseInt(_0x4989e1(0x185))/0xc*(-parseInt(_0x4989e1(0x186))/0xd);if(_0x550e07===_0x416247)break;else _0x493159['push'](_0x493159['shift']());}catch(_0x14ae66){_0x493159['push'](_0x493159['shift']());}}}(_0x2e61,0xb55f0));function _0x2e61(){var _0x11fdb7=['52026hipQus','8300853iDIOKG','276sFLIwm','util','getNodeMiscService','translateEnWordToZn','276DFgWvB','1417481YyzuYD','22sjPNuO','77SbEswW','5KiTJNm','hasOtherRunningQQProcess','465232XngmcQ','2eorVqu','2070130VDorNc','getRichMediaService','731751JSSpkv','1046478IaYSbW','session'];_0x2e61=function(){return _0x11fdb7;};return _0x2e61();}function _0x5720(_0x16ee9a,_0x2147bc){var _0x2e61f2=_0x2e61();return _0x5720=function(_0x57209f,_0x40e357){_0x57209f=_0x57209f-0x17f;var _0x251948=_0x2e61f2[_0x57209f];return _0x251948;},_0x5720(_0x16ee9a,_0x2147bc);}import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x336049(0x18a)](){var _0x35a504=_0x336049;return napCatCore[_0x35a504(0x182)][_0x35a504(0x18a)]();}static async['ORCImage'](_0x12a11d){var _0x53e1b6=_0x336049;return napCatCore[_0x53e1b6(0x191)][_0x53e1b6(0x183)]()['wantWinScreenOCR'](_0x12a11d);}static async[_0x336049(0x184)](_0x4358f7){var _0x4386ea=_0x336049;return napCatCore[_0x4386ea(0x191)][_0x4386ea(0x18e)]()[_0x4386ea(0x184)](_0x4358f7);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.d.ts b/src/core.lib/src/apis/user.d.ts index 7e2b93c0..7cb85eed 100644 --- a/src/core.lib/src/apis/user.d.ts +++ b/src/core.lib/src/apis/user.d.ts @@ -1,4 +1,4 @@ -import { User } from '@/core/entities'; +import { ModifyProfileParams, User } from '@/core/entities'; import { GeneralCallResult } from '@/core'; export declare class NTQQUserApi { static setSelfOnlineStatus(status: number, extStatus: number, batteryStatus: number): Promise; @@ -14,6 +14,7 @@ export declare class NTQQUserApi { static getSelfInfo(): Promise; static getUserInfo(uid: string): Promise; static getUserDetailInfo(uid: string): Promise; + static modifySelfProfile(param: ModifyProfileParams): Promise; static getPSkey(domainList: string[], cached?: boolean): Promise<{ [key: string]: string; }>; diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index 3804cdfc..86c5962c 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x3cb41c=_0x3936;(function(_0x3e6feb,_0x1bcb6a){const _0xc9acc0=_0x3936,_0x38e00d=_0x3e6feb();while(!![]){try{const _0x45dccc=-parseInt(_0xc9acc0(0xac))/0x1+parseInt(_0xc9acc0(0xdc))/0x2*(-parseInt(_0xc9acc0(0xba))/0x3)+-parseInt(_0xc9acc0(0xe9))/0x4*(-parseInt(_0xc9acc0(0xf2))/0x5)+-parseInt(_0xc9acc0(0xce))/0x6+-parseInt(_0xc9acc0(0xe1))/0x7+-parseInt(_0xc9acc0(0xed))/0x8+parseInt(_0xc9acc0(0xb0))/0x9*(parseInt(_0xc9acc0(0xe7))/0xa);if(_0x45dccc===_0x1bcb6a)break;else _0x38e00d['push'](_0x38e00d['shift']());}catch(_0x2481e1){_0x38e00d['push'](_0x38e00d['shift']());}}}(_0x3675,0xeb14c));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';function _0x3675(){const _0x2ba3df=['session','set','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','uin','delete','867836KgoYdC','QLkuh','getRobotUinRange','获取Pskey失败','wZaKE','6141513LSJMxK','keyIndex','getMsgService','ibFaJ','clientKey','then','1672190dQfPQx','length','44984tPrMcN','skey','pXXgf','getRobotService','3745704Inqdxm','KeyIndex','&clientkey=','PskeyData','bhwzP','520KEcGhs','BCugT','RcThk','setQQAvatar','PQXuJ','ClientKey','Skey','请求获取Skey时失败','GuqfJ','onProfileDetailInfoChanged','getTipOffService','QMbyW','JgjDe','get','ACLdB','EvKFL','getProfileService','1814175xmfANQ','%2Finfocenter&keyindex=19%27','uid','setHeader','261nNNHVq','getUserDetailInfo','getQzoneCookies','iBMbg','entries','HttpsGetCookies','CreatTime','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getPSkey','now','9mkwCRd','getProfileLikeService','LIDEI','KfbqA','LuFUY','pPIGk','VJCUC','like','ELvdz','ctaPT','getUserDetailInfo\x20timeout','nReyC','fromEntries','CMoWD','getSelfInfo','addListener','RmQOP','errMsg','getPskey','getTicketService','3567252ZcDVjv','DIOtn','setStatus','domainPskeyMap','result','forEach','WDXot','robotUinRanges','mxlGh'];_0x3675=function(){return _0x2ba3df;};return _0x3675();}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x3936(_0x22e61d,_0x24615e){const _0x36754f=_0x3675();return _0x3936=function(_0x3936ce,_0x17331e){_0x3936ce=_0x3936ce-0xaa;let _0x91fe87=_0x36754f[_0x3936ce];return _0x91fe87;},_0x3936(_0x22e61d,_0x24615e);}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x3cb41c(0xfb)]=_0x2afbe8=>{const _0x516e0a=_0x3cb41c;userInfoCache[_0x2afbe8[_0x516e0a(0xae)]]=_0x2afbe8,userDetailHandlers[_0x516e0a(0xd3)](_0x58ad0c=>_0x58ad0c(_0x2afbe8));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x128f5a=_0x3936;napCatCore[_0x128f5a(0xc9)](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x4f01c2,_0x22ced9,_0x5b287a){const _0x8a532b=_0x3cb41c;return napCatCore[_0x8a532b(0xd7)][_0x8a532b(0xe3)]()[_0x8a532b(0xd0)]({'status':_0x4f01c2,'extStatus':_0x22ced9,'batteryStatus':_0x5b287a});}static async[_0x3cb41c(0xc1)](_0x5cdf30,_0x48d47c=0x1){const _0x1315e1=_0x3cb41c;return napCatCore['session'][_0x1315e1(0xbb)]()['setBuddyProfileLike']({'friendUid':_0x5cdf30,'sourceId':0x47,'doLikeCount':_0x48d47c,'doLikeTollCount':0x0});}static async[_0x3cb41c(0xf5)](_0x562c24){const _0x4e0e7c=_0x3cb41c,_0x3aedc5=napCatCore[_0x4e0e7c(0xd7)][_0x4e0e7c(0xab)]()[_0x4e0e7c(0xaf)](_0x562c24);return{'result':_0x3aedc5?.[_0x4e0e7c(0xd2)],'errMsg':_0x3aedc5?.['errMsg']};}static async[_0x3cb41c(0xc8)](){}static async['getUserInfo'](_0x3986f0){}static async[_0x3cb41c(0xb1)](_0x3cf6f2){const _0x55887=_0x3cb41c,_0x2f6d90={'bhwzP':function(_0x32bd02,_0x12b688){return _0x32bd02(_0x12b688);},'PQXuJ':_0x55887(0xc4),'KfbqA':function(_0x1252fd){return _0x1252fd();}},_0x373321=napCatCore[_0x55887(0xd7)][_0x55887(0xab)]();return new Promise((_0x1d04b0,_0x393af0)=>{const _0x83030e=_0x55887,_0x3e2700={'ELvdz':function(_0x36fcdb,_0x3aba24){const _0x549cc3=_0x3936;return _0x2f6d90[_0x549cc3(0xf1)](_0x36fcdb,_0x3aba24);},'pXXgf':_0x2f6d90[_0x83030e(0xf6)]},_0x438fb9=_0x2f6d90[_0x83030e(0xbd)](randomUUID);let _0xb86fe7=![],_0x36c494=undefined,_0x37d325=!![];setTimeout(()=>{const _0x1dc3e5=_0x83030e;!_0xb86fe7&&(_0x36c494?_0x3e2700[_0x1dc3e5(0xc2)](_0x1d04b0,_0x36c494):_0x3e2700[_0x1dc3e5(0xc2)](_0x393af0,_0x3e2700[_0x1dc3e5(0xeb)])),userDetailHandlers[_0x1dc3e5(0xdb)](_0x438fb9);},0x1388),userDetailHandlers[_0x83030e(0xd8)](_0x438fb9,_0x5053ba=>{const _0x18c3de=_0x83030e;_0x5053ba[_0x18c3de(0xae)]===_0x3cf6f2&&(uid2UinMap[_0x3cf6f2]=_0x5053ba['uin'],_0x37d325?(_0x36c494=_0x5053ba,_0x37d325=![]):(_0xb86fe7=!![],_0x1d04b0(_0x5053ba)));}),_0x373321['getUserDetailInfoWithBizInfo'](_0x3cf6f2,[0x0])[_0x83030e(0xe6)](_0x54b53d=>{});});}static async[_0x3cb41c(0xb8)](_0x2a9bc2,_0x30fe6c=!![]){const _0xaeed02=_0x3cb41c,_0x651a3={'mZVgI':function(_0x30e83d,_0x943944){return _0x30e83d||_0x943944;},'BCugT':function(_0x4c785a,_0x578748){return _0x4c785a-_0x578748;},'QLkuh':function(_0x5acf01,_0x465eeb){return _0x5acf01*_0x465eeb;},'JgjDe':function(_0x16cb7b,_0x212c45){return _0x16cb7b>_0x212c45;},'ctaPT':function(_0x19bd67,_0x46a8ba){return _0x19bd67===_0x46a8ba;},'WDXot':function(_0x5d7197,_0x5316ab,_0x3f719f){return _0x5d7197(_0x5316ab,_0x3f719f);},'QMbyW':_0xaeed02(0xdf)},_0x2895e0=[],_0x2dcb60={};for(const _0x2deaf5 in _0x2a9bc2){const _0x22c83d=Credentials[_0xaeed02(0xf0)][_0xaeed02(0xff)](_0x2a9bc2[_0x2deaf5]),_0x31c391=Credentials['PskeyTime'][_0xaeed02(0xff)](_0x2a9bc2[_0x2deaf5]);_0x651a3['mZVgI'](!_0x22c83d,!_0x31c391)||_0x651a3[_0xaeed02(0xf3)](Date['now'](),_0x31c391)>_0x651a3[_0xaeed02(0xdd)](0x708,0x3e8)||!_0x30fe6c?_0x2895e0['push'](_0x2a9bc2[_0x2deaf5]):_0x2dcb60[_0x2a9bc2[_0x2deaf5]]=_0x22c83d;}let _0x2c8563={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x651a3[_0xaeed02(0xfe)](_0x2895e0[_0xaeed02(0xe8)],0x0)&&(_0x2c8563=await napCatCore[_0xaeed02(0xd7)][_0xaeed02(0xfc)]()[_0xaeed02(0xcc)](_0x2895e0,!![]));const _0x132b0b=_0x2c8563[_0xaeed02(0xd1)];for(const _0x3d0f58 of _0x132b0b[_0xaeed02(0xb4)]()){Credentials[_0xaeed02(0xf0)]['set'](_0x3d0f58[0x0],_0x3d0f58[0x1]),Credentials['PskeyTime'][_0xaeed02(0xd8)](_0x3d0f58[0x0],Date['now']());}const _0x492baa=Object['assign'](Object[_0xaeed02(0xc6)](_0x132b0b),_0x2dcb60);if(_0x651a3[_0xaeed02(0xc3)](_0x2c8563[_0xaeed02(0xd2)],0x0))return _0x492baa;else _0x651a3[_0xaeed02(0xd4)](logError,_0x651a3[_0xaeed02(0xfd)],_0x2c8563[_0xaeed02(0xcb)]);return{};}static async[_0x3cb41c(0xde)](){const _0x116ebe=_0x3cb41c,_0x13068b=await napCatCore['session'][_0x116ebe(0xec)]()[_0x116ebe(0xde)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x13068b?.['response']?.[_0x116ebe(0xd5)];}static async[_0x3cb41c(0xb2)](){const _0x349bbe=_0x3cb41c,_0x3ccedf={'yvHKD':function(_0x26a19b,_0x4af1bd){return _0x26a19b+_0x4af1bd;},'DIOtn':function(_0x4921b1,_0x5895ca){return _0x4921b1+_0x5895ca;},'mxlGh':function(_0x43356b,_0x1908da){return _0x43356b+_0x1908da;},'pPIGk':function(_0x35c4d7,_0x3a2b9d){return _0x35c4d7+_0x3a2b9d;},'wZaKE':_0x349bbe(0xd9),'VJCUC':_0x349bbe(0xef),'nReyC':'&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','RcThk':_0x349bbe(0xad),'LuFUY':function(_0xc9218d,_0x312ea1,_0x1519a5){return _0xc9218d(_0x312ea1,_0x1519a5);},'xAKql':'请求获取Cookies时失败'},_0x369ef2=_0x3ccedf['yvHKD'](_0x3ccedf[_0x349bbe(0xcf)](_0x3ccedf[_0x349bbe(0xd6)](_0x3ccedf[_0x349bbe(0xbf)](_0x3ccedf[_0x349bbe(0xbf)](_0x3ccedf[_0x349bbe(0xe0)],selfInfo[_0x349bbe(0xda)]),_0x3ccedf[_0x349bbe(0xc0)]),Credentials['ClientKey']),_0x3ccedf[_0x349bbe(0xc5)]),selfInfo[_0x349bbe(0xda)])+_0x3ccedf[_0x349bbe(0xf4)];let _0x4ecc1b={};try{_0x4ecc1b=await RequestUtil[_0x349bbe(0xb5)](_0x369ef2);}catch(_0x5c92f2){_0x3ccedf[_0x349bbe(0xbe)](logDebug,_0x3ccedf['xAKql'],_0x5c92f2),_0x4ecc1b={};}return _0x4ecc1b;}static async['getSkey'](_0x506203=!![]){const _0x42f3a8=_0x3cb41c,_0x3929e4={'RmQOP':function(_0x4b0a84,_0x3c7449){return _0x4b0a84-_0x3c7449;},'CMoWD':function(_0x3a36d2,_0x40d9f2){return _0x3a36d2*_0x40d9f2;},'LIDEI':function(_0x3f4c69,_0x3f6ea1){return _0x3f4c69+_0x3f6ea1;},'iBMbg':function(_0x4e502d,_0x16231d){return _0x4e502d+_0x16231d;},'EvKFL':function(_0x38c9a3,_0x3ecc83){return _0x38c9a3+_0x3ecc83;},'ibFaJ':_0x42f3a8(0xd9),'GuqfJ':_0x42f3a8(0xef),'radTM':_0x42f3a8(0xb7),'ACLdB':_0x42f3a8(0xf9)};try{if(Credentials[_0x42f3a8(0xb6)]==0x0||_0x3929e4[_0x42f3a8(0xca)](Date[_0x42f3a8(0xb9)](),Credentials[_0x42f3a8(0xb6)])>_0x3929e4[_0x42f3a8(0xc7)](0x3e8,0xe10)||!_0x506203){const _0x328abb=await napCatCore[_0x42f3a8(0xd7)][_0x42f3a8(0xcd)]()['forceFetchClientKey']('');if(_0x328abb[_0x42f3a8(0xd2)]!==0x0)return'';const _0x3027b7=_0x328abb[_0x42f3a8(0xe5)],_0x5b17d7=_0x328abb[_0x42f3a8(0xe2)],_0x131ba1=_0x3929e4[_0x42f3a8(0xbc)](_0x3929e4[_0x42f3a8(0xb3)](_0x3929e4['LIDEI'](_0x3929e4[_0x42f3a8(0xaa)](_0x3929e4[_0x42f3a8(0xe4)],selfInfo[_0x42f3a8(0xda)]),_0x3929e4[_0x42f3a8(0xfa)]),_0x3027b7),_0x3929e4['radTM'])+_0x5b17d7;let _0x5141e1={};try{_0x5141e1=await RequestUtil[_0x42f3a8(0xb5)](_0x131ba1);}catch(_0x2421b8){logDebug(_0x3929e4[_0x42f3a8(0x100)],_0x2421b8),_0x5141e1={};}const _0x45657a=_0x5141e1[_0x42f3a8(0xea)];if(!_0x45657a)return'';return Credentials[_0x42f3a8(0xf7)]=_0x3027b7,Credentials[_0x42f3a8(0xee)]=_0x5b17d7,Credentials[_0x42f3a8(0xb6)]=Date[_0x42f3a8(0xb9)](),Credentials[_0x42f3a8(0xf8)]=_0x45657a,_0x45657a;}return Credentials[_0x42f3a8(0xf8)];}catch(_0x544522){}return undefined;}} \ No newline at end of file +const _0x2cf0f2=_0x5262;(function(_0x89377a,_0xa322dd){const _0x331ac3=_0x5262,_0x2a6dc9=_0x89377a();while(!![]){try{const _0x215ad9=-parseInt(_0x331ac3(0x21e))/0x1+parseInt(_0x331ac3(0x212))/0x2*(parseInt(_0x331ac3(0x1dc))/0x3)+-parseInt(_0x331ac3(0x1e4))/0x4*(parseInt(_0x331ac3(0x1e9))/0x5)+-parseInt(_0x331ac3(0x1d0))/0x6+parseInt(_0x331ac3(0x1e5))/0x7+parseInt(_0x331ac3(0x1ea))/0x8+-parseInt(_0x331ac3(0x1f3))/0x9*(-parseInt(_0x331ac3(0x1d7))/0xa);if(_0x215ad9===_0xa322dd)break;else _0x2a6dc9['push'](_0x2a6dc9['shift']());}catch(_0x2439e2){_0x2a6dc9['push'](_0x2a6dc9['shift']());}}}(_0x5896,0xf2d70));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';function _0x5896(){const _0x5dcc07=['请求获取Skey时失败','session','hxIWK','PqRyZ','getSkey','fromEntries','1559584nPTbOO','get','then','response','qdayE','QFHLt','now','CreatTime','2584098GsOKPw','uin','Skey','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','JMNnJ','length','voMYU','17890uMqRUf','PskeyData','setQQAvatar','xHDkQ','GHhdO','348gKTaaL','%2Finfocenter&keyindex=19%27','errMsg','set','assign','onProfileDetailInfoChanged','YQQXK','addListener','404DxWWyf','6567113OUTYhQ','getUserDetailInfoWithBizInfo','HttpsGetCookies','mONZU','91945RraDMp','10411168RRgpVr','STAAu','PskeyTime','dEeZF','oNMAi','entries','znxrT','getUserDetailInfo','ZqgUN','10053BgOWgt','forEach','getProfileLikeService','FQpeZ','forceFetchClientKey','getTipOffService','delete','modifySelfProfile','clientKey','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','onLoginSuccess','getMsgService','getQzoneCookies','cTkDR','getPSkey','qFiYn','&clientkey=','NNUBm','getRobotService','getUserDetailInfo\x20timeout','getUserInfo','ClientKey','orBGX','SfuSe','uid','setHeader','getProfileService','zOgVf','请求获取Cookies时失败','domainPskeyMap','getRobotUinRange','10420dJlgnw','gihIB','robotUinRanges','fRcIn','result','setSelfOnlineStatus'];_0x5896=function(){return _0x5dcc07;};return _0x5896();}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0x5262(_0x28f9c0,_0x10a971){const _0x5896e7=_0x5896();return _0x5262=function(_0x526226,_0xbd05f2){_0x526226=_0x526226-0x1c9;let _0x3f5d60=_0x5896e7[_0x526226];return _0x3f5d60;},_0x5262(_0x28f9c0,_0x10a971);}profileListener[_0x2cf0f2(0x1e1)]=_0x4afb63=>{const _0x55550f=_0x2cf0f2;userInfoCache[_0x4afb63[_0x55550f(0x20b)]]=_0x4afb63,userDetailHandlers[_0x55550f(0x1f4)](_0xc407e7=>_0xc407e7(_0x4afb63));},setTimeout(()=>{const _0xf51cc9=_0x2cf0f2;napCatCore[_0xf51cc9(0x1fd)](()=>{const _0x2217e8=_0xf51cc9;napCatCore[_0x2217e8(0x1e3)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x2cf0f2(0x217)](_0x324364,_0x769f1d,_0x3ce78a){const _0x4316fd=_0x2cf0f2;return napCatCore[_0x4316fd(0x219)][_0x4316fd(0x1fe)]()['setStatus']({'status':_0x324364,'extStatus':_0x769f1d,'batteryStatus':_0x3ce78a});}static async['like'](_0x284663,_0x51d8fa=0x1){const _0x1872e5=_0x2cf0f2;return napCatCore[_0x1872e5(0x219)][_0x1872e5(0x1f5)]()['setBuddyProfileLike']({'friendUid':_0x284663,'sourceId':0x47,'doLikeCount':_0x51d8fa,'doLikeTollCount':0x0});}static async[_0x2cf0f2(0x1d9)](_0x4dbc75){const _0x31a9cf=_0x2cf0f2,_0x30cd4a=napCatCore[_0x31a9cf(0x219)][_0x31a9cf(0x20d)]()[_0x31a9cf(0x20c)](_0x4dbc75);return{'result':_0x30cd4a?.['result'],'errMsg':_0x30cd4a?.['errMsg']};}static async['getSelfInfo'](){}static async[_0x2cf0f2(0x207)](_0x568f1d){}static async[_0x2cf0f2(0x1f1)](_0x5ec73f){const _0x462533=_0x2cf0f2,_0x724f97={'NNUBm':function(_0x50041c,_0x4c0dd6){return _0x50041c(_0x4c0dd6);},'JMNnJ':function(_0x143e11,_0x1201d2){return _0x143e11===_0x1201d2;},'SfuSe':function(_0x5d0b0c,_0x1f8815){return _0x5d0b0c(_0x1f8815);},'gihIB':function(_0x5b6192){return _0x5b6192();},'qdayE':function(_0x2a76b8,_0x378dc8,_0x5d4dcb){return _0x2a76b8(_0x378dc8,_0x5d4dcb);}},_0x411953=napCatCore[_0x462533(0x219)][_0x462533(0x20d)]();return new Promise((_0x33ef0a,_0x314532)=>{const _0x5ad0ae=_0x462533,_0x37474e=_0x724f97[_0x5ad0ae(0x213)](randomUUID);let _0x2f1182=![],_0x395135=undefined,_0x157aa3=!![];_0x724f97[_0x5ad0ae(0x1cc)](setTimeout,()=>{const _0x5d45dc=_0x5ad0ae;!_0x2f1182&&(_0x395135?_0x33ef0a(_0x395135):_0x724f97[_0x5d45dc(0x204)](_0x314532,_0x5d45dc(0x206))),userDetailHandlers[_0x5d45dc(0x1f9)](_0x37474e);},0x1388),userDetailHandlers[_0x5ad0ae(0x1df)](_0x37474e,_0x2bef10=>{const _0x4094b1=_0x5ad0ae;_0x724f97[_0x4094b1(0x1d4)](_0x2bef10[_0x4094b1(0x20b)],_0x5ec73f)&&(uid2UinMap[_0x5ec73f]=_0x2bef10[_0x4094b1(0x1d1)],_0x157aa3?(_0x395135=_0x2bef10,_0x157aa3=![]):(_0x2f1182=!![],_0x724f97[_0x4094b1(0x20a)](_0x33ef0a,_0x2bef10)));}),_0x411953[_0x5ad0ae(0x1e6)](_0x5ec73f,[0x0])[_0x5ad0ae(0x1ca)](_0x3c0c99=>{});});}static async[_0x2cf0f2(0x1fa)](_0x310271){const _0x2ad777=_0x2cf0f2;return napCatCore[_0x2ad777(0x219)][_0x2ad777(0x20d)]()['modifyDesktopMiniProfile'](_0x310271);}static async[_0x2cf0f2(0x201)](_0x3c1fc1,_0x210324=!![]){const _0xa9f2bc=_0x2cf0f2,_0x1b4f5d={'mONZU':function(_0x270e8e,_0x51ab94){return _0x270e8e||_0x51ab94;},'ZqgUN':function(_0x532133,_0x508dff){return _0x532133>_0x508dff;},'YQQXK':function(_0x134e85,_0x202126){return _0x134e85-_0x202126;},'znxrT':function(_0x5a9482,_0x5f10da){return _0x5a9482===_0x5f10da;},'ktCHq':function(_0x32286d,_0x5f1a8f,_0x22f538){return _0x32286d(_0x5f1a8f,_0x22f538);}},_0x7d5351=[],_0x5d9f73={};for(const _0x2da29a in _0x3c1fc1){const _0x4470b9=Credentials[_0xa9f2bc(0x1d8)][_0xa9f2bc(0x1c9)](_0x3c1fc1[_0x2da29a]),_0x1a3bd0=Credentials[_0xa9f2bc(0x1ec)][_0xa9f2bc(0x1c9)](_0x3c1fc1[_0x2da29a]);_0x1b4f5d[_0xa9f2bc(0x1e8)](!_0x4470b9,!_0x1a3bd0)||_0x1b4f5d[_0xa9f2bc(0x1f2)](_0x1b4f5d[_0xa9f2bc(0x1e2)](Date['now'](),_0x1a3bd0),0x708*0x3e8)||!_0x210324?_0x7d5351['push'](_0x3c1fc1[_0x2da29a]):_0x5d9f73[_0x3c1fc1[_0x2da29a]]=_0x4470b9;}let _0x405742={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x7d5351[_0xa9f2bc(0x1d5)]>0x0&&(_0x405742=await napCatCore[_0xa9f2bc(0x219)][_0xa9f2bc(0x1f8)]()['getPskey'](_0x7d5351,!![]));const _0x599888=_0x405742[_0xa9f2bc(0x210)];for(const _0x27a41b of _0x599888[_0xa9f2bc(0x1ef)]()){Credentials[_0xa9f2bc(0x1d8)][_0xa9f2bc(0x1df)](_0x27a41b[0x0],_0x27a41b[0x1]),Credentials['PskeyTime']['set'](_0x27a41b[0x0],Date['now']());}const _0x14a9f0=Object[_0xa9f2bc(0x1e0)](Object[_0xa9f2bc(0x21d)](_0x599888),_0x5d9f73);if(_0x1b4f5d[_0xa9f2bc(0x1f0)](_0x405742[_0xa9f2bc(0x216)],0x0))return _0x14a9f0;else _0x1b4f5d['ktCHq'](logError,'获取Pskey失败',_0x405742[_0xa9f2bc(0x1de)]);return{};}static async[_0x2cf0f2(0x211)](){const _0x2caec1=_0x2cf0f2,_0xdd773b=await napCatCore['session'][_0x2caec1(0x205)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0xdd773b?.[_0x2caec1(0x1cb)]?.[_0x2caec1(0x214)];}static async[_0x2cf0f2(0x1ff)](){const _0x69286=_0x2cf0f2,_0xd04fad={'orBGX':function(_0x3541e9,_0x2677d8){return _0x3541e9+_0x2677d8;},'hxIWK':function(_0x4562be,_0x2a6fc5){return _0x4562be+_0x2a6fc5;},'QFHLt':function(_0x17b6d6,_0xca7c8c){return _0x17b6d6+_0xca7c8c;},'STAAu':_0x69286(0x1fc),'PqRyZ':_0x69286(0x203),'RPqtH':'&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','xHDkQ':function(_0x4a2ab0,_0x20315e,_0x25b891){return _0x4a2ab0(_0x20315e,_0x25b891);},'fRcIn':_0x69286(0x20f)},_0x4fd8da=_0xd04fad[_0x69286(0x209)](_0xd04fad['hxIWK'](_0xd04fad[_0x69286(0x21a)](_0xd04fad[_0x69286(0x21a)](_0xd04fad[_0x69286(0x1cd)](_0xd04fad[_0x69286(0x1eb)],selfInfo[_0x69286(0x1d1)]),_0xd04fad[_0x69286(0x21b)]),Credentials[_0x69286(0x208)]),_0xd04fad['RPqtH'])+selfInfo['uin'],_0x69286(0x1dd));let _0xf2bee6={};try{_0xf2bee6=await RequestUtil[_0x69286(0x1e7)](_0x4fd8da);}catch(_0x2186f6){_0xd04fad[_0x69286(0x1da)](logDebug,_0xd04fad[_0x69286(0x215)],_0x2186f6),_0xf2bee6={};}return _0xf2bee6;}static async[_0x2cf0f2(0x21c)](_0x3a2a68=!![]){const _0x22892a=_0x2cf0f2,_0x5b2010={'cTkDR':function(_0x5b65fa,_0x13b7dd){return _0x5b65fa>_0x13b7dd;},'qFiYn':function(_0x2edbee,_0x5968ac){return _0x2edbee-_0x5968ac;},'zOgVf':function(_0x5512c5,_0x552f6b){return _0x5512c5*_0x552f6b;},'QMTqg':function(_0x550af2,_0x559da1){return _0x550af2!==_0x559da1;},'FQpeZ':function(_0x2635cc,_0x4d8cc2){return _0x2635cc+_0x4d8cc2;},'epnVX':function(_0x2ca5c0,_0x3039cc){return _0x2ca5c0+_0x3039cc;},'oNMAi':function(_0x384811,_0x952391){return _0x384811+_0x952391;},'voMYU':function(_0x4c8e72,_0xb386e){return _0x4c8e72+_0xb386e;},'OvJnS':_0x22892a(0x1d3),'GHhdO':_0x22892a(0x218),'dEeZF':'skey'};try{if(Credentials[_0x22892a(0x1cf)]==0x0||_0x5b2010[_0x22892a(0x200)](_0x5b2010[_0x22892a(0x202)](Date['now'](),Credentials[_0x22892a(0x1cf)]),_0x5b2010[_0x22892a(0x20e)](0x3e8,0xe10))||!_0x3a2a68){const _0x3592c6=await napCatCore['session']['getTicketService']()[_0x22892a(0x1f7)]('');if(_0x5b2010['QMTqg'](_0x3592c6[_0x22892a(0x216)],0x0))return'';const _0x49784e=_0x3592c6[_0x22892a(0x1fb)],_0xcb890=_0x3592c6['keyIndex'],_0x45c8ec=_0x5b2010[_0x22892a(0x1f6)](_0x5b2010['epnVX'](_0x5b2010[_0x22892a(0x1ee)](_0x5b2010[_0x22892a(0x1d6)]('https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin='+selfInfo['uin'],_0x22892a(0x203)),_0x49784e),_0x5b2010['OvJnS']),_0xcb890);let _0x111645={};try{_0x111645=await RequestUtil[_0x22892a(0x1e7)](_0x45c8ec);}catch(_0x36d1f8){logDebug(_0x5b2010[_0x22892a(0x1db)],_0x36d1f8),_0x111645={};}const _0x2c24bb=_0x111645[_0x5b2010[_0x22892a(0x1ed)]];if(!_0x2c24bb)return'';return Credentials[_0x22892a(0x208)]=_0x49784e,Credentials['KeyIndex']=_0xcb890,Credentials['CreatTime']=Date[_0x22892a(0x1ce)](),Credentials[_0x22892a(0x1d2)]=_0x2c24bb,_0x2c24bb;}return Credentials[_0x22892a(0x1d2)];}catch(_0x6adca6){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index fe042f4e..5eddc261 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x3068d9=_0xff21;function _0xff21(_0x7b9c9d,_0x49749c){const _0x5df368=_0x5df3();return _0xff21=function(_0xff21a8,_0x22acb5){_0xff21a8=_0xff21a8-0x1c4;let _0x2d8bd9=_0x5df368[_0xff21a8];return _0x2d8bd9;},_0xff21(_0x7b9c9d,_0x49749c);}(function(_0x5a9304,_0x3e051c){const _0x1eea28=_0xff21,_0x455407=_0x5a9304();while(!![]){try{const _0x562045=-parseInt(_0x1eea28(0x256))/0x1*(-parseInt(_0x1eea28(0x1c7))/0x2)+-parseInt(_0x1eea28(0x1cf))/0x3*(-parseInt(_0x1eea28(0x1f0))/0x4)+parseInt(_0x1eea28(0x246))/0x5*(-parseInt(_0x1eea28(0x21d))/0x6)+-parseInt(_0x1eea28(0x236))/0x7*(parseInt(_0x1eea28(0x223))/0x8)+-parseInt(_0x1eea28(0x262))/0x9+-parseInt(_0x1eea28(0x22f))/0xa+parseInt(_0x1eea28(0x266))/0xb;if(_0x562045===_0x3e051c)break;else _0x455407['push'](_0x455407['shift']());}catch(_0x1f40b3){_0x455407['push'](_0x455407['shift']());}}}(_0x5df3,0x4c6c1));function _0x5df3(){const _0x309ef4=['6svxtaF','EArTd','strong_newbie','toString','rdSyf','getPSkey','rxHjB','getGrouptNotice','180489JgUrHN','&page_limit=20','yBXdR','aMCxl','AvsVS','ltFCL','获取龙王信息失败','getGroupEssenceMsg','&end=','pULMJ','rDBCT','NeVoX','tHxIb','mAiSc','emotion_list','eLMLB','EMOTION','dRMms','description','xgJNs','PqjZg','OvqFF','1|0|3|4|2|5','qid=','FXuBe','p_skey=','ZmXrB','&group_code=','HwkCl','ALL','nBoRl','legend','GdYAo','32oALRgS','GroupData','all','qCoVk','getGroupHonorInfo','mems','Tpsyu','HttpGetText','name','POST','jskCN','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','&sort=1&gc=','trim','push','ceil','WnhAN','&qid=','dcMxh','frCPC','gLeXV','set','EmMtA',';\x20uin=o','CjTIs','split','rYHDY','XMjmS','LEGEND','errcode','actorList','jjcwW','aZtmh','IfWjB','VLQnM','qcAAU','Qodmb','strong_newbie_list','WNZBi','GET','QEuCm','IYGuV','bOnDY','eqoaB','avatar','720OetaZG','KYWWw','kfcaU','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','VWkMQ','CMcVF','8uKarRA','count','aexfe','QNoNW','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','now','tqdpH','&bkn=','cMyCX','XhuMx','length',';\x20p_uin=o','1573560vFeWmY','genBkn','UuKBr','desc','qAKyj','charCodeAt','cVFkr','144193qwGbHm','USRzF','noJnP','avzMg','TALKACTIVE','hHCkA','EACta','&type=','bjeSQ','GwVar','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','current_talkative','legend_list','DrAoD','tkkiI','FdJVO','1495KJqOeW','uin','talkative_list','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','lYqBR','akMRm','KnbEG','qun.qq.com','retcode','ILlkC','get','VYXkW','RWDDE','BcNcN','parse','jZgBU','40101TiLjUc','kWNsC','getGroupMembers','getSkey','HttpGetJson','buiYd','performer','获取群聊炽焰失败',';\x20skey=','DJFPp','zDEpg','emotion','4069890ldNnYU','performer_list','pjFKw','OWgES','4152093HEwdIS','bfyBy','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','ycfSX','KaYOF','CHzNd','talkative'];_0x5df3=function(){return _0x309ef4;};return _0x5df3();}import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x922629){const _0x511eef=_0xff21,_0x4b38b4={'QEuCm':'TALKACTIVE','WzIWL':_0x511eef(0x1c6),'avzMg':'ALL','EmMtA':_0x511eef(0x1f2),'XhuMx':'STORONGE_NEWBI','dRMms':_0x511eef(0x1c9),'aZtmh':'PERFROMER','wASfp':_0x511eef(0x25c),'sGGJd':_0x511eef(0x20c),'sbfGo':_0x511eef(0x1ee),'Tpsyu':'EMOTION','oDjmi':_0x511eef(0x261)},_0x38178c=_0x511eef(0x1e5)[_0x511eef(0x209)]('|');let _0x3debd0=0x0;while(!![]){switch(_0x38178c[_0x3debd0++]){case'0':_0x922629[_0x4b38b4[_0x511eef(0x218)]]=_0x4b38b4['WzIWL'];continue;case'1':_0x922629[_0x4b38b4[_0x511eef(0x239)]]=_0x4b38b4[_0x511eef(0x206)];continue;case'2':_0x922629[_0x4b38b4[_0x511eef(0x22c)]]=_0x4b38b4[_0x511eef(0x1e0)];continue;case'3':_0x922629[_0x4b38b4[_0x511eef(0x210)]]=_0x4b38b4['wASfp'];continue;case'4':_0x922629[_0x4b38b4['sGGJd']]=_0x4b38b4['sbfGo'];continue;case'5':_0x922629[_0x4b38b4[_0x511eef(0x1f6)]]=_0x4b38b4['oDjmi'];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x3068d9(0x1d6)](_0xbaed77,_0x3a2e0d){const _0x28de75=_0x3068d9,_0x2f6012={'qCoVk':function(_0x357b03,_0x1a5260){return _0x357b03+_0x1a5260;},'KYWWw':function(_0x2c683e,_0x4741a){return _0x2c683e+_0x4741a;},'rDBCT':function(_0x13695c,_0x3cc768){return _0x13695c+_0x3cc768;},'AvsVS':function(_0xe93c80,_0x26e0d7){return _0xe93c80+_0x26e0d7;},'yBXdR':function(_0x190d57,_0x2c4511){return _0x190d57+_0x2c4511;},'OvqFF':_0x28de75(0x25e),'eLMLB':';\x20p_uin=o','CjTIs':';\x20uin=o','dcMxh':function(_0x44d605,_0x3eee53){return _0x44d605||_0x3eee53;},'cGaAi':function(_0x5cbae3,_0x58f4e3){return _0x5cbae3+_0x58f4e3;},'sBmMs':_0x28de75(0x268),'IOdoX':'&page_start=','WNZBi':_0x28de75(0x1d0),'BcNcN':function(_0x38238f,_0x57932a){return _0x38238f!==_0x57932a;}},_0x5a3483=(await NTQQUserApi['getPSkey']([_0x28de75(0x24d)]))[_0x28de75(0x24d)],_0x2e6d6a=await NTQQUserApi[_0x28de75(0x259)](),_0x2ad6d3=_0x2f6012[_0x28de75(0x1f3)](_0x2f6012[_0x28de75(0x21e)](_0x2f6012[_0x28de75(0x1d9)](_0x2f6012[_0x28de75(0x1d3)](_0x2f6012[_0x28de75(0x1d1)](_0x28de75(0x1e8),_0x5a3483),_0x2f6012[_0x28de75(0x1e4)])+_0x2e6d6a,_0x2f6012[_0x28de75(0x1de)])+selfInfo[_0x28de75(0x247)],_0x2f6012[_0x28de75(0x208)]),selfInfo[_0x28de75(0x247)]);if(_0x2f6012[_0x28de75(0x202)](!_0x2e6d6a,!_0x5a3483))return undefined;const _0x18ad3c=WebApi[_0x28de75(0x230)](_0x2e6d6a),_0x165d16=_0x2f6012[_0x28de75(0x21e)](_0x2f6012['rDBCT'](_0x2f6012['cGaAi'](_0x2f6012[_0x28de75(0x1d1)](_0x2f6012[_0x28de75(0x21e)](_0x2f6012['sBmMs'],_0x18ad3c),_0x28de75(0x1ea))+_0xbaed77,_0x2f6012['IOdoX']),_0x3a2e0d),_0x2f6012[_0x28de75(0x216)]);let _0x422958;try{_0x422958=await RequestUtil['HttpGetJson'](_0x165d16,_0x28de75(0x217),'',{'Cookie':_0x2ad6d3});}catch{return undefined;}if(_0x2f6012[_0x28de75(0x253)](_0x422958[_0x28de75(0x24e)],0x0))return undefined;return _0x422958;}static async[_0x3068d9(0x258)](_0x44550c,_0x343515=!![]){const _0x24603b=_0x3068d9,_0x936bf7={'tHxIb':function(_0x88a223,_0x2bc1c5){return _0x88a223>_0x2bc1c5;},'pjFKw':function(_0x478d91,_0x6511f7){return _0x478d91-_0x6511f7;},'PqjZg':function(_0x4b5733,_0x15390c){return _0x4b5733*_0x15390c;},'IfWjB':_0x24603b(0x24d),'EArTd':function(_0x2e208d,_0x1cd767){return _0x2e208d+_0x1cd767;},'mAiSc':function(_0x2dc039,_0x48faba){return _0x2dc039+_0x48faba;},'aMCxl':function(_0x1ecafb,_0x48ddda){return _0x1ecafb+_0x48ddda;},'bOnDY':_0x24603b(0x1e8),'FdJVO':_0x24603b(0x25e),'ycfSX':_0x24603b(0x22e),'buiYd':function(_0x4dfe03,_0x1ddd46){return _0x4dfe03||_0x1ddd46;},'zDEpg':function(_0x18b032,_0x2ad7fc){return _0x18b032+_0x2ad7fc;},'hHCkA':_0x24603b(0x240),'FhkcS':'&bkn=','Qodmb':_0x24603b(0x1f9),'kWNsC':function(_0x5cc53c,_0x1141bd){return _0x5cc53c<=_0x1141bd;},'xgJNs':function(_0x26f463,_0x16e8bf){return _0x26f463+_0x16e8bf;},'kfcaU':function(_0x21c0d4,_0xa735ca){return _0x21c0d4+_0xa735ca;},'noJnP':function(_0x520e18,_0x34f0ed){return _0x520e18+_0x34f0ed;},'QNoNW':_0x24603b(0x249),'GwVar':function(_0x5c8aa1,_0x138ed3){return _0x5c8aa1*_0x138ed3;},'tqdpH':_0x24603b(0x1d7),'DJFPp':function(_0x33cf96,_0x5ace7d){return _0x33cf96!==_0x5ace7d;}};let _0x3abaf2=new Array();try{let _0x4c7500=WebGroupData[_0x24603b(0x1f1)]['get'](_0x44550c),_0x519949=WebGroupData['GroupTime'][_0x24603b(0x250)](_0x44550c);if(!_0x519949||_0x936bf7[_0x24603b(0x1db)](_0x936bf7['pjFKw'](Date[_0x24603b(0x228)](),_0x519949),_0x936bf7[_0x24603b(0x1e3)](0x708,0x3e8))||!_0x343515){const _0x3fa5a5=(await NTQQUserApi['getPSkey'](['qun.qq.com']))[_0x936bf7[_0x24603b(0x211)]],_0xb29b38=await NTQQUserApi[_0x24603b(0x259)](),_0xdd0048=_0x936bf7['EArTd'](_0x936bf7[_0x24603b(0x1c8)](_0x936bf7[_0x24603b(0x1dc)](_0x936bf7[_0x24603b(0x1c8)](_0x936bf7[_0x24603b(0x1d2)](_0x936bf7[_0x24603b(0x21a)],_0x3fa5a5),_0x936bf7[_0x24603b(0x245)]),_0xb29b38),_0x936bf7[_0x24603b(0x269)]),selfInfo['uin']);if(_0x936bf7[_0x24603b(0x25b)](!_0xb29b38,!_0x3fa5a5))return _0x3abaf2;const _0x32848a=WebApi[_0x24603b(0x230)](_0xb29b38),_0x29038b=[],_0x377db7=await RequestUtil['HttpGetJson'](_0x936bf7['zDEpg'](_0x936bf7[_0x24603b(0x260)](_0x936bf7[_0x24603b(0x23b)],_0x44550c),_0x936bf7['FhkcS'])+_0x32848a,_0x936bf7[_0x24603b(0x214)],'',{'Cookie':_0xdd0048});if(!_0x377db7?.[_0x24603b(0x224)]||_0x377db7?.[_0x24603b(0x20d)]!==0x0||!_0x377db7?.[_0x24603b(0x1f5)])return[];else for(const _0x11e402 in _0x377db7[_0x24603b(0x1f5)]){_0x3abaf2[_0x24603b(0x1fe)](_0x377db7[_0x24603b(0x1f5)][_0x11e402]);}const _0x17d451=Math[_0x24603b(0x1ff)](_0x377db7['count']/0x28);for(let _0x15f69c=0x2;_0x936bf7[_0x24603b(0x257)](_0x15f69c,_0x17d451);_0x15f69c++){const _0x3eea75=RequestUtil[_0x24603b(0x25a)](_0x936bf7[_0x24603b(0x1e2)](_0x936bf7[_0x24603b(0x260)](_0x936bf7[_0x24603b(0x1e2)](_0x936bf7[_0x24603b(0x21f)](_0x936bf7[_0x24603b(0x238)](_0x936bf7[_0x24603b(0x226)],_0x936bf7[_0x24603b(0x23f)](_0x936bf7[_0x24603b(0x264)](_0x15f69c,0x1),0x28))+_0x936bf7[_0x24603b(0x229)]+_0x936bf7[_0x24603b(0x1e3)](_0x15f69c,0x28),_0x24603b(0x1fc)),_0x44550c),_0x24603b(0x22a)),_0x32848a),_0x936bf7[_0x24603b(0x214)],'',{'Cookie':_0xdd0048});_0x29038b[_0x24603b(0x1fe)](_0x3eea75);}for(let _0x116da9=0x1;_0x116da9<=_0x17d451;_0x116da9++){const _0x25993d=await _0x29038b[_0x116da9];if(!_0x25993d?.['count']||_0x936bf7[_0x24603b(0x25f)](_0x25993d?.[_0x24603b(0x20d)],0x0)||!_0x25993d?.[_0x24603b(0x1f5)])continue;for(const _0x1c8bde in _0x25993d[_0x24603b(0x1f5)]){_0x3abaf2[_0x24603b(0x1fe)](_0x25993d['mems'][_0x1c8bde]);}}WebGroupData[_0x24603b(0x1f1)][_0x24603b(0x205)](_0x44550c,_0x3abaf2),WebGroupData['GroupTime'][_0x24603b(0x205)](_0x44550c,Date[_0x24603b(0x228)]());}else _0x3abaf2=_0x4c7500;}catch{return _0x3abaf2;}return _0x3abaf2;}static async['setGroupNotice'](_0xa0f09b,_0x32e3db=''){const _0x3eb683=_0x3068d9,_0x53d0f9={'rdSyf':function(_0x4975ac,_0x48063e){return _0x4975ac+_0x48063e;},'bjeSQ':function(_0x22a7c8,_0x43660a){return _0x22a7c8+_0x43660a;},'OWgES':function(_0xc115a5,_0x5adf8a){return _0xc115a5+_0x5adf8a;},'HwkCl':'p_skey=','jskCN':_0x3eb683(0x25e),'aexfe':_0x3eb683(0x22e),'HuKqq':function(_0x1d6507,_0x447a1c){return _0x1d6507||_0x447a1c;},'jmcEi':function(_0x1751e2,_0x459b4b){return _0x1751e2+_0x459b4b;},'eqoaB':function(_0x4b1ad9,_0x4b9c4d){return _0x4b1ad9+_0x4b9c4d;},'lYqBR':_0x3eb683(0x1e6),'KceKp':_0x3eb683(0x22a),'akMRm':_0x3eb683(0x227),'EACta':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','pULMJ':_0x3eb683(0x217)},_0x2e5491=(await NTQQUserApi[_0x3eb683(0x1cc)](['qun.qq.com']))[_0x3eb683(0x24d)],_0x213396=await NTQQUserApi['getSkey'](),_0x554a63=_0x53d0f9[_0x3eb683(0x1cb)](_0x53d0f9[_0x3eb683(0x23e)](_0x53d0f9[_0x3eb683(0x265)](_0x53d0f9[_0x3eb683(0x23e)](_0x53d0f9[_0x3eb683(0x1eb)],_0x2e5491),_0x53d0f9[_0x3eb683(0x1fa)]),_0x213396),_0x53d0f9[_0x3eb683(0x225)])+selfInfo[_0x3eb683(0x247)];let _0x3967e8=undefined;if(_0x53d0f9['HuKqq'](!_0x213396,!_0x2e5491))return undefined;const _0xd2399=WebApi[_0x3eb683(0x230)](_0x213396),_0xb5d2e4=_0x53d0f9['jmcEi'](_0x53d0f9[_0x3eb683(0x23e)](_0x53d0f9[_0x3eb683(0x265)](_0x53d0f9[_0x3eb683(0x21b)](_0x53d0f9[_0x3eb683(0x21b)](_0x53d0f9[_0x3eb683(0x21b)](_0x53d0f9[_0x3eb683(0x24a)],_0xa0f09b),_0x53d0f9['KceKp']),_0xd2399),'&text='),_0x32e3db),_0x53d0f9[_0x3eb683(0x24b)]),_0x38c97c=_0x53d0f9['eqoaB'](_0x53d0f9[_0x3eb683(0x23c)],_0xd2399);try{return _0x3967e8=await RequestUtil['HttpGetJson'](_0x38c97c,_0x53d0f9[_0x3eb683(0x1d8)],'',{'Cookie':_0x554a63}),_0x3967e8;}catch(_0x28a477){return undefined;}return undefined;}static async[_0x3068d9(0x1ce)](_0x3514a7){const _0x1bf0c2=_0x3068d9,_0xeadbcf={'rYHDY':_0x1bf0c2(0x24d),'VYXkW':function(_0x50f4d2,_0x2e7b9e){return _0x50f4d2+_0x2e7b9e;},'coDvd':_0x1bf0c2(0x1e8),'VLQnM':_0x1bf0c2(0x25e),'IYGuV':_0x1bf0c2(0x22e),'IjhGy':function(_0x206449,_0x4eb8f0){return _0x206449||_0x4eb8f0;},'ZmXrB':function(_0x652bad,_0x23e411){return _0x652bad+_0x23e411;},'tkkiI':_0x1bf0c2(0x220),'ltFCL':_0x1bf0c2(0x1fb),'jjcwW':'GET'},_0x1c08cf=(await NTQQUserApi[_0x1bf0c2(0x1cc)]([_0xeadbcf[_0x1bf0c2(0x20a)]]))[_0x1bf0c2(0x24d)],_0x52896d=await NTQQUserApi[_0x1bf0c2(0x259)](),_0x52ec18=_0xeadbcf[_0x1bf0c2(0x251)](_0xeadbcf[_0x1bf0c2(0x251)](_0xeadbcf['VYXkW'](_0xeadbcf[_0x1bf0c2(0x251)](_0xeadbcf['coDvd'],_0x1c08cf)+_0xeadbcf[_0x1bf0c2(0x212)],_0x52896d),_0xeadbcf[_0x1bf0c2(0x219)]),selfInfo[_0x1bf0c2(0x247)]);let _0x2e3c84=undefined;if(_0xeadbcf['IjhGy'](!_0x52896d,!_0x1c08cf))return undefined;const _0x17e5a5=WebApi['genBkn'](_0x52896d),_0xb4f6c0=_0xeadbcf[_0x1bf0c2(0x251)](_0xeadbcf['ZmXrB'](_0xeadbcf[_0x1bf0c2(0x1e9)](_0xeadbcf[_0x1bf0c2(0x244)],_0x17e5a5),_0x1bf0c2(0x201))+_0x3514a7,_0xeadbcf[_0x1bf0c2(0x1d4)]);try{_0x2e3c84=await RequestUtil[_0x1bf0c2(0x25a)](_0xb4f6c0,_0xeadbcf[_0x1bf0c2(0x20f)],'',{'Cookie':_0x52ec18});if(_0x2e3c84?.['ec']!==0x0)return undefined;return _0x2e3c84;}catch(_0x313564){return undefined;}return undefined;}static['genBkn'](_0x2472fb){const _0x4a450a=_0x3068d9,_0x278e2c={'nBoRl':function(_0x3577d1,_0x136d2a){return _0x3577d1||_0x136d2a;},'qAKyj':function(_0x5ee80c,_0x154184){return _0x5ee80c<_0x154184;},'jdacz':function(_0x2139b3,_0x4dcf08){return _0x2139b3+_0x4dcf08;},'WnhAN':function(_0x3f9040,_0x405649){return _0x3f9040&_0x405649;}};_0x2472fb=_0x278e2c[_0x4a450a(0x1ed)](_0x2472fb,'');let _0xb8623b=0x1505;for(let _0x302b63=0x0;_0x278e2c[_0x4a450a(0x233)](_0x302b63,_0x2472fb[_0x4a450a(0x22d)]);_0x302b63++){const _0x33fbbc=_0x2472fb[_0x4a450a(0x234)](_0x302b63);_0xb8623b=_0x278e2c['jdacz'](_0xb8623b+(_0xb8623b<<0x5),_0x33fbbc);}return _0x278e2c[_0x4a450a(0x200)](_0xb8623b,0x7fffffff)[_0x4a450a(0x1ca)]();}static async[_0x3068d9(0x1f4)](_0x526df0,_0x4bdbb9){const _0x33e5ee=_0x3068d9,_0x10b53c={'KaYOF':function(_0x2c5061,_0x4c1d5c){return _0x2c5061+_0x4c1d5c;},'UuKBr':function(_0x1bdfaa,_0x3bf5b1){return _0x1bdfaa+_0x3bf5b1;},'XMjmS':function(_0x35b6ef,_0x87c912){return _0x35b6ef+_0x87c912;},'yFSRp':'https://qun.qq.com/interactive/honorlist?gc=','ILlkC':_0x33e5ee(0x23d),'GdYAo':function(_0x5de358,_0x2f98d2){return _0x5de358===_0x2f98d2;},'bfyBy':function(_0x4f5903,_0x3aa831,_0x5756c3,_0x531539){return _0x4f5903(_0x3aa831,_0x5756c3,_0x531539);},'KnbEG':'获取当前群荣耀失败','CMcVF':_0x33e5ee(0x24d),'VWkMQ':function(_0x40d70f,_0x461763){return _0x40d70f||_0x461763;},'frCPC':function(_0x4f74fa,_0x622907){return _0x4f74fa+_0x622907;},'RWDDE':function(_0x2b1578,_0xd646f1){return _0x2b1578+_0xd646f1;},'NeVoX':function(_0x550491,_0x4b0e73){return _0x550491+_0x4b0e73;},'jZgBU':_0x33e5ee(0x207),'qcAAU':function(_0x25e072,_0x18f9ec){return _0x25e072===_0x18f9ec;},'USRzF':function(_0x42b56c,_0x469a25,_0x59335a){return _0x42b56c(_0x469a25,_0x59335a);},'iXqVU':_0x33e5ee(0x1d5),'CHzNd':function(_0x4cf6b6,_0x1816b3,_0x4f60c7){return _0x4cf6b6(_0x1816b3,_0x4f60c7);},'ZCvAn':'获取群聊之火失败','gLeXV':function(_0x22da93,_0x265067){return _0x22da93(_0x265067);},'DrAoD':function(_0x165da7,_0x350e72){return _0x165da7===_0x350e72;},'rxHjB':function(_0x246d09,_0xe35cf){return _0x246d09===_0xe35cf;},'FXuBe':_0x33e5ee(0x25d),'cVFkr':'获取快乐源泉失败','cMyCX':function(_0x20ea22,_0x5caca1){return _0x20ea22===_0x5caca1;}},_0x136f2a=(await NTQQUserApi['getPSkey']([_0x33e5ee(0x24d)]))[_0x10b53c[_0x33e5ee(0x222)]],_0x21a851=await NTQQUserApi[_0x33e5ee(0x259)]();if(_0x10b53c[_0x33e5ee(0x221)](!_0x21a851,!_0x136f2a))return undefined;async function _0x3a5261(_0x4a15fb,_0x874db7){const _0x36b7ba=_0x33e5ee;let _0x1ac98f=_0x10b53c[_0x36b7ba(0x1c4)](_0x10b53c[_0x36b7ba(0x231)](_0x10b53c[_0x36b7ba(0x20b)](_0x10b53c['yFSRp'],_0x4a15fb),_0x10b53c[_0x36b7ba(0x24f)]),_0x874db7[_0x36b7ba(0x1ca)]()),_0x202d85='',_0x32c44b;try{_0x202d85=await RequestUtil[_0x36b7ba(0x1f7)](_0x1ac98f,_0x36b7ba(0x217),'',{'Cookie':_0x3a4048});const _0x244e8c=_0x202d85['match'](/window\.__INITIAL_STATE__=(.*?);/);return _0x244e8c&&(_0x32c44b=JSON[_0x36b7ba(0x254)](_0x244e8c[0x1][_0x36b7ba(0x1fd)]())),_0x10b53c['GdYAo'](_0x874db7,0x1)?_0x32c44b?.['talkativeList']:_0x32c44b?.[_0x36b7ba(0x20e)];}catch(_0x27d1b3){_0x10b53c[_0x36b7ba(0x267)](logDebug,_0x10b53c[_0x36b7ba(0x24c)],_0x1ac98f,_0x27d1b3);}return undefined;}let _0xfa154d={'group_id':_0x526df0};const _0x3a4048=_0x10b53c[_0x33e5ee(0x203)](_0x10b53c['UuKBr'](_0x10b53c[_0x33e5ee(0x252)](_0x10b53c[_0x33e5ee(0x1da)](_0x10b53c['UuKBr'](_0x10b53c['KaYOF'](_0x33e5ee(0x1e8),_0x136f2a),_0x33e5ee(0x25e)),_0x21a851),_0x33e5ee(0x22e)),selfInfo[_0x33e5ee(0x247)]),_0x10b53c[_0x33e5ee(0x255)])+selfInfo[_0x33e5ee(0x247)];if(_0x10b53c[_0x33e5ee(0x1ef)](_0x4bdbb9,WebHonorType[_0x33e5ee(0x23a)])||_0x10b53c[_0x33e5ee(0x213)](_0x4bdbb9,WebHonorType['ALL']))try{let _0x596ae3=await _0x10b53c['USRzF'](_0x3a5261,_0x526df0,0x1);if(!_0x596ae3)throw new Error(_0x10b53c['iXqVU']);_0xfa154d[_0x33e5ee(0x241)]={'user_id':_0x596ae3[0x0]?.[_0x33e5ee(0x247)],'avatar':_0x596ae3[0x0]?.[_0x33e5ee(0x21c)],'nickname':_0x596ae3[0x0]?.['name'],'day_count':0x0,'description':_0x596ae3[0x0]?.[_0x33e5ee(0x232)]},_0xfa154d[_0x33e5ee(0x248)]=[];for(const _0x907045 of _0x596ae3){_0xfa154d[_0x33e5ee(0x248)][_0x33e5ee(0x1fe)]({'user_id':_0x907045?.[_0x33e5ee(0x247)],'avatar':_0x907045?.[_0x33e5ee(0x21c)],'description':_0x907045?.['desc'],'day_count':0x0,'nickname':_0x907045?.[_0x33e5ee(0x1f8)]});}}catch(_0x5ede30){logDebug(_0x5ede30);}if(_0x10b53c[_0x33e5ee(0x1ef)](_0x4bdbb9,WebHonorType['PERFROMER'])||_0x4bdbb9===WebHonorType['ALL'])try{let _0x40e656=await _0x10b53c[_0x33e5ee(0x1c5)](_0x3a5261,_0x526df0,0x2);if(!_0x40e656)throw new Error(_0x10b53c['ZCvAn']);_0xfa154d['performer_list']=[];for(const _0x46f56d of _0x40e656){_0xfa154d[_0x33e5ee(0x263)][_0x33e5ee(0x1fe)]({'user_id':_0x46f56d?.['uin'],'nickname':_0x46f56d?.[_0x33e5ee(0x1f8)],'avatar':_0x46f56d?.[_0x33e5ee(0x21c)],'description':_0x46f56d?.[_0x33e5ee(0x232)]});}}catch(_0xbc0a1c){_0x10b53c[_0x33e5ee(0x204)](logDebug,_0xbc0a1c);}if(_0x10b53c[_0x33e5ee(0x243)](_0x4bdbb9,WebHonorType['PERFROMER'])||_0x10b53c['rxHjB'](_0x4bdbb9,WebHonorType['ALL']))try{let _0x4a570a=await _0x10b53c[_0x33e5ee(0x237)](_0x3a5261,_0x526df0,0x3);if(!_0x4a570a)throw new Error(_0x10b53c['FXuBe']);_0xfa154d[_0x33e5ee(0x242)]=[];for(const _0x11db53 of _0x4a570a){_0xfa154d[_0x33e5ee(0x242)]['push']({'user_id':_0x11db53?.[_0x33e5ee(0x247)],'nickname':_0x11db53?.[_0x33e5ee(0x1f8)],'avatar':_0x11db53?.[_0x33e5ee(0x21c)],'desc':_0x11db53?.[_0x33e5ee(0x1e1)]});}}catch(_0x3d7485){_0x10b53c[_0x33e5ee(0x237)](logDebug,_0x10b53c[_0x33e5ee(0x1e7)],_0x3d7485);}if(_0x10b53c[_0x33e5ee(0x1cd)](_0x4bdbb9,WebHonorType['EMOTION'])||_0x4bdbb9===WebHonorType[_0x33e5ee(0x1ec)])try{let _0x4d8184=await _0x10b53c[_0x33e5ee(0x237)](_0x3a5261,_0x526df0,0x6);if(!_0x4d8184)throw new Error(_0x10b53c[_0x33e5ee(0x235)]);_0xfa154d[_0x33e5ee(0x1dd)]=[];for(const _0x211535 of _0x4d8184){_0xfa154d[_0x33e5ee(0x1dd)]['push']({'user_id':_0x211535?.['uin'],'nickname':_0x211535?.[_0x33e5ee(0x1f8)],'avatar':_0x211535?.[_0x33e5ee(0x21c)],'desc':_0x211535?.[_0x33e5ee(0x1e1)]});}}catch(_0x28386a){_0x10b53c[_0x33e5ee(0x1c5)](logDebug,_0x10b53c[_0x33e5ee(0x235)],_0x28386a);}return(_0x10b53c[_0x33e5ee(0x22b)](_0x4bdbb9,WebHonorType[_0x33e5ee(0x1df)])||_0x4bdbb9===WebHonorType['ALL'])&&(_0xfa154d[_0x33e5ee(0x215)]=[]),_0xfa154d;}} \ No newline at end of file +const _0x3b5a00=_0x3dcf;(function(_0x52218f,_0xeabdc){const _0x1e8137=_0x3dcf,_0x56a1f8=_0x52218f();while(!![]){try{const _0x2f2270=parseInt(_0x1e8137(0x24c))/0x1*(parseInt(_0x1e8137(0x1ce))/0x2)+parseInt(_0x1e8137(0x244))/0x3+parseInt(_0x1e8137(0x1de))/0x4*(parseInt(_0x1e8137(0x1c8))/0x5)+-parseInt(_0x1e8137(0x23d))/0x6+parseInt(_0x1e8137(0x1c7))/0x7+-parseInt(_0x1e8137(0x256))/0x8*(-parseInt(_0x1e8137(0x1ff))/0x9)+parseInt(_0x1e8137(0x247))/0xa*(-parseInt(_0x1e8137(0x1d7))/0xb);if(_0x2f2270===_0xeabdc)break;else _0x56a1f8['push'](_0x56a1f8['shift']());}catch(_0x2d1c61){_0x56a1f8['push'](_0x56a1f8['shift']());}}}(_0x14c0,0xb006c));function _0x14c0(){const _0x457126=['10LOeaQb','&type=','LqODU','pxMKU','mems','642206iSJgVU','cSWbu','vyuje','talkative','lIwQZ','&end=',';\x20skey=','dysyH','getGroupMembers','get','16zymGvg','获取群聊之火失败','legend_list','aAbuM','CTvSF','zACTI','setGroupNotice','push','vJAbF','ERRAL','&page_limit=20','HnMgA','talkativeList','avatar','getPSkey','6409683ETvvtM','15MDGCnI','DVzcB','POST','errcode','jBLVf','eLJfU','4iwcOpF','name','description','nBOxZ','RLZxf','Yxumf','p_skey=','https://qun.qq.com/interactive/honorlist?gc=','mPjys','31786381HarXoi',';\x20uin=o','获取龙王信息失败','RiFBW','BiQyG','获取群聊炽焰失败','legend','365716nkatoE','NpawM','vaPdm','ynWUj','mMiGI','strong_newbie_list','getSkey','eUtpb','BCfVL','ThoMM','talkative_list','length','获取当前群荣耀失败','VwkoG','getGrouptNotice','EMOTION','actorList','getGroupEssenceMsg','DqDPx','AvnCV','jlwZA','dsMWQ','NPlNE','genBkn','retcode','arSPI','uSOjf','vzoyx','dLnto','gKeHw','current_talkative','nuxzg','GroupTime','3747699JzEIaR','vPTLx','parse','RdbCt','dAivE','&bkn=','yZzXU','rlpJa','emotion','performer','lFZHX','Bxaap','jySzW','hyygs','GroupData','fJmXV','now','&text=','NYGge','nRbRz','SMHJX','getGroupHonorInfo','desc','&page_start=','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','ziWuK','set','charCodeAt','cAVPf','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','cRCRJ','ATdmc','Xvrsp','count','GET','teYFi','fsvKC','SWfjd','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','pXXGL','mVKNS','TALKACTIVE','&group_code=','qun.qq.com','all','RxFyz','BcReq','XpVyY','uin','mkZsT','KPoJu','HttpGetJson','STORONGE_NEWBI','&sort=1&gc=','dzjyH','YEFnB','1|5|4|0|2|3',';\x20p_uin=o','GCleB','HttpGetText','GSJhn','joiPP','5848686ULKdLI','ALL','FOYnW','fmpmI','PERFROMER','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','performer_list','3834798TeucMZ','获取快乐源泉失败','trim'];_0x14c0=function(){return _0x457126;};return _0x14c0();}import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x3dcf(_0x43663d,_0x446a61){const _0x14c089=_0x14c0();return _0x3dcf=function(_0x3dcf87,_0x11d252){_0x3dcf87=_0x3dcf87-0x1b9;let _0x1725bf=_0x14c089[_0x3dcf87];return _0x1725bf;},_0x3dcf(_0x43663d,_0x446a61);}import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x15262c){const _0x2f661b=_0x3dcf,_0x3be93c={'aAbuM':_0x2f661b(0x237),'XhDrn':'LEGEND','vzoyx':_0x2f661b(0x1dd),'gJQjx':_0x2f661b(0x23e),'cSWbu':_0x2f661b(0x22b),'lFZHX':_0x2f661b(0x233),'vyuje':'strong_newbie','dAivE':_0x2f661b(0x1ed),'teYFi':_0x2f661b(0x207),'fsvKC':'PERFROMER','IovJl':_0x2f661b(0x208),'fmpmI':'TALKACTIVE','DVzcB':_0x2f661b(0x24f)},_0x49528d=_0x3be93c[_0x2f661b(0x1bb)]['split']('|');let _0xd7f733=0x0;while(!![]){switch(_0x49528d[_0xd7f733++]){case'0':_0x15262c[_0x3be93c['XhDrn']]=_0x3be93c[_0x2f661b(0x1f9)];continue;case'1':_0x15262c[_0x3be93c['gJQjx']]=_0x3be93c[_0x2f661b(0x24d)];continue;case'2':_0x15262c[_0x3be93c[_0x2f661b(0x209)]]=_0x3be93c[_0x2f661b(0x24e)];continue;case'3':_0x15262c[_0x3be93c[_0x2f661b(0x203)]]=_0x3be93c[_0x2f661b(0x222)];continue;case'4':_0x15262c[_0x3be93c[_0x2f661b(0x223)]]=_0x3be93c['IovJl'];continue;case'5':_0x15262c[_0x3be93c[_0x2f661b(0x240)]]=_0x3be93c[_0x2f661b(0x1c9)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x3b5a00(0x1ef)](_0x50f3a0,_0x16a2b9){const _0x2d296b=_0x3b5a00,_0x269b7d={'eLJfU':_0x2d296b(0x22a),'SMHJX':function(_0x46b1f1,_0x2b7a59){return _0x46b1f1+_0x2b7a59;},'IZUGt':'p_skey=','mkZsT':_0x2d296b(0x252),'ynWUj':_0x2d296b(0x238),'byTJh':function(_0x453bcb,_0x3154f2){return _0x453bcb+_0x3154f2;},'dLnto':function(_0x156078,_0x5b2e9c){return _0x156078+_0x5b2e9c;},'JvZmp':function(_0x31cffe,_0x1ce79a){return _0x31cffe+_0x1ce79a;},'MfCiN':function(_0x185e94,_0x5b31fc){return _0x185e94+_0x5b31fc;},'BiQyG':_0x2d296b(0x225),'SWfjd':_0x2d296b(0x216),'bRaza':_0x2d296b(0x221)},_0x477be6=(await NTQQUserApi['getPSkey'](['qun.qq.com']))[_0x269b7d[_0x2d296b(0x1cd)]],_0x32a6cd=await NTQQUserApi[_0x2d296b(0x1e4)](),_0x35a981=_0x269b7d[_0x2d296b(0x213)](_0x269b7d[_0x2d296b(0x213)](_0x269b7d['SMHJX'](_0x269b7d[_0x2d296b(0x213)](_0x269b7d[_0x2d296b(0x213)](_0x269b7d[_0x2d296b(0x213)](_0x269b7d['IZUGt'],_0x477be6),_0x269b7d[_0x2d296b(0x230)]),_0x32a6cd),_0x269b7d[_0x2d296b(0x1e1)]),selfInfo[_0x2d296b(0x22f)])+_0x2d296b(0x1d8),selfInfo[_0x2d296b(0x22f)]);if(!_0x32a6cd||!_0x477be6)return undefined;const _0x5dc5a6=WebApi[_0x2d296b(0x1f5)](_0x32a6cd),_0x25b006=_0x269b7d['byTJh'](_0x269b7d[_0x2d296b(0x1fa)](_0x269b7d['dLnto'](_0x269b7d['JvZmp'](_0x269b7d['MfCiN'](_0x269b7d[_0x2d296b(0x1db)],_0x5dc5a6)+_0x2d296b(0x229),_0x50f3a0),_0x269b7d[_0x2d296b(0x224)]),_0x16a2b9),_0x2d296b(0x1c2));let _0xd77d13;try{_0xd77d13=await RequestUtil[_0x2d296b(0x232)](_0x25b006,_0x269b7d['bRaza'],'',{'Cookie':_0x35a981});}catch{return undefined;}if(_0xd77d13[_0x2d296b(0x1f6)]!==0x0)return undefined;return _0xd77d13;}static async[_0x3b5a00(0x254)](_0x596c42,_0x4ed244=!![]){const _0x47930b=_0x3b5a00,_0x58b8c2={'zACTI':function(_0x5a08e9,_0x181f79){return _0x5a08e9>_0x181f79;},'aWWzw':function(_0x2dbf83,_0x4d3336){return _0x2dbf83-_0x4d3336;},'uSOjf':function(_0x32dfe2,_0x147a3c){return _0x32dfe2*_0x147a3c;},'HnMgA':_0x47930b(0x22a),'RdbCt':function(_0x51cc2d,_0x75e6ec){return _0x51cc2d+_0x75e6ec;},'EuusT':function(_0x26ffde,_0x293b49){return _0x26ffde+_0x293b49;},'ziWuK':function(_0x5bd21c,_0xa61870){return _0x5bd21c+_0xa61870;},'mPjys':_0x47930b(0x1d4),'fJmXV':_0x47930b(0x252),'CTvSF':function(_0x295d35,_0x1c8d28){return _0x295d35||_0x1c8d28;},'nuxzg':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','QkjwE':function(_0x1a8ad0,_0x10ac32){return _0x1a8ad0!==_0x10ac32;},'cRCRJ':function(_0x33c939,_0x16b0fc){return _0x33c939/_0x16b0fc;},'GSJhn':function(_0xd18ceb,_0x451e81){return _0xd18ceb<=_0x451e81;},'XpVyY':function(_0x81c7c2,_0x115a36){return _0x81c7c2+_0x115a36;},'DqxmS':function(_0x540e3d,_0x5cf896){return _0x540e3d+_0x5cf896;},'RiFBW':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','BpipL':function(_0x5d5879,_0x45f00c){return _0x5d5879-_0x45f00c;},'gKeHw':_0x47930b(0x251),'LfbEg':function(_0x486c6d,_0x1f1a14){return _0x486c6d*_0x1f1a14;},'hLPoy':_0x47930b(0x234),'Xvrsp':_0x47930b(0x1ca),'YEFnB':function(_0x37ffca,_0x395282){return _0x37ffca<=_0x395282;},'jlwZA':function(_0x46b0ce,_0x3b5d29){return _0x46b0ce!==_0x3b5d29;}};let _0x2db250=new Array();try{let _0x327202=WebGroupData['GroupData'][_0x47930b(0x255)](_0x596c42),_0x2fb7e9=WebGroupData[_0x47930b(0x1fe)][_0x47930b(0x255)](_0x596c42);if(!_0x2fb7e9||_0x58b8c2[_0x47930b(0x1bd)](_0x58b8c2['aWWzw'](Date['now'](),_0x2fb7e9),_0x58b8c2[_0x47930b(0x1f8)](0x708,0x3e8))||!_0x4ed244){const _0x1a3bce=(await NTQQUserApi['getPSkey']([_0x58b8c2['HnMgA']]))[_0x58b8c2[_0x47930b(0x1c3)]],_0x5c508d=await NTQQUserApi['getSkey'](),_0x41709f=_0x58b8c2[_0x47930b(0x202)](_0x58b8c2['EuusT'](_0x58b8c2[_0x47930b(0x218)](_0x58b8c2[_0x47930b(0x1d6)],_0x1a3bce)+_0x58b8c2[_0x47930b(0x20e)],_0x5c508d),_0x47930b(0x238))+selfInfo['uin'];if(_0x58b8c2[_0x47930b(0x1bc)](!_0x5c508d,!_0x1a3bce))return _0x2db250;const _0x484dbd=WebApi[_0x47930b(0x1f5)](_0x5c508d),_0x1ac4f6=[],_0x413ccd=await RequestUtil[_0x47930b(0x232)](_0x58b8c2[_0x47930b(0x202)](_0x58b8c2[_0x47930b(0x1fd)]+_0x596c42,_0x47930b(0x204))+_0x484dbd,_0x47930b(0x1ca),'',{'Cookie':_0x41709f});if(!_0x413ccd?.[_0x47930b(0x220)]||_0x58b8c2['QkjwE'](_0x413ccd?.[_0x47930b(0x1cb)],0x0)||!_0x413ccd?.[_0x47930b(0x24b)])return[];else for(const _0x5ec97c in _0x413ccd['mems']){_0x2db250[_0x47930b(0x1bf)](_0x413ccd['mems'][_0x5ec97c]);}const _0x5c0b77=Math['ceil'](_0x58b8c2[_0x47930b(0x21d)](_0x413ccd[_0x47930b(0x220)],0x28));for(let _0x53d2ac=0x2;_0x58b8c2[_0x47930b(0x23b)](_0x53d2ac,_0x5c0b77);_0x53d2ac++){const _0xc96a4b=RequestUtil[_0x47930b(0x232)](_0x58b8c2[_0x47930b(0x22e)](_0x58b8c2['RdbCt'](_0x58b8c2[_0x47930b(0x202)](_0x58b8c2['DqxmS'](_0x58b8c2['XpVyY'](_0x58b8c2[_0x47930b(0x1da)],_0x58b8c2[_0x47930b(0x1f8)](_0x58b8c2['BpipL'](_0x53d2ac,0x1),0x28))+_0x58b8c2[_0x47930b(0x1fb)],_0x58b8c2['LfbEg'](_0x53d2ac,0x28))+_0x58b8c2['hLPoy'],_0x596c42),_0x47930b(0x204)),_0x484dbd),_0x58b8c2[_0x47930b(0x21f)],'',{'Cookie':_0x41709f});_0x1ac4f6[_0x47930b(0x1bf)](_0xc96a4b);}for(let _0x4f178a=0x1;_0x58b8c2[_0x47930b(0x236)](_0x4f178a,_0x5c0b77);_0x4f178a++){const _0xf59b76=await _0x1ac4f6[_0x4f178a];if(!_0xf59b76?.[_0x47930b(0x220)]||_0x58b8c2[_0x47930b(0x1f2)](_0xf59b76?.[_0x47930b(0x1cb)],0x0)||!_0xf59b76?.[_0x47930b(0x24b)])continue;for(const _0x37b539 in _0xf59b76[_0x47930b(0x24b)]){_0x2db250['push'](_0xf59b76[_0x47930b(0x24b)][_0x37b539]);}}WebGroupData[_0x47930b(0x20d)]['set'](_0x596c42,_0x2db250),WebGroupData[_0x47930b(0x1fe)][_0x47930b(0x219)](_0x596c42,Date[_0x47930b(0x20f)]());}else _0x2db250=_0x327202;}catch{return _0x2db250;}return _0x2db250;}static async[_0x3b5a00(0x1be)](_0x5ff547,_0xc5cc1c=''){const _0x2245c6=_0x3b5a00,_0x51d4b1={'vJAbF':'qun.qq.com','eUtpb':function(_0x48c619,_0x49eacb){return _0x48c619+_0x49eacb;},'LqODU':function(_0x4fdc38,_0x444a){return _0x4fdc38+_0x444a;},'IawTQ':_0x2245c6(0x1d4),'mVKNS':_0x2245c6(0x252),'GCleB':';\x20p_uin=o','LIMtu':function(_0xe796ac,_0x4848f5){return _0xe796ac+_0x4848f5;},'AvnCV':function(_0x2e952d,_0x383cbe){return _0x2e952d+_0x383cbe;},'xUygb':'qid=','rlpJa':_0x2245c6(0x204),'RLZxf':_0x2245c6(0x210),'uCiHY':function(_0x25652a,_0x40f3b9){return _0x25652a+_0x40f3b9;}},_0x2ff123=(await NTQQUserApi['getPSkey']([_0x2245c6(0x22a)]))[_0x51d4b1[_0x2245c6(0x1c0)]],_0x4d99bb=await NTQQUserApi[_0x2245c6(0x1e4)](),_0x71193a=_0x51d4b1[_0x2245c6(0x1e5)](_0x51d4b1[_0x2245c6(0x249)](_0x51d4b1[_0x2245c6(0x1e5)](_0x51d4b1[_0x2245c6(0x249)](_0x51d4b1[_0x2245c6(0x249)](_0x51d4b1['IawTQ'],_0x2ff123),_0x51d4b1[_0x2245c6(0x227)]),_0x4d99bb),_0x51d4b1[_0x2245c6(0x239)]),selfInfo[_0x2245c6(0x22f)]);let _0x50fc89=undefined;if(!_0x4d99bb||!_0x2ff123)return undefined;const _0x3e741e=WebApi[_0x2245c6(0x1f5)](_0x4d99bb),_0x23c77c=_0x51d4b1[_0x2245c6(0x249)](_0x51d4b1[_0x2245c6(0x1e5)](_0x51d4b1[_0x2245c6(0x1e5)](_0x51d4b1['LIMtu'](_0x51d4b1[_0x2245c6(0x1f1)](_0x51d4b1['xUygb'],_0x5ff547),_0x51d4b1[_0x2245c6(0x206)]),_0x3e741e)+_0x51d4b1[_0x2245c6(0x1d2)],_0xc5cc1c),_0x2245c6(0x242)),_0x2f52ee=_0x51d4b1['uCiHY'](_0x2245c6(0x21c),_0x3e741e);try{return _0x50fc89=await RequestUtil['HttpGetJson'](_0x2f52ee,_0x2245c6(0x221),'',{'Cookie':_0x71193a}),_0x50fc89;}catch(_0x4694e9){return undefined;}return undefined;}static async[_0x3b5a00(0x1ec)](_0x453c61){const _0x7f39ae=_0x3b5a00,_0x34ba5d={'pxMKU':function(_0x38476e,_0xe1502d){return _0x38476e+_0xe1502d;},'Yxumf':function(_0x123b81,_0x169c7d){return _0x123b81+_0x169c7d;},'NYGge':function(_0x42e2eb,_0x39ead8){return _0x42e2eb+_0x39ead8;},'vaPdm':_0x7f39ae(0x1d4),'hyygs':_0x7f39ae(0x252),'nBOxZ':function(_0x3e8e8a,_0x209f50){return _0x3e8e8a+_0x209f50;},'NZgMo':'&qid=','Usrug':_0x7f39ae(0x217),'nRbRz':function(_0x42c481,_0x22c396){return _0x42c481!==_0x22c396;}},_0x3dd006=(await NTQQUserApi['getPSkey']([_0x7f39ae(0x22a)]))[_0x7f39ae(0x22a)],_0x1e9727=await NTQQUserApi[_0x7f39ae(0x1e4)](),_0x109fb8=_0x34ba5d[_0x7f39ae(0x24a)](_0x34ba5d[_0x7f39ae(0x1d3)](_0x34ba5d[_0x7f39ae(0x24a)](_0x34ba5d[_0x7f39ae(0x211)](_0x34ba5d[_0x7f39ae(0x1d3)](_0x34ba5d[_0x7f39ae(0x1e0)],_0x3dd006),_0x34ba5d[_0x7f39ae(0x20c)]),_0x1e9727),_0x7f39ae(0x238)),selfInfo[_0x7f39ae(0x22f)]);let _0x4defc9=undefined;if(!_0x1e9727||!_0x3dd006)return undefined;const _0x3e637c=WebApi['genBkn'](_0x1e9727),_0x1f4b16=_0x34ba5d[_0x7f39ae(0x1d3)](_0x34ba5d[_0x7f39ae(0x24a)](_0x34ba5d[_0x7f39ae(0x1d3)](_0x34ba5d[_0x7f39ae(0x1d1)]('https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=',_0x3e637c),_0x34ba5d['NZgMo']),_0x453c61),_0x34ba5d['Usrug']);try{_0x4defc9=await RequestUtil[_0x7f39ae(0x232)](_0x1f4b16,_0x7f39ae(0x221),'',{'Cookie':_0x109fb8});if(_0x34ba5d[_0x7f39ae(0x212)](_0x4defc9?.['ec'],0x0))return undefined;return _0x4defc9;}catch(_0x11479b){return undefined;}return undefined;}static[_0x3b5a00(0x1f5)](_0x3fd1e8){const _0x298f92=_0x3b5a00,_0x34fea5={'joiPP':function(_0x4c044e,_0x182389){return _0x4c044e||_0x182389;},'lIwQZ':function(_0x39eb1a,_0x4d7c36){return _0x39eb1a<_0x4d7c36;},'FOYnW':function(_0x39d6b6,_0x2e36bd){return _0x39d6b6+_0x2e36bd;},'Bxaap':function(_0x3357ae,_0x52f7e4){return _0x3357ae&_0x52f7e4;}};_0x3fd1e8=_0x34fea5[_0x298f92(0x23c)](_0x3fd1e8,'');let _0x11a202=0x1505;for(let _0x1431a7=0x0;_0x34fea5[_0x298f92(0x250)](_0x1431a7,_0x3fd1e8[_0x298f92(0x1e9)]);_0x1431a7++){const _0x108c74=_0x3fd1e8[_0x298f92(0x21a)](_0x1431a7);_0x11a202=_0x34fea5[_0x298f92(0x23f)](_0x11a202+(_0x11a202<<0x5),_0x108c74);}return _0x34fea5[_0x298f92(0x20a)](_0x11a202,0x7fffffff)['toString']();}static async[_0x3b5a00(0x214)](_0x3249a4,_0x481288){const _0x2293ce=_0x3b5a00,_0x10a32c={'DqDPx':function(_0x177d10,_0x2651b1){return _0x177d10+_0x2651b1;},'KPoJu':function(_0x463e2b,_0x57a76a){return _0x463e2b+_0x57a76a;},'NpawM':function(_0x8749c7,_0x55180f){return _0x8749c7+_0x55180f;},'jySzW':_0x2293ce(0x1d5),'cAVPf':_0x2293ce(0x248),'mMiGI':_0x2293ce(0x221),'BcReq':function(_0x4c5feb,_0x10bf5b){return _0x4c5feb===_0x10bf5b;},'dysyH':function(_0x204c1b,_0x3314f5,_0x43e20a,_0x57ef37){return _0x204c1b(_0x3314f5,_0x43e20a,_0x57ef37);},'XEUcu':_0x2293ce(0x1ea),'BCfVL':_0x2293ce(0x22a),'ATdmc':function(_0x1a3b13,_0x1f3d0d){return _0x1a3b13||_0x1f3d0d;},'HHxhf':function(_0x53e94a,_0x3f849b){return _0x53e94a+_0x3f849b;},'dsMWQ':'p_skey=','NPlNE':_0x2293ce(0x252),'LdkrX':_0x2293ce(0x238),'RxFyz':function(_0x3aa698,_0x5eced5){return _0x3aa698===_0x5eced5;},'ERRAL':function(_0x2f6db4,_0x112032,_0x3686ff){return _0x2f6db4(_0x112032,_0x3686ff);},'AxoSf':_0x2293ce(0x1d9),'vPTLx':function(_0xedfd05,_0x40b749){return _0xedfd05(_0x40b749);},'ZZLvZ':function(_0x15a2dc,_0x195421,_0x100416){return _0x15a2dc(_0x195421,_0x100416);},'jBLVf':function(_0x543dd0,_0x108ce8,_0x34964e){return _0x543dd0(_0x108ce8,_0x34964e);},'pXXGL':function(_0xe9beb6,_0x2b19e7,_0x345b88){return _0xe9beb6(_0x2b19e7,_0x345b88);},'arSPI':_0x2293ce(0x1dc),'dzjyH':function(_0x4e1850,_0x28d06f){return _0x4e1850===_0x28d06f;},'ThoMM':function(_0x30dd5d,_0x21d6c6,_0x3f6780){return _0x30dd5d(_0x21d6c6,_0x3f6780);},'VwkoG':_0x2293ce(0x245),'yZzXU':function(_0x4db8d5,_0x13e1d9){return _0x4db8d5===_0x13e1d9;}},_0x307c50=(await NTQQUserApi[_0x2293ce(0x1c6)]([_0x10a32c[_0x2293ce(0x1e6)]]))[_0x10a32c[_0x2293ce(0x1e6)]],_0x3937c2=await NTQQUserApi['getSkey']();if(_0x10a32c[_0x2293ce(0x21e)](!_0x3937c2,!_0x307c50))return undefined;async function _0xa984c(_0x138566,_0x2824bd){const _0x5cff75=_0x2293ce;let _0x1d8052=_0x10a32c[_0x5cff75(0x1f0)](_0x10a32c[_0x5cff75(0x231)](_0x10a32c[_0x5cff75(0x1df)](_0x10a32c[_0x5cff75(0x20b)],_0x138566),_0x10a32c[_0x5cff75(0x21b)]),_0x2824bd['toString']()),_0x4a7eee='',_0x4a929f;try{_0x4a7eee=await RequestUtil[_0x5cff75(0x23a)](_0x1d8052,_0x10a32c[_0x5cff75(0x1e2)],'',{'Cookie':_0x47e5a3});const _0x57d769=_0x4a7eee['match'](/window\.__INITIAL_STATE__=(.*?);/);return _0x57d769&&(_0x4a929f=JSON[_0x5cff75(0x201)](_0x57d769[0x1][_0x5cff75(0x246)]())),_0x10a32c[_0x5cff75(0x22d)](_0x2824bd,0x1)?_0x4a929f?.[_0x5cff75(0x1c4)]:_0x4a929f?.[_0x5cff75(0x1ee)];}catch(_0x23b170){_0x10a32c[_0x5cff75(0x253)](logDebug,_0x10a32c['XEUcu'],_0x1d8052,_0x23b170);}return undefined;}let _0x1fedad={'group_id':_0x3249a4};const _0x47e5a3=_0x10a32c[_0x2293ce(0x1f0)](_0x10a32c[_0x2293ce(0x231)](_0x10a32c['KPoJu'](_0x10a32c['HHxhf'](_0x10a32c[_0x2293ce(0x231)](_0x10a32c[_0x2293ce(0x1df)](_0x10a32c[_0x2293ce(0x1f3)],_0x307c50)+_0x10a32c[_0x2293ce(0x1f4)],_0x3937c2),_0x10a32c['LdkrX']),selfInfo[_0x2293ce(0x22f)]),_0x2293ce(0x1d8)),selfInfo['uin']);if(_0x10a32c['RxFyz'](_0x481288,WebHonorType[_0x2293ce(0x228)])||_0x10a32c[_0x2293ce(0x22c)](_0x481288,WebHonorType[_0x2293ce(0x23e)]))try{let _0x546c7d=await _0x10a32c[_0x2293ce(0x1c1)](_0xa984c,_0x3249a4,0x1);if(!_0x546c7d)throw new Error(_0x10a32c['AxoSf']);_0x1fedad[_0x2293ce(0x1fc)]={'user_id':_0x546c7d[0x0]?.[_0x2293ce(0x22f)],'avatar':_0x546c7d[0x0]?.[_0x2293ce(0x1c5)],'nickname':_0x546c7d[0x0]?.[_0x2293ce(0x1cf)],'day_count':0x0,'description':_0x546c7d[0x0]?.[_0x2293ce(0x215)]},_0x1fedad['talkative_list']=[];for(const _0xe939a4 of _0x546c7d){_0x1fedad[_0x2293ce(0x1e8)][_0x2293ce(0x1bf)]({'user_id':_0xe939a4?.['uin'],'avatar':_0xe939a4?.[_0x2293ce(0x1c5)],'description':_0xe939a4?.[_0x2293ce(0x215)],'day_count':0x0,'nickname':_0xe939a4?.[_0x2293ce(0x1cf)]});}}catch(_0x2de8fd){_0x10a32c[_0x2293ce(0x200)](logDebug,_0x2de8fd);}if(_0x10a32c['BcReq'](_0x481288,WebHonorType[_0x2293ce(0x241)])||_0x10a32c['BcReq'](_0x481288,WebHonorType[_0x2293ce(0x23e)]))try{let _0x47f068=await _0x10a32c['ZZLvZ'](_0xa984c,_0x3249a4,0x2);if(!_0x47f068)throw new Error(_0x2293ce(0x1b9));_0x1fedad[_0x2293ce(0x243)]=[];for(const _0x1d32a3 of _0x47f068){_0x1fedad[_0x2293ce(0x243)][_0x2293ce(0x1bf)]({'user_id':_0x1d32a3?.[_0x2293ce(0x22f)],'nickname':_0x1d32a3?.[_0x2293ce(0x1cf)],'avatar':_0x1d32a3?.[_0x2293ce(0x1c5)],'description':_0x1d32a3?.[_0x2293ce(0x215)]});}}catch(_0x55c981){logDebug(_0x55c981);}if(_0x10a32c['RxFyz'](_0x481288,WebHonorType['PERFROMER'])||_0x10a32c['RxFyz'](_0x481288,WebHonorType[_0x2293ce(0x23e)]))try{let _0x1a9746=await _0x10a32c[_0x2293ce(0x1cc)](_0xa984c,_0x3249a4,0x3);if(!_0x1a9746)throw new Error('获取群聊炽焰失败');_0x1fedad[_0x2293ce(0x1ba)]=[];for(const _0x26f0a0 of _0x1a9746){_0x1fedad[_0x2293ce(0x1ba)][_0x2293ce(0x1bf)]({'user_id':_0x26f0a0?.[_0x2293ce(0x22f)],'nickname':_0x26f0a0?.[_0x2293ce(0x1cf)],'avatar':_0x26f0a0?.[_0x2293ce(0x1c5)],'desc':_0x26f0a0?.['description']});}}catch(_0x4fa622){_0x10a32c[_0x2293ce(0x226)](logDebug,_0x10a32c[_0x2293ce(0x1f7)],_0x4fa622);}if(_0x10a32c[_0x2293ce(0x235)](_0x481288,WebHonorType['EMOTION'])||_0x481288===WebHonorType['ALL'])try{let _0x177ebd=await _0x10a32c[_0x2293ce(0x1e7)](_0xa984c,_0x3249a4,0x6);if(!_0x177ebd)throw new Error('获取快乐源泉失败');_0x1fedad['emotion_list']=[];for(const _0x3be1d1 of _0x177ebd){_0x1fedad['emotion_list']['push']({'user_id':_0x3be1d1?.['uin'],'nickname':_0x3be1d1?.[_0x2293ce(0x1cf)],'avatar':_0x3be1d1?.[_0x2293ce(0x1c5)],'desc':_0x3be1d1?.[_0x2293ce(0x1d0)]});}}catch(_0x304a9d){_0x10a32c[_0x2293ce(0x1e7)](logDebug,_0x10a32c[_0x2293ce(0x1eb)],_0x304a9d);}return(_0x10a32c[_0x2293ce(0x205)](_0x481288,WebHonorType[_0x2293ce(0x1ed)])||_0x10a32c['BcReq'](_0x481288,WebHonorType[_0x2293ce(0x23e)]))&&(_0x1fedad[_0x2293ce(0x1e3)]=[]),_0x1fedad;}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index bc52dd02..33c92b8a 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x21847a=_0x173b;(function(_0x45342f,_0xfd2c83){const _0x2e4d1e=_0x173b,_0x1f69da=_0x45342f();while(!![]){try{const _0x36892b=-parseInt(_0x2e4d1e(0x21f))/0x1+-parseInt(_0x2e4d1e(0x20b))/0x2*(parseInt(_0x2e4d1e(0x1cf))/0x3)+-parseInt(_0x2e4d1e(0x1ea))/0x4+-parseInt(_0x2e4d1e(0x1a7))/0x5+-parseInt(_0x2e4d1e(0x1ee))/0x6*(-parseInt(_0x2e4d1e(0x199))/0x7)+parseInt(_0x2e4d1e(0x220))/0x8+parseInt(_0x2e4d1e(0x22d))/0x9*(parseInt(_0x2e4d1e(0x1c3))/0xa);if(_0x36892b===_0xfd2c83)break;else _0x1f69da['push'](_0x1f69da['shift']());}catch(_0x5fe4f6){_0x1f69da['push'](_0x1f69da['shift']());}}}(_0x463a,0xaf173));function _0x173b(_0x3f2300,_0x514d40){const _0x463a25=_0x463a();return _0x173b=function(_0x173b83,_0x315cc1){_0x173b83=_0x173b83-0x17f;let _0x2fcbe1=_0x463a25[_0x173b83];return _0x2fcbe1;},_0x173b(_0x3f2300,_0x514d40);}import _0x4f5f1b from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x573cd0 from'node:path';import _0x1bcebc from'node:os';import _0x2e580b 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 _0x4ec8b8 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x21847a(0x20a)];['util'];[_0x21847a(0x1f4)];[_0x21847a(0x1dc)];['loginService'];['onLoginSuccessFuncList']=[];['proxyHandler']={'get'(target,prop,receiver){const _0x653146=_0x21847a,WjQYVC={'yBMrH':function(callee,param1){return callee(param1);},'YnHWL':function(x,y){return x===y;},'WaxBQ':_0x653146(0x202)};if(WjQYVC['YnHWL'](typeof target[prop],WjQYVC['WaxBQ']))return(...args)=>{const _0x3290c7=_0x653146;WjQYVC[_0x3290c7(0x215)](logDebug,target[_0x3290c7(0x1d7)][_0x3290c7(0x1d9)]+_0x3290c7(0x211)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x5eeb15=_0x21847a,_0xc08eec={'kMFRT':function(_0x580ec1,_0x19810c){return _0x580ec1(_0x19810c);},'oqgKb':function(_0x298050,_0xfc1b64){return _0x298050+_0xfc1b64;},'BUGrq':_0x5eeb15(0x1b2),'FOahU':function(_0x55e349,_0x52c46b,_0x359156){return _0x55e349(_0x52c46b,_0x359156);},'vkvrK':function(_0x5be376,_0x5252b9){return _0x5be376 instanceof _0x5252b9;},'gubHy':_0x5eeb15(0x219),'isUxU':function(_0x46734b,_0x5e520e){return _0x46734b(_0x5e520e);},'lTFGf':function(_0x262b2b,_0x518cf6,_0x4d66dd){return _0x262b2b(_0x518cf6,_0x4d66dd);},'xCjfG':_0x5eeb15(0x20d),'kFkEP':function(_0x45f5f2,_0x160a97){return _0x45f5f2==_0x160a97;}};this[_0x5eeb15(0x1f4)]=new _0x4f5f1b['NodeIQQNTWrapperEngine'](),this[_0x5eeb15(0x1e1)]=new _0x4f5f1b[(_0x5eeb15(0x1be))](),this[_0x5eeb15(0x1d5)]=new _0x4f5f1b[(_0x5eeb15(0x206))](),this['session']=new _0x4f5f1b['NodeIQQNTWrapperSession'](),this[_0x5eeb15(0x1dc)]=new LoginListener(),this[_0x5eeb15(0x1dc)][_0x5eeb15(0x1e0)]=_0x474c57=>{const _0x1e1cfb=_0x5eeb15;_0xc08eec[_0x1e1cfb(0x217)](logError,_0xc08eec[_0x1e1cfb(0x228)](_0xc08eec[_0x1e1cfb(0x1e9)],_0x474c57)+')已登录,无法重复登录');},this[_0x5eeb15(0x1dc)][_0x5eeb15(0x194)]=_0x4531a9=>{const _0x5a4fac=_0x5eeb15,_0x2b4d0a={'CcfhR':function(_0x12ff3f,_0x232a01,_0x471a9d){const _0x37581c=_0x173b;return _0xc08eec[_0x37581c(0x1ba)](_0x12ff3f,_0x232a01,_0x471a9d);},'gTyQw':function(_0x48c6a3,_0x585bdc){const _0x12dd20=_0x173b;return _0xc08eec[_0x12dd20(0x1ae)](_0x48c6a3,_0x585bdc);},'qaEuY':_0xc08eec[_0x5a4fac(0x21e)],'fGxvF':function(_0xae8c47,_0x20198a){const _0x2b456b=_0x5a4fac;return _0xc08eec[_0x2b456b(0x21b)](_0xae8c47,_0x20198a);},'mDXAE':function(_0x551183,_0xd8a510){return _0x551183(_0xd8a510);},'TJnKX':_0x5a4fac(0x223),'BoDrG':'initSession\x20failed'};this[_0x5a4fac(0x227)](_0x4531a9[_0x5a4fac(0x17f)],_0x4531a9[_0x5a4fac(0x21c)])[_0x5a4fac(0x1c4)](_0x145e88=>{const _0xc32116=_0x5a4fac;selfInfo[_0xc32116(0x17f)]=_0x4531a9[_0xc32116(0x17f)],selfInfo['uid']=_0x4531a9[_0xc32116(0x21c)],napCatConfig[_0xc32116(0x22c)](),_0x2b4d0a[_0xc32116(0x1c6)](setLogLevel,napCatConfig[_0xc32116(0x1fd)],napCatConfig['consoleLogLevel']),_0x2b4d0a[_0xc32116(0x207)](enableFileLog,napCatConfig[_0xc32116(0x1d4)]),_0x2b4d0a[_0xc32116(0x195)](enableConsoleLog,napCatConfig[_0xc32116(0x1f9)]),setLogSelfInfo(selfInfo);const _0x3c0185=_0x573cd0[_0xc32116(0x188)](this[_0xc32116(0x18e)],'./NapCat/data');_0x2e580b[_0xc32116(0x226)](_0x3c0185,{'recursive':!![]}),logDebug(_0x2b4d0a[_0xc32116(0x18a)],_0x3c0185),dbUtil['init'](_0x573cd0[_0xc32116(0x188)](_0x3c0185,'./'+_0x4531a9[_0xc32116(0x17f)]+'-v2.db'))[_0xc32116(0x1c4)](()=>{const _0x420e85=_0xc32116,_0x5e1065={'YTQDq':function(_0x40043d,_0x326dea,_0x3b8548){const _0x21b071=_0x173b;return _0x2b4d0a[_0x21b071(0x1c6)](_0x40043d,_0x326dea,_0x3b8548);},'nmvMg':function(_0x125e9d,_0x727070){const _0xa90856=_0x173b;return _0x2b4d0a[_0xa90856(0x1eb)](_0x125e9d,_0x727070);}};this[_0x420e85(0x232)](),this[_0x420e85(0x212)][_0x420e85(0x1e8)](_0x116212=>{new Promise((_0x53f01b,_0x45f685)=>{const _0x37b9f6=_0x173b,_0x175bd1=_0x5e1065[_0x37b9f6(0x20e)](_0x116212,_0x4531a9['uin'],_0x4531a9[_0x37b9f6(0x21c)]);_0x5e1065[_0x37b9f6(0x1ad)](_0x175bd1,Promise)&&_0x175bd1[_0x37b9f6(0x1c4)](_0x53f01b)[_0x37b9f6(0x1bb)](_0x45f685);})['then']();});})[_0xc32116(0x1bb)](_0x1a68cf=>{const _0xdd5bfc=_0xc32116;logError(_0x2b4d0a[_0xdd5bfc(0x233)],_0x1a68cf);});})[_0x5a4fac(0x1bb)](_0x53330f=>{const _0x3afb71=_0x5a4fac;_0x2b4d0a[_0x3afb71(0x1c6)](logError,_0x2b4d0a['BoDrG'],_0x53330f);throw new Error('启动失败:\x20'+JSON['stringify'](_0x53330f));});},this[_0x5eeb15(0x1dc)]['onQRCodeSessionFailed']=(_0x27c066,_0x3b411b,_0x5455a0)=>{const _0x22c9b0=_0x5eeb15;_0xc08eec[_0x22c9b0(0x1e7)](logError,_0xc08eec[_0x22c9b0(0x18f)],_0x5455a0),_0x27c066==0x1&&_0xc08eec[_0x22c9b0(0x1fc)](_0x3b411b,0x3)&&this[_0x22c9b0(0x1d5)][_0x22c9b0(0x1a0)]();},this[_0x5eeb15(0x1dc)][_0x5eeb15(0x1ff)]=_0x5c4304=>{const _0x225e64=_0x5eeb15;logError(_0xc08eec[_0x225e64(0x18f)],_0x5c4304);},this[_0x5eeb15(0x1dc)]=new Proxy(this[_0x5eeb15(0x1dc)],this[_0x5eeb15(0x209)]),this['loginService']['addKernelLoginListener'](new _0x4f5f1b['NodeIKernelLoginListener'](this[_0x5eeb15(0x1dc)])),this[_0x5eeb15(0x19f)]();}get[_0x21847a(0x18e)](){const _0x7cfc44=_0x21847a,_0x19d872={'Xdyqq':_0x7cfc44(0x1a4)};let _0x2e1bb3=this['util'][_0x7cfc44(0x18c)]();return!_0x2e1bb3&&(_0x2e1bb3=_0x573cd0['resolve'](_0x1bcebc[_0x7cfc44(0x1b6)](),_0x19d872[_0x7cfc44(0x1a6)]),_0x2e580b['mkdirSync'](_0x2e1bb3,{'recursive':!![]})),_0x2e1bb3;}get[_0x21847a(0x1fb)](){const _0x3180b1=_0x21847a,_0x306ce8={'eUAhI':_0x3180b1(0x18b)};return _0x573cd0[_0x3180b1(0x188)](this['dataPath'],_0x306ce8[_0x3180b1(0x181)]);}['initConfig'](){const _0x1deceb=_0x21847a,_0xcd311e={'agNaq':'Windows\x2010\x20Pro'};this[_0x1deceb(0x1f4)][_0x1deceb(0x1f3)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1deceb(0x203)],'os_version':_0xcd311e['agNaq'],'use_xlog':!![],'qua':_0x1deceb(0x1e6)+qqVersionConfigInfo[_0x1deceb(0x203)][_0x1deceb(0x183)]('-','_')+_0x1deceb(0x182),'global_path_config':{'desktopGlobalPath':this[_0x1deceb(0x1fb)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x4f5f1b[(_0x1deceb(0x19c))](new GlobalAdapter())),this['loginService'][_0x1deceb(0x19f)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x1deceb(0x1fb)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}['initSession'](_0x7f99c8,_0x20fde3){const _0x3bec33={'yDgzG':function(_0xc60ce6,_0xf7b8ee){return _0xc60ce6===_0xf7b8ee;},'zbSgo':function(_0x34845b,_0x56ecbc,_0x5ea65e,_0x4b5cc1){return _0x34845b(_0x56ecbc,_0x5ea65e,_0x4b5cc1);},'uVNUN':function(_0x38fc54,_0x37e328){return _0x38fc54(_0x37e328);}};return new Promise(async(_0x19802d,_0x21c6c0)=>{const _0x49c7e6=_0x173b,_0x5bf532={'CoNac':function(_0x8141f0,_0x3b7d60){const _0x548485=_0x173b;return _0x3bec33[_0x548485(0x184)](_0x8141f0,_0x3b7d60);},'IAlqn':function(_0xb32f70,_0x489ebd){return _0xb32f70(_0x489ebd);}},_0x585ee0=await _0x3bec33[_0x49c7e6(0x1d8)](genSessionConfig,_0x7f99c8,_0x20fde3,this[_0x49c7e6(0x18e)]),_0x3703d4=new SessionListener();_0x3703d4['onSessionInitComplete']=_0x357cbb=>{const _0x4d5006=_0x49c7e6;if(_0x5bf532[_0x4d5006(0x1c2)](_0x357cbb,0x0))return _0x19802d(0x0);_0x5bf532[_0x4d5006(0x20c)](_0x21c6c0,_0x357cbb);},this[_0x49c7e6(0x20a)][_0x49c7e6(0x214)](_0x585ee0,new _0x4f5f1b[(_0x49c7e6(0x1d2))](new DependsAdapter()),new _0x4f5f1b['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x4f5f1b[(_0x49c7e6(0x1c5))](_0x3703d4));try{this[_0x49c7e6(0x20a)][_0x49c7e6(0x1b4)](0x0);}catch(_0xcd11ee){try{this[_0x49c7e6(0x20a)][_0x49c7e6(0x1b4)]();}catch(_0xa8b753){_0x3bec33[_0x49c7e6(0x229)](_0x21c6c0,_0x49c7e6(0x19a)+_0xa8b753);}}});}[_0x21847a(0x232)](){const _0x54b0bc=_0x21847a,_0x5773f8={'mRTlK':function(_0x4273ca,_0xd12970){return _0x4273ca(_0xd12970);},'APEPT':function(_0x2d1438,_0x4cbea9){return _0x2d1438+_0x4cbea9;},'IDfmC':function(_0x5416c8,_0x1f59d4){return _0x5416c8(_0x1f59d4);},'RLsDA':function(_0x6d5318,_0x1cc2ab){return _0x6d5318+_0x1cc2ab;},'ZNQlD':_0x54b0bc(0x221),'ETVih':function(_0x494cb8,_0x4e9011){return _0x494cb8===_0x4e9011;},'AGRjr':function(_0x1c71e2,_0x2fc11f,_0x74413d){return _0x1c71e2(_0x2fc11f,_0x74413d);}},_0x42bb84=new MsgListener();_0x42bb84['onLineDev']=_0x272ec2=>{const _0x5d4180=_0x54b0bc,_0x3076d8={'FpNrM':function(_0x5aa3c8,_0x4a519c){return _0x5aa3c8===_0x4a519c;},'exwSf':function(_0xa787c1,_0x4065c2){const _0x32f849=_0x173b;return _0x5773f8[_0x32f849(0x185)](_0xa787c1,_0x4065c2);},'JeXAW':function(_0xe08a09,_0x3ad92b){return _0x5773f8['APEPT'](_0xe08a09,_0x3ad92b);}};_0x272ec2[_0x5d4180(0x1e8)](_0x2d8a65=>{const _0x24bc2f=_0x5d4180;_0x3076d8[_0x24bc2f(0x1b5)](_0x2d8a65['clientType'],0x2)&&_0x3076d8[_0x24bc2f(0x1c8)](log,_0x3076d8[_0x24bc2f(0x1b9)](_0x24bc2f(0x1a8),_0x2d8a65[_0x24bc2f(0x1a3)])+_0x24bc2f(0x1d1));});},_0x42bb84[_0x54b0bc(0x22a)]=_0x5ade27=>{const _0x4a01e5=_0x54b0bc;_0x5773f8[_0x4a01e5(0x1bd)](log,_0x5773f8[_0x4a01e5(0x1de)](_0x5773f8['RLsDA'](_0x5773f8['ZNQlD'],_0x5ade27['tipsTitle'])+']\x20',_0x5ade27[_0x4a01e5(0x22b)]));},_0x42bb84['onMsgInfoListUpdate']=_0x3da9c4=>{const _0x2ae64d=_0x54b0bc;stat[_0x2ae64d(0x1e3)]+=0x1,_0x3da9c4[_0x2ae64d(0x1e8)](_0x4a4e25=>{const _0x384e59=_0x2ae64d;_0x5773f8[_0x384e59(0x21a)](_0x4a4e25[_0x384e59(0x19b)],'0')?dbUtil[_0x384e59(0x1dd)](_0x4a4e25)[_0x384e59(0x1c4)]()[_0x384e59(0x1bb)]():dbUtil['getMsgByLongId'](_0x4a4e25[_0x384e59(0x1b7)])[_0x384e59(0x1c4)](_0x4fd3e4=>{const _0x25356e=_0x384e59;_0x4fd3e4&&(_0x4fd3e4[_0x25356e(0x19b)]=_0x4a4e25[_0x25356e(0x19b)],dbUtil[_0x25356e(0x218)](_0x4fd3e4)[_0x25356e(0x1c4)]());});});},_0x42bb84[_0x54b0bc(0x1b0)]=_0x48f907=>{const _0x369474=_0x54b0bc;stat['packet_sent']+=0x1,stat[_0x369474(0x1f8)]+=0x1,stat['last_message_time']=Math[_0x369474(0x1b1)](Date['now']()/0x3e8);},_0x42bb84['onRecvMsg']=_0x5ce704=>{const _0x4feab2=_0x54b0bc;stat[_0x4feab2(0x1e3)]+=0x1,stat[_0x4feab2(0x231)]+=_0x5ce704['length'],stat[_0x4feab2(0x1db)]=Math[_0x4feab2(0x1b1)](Date[_0x4feab2(0x1ca)]()/0x3e8);},_0x42bb84[_0x54b0bc(0x1a1)]=(..._0x50bd92)=>{stat['packet_received']+=0x1;},this['addListener'](_0x42bb84);const _0x35ccb4=new BuddyListener();_0x35ccb4[_0x54b0bc(0x196)]=_0x509b38=>{const _0x3e4fc1=_0x54b0bc;rawFriends[_0x3e4fc1(0x1ec)]=0x0,rawFriends[_0x3e4fc1(0x205)](..._0x509b38);for(const _0x3cedea of _0x509b38){for(const _0x1f85b9 of _0x3cedea[_0x3e4fc1(0x1fe)]){const _0x1ef5f7=friends[_0x3e4fc1(0x1cb)](_0x1f85b9['uid']);uid2UinMap[_0x1f85b9['uid']]=_0x1f85b9[_0x3e4fc1(0x17f)],_0x1ef5f7?Object[_0x3e4fc1(0x208)](_0x1ef5f7,_0x1f85b9):friends['set'](_0x1f85b9[_0x3e4fc1(0x21c)],_0x1f85b9);}}},this[_0x54b0bc(0x230)](_0x35ccb4),this[_0x54b0bc(0x20a)]['getBuddyService']()[_0x54b0bc(0x198)](!![])[_0x54b0bc(0x1c4)](_0x19527c=>{});const _0x535473=new ProfileListener();_0x535473[_0x54b0bc(0x1d6)]=_0x1828da=>{const _0x47adbc=_0x54b0bc;_0x5773f8[_0x47adbc(0x21a)](_0x1828da[_0x47adbc(0x21c)],selfInfo[_0x47adbc(0x21c)])&&Object[_0x47adbc(0x208)](selfInfo,_0x1828da);},_0x535473[_0x54b0bc(0x1aa)]=_0x261bd5=>{},this[_0x54b0bc(0x230)](_0x535473);const _0x5bb310=new GroupListener();_0x5bb310[_0x54b0bc(0x22f)]=(_0x2a1017,_0x5527c2)=>{const _0x37f8b3=_0x54b0bc,_0x1dfc52={'eWrUe':function(_0x2080cc,_0x1775b5){return _0x2080cc===_0x1775b5;}};_0x5527c2[_0x37f8b3(0x1e8)](_0x166c5e=>{const _0xb5416c=_0x37f8b3,_0x477e9d=groups[_0xb5416c(0x1cb)](_0x166c5e[_0xb5416c(0x20f)]);_0x477e9d&&_0x1dfc52[_0xb5416c(0x1bc)](_0x166c5e[_0xb5416c(0x197)],_0x477e9d['memberCount'])?Object[_0xb5416c(0x208)](_0x477e9d,_0x166c5e):groups['set'](_0x166c5e[_0xb5416c(0x20f)],_0x166c5e);const _0x5c336f=this[_0xb5416c(0x20a)][_0xb5416c(0x193)]()[_0xb5416c(0x1ef)](_0x166c5e[_0xb5416c(0x20f)],_0xb5416c(0x187));this['session'][_0xb5416c(0x193)]()[_0xb5416c(0x22e)](_0x5c336f,undefined,0xbb8)['then'](_0x1a223e=>{});});},_0x5bb310['onMemberListChange']=_0x226af8=>{const _0x329bb4=_0x54b0bc,_0x59ef62=_0x226af8[_0x329bb4(0x1bf)][_0x329bb4(0x1cc)]('_')[0x0];if(groupMembers['has'](_0x59ef62)){const _0x5220cd=groupMembers['get'](_0x59ef62);_0x226af8[_0x329bb4(0x1e4)][_0x329bb4(0x1c7)]((_0x18e838,_0x417849)=>{const _0xba9b84=_0x329bb4,_0x4a7d41=_0x5220cd['get'](_0x417849);_0x4a7d41?Object[_0xba9b84(0x208)](_0x4a7d41,_0x18e838):_0x5220cd[_0xba9b84(0x19e)](_0x417849,_0x18e838);});}else groupMembers['set'](_0x59ef62,_0x226af8['infos']);},_0x5bb310['onMemberInfoChange']=(_0x1a1d37,_0x488aac,_0x5978d6)=>{const _0x6261cf=_0x54b0bc;_0x488aac===0x0&&_0x5978d6[_0x6261cf(0x1cb)](selfInfo[_0x6261cf(0x21c)])&&_0x5978d6[_0x6261cf(0x1cb)](selfInfo[_0x6261cf(0x21c)])?.['isDelete']&&_0x5773f8[_0x6261cf(0x1df)](setTimeout,()=>{const _0x1a1714=_0x6261cf;groups[_0x1a1714(0x19d)](_0x1a1d37);},0x1388);_0x5978d6['forEach']((_0x140a62,_0x228dc7)=>{const _0x51a1ed=_0x6261cf;uid2UinMap[_0x228dc7]=_0x140a62[_0x51a1ed(0x17f)];});const _0x3728cb=groupMembers[_0x6261cf(0x1cb)](_0x1a1d37);_0x3728cb?_0x5978d6[_0x6261cf(0x1c7)]((_0x45b923,_0xd0e03b)=>{const _0x6fd89a=_0x6261cf,_0xfdd01=_0x3728cb[_0x6fd89a(0x1cb)](_0xd0e03b);_0xfdd01?Object[_0x6fd89a(0x208)](_0xfdd01,_0x45b923):_0x3728cb['set'](_0xd0e03b,_0x45b923);}):groupMembers[_0x6261cf(0x19e)](_0x1a1d37,_0x5978d6);},this['addListener'](_0x5bb310);}['addListener'](_0x3aaa58){const _0x5b692e=_0x21847a,_0x1ce733={'QCaOi':_0x5b692e(0x1f1),'QkOYO':_0x5b692e(0x1f2),'PtmzJ':_0x5b692e(0x1a9)};_0x3aaa58=new Proxy(_0x3aaa58,this[_0x5b692e(0x209)]);switch(_0x3aaa58[_0x5b692e(0x1d7)]['name']){case _0x1ce733['QCaOi']:{return this[_0x5b692e(0x20a)]['getBuddyService']()[_0x5b692e(0x216)](new _0x4f5f1b[(_0x5b692e(0x204))](_0x3aaa58));}case _0x1ce733[_0x5b692e(0x192)]:{return this[_0x5b692e(0x20a)][_0x5b692e(0x193)]()[_0x5b692e(0x189)](new _0x4f5f1b['NodeIKernelGroupListener'](_0x3aaa58));}case _0x1ce733['PtmzJ']:{return this[_0x5b692e(0x20a)][_0x5b692e(0x1a5)]()[_0x5b692e(0x1e5)](new _0x4f5f1b['NodeIKernelMsgListener'](_0x3aaa58));}case _0x5b692e(0x224):{return this[_0x5b692e(0x20a)][_0x5b692e(0x1c9)]()['addKernelProfileListener'](new _0x4f5f1b[(_0x5b692e(0x190))](_0x3aaa58));}default:return-0x1;}}[_0x21847a(0x1af)](_0x4ed675){const _0x56a0c3=_0x21847a;NTEventDispatch['init']({'ListenerMap':_0x4f5f1b,'WrapperSession':this[_0x56a0c3(0x20a)]}),this['onLoginSuccessFuncList']['push'](_0x4ed675);}async[_0x21847a(0x1f7)](_0x9c41bc){const _0x164987=_0x21847a,_0x4ba257={'zCSPG':function(_0x1c4fb6,_0x30d9a8){return _0x1c4fb6!==_0x30d9a8;},'ltgoG':function(_0x2caec0,_0x27227c){return _0x2caec0(_0x27227c);},'iohcN':function(_0x3c8bcd,_0x47860d){return _0x3c8bcd+_0x47860d;}},_0xb950c8=await this[_0x164987(0x1d5)][_0x164987(0x1fa)]();if(_0x4ba257[_0x164987(0x21d)](_0xb950c8[_0x164987(0x213)],0x0))throw new Error(_0x164987(0x1c1));const _0x4bb2bd=_0xb950c8['LocalLoginInfoList'][_0x164987(0x222)](_0x172e8f=>_0x172e8f['uin']===_0x9c41bc);if(!_0x4bb2bd||!_0x4bb2bd?.['isQuickLogin'])throw new Error(_0x9c41bc+_0x164987(0x191));await _0x4ba257[_0x164987(0x1d3)](sleep,0x3e8);const _0xde25f=await this[_0x164987(0x1d5)]['quickLoginWithUin'](_0x9c41bc);if(!_0xde25f[_0x164987(0x213)])throw new Error(_0x4ba257[_0x164987(0x1e2)](_0x164987(0x1f6),_0xde25f[_0x164987(0x1f5)]['errMsg']));return _0xde25f;}async[_0x21847a(0x1b3)](_0x5d35ea){const _0x3dd1a4=_0x21847a,_0xa82389={'VvvIP':'data:image/png;base64,','OVWtX':_0x3dd1a4(0x1f0)};return new Promise((_0x254c2b,_0x11e546)=>{const _0x4004da=_0x3dd1a4,_0x93d9a3={'GXiro':_0xa82389['VvvIP'],'uZYNI':_0xa82389[_0x4004da(0x1c0)]};this[_0x4004da(0x1dc)][_0x4004da(0x1da)]=_0x7c1e9c=>{const _0x2e6c6f=_0x4004da,_0x4f401e=_0x7c1e9c[_0x2e6c6f(0x1a2)][_0x2e6c6f(0x1cc)](_0x93d9a3[_0x2e6c6f(0x186)])[0x1],_0x148844=Buffer['from'](_0x4f401e,_0x93d9a3[_0x2e6c6f(0x1ab)]);_0x5d35ea(_0x7c1e9c[_0x2e6c6f(0x1b8)],_0x7c1e9c[_0x2e6c6f(0x1a2)],_0x148844);},this[_0x4004da(0x1d5)]['getQRCodePicture']();});}async[_0x21847a(0x1ed)](_0x447558,_0x25bccb,_0x221fe1,_0x3b711d,_0x47d04f){const _0x118df0=_0x21847a,_0x510f76={'yBbYP':_0x118df0(0x200),'KafQR':'hex','EnPAN':function(_0x257edb,_0x1c2033){return _0x257edb&&_0x1c2033;},'KEIQk':function(_0x388c9b,_0x9fe105){return _0x388c9b||_0x9fe105;},'tGmQo':function(_0x469935,_0x46441c){return _0x469935||_0x46441c;},'vmNKU':function(_0x5b8fed,_0x10c445){return _0x5b8fed||_0x10c445;},'VxuQg':_0x118df0(0x201),'dLjtn':'140022013'},_0x29c970=_0x4ec8b8[_0x118df0(0x1ac)](_0x510f76['yBbYP'])['update'](_0x25bccb)[_0x118df0(0x1d0)](_0x510f76[_0x118df0(0x210)]),_0x144b7={'uin':_0x447558,'passwordMd5':_0x29c970,'step':_0x510f76[_0x118df0(0x1ce)](_0x221fe1,_0x3b711d)&&_0x47d04f?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x510f76['KEIQk'](_0x221fe1,''),'proofWaterRand':_0x510f76[_0x118df0(0x180)](_0x3b711d,''),'proofWaterSid':_0x510f76['vmNKU'](_0x47d04f,'')};await this[_0x118df0(0x1d5)][_0x118df0(0x1fa)](),await sleep(0x3e8);const _0x4cb1c0=await this[_0x118df0(0x1d5)][_0x118df0(0x1ed)](_0x144b7);switch(_0x4cb1c0[_0x118df0(0x213)]){case'0':{break;}case _0x510f76[_0x118df0(0x1cd)]:{break;}case'4':case _0x510f76[_0x118df0(0x18d)]:default:}}async[_0x21847a(0x225)](){const _0x1a3b35=await this['loginService']['getLoginList']();return _0x1a3b35;}}export const napCatCore=new NapCatCore();function _0x463a(){const _0x3d0834=['getQuickLoginList','mkdirSync','initSession','oqgKb','uVNUN','onKickedOffLine','tipsDesc','read','99kEWoVv','getNextMemberList','onGroupListUpdate','addListener','message_received','initDataListener','qaEuY','uin','tGmQo','eUAhI','_GW_B','replace','yDgzG','mRTlK','GXiro','groupMemberList_MainWindow','resolve','addKernelGroupListener','TJnKX','./nt_qq/global','getNTUserDataInfoConfig','dLjtn','dataPath','xCjfG','NodeIKernelProfileListener','快速登录不可用','QkOYO','getGroupService','onQRCodeLoginSucceed','mDXAE','onBuddyListChange','memberCount','getBuddyList','669074zpIfAM','init\x20failed\x20','recallTime','NodeIGlobalAdapter','delete','set','initConfig','getQRCodePicture','onRecvSysMsg','pngBase64QrcodeData','devUid','./.config/QQ','getMsgService','Xdyqq','5272710XiYmRx','账号设备(','MsgListener','onSelfStatusChanged','uZYNI','createHash','nmvMg','vkvrK','onLoginSuccess','onAddSendMsg','floor','当前账号(','qrLogin','startNT','FpNrM','homedir','msgId','qrcodeUrl','JeXAW','FOahU','catch','eWrUe','IDfmC','NodeQQNTWrapperUtil','sceneId','OVWtX','没有可快速登录的QQ号','CoNac','2172250RXStOB','then','NodeIKernelSessionListener','CcfhR','forEach','exwSf','getProfileService','now','get','split','VxuQg','EnPAN','306YdGbxY','digest',')\x20在线状态变更','NodeIDependsAdapter','ltgoG','fileLog','loginService','onProfileDetailInfoChanged','constructor','zbSgo','name','onQRCodeGetPicture','last_message_time','loginListener','addMsg','APEPT','AGRjr','onUserLoggedIn','util','iohcN','packet_received','infos','addKernelMsgListener','V1_WIN_NQ_','lTFGf','map','BUGrq','3664948Vxcrkn','gTyQw','length','passwordLogin','66HCuOWd','createMemberListScene','base64','BuddyListener','GroupListener','initWithDeskTopConfig','engine','loginErrorInfo','快速登录失败\x20','quickLogin','message_sent','consoleLog','getLoginList','dataPathGlobal','kFkEP','fileLogLevel','buddyList','onLoginFailed','md5','140022008','undefined','curVersion','NodeIKernelBuddyListener','push','NodeIKernelLoginService','fGxvF','assign','proxyHandler','session','25528FdXNxr','IAlqn','登录失败','YTQDq','groupCode','KafQR','\x20has\x20no\x20method\x20','onLoginSuccessFuncList','result','init','yBMrH','addKernelBuddyListener','kMFRT','updateMsg','数据库初始化失败','ETVih','isUxU','uid','zCSPG','gubHy','792911VRjsEj','10735296lSbvKI','[KickedOffLine]\x20[','find','本账号数据/缓存目录:','ProfileListener'];_0x463a=function(){return _0x3d0834;};return _0x463a();} \ No newline at end of file +const _0x4d5b81=_0x539f;(function(_0x5117f0,_0x59fb1e){const _0x49ead6=_0x539f,_0x46aff5=_0x5117f0();while(!![]){try{const _0x3f45ed=-parseInt(_0x49ead6(0x1d6))/0x1*(parseInt(_0x49ead6(0x213))/0x2)+-parseInt(_0x49ead6(0x20a))/0x3+-parseInt(_0x49ead6(0x240))/0x4+parseInt(_0x49ead6(0x1a2))/0x5*(-parseInt(_0x49ead6(0x216))/0x6)+-parseInt(_0x49ead6(0x1b1))/0x7*(-parseInt(_0x49ead6(0x19c))/0x8)+parseInt(_0x49ead6(0x1d3))/0x9*(-parseInt(_0x49ead6(0x1bd))/0xa)+-parseInt(_0x49ead6(0x239))/0xb*(-parseInt(_0x49ead6(0x209))/0xc);if(_0x3f45ed===_0x59fb1e)break;else _0x46aff5['push'](_0x46aff5['shift']());}catch(_0x417fba){_0x46aff5['push'](_0x46aff5['shift']());}}}(_0x5002,0xb551e));import _0x530a76 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';function _0x539f(_0x2daeb7,_0x110210){const _0x5002fc=_0x5002();return _0x539f=function(_0x539fb0,_0x47afdb){_0x539fb0=_0x539fb0-0x189;let _0x360b3c=_0x5002fc[_0x539fb0];return _0x360b3c;},_0x539f(_0x2daeb7,_0x110210);}import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x56f79f from'node:path';import _0x849989 from'node:os';import _0x3ec8f3 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';function _0x5002(){const _0x341581=['Iuimk','[KickedOffLine]\x20[','iVFxp','jBfdp','PgTNk','engine','GmXTm','onMemberListChange','getQRCodePicture','getQuickLoginList','启动失败:\x20','uid','find','onGroupListUpdate','data:image/png;base64,','9WZAoEA','constructor','NodeIKernelGroupListener','1oeaRee','addKernelGroupListener','当前账号(','addKernelLoginListener','createMemberListScene','onQRCodeSessionFailed','rJVQd','proxyHandler','kfjPe','assign','NodeIQQNTWrapperEngine','onQRCodeGetPicture','read','digest','getLoginList','wWhNO','fileLog','util','loginErrorInfo','hex','addListener','fileLogLevel','forEach','consoleLog','last_message_time','devUid','qoiyW','fERae','快速登录失败\x20','NodeIKernelLoginService','NodeIDependsAdapter','dtoTY','floor','NodeIKernelMsgListener','now','getBuddyService','rwqlC','yYwIO','HAsWF','Fimrw','HmsqH','passwordLogin','session','LocalLoginInfoList','NodeIDispatcherAdapter','登录失败','undefined','YmQof','startNT','onUserLoggedIn','ProfileListener','1415124SSbzLj','177780hYGqWy','WNASy','onSelfStatusChanged','then','hOzBD','onKickedOffLine','VcXVk','YxDZW','onLoginSuccessFuncList','1458542KlxRNp','dataPath','stringify','6vWOJtm','NodeIKernelProfileListener','rpuOG','init','tipsDesc','MOuwu','push','init\x20failed\x20','recallTime','getProfileService','OEpEY','xcpzV','packet_received','getMsgByLongId','initDataListener','delete','message_received','get','账号设备(','from','iKJIm','Fktoe','MsgListener','NodeQQNTWrapperUtil','addKernelBuddyListener','errMsg','\x20has\x20no\x20method\x20','DIvLL','memberCount','msgId','mkdirSync','QGDpG','resolve','message_sent','_GW_B','187UBfGtX','NodeIGlobalAdapter','oZYEt','IAtsj','TRFcU','tSXqL','createHash','2796124pnhugz','qwIEw','V1_WIN_NQ_','getBuddyList','tipsTitle','xyAoJ','./nt_qq/global','loginService','curVersion','uin','YPCBf','CNErp','onProfileDetailInfoChanged','infos','NodeIKernelSessionListener','dataPathGlobal','Azaua','sKrZZ','NQhtc','quickLogin','base64','vXIxH','quickLoginWithUin','fxfPl',')\x20在线状态变更','initWithDeskTopConfig','qrLogin','packet_sent','huuuR','getNextMemberList','OuwTt','name','8UstOFL','update','onMsgInfoListUpdate','onRecvSysMsg','快速登录不可用','tCRBH','218905ukXyTe','initSession\x20failed','initConfig','catch','map','isQuickLogin','onBuddyListChange','qrcodeUrl','NodeIKernelLoginListener','addMsg','140022008','qvkEU','PolJY','split','groupCode','4903248ITeopP','set','onAddSendMsg','-v2.db','BuddyListener','onQRCodeLoginSucceed','length','result',')已登录,无法重复登录','VXoCl','clientType','NodeIQQNTWrapperSession','4311940kKKZFy','sbWSw','Windows\x2010\x20Pro','onRecvMsg','getMsgService','loginListener','initSession'];_0x5002=function(){return _0x341581;};return _0x5002();}import _0x52fd38 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x4d5b81(0x200)];[_0x4d5b81(0x1e7)];[_0x4d5b81(0x1c9)];[_0x4d5b81(0x1c2)];[_0x4d5b81(0x247)];[_0x4d5b81(0x212)]=[];[_0x4d5b81(0x1dd)]={'get'(target,prop,receiver){const _0xbf5c63=_0x4d5b81,NOOAQQ={'qoiyW':function(x,y){return x===y;},'rJVQd':_0xbf5c63(0x204)};if(NOOAQQ[_0xbf5c63(0x1f0)](typeof target[prop],NOOAQQ[_0xbf5c63(0x1dc)]))return(...args)=>{const _0x9f042c=_0xbf5c63;logDebug(target[_0x9f042c(0x1d4)][_0x9f042c(0x19b)]+_0x9f042c(0x230)+prop);};return Reflect[_0xbf5c63(0x227)](target,prop,receiver);}};constructor(){const _0x4cb538=_0x4d5b81,_0x5edccf={'xcpzV':function(_0x345b4e,_0x4cfc27){return _0x345b4e(_0x4cfc27);},'pZbBN':function(_0x30b015,_0x1d1aba){return _0x30b015+_0x1d1aba;},'UdkgZ':_0x4cb538(0x1d8),'Azaua':_0x4cb538(0x1b9),'qwIEw':function(_0x33f0ba,_0x422032,_0xb0ce1d){return _0x33f0ba(_0x422032,_0xb0ce1d);},'miCoa':'数据库初始化失败','shSVz':function(_0x38ed7f,_0x48f4ac,_0x3866f9){return _0x38ed7f(_0x48f4ac,_0x3866f9);},'tSXqL':function(_0x2da7cb,_0x19f066){return _0x2da7cb(_0x19f066);},'pCTti':'./NapCat/data','MOuwu':function(_0x12ff01,_0x32c6c9,_0x2f107e){return _0x12ff01(_0x32c6c9,_0x2f107e);},'sKrZZ':_0x4cb538(0x203),'OEpEY':function(_0x386692,_0x3662a2){return _0x386692==_0x3662a2;},'yYwIO':function(_0x1a4e5f,_0x3e5796){return _0x1a4e5f==_0x3e5796;}};this[_0x4cb538(0x1c9)]=new _0x530a76[(_0x4cb538(0x1e0))](),this[_0x4cb538(0x1e7)]=new _0x530a76[(_0x4cb538(0x22d))](),this['loginService']=new _0x530a76[(_0x4cb538(0x1f3))](),this[_0x4cb538(0x200)]=new _0x530a76[(_0x4cb538(0x1bc))](),this[_0x4cb538(0x1c2)]=new LoginListener(),this['loginListener'][_0x4cb538(0x207)]=_0x5f2857=>{const _0x2ef5be=_0x4cb538;_0x5edccf[_0x2ef5be(0x221)](logError,_0x5edccf['pZbBN'](_0x5edccf['UdkgZ']+_0x5f2857,_0x5edccf[_0x2ef5be(0x18c)]));},this[_0x4cb538(0x1c2)][_0x4cb538(0x1b6)]=_0x1ccf38=>{const _0xffd9f9=_0x4cb538,_0x33cf7a={'Fimrw':function(_0x3f74ba,_0x3b332d,_0x5b7226){const _0x4fcf35=_0x539f;return _0x5edccf[_0x4fcf35(0x241)](_0x3f74ba,_0x3b332d,_0x5b7226);},'sbWSw':_0x5edccf['miCoa'],'xyAoJ':function(_0x587bc0,_0x5aff0d,_0x2e9e86){return _0x5edccf['shSVz'](_0x587bc0,_0x5aff0d,_0x2e9e86);},'wWhNO':function(_0x4d2871,_0x3fd515){return _0x4d2871(_0x3fd515);},'IAtsj':function(_0x230fe0,_0x14dcb8){const _0x1e5f44=_0x539f;return _0x5edccf[_0x1e5f44(0x23e)](_0x230fe0,_0x14dcb8);},'YxDZW':_0x5edccf['pCTti'],'mtBWe':_0xffd9f9(0x1a3)};this[_0xffd9f9(0x1c3)](_0x1ccf38[_0xffd9f9(0x249)],_0x1ccf38['uid'])[_0xffd9f9(0x20d)](_0x5490c5=>{const _0x12dccc=_0xffd9f9;selfInfo[_0x12dccc(0x249)]=_0x1ccf38['uin'],selfInfo[_0x12dccc(0x1cf)]=_0x1ccf38['uid'],napCatConfig[_0x12dccc(0x1e2)](),_0x33cf7a[_0x12dccc(0x245)](setLogLevel,napCatConfig[_0x12dccc(0x1eb)],napCatConfig['consoleLogLevel']),enableFileLog(napCatConfig[_0x12dccc(0x1e6)]),_0x33cf7a[_0x12dccc(0x1e5)](enableConsoleLog,napCatConfig[_0x12dccc(0x1ed)]),_0x33cf7a[_0x12dccc(0x23c)](setLogSelfInfo,selfInfo);const _0x5c1b37=_0x56f79f['resolve'](this[_0x12dccc(0x214)],_0x33cf7a[_0x12dccc(0x211)]);_0x3ec8f3['mkdirSync'](_0x5c1b37,{'recursive':!![]}),logDebug('本账号数据/缓存目录:',_0x5c1b37),dbUtil['init'](_0x56f79f['resolve'](_0x5c1b37,'./'+_0x1ccf38[_0x12dccc(0x249)]+_0x12dccc(0x1b4)))['then'](()=>{const _0x9ea09d=_0x12dccc;this[_0x9ea09d(0x224)](),this[_0x9ea09d(0x212)][_0x9ea09d(0x1a6)](_0x20a191=>{const _0x4b5843=_0x9ea09d,_0x3f9d30={'tCRBH':function(_0x182951,_0x3c5206,_0xe1f764){return _0x182951(_0x3c5206,_0xe1f764);}};new Promise((_0x8da022,_0x237bb0)=>{const _0x524812=_0x539f,_0x5d39e4=_0x3f9d30[_0x524812(0x1a1)](_0x20a191,_0x1ccf38[_0x524812(0x249)],_0x1ccf38[_0x524812(0x1cf)]);_0x5d39e4 instanceof Promise&&_0x5d39e4[_0x524812(0x20d)](_0x8da022)[_0x524812(0x1a5)](_0x237bb0);})[_0x4b5843(0x20d)]();});})[_0x12dccc(0x1a5)](_0x40cec1=>{const _0x25ee8d=_0x12dccc;_0x33cf7a[_0x25ee8d(0x1fd)](logError,_0x33cf7a[_0x25ee8d(0x1be)],_0x40cec1);});})[_0xffd9f9(0x1a5)](_0x3f164f=>{const _0x4c60ce=_0xffd9f9;logError(_0x33cf7a['mtBWe'],_0x3f164f);throw new Error(_0x4c60ce(0x1ce)+JSON[_0x4c60ce(0x215)](_0x3f164f));});},this[_0x4cb538(0x1c2)][_0x4cb538(0x1db)]=(_0xae8d15,_0x2fb3e1,_0xa0a808)=>{const _0x257056=_0x4cb538;_0x5edccf[_0x257056(0x21b)](logError,_0x5edccf[_0x257056(0x18d)],_0xa0a808),_0x5edccf[_0x257056(0x220)](_0xae8d15,0x1)&&_0x5edccf[_0x257056(0x1fb)](_0x2fb3e1,0x3)&&this[_0x257056(0x247)][_0x257056(0x1cc)]();},this[_0x4cb538(0x1c2)]['onLoginFailed']=_0x136283=>{const _0x588e38=_0x4cb538;logError(_0x5edccf[_0x588e38(0x18d)],_0x136283);},this[_0x4cb538(0x1c2)]=new Proxy(this[_0x4cb538(0x1c2)],this[_0x4cb538(0x1dd)]),this[_0x4cb538(0x247)][_0x4cb538(0x1d9)](new _0x530a76[(_0x4cb538(0x1aa))](this[_0x4cb538(0x1c2)])),this[_0x4cb538(0x1a4)]();}get[_0x4d5b81(0x214)](){const _0x7bf907=_0x4d5b81,_0x33d287={'iVFxp':'./.config/QQ'};let _0x1fcbfa=this[_0x7bf907(0x1e7)]['getNTUserDataInfoConfig']();return!_0x1fcbfa&&(_0x1fcbfa=_0x56f79f[_0x7bf907(0x236)](_0x849989['homedir'](),_0x33d287[_0x7bf907(0x1c6)]),_0x3ec8f3[_0x7bf907(0x234)](_0x1fcbfa,{'recursive':!![]})),_0x1fcbfa;}get[_0x4d5b81(0x18b)](){const _0x27b878=_0x4d5b81;return _0x56f79f[_0x27b878(0x236)](this[_0x27b878(0x214)],_0x27b878(0x246));}[_0x4d5b81(0x1a4)](){const _0x263b16=_0x4d5b81,_0x1a131c={'HAsWF':_0x263b16(0x1bf)};this[_0x263b16(0x1c9)][_0x263b16(0x195)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x263b16(0x248)],'os_version':_0x1a131c[_0x263b16(0x1fc)],'use_xlog':!![],'qua':_0x263b16(0x242)+qqVersionConfigInfo['curVersion']['replace']('-','_')+_0x263b16(0x238),'global_path_config':{'desktopGlobalPath':this[_0x263b16(0x18b)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x530a76[(_0x263b16(0x23a))](new GlobalAdapter())),this[_0x263b16(0x247)][_0x263b16(0x1a4)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x263b16(0x18b)],'clientVer':qqVersionConfigInfo[_0x263b16(0x248)],'hostName':hostname});}[_0x4d5b81(0x1c3)](_0x19fb13,_0x3f6034){const _0x26451a=_0x4d5b81,_0x5b52e2={'OuwTt':function(_0x1b9e0e,_0x4e9c21){return _0x1b9e0e===_0x4e9c21;},'fERae':function(_0x5bdae4,_0x3a333d){return _0x5bdae4(_0x3a333d);},'oZYEt':function(_0xd76fd8,_0x299445){return _0xd76fd8+_0x299445;},'kfjPe':_0x26451a(0x21d)};return new Promise(async(_0x402431,_0x1a5969)=>{const _0x5bfa6a=_0x26451a,_0xd84844=await genSessionConfig(_0x19fb13,_0x3f6034,this[_0x5bfa6a(0x214)]),_0x42f714=new SessionListener();_0x42f714['onSessionInitComplete']=_0xb335de=>{const _0x4933eb=_0x5bfa6a;if(_0x5b52e2[_0x4933eb(0x19a)](_0xb335de,0x0))return _0x5b52e2[_0x4933eb(0x1f1)](_0x402431,0x0);_0x5b52e2['fERae'](_0x1a5969,_0xb335de);},this[_0x5bfa6a(0x200)][_0x5bfa6a(0x219)](_0xd84844,new _0x530a76[(_0x5bfa6a(0x1f4))](new DependsAdapter()),new _0x530a76[(_0x5bfa6a(0x202))](new DispatcherAdapter()),new _0x530a76[(_0x5bfa6a(0x18a))](_0x42f714));try{this['session'][_0x5bfa6a(0x206)](0x0);}catch(_0x5c6ae4){try{this['session'][_0x5bfa6a(0x206)]();}catch(_0x1d7dfa){_0x5b52e2['fERae'](_0x1a5969,_0x5b52e2[_0x5bfa6a(0x23b)](_0x5b52e2[_0x5bfa6a(0x1de)],_0x1d7dfa));}}});}[_0x4d5b81(0x224)](){const _0x3c3960=_0x4d5b81,_0x492c06={'vXIxH':function(_0x5d60d4,_0x430050){return _0x5d60d4(_0x430050);},'WNASy':function(_0x14974d,_0x1dc913){return _0x14974d+_0x1dc913;},'waxez':function(_0x357345,_0x268b5b){return _0x357345+_0x268b5b;},'hOzBD':_0x3c3960(0x194),'fvDNV':function(_0x37fbb5,_0x1ac785){return _0x37fbb5(_0x1ac785);},'QGDpG':function(_0x2effb6,_0x2f3b8b){return _0x2effb6+_0x2f3b8b;},'DIvLL':_0x3c3960(0x1c5),'YPCBf':function(_0x279be9,_0x120fcb){return _0x279be9===_0x120fcb;},'dtoTY':function(_0x4291a9,_0x2cfb6a){return _0x4291a9/_0x2cfb6a;},'Fktoe':function(_0x319209,_0xbf5f4f){return _0x319209/_0xbf5f4f;},'rpuOG':function(_0x21fdd5,_0x4c03a8){return _0x21fdd5===_0x4c03a8;},'huuuR':'groupMemberList_MainWindow','NQhtc':function(_0x3f40a2,_0x1fc718,_0x495cb0){return _0x3f40a2(_0x1fc718,_0x495cb0);}},_0x126b57=new MsgListener();_0x126b57['onLineDev']=_0x14eb95=>{const _0x742d7e=_0x3c3960;_0x14eb95[_0x742d7e(0x1a6)](_0x2c442d=>{const _0x744f5c=_0x742d7e;_0x2c442d[_0x744f5c(0x1bb)]===0x2&&_0x492c06[_0x744f5c(0x191)](log,_0x492c06[_0x744f5c(0x20b)](_0x492c06['waxez'](_0x744f5c(0x228),_0x2c442d[_0x744f5c(0x1ef)]),_0x492c06[_0x744f5c(0x20e)]));});},_0x126b57[_0x3c3960(0x20f)]=_0x5d9ec3=>{const _0x489bfb=_0x3c3960;_0x492c06['fvDNV'](log,_0x492c06[_0x489bfb(0x235)](_0x492c06[_0x489bfb(0x20b)](_0x492c06[_0x489bfb(0x231)]+_0x5d9ec3[_0x489bfb(0x244)],']\x20'),_0x5d9ec3[_0x489bfb(0x21a)]));},_0x126b57[_0x3c3960(0x19e)]=_0x5cd523=>{const _0x1dab3c=_0x3c3960,_0x1e3f95={'HmsqH':function(_0x33a70c,_0x3eafc0){const _0x580ad2=_0x539f;return _0x492c06[_0x580ad2(0x24a)](_0x33a70c,_0x3eafc0);}};stat[_0x1dab3c(0x222)]+=0x1,_0x5cd523['map'](_0x44020e=>{const _0x41382b=_0x1dab3c;_0x1e3f95[_0x41382b(0x1fe)](_0x44020e['recallTime'],'0')?dbUtil[_0x41382b(0x1ab)](_0x44020e)[_0x41382b(0x20d)]()['catch']():dbUtil[_0x41382b(0x223)](_0x44020e[_0x41382b(0x233)])[_0x41382b(0x20d)](_0x5500e7=>{const _0x19847c=_0x41382b;_0x5500e7&&(_0x5500e7[_0x19847c(0x21e)]=_0x44020e[_0x19847c(0x21e)],dbUtil['updateMsg'](_0x5500e7)['then']());});});},_0x126b57[_0x3c3960(0x1b3)]=_0x5f3bdb=>{const _0x3e77b6=_0x3c3960;stat[_0x3e77b6(0x197)]+=0x1,stat[_0x3e77b6(0x237)]+=0x1,stat['last_message_time']=Math[_0x3e77b6(0x1f6)](_0x492c06[_0x3e77b6(0x1f5)](Date[_0x3e77b6(0x1f8)](),0x3e8));},_0x126b57[_0x3c3960(0x1c0)]=_0xbe95db=>{const _0xa5fb73=_0x3c3960;stat[_0xa5fb73(0x222)]+=0x1,stat[_0xa5fb73(0x226)]+=_0xbe95db['length'],stat[_0xa5fb73(0x1ee)]=Math[_0xa5fb73(0x1f6)](_0x492c06[_0xa5fb73(0x22b)](Date[_0xa5fb73(0x1f8)](),0x3e8));},_0x126b57[_0x3c3960(0x19f)]=(..._0x52e133)=>{stat['packet_received']+=0x1;},this[_0x3c3960(0x1ea)](_0x126b57);const _0xadc896=new BuddyListener();_0xadc896[_0x3c3960(0x1a8)]=_0x4f776a=>{const _0x1b0853=_0x3c3960;rawFriends[_0x1b0853(0x1b7)]=0x0,rawFriends[_0x1b0853(0x21c)](..._0x4f776a);for(const _0xc38c63 of _0x4f776a){for(const _0x4a7e50 of _0xc38c63['buddyList']){const _0x5156a1=friends[_0x1b0853(0x227)](_0x4a7e50[_0x1b0853(0x1cf)]);uid2UinMap[_0x4a7e50[_0x1b0853(0x1cf)]]=_0x4a7e50[_0x1b0853(0x249)],_0x5156a1?Object['assign'](_0x5156a1,_0x4a7e50):friends[_0x1b0853(0x1b2)](_0x4a7e50[_0x1b0853(0x1cf)],_0x4a7e50);}}},this[_0x3c3960(0x1ea)](_0xadc896),this[_0x3c3960(0x200)][_0x3c3960(0x1f9)]()[_0x3c3960(0x243)](!![])[_0x3c3960(0x20d)](_0x4381ba=>{});const _0x8df30=new ProfileListener();_0x8df30[_0x3c3960(0x24c)]=_0x14a593=>{const _0x378f0f=_0x3c3960;_0x492c06[_0x378f0f(0x218)](_0x14a593['uid'],selfInfo[_0x378f0f(0x1cf)])&&Object['assign'](selfInfo,_0x14a593);},_0x8df30[_0x3c3960(0x20c)]=_0x937f4=>{},this[_0x3c3960(0x1ea)](_0x8df30);const _0x589f47=new GroupListener();_0x589f47[_0x3c3960(0x1d1)]=(_0x3a4cba,_0xb7ccf2)=>{const _0x5ba694=_0x3c3960;_0xb7ccf2[_0x5ba694(0x1a6)](_0x352ea3=>{const _0x100f72=_0x5ba694,_0x4b347b=groups[_0x100f72(0x227)](_0x352ea3['groupCode']);_0x4b347b&&_0x352ea3[_0x100f72(0x232)]===_0x4b347b[_0x100f72(0x232)]?Object['assign'](_0x4b347b,_0x352ea3):groups[_0x100f72(0x1b2)](_0x352ea3[_0x100f72(0x1b0)],_0x352ea3);const _0x3274ea=this[_0x100f72(0x200)]['getGroupService']()[_0x100f72(0x1da)](_0x352ea3[_0x100f72(0x1b0)],_0x492c06[_0x100f72(0x198)]);this[_0x100f72(0x200)]['getGroupService']()[_0x100f72(0x199)](_0x3274ea,undefined,0xbb8)[_0x100f72(0x20d)](_0x3de5b5=>{});});},_0x589f47[_0x3c3960(0x1cb)]=_0x6a42d8=>{const _0x53fd4e=_0x3c3960,_0x27fdd4=_0x6a42d8['sceneId'][_0x53fd4e(0x1af)]('_')[0x0];if(groupMembers['has'](_0x27fdd4)){const _0x586187=groupMembers[_0x53fd4e(0x227)](_0x27fdd4);_0x6a42d8[_0x53fd4e(0x189)][_0x53fd4e(0x1ec)]((_0x3d263d,_0x2cdf30)=>{const _0x387585=_0x53fd4e,_0x1634fb=_0x586187[_0x387585(0x227)](_0x2cdf30);_0x1634fb?Object[_0x387585(0x1df)](_0x1634fb,_0x3d263d):_0x586187[_0x387585(0x1b2)](_0x2cdf30,_0x3d263d);});}else groupMembers[_0x53fd4e(0x1b2)](_0x27fdd4,_0x6a42d8['infos']);},_0x589f47['onMemberInfoChange']=(_0x15b7d6,_0x2ab851,_0x38748b)=>{const _0x103a8a=_0x3c3960;_0x2ab851===0x0&&_0x38748b[_0x103a8a(0x227)](selfInfo[_0x103a8a(0x1cf)])&&_0x38748b[_0x103a8a(0x227)](selfInfo[_0x103a8a(0x1cf)])?.['isDelete']&&_0x492c06[_0x103a8a(0x18e)](setTimeout,()=>{const _0xf68df3=_0x103a8a;groups[_0xf68df3(0x225)](_0x15b7d6);},0x1388);_0x38748b['forEach']((_0x2acfc4,_0x22ea65)=>{const _0x19d713=_0x103a8a;uid2UinMap[_0x22ea65]=_0x2acfc4[_0x19d713(0x249)];});const _0x18b59b=groupMembers['get'](_0x15b7d6);_0x18b59b?_0x38748b[_0x103a8a(0x1ec)]((_0x34a978,_0x472877)=>{const _0x784447=_0x103a8a,_0xa9d079=_0x18b59b[_0x784447(0x227)](_0x472877);_0xa9d079?Object[_0x784447(0x1df)](_0xa9d079,_0x34a978):_0x18b59b[_0x784447(0x1b2)](_0x472877,_0x34a978);}):groupMembers['set'](_0x15b7d6,_0x38748b);},this['addListener'](_0x589f47);}[_0x4d5b81(0x1ea)](_0x49b65d){const _0x2d4d61=_0x4d5b81,_0x54c609={'GmXTm':_0x2d4d61(0x1b5),'VcXVk':'GroupListener','TRFcU':_0x2d4d61(0x22c),'fxfPl':_0x2d4d61(0x208)};_0x49b65d=new Proxy(_0x49b65d,this[_0x2d4d61(0x1dd)]);switch(_0x49b65d['constructor'][_0x2d4d61(0x19b)]){case _0x54c609[_0x2d4d61(0x1ca)]:{return this['session']['getBuddyService']()[_0x2d4d61(0x22e)](new _0x530a76['NodeIKernelBuddyListener'](_0x49b65d));}case _0x54c609[_0x2d4d61(0x210)]:{return this['session']['getGroupService']()[_0x2d4d61(0x1d7)](new _0x530a76[(_0x2d4d61(0x1d5))](_0x49b65d));}case _0x54c609[_0x2d4d61(0x23d)]:{return this[_0x2d4d61(0x200)][_0x2d4d61(0x1c1)]()['addKernelMsgListener'](new _0x530a76[(_0x2d4d61(0x1f7))](_0x49b65d));}case _0x54c609[_0x2d4d61(0x193)]:{return this['session'][_0x2d4d61(0x21f)]()['addKernelProfileListener'](new _0x530a76[(_0x2d4d61(0x217))](_0x49b65d));}default:return-0x1;}}['onLoginSuccess'](_0x54cc77){const _0x12b4df=_0x4d5b81;NTEventDispatch[_0x12b4df(0x219)]({'ListenerMap':_0x530a76,'WrapperSession':this['session']}),this[_0x12b4df(0x212)][_0x12b4df(0x21c)](_0x54cc77);}async[_0x4d5b81(0x18f)](_0x4546fa){const _0x1bfd14=_0x4d5b81,_0x1825a3={'VXoCl':function(_0xf0db58,_0x3ba6b2){return _0xf0db58!==_0x3ba6b2;},'PolJY':_0x1bfd14(0x1f2)},_0x52f44e=await this[_0x1bfd14(0x247)][_0x1bfd14(0x1e4)]();if(_0x1825a3[_0x1bfd14(0x1ba)](_0x52f44e[_0x1bfd14(0x1b8)],0x0))throw new Error('没有可快速登录的QQ号');const _0x3f4710=_0x52f44e[_0x1bfd14(0x201)][_0x1bfd14(0x1d0)](_0x224e34=>_0x224e34['uin']===_0x4546fa);if(!_0x3f4710||!_0x3f4710?.[_0x1bfd14(0x1a7)])throw new Error(_0x4546fa+_0x1bfd14(0x1a0));await sleep(0x3e8);const _0x2a04b3=await this['loginService'][_0x1bfd14(0x192)](_0x4546fa);if(!_0x2a04b3[_0x1bfd14(0x1b8)])throw new Error(_0x1825a3[_0x1bfd14(0x1ae)]+_0x2a04b3[_0x1bfd14(0x1e8)][_0x1bfd14(0x22f)]);return _0x2a04b3;}async[_0x4d5b81(0x196)](_0x34b0fc){const _0x2433cf=_0x4d5b81,_0x11bbd9={'YmQof':_0x2433cf(0x1d2)};return new Promise((_0x56443f,_0x4e1d9e)=>{const _0xeb932c=_0x2433cf,_0x2da0dc={'IHlcL':_0x11bbd9[_0xeb932c(0x205)],'CNErp':_0xeb932c(0x190),'Iuimk':function(_0x522ff6,_0x190072,_0x2abaae,_0x30a29b){return _0x522ff6(_0x190072,_0x2abaae,_0x30a29b);}};this[_0xeb932c(0x1c2)][_0xeb932c(0x1e1)]=_0x4ebd22=>{const _0xc41ecf=_0xeb932c,_0x5d95e2=_0x4ebd22['pngBase64QrcodeData'][_0xc41ecf(0x1af)](_0x2da0dc['IHlcL'])[0x1],_0x54d611=Buffer[_0xc41ecf(0x229)](_0x5d95e2,_0x2da0dc[_0xc41ecf(0x24b)]);_0x2da0dc[_0xc41ecf(0x1c4)](_0x34b0fc,_0x4ebd22[_0xc41ecf(0x1a9)],_0x4ebd22['pngBase64QrcodeData'],_0x54d611);},this['loginService']['getQRCodePicture']();});}async['passwordLogin'](_0x452741,_0x474dab,_0x2f17ef,_0x17e0c7,_0x26ed2e){const _0x383328=_0x4d5b81,_0x2e5d11={'jBfdp':'md5','HevnZ':_0x383328(0x1e9),'qvkEU':function(_0x4df669,_0x33ab99){return _0x4df669&&_0x33ab99;},'xuQrv':function(_0x105a71,_0x4351d7){return _0x105a71||_0x4351d7;},'PgTNk':function(_0x1a5599,_0x28f3ff){return _0x1a5599||_0x28f3ff;},'rwqlC':function(_0x552163,_0x206966){return _0x552163(_0x206966);},'iKJIm':_0x383328(0x1ac),'ICxIh':'140022013'},_0x1d55e0=_0x52fd38[_0x383328(0x23f)](_0x2e5d11[_0x383328(0x1c7)])[_0x383328(0x19d)](_0x474dab)[_0x383328(0x1e3)](_0x2e5d11['HevnZ']),_0x294997={'uin':_0x452741,'passwordMd5':_0x1d55e0,'step':_0x2e5d11[_0x383328(0x1ad)](_0x2f17ef,_0x17e0c7)&&_0x26ed2e?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x2e5d11['xuQrv'](_0x2f17ef,''),'proofWaterRand':_0x17e0c7||'','proofWaterSid':_0x2e5d11[_0x383328(0x1c8)](_0x26ed2e,'')};await this['loginService']['getLoginList'](),await _0x2e5d11[_0x383328(0x1fa)](sleep,0x3e8);const _0x1ef480=await this[_0x383328(0x247)][_0x383328(0x1ff)](_0x294997);switch(_0x1ef480['result']){case'0':{break;}case _0x2e5d11[_0x383328(0x22a)]:{break;}case'4':case _0x2e5d11['ICxIh']:default:}}async[_0x4d5b81(0x1cd)](){const _0x4c096f=_0x4d5b81,_0xf5249b=await this[_0x4c096f(0x247)][_0x4c096f(0x1e4)]();return _0xf5249b;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 80480637..d0126dd9 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x6bd0b7=_0x5682;(function(_0x5053e6,_0x41b045){const _0x9f23b=_0x5682,_0xb64d3b=_0x5053e6();while(!![]){try{const _0x5e3911=-parseInt(_0x9f23b(0x130))/0x1*(-parseInt(_0x9f23b(0x120))/0x2)+parseInt(_0x9f23b(0x12e))/0x3+parseInt(_0x9f23b(0x121))/0x4*(-parseInt(_0x9f23b(0x122))/0x5)+-parseInt(_0x9f23b(0x126))/0x6+parseInt(_0x9f23b(0x135))/0x7+-parseInt(_0x9f23b(0x12d))/0x8+parseInt(_0x9f23b(0x12b))/0x9*(parseInt(_0x9f23b(0x136))/0xa);if(_0x5e3911===_0x41b045)break;else _0xb64d3b['push'](_0xb64d3b['shift']());}catch(_0x45621e){_0xb64d3b['push'](_0xb64d3b['shift']());}}}(_0x2fa1,0x4abf7));function _0x2fa1(){const _0x42dae2=['1769640PEeBID','values','length','4tbsYoy','4dhDaYc','3051905lOUxir','get','set','groupCode','1353348BDxjoC','find','forEach','getGroupMembers','NapCat未能正常启动,请检查日志查看错误','63AhlweG','delete','3773160GOvADv','148476UBFysl','RKkdf','15953JfqnXa','toString','from','uSFWK','getGroups','2055235zKKspX'];_0x2fa1=function(){return _0x42dae2;};return _0x2fa1();}import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x2b6c11){const _0x4ae0cf=_0x5682;groups[_0x4ae0cf(0x12c)](_0x2b6c11),groupMembers[_0x4ae0cf(0x12c)](_0x2b6c11);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x6bd0b7(0x12a)};export async function getFriend(_0x226557){const _0x2a007c=_0x6bd0b7,_0x5d6cfd={'RKkdf':function(_0x5e1a81,_0x2cbb63){return _0x5e1a81(_0x2cbb63);}};_0x226557=_0x226557[_0x2a007c(0x131)]();if(_0x5d6cfd[_0x2a007c(0x12f)](isNumeric,_0x226557)){const _0x8209c4=Array[_0x2a007c(0x132)](friends['values']());return _0x8209c4[_0x2a007c(0x127)](_0x4286a8=>_0x4286a8['uin']===_0x226557);}else return friends['get'](_0x226557);}export async function getGroup(_0x573159){const _0x50a5c9=_0x6bd0b7;let _0x3cd395=groups['get'](_0x573159[_0x50a5c9(0x131)]());if(!_0x3cd395)try{const _0x30f9cc=await NTQQGroupApi[_0x50a5c9(0x134)]();_0x30f9cc[_0x50a5c9(0x11f)]&&_0x30f9cc[_0x50a5c9(0x128)](_0x52d51d=>{const _0xa1b696=_0x50a5c9;groups[_0xa1b696(0x124)](_0x52d51d[_0xa1b696(0x125)],_0x52d51d);});}catch(_0x3451de){return undefined;}return _0x3cd395=groups['get'](_0x573159[_0x50a5c9(0x131)]()),_0x3cd395;}export async function getGroupMember(_0x3df171,_0x3303e3){const _0xd2f57d=_0x6bd0b7,_0x4a6968={'uSFWK':function(_0x4d37ba){return _0x4d37ba();}};_0x3df171=_0x3df171[_0xd2f57d(0x131)](),_0x3303e3=_0x3303e3[_0xd2f57d(0x131)]();let _0x47d2f7=groupMembers[_0xd2f57d(0x123)](_0x3df171);if(!_0x47d2f7)try{_0x47d2f7=await NTQQGroupApi[_0xd2f57d(0x129)](_0x3df171),groupMembers[_0xd2f57d(0x124)](_0x3df171,_0x47d2f7);}catch(_0x4e239d){return null;}const _0x361e76=()=>{const _0x2e9f0e=_0xd2f57d;let _0x1b2a61=undefined;return isNumeric(_0x3303e3)?_0x1b2a61=Array[_0x2e9f0e(0x132)](_0x47d2f7[_0x2e9f0e(0x137)]())['find'](_0x3c0116=>_0x3c0116['uin']===_0x3303e3):_0x1b2a61=_0x47d2f7[_0x2e9f0e(0x123)](_0x3303e3),_0x1b2a61;};let _0xf14aca=_0x4a6968[_0xd2f57d(0x133)](_0x361e76);return!_0xf14aca&&(_0x47d2f7=await NTQQGroupApi[_0xd2f57d(0x129)](_0x3df171),_0xf14aca=_0x361e76()),_0xf14aca;}function _0x5682(_0x149775,_0x117f74){const _0x2fa19a=_0x2fa1();return _0x5682=function(_0x56822d,_0x5c0103){_0x56822d=_0x56822d-0x11f;let _0x3f8559=_0x2fa19a[_0x56822d];return _0x3f8559;},_0x5682(_0x149775,_0x117f74);}export const uid2UinMap={};export function getUidByUin(_0x27aba6){const _0x5efe80={'DrudH':function(_0x47f6fb,_0x3bc2c8){return _0x47f6fb===_0x3bc2c8;}};for(const _0x2ab022 in uid2UinMap){if(_0x5efe80['DrudH'](uid2UinMap[_0x2ab022],_0x27aba6))return _0x2ab022;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +const _0x12caaa=_0x1bbf;(function(_0x51eeb7,_0x527fef){const _0x1dbc75=_0x1bbf,_0x227393=_0x51eeb7();while(!![]){try{const _0xae1a55=parseInt(_0x1dbc75(0x166))/0x1*(-parseInt(_0x1dbc75(0x160))/0x2)+-parseInt(_0x1dbc75(0x16f))/0x3+parseInt(_0x1dbc75(0x16e))/0x4+-parseInt(_0x1dbc75(0x164))/0x5+parseInt(_0x1dbc75(0x163))/0x6+parseInt(_0x1dbc75(0x167))/0x7*(parseInt(_0x1dbc75(0x15f))/0x8)+parseInt(_0x1dbc75(0x162))/0x9;if(_0xae1a55===_0x527fef)break;else _0x227393['push'](_0x227393['shift']());}catch(_0x2519d6){_0x227393['push'](_0x227393['shift']());}}}(_0x2cf8,0xc3b8c));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x165af3){const _0x5bd4da=_0x1bbf;groups['delete'](_0x165af3),groupMembers[_0x5bd4da(0x168)](_0x165af3);}export const groupMembers=new Map();export const friends=new Map();function _0x2cf8(){const _0x5c8e7a=['toString','ikiht','values','from','set','RthjH','504oNehXV','19582eUEcsu','uin','39386295poXQTB','1748364aJBKSC','7785110Vgzjzz','getGroups','148dgFDfR','27972ALoCHt','delete','getGroupMembers','forEach','length','find','NapCat未能正常启动,请检查日志查看错误','431484wCMOTQ','3658506wZfNNX','get'];_0x2cf8=function(){return _0x5c8e7a;};return _0x2cf8();}export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x12caaa(0x16d)};export async function getFriend(_0x14f4a4){const _0xd274d0=_0x12caaa,_0x13c795={'zpLvi':function(_0x118510,_0x12fde5){return _0x118510(_0x12fde5);}};_0x14f4a4=_0x14f4a4[_0xd274d0(0x159)]();if(_0x13c795['zpLvi'](isNumeric,_0x14f4a4)){const _0x47d8ab=Array[_0xd274d0(0x15c)](friends[_0xd274d0(0x15b)]());return _0x47d8ab[_0xd274d0(0x16c)](_0x3275b1=>_0x3275b1[_0xd274d0(0x161)]===_0x14f4a4);}else return friends[_0xd274d0(0x170)](_0x14f4a4);}export async function getGroup(_0x25b22b){const _0x3dec5a=_0x12caaa;let _0x5ebaeb=groups[_0x3dec5a(0x170)](_0x25b22b[_0x3dec5a(0x159)]());if(!_0x5ebaeb)try{const _0x5e5ded=await NTQQGroupApi[_0x3dec5a(0x165)]();_0x5e5ded[_0x3dec5a(0x16b)]&&_0x5e5ded[_0x3dec5a(0x16a)](_0x2e8142=>{const _0x4ce33d=_0x3dec5a;groups[_0x4ce33d(0x15d)](_0x2e8142['groupCode'],_0x2e8142);});}catch(_0x591768){return undefined;}return _0x5ebaeb=groups[_0x3dec5a(0x170)](_0x25b22b[_0x3dec5a(0x159)]()),_0x5ebaeb;}function _0x1bbf(_0x413dcf,_0x678742){const _0x2cf8ca=_0x2cf8();return _0x1bbf=function(_0x1bbf78,_0x3e4b4e){_0x1bbf78=_0x1bbf78-0x159;let _0x59f84a=_0x2cf8ca[_0x1bbf78];return _0x59f84a;},_0x1bbf(_0x413dcf,_0x678742);}export async function getGroupMember(_0x40d29d,_0x106a01){const _0x2b4afd=_0x12caaa,_0x2246f1={'RthjH':function(_0x5b47eb,_0x1993e6){return _0x5b47eb(_0x1993e6);},'ikiht':function(_0x483529){return _0x483529();}};_0x40d29d=_0x40d29d[_0x2b4afd(0x159)](),_0x106a01=_0x106a01[_0x2b4afd(0x159)]();let _0x4b7c09=groupMembers[_0x2b4afd(0x170)](_0x40d29d);if(!_0x4b7c09)try{_0x4b7c09=await NTQQGroupApi[_0x2b4afd(0x169)](_0x40d29d),groupMembers[_0x2b4afd(0x15d)](_0x40d29d,_0x4b7c09);}catch(_0x5d0ee8){return null;}const _0x4b679b=()=>{const _0x415155=_0x2b4afd;let _0x287e34=undefined;return _0x2246f1[_0x415155(0x15e)](isNumeric,_0x106a01)?_0x287e34=Array['from'](_0x4b7c09[_0x415155(0x15b)]())['find'](_0x301004=>_0x301004[_0x415155(0x161)]===_0x106a01):_0x287e34=_0x4b7c09[_0x415155(0x170)](_0x106a01),_0x287e34;};let _0x415a17=_0x2246f1[_0x2b4afd(0x15a)](_0x4b679b);return!_0x415a17&&(_0x4b7c09=await NTQQGroupApi[_0x2b4afd(0x169)](_0x40d29d),_0x415a17=_0x2246f1[_0x2b4afd(0x15a)](_0x4b679b)),_0x415a17;}export const uid2UinMap={};export function getUidByUin(_0x5c92b1){const _0x39677d={'eXQSl':function(_0x5ec56d,_0x2e8372){return _0x5ec56d===_0x2e8372;}};for(const _0x57e929 in uid2UinMap){if(_0x39677d['eXQSl'](uid2UinMap[_0x57e929],_0x5c92b1))return _0x57e929;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index ab41b34d..413778d0 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0x1806(){var _0x891ba1=['287998IXXBUH','12969324CpTTHa','415490wvVPTv','split','DOCUMENT','AiULT','IMAGE','2|3|4|1|0','170iDhUDe','104061qIxpag','IdBVd','VIDEO','90tfTGFz','EUtFx','3031owKtcx','OTHER','kwYUI','yQBqy','11XUMvHq','ksAzo','74064SfKygL','10912RSMZir','24CjBDtx','248802Fusayi'];_0x1806=function(){return _0x891ba1;};return _0x1806();}(function(_0x55b185,_0x927958){var _0x283eef=_0x5493,_0x2aa330=_0x55b185();while(!![]){try{var _0x336a10=-parseInt(_0x283eef(0x1ae))/0x1+parseInt(_0x283eef(0x1ad))/0x2+parseInt(_0x283eef(0x1b7))/0x3*(-parseInt(_0x283eef(0x1ac))/0x4)+parseInt(_0x283eef(0x1b6))/0x5*(-parseInt(_0x283eef(0x1aa))/0x6)+parseInt(_0x283eef(0x1bc))/0x7*(parseInt(_0x283eef(0x1ab))/0x8)+-parseInt(_0x283eef(0x1ba))/0x9*(parseInt(_0x283eef(0x1b0))/0xa)+-parseInt(_0x283eef(0x1a8))/0xb*(-parseInt(_0x283eef(0x1af))/0xc);if(_0x336a10===_0x927958)break;else _0x2aa330['push'](_0x2aa330['shift']());}catch(_0x1bdafd){_0x2aa330['push'](_0x2aa330['shift']());}}}(_0x1806,0x71664));;export var CacheFileType;function _0x5493(_0x55a407,_0xd64393){var _0x18060f=_0x1806();return _0x5493=function(_0x549329,_0x176c2d){_0x549329=_0x549329-0x1a5;var _0x205a59=_0x18060f[_0x549329];return _0x205a59;},_0x5493(_0x55a407,_0xd64393);}(function(_0x3e9347){var _0x56628e=_0x5493,_0x42e30f={'EUtFx':_0x56628e(0x1b5),'kwYUI':_0x56628e(0x1a5),'ksAzo':_0x56628e(0x1b2),'yQBqy':_0x56628e(0x1b4),'IdBVd':_0x56628e(0x1b9),'AiULT':'AUDIO'},_0x52b4c0=_0x42e30f[_0x56628e(0x1bb)][_0x56628e(0x1b1)]('|'),_0x111826=0x0;while(!![]){switch(_0x52b4c0[_0x111826++]){case'0':_0x3e9347[_0x3e9347[_0x56628e(0x1a5)]=0x4]=_0x42e30f[_0x56628e(0x1a6)];continue;case'1':_0x3e9347[_0x3e9347[_0x42e30f['ksAzo']]=0x3]=_0x42e30f[_0x56628e(0x1a9)];continue;case'2':_0x3e9347[_0x3e9347[_0x42e30f[_0x56628e(0x1a7)]]=0x0]=_0x42e30f[_0x56628e(0x1a7)];continue;case'3':_0x3e9347[_0x3e9347[_0x42e30f[_0x56628e(0x1b8)]]=0x1]=_0x42e30f[_0x56628e(0x1b8)];continue;case'4':_0x3e9347[_0x3e9347[_0x42e30f[_0x56628e(0x1b3)]]=0x2]=_0x42e30f['AiULT'];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0x21a8(){var _0x58f919=['7bwUkkO','cDUOp','127640NKdPkH','30BPcYRR','AUDIO','6050bwmtSY','nSdhG','4108951kIIrpT','split','OTHER','DOCUMENT','104789fWyVGI','29984bjnNej','IMAGE','1843736DhKqob','3177THnZWd','1|3|0|2|4','245685efDevN','VIDEO','42PqUiOR'];_0x21a8=function(){return _0x58f919;};return _0x21a8();}(function(_0x28594b,_0x4d85ba){var _0x1424cd=_0x4207,_0x30e019=_0x28594b();while(!![]){try{var _0x544f6e=parseInt(_0x1424cd(0x17f))/0x1+parseInt(_0x1424cd(0x18a))/0x2+parseInt(_0x1424cd(0x187))/0x3*(parseInt(_0x1424cd(0x180))/0x4)+-parseInt(_0x1424cd(0x185))/0x5*(-parseInt(_0x1424cd(0x18b))/0x6)+-parseInt(_0x1424cd(0x188))/0x7*(parseInt(_0x1424cd(0x182))/0x8)+parseInt(_0x1424cd(0x183))/0x9*(parseInt(_0x1424cd(0x18d))/0xa)+-parseInt(_0x1424cd(0x18f))/0xb;if(_0x544f6e===_0x4d85ba)break;else _0x30e019['push'](_0x30e019['shift']());}catch(_0x5077a2){_0x30e019['push'](_0x30e019['shift']());}}}(_0x21a8,0x1f71b));;function _0x4207(_0xad57e3,_0x57c5e0){var _0x21a88a=_0x21a8();return _0x4207=function(_0x42078e,_0x5aa429){_0x42078e=_0x42078e-0x17e;var _0x5e36c2=_0x21a88a[_0x42078e];return _0x5e36c2;},_0x4207(_0xad57e3,_0x57c5e0);}export var CacheFileType;(function(_0x2b9f6d){var _0x18955e=_0x4207,_0x5c9b7f={'NGSMY':_0x18955e(0x184),'gLvUt':_0x18955e(0x18c),'KXqXX':_0x18955e(0x17e),'nSdhG':_0x18955e(0x186),'cDUOp':_0x18955e(0x191)},_0x583cec=_0x5c9b7f['NGSMY'][_0x18955e(0x190)]('|'),_0x37269a=0x0;while(!![]){switch(_0x583cec[_0x37269a++]){case'0':_0x2b9f6d[_0x2b9f6d['AUDIO']=0x2]=_0x5c9b7f['gLvUt'];continue;case'1':_0x2b9f6d[_0x2b9f6d[_0x18955e(0x181)]=0x0]=_0x18955e(0x181);continue;case'2':_0x2b9f6d[_0x2b9f6d[_0x5c9b7f['KXqXX']]=0x3]=_0x5c9b7f['KXqXX'];continue;case'3':_0x2b9f6d[_0x2b9f6d[_0x5c9b7f[_0x18955e(0x18e)]]=0x1]=_0x18955e(0x186);continue;case'4':_0x2b9f6d[_0x2b9f6d[_0x5c9b7f[_0x18955e(0x189)]]=0x4]=_0x5c9b7f[_0x18955e(0x189)];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 9deb42c9..a3a73bda 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -function _0x74e8(_0x409848,_0x147ff5){const _0x550150=_0x5501();return _0x74e8=function(_0x74e8ec,_0x114bde){_0x74e8ec=_0x74e8ec-0xc9;let _0x1ce0ec=_0x550150[_0x74e8ec];return _0x1ce0ec;},_0x74e8(_0x409848,_0x147ff5);}const _0x9764eb=_0x74e8;(function(_0x5a77c1,_0x66a1c8){const _0xa0074=_0x74e8,_0xcc5c0=_0x5a77c1();while(!![]){try{const _0x5cdc8e=parseInt(_0xa0074(0xe9))/0x1*(parseInt(_0xa0074(0x110))/0x2)+parseInt(_0xa0074(0xfe))/0x3+-parseInt(_0xa0074(0xcf))/0x4*(-parseInt(_0xa0074(0xf6))/0x5)+parseInt(_0xa0074(0xf0))/0x6*(-parseInt(_0xa0074(0xf4))/0x7)+-parseInt(_0xa0074(0x106))/0x8*(parseInt(_0xa0074(0x127))/0x9)+-parseInt(_0xa0074(0xdb))/0xa+-parseInt(_0xa0074(0xe0))/0xb*(-parseInt(_0xa0074(0xf2))/0xc);if(_0x5cdc8e===_0x66a1c8)break;else _0xcc5c0['push'](_0xcc5c0['shift']());}catch(_0x11ffd2){_0xcc5c0['push'](_0xcc5c0['shift']());}}}(_0x5501,0xef266));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x775ab1}from'node:fs';import _0x2266a2 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';function _0x5501(){const _0xc66152=['getImageSize','sep','BoNlP','join','Bot\x20Test','set','REPLY','aauBi','10535680eZftiB','ptt','Ori','dxfyB','notAt','5688716kgMJjv','[骰子]','fgLfS','find','string','[商城表情]','FACE','text','https://www.bilibili.com/','1PZWkZW','error','ynRCo','jyGyS','rps','reply','emoji','1258128SJNaBD','DoiYb','48xgKfal','sysface','14yYCtHg','oliar','3505bnLfbd','toString','dirname','ytfil','file','ARK','miniapp','TEXT','3285216Vyyfcw','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','DbWZm','获取视频封面失败,使用默认封面','fXIMs','AniStickerId','tidKM','copyFile','1277624ZmoLxS','stat','HcVts','PTT','FILE','vSksh','文件异常,大小为0','jpg','mp4','stringify','763634rCVFVm','PIC','AniStickerType','RPS','OOpfX','_0.png','markdown','https://tianquan.gtimg.cn/qqAIAgent/item/7/square.png','MFACE','pxRfx','Idezn','uploadFile','qEgEE','catch','pic','语音转换失败,\x20请检查语音文件是否正常','ark','get','[包剪锤]','unlink','mface','gPlVI','replace','90NmjIhM','width','acLun','NzmHd','VIDEO','then','wUzrI','tCFNI','dice','rcyiP','2876RKBsPs','LHYmG','lZAcH','face'];_0x5501=function(){return _0xc66152;};return _0x5501();}import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';import _0x4e186e from'./face_config.json';import*as _0xdbc921 from'node:path';import{SignMiniApp}from'../apis';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x9764eb(0xe7)](_0x3fec8d){const _0x4c6af1=_0x9764eb;return{'elementType':ElementType[_0x4c6af1(0xfd)],'elementId':'','textElement':{'content':_0x3fec8d,'atType':AtType[_0x4c6af1(0xdf)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x5185e5,_0x4d3c4c,_0xbbf0c,_0x5377c8){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x5377c8,'atType':_0xbbf0c,'atUid':_0x5185e5,'atTinyId':'','atNtUid':_0x4d3c4c}};}static[_0x9764eb(0xee)](_0x15a039,_0x14fb61,_0x34bf14,_0x1b3575){const _0xa73712=_0x9764eb;return{'elementType':ElementType[_0xa73712(0xd9)],'elementId':'','replyElement':{'replayMsgSeq':_0x15a039,'replayMsgId':_0x14fb61,'senderUin':_0x34bf14,'senderUinStr':_0x1b3575}};}static async[_0x9764eb(0x11e)](_0x18434a,_0x377bdf='',_0xcbba17=0x0){const _0x17ecef=_0x9764eb,_0x49ede6={'rcyiP':function(_0x484b9c,_0x3623c8){return _0x484b9c===_0x3623c8;},'MhCfh':_0x17ecef(0x10c)},{md5:_0x28a618,fileName:_0x476178,path:_0x1e3639,fileSize:_0x53a569}=await NTQQFileApi['uploadFile'](_0x18434a,ElementType[_0x17ecef(0x111)],_0xcbba17);if(_0x49ede6[_0x17ecef(0xce)](_0x53a569,0x0))throw _0x49ede6['MhCfh'];const _0x22f644=await NTQQFileApi[_0x17ecef(0xd3)](_0x18434a),_0x1cb702={'md5HexStr':_0x28a618,'fileSize':_0x53a569[_0x17ecef(0xf7)](),'picWidth':_0x22f644?.[_0x17ecef(0x128)],'picHeight':_0x22f644?.['height'],'fileName':_0x476178,'sourcePath':_0x1e3639,'original':!![],'picType':isGIF(_0x18434a)?PicType['gif']:PicType[_0x17ecef(0x10d)],'picSubType':_0xcbba17,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x377bdf};return{'elementType':ElementType[_0x17ecef(0x111)],'elementId':'','picElement':_0x1cb702};}static async[_0x9764eb(0xfa)](_0xbe6441,_0xc74bc9='',_0x556286=''){const _0x1b6264=_0x9764eb,_0x573d55={'fXIMs':function(_0x22fc30,_0x7d914e){return _0x22fc30===_0x7d914e;},'aauBi':'文件异常,大小为0','lZAcH':function(_0x57e2b5,_0x11442b){return _0x57e2b5||_0x11442b;}},{md5:_0x1b2202,fileName:_0x1353e6,path:_0x1a3032,fileSize:_0x302afb}=await NTQQFileApi[_0x1b6264(0x11b)](_0xbe6441,ElementType[_0x1b6264(0x10a)]);if(_0x573d55[_0x1b6264(0x102)](_0x302afb,0x0))throw _0x573d55[_0x1b6264(0xda)];const _0x281f07={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x573d55[_0x1b6264(0xd1)](_0xc74bc9,_0x1353e6),'folderId':_0x556286,'filePath':_0x1a3032,'fileSize':_0x302afb['toString']()}};return _0x281f07;}static async['video'](_0x41f854,_0x3f3771='',_0x1cd82a=''){const _0x14865f=_0x9764eb,_0x18192e={'dxfyB':function(_0x1a5d81,_0x15609d){return _0x1a5d81(_0x15609d);},'tidKM':function(_0x455d03,_0x40b9d2,_0x2a4639){return _0x455d03(_0x40b9d2,_0x2a4639);},'OOpfX':_0x14865f(0x101),'LHYmG':'end','gPlVI':_0x14865f(0xea),'vSksh':function(_0x42aca4,_0x28d8bf){return _0x42aca4+_0x28d8bf;},'BoNlP':'文件异常,大小为0','wUzrI':_0x14865f(0x10e),'HcVts':function(_0x5c4ed3,_0x1c6628,_0x4f310a){return _0x5c4ed3(_0x1c6628,_0x4f310a);},'NzmHd':'获取视频信息失败','fdOYV':function(_0x15c4ce,_0x35ea2a){return _0x15c4ce||_0x35ea2a;}},{fileName:_0x3fb994,path:_0x30fc32,fileSize:_0x105298,md5:_0x4a8084}=await NTQQFileApi['uploadFile'](_0x41f854,ElementType[_0x14865f(0xc9)]);if(_0x105298===0x0)throw _0x18192e[_0x14865f(0xd5)];let _0x3a1029=_0x30fc32[_0x14865f(0x126)](_0xdbc921['sep']+_0x14865f(0xdd)+_0xdbc921[_0x14865f(0xd4)],_0xdbc921[_0x14865f(0xd4)]+'Thumb'+_0xdbc921['sep']);_0x3a1029=_0xdbc921[_0x14865f(0xf8)](_0x3a1029);let _0x69f03d={'width':0x780,'height':0x438,'time':0xf,'format':_0x18192e[_0x14865f(0xcb)],'size':_0x105298,'filePath':_0x41f854};try{_0x69f03d=await _0x18192e[_0x14865f(0xde)](getVideoInfo,_0x30fc32);}catch(_0x1ab12e){_0x18192e[_0x14865f(0x108)](logError,_0x18192e[_0x14865f(0x12a)],_0x1ab12e);}const _0x1b466f=new Promise((_0x5b3ce7,_0x4c8870)=>{const _0x84ac2=_0x14865f,_0xac4a22={'fgLfS':function(_0x8374c,_0x44bb4c){const _0x1d261c=_0x74e8;return _0x18192e[_0x1d261c(0xde)](_0x8374c,_0x44bb4c);},'oliar':function(_0x30762a,_0x4b2f23,_0x391401){const _0x29b520=_0x74e8;return _0x18192e[_0x29b520(0x104)](_0x30762a,_0x4b2f23,_0x391401);},'zlnln':_0x18192e[_0x84ac2(0x114)]},_0x119c2c=_0x4a8084+_0x84ac2(0x115),_0x472b2b=_0xdbc921[_0x84ac2(0xd6)](_0x3a1029,_0x119c2c);_0x18192e[_0x84ac2(0xde)](_0x2266a2,_0x41f854)['on'](_0x18192e[_0x84ac2(0xd0)],()=>{})['on'](_0x18192e[_0x84ac2(0x125)],_0x1d841c=>{const _0x31189d=_0x84ac2,_0x31c808={'tCFNI':function(_0x1a99ab,_0x2972c8){const _0x4cb5a2=_0x74e8;return _0xac4a22[_0x4cb5a2(0xe2)](_0x1a99ab,_0x2972c8);}};_0xac4a22[_0x31189d(0xf5)](logDebug,_0xac4a22['zlnln'],_0x1d841c),_0x1cd82a?_0x775ab1[_0x31189d(0x105)](_0x1cd82a,_0x472b2b)[_0x31189d(0xca)](()=>{_0x5b3ce7(_0x472b2b);})[_0x31189d(0x11d)](_0x4c8870):_0x775ab1['writeFile'](_0x472b2b,defaultVideoThumb)['then'](()=>{const _0x307479=_0x31189d;_0x31c808[_0x307479(0xcc)](_0x5b3ce7,_0x472b2b);})[_0x31189d(0x11d)](_0x4c8870);})['screenshots']({'timestamps':[0x0],'filename':_0x119c2c,'folder':_0x3a1029,'size':_0x18192e[_0x84ac2(0x10b)](_0x18192e[_0x84ac2(0x10b)](_0x69f03d[_0x84ac2(0x128)],'x'),_0x69f03d['height'])})['on'](_0x18192e[_0x84ac2(0xd0)],()=>{_0xac4a22['fgLfS'](_0x5b3ce7,_0x472b2b);});}),_0x26b2e2=new Map(),_0x1992ab=await _0x1b466f,_0x142459=(await _0x775ab1[_0x14865f(0x107)](_0x1992ab))['size'];_0x26b2e2[_0x14865f(0xd8)](0x0,_0x1992ab);const _0x2a3aa7=await calculateFileMD5(_0x1992ab),_0x32e87a={'elementType':ElementType[_0x14865f(0xc9)],'elementId':'','videoElement':{'fileName':_0x18192e['fdOYV'](_0x3f3771,_0x3fb994),'filePath':_0x30fc32,'videoMd5':_0x4a8084,'thumbMd5':_0x2a3aa7,'fileTime':_0x69f03d['time'],'thumbPath':_0x26b2e2,'thumbSize':_0x142459,'thumbWidth':_0x69f03d[_0x14865f(0x128)],'thumbHeight':_0x69f03d['height'],'fileSize':_0x18192e['vSksh']('',_0x105298)}};return _0x32e87a;}static async[_0x9764eb(0xdc)](_0x46a433){const _0x552394=_0x9764eb,_0x4bc506={'pxRfx':function(_0x4c210c,_0x5170cd){return _0x4c210c(_0x5170cd);},'jyGyS':function(_0x467b41,_0x5b8465){return _0x467b41===_0x5b8465;},'ytfil':_0x552394(0x10c),'ZEAkb':function(_0x1f0b0e,_0x31fe7c){return _0x1f0b0e||_0x31fe7c;}},{converted:_0x1f2517,path:_0x522097,duration:_0x8c6046}=await _0x4bc506[_0x552394(0x119)](encodeSilk,_0x46a433);if(!_0x522097)throw _0x552394(0x11f);const {md5:_0x34914e,fileName:_0x26a6e3,path:_0x517321,fileSize:_0x86c922}=await NTQQFileApi['uploadFile'](_0x522097,ElementType[_0x552394(0x109)]);if(_0x4bc506[_0x552394(0xec)](_0x86c922,0x0))throw _0x4bc506[_0x552394(0xf9)];return _0x1f2517&&_0x775ab1[_0x552394(0x123)](_0x522097)[_0x552394(0xca)](),{'elementType':ElementType[_0x552394(0x109)],'elementId':'','pttElement':{'fileName':_0x26a6e3,'filePath':_0x517321,'md5HexStr':_0x34914e,'fileSize':_0x86c922,'duration':_0x4bc506['ZEAkb'](_0x8c6046,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[_0x9764eb(0xd2)](_0x2f78f9){const _0x35e02e=_0x9764eb,_0x3a92c2={'SpVys':function(_0x4821c2,_0x16d157){return _0x4821c2>=_0x16d157;}},_0x116fc8=_0x4e186e[_0x35e02e(0xf3)],_0x35a058=_0x4e186e[_0x35e02e(0xef)],_0x45f5d5=_0x116fc8[_0x35e02e(0xe3)](_0x211993=>_0x211993['QSid']===_0x2f78f9[_0x35e02e(0xf7)]());_0x2f78f9=parseInt(_0x2f78f9['toString']());let _0xb85a76=0x1;return _0x3a92c2['SpVys'](_0x2f78f9,0xde)&&(_0xb85a76=0x2),_0x45f5d5[_0x35e02e(0x112)]&&(_0xb85a76=0x3),{'elementType':ElementType[_0x35e02e(0xe6)],'elementId':'','faceElement':{'faceIndex':_0x2f78f9,'faceType':_0xb85a76,'faceText':_0x45f5d5['QDes'],'stickerId':_0x45f5d5[_0x35e02e(0x103)],'stickerType':_0x45f5d5['AniStickerType'],'packId':_0x45f5d5['AniStickerPackId'],'sourceType':0x1}};}static[_0x9764eb(0x124)](_0x1e24e7,_0x2357a9,_0x1bd2b6,_0x2227f5){const _0x100037=_0x9764eb,_0x254c18={'uIcSX':_0x100037(0xe5)};return{'elementType':ElementType[_0x100037(0x118)],'marketFaceElement':{'emojiPackageId':_0x1e24e7,'emojiId':_0x2357a9,'key':_0x1bd2b6,'faceName':_0x2227f5||mFaceCache[_0x100037(0x121)](_0x2357a9)||_0x254c18['uIcSX']}};}static[_0x9764eb(0xcd)](_0xaf2264){const _0x40b36d=_0x9764eb,_0x150056={'ynRCo':_0x40b36d(0xe1)};return{'elementType':ElementType[_0x40b36d(0xe6)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x40b36d(0xcd)],'faceType':FaceType[_0x40b36d(0xcd)],'faceText':_0x150056[_0x40b36d(0xeb)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x9764eb(0xed)](_0x49a607){const _0x56b0c6=_0x9764eb,_0x4ff91f={'WZBGF':_0x56b0c6(0x122)};return{'elementType':ElementType[_0x56b0c6(0xe6)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x56b0c6(0x113)],'faceText':_0x4ff91f['WZBGF'],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x9764eb(0x120)](_0x4f874c){const _0x4bf1d5=_0x9764eb,_0x3fbf69={'qEgEE':function(_0x22ff92,_0x456a82){return _0x22ff92!==_0x456a82;}};return _0x3fbf69[_0x4bf1d5(0x11c)](typeof _0x4f874c,_0x4bf1d5(0xe4))&&(_0x4f874c=JSON[_0x4bf1d5(0x10f)](_0x4f874c)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x4f874c,'linkInfo':null,'subElementType':null}};}static[_0x9764eb(0x116)](_0xa97603){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0xa97603}};}static async[_0x9764eb(0xfc)](){const _0x502ed3=_0x9764eb,_0x2e994c={'acLun':function(_0x30c71b,_0x37a826){return _0x30c71b(_0x37a826);},'DoiYb':_0x502ed3(0xd7),'DbWZm':_0x502ed3(0x117),'Idezn':'https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png'};let _0x4f3099=await _0x2e994c[_0x502ed3(0x129)](SignMiniApp,{'prompt':_0x2e994c[_0x502ed3(0xf1)],'title':_0x2e994c['DoiYb'],'preview':_0x2e994c[_0x502ed3(0x100)],'jumpUrl':_0x502ed3(0xe8),'tag':_0x502ed3(0xd7),'tagIcon':_0x2e994c[_0x502ed3(0x11a)],'source':_0x2e994c[_0x502ed3(0xf1)],'sourcelogo':_0x502ed3(0xff)});return{'elementType':ElementType[_0x502ed3(0xfb)],'elementId':'','arkElement':{'bytesData':_0x4f3099,'linkInfo':null,'subElementType':null}};}} \ No newline at end of file +function _0x188f(){const _0x4493d7=['uzqZR','fgjkN','reply','xDjTp','12796VdFjhm','time','ARK','https://tianquan.gtimg.cn/qqAIAgent/item/7/square.png','4moyFRi','IRADt','stat','ZPuUB','atXme','Zojdo','RPS','347104wHJEfM','AniStickerId','_0.png','1524heSjLI','dice','2139300sZrFDQ','FACE','eUuac','get','toString','语音转换失败,\x20请检查语音文件是否正常','VIDEO','Ljyai','gif','zZlDY','join','PTT','error','PIC','QDes','ASlzv','获取视频封面失败,使用默认封面','AniStickerType','face','FILE','then','[包剪锤]','Imsyd','notAt','KYvug','markdown','HGFYi','文件异常,大小为0','6600995DiGyJn','find','ark','QSid','MFvMz','Ori','获取视频信息失败','50PyjIhl','QDtSX','RaXPx','NKKev','Bot\x20Test','TEXT','sep','uploadFile','[骰子]','iOaYk','397242TjnwSZ','rps','tlRVg','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','woelX','UCbfo','miniapp','catch','REPLY','height','1435104RLpDDH','ZBOUd','writeFile','copyFile','size','[商城表情]','SozIj','end','Thumb','SaBTD','width','unlink','getImageSize','video','emoji','625691knkJUH','stringify','ptt','MFACE','AniStickerPackId','wspzi','mbNNi','XIyoG'];_0x188f=function(){return _0x4493d7;};return _0x188f();}const _0x10115a=_0x4d3c;(function(_0x353455,_0x5200e6){const _0x58a152=_0x4d3c,_0x5e64eb=_0x353455();while(!![]){try{const _0x516885=-parseInt(_0x58a152(0x14f))/0x1+-parseInt(_0x58a152(0x166))/0x2+-parseInt(_0x58a152(0x16b))/0x3+-parseInt(_0x58a152(0x15f))/0x4*(-parseInt(_0x58a152(0x187))/0x5)+-parseInt(_0x58a152(0x169))/0x6*(-parseInt(_0x58a152(0x15b))/0x7)+parseInt(_0x58a152(0x140))/0x8+-parseInt(_0x58a152(0x136))/0x9*(-parseInt(_0x58a152(0x18e))/0xa);if(_0x516885===_0x5200e6)break;else _0x5e64eb['push'](_0x5e64eb['shift']());}catch(_0x2589f2){_0x5e64eb['push'](_0x5e64eb['shift']());}}}(_0x188f,0xa41f6));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x454880}from'node:fs';import _0x1bb051 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';import _0x34f3e3 from'./face_config.json';import*as _0x124c5f from'node:path';import{SignMiniApp}from'../apis';function _0x4d3c(_0x1a8a77,_0x4bc318){const _0x188fd7=_0x188f();return _0x4d3c=function(_0x4d3c54,_0x1d6509){_0x4d3c54=_0x4d3c54-0x135;let _0xe3db31=_0x188fd7[_0x4d3c54];return _0xe3db31;},_0x4d3c(_0x1a8a77,_0x4bc318);}export const mFaceCache=new Map();export class SendMsgElementConstructor{static['text'](_0x2cd0c5){const _0x2d7280=_0x4d3c;return{'elementType':ElementType[_0x2d7280(0x193)],'elementId':'','textElement':{'content':_0x2cd0c5,'atType':AtType[_0x2d7280(0x182)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x48d4c1,_0x3549e6,_0x4fc4ae,_0x4b9a99){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x4b9a99,'atType':_0x4fc4ae,'atUid':_0x48d4c1,'atTinyId':'','atNtUid':_0x3549e6}};}static[_0x10115a(0x159)](_0x5bcb92,_0x375345,_0x19d27d,_0x4a8b83){const _0x1de126=_0x10115a;return{'elementType':ElementType[_0x1de126(0x13e)],'elementId':'','replyElement':{'replayMsgSeq':_0x5bcb92,'replayMsgId':_0x375345,'senderUin':_0x19d27d,'senderUinStr':_0x4a8b83}};}static async['pic'](_0x326f64,_0x24f6cb='',_0x51ad7=0x0){const _0x317cfd=_0x10115a,_0x5f5bb2={'KYvug':function(_0x189953,_0x1b3af2){return _0x189953===_0x1b3af2;},'ZBOUd':_0x317cfd(0x186),'Imsyd':function(_0x179a94,_0x7b4391){return _0x179a94(_0x7b4391);}},{md5:_0x2edebf,fileName:_0x30782e,path:_0x4d826d,fileSize:_0x3264f5}=await NTQQFileApi['uploadFile'](_0x326f64,ElementType[_0x317cfd(0x178)],_0x51ad7);if(_0x5f5bb2[_0x317cfd(0x183)](_0x3264f5,0x0))throw _0x5f5bb2[_0x317cfd(0x141)];const _0x3824cf=await NTQQFileApi[_0x317cfd(0x14c)](_0x326f64),_0x263f48={'md5HexStr':_0x2edebf,'fileSize':_0x3264f5[_0x317cfd(0x16f)](),'picWidth':_0x3824cf?.['width'],'picHeight':_0x3824cf?.[_0x317cfd(0x13f)],'fileName':_0x30782e,'sourcePath':_0x4d826d,'original':!![],'picType':_0x5f5bb2[_0x317cfd(0x181)](isGIF,_0x326f64)?PicType[_0x317cfd(0x173)]:PicType['jpg'],'picSubType':_0x51ad7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x24f6cb};return{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x263f48};}static async['file'](_0x42d5c6,_0xcf3828='',_0x3072b9=''){const _0x706264=_0x10115a,_0x3af377={'fgjkN':function(_0x2ea247,_0x595dec){return _0x2ea247===_0x595dec;},'Ljyai':_0x706264(0x186),'QDtSX':function(_0x2a4433,_0x5dc7d3){return _0x2a4433||_0x5dc7d3;}},{md5:_0x30fc80,fileName:_0x445404,path:_0x2085f9,fileSize:_0x5cdf86}=await NTQQFileApi['uploadFile'](_0x42d5c6,ElementType[_0x706264(0x17e)]);if(_0x3af377[_0x706264(0x158)](_0x5cdf86,0x0))throw _0x3af377[_0x706264(0x172)];const _0x54fb15={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x3af377[_0x706264(0x18f)](_0xcf3828,_0x445404),'folderId':_0x3072b9,'filePath':_0x2085f9,'fileSize':_0x5cdf86[_0x706264(0x16f)]()}};return _0x54fb15;}static async[_0x10115a(0x14d)](_0x14d0b8,_0x5d2aa0='',_0xfe750=''){const _0x25d344=_0x10115a,_0x44c5f6={'tlRVg':function(_0x304255,_0x5025b0){return _0x304255(_0x5025b0);},'IRADt':function(_0x4ad688,_0x3b9df1){return _0x4ad688(_0x3b9df1);},'HGFYi':function(_0xd2e034,_0x13b1d9,_0x3dee7b){return _0xd2e034(_0x13b1d9,_0x3dee7b);},'ZPuUB':_0x25d344(0x17b),'Zojdo':function(_0x4ba679,_0x4ed3ef){return _0x4ba679+_0x4ed3ef;},'iOaYk':_0x25d344(0x147),'zZlDY':function(_0xfc18f8,_0x1b77c5){return _0xfc18f8===_0x1b77c5;},'uzqZR':_0x25d344(0x186),'ZokDU':'mp4','hXqDh':_0x25d344(0x18d),'wspzi':function(_0x504ff3,_0x4afa37){return _0x504ff3||_0x4afa37;}},{fileName:_0x56fc2a,path:_0x4ea91f,fileSize:_0x83cb8d,md5:_0x9b8b66}=await NTQQFileApi[_0x25d344(0x195)](_0x14d0b8,ElementType[_0x25d344(0x171)]);if(_0x44c5f6[_0x25d344(0x174)](_0x83cb8d,0x0))throw _0x44c5f6[_0x25d344(0x157)];let _0x21d354=_0x4ea91f['replace'](_0x124c5f[_0x25d344(0x194)]+_0x25d344(0x18c)+_0x124c5f[_0x25d344(0x194)],_0x124c5f[_0x25d344(0x194)]+_0x25d344(0x148)+_0x124c5f[_0x25d344(0x194)]);_0x21d354=_0x124c5f['dirname'](_0x21d354);let _0xeeead1={'width':0x780,'height':0x438,'time':0xf,'format':_0x44c5f6['ZokDU'],'size':_0x83cb8d,'filePath':_0x14d0b8};try{_0xeeead1=await _0x44c5f6['tlRVg'](getVideoInfo,_0x4ea91f);}catch(_0x37429b){logError(_0x44c5f6['hXqDh'],_0x37429b);}const _0x42eb78=new Promise((_0x56acc9,_0x30e94f)=>{const _0x16d942=_0x25d344,_0x211f0f={'MFvMz':function(_0x23f3ad,_0x22c179){return _0x23f3ad(_0x22c179);},'mbNNi':function(_0x44cdd1,_0x2722b4){const _0x283627=_0x4d3c;return _0x44c5f6[_0x283627(0x160)](_0x44cdd1,_0x2722b4);},'NKKev':function(_0x33db8c,_0x5d720b,_0x5c456e){const _0x2d6f70=_0x4d3c;return _0x44c5f6[_0x2d6f70(0x185)](_0x33db8c,_0x5d720b,_0x5c456e);},'xDjTp':_0x44c5f6[_0x16d942(0x162)]},_0x405d37=_0x9b8b66+_0x16d942(0x168),_0x3c4e33=_0x124c5f[_0x16d942(0x175)](_0x21d354,_0x405d37);_0x44c5f6[_0x16d942(0x160)](_0x1bb051,_0x14d0b8)['on'](_0x16d942(0x147),()=>{})['on'](_0x16d942(0x177),_0x1e0007=>{const _0x1d75ae=_0x16d942,_0x1c974d={'woelX':function(_0x48b23f,_0x50118d){const _0x25de48=_0x4d3c;return _0x211f0f[_0x25de48(0x155)](_0x48b23f,_0x50118d);}};_0x211f0f[_0x1d75ae(0x191)](logDebug,_0x211f0f[_0x1d75ae(0x15a)],_0x1e0007),_0xfe750?_0x454880[_0x1d75ae(0x143)](_0xfe750,_0x3c4e33)[_0x1d75ae(0x17f)](()=>{const _0x1f68de=_0x1d75ae;_0x1c974d[_0x1f68de(0x13a)](_0x56acc9,_0x3c4e33);})[_0x1d75ae(0x13d)](_0x30e94f):_0x454880[_0x1d75ae(0x142)](_0x3c4e33,defaultVideoThumb)['then'](()=>{const _0x4fdf8e=_0x1d75ae;_0x211f0f[_0x4fdf8e(0x18b)](_0x56acc9,_0x3c4e33);})['catch'](_0x30e94f);})['screenshots']({'timestamps':[0x0],'filename':_0x405d37,'folder':_0x21d354,'size':_0x44c5f6[_0x16d942(0x164)](_0x44c5f6['Zojdo'](_0xeeead1[_0x16d942(0x14a)],'x'),_0xeeead1[_0x16d942(0x13f)])})['on'](_0x44c5f6[_0x16d942(0x135)],()=>{const _0x5a4ffe=_0x16d942;_0x44c5f6[_0x5a4ffe(0x138)](_0x56acc9,_0x3c4e33);});}),_0x583c79=new Map(),_0x519d72=await _0x42eb78,_0x1a0b94=(await _0x454880[_0x25d344(0x161)](_0x519d72))[_0x25d344(0x144)];_0x583c79['set'](0x0,_0x519d72);const _0x6c3c33=await _0x44c5f6[_0x25d344(0x138)](calculateFileMD5,_0x519d72),_0x2e1008={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x44c5f6[_0x25d344(0x154)](_0x5d2aa0,_0x56fc2a),'filePath':_0x4ea91f,'videoMd5':_0x9b8b66,'thumbMd5':_0x6c3c33,'fileTime':_0xeeead1[_0x25d344(0x15c)],'thumbPath':_0x583c79,'thumbSize':_0x1a0b94,'thumbWidth':_0xeeead1[_0x25d344(0x14a)],'thumbHeight':_0xeeead1[_0x25d344(0x13f)],'fileSize':_0x44c5f6[_0x25d344(0x164)]('',_0x83cb8d)}};return _0x2e1008;}static async[_0x10115a(0x151)](_0x2d4688){const _0x22b721=_0x10115a,_0x1e0f5c={'XIyoG':function(_0x5e7176,_0x3ad446){return _0x5e7176(_0x3ad446);},'SaBTD':_0x22b721(0x170),'uGizG':function(_0x377c4e,_0x370882){return _0x377c4e===_0x370882;},'DHdJL':_0x22b721(0x186),'ASlzv':function(_0x44feba,_0x38ab78){return _0x44feba||_0x38ab78;}},{converted:_0x43275d,path:_0x1c2719,duration:_0x1f5405}=await _0x1e0f5c[_0x22b721(0x156)](encodeSilk,_0x2d4688);if(!_0x1c2719)throw _0x1e0f5c[_0x22b721(0x149)];const {md5:_0x3e9f9a,fileName:_0x1b630c,path:_0x5d41f4,fileSize:_0x335434}=await NTQQFileApi[_0x22b721(0x195)](_0x1c2719,ElementType[_0x22b721(0x176)]);if(_0x1e0f5c['uGizG'](_0x335434,0x0))throw _0x1e0f5c['DHdJL'];return _0x43275d&&_0x454880[_0x22b721(0x14b)](_0x1c2719)[_0x22b721(0x17f)](),{'elementType':ElementType[_0x22b721(0x176)],'elementId':'','pttElement':{'fileName':_0x1b630c,'filePath':_0x5d41f4,'md5HexStr':_0x3e9f9a,'fileSize':_0x335434,'duration':_0x1e0f5c[_0x22b721(0x17a)](_0x1f5405,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[_0x10115a(0x17d)](_0x1eefb6){const _0x232d3c=_0x10115a,_0x549a68={'zPVCN':function(_0x506ab5,_0x3ac508){return _0x506ab5(_0x3ac508);},'ohMvT':function(_0xdae10f,_0x57040b){return _0xdae10f>=_0x57040b;}},_0x2cccef=_0x34f3e3['sysface'],_0x114d53=_0x34f3e3[_0x232d3c(0x14e)],_0x4c388b=_0x2cccef[_0x232d3c(0x188)](_0x506aae=>_0x506aae[_0x232d3c(0x18a)]===_0x1eefb6[_0x232d3c(0x16f)]());_0x1eefb6=_0x549a68['zPVCN'](parseInt,_0x1eefb6[_0x232d3c(0x16f)]());let _0x23c038=0x1;return _0x549a68['ohMvT'](_0x1eefb6,0xde)&&(_0x23c038=0x2),_0x4c388b[_0x232d3c(0x17c)]&&(_0x23c038=0x3),{'elementType':ElementType[_0x232d3c(0x16c)],'elementId':'','faceElement':{'faceIndex':_0x1eefb6,'faceType':_0x23c038,'faceText':_0x4c388b[_0x232d3c(0x179)],'stickerId':_0x4c388b[_0x232d3c(0x167)],'stickerType':_0x4c388b['AniStickerType'],'packId':_0x4c388b[_0x232d3c(0x153)],'sourceType':0x1}};}static['mface'](_0x3f4d33,_0x1338ee,_0x53e05f,_0x472620){const _0x148dcc=_0x10115a,_0x470c77={'atXme':_0x148dcc(0x145)};return{'elementType':ElementType[_0x148dcc(0x152)],'marketFaceElement':{'emojiPackageId':_0x3f4d33,'emojiId':_0x1338ee,'key':_0x53e05f,'faceName':_0x472620||mFaceCache[_0x148dcc(0x16e)](_0x1338ee)||_0x470c77[_0x148dcc(0x163)]}};}static['dice'](_0x16a01e){const _0x1a623d=_0x10115a,_0x34b65c={'eUuac':_0x1a623d(0x196)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1a623d(0x16a)],'faceType':FaceType[_0x1a623d(0x16a)],'faceText':_0x34b65c[_0x1a623d(0x16d)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x10115a(0x137)](_0x5bd076){const _0x390be9=_0x10115a,_0x41a65c={'SozIj':_0x390be9(0x180)};return{'elementType':ElementType[_0x390be9(0x16c)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x390be9(0x165)],'faceText':_0x41a65c[_0x390be9(0x146)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x10115a(0x189)](_0x370416){const _0x8fc172=_0x10115a,_0x1f5df9={'iwNJY':function(_0x1442f5,_0x5aaf1d){return _0x1442f5!==_0x5aaf1d;},'FicKz':'string'};return _0x1f5df9['iwNJY'](typeof _0x370416,_0x1f5df9['FicKz'])&&(_0x370416=JSON[_0x8fc172(0x150)](_0x370416)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x370416,'linkInfo':null,'subElementType':null}};}static[_0x10115a(0x184)](_0x308d92){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x308d92}};}static async[_0x10115a(0x13c)](){const _0x4f7866=_0x10115a,_0x977c96={'YmXfp':function(_0x4b2954,_0x4e87a7){return _0x4b2954(_0x4e87a7);},'RaXPx':_0x4f7866(0x192),'UUTBB':_0x4f7866(0x15e),'HkwpO':'https://www.bilibili.com/','UCbfo':_0x4f7866(0x139)};let _0x1c3c5c=await _0x977c96['YmXfp'](SignMiniApp,{'prompt':_0x977c96[_0x4f7866(0x190)],'title':_0x977c96[_0x4f7866(0x190)],'preview':_0x977c96['UUTBB'],'jumpUrl':_0x977c96['HkwpO'],'tag':_0x4f7866(0x192),'tagIcon':_0x977c96[_0x4f7866(0x13b)],'source':_0x977c96[_0x4f7866(0x190)],'sourcelogo':_0x977c96[_0x4f7866(0x13b)]});return{'elementType':ElementType[_0x4f7866(0x15d)],'elementId':'','arkElement':{'bytesData':_0x1c3c5c,'linkInfo':null,'subElementType':null}};}} \ 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 391e5d91..907ce671 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x5cea7d,_0x3780ef){var _0x3f3cae=_0x3e14,_0x240696=_0x5cea7d();while(!![]){try{var _0x29f7cb=-parseInt(_0x3f3cae(0x1d5))/0x1+parseInt(_0x3f3cae(0x1d1))/0x2*(-parseInt(_0x3f3cae(0x1d2))/0x3)+parseInt(_0x3f3cae(0x1d3))/0x4*(parseInt(_0x3f3cae(0x1cb))/0x5)+parseInt(_0x3f3cae(0x1d7))/0x6*(parseInt(_0x3f3cae(0x1d9))/0x7)+parseInt(_0x3f3cae(0x1d4))/0x8*(-parseInt(_0x3f3cae(0x1c9))/0x9)+-parseInt(_0x3f3cae(0x1ca))/0xa+parseInt(_0x3f3cae(0x1cd))/0xb;if(_0x29f7cb===_0x3780ef)break;else _0x240696['push'](_0x240696['shift']());}catch(_0x3307bd){_0x240696['push'](_0x240696['shift']());}}}(_0x2fa1,0x8f0eb));function _0x3e14(_0x4bc52a,_0x1ccb05){var _0x2fa16c=_0x2fa1();return _0x3e14=function(_0x3e14ce,_0x586e30){_0x3e14ce=_0x3e14ce-0x1c9;var _0x44bdcb=_0x2fa16c[_0x3e14ce];return _0x44bdcb;},_0x3e14(_0x4bc52a,_0x1ccb05);}export var GroupMemberRole;function _0x2fa1(){var _0x1073ef=['3kSxGkV','9244pdOUgU','1536oXHVVJ','667847cHkSLE','zVTou','378rJulnI','normal','10801MWhscm','41112LvJCMr','9031120FUvqtH','185ehRkal','admin','33377861uIMIeJ','owner','KpsWZ','nstcS','366178CtSkpi'];_0x2fa1=function(){return _0x1073ef;};return _0x2fa1();}(function(_0xc3b2f0){var _0xa2d1b6=_0x3e14,_0x41bfcf={'nstcS':_0xa2d1b6(0x1d8),'KpsWZ':'admin','zVTou':_0xa2d1b6(0x1ce)};_0xc3b2f0[_0xc3b2f0[_0x41bfcf[_0xa2d1b6(0x1d0)]]=0x2]=_0x41bfcf[_0xa2d1b6(0x1d0)],_0xc3b2f0[_0xc3b2f0[_0x41bfcf[_0xa2d1b6(0x1cf)]]=0x3]=_0xa2d1b6(0x1cc),_0xc3b2f0[_0xc3b2f0[_0xa2d1b6(0x1ce)]=0x4]=_0x41bfcf[_0xa2d1b6(0x1d6)];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +function _0xfe4f(){var _0x22563a=['4674344BzCoGA','normal','1726923XgzrOb','930tRRaAc','108684uWMSuA','2880294kCmpnS','895588SNcOVf','10PjCGul','18boBsDG','admin','1738494rWhaLG','1126141AICXmT','7oBwZxm'];_0xfe4f=function(){return _0x22563a;};return _0xfe4f();}function _0x468d(_0x38a3a0,_0x3ed8b9){var _0xfe4fbf=_0xfe4f();return _0x468d=function(_0x468d66,_0x615a1d){_0x468d66=_0x468d66-0x1c7;var _0x10ed28=_0xfe4fbf[_0x468d66];return _0x10ed28;},_0x468d(_0x38a3a0,_0x3ed8b9);}(function(_0x3c123b,_0x23e233){var _0x44d14d=_0x468d,_0x3bc2c7=_0x3c123b();while(!![]){try{var _0x70698=parseInt(_0x44d14d(0x1ce))/0x1+parseInt(_0x44d14d(0x1cd))/0x2+parseInt(_0x44d14d(0x1cb))/0x3*(parseInt(_0x44d14d(0x1c9))/0x4)+parseInt(_0x44d14d(0x1ca))/0x5*(-parseInt(_0x44d14d(0x1c8))/0x6)+-parseInt(_0x44d14d(0x1cf))/0x7*(parseInt(_0x44d14d(0x1d0))/0x8)+-parseInt(_0x44d14d(0x1c7))/0x9*(parseInt(_0x44d14d(0x1d3))/0xa)+parseInt(_0x44d14d(0x1d2))/0xb;if(_0x70698===_0x23e233)break;else _0x3bc2c7['push'](_0x3bc2c7['shift']());}catch(_0x3b1227){_0x3bc2c7['push'](_0x3bc2c7['shift']());}}}(_0xfe4f,0xca390));export var GroupMemberRole;(function(_0x13eed0){var _0x3be934=_0x468d,_0x2818c5={'UcHmz':_0x3be934(0x1d1),'KWBFj':_0x3be934(0x1cc),'RQBHk':'owner'};_0x13eed0[_0x13eed0[_0x2818c5['UcHmz']]=0x2]='normal',_0x13eed0[_0x13eed0[_0x2818c5['KWBFj']]=0x3]=_0x2818c5['KWBFj'],_0x13eed0[_0x13eed0[_0x2818c5['RQBHk']]=0x4]=_0x2818c5['RQBHk'];}(GroupMemberRole||(GroupMemberRole={}))); \ 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 5181aa09..2a7bbc58 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x2f3d80,_0x5e2c40){var _0x1e9cc0=_0x49ac,_0x256817=_0x2f3d80();while(!![]){try{var _0x20c16a=-parseInt(_0x1e9cc0(0x137))/0x1*(-parseInt(_0x1e9cc0(0x134))/0x2)+-parseInt(_0x1e9cc0(0x130))/0x3*(-parseInt(_0x1e9cc0(0x132))/0x4)+parseInt(_0x1e9cc0(0x131))/0x5*(-parseInt(_0x1e9cc0(0x139))/0x6)+parseInt(_0x1e9cc0(0x133))/0x7+parseInt(_0x1e9cc0(0x138))/0x8+parseInt(_0x1e9cc0(0x12f))/0x9+parseInt(_0x1e9cc0(0x136))/0xa*(-parseInt(_0x1e9cc0(0x135))/0xb);if(_0x20c16a===_0x5e2c40)break;else _0x256817['push'](_0x256817['shift']());}catch(_0x48d495){_0x256817['push'](_0x256817['shift']());}}}(_0x11f3,0x8930c));export*from'./user';export*from'./group';function _0x11f3(){var _0x3c7b3a=['4939730aJzutA','181520vBdkvb','8548984oPtrRp','42YCKroo','7846002HqqhMb','3GMVmSV','46615SAJfgJ','956924jibyfN','1339422NvAFsC','8NgNzOW','55JYhmYJ'];_0x11f3=function(){return _0x3c7b3a;};return _0x11f3();}export*from'./msg';export*from'./notify';function _0x49ac(_0x45c297,_0x3aa09b){var _0x11f380=_0x11f3();return _0x49ac=function(_0x49aca0,_0xb40376){_0x49aca0=_0x49aca0-0x12f;var _0x543c4e=_0x11f380[_0x49aca0];return _0x543c4e;},_0x49ac(_0x45c297,_0x3aa09b);}export*from'./cache';export*from'./constructor'; \ No newline at end of file +function _0x14bc(){var _0x4f49b1=['40684Mxiqpd','885170fQcQyB','274AUVjnY','1224nzbFan','317043yUpRIR','1156736YNRhjK','977607RkiKna','1281972Nmxudk','424UFlGox'];_0x14bc=function(){return _0x4f49b1;};return _0x14bc();}(function(_0x1e121e,_0x4f001d){var _0x1cfe2d=_0x4473,_0x5e4046=_0x1e121e();while(!![]){try{var _0x20ea89=parseInt(_0x1cfe2d(0x14a))/0x1*(-parseInt(_0x1cfe2d(0x149))/0x2)+-parseInt(_0x1cfe2d(0x14b))/0x3+parseInt(_0x1cfe2d(0x14c))/0x4+parseInt(_0x1cfe2d(0x148))/0x5+parseInt(_0x1cfe2d(0x14e))/0x6+-parseInt(_0x1cfe2d(0x147))/0x7*(parseInt(_0x1cfe2d(0x14f))/0x8)+parseInt(_0x1cfe2d(0x14d))/0x9;if(_0x20ea89===_0x4f001d)break;else _0x5e4046['push'](_0x5e4046['shift']());}catch(_0x4fa7ec){_0x5e4046['push'](_0x5e4046['shift']());}}}(_0x14bc,0x328fa));export*from'./user';export*from'./group';export*from'./msg';function _0x4473(_0x5d5188,_0x1b3cfb){var _0x14bc48=_0x14bc();return _0x4473=function(_0x4473d4,_0x1230a6){_0x4473d4=_0x4473d4-0x147;var _0x34458e=_0x14bc48[_0x4473d4];return _0x34458e;},_0x4473(_0x5d5188,_0x1b3cfb);}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 9dcb7a5b..cf5004ef 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x4e0d98=_0x3955;(function(_0x29835f,_0x51d6a5){var _0xe92ae6=_0x3955,_0x515184=_0x29835f();while(!![]){try{var _0x2a34a2=-parseInt(_0xe92ae6(0x125))/0x1+parseInt(_0xe92ae6(0x120))/0x2+parseInt(_0xe92ae6(0x13f))/0x3*(parseInt(_0xe92ae6(0x14c))/0x4)+-parseInt(_0xe92ae6(0x12e))/0x5+parseInt(_0xe92ae6(0x13a))/0x6+parseInt(_0xe92ae6(0x137))/0x7*(parseInt(_0xe92ae6(0x12d))/0x8)+parseInt(_0xe92ae6(0x14a))/0x9;if(_0x2a34a2===_0x51d6a5)break;else _0x515184['push'](_0x515184['shift']());}catch(_0x2a4de4){_0x515184['push'](_0x515184['shift']());}}}(_0x4251,0x5c481));export var ElementType;(function(_0x1f9fe6){var _0x5512ac=_0x3955,_0x2b281e={'NCaci':'8|7|3|2|0|1|6|9|4|5','OyDat':_0x5512ac(0x132),'IRZad':'FACE','AtYSW':_0x5512ac(0x153),'vKPbF':'FILE','qtQMU':_0x5512ac(0x145),'gjHZf':_0x5512ac(0x152),'mLmOt':_0x5512ac(0x13b),'zunKI':_0x5512ac(0x157)},_0x3c83f9=_0x2b281e['NCaci']['split']('|'),_0x10d29b=0x0;while(!![]){switch(_0x3c83f9[_0x10d29b++]){case'0':_0x1f9fe6[_0x1f9fe6[_0x2b281e[_0x5512ac(0x140)]]=0x5]=_0x2b281e[_0x5512ac(0x140)];continue;case'1':_0x1f9fe6[_0x1f9fe6[_0x2b281e['IRZad']]=0x6]=_0x2b281e[_0x5512ac(0x143)];continue;case'2':_0x1f9fe6[_0x1f9fe6['PTT']=0x4]=_0x2b281e[_0x5512ac(0x159)];continue;case'3':_0x1f9fe6[_0x1f9fe6[_0x2b281e[_0x5512ac(0x129)]]=0x3]=_0x2b281e[_0x5512ac(0x129)];continue;case'4':_0x1f9fe6[_0x1f9fe6[_0x2b281e[_0x5512ac(0x134)]]=0xb]=_0x2b281e['qtQMU'];continue;case'5':_0x1f9fe6[_0x1f9fe6[_0x5512ac(0x148)]=0xe]=_0x5512ac(0x148);continue;case'6':_0x1f9fe6[_0x1f9fe6[_0x5512ac(0x151)]=0x7]=_0x5512ac(0x151);continue;case'7':_0x1f9fe6[_0x1f9fe6[_0x5512ac(0x152)]=0x2]=_0x2b281e[_0x5512ac(0x13d)];continue;case'8':_0x1f9fe6[_0x1f9fe6[_0x2b281e['mLmOt']]=0x1]=_0x2b281e[_0x5512ac(0x123)];continue;case'9':_0x1f9fe6[_0x1f9fe6[_0x2b281e[_0x5512ac(0x13e)]]=0xa]=_0x5512ac(0x157);continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x5eca64){var _0x1251d3=_0x3955,_0x4bdb11={'hnCJw':'gif','PfZnF':_0x1251d3(0x147)};_0x5eca64[_0x5eca64[_0x4bdb11[_0x1251d3(0x14f)]]=0x7d0]=_0x1251d3(0x128),_0x5eca64[_0x5eca64[_0x4bdb11['PfZnF']]=0x3e8]=_0x4bdb11['PfZnF'];}(PicType||(PicType={})));export var PicSubType;(function(_0xf7c2fd){var _0xf187e8=_0x3955,_0xcbeb7={'DkayE':_0xf187e8(0x141)};_0xf7c2fd[_0xf7c2fd[_0xf187e8(0x122)]=0x0]=_0xf187e8(0x122),_0xf7c2fd[_0xf7c2fd[_0xcbeb7[_0xf187e8(0x127)]]=0x1]=_0xcbeb7['DkayE'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x48e001){var _0x215e88=_0x3955,_0x4fc8cf={'byWud':_0x215e88(0x133),'RaZnx':'atAll','BokuH':_0x215e88(0x138)};_0x48e001[_0x48e001[_0x4fc8cf[_0x215e88(0x130)]]=0x0]=_0x4fc8cf[_0x215e88(0x130)],_0x48e001[_0x48e001[_0x4fc8cf[_0x215e88(0x146)]]=0x1]=_0x4fc8cf[_0x215e88(0x146)],_0x48e001[_0x48e001[_0x4fc8cf[_0x215e88(0x144)]]=0x2]=_0x215e88(0x138);}(AtType||(AtType={})));export var ChatType;(function(_0x2ccd9b){var _0x5b2f02=_0x3955,_0x5c2e04={'LVhAZ':_0x5b2f02(0x156),'dXhfr':_0x5b2f02(0x12c),'YtTKt':_0x5b2f02(0x11f),'jrMDC':_0x5b2f02(0x12a)};_0x2ccd9b[_0x2ccd9b[_0x5c2e04[_0x5b2f02(0x139)]]=0x1]=_0x5c2e04[_0x5b2f02(0x139)],_0x2ccd9b[_0x2ccd9b[_0x5c2e04[_0x5b2f02(0x136)]]=0x2]=_0x5c2e04['dXhfr'],_0x2ccd9b[_0x2ccd9b[_0x5c2e04['YtTKt']]=0x8]=_0x5c2e04[_0x5b2f02(0x149)],_0x2ccd9b[_0x2ccd9b['temp']=0x64]=_0x5c2e04[_0x5b2f02(0x126)];}(ChatType||(ChatType={})));function _0x4251(){var _0x53b92c=['https://multimedia.nt.qq.com.cn','dXhfr','131229eYjcEK','atUser','LVhAZ','3560382OInFzp','TEXT','unsOU','gjHZf','zunKI','87294KfPQOx','OyDat','face','aATpB','IRZad','BokuH','MFACE','RaZnx','jpg','MARKDOWN','YtTKt','4549338TYhHZc','gjORh','16qVPkNV','INVITE_NEW_MEMBER','YevSZ','hnCJw','hVLqE','REPLY','PIC','PTT','RPS','SGuqJ','friend','ARK','dice','AtYSW','chatDevice','885616qUXdbl','https://gchat.qpic.cn','normal','mLmOt','ban','681172YhKsMp','jrMDC','DkayE','gif','vKPbF','temp','kicked','group','48lpAsfb','3557020mJwcwa','MEMBER_NEW_TITLE','byWud','vKhoL','VIDEO','notAt','qtQMU'];_0x4251=function(){return _0x53b92c;};return _0x4251();}function _0x3955(_0xc637d1,_0x576004){var _0x4251a0=_0x4251();return _0x3955=function(_0x395518,_0x131936){_0x395518=_0x395518-0x11f;var _0x134b98=_0x4251a0[_0x395518];return _0x134b98;},_0x3955(_0xc637d1,_0x576004);}export const IMAGE_HTTP_HOST=_0x4e0d98(0x121);export const IMAGE_HTTP_HOST_NT=_0x4e0d98(0x135);export var GrayTipElementSubType;(function(_0x17711f){var _0x2ed253=_0x4e0d98,_0x113a76={'hVLqE':_0x2ed253(0x14d),'SGuqJ':_0x2ed253(0x12f)};_0x17711f[_0x17711f[_0x113a76[_0x2ed253(0x150)]]=0xc]=_0x113a76[_0x2ed253(0x150)],_0x17711f[_0x17711f[_0x113a76[_0x2ed253(0x155)]]=0x11]=_0x2ed253(0x12f);}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x443cfd){var _0x4d3e3c=_0x4e0d98,_0x5e2f86={'vKhoL':_0x4d3e3c(0x122),'fNuSV':'normal2'};_0x443cfd[_0x443cfd[_0x4d3e3c(0x122)]=0x1]=_0x5e2f86[_0x4d3e3c(0x131)],_0x443cfd[_0x443cfd[_0x5e2f86['fNuSV']]=0x2]=_0x5e2f86['fNuSV'],_0x443cfd[_0x443cfd[_0x4d3e3c(0x158)]=0x3]=_0x4d3e3c(0x158);}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x10837e){var _0x36e2b8=_0x4e0d98,_0x55eb52={'aATpB':_0x36e2b8(0x158),'gjORh':_0x36e2b8(0x154)};_0x10837e[_0x10837e['dice']=0x166]=_0x55eb52[_0x36e2b8(0x142)],_0x10837e[_0x10837e[_0x55eb52['gjORh']]=0x167]=_0x55eb52[_0x36e2b8(0x14b)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x522d57){var _0x6fbba2=_0x4e0d98,_0x41f337={'unsOU':'memberIncrease','mcqnv':_0x6fbba2(0x12b),'YevSZ':_0x6fbba2(0x124)};_0x522d57[_0x522d57[_0x41f337[_0x6fbba2(0x13c)]]=0x1]=_0x41f337[_0x6fbba2(0x13c)],_0x522d57[_0x522d57[_0x41f337['mcqnv']]=0x3]=_0x6fbba2(0x12b),_0x522d57[_0x522d57[_0x41f337[_0x6fbba2(0x14e)]]=0x8]=_0x41f337[_0x6fbba2(0x14e)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x410d81=_0x4306;(function(_0x3958fa,_0x5b2965){var _0x441de7=_0x4306,_0x211b27=_0x3958fa();while(!![]){try{var _0x4ddf0e=-parseInt(_0x441de7(0x1b4))/0x1+-parseInt(_0x441de7(0x1ba))/0x2*(parseInt(_0x441de7(0x1b5))/0x3)+parseInt(_0x441de7(0x1a1))/0x4*(parseInt(_0x441de7(0x1c6))/0x5)+parseInt(_0x441de7(0x1cd))/0x6*(-parseInt(_0x441de7(0x1a7))/0x7)+parseInt(_0x441de7(0x1bb))/0x8*(parseInt(_0x441de7(0x1b2))/0x9)+parseInt(_0x441de7(0x1cf))/0xa+parseInt(_0x441de7(0x1b1))/0xb*(-parseInt(_0x441de7(0x1a3))/0xc);if(_0x4ddf0e===_0x5b2965)break;else _0x211b27['push'](_0x211b27['shift']());}catch(_0x11c9bf){_0x211b27['push'](_0x211b27['shift']());}}}(_0x30fd,0x1e1c7));export var ElementType;(function(_0xad9376){var _0x4e8806=_0x4306,_0x4a11c7={'KtCxg':_0x4e8806(0x1c2),'BHRuK':'PIC','LUdQH':'FILE','uiurq':_0x4e8806(0x1a6),'ZsSVG':_0x4e8806(0x1c4),'wEkVq':'FACE','HanZW':_0x4e8806(0x1c5),'FIcwZ':'ARK','rSjqK':'MFACE','obzvO':_0x4e8806(0x1bc)};_0xad9376[_0xad9376[_0x4a11c7[_0x4e8806(0x1c1)]]=0x1]=_0x4a11c7['KtCxg'],_0xad9376[_0xad9376[_0x4a11c7['BHRuK']]=0x2]=_0x4e8806(0x1c8),_0xad9376[_0xad9376[_0x4a11c7[_0x4e8806(0x1b0)]]=0x3]=_0x4a11c7[_0x4e8806(0x1b0)],_0xad9376[_0xad9376['PTT']=0x4]=_0x4a11c7[_0x4e8806(0x1cc)],_0xad9376[_0xad9376[_0x4a11c7[_0x4e8806(0x1a0)]]=0x5]=_0x4a11c7['ZsSVG'],_0xad9376[_0xad9376[_0x4a11c7[_0x4e8806(0x19e)]]=0x6]=_0x4e8806(0x1bd),_0xad9376[_0xad9376[_0x4a11c7[_0x4e8806(0x198)]]=0x7]=_0x4a11c7[_0x4e8806(0x198)],_0xad9376[_0xad9376['ARK']=0xa]=_0x4a11c7[_0x4e8806(0x197)],_0xad9376[_0xad9376['MFACE']=0xb]=_0x4a11c7[_0x4e8806(0x1b8)],_0xad9376[_0xad9376[_0x4a11c7[_0x4e8806(0x19d)]]=0xe]=_0x4a11c7['obzvO'];}(ElementType||(ElementType={})));export var PicType;(function(_0x56f39c){var _0x5c6109=_0x4306,_0x1c8e9d={'CLmuJ':_0x5c6109(0x1ab),'cQduj':'jpg'};_0x56f39c[_0x56f39c[_0x1c8e9d[_0x5c6109(0x1b3)]]=0x7d0]=_0x1c8e9d[_0x5c6109(0x1b3)],_0x56f39c[_0x56f39c[_0x1c8e9d['cQduj']]=0x3e8]=_0x1c8e9d['cQduj'];}(PicType||(PicType={})));function _0x30fd(){var _0x9fc313=['OZvpB','LUdQH','11SuQyZL','9wwnopk','CLmuJ','19888zqGmyt','58263zqygCT','https://gchat.qpic.cn','eDAoZ','rSjqK','group','2VUyaqE','1542896mIKPUh','MARKDOWN','FACE','iejqv','YUNhE','INVITE_NEW_MEMBER','KtCxg','TEXT','kicked','VIDEO','REPLY','203135JOlHNa','nFWpI','PIC','chatDevice','PiezC','dice','uiurq','124860FeThdt','atUser','803210kmEFBp','NIsVC','normal','orvqq','FIcwZ','HanZW','https://multimedia.nt.qq.com.cn','RPS','UnFfu','eMgnJ','obzvO','wEkVq','atAll','ZsSVG','8dzFUzm','face','1802076dMQZmF','ptzrc','BUcaR','PTT','14EzCPFN','rduOP','notAt','xeZoU','gif','memberIncrease','pQMJC','ban'];_0x30fd=function(){return _0x9fc313;};return _0x30fd();}export var PicSubType;(function(_0x52db1d){var _0x100fee=_0x4306,_0x9576f6={'OZvpB':_0x100fee(0x195),'yEhBy':_0x100fee(0x1a2)};_0x52db1d[_0x52db1d[_0x9576f6['OZvpB']]=0x0]=_0x9576f6[_0x100fee(0x1af)],_0x52db1d[_0x52db1d[_0x9576f6['yEhBy']]=0x1]=_0x9576f6['yEhBy'];}(PicSubType||(PicSubType={})));export var AtType;function _0x4306(_0x3f5de8,_0x3b85c5){var _0x30fd0b=_0x30fd();return _0x4306=function(_0x43069a,_0x5062cf){_0x43069a=_0x43069a-0x194;var _0x26b851=_0x30fd0b[_0x43069a];return _0x26b851;},_0x4306(_0x3f5de8,_0x3b85c5);}(function(_0x3bebba){var _0x52cd57=_0x4306,_0x248d57={'nFWpI':_0x52cd57(0x1a9),'qGrqN':_0x52cd57(0x19f),'UnFfu':_0x52cd57(0x1ce)};_0x3bebba[_0x3bebba[_0x248d57['nFWpI']]=0x0]=_0x248d57[_0x52cd57(0x1c7)],_0x3bebba[_0x3bebba[_0x248d57['qGrqN']]=0x1]=_0x248d57['qGrqN'],_0x3bebba[_0x3bebba[_0x248d57[_0x52cd57(0x19b)]]=0x2]=_0x248d57[_0x52cd57(0x19b)];}(AtType||(AtType={})));export var ChatType;(function(_0x55f79e){var _0x3dfb3e=_0x4306,_0xaaae72={'BUcaR':'friend','NIsVC':_0x3dfb3e(0x1b9),'rduOP':'chatDevice','xeZoU':'temp'};_0x55f79e[_0x55f79e[_0xaaae72[_0x3dfb3e(0x1a5)]]=0x1]=_0xaaae72[_0x3dfb3e(0x1a5)],_0x55f79e[_0x55f79e[_0xaaae72[_0x3dfb3e(0x194)]]=0x2]=_0xaaae72[_0x3dfb3e(0x194)],_0x55f79e[_0x55f79e[_0x3dfb3e(0x1c9)]=0x8]=_0xaaae72[_0x3dfb3e(0x1a8)],_0x55f79e[_0x55f79e[_0xaaae72['xeZoU']]=0x64]=_0xaaae72[_0x3dfb3e(0x1aa)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x410d81(0x1b6);export const IMAGE_HTTP_HOST_NT=_0x410d81(0x199);export var GrayTipElementSubType;(function(_0x49216d){var _0x4e6f29=_0x410d81,_0x48deb4={'eMgnJ':_0x4e6f29(0x1c0),'YUNhE':'MEMBER_NEW_TITLE'};_0x49216d[_0x49216d['INVITE_NEW_MEMBER']=0xc]=_0x48deb4[_0x4e6f29(0x19c)],_0x49216d[_0x49216d[_0x48deb4[_0x4e6f29(0x1bf)]]=0x11]=_0x48deb4[_0x4e6f29(0x1bf)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x3b1bef){var _0x6c8791=_0x410d81,_0x45b890={'ptzrc':'normal2','orvqq':'dice'};_0x3b1bef[_0x3b1bef[_0x6c8791(0x195)]=0x1]='normal',_0x3b1bef[_0x3b1bef[_0x45b890[_0x6c8791(0x1a4)]]=0x2]=_0x45b890[_0x6c8791(0x1a4)],_0x3b1bef[_0x3b1bef[_0x45b890[_0x6c8791(0x196)]]=0x3]=_0x45b890[_0x6c8791(0x196)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x364aef){var _0x5ad9b9=_0x410d81,_0x2ff7ec={'iejqv':_0x5ad9b9(0x1cb),'eDAoZ':_0x5ad9b9(0x19a)};_0x364aef[_0x364aef[_0x2ff7ec[_0x5ad9b9(0x1be)]]=0x166]=_0x2ff7ec['iejqv'],_0x364aef[_0x364aef[_0x2ff7ec[_0x5ad9b9(0x1b7)]]=0x167]=_0x5ad9b9(0x19a);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x5e7903){var _0x54754c=_0x410d81,_0x3a1330={'PiezC':_0x54754c(0x1ac),'pQMJC':_0x54754c(0x1c3),'wvBwc':_0x54754c(0x1ae)};_0x5e7903[_0x5e7903[_0x3a1330[_0x54754c(0x1ca)]]=0x1]=_0x3a1330['PiezC'],_0x5e7903[_0x5e7903[_0x3a1330[_0x54754c(0x1ad)]]=0x3]=_0x54754c(0x1c3),_0x5e7903[_0x5e7903[_0x3a1330['wvBwc']]=0x8]=_0x54754c(0x1ae);}(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 c5907978..f576d488 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x2df216,_0xc6fe70){var _0x2dbaaa=_0x2c67,_0x2801a4=_0x2df216();while(!![]){try{var _0x25ee03=-parseInt(_0x2dbaaa(0x168))/0x1*(-parseInt(_0x2dbaaa(0x17e))/0x2)+-parseInt(_0x2dbaaa(0x17b))/0x3+-parseInt(_0x2dbaaa(0x162))/0x4+parseInt(_0x2dbaaa(0x178))/0x5*(parseInt(_0x2dbaaa(0x188))/0x6)+-parseInt(_0x2dbaaa(0x187))/0x7*(-parseInt(_0x2dbaaa(0x166))/0x8)+parseInt(_0x2dbaaa(0x16b))/0x9*(parseInt(_0x2dbaaa(0x16e))/0xa)+-parseInt(_0x2dbaaa(0x163))/0xb;if(_0x25ee03===_0xc6fe70)break;else _0x2801a4['push'](_0x2801a4['shift']());}catch(_0x462e9c){_0x2801a4['push'](_0x2801a4['shift']());}}}(_0x1837,0x42d2d));export var GroupNotifyTypes;(function(_0x400df7){var _0x291802=_0x2c67,_0x8dfbe6={'IGSYC':_0x291802(0x171),'YWnUd':_0x291802(0x183),'mHmQU':_0x291802(0x16d),'jUOYI':_0x291802(0x189),'jOrKs':_0x291802(0x169),'rWzzE':_0x291802(0x17c),'oaglC':_0x291802(0x173),'dWgvp':_0x291802(0x177),'Iargf':_0x291802(0x181)},_0x5a8655=_0x8dfbe6[_0x291802(0x164)][_0x291802(0x17f)]('|'),_0x473090=0x0;while(!![]){switch(_0x5a8655[_0x473090++]){case'0':_0x400df7[_0x400df7[_0x291802(0x183)]=0xb]=_0x8dfbe6[_0x291802(0x184)];continue;case'1':_0x400df7[_0x400df7[_0x8dfbe6[_0x291802(0x172)]]=0x8]=_0x8dfbe6[_0x291802(0x172)];continue;case'2':_0x400df7[_0x400df7[_0x8dfbe6[_0x291802(0x17d)]]=0xd]=_0x8dfbe6[_0x291802(0x17d)];continue;case'3':_0x400df7[_0x400df7[_0x8dfbe6['jOrKs']]=0x7]=_0x8dfbe6[_0x291802(0x175)];continue;case'4':_0x400df7[_0x400df7[_0x8dfbe6[_0x291802(0x185)]]=0x4]=_0x291802(0x17c);continue;case'5':_0x400df7[_0x400df7[_0x8dfbe6[_0x291802(0x17a)]]=0x1]=_0x8dfbe6[_0x291802(0x17a)];continue;case'6':_0x400df7[_0x400df7[_0x8dfbe6['dWgvp']]=0xc]=_0x291802(0x177);continue;case'7':_0x400df7[_0x400df7[_0x8dfbe6[_0x291802(0x16f)]]=0x9]=_0x8dfbe6[_0x291802(0x16f)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x21e314){var _0x347bd3=_0x2c67,_0x26bf7c={'PAazO':_0x347bd3(0x170),'sMVmk':'WAIT_HANDLE','sLtLy':'APPROVE','rUOxL':_0x347bd3(0x165)};_0x21e314[_0x21e314[_0x26bf7c[_0x347bd3(0x167)]]=0x0]=_0x26bf7c[_0x347bd3(0x167)],_0x21e314[_0x21e314[_0x26bf7c[_0x347bd3(0x180)]]=0x1]=_0x347bd3(0x186),_0x21e314[_0x21e314[_0x26bf7c[_0x347bd3(0x174)]]=0x2]=_0x26bf7c[_0x347bd3(0x174)],_0x21e314[_0x21e314[_0x26bf7c[_0x347bd3(0x182)]]=0x3]=_0x26bf7c[_0x347bd3(0x182)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x2c67(_0x4ed370,_0x570164){var _0x1837c7=_0x1837();return _0x2c67=function(_0x2c67da,_0x37e459){_0x2c67da=_0x2c67da-0x162;var _0x5d6113=_0x1837c7[_0x2c67da];return _0x5d6113;},_0x2c67(_0x4ed370,_0x570164);}function _0x1837(){var _0x17bbd8=['mHmQU','INVITE_ME','sLtLy','jOrKs','KpNiZ','ADMIN_UNSET','27575WTatWq','approve','oaglC','113673PuIykM','INVITED_JOIN','jUOYI','2yrjlcK','split','sMVmk','KICK_MEMBER','rUOxL','MEMBER_EXIT','YWnUd','rWzzE','WAIT_HANDLE','1139257aQFBxJ','114TwfnJo','ADMIN_UNSET_OTHER','1291584zbMzQb','3504501zoSCRs','IGSYC','REJECT','16akdtea','PAazO','258443ttvKIx','JOIN_REQUEST','reject','27WFkbHJ','aZnDp','ADMIN_SET','881190HOILKX','Iargf','IGNORE','5|4|3|1|7|0|6|2'];_0x1837=function(){return _0x17bbd8;};return _0x1837();}(function(_0x22b484){var _0x4e402a=_0x2c67,_0xb16a01={'aZnDp':_0x4e402a(0x179),'KpNiZ':_0x4e402a(0x16a)};_0x22b484[_0x22b484[_0xb16a01[_0x4e402a(0x16c)]]=0x1]=_0xb16a01[_0x4e402a(0x16c)],_0x22b484[_0x22b484[_0xb16a01[_0x4e402a(0x176)]]=0x2]=_0x4e402a(0x16a);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x19adaa,_0x56a38f){var _0x22c269=_0xe6a3,_0x4d1ed1=_0x19adaa();while(!![]){try{var _0x4f42a1=-parseInt(_0x22c269(0x1b5))/0x1*(parseInt(_0x22c269(0x1b4))/0x2)+parseInt(_0x22c269(0x1b0))/0x3*(parseInt(_0x22c269(0x19f))/0x4)+parseInt(_0x22c269(0x19d))/0x5*(parseInt(_0x22c269(0x195))/0x6)+parseInt(_0x22c269(0x1a4))/0x7*(-parseInt(_0x22c269(0x1b3))/0x8)+parseInt(_0x22c269(0x1a8))/0x9+-parseInt(_0x22c269(0x1ad))/0xa+parseInt(_0x22c269(0x1ae))/0xb;if(_0x4f42a1===_0x56a38f)break;else _0x4d1ed1['push'](_0x4d1ed1['shift']());}catch(_0xb738c2){_0x4d1ed1['push'](_0x4d1ed1['shift']());}}}(_0x2b6d,0x9f8e0));export var GroupNotifyTypes;function _0xe6a3(_0x4af4aa,_0x19eda9){var _0x2b6d36=_0x2b6d();return _0xe6a3=function(_0xe6a34,_0x340ef2){_0xe6a34=_0xe6a34-0x193;var _0x263a9c=_0x2b6d36[_0xe6a34];return _0x263a9c;},_0xe6a3(_0x4af4aa,_0x19eda9);}(function(_0x4847c5){var _0x4d0343=_0xe6a3,_0x174d9b={'PRoCv':'JOIN_REQUEST','curNx':_0x4d0343(0x197),'PpLhV':_0x4d0343(0x1a1),'EZAOo':_0x4d0343(0x196),'DdWWY':_0x4d0343(0x19a),'koXXq':'ADMIN_UNSET'},_0x59ba1c=_0x4d0343(0x1ab)['split']('|'),_0xecf760=0x0;while(!![]){switch(_0x59ba1c[_0xecf760++]){case'0':_0x4847c5[_0x4847c5[_0x4d0343(0x193)]=0xd]=_0x4d0343(0x193);continue;case'1':_0x4847c5[_0x4847c5[_0x174d9b[_0x4d0343(0x19e)]]=0x7]=_0x174d9b[_0x4d0343(0x19e)];continue;case'2':_0x4847c5[_0x4847c5[_0x174d9b[_0x4d0343(0x1b1)]]=0x4]=_0x174d9b[_0x4d0343(0x1b1)];continue;case'3':_0x4847c5[_0x4847c5[_0x174d9b[_0x4d0343(0x19b)]]=0x8]=_0x174d9b[_0x4d0343(0x19b)];continue;case'4':_0x4847c5[_0x4847c5[_0x174d9b[_0x4d0343(0x1af)]]=0x9]='KICK_MEMBER';continue;case'5':_0x4847c5[_0x4847c5[_0x4d0343(0x19a)]=0x1]=_0x174d9b[_0x4d0343(0x19c)];continue;case'6':_0x4847c5[_0x4847c5[_0x4d0343(0x1a9)]=0xc]=_0x174d9b['koXXq'];continue;case'7':_0x4847c5[_0x4847c5[_0x4d0343(0x1a3)]=0xb]='MEMBER_EXIT';continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x2b6d(){var _0x53a903=['approve','REJECT','APPROVE','5482062Heixji','ADMIN_UNSET','LczLZ','5|2|1|3|4|7|6|0','XWKXi','4792400ySuoEl','6268229eyujnE','EZAOo','12vLgAOJ','curNx','HdsbK','280CtpltI','675362GKDhHf','2VSJtMd','ADMIN_UNSET_OTHER','YWYwW','816npOrDS','KICK_MEMBER','INVITED_JOIN','lyfuO','JxSKa','INVITE_ME','PpLhV','DdWWY','30640CFAUGu','PRoCv','108428cimJFa','reject','ADMIN_SET','IGNORE','MEMBER_EXIT','62531OeKwRq'];_0x2b6d=function(){return _0x53a903;};return _0x2b6d();}(function(_0x11adf2){var _0xcfc64b=_0xe6a3,_0x403d8b={'LczLZ':_0xcfc64b(0x1a2),'JxSKa':'WAIT_HANDLE','HdsbK':_0xcfc64b(0x1a7),'lyfuO':_0xcfc64b(0x1a6)};_0x11adf2[_0x11adf2[_0x403d8b[_0xcfc64b(0x1aa)]]=0x0]='IGNORE',_0x11adf2[_0x11adf2[_0x403d8b['JxSKa']]=0x1]=_0x403d8b[_0xcfc64b(0x199)],_0x11adf2[_0x11adf2[_0xcfc64b(0x1a7)]=0x2]=_0x403d8b[_0xcfc64b(0x1b2)],_0x11adf2[_0x11adf2[_0x403d8b[_0xcfc64b(0x198)]]=0x3]=_0x403d8b['lyfuO'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0xd75311){var _0x325bbd=_0xe6a3,_0x301890={'XWKXi':_0x325bbd(0x1a5),'YWYwW':_0x325bbd(0x1a0)};_0xd75311[_0xd75311[_0x301890[_0x325bbd(0x1ac)]]=0x1]=_0x325bbd(0x1a5),_0xd75311[_0xd75311[_0x301890[_0x325bbd(0x194)]]=0x2]=_0x301890[_0x325bbd(0x194)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.d.ts b/src/core.lib/src/entities/user.d.ts index cc46be95..846d8635 100644 --- a/src/core.lib/src/entities/user.d.ts +++ b/src/core.lib/src/entities/user.d.ts @@ -9,6 +9,17 @@ export interface BuddyCategoryType { categroyMbCount: number; buddyList: User[]; } +export interface ModifyProfileParams { + nick: string; + longNick: string; + sex: Sex; + birthday: { + birthday_year: string; + birthday_month: string; + birthday_day: string; + }; + location: any; +} export interface BuddyProfileLikeReq { friendUids: string[]; basic: number; diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index a2c68eae..a4d53181 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x2057(_0x513379,_0x317453){var _0x12e502=_0x12e5();return _0x2057=function(_0x205719,_0x4cff50){_0x205719=_0x205719-0x1e1;var _0x573b47=_0x12e502[_0x205719];return _0x573b47;},_0x2057(_0x513379,_0x317453);}function _0x12e5(){var _0x1bae49=['3909256ieHHPm','2418045pvWTfj','570892pkbuxp','1574444rlsNjB','957015odExSG','598122MubaIE','aVTnJ','male','vPUYl','602919JPQMYy','unknown','10kTDXsm'];_0x12e5=function(){return _0x1bae49;};return _0x12e5();}(function(_0x234858,_0x3b5889){var _0x5c39f2=_0x2057,_0x523fd2=_0x234858();while(!![]){try{var _0xda138c=parseInt(_0x5c39f2(0x1ea))/0x1+-parseInt(_0x5c39f2(0x1e4))/0x2+parseInt(_0x5c39f2(0x1e5))/0x3+parseInt(_0x5c39f2(0x1e3))/0x4*(parseInt(_0x5c39f2(0x1ec))/0x5)+-parseInt(_0x5c39f2(0x1e6))/0x6+-parseInt(_0x5c39f2(0x1e2))/0x7+parseInt(_0x5c39f2(0x1e1))/0x8;if(_0xda138c===_0x3b5889)break;else _0x523fd2['push'](_0x523fd2['shift']());}catch(_0x3901cd){_0x523fd2['push'](_0x523fd2['shift']());}}}(_0x12e5,0x71343));export var Sex;(function(_0x4aa0cd){var _0x711c7=_0x2057,_0x400689={'HcBwM':_0x711c7(0x1e8),'aVTnJ':'female','vPUYl':_0x711c7(0x1eb)};_0x4aa0cd[_0x4aa0cd[_0x400689['HcBwM']]=0x1]=_0x711c7(0x1e8),_0x4aa0cd[_0x4aa0cd[_0x400689[_0x711c7(0x1e7)]]=0x2]=_0x400689[_0x711c7(0x1e7)],_0x4aa0cd[_0x4aa0cd[_0x400689[_0x711c7(0x1e9)]]=0xff]=_0x711c7(0x1eb);}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x425abd,_0x1e888d){var _0x176f22=_0x3a30,_0x4eb957=_0x425abd();while(!![]){try{var _0x55b3d4=-parseInt(_0x176f22(0x68))/0x1*(-parseInt(_0x176f22(0x69))/0x2)+-parseInt(_0x176f22(0x6a))/0x3+-parseInt(_0x176f22(0x67))/0x4*(-parseInt(_0x176f22(0x6e))/0x5)+parseInt(_0x176f22(0x6d))/0x6*(parseInt(_0x176f22(0x6f))/0x7)+parseInt(_0x176f22(0x65))/0x8*(-parseInt(_0x176f22(0x6c))/0x9)+parseInt(_0x176f22(0x6b))/0xa*(parseInt(_0x176f22(0x70))/0xb)+-parseInt(_0x176f22(0x71))/0xc;if(_0x55b3d4===_0x1e888d)break;else _0x4eb957['push'](_0x4eb957['shift']());}catch(_0x301dbf){_0x4eb957['push'](_0x4eb957['shift']());}}}(_0x10d9,0xc0c6b));export var Sex;function _0x10d9(){var _0x45bd45=['24TPufBz','female','61524PPefuR','30274SgfYql','2wYyaKc','2551476BRiunw','1069530XXNJIz','2371527aHKuUV','174Ewznuh','135ujiScL','364847LFBbAu','77YfwsAT','3301548qQopWo','male','zQdhj'];_0x10d9=function(){return _0x45bd45;};return _0x10d9();}function _0x3a30(_0x3ec91f,_0x599ffb){var _0x10d945=_0x10d9();return _0x3a30=function(_0x3a3089,_0x1ccb2f){_0x3a3089=_0x3a3089-0x64;var _0x28741a=_0x10d945[_0x3a3089];return _0x28741a;},_0x3a30(_0x3ec91f,_0x599ffb);}(function(_0x59140d){var _0x4927b5=_0x3a30,_0x5741d0={'zQdhj':'male','OFEli':'female','VYGsK':'unknown'};_0x59140d[_0x59140d[_0x4927b5(0x72)]=0x1]=_0x5741d0[_0x4927b5(0x64)],_0x59140d[_0x59140d[_0x5741d0['OFEli']]=0x2]=_0x4927b5(0x66),_0x59140d[_0x59140d[_0x5741d0['VYGsK']]=0xff]=_0x5741d0['VYGsK'];}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index 9c55ac76..a4d75f87 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x50812d,_0x2ae774){var _0x23c833=_0xc25d,_0x1ecf1d=_0x50812d();while(!![]){try{var _0x202bd0=parseInt(_0x23c833(0x88))/0x1*(parseInt(_0x23c833(0x91))/0x2)+parseInt(_0x23c833(0x90))/0x3*(-parseInt(_0x23c833(0x8a))/0x4)+parseInt(_0x23c833(0x89))/0x5*(-parseInt(_0x23c833(0x87))/0x6)+parseInt(_0x23c833(0x8b))/0x7*(parseInt(_0x23c833(0x8d))/0x8)+-parseInt(_0x23c833(0x8e))/0x9+parseInt(_0x23c833(0x8c))/0xa+parseInt(_0x23c833(0x8f))/0xb;if(_0x202bd0===_0x2ae774)break;else _0x1ecf1d['push'](_0x1ecf1d['shift']());}catch(_0x1e64a0){_0x1ecf1d['push'](_0x1ecf1d['shift']());}}}(_0x424f,0x80fdf));import _0x545fa2 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0xc25d(_0x1cb15a,_0x42cc3c){var _0x424fe1=_0x424f();return _0xc25d=function(_0xc25d7c,_0x4695d2){_0xc25d7c=_0xc25d7c-0x87;var _0x489e48=_0x424fe1[_0xc25d7c];return _0x489e48;},_0xc25d(_0x1cb15a,_0x42cc3c);}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x424f(){var _0x522dbb=['123SHnXws','2734QPQjfF','84fgSIxa','8dueFqT','126570sVyapu','35604OWUpxX','105973CpzHZt','503580rNjyam','216gCTehA','5850306MoVHit','15704425PXmLZA'];_0x424f=function(){return _0x522dbb;};return _0x424f();}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x545fa2 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x319fd4,_0x36ebc7){var _0x16c645=_0x1d55,_0x598f2d=_0x319fd4();while(!![]){try{var _0x100f53=-parseInt(_0x16c645(0x9e))/0x1+parseInt(_0x16c645(0x9b))/0x2*(-parseInt(_0x16c645(0x9f))/0x3)+parseInt(_0x16c645(0x9d))/0x4+-parseInt(_0x16c645(0x9a))/0x5*(-parseInt(_0x16c645(0x98))/0x6)+-parseInt(_0x16c645(0xa1))/0x7+parseInt(_0x16c645(0x99))/0x8*(parseInt(_0x16c645(0x9c))/0x9)+parseInt(_0x16c645(0xa0))/0xa*(parseInt(_0x16c645(0x97))/0xb);if(_0x100f53===_0x36ebc7)break;else _0x598f2d['push'](_0x598f2d['shift']());}catch(_0x545faa){_0x598f2d['push'](_0x598f2d['shift']());}}}(_0xf987,0x45f64));import _0x3295a6 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';function _0x1d55(_0x492aeb,_0x2def52){var _0xf987b4=_0xf987();return _0x1d55=function(_0x1d55bf,_0x3366cc){_0x1d55bf=_0x1d55bf-0x97;var _0x289d93=_0xf987b4[_0x1d55bf];return _0x289d93;},_0x1d55(_0x492aeb,_0x2def52);}function _0xf987(){var _0x18f69e=['3798pPzyMr','1107212bUtfwn','488277OidVGU','3ZknyDF','590NcbPFy','3117562glWUQw','123409TtdMvU','2182044MHUfbL','424iilEix','5UPtXMP','209114WOuxTa'];_0xf987=function(){return _0x18f69e;};return _0xf987();}export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x3295a6 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 fce405f1..0c4ff31c 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -function _0x1c17(_0xbf9e4,_0x23b1ad){var _0x423e96=_0x423e();return _0x1c17=function(_0x1c173a,_0x10cd8a){_0x1c173a=_0x1c173a-0xb4;var _0x38567e=_0x423e96[_0x1c173a];return _0x38567e;},_0x1c17(_0xbf9e4,_0x23b1ad);}var _0x2bf7e1=_0x1c17;function _0x423e(){var _0x5562c8=['onBuddyReqUnreadCntChange','onAvatarUrlUpdated','998107fnqMHq','onCheckBuddySettingResult','5lUHxRX','200259JHshZt','onDelBatchBuddyInfos','10jNWmox','377756VBNxym','144RAaYlC','onAddMeSettingChanged','3673423pyuZnb','3FrkQtt','onNickUpdated','onAddBuddyNeedVerify','onBuddyListChange','onBuddyReqChange','1100296wgfTEo','472IMlMGt','24213IlucXs','1176338cumqDJ','558rLQLrG','onDoubtBuddyReqUnreadNumChange','onBlockChanged'];_0x423e=function(){return _0x5562c8;};return _0x423e();}(function(_0x36e2ea,_0x443923){var _0xa29013=_0x1c17,_0x8ad71e=_0x36e2ea();while(!![]){try{var _0x57b664=-parseInt(_0xa29013(0xbf))/0x1+-parseInt(_0xa29013(0xc2))/0x2*(parseInt(_0xa29013(0xba))/0x3)+parseInt(_0xa29013(0xb6))/0x4*(parseInt(_0xa29013(0xca))/0x5)+-parseInt(_0xa29013(0xc3))/0x6*(-parseInt(_0xa29013(0xc1))/0x7)+-parseInt(_0xa29013(0xc0))/0x8*(parseInt(_0xa29013(0xcb))/0x9)+parseInt(_0xa29013(0xb5))/0xa*(-parseInt(_0xa29013(0xc8))/0xb)+parseInt(_0xa29013(0xb7))/0xc*(parseInt(_0xa29013(0xb9))/0xd);if(_0x57b664===_0x443923)break;else _0x8ad71e['push'](_0x8ad71e['shift']());}catch(_0x157e51){_0x8ad71e['push'](_0x8ad71e['shift']());}}}(_0x423e,0xae8d7));export class BuddyListener{[_0x2bf7e1(0xbc)](_0x56490e){}[_0x2bf7e1(0xb8)](_0x3e38eb){}[_0x2bf7e1(0xc7)](_0x2df154){}[_0x2bf7e1(0xc5)](_0x4cb052){}['onBuddyDetailInfoChange'](_0x4b163b){}['onBuddyInfoChange'](_0x50c426){}[_0x2bf7e1(0xbd)](_0x342717){}['onBuddyRemarkUpdated'](_0x264e5c){}[_0x2bf7e1(0xbe)](_0x418b44){}[_0x2bf7e1(0xc6)](_0x38e28c){}[_0x2bf7e1(0xc9)](_0xdfef47){}[_0x2bf7e1(0xb4)](_0x580300){}['onDoubtBuddyReqChange'](_0x107fa0){}[_0x2bf7e1(0xc4)](_0x236be0){}[_0x2bf7e1(0xbb)](_0xed45d4){}['onSmartInfos'](_0x2c1737){}['onSpacePermissionInfos'](_0x5a3c13){}} \ No newline at end of file +var _0x23ddb8=_0x2807;function _0x2807(_0x50bec3,_0x3a2f12){var _0x37a4a0=_0x37a4();return _0x2807=function(_0x280733,_0x4ca479){_0x280733=_0x280733-0x166;var _0x2b7184=_0x37a4a0[_0x280733];return _0x2b7184;},_0x2807(_0x50bec3,_0x3a2f12);}(function(_0x57b081,_0xcf01f0){var _0x3ea7e8=_0x2807,_0x359b72=_0x57b081();while(!![]){try{var _0x5a72db=parseInt(_0x3ea7e8(0x16d))/0x1+-parseInt(_0x3ea7e8(0x175))/0x2+-parseInt(_0x3ea7e8(0x168))/0x3*(parseInt(_0x3ea7e8(0x166))/0x4)+-parseInt(_0x3ea7e8(0x16a))/0x5+parseInt(_0x3ea7e8(0x16c))/0x6*(-parseInt(_0x3ea7e8(0x174))/0x7)+parseInt(_0x3ea7e8(0x16b))/0x8+parseInt(_0x3ea7e8(0x178))/0x9;if(_0x5a72db===_0xcf01f0)break;else _0x359b72['push'](_0x359b72['shift']());}catch(_0x25c4bb){_0x359b72['push'](_0x359b72['shift']());}}}(_0x37a4,0x56836));function _0x37a4(){var _0x44b3e3=['onSmartInfos','1981011zGKrTe','onAddBuddyNeedVerify','3052675KXxGXu','2443040qOTpUi','33204EgNaVL','181209BklYDD','onDoubtBuddyReqChange','onDelBatchBuddyInfos','onBuddyReqUnreadCntChange','onBuddyRemarkUpdated','onSpacePermissionInfos','onCheckBuddySettingResult','532IUDSdU','147526DehJlD','onNickUpdated','onBuddyInfoChange','14696892FSrlvj','4nGTPMa'];_0x37a4=function(){return _0x44b3e3;};return _0x37a4();}export class BuddyListener{[_0x23ddb8(0x169)](_0x4921b8){}['onAddMeSettingChanged'](_0x29d5ce){}['onAvatarUrlUpdated'](_0x1e1697){}['onBlockChanged'](_0x326261){}['onBuddyDetailInfoChange'](_0x263d09){}[_0x23ddb8(0x177)](_0x326756){}['onBuddyListChange'](_0x1395e7){}[_0x23ddb8(0x171)](_0x8597ba){}['onBuddyReqChange'](_0x313e76){}[_0x23ddb8(0x170)](_0x3d4ac9){}[_0x23ddb8(0x173)](_0x3f8ad8){}[_0x23ddb8(0x16f)](_0x4dac3c){}[_0x23ddb8(0x16e)](_0x33d605){}['onDoubtBuddyReqUnreadNumChange'](_0x51e2e4){}[_0x23ddb8(0x176)](_0x2004d4){}[_0x23ddb8(0x167)](_0x67b91d){}[_0x23ddb8(0x172)](_0x163501){}} \ 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 0cd1cff5..b04e0917 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x20a209=_0x5228;(function(_0x5d4257,_0xffec6a){var _0x1239d2=_0x5228,_0xbc0fd3=_0x5d4257();while(!![]){try{var _0x3babdc=parseInt(_0x1239d2(0xa2))/0x1+parseInt(_0x1239d2(0xa5))/0x2*(parseInt(_0x1239d2(0xa3))/0x3)+-parseInt(_0x1239d2(0x9c))/0x4+-parseInt(_0x1239d2(0xa0))/0x5+parseInt(_0x1239d2(0xa6))/0x6+-parseInt(_0x1239d2(0xa8))/0x7*(parseInt(_0x1239d2(0xa1))/0x8)+parseInt(_0x1239d2(0xa4))/0x9;if(_0x3babdc===_0xffec6a)break;else _0xbc0fd3['push'](_0xbc0fd3['shift']());}catch(_0x47aaab){_0xbc0fd3['push'](_0xbc0fd3['shift']());}}}(_0x371b,0x6a8dd));function _0x371b(){var _0x5e46a0=['1424808WDYFOd','onFileSearch','7QyGLTS','953500VaDMdp','onSessionChanged','onFileListChanged','onSessionListChanged','2275690vDQYUp','5795480IoXZCF','870135jBJTDD','1758KkbWsK','1178136ACeZIq','2102hWnlRQ'];_0x371b=function(){return _0x5e46a0;};return _0x371b();}function _0x5228(_0x55e30a,_0x5937cf){var _0x371b9a=_0x371b();return _0x5228=function(_0x52288b,_0x18264b){_0x52288b=_0x52288b-0x9c;var _0x16cbda=_0x371b9a[_0x52288b];return _0x16cbda;},_0x5228(_0x55e30a,_0x5937cf);}export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x42279b){}[_0x20a209(0x9f)](..._0x474354){}[_0x20a209(0x9d)](..._0x317644){}[_0x20a209(0x9e)](..._0xb5ef4b){}[_0x20a209(0xa7)](..._0x545e82){}} \ No newline at end of file +var _0x432220=_0x5630;(function(_0xb122d2,_0x46fb6a){var _0x8ddffd=_0x5630,_0x6e08d6=_0xb122d2();while(!![]){try{var _0xe651f2=parseInt(_0x8ddffd(0x10d))/0x1*(parseInt(_0x8ddffd(0x11a))/0x2)+-parseInt(_0x8ddffd(0x113))/0x3+parseInt(_0x8ddffd(0x10c))/0x4*(parseInt(_0x8ddffd(0x119))/0x5)+-parseInt(_0x8ddffd(0x114))/0x6*(parseInt(_0x8ddffd(0x118))/0x7)+-parseInt(_0x8ddffd(0x116))/0x8*(-parseInt(_0x8ddffd(0x10b))/0x9)+-parseInt(_0x8ddffd(0x10e))/0xa*(parseInt(_0x8ddffd(0x10f))/0xb)+parseInt(_0x8ddffd(0x110))/0xc*(parseInt(_0x8ddffd(0x117))/0xd);if(_0xe651f2===_0x46fb6a)break;else _0x6e08d6['push'](_0x6e08d6['shift']());}catch(_0x18ac53){_0x6e08d6['push'](_0x6e08d6['shift']());}}}(_0x5cbd,0x8a0e7));function _0x5cbd(){var _0x10d8d5=['3042964gjsjka','12gjKcjb','70SbsBmZ','1211210BFgWNP','12BXOQDj','onFileStatusChanged','onFileSearch','2102988SWouMz','66YhQlqd','onFileListChanged','51568XMiGBC','17939077EJaUxG','552503dZkVib','5RzvUww','115648yQsBhK','99XRZHir'];_0x5cbd=function(){return _0x10d8d5;};return _0x5cbd();}function _0x5630(_0x5d5623,_0x36bebd){var _0x5cbd15=_0x5cbd();return _0x5630=function(_0x5630c1,_0x26aee4){_0x5630c1=_0x5630c1-0x10b;var _0x50110c=_0x5cbd15[_0x5630c1];return _0x50110c;},_0x5630(_0x5d5623,_0x36bebd);}export class KernelFileAssistantListener{[_0x432220(0x111)](..._0x1ae1b1){}['onSessionListChanged'](..._0x1687e5){}['onSessionChanged'](..._0x4fad0f){}[_0x432220(0x115)](..._0x2cf65c){}[_0x432220(0x112)](..._0x53d0d8){}} \ 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 89d4f7c9..f117bc7b 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -function _0x5ce9(){var _0x3dc7b5=['onGroupNotifiesUnreadCountUpdated','onSearchMemberChange:','dHjyq','onGroupBulletinRichMediaProgressUpdate','uCQGF','onGroupBulletinRichMediaDownloadComplete','4582416UwyoZp','onGroupStatisticInfoChange','ZHnjx','3682iNyHan','725380EajdXW','onGroupDetailInfoChange','onGroupExtListUpdate:','onGroupSingleScreenNotifies:','nEaAc','11784tYrjCC','onJoinGroupNoVerifyFlag','onShutUpMemberListChanged','15792WfMTea','PMhND','eeAgT','FojKs','onGroupBulletinRemindNotify','qpdkL','onMemberInfoChange:','onGroupConfMemberChange','MdOaO','70504mQMfMb','onGroupNotifiesUpdated:','onShutUpMemberListChanged:','onGroupNotifiesUnreadCountUpdated:','onMemberListChange','log','779202YDtzad','468nCkcxE','4yCjbhF','onSearchMemberChange','oruku','onJoinGroupNotify:','onMemberInfoChange','onJoinGroupNotify','EHsYJ','JKXVZ','onGroupAllInfoChange','SoMor','onGroupExtListUpdate','Wxavn','onGroupNotifiesUpdated','onJoinGroupNoVerifyFlag:','onGroupStatisticInfoChange:','onMemberListChange:','onGroupBulletinChange:','onGroupFirstBulletinNotify:','onGroupMemberLevelInfoChange','onGroupBulletinChange','onGroupsMsgMaskResult','onGroupListUpdate','5698lMIcib','1iiBRNS','onGroupDetailInfoChange:','onGroupSingleScreenNotifies','4386675wBjqPi','onGroupFirstBulletinNotify','onGroupMemberLevelInfoChange:','onGroupArkInviteStateResult:','onGetGroupBulletinListResult','onGroupListUpdate:'];_0x5ce9=function(){return _0x3dc7b5;};return _0x5ce9();}var _0x23554f=_0x1af0;(function(_0x3a48f2,_0x4de4ac){var _0x1f0ffa=_0x1af0,_0x2dc5ad=_0x3a48f2();while(!![]){try{var _0x37d13d=parseInt(_0x1f0ffa(0xd4))/0x1*(-parseInt(_0x1f0ffa(0xbb))/0x2)+-parseInt(_0x1f0ffa(0xe3))/0x3*(-parseInt(_0x1f0ffa(0xbd))/0x4)+parseInt(_0x1f0ffa(0xd7))/0x5+-parseInt(_0x1f0ffa(0xec))/0x6*(parseInt(_0x1f0ffa(0xe6))/0x7)+parseInt(_0x1f0ffa(0xf8))/0x8*(parseInt(_0x1f0ffa(0xbc))/0x9)+parseInt(_0x1f0ffa(0xe7))/0xa+parseInt(_0x1f0ffa(0xd3))/0xb*(-parseInt(_0x1f0ffa(0xef))/0xc);if(_0x37d13d===_0x4de4ac)break;else _0x2dc5ad['push'](_0x2dc5ad['shift']());}catch(_0x16cf7c){_0x2dc5ad['push'](_0x2dc5ad['shift']());}}}(_0x5ce9,0xcaf24));function _0x1af0(_0x43a982,_0x57d217){var _0x5ce91c=_0x5ce9();return _0x1af0=function(_0x1af03c,_0x303fc2){_0x1af03c=_0x1af03c-0xb7;var _0x525764=_0x5ce91c[_0x1af03c];return _0x525764;},_0x1af0(_0x43a982,_0x57d217);}export class GroupListener{[_0x23554f(0xcf)](..._0x10b372){}[_0x23554f(0xdb)](..._0x313b8a){}[_0x23554f(0xc5)](..._0xb1b236){}[_0x23554f(0xd0)](..._0xae9960){}[_0x23554f(0xf3)](..._0x26e158){}['onGroupArkInviteStateResult'](..._0x63e6b1){}[_0x23554f(0xe2)](..._0x470538){}[_0x23554f(0xf6)](..._0x258dcf){}[_0x23554f(0xe8)](..._0x62a314){}[_0x23554f(0xc7)](..._0x99d1a7){}[_0x23554f(0xd8)](..._0x20c1d3){}[_0x23554f(0xd2)](_0x1f94ee,_0x239aa1){}[_0x23554f(0xc9)](_0x533ef4,_0x5a2f73){}[_0x23554f(0xe0)](..._0x3b0d2c){}[_0x23554f(0xdd)](..._0x4782f4){}[_0x23554f(0xd6)](_0x58e29b,_0x11ad82,_0x3c34a6){}[_0x23554f(0xd1)](..._0x57fc3e){}[_0x23554f(0xe4)](..._0x24a9e3){}[_0x23554f(0xc2)](..._0x181446){}['onJoinGroupNoVerifyFlag'](..._0x434008){}['onMemberInfoChange'](_0x30b587,_0x2532a4,_0x3a8cff){}[_0x23554f(0xb9)](_0x58fbe4){}[_0x23554f(0xbe)](..._0x15d5fd){}[_0x23554f(0xee)](..._0x4e135e){}}export class DebugGroupListener{[_0x23554f(0xcf)](..._0x12b2cd){var _0x4a1a2c=_0x23554f,_0x6f6bae={'SoMor':_0x4a1a2c(0xd9)};console[_0x4a1a2c(0xba)](_0x6f6bae[_0x4a1a2c(0xc6)],..._0x12b2cd);}[_0x23554f(0xdb)](..._0x164fbf){var _0x545a5d=_0x23554f,_0x269601={'YxUFq':'onGetGroupBulletinListResult:'};console[_0x545a5d(0xba)](_0x269601['YxUFq'],..._0x164fbf);}['onGroupAllInfoChange'](..._0x35ac34){var _0x4dca75=_0x23554f,_0x10dd0c={'kKYYw':'onGroupAllInfoChange:'};console[_0x4dca75(0xba)](_0x10dd0c['kKYYw'],..._0x35ac34);}[_0x23554f(0xd0)](..._0x573dc8){var _0x16c36f=_0x23554f,_0x377534={'JKXVZ':_0x16c36f(0xcd)};console[_0x16c36f(0xba)](_0x377534[_0x16c36f(0xc4)],..._0x573dc8);}[_0x23554f(0xf3)](..._0x1d92e2){var _0x1d0e27=_0x23554f,_0x3a5cc1={'dHjyq':'onGroupBulletinRemindNotify:'};console['log'](_0x3a5cc1[_0x1d0e27(0xdf)],..._0x1d92e2);}['onGroupArkInviteStateResult'](..._0x470ce2){var _0x32a010=_0x23554f,_0x3102ca={'EqZQj':_0x32a010(0xda)};console['log'](_0x3102ca['EqZQj'],..._0x470ce2);}[_0x23554f(0xe2)](..._0x2673fd){var _0x3107b2=_0x23554f,_0x22f09c={'FojKs':'onGroupBulletinRichMediaDownloadComplete:'};console[_0x3107b2(0xba)](_0x22f09c[_0x3107b2(0xf2)],..._0x2673fd);}[_0x23554f(0xf6)](..._0x392a41){var _0x4980e0=_0x23554f,_0x240251={'MdOaO':'onGroupConfMemberChange:'};console[_0x4980e0(0xba)](_0x240251[_0x4980e0(0xf7)],..._0x392a41);}[_0x23554f(0xe8)](..._0x13b729){var _0xb828ca=_0x23554f,_0x4dca4b={'UqfFR':_0xb828ca(0xd5)};console[_0xb828ca(0xba)](_0x4dca4b['UqfFR'],..._0x13b729);}['onGroupExtListUpdate'](..._0x1af86f){var _0x33f238=_0x23554f;console['log'](_0x33f238(0xe9),..._0x1af86f);}[_0x23554f(0xd8)](..._0x3f41a5){var _0x2852f9=_0x23554f,_0x303f4b={'EHsYJ':_0x2852f9(0xce)};console[_0x2852f9(0xba)](_0x303f4b[_0x2852f9(0xc3)],..._0x3f41a5);}[_0x23554f(0xd2)](..._0x2ec3b9){var _0x256497=_0x23554f,_0x3fbe78={'PMhND':_0x256497(0xdc)};console['log'](_0x3fbe78[_0x256497(0xf0)],..._0x2ec3b9);}[_0x23554f(0xc9)](..._0x2ce09c){var _0x72e772=_0x23554f,_0x36773d={'dbyPm':_0x72e772(0xf9)};console['log'](_0x36773d['dbyPm'],..._0x2ce09c);}[_0x23554f(0xe0)](..._0xb7c538){var _0x23722d=_0x23554f,_0x59a723={'uCQGF':'onGroupBulletinRichMediaProgressUpdate:'};console[_0x23722d(0xba)](_0x59a723[_0x23722d(0xe1)],..._0xb7c538);}[_0x23554f(0xdd)](..._0xf7611c){var _0x4b8010=_0x23554f;console[_0x4b8010(0xba)](_0x4b8010(0xb8),..._0xf7611c);}['onGroupSingleScreenNotifies'](_0x159e09,_0x2dc5a4,_0x1f5e49){var _0x2a6f90=_0x23554f,_0x21a108={'nEaAc':_0x2a6f90(0xea)};console['log'](_0x21a108[_0x2a6f90(0xeb)]);}['onGroupsMsgMaskResult'](..._0x2ffc09){var _0x6a96c7=_0x23554f,_0x2a52c1={'oruku':'onGroupsMsgMaskResult:'};console[_0x6a96c7(0xba)](_0x2a52c1[_0x6a96c7(0xbf)],..._0x2ffc09);}[_0x23554f(0xe4)](..._0x308a39){var _0x4e8c1c=_0x23554f,_0x24d101={'ZHnjx':_0x4e8c1c(0xcb)};console['log'](_0x24d101[_0x4e8c1c(0xe5)],..._0x308a39);}[_0x23554f(0xc2)](..._0x3b9c1c){var _0x46d994=_0x23554f;console[_0x46d994(0xba)](_0x46d994(0xc0),..._0x3b9c1c);}[_0x23554f(0xed)](..._0x1ec67f){var _0x43a44a=_0x23554f,_0x3f5a3b={'eeAgT':_0x43a44a(0xca)};console[_0x43a44a(0xba)](_0x3f5a3b[_0x43a44a(0xf1)],..._0x1ec67f);}[_0x23554f(0xc1)](_0xe04a54,_0x5a236e,_0x361b67){var _0x327a4a=_0x23554f,_0x401246={'PkEEw':_0x327a4a(0xf5)};console[_0x327a4a(0xba)](_0x401246['PkEEw'],_0xe04a54,_0x5a236e,_0x361b67);}[_0x23554f(0xb9)](..._0x2bf9c4){var _0x2e6e03=_0x23554f,_0x45b883={'Wxavn':_0x2e6e03(0xcc)};console[_0x2e6e03(0xba)](_0x45b883[_0x2e6e03(0xc8)],..._0x2bf9c4);}[_0x23554f(0xbe)](..._0x560574){var _0x5b1635=_0x23554f,_0x3668c3={'Tucol':_0x5b1635(0xde)};console[_0x5b1635(0xba)](_0x3668c3['Tucol'],..._0x560574);}[_0x23554f(0xee)](..._0x31ad69){var _0x1ce34f=_0x23554f,_0x399c85={'qpdkL':_0x1ce34f(0xb7)};console[_0x1ce34f(0xba)](_0x399c85[_0x1ce34f(0xf4)],..._0x31ad69);}} \ No newline at end of file +function _0x147d(){var _0x5077a1=['onGroupBulletinRichMediaProgressUpdate:','onGroupFirstBulletinNotify:','nqEiF','onJoinGroupNoVerifyFlag','vRutQ','onGroupBulletinRichMediaDownloadComplete','PWqtn','onSearchMemberChange','onGroupMemberLevelInfoChange','log','onMemberListChange','onMemberInfoChange:','8475WzkvXj','20XyANtb','16838JfONNI','onGroupBulletinRichMediaDownloadComplete:','8616uircru','onGroupListUpdate:','CqkOY','onGroupArkInviteStateResult:','172iYlQAy','1195760sOIQOX','onGroupSingleScreenNotifies:','JOZnT','onGroupListUpdate','onGroupExtListUpdate','onMemberInfoChange','onGroupExtListUpdate:','4718SwPYKX','onGetGroupBulletinListResult','onGroupNotifiesUpdated:','onGroupDetailInfoChange:','925524FLgVMd','onGroupNotifiesUpdated','gscAl','xHEmx','onGroupArkInviteStateResult','onGetGroupBulletinListResult:','onShutUpMemberListChanged','onGroupStatisticInfoChange','EWFiq','onGroupBulletinRichMediaProgressUpdate','onGroupMemberLevelInfoChange:','onGroupConfMemberChange:','onGroupBulletinRemindNotify','onGroupNotifiesUnreadCountUpdated:','onGroupsMsgMaskResult:','onGroupConfMemberChange','870935GpAaGu','onGroupAllInfoChange','onJoinGroupNoVerifyFlag:','Wnzrq','onJoinGroupNotify','onGroupBulletinRemindNotify:','onShutUpMemberListChanged:','onGroupNotifiesUnreadCountUpdated','XWlwr','onGroupDetailInfoChange','onGroupSingleScreenNotifies','FUDdX','onGroupFirstBulletinNotify','onGroupsMsgMaskResult','3973326AlQAwr'];_0x147d=function(){return _0x5077a1;};return _0x147d();}var _0x15dae2=_0x2eb6;(function(_0x169387,_0x34701a){var _0x5a8608=_0x2eb6,_0x327519=_0x169387();while(!![]){try{var _0x404498=parseInt(_0x5a8608(0xbc))/0x1+parseInt(_0x5a8608(0xc3))/0x2+-parseInt(_0x5a8608(0xba))/0x3*(parseInt(_0x5a8608(0xc2))/0x4)+parseInt(_0x5a8608(0xde))/0x5+parseInt(_0x5a8608(0xad))/0x6+parseInt(_0x5a8608(0xca))/0x7*(-parseInt(_0x5a8608(0xbe))/0x8)+-parseInt(_0x5a8608(0xce))/0x9*(parseInt(_0x5a8608(0xbb))/0xa);if(_0x404498===_0x34701a)break;else _0x327519['push'](_0x327519['shift']());}catch(_0xf4f306){_0x327519['push'](_0x327519['shift']());}}}(_0x147d,0x61301));export class GroupListener{[_0x15dae2(0xb6)](..._0x247be3){}['onGetGroupBulletinListResult'](..._0x22550c){}[_0x15dae2(0xdf)](..._0x160396){}['onGroupBulletinChange'](..._0x1455c1){}[_0x15dae2(0xda)](..._0x106c73){}[_0x15dae2(0xd2)](..._0x483963){}['onGroupBulletinRichMediaDownloadComplete'](..._0x3de656){}[_0x15dae2(0xdd)](..._0x4f6d2a){}[_0x15dae2(0xe7)](..._0x1b5aac){}[_0x15dae2(0xc7)](..._0x59c142){}['onGroupFirstBulletinNotify'](..._0x40b619){}[_0x15dae2(0xc6)](_0x1aaee7,_0x3e44de){}[_0x15dae2(0xcf)](_0x59b828,_0x5f5451){}[_0x15dae2(0xd7)](..._0x4b12dd){}['onGroupNotifiesUnreadCountUpdated'](..._0x1584bb){}[_0x15dae2(0xa9)](_0x5511e5,_0x4f5be5,_0x393450){}['onGroupsMsgMaskResult'](..._0x381cc3){}[_0x15dae2(0xd5)](..._0x3a4792){}[_0x15dae2(0xe2)](..._0x1869fe){}[_0x15dae2(0xb1)](..._0x5a443a){}[_0x15dae2(0xc8)](_0x38d8b6,_0x454d83,_0x4a7a5d){}[_0x15dae2(0xb8)](_0x3ae07c){}[_0x15dae2(0xb5)](..._0x308d8b){}['onShutUpMemberListChanged'](..._0x22697c){}}function _0x2eb6(_0xd6e0aa,_0x1fefe2){var _0x147d73=_0x147d();return _0x2eb6=function(_0x2eb68c,_0x3a63e0){_0x2eb68c=_0x2eb68c-0xa9;var _0x2e13c1=_0x147d73[_0x2eb68c];return _0x2e13c1;},_0x2eb6(_0xd6e0aa,_0x1fefe2);}export class DebugGroupListener{['onGroupMemberLevelInfoChange'](..._0x2d88d2){var _0x2574bb=_0x15dae2;console['log'](_0x2574bb(0xd8),..._0x2d88d2);}[_0x15dae2(0xcb)](..._0x539720){var _0x17ee51=_0x15dae2;console[_0x17ee51(0xb7)](_0x17ee51(0xd3),..._0x539720);}['onGroupAllInfoChange'](..._0x48f10b){var _0x591eb6=_0x15dae2,_0x1e164b={'CqkOY':'onGroupAllInfoChange:'};console[_0x591eb6(0xb7)](_0x1e164b[_0x591eb6(0xc0)],..._0x48f10b);}['onGroupBulletinChange'](..._0x2dbbb4){var _0x259897=_0x15dae2,_0x3a57e2={'rpLuH':'onGroupBulletinChange:'};console[_0x259897(0xb7)](_0x3a57e2['rpLuH'],..._0x2dbbb4);}[_0x15dae2(0xda)](..._0x3d1b22){var _0x3537a2=_0x15dae2,_0x32edba={'FUDdX':_0x3537a2(0xe3)};console[_0x3537a2(0xb7)](_0x32edba[_0x3537a2(0xaa)],..._0x3d1b22);}[_0x15dae2(0xd2)](..._0x47cc05){var _0x2aaa0c=_0x15dae2,_0x3067b3={'vRutQ':_0x2aaa0c(0xc1)};console[_0x2aaa0c(0xb7)](_0x3067b3[_0x2aaa0c(0xb2)],..._0x47cc05);}[_0x15dae2(0xb3)](..._0x43af93){var _0x29b710=_0x15dae2;console['log'](_0x29b710(0xbd),..._0x43af93);}[_0x15dae2(0xdd)](..._0x4ac1c6){var _0x57fea8=_0x15dae2;console[_0x57fea8(0xb7)](_0x57fea8(0xd9),..._0x4ac1c6);}[_0x15dae2(0xe7)](..._0x5b5c1c){var _0x25aea5=_0x15dae2,_0x21ad48={'XWlwr':_0x25aea5(0xcd)};console[_0x25aea5(0xb7)](_0x21ad48[_0x25aea5(0xe6)],..._0x5b5c1c);}['onGroupExtListUpdate'](..._0x1f347a){var _0x3a246e=_0x15dae2;console[_0x3a246e(0xb7)](_0x3a246e(0xc9),..._0x1f347a);}[_0x15dae2(0xab)](..._0x4decd5){var _0x3fe148=_0x15dae2,_0x1be687={'Wnzrq':_0x3fe148(0xaf)};console[_0x3fe148(0xb7)](_0x1be687[_0x3fe148(0xe1)],..._0x4decd5);}[_0x15dae2(0xc6)](..._0x4be557){var _0x5db8a1=_0x15dae2,_0x2a11e5={'EWFiq':_0x5db8a1(0xbf)};console['log'](_0x2a11e5[_0x5db8a1(0xd6)],..._0x4be557);}['onGroupNotifiesUpdated'](..._0x6a16fe){var _0x45d2bf=_0x15dae2,_0x1291f0={'JOZnT':_0x45d2bf(0xcc)};console[_0x45d2bf(0xb7)](_0x1291f0[_0x45d2bf(0xc5)],..._0x6a16fe);}[_0x15dae2(0xd7)](..._0x5e33fb){var _0x4740cb=_0x15dae2;console[_0x4740cb(0xb7)](_0x4740cb(0xae),..._0x5e33fb);}[_0x15dae2(0xe5)](..._0x2c4818){var _0x211d09=_0x15dae2;console[_0x211d09(0xb7)](_0x211d09(0xdb),..._0x2c4818);}[_0x15dae2(0xa9)](_0x3ce11f,_0x3e434b,_0x358822){var _0x3e9d48=_0x15dae2,_0x45790b={'xHEmx':_0x3e9d48(0xc4)};console[_0x3e9d48(0xb7)](_0x45790b[_0x3e9d48(0xd1)]);}[_0x15dae2(0xac)](..._0x20d54d){var _0x4940f5=_0x15dae2;console['log'](_0x4940f5(0xdc),..._0x20d54d);}[_0x15dae2(0xd5)](..._0xcdf343){var _0x32c8f1=_0x15dae2,_0x29b33c={'PWqtn':'onGroupStatisticInfoChange:'};console[_0x32c8f1(0xb7)](_0x29b33c[_0x32c8f1(0xb4)],..._0xcdf343);}[_0x15dae2(0xe2)](..._0x121e81){var _0x2fbdcd=_0x15dae2,_0x9d739c={'gscAl':'onJoinGroupNotify:'};console[_0x2fbdcd(0xb7)](_0x9d739c[_0x2fbdcd(0xd0)],..._0x121e81);}['onJoinGroupNoVerifyFlag'](..._0x2fa0f5){var _0x489e5a=_0x15dae2,_0x3054a9={'nqEiF':_0x489e5a(0xe0)};console[_0x489e5a(0xb7)](_0x3054a9[_0x489e5a(0xb0)],..._0x2fa0f5);}[_0x15dae2(0xc8)](_0x1f7e36,_0x419621,_0x4882fd){var _0x312bb0=_0x15dae2;console[_0x312bb0(0xb7)](_0x312bb0(0xb9),_0x1f7e36,_0x419621,_0x4882fd);}[_0x15dae2(0xb8)](..._0x3bd581){var _0x360526=_0x15dae2,_0x83bd2b={'gJHSD':'onMemberListChange:'};console[_0x360526(0xb7)](_0x83bd2b['gJHSD'],..._0x3bd581);}['onSearchMemberChange'](..._0x2989f7){var _0x23e4b0={'afvtf':'onSearchMemberChange:'};console['log'](_0x23e4b0['afvtf'],..._0x2989f7);}[_0x15dae2(0xd4)](..._0x3f1ef6){var _0x2aea72=_0x15dae2;console[_0x2aea72(0xb7)](_0x2aea72(0xe4),..._0x3f1ef6);}} \ 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 bbad21f5..073a6573 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x21b9(){var _0x3c401e=['42dOSzsv','onPasswordLoginFailed','185304YCUwhZ','onQRCodeSessionQuickLoginFailed','onQRCodeSessionFailed','onLoginState','2121468ZLMpFC','onQRCodeLoginSucceed','onLoginFailed','onLoginConnecting','onQQLoginNumLimited','onUserLoggedIn','onQRCodeGetPicture','OnConfirmUnusualDeviceFailed','onLoginConnected','onLogoutSucceed','onLogoutFailed','1675758bonJxj','15035400KsURUQ','onQRCodeLoginPollingStarted','onQRCodeSessionUserScaned','62DsxOEE','655090fKPaPi','2725565zoslUm','73203sixFgW'];_0x21b9=function(){return _0x3c401e;};return _0x21b9();}var _0x51964=_0x404e;(function(_0x191392,_0x3295e1){var _0x42cf1e=_0x404e,_0x3bcf84=_0x191392();while(!![]){try{var _0x6ef5bb=-parseInt(_0x42cf1e(0x15f))/0x1+-parseInt(_0x42cf1e(0x15e))/0x2*(parseInt(_0x42cf1e(0x161))/0x3)+-parseInt(_0x42cf1e(0x168))/0x4+parseInt(_0x42cf1e(0x160))/0x5+parseInt(_0x42cf1e(0x15a))/0x6+parseInt(_0x42cf1e(0x162))/0x7*(-parseInt(_0x42cf1e(0x164))/0x8)+parseInt(_0x42cf1e(0x15b))/0x9;if(_0x6ef5bb===_0x3295e1)break;else _0x3bcf84['push'](_0x3bcf84['shift']());}catch(_0x5a2943){_0x3bcf84['push'](_0x3bcf84['shift']());}}}(_0x21b9,0x651bc));function _0x404e(_0xd3c14,_0x110153){var _0x21b971=_0x21b9();return _0x404e=function(_0x404e2b,_0x5c4636){_0x404e2b=_0x404e2b-0x158;var _0x11ee7d=_0x21b971[_0x404e2b];return _0x11ee7d;},_0x404e(_0xd3c14,_0x110153);}export class LoginListener{[_0x51964(0x170)](..._0x2140b4){}['onLoginDisConnected'](..._0x805b53){}[_0x51964(0x16b)](..._0x46fdb6){}[_0x51964(0x16e)](_0x54218c){}[_0x51964(0x15c)](..._0x45822b){}[_0x51964(0x15d)](..._0x4287b7){}[_0x51964(0x169)](_0x25a4ab){}[_0x51964(0x166)](..._0x4da241){}[_0x51964(0x16a)](..._0x414500){}[_0x51964(0x158)](..._0xf5058f){}[_0x51964(0x159)](..._0x3c9b3b){}[_0x51964(0x16d)](..._0x17f1d9){}[_0x51964(0x165)](..._0x531021){}[_0x51964(0x163)](..._0x2a878c){}[_0x51964(0x16f)](..._0x11e50b){}[_0x51964(0x16c)](..._0x4517b3){}[_0x51964(0x167)](..._0x5da17b){}} \ No newline at end of file +var _0x526331=_0x48cf;function _0x4366(){var _0x31351d=['onQRCodeSessionUserScaned','2645536nwiURv','4333206PfFywY','onPasswordLoginFailed','OnConfirmUnusualDeviceFailed','3676xSpMzc','25104LqyBpc','onQRCodeLoginPollingStarted','onUserLoggedIn','7765mKaKOu','3fOhoXr','onLoginDisConnected','26956470rjzVNk','onQRCodeSessionQuickLoginFailed','onLoginFailed','onLoginConnecting','1766071BcDeaG','onQRCodeLoginSucceed','onQQLoginNumLimited','721JbzPUH','6479766xeuNsb','onLoginState','onLoginConnected'];_0x4366=function(){return _0x31351d;};return _0x4366();}function _0x48cf(_0x294bd9,_0xf7b11){var _0x4366ba=_0x4366();return _0x48cf=function(_0x48cfbc,_0x36351c){_0x48cfbc=_0x48cfbc-0x166;var _0x39acfc=_0x4366ba[_0x48cfbc];return _0x39acfc;},_0x48cf(_0x294bd9,_0xf7b11);}(function(_0x2b8fc5,_0x4f9216){var _0x599249=_0x48cf,_0x30a1ef=_0x2b8fc5();while(!![]){try{var _0x94f3c6=parseInt(_0x599249(0x173))/0x1+parseInt(_0x599249(0x17b))/0x2*(-parseInt(_0x599249(0x16d))/0x3)+parseInt(_0x599249(0x168))/0x4*(parseInt(_0x599249(0x16c))/0x5)+parseInt(_0x599249(0x17c))/0x6+parseInt(_0x599249(0x176))/0x7*(parseInt(_0x599249(0x169))/0x8)+parseInt(_0x599249(0x177))/0x9+-parseInt(_0x599249(0x16f))/0xa;if(_0x94f3c6===_0x4f9216)break;else _0x30a1ef['push'](_0x30a1ef['shift']());}catch(_0x49d9f0){_0x30a1ef['push'](_0x30a1ef['shift']());}}}(_0x4366,0xe58dc));export class LoginListener{[_0x526331(0x179)](..._0x4c3581){}[_0x526331(0x16e)](..._0x1821f6){}[_0x526331(0x172)](..._0x328165){}['onQRCodeGetPicture'](_0x1a3a16){}[_0x526331(0x16a)](..._0x528305){}[_0x526331(0x17a)](..._0x5383b2){}[_0x526331(0x174)](_0x3d820e){}['onQRCodeSessionFailed'](..._0x5b74b6){}[_0x526331(0x171)](..._0x82ffb3){}['onLogoutSucceed'](..._0x178d23){}['onLogoutFailed'](..._0xc0a9bf){}[_0x526331(0x16b)](..._0x12b31b){}[_0x526331(0x170)](..._0x367aa7){}[_0x526331(0x166)](..._0x28a95f){}[_0x526331(0x167)](..._0x129b85){}[_0x526331(0x175)](..._0x5f5a3b){}[_0x526331(0x178)](..._0x29cc69){}} \ 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 7e79bbdf..5ad2fc53 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x3828d2=_0x4296;function _0x4296(_0x254abf,_0xf62f67){var _0xe47038=_0xe470();return _0x4296=function(_0x4296f6,_0x1fe82e){_0x4296f6=_0x4296f6-0x83;var _0x16cafa=_0xe47038[_0x4296f6];return _0x16cafa;},_0x4296(_0x254abf,_0xf62f67);}(function(_0x4e180e,_0x59ff69){var _0xa64167=_0x4296,_0x947e43=_0x4e180e();while(!![]){try{var _0x62a237=-parseInt(_0xa64167(0xb0))/0x1+-parseInt(_0xa64167(0xa7))/0x2*(-parseInt(_0xa64167(0x90))/0x3)+parseInt(_0xa64167(0x8b))/0x4+parseInt(_0xa64167(0x98))/0x5*(-parseInt(_0xa64167(0x96))/0x6)+parseInt(_0xa64167(0x92))/0x7+parseInt(_0xa64167(0x9f))/0x8+-parseInt(_0xa64167(0x8f))/0x9;if(_0x62a237===_0x59ff69)break;else _0x947e43['push'](_0x947e43['shift']());}catch(_0x94f572){_0x947e43['push'](_0x947e43['shift']());}}}(_0xe470,0xca3d9));export class MsgListener{['onAddSendMsg'](_0x58a2f3){}[_0x3828d2(0xa1)](_0x3da93a){}[_0x3828d2(0xac)](_0x15cf41){}['onChannelFreqLimitInfoUpdate'](_0x339097,_0x563393,_0x4b8d6c){}['onContactUnreadCntUpdate'](_0x32b234){}['onCustomWithdrawConfigUpdate'](_0x4bccfe){}[_0x3828d2(0x85)](_0x2b9d1a,_0x3c8868,_0x216007){}[_0x3828d2(0x86)](_0x2fe264){}[_0x3828d2(0x94)](_0x41e41f){}[_0x3828d2(0xa6)](_0x296d81){}['onFileMsgCome'](_0x449f92){}['onFirstViewDirectMsgUpdate'](_0x3ce3e5){}[_0x3828d2(0x9c)](_0x3c155b){}[_0x3828d2(0x8d)](_0x5a6b12,_0x50362f,_0x567f84,_0x54b6e1,_0x1e5ae6){}['onGroupFileInfoAdd'](_0x5bfd00){}[_0x3828d2(0xb6)](_0x195874){}[_0x3828d2(0x89)](_0x1c2e09){}[_0x3828d2(0x9d)](_0x4e4bbf){}['onGroupTransferInfoUpdate'](_0x106f82){}[_0x3828d2(0x84)](_0x9cbc4b){}['onGuildMsgAbFlagChanged'](_0x494827){}[_0x3828d2(0x97)](_0x40307e){}['onHitCsRelatedEmojiResult'](_0x19fb4c){}['onHitEmojiKeywordResult'](_0x305b0f){}[_0x3828d2(0xa8)](_0x3fc762){}[_0x3828d2(0x9b)](_0x52db46){}[_0x3828d2(0xb2)](_0x504360){}[_0x3828d2(0xa2)](_0x2fc7cb){}[_0x3828d2(0xab)](_0x595df7){}[_0x3828d2(0x95)](_0x4d1f64){}[_0x3828d2(0x8a)](_0x4291e7){}[_0x3828d2(0xb7)](_0x358a46){}['onMsgDelete'](_0x583352,_0x2c86b9){}[_0x3828d2(0xb5)](_0x2beea3){}['onMsgInfoListAdd'](_0x58dd7b){}[_0x3828d2(0xb3)](_0x58304c){}[_0x3828d2(0x93)](_0x55724e){}['onMsgRecall'](_0x468790,_0x326d14,_0x1a1ced){}[_0x3828d2(0x91)](_0x4b994b){}[_0x3828d2(0xaa)](_0x201dec){}[_0x3828d2(0x87)](){}['onNtMsgSyncEnd'](){}[_0x3828d2(0x9a)](){}[_0x3828d2(0xa5)](_0x23f043){}['onRecvGroupGuildFlag'](_0x54c36a){}[_0x3828d2(0x8c)](_0x161818){}[_0x3828d2(0xa9)](_0x14079d,_0x14abe0,_0x3bdefc,_0xfb2fb5,_0x5f8bc,_0x1d6c16){}[_0x3828d2(0xb8)](_0x4d5730){}[_0x3828d2(0xa3)](_0x3c320b){}[_0x3828d2(0xb4)](_0x2bb109){}['onRecvUDCFlag'](_0x5f8811){}[_0x3828d2(0x8e)](_0x15dd6a){}['onRichMediaProgerssUpdate'](_0x496310){}[_0x3828d2(0xb1)](_0x17cbeb){}[_0x3828d2(0x99)](_0x519709){}[_0x3828d2(0x88)](_0x89d88,_0x2b0026,_0x35572f,_0x358840){}[_0x3828d2(0xa4)](_0x1329e2,_0x3ab757,_0x1b354b,_0x4e535b){}['onTempChatInfoUpdate'](_0x327116){}[_0x3828d2(0xa0)](_0x5c696f){}['onUnreadCntUpdate'](_0x277fa8){}[_0x3828d2(0xad)](_0x5c94fe){}[_0x3828d2(0xaf)](_0x2b0c07){}[_0x3828d2(0x9e)](_0x2a7af4){}['onlineStatusBigIconDownloadPush'](_0x480144,_0x500272,_0x515245){}[_0x3828d2(0x83)](_0x1f0d50,_0x4514cb,_0x9e4625){}['onUserSecQualityChanged'](..._0x49e7ab){}['onMsgWithRichLinkInfoUpdate'](..._0x587182){}[_0x3828d2(0xb9)](..._0x4f0a34){}[_0x3828d2(0xae)](..._0x419b3e){}}function _0xe470(){var _0x1831df=['onRecvMsg','onGrabPasswordRedBag','onRichMediaDownloadComplete','10519326XTUbZJ','83703jDbRhb','onMsgSecurityNotify','5136579VlGPYb','onMsgQRCodeStatusChanged','onEmojiResourceUpdate','onLogLevelChanged','1014KnFRHg','onGuildNotificationAbstractUpdate','19325qnvWVq','onSearchGroupFileInfoUpdate','onNtMsgSyncStart','onImportOldDbProgressUpdate','onFirstViewGroupGuildMapping','onGroupTransferInfoAdd','onUserTabStatusChanged','11765792yEajKC','onUnreadCntAfterFirstView','onBroadcastHelperDownloadComplete','onKickedOffLine','onRecvS2CMsg','onSysMsgNotification','onReadFeedEventUpdate','onFeedEventUpdate','38HiWTeE','onHitRelatedEmojiResult','onRecvMsgSvrRspTransInfo','onMsgSettingUpdate','onLineDev','onBroadcastHelperProgressUpdate','onUserChannelTabStatusChanged','onBroadcastHelperProgerssUpdate','onUserOnlineStatusChanged','1051190fjEQUF','onRichMediaUploadComplete','onInputStatusPush','onMsgInfoListUpdate','onRecvSysMsg','onMsgEventListUpdate','onGroupFileInfoUpdate','onMsgBoxChanged','onRecvOnlineFileMsg','onRedTouchChanged','onlineStatusSmallIconDownloadPush','onGuildInteractiveUpdate','onDraftUpdate','onEmojiDownloadComplete','onNtFirstViewMsgSyncEnd','onSendMsgError','onGroupGuildUpdate','onMsgAbstractUpdate','3867704fFNmwv'];_0xe470=function(){return _0x1831df;};return _0xe470();} \ No newline at end of file +var _0x21255e=_0x30d1;(function(_0x59a79d,_0x571cd9){var _0x5a1aa6=_0x30d1,_0x33b426=_0x59a79d();while(!![]){try{var _0x2e4842=parseInt(_0x5a1aa6(0x135))/0x1*(parseInt(_0x5a1aa6(0x156))/0x2)+-parseInt(_0x5a1aa6(0x14c))/0x3+parseInt(_0x5a1aa6(0x164))/0x4*(parseInt(_0x5a1aa6(0x138))/0x5)+parseInt(_0x5a1aa6(0x169))/0x6+parseInt(_0x5a1aa6(0x146))/0x7*(parseInt(_0x5a1aa6(0x145))/0x8)+-parseInt(_0x5a1aa6(0x150))/0x9*(-parseInt(_0x5a1aa6(0x132))/0xa)+parseInt(_0x5a1aa6(0x142))/0xb*(-parseInt(_0x5a1aa6(0x15a))/0xc);if(_0x2e4842===_0x571cd9)break;else _0x33b426['push'](_0x33b426['shift']());}catch(_0x2a51bb){_0x33b426['push'](_0x33b426['shift']());}}}(_0x175c,0xcc5de));function _0x30d1(_0x3bedf3,_0x3d4d72){var _0x175c14=_0x175c();return _0x30d1=function(_0x30d15f,_0x7edf30){_0x30d15f=_0x30d15f-0x132;var _0x3ddc2f=_0x175c14[_0x30d15f];return _0x3ddc2f;},_0x30d1(_0x3bedf3,_0x3d4d72);}function _0x175c(){var _0x367472=['onGroupFileInfoUpdate','onBroadcastHelperProgressUpdate','onGroupTransferInfoUpdate','onFirstViewGroupGuildMapping','onKickedOffLine','50gCCqMl','onHitRelatedEmojiResult','onContactUnreadCntUpdate','onHitCsRelatedEmojiResult','272376SDgyzZ','onGroupFileInfoAdd','onMsgQRCodeStatusChanged','onSysMsgNotification','onMsgRecall','onRichMediaUploadComplete','onNtMsgSyncEnd','onUserTabStatusChanged','onAddSendMsg','onBroadcastHelperDownloadComplete','4340BnOsvo','onNtMsgSyncStart','onMsgInfoListAdd','onEmojiDownloadComplete','onMsgBoxChanged','1588962guQesa','onLineDev','onImportOldDbProgressUpdate','onSendMsgError','onMsgDelete','onMsgSecurityNotify','onMsgWithRichLinkInfoUpdate','onLogLevelChanged','onlineStatusSmallIconDownloadPush','onDraftUpdate','1461540FidovA','onChannelFreqLimitInfoUpdate','onCustomWithdrawConfigUpdate','37873UaOCUb','onGuildNotificationAbstractUpdate','onUserSecQualityChanged','2245YxUFwH','onGroupGuildUpdate','onRecvGroupGuildFlag','onTempChatInfoUpdate','onlineStatusBigIconDownloadPush','onGrabPasswordRedBag','onFirstViewDirectMsgUpdate','onSearchGroupFileInfoUpdate','onReadFeedEventUpdate','onRecvMsg','572TuOXFZ','onUserOnlineStatusChanged','onRichMediaDownloadComplete','8thbYdy','2827034geYcfN','onGuildMsgAbFlagChanged','onHitEmojiKeywordResult','onMsgEventListUpdate','onUnreadCntAfterFirstView','onRecvMsgSvrRspTransInfo','3325125HahkRg','onUnreadCntUpdate','onMsgAbstractUpdate','onUserChannelTabStatusChanged','63ErZRMB'];_0x175c=function(){return _0x367472;};return _0x175c();}export class MsgListener{[_0x21255e(0x162)](_0x3d50d5){}[_0x21255e(0x163)](_0x416aa9){}[_0x21255e(0x152)](_0x21aa64){}[_0x21255e(0x133)](_0x19730a,_0xb51ad6,_0x5c0c75){}[_0x21255e(0x158)](_0x126d39){}[_0x21255e(0x134)](_0x2e406b){}[_0x21255e(0x172)](_0x3698fa,_0x5a26a0,_0x382537){}[_0x21255e(0x167)](_0x499be6){}['onEmojiResourceUpdate'](_0x503324){}['onFeedEventUpdate'](_0x3070be){}['onFileMsgCome'](_0x5b298b){}[_0x21255e(0x13e)](_0x2390f5){}[_0x21255e(0x154)](_0x13953c){}[_0x21255e(0x13d)](_0x1b13f3,_0x29a0d5,_0x250a09,_0xf5c4a0,_0xeaefa7){}[_0x21255e(0x15b)](_0x1bcde2){}[_0x21255e(0x151)](_0x48465c){}[_0x21255e(0x139)](_0x6d9141){}['onGroupTransferInfoAdd'](_0x3cd6e2){}[_0x21255e(0x153)](_0x440494){}['onGuildInteractiveUpdate'](_0x3ac87b){}[_0x21255e(0x147)](_0x998c01){}[_0x21255e(0x136)](_0x4b4bab){}[_0x21255e(0x159)](_0x4c781f){}[_0x21255e(0x148)](_0x50fef1){}[_0x21255e(0x157)](_0x55eefc){}[_0x21255e(0x16b)](_0x2764ca){}['onInputStatusPush'](_0x45bef5){}[_0x21255e(0x155)](_0x35c209){}[_0x21255e(0x16a)](_0x10f1b0){}[_0x21255e(0x170)](_0x42b5c2){}[_0x21255e(0x14e)](_0x2c7e1f){}[_0x21255e(0x168)](_0x3ecb99){}[_0x21255e(0x16d)](_0x37e8ce,_0x312fdc){}[_0x21255e(0x149)](_0x253c04){}[_0x21255e(0x166)](_0x3f7ecc){}['onMsgInfoListUpdate'](_0x48ff13){}[_0x21255e(0x15c)](_0x1cafe7){}[_0x21255e(0x15e)](_0x24ed23,_0x27184c,_0x22f5e3){}[_0x21255e(0x16e)](_0x36a8e7){}['onMsgSettingUpdate'](_0x1bc59e){}['onNtFirstViewMsgSyncEnd'](){}[_0x21255e(0x160)](){}[_0x21255e(0x165)](){}[_0x21255e(0x140)](_0x4e7a93){}[_0x21255e(0x13a)](_0x2cf2b9){}[_0x21255e(0x141)](_0x2f3e29){}[_0x21255e(0x14b)](_0x3dfbcc,_0xe19862,_0x296b5a,_0x1029ef,_0x47ee94,_0x1fb5b8){}['onRecvOnlineFileMsg'](_0x25564f){}['onRecvS2CMsg'](_0x42fbb4){}['onRecvSysMsg'](_0x5aed40){}['onRecvUDCFlag'](_0x3d9f4b){}[_0x21255e(0x144)](_0x15e17d){}['onRichMediaProgerssUpdate'](_0x508fef){}[_0x21255e(0x15f)](_0x1b7e7a){}[_0x21255e(0x13f)](_0x313088){}[_0x21255e(0x16c)](_0x53db97,_0x1136ec,_0x38b6ff,_0x4b9841){}[_0x21255e(0x15d)](_0xb4e8dd,_0x195cd1,_0x216fab,_0x233eec){}[_0x21255e(0x13b)](_0x2e9974){}[_0x21255e(0x14a)](_0x49c8b7){}[_0x21255e(0x14d)](_0x4d24bf){}[_0x21255e(0x14f)](_0x35f0e5){}[_0x21255e(0x143)](_0x45dc08){}[_0x21255e(0x161)](_0x230374){}[_0x21255e(0x13c)](_0x553bcc,_0x27bd33,_0x1f1cdd){}[_0x21255e(0x171)](_0x1e52c7,_0x48a123,_0x247d63){}[_0x21255e(0x137)](..._0x4a7cca){}[_0x21255e(0x16f)](..._0xfd2679){}['onRedTouchChanged'](..._0x55bffc){}['onBroadcastHelperProgerssUpdate'](..._0x52c509){}} \ 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 0322a666..1e7f3457 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x3c75(_0x18563e,_0x3a6b94){var _0x2a756e=_0x2a75();return _0x3c75=function(_0x3c751f,_0x300d80){_0x3c751f=_0x3c751f-0x1aa;var _0x4f5a93=_0x2a756e[_0x3c751f];return _0x4f5a93;},_0x3c75(_0x18563e,_0x3a6b94);}var _0x4c9cf9=_0x3c75;(function(_0x1cb00d,_0x2645d8){var _0x3a73ae=_0x3c75,_0x5859c1=_0x1cb00d();while(!![]){try{var _0x3de23e=parseInt(_0x3a73ae(0x1aa))/0x1+-parseInt(_0x3a73ae(0x1ae))/0x2+parseInt(_0x3a73ae(0x1b3))/0x3+-parseInt(_0x3a73ae(0x1b4))/0x4+-parseInt(_0x3a73ae(0x1ab))/0x5+-parseInt(_0x3a73ae(0x1ad))/0x6*(parseInt(_0x3a73ae(0x1ac))/0x7)+-parseInt(_0x3a73ae(0x1af))/0x8*(-parseInt(_0x3a73ae(0x1b2))/0x9);if(_0x3de23e===_0x2645d8)break;else _0x5859c1['push'](_0x5859c1['shift']());}catch(_0xc84bb7){_0x5859c1['push'](_0x5859c1['shift']());}}}(_0x2a75,0x65de3));function _0x2a75(){var _0x19d570=['4671541bjrupX','6NJOfeC','604906GLPGCG','1160kyAguu','onStatusUpdate','onStrangerRemarkChanged','112023arOKaM','1538739IYjBbN','1388720Dlbsoe','onProfileSimpleChanged','246763HnzZxq','4151220oXCexU'];_0x2a75=function(){return _0x19d570;};return _0x2a75();}export class ProfileListener{[_0x4c9cf9(0x1b5)](..._0x1ae7d2){}['onProfileDetailInfoChanged'](_0x2a7f69){}[_0x4c9cf9(0x1b0)](..._0x57eefe){}['onSelfStatusChanged'](..._0x348550){}[_0x4c9cf9(0x1b1)](..._0x461643){}} \ No newline at end of file +var _0x52a86e=_0x3a24;function _0x5859(){var _0x187b4a=['552951izkIIU','302KTTKop','3361407bgfOrT','onStatusUpdate','14037AEXuDX','26680760qWvTXa','onProfileSimpleChanged','9wiVvAa','onProfileDetailInfoChanged','3317202XuoRDq','143064dBKhQa','onStrangerRemarkChanged','onSelfStatusChanged','2529700rBrXpY'];_0x5859=function(){return _0x187b4a;};return _0x5859();}function _0x3a24(_0x10a6ed,_0x5373f0){var _0x585933=_0x5859();return _0x3a24=function(_0x3a24e6,_0x5f38b6){_0x3a24e6=_0x3a24e6-0x109;var _0x33def0=_0x585933[_0x3a24e6];return _0x33def0;},_0x3a24(_0x10a6ed,_0x5373f0);}(function(_0x1325fd,_0x33e1d6){var _0x198453=_0x3a24,_0x1725fc=_0x1325fd();while(!![]){try{var _0x9de9a3=-parseInt(_0x198453(0x10b))/0x1+-parseInt(_0x198453(0x10c))/0x2*(parseInt(_0x198453(0x10f))/0x3)+-parseInt(_0x198453(0x115))/0x4+-parseInt(_0x198453(0x10a))/0x5+-parseInt(_0x198453(0x114))/0x6+-parseInt(_0x198453(0x10d))/0x7+-parseInt(_0x198453(0x110))/0x8*(-parseInt(_0x198453(0x112))/0x9);if(_0x9de9a3===_0x33e1d6)break;else _0x1725fc['push'](_0x1725fc['shift']());}catch(_0xb8c588){_0x1725fc['push'](_0x1725fc['shift']());}}}(_0x5859,0x7a469));export class ProfileListener{[_0x52a86e(0x111)](..._0x1cfbf4){}[_0x52a86e(0x113)](_0x35e246){}[_0x52a86e(0x10e)](..._0x522d3c){}[_0x52a86e(0x109)](..._0x55f3aa){}[_0x52a86e(0x116)](..._0x28f2b9){}} \ 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 bd6b3c30..fad034c5 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x1f25f4=_0x1296;function _0x1296(_0xe6fa21,_0x56afbe){var _0x4a9037=_0x4a90();return _0x1296=function(_0x129696,_0xf53c3f){_0x129696=_0x129696-0x154;var _0xa47e1c=_0x4a9037[_0x129696];return _0xa47e1c;},_0x1296(_0xe6fa21,_0x56afbe);}(function(_0x576a50,_0x29ec95){var _0x3cdc47=_0x1296,_0xed0b24=_0x576a50();while(!![]){try{var _0x10149e=-parseInt(_0x3cdc47(0x157))/0x1+parseInt(_0x3cdc47(0x160))/0x2*(parseInt(_0x3cdc47(0x155))/0x3)+parseInt(_0x3cdc47(0x15a))/0x4*(parseInt(_0x3cdc47(0x15c))/0x5)+-parseInt(_0x3cdc47(0x15b))/0x6+-parseInt(_0x3cdc47(0x15d))/0x7+-parseInt(_0x3cdc47(0x154))/0x8*(-parseInt(_0x3cdc47(0x15f))/0x9)+-parseInt(_0x3cdc47(0x159))/0xa*(-parseInt(_0x3cdc47(0x161))/0xb);if(_0x10149e===_0x29ec95)break;else _0xed0b24['push'](_0xed0b24['shift']());}catch(_0x45550c){_0xed0b24['push'](_0xed0b24['shift']());}}}(_0x4a90,0x90e18));function _0x4a90(){var _0x59e43e=['4947270pUBVHj','30HpzpZR','6173300xLJwEF','onRobotFriendListChanged','9LtCUIp','18514fmoIIr','229196lewdap','1864328NlFkMh','222PSkUqH','onRobotProfileChanged','219146bMcoKW','onRobotListChanged','530QpiuRs','331104jjeoaX'];_0x4a90=function(){return _0x59e43e;};return _0x4a90();}export class KernelRobotListener{[_0x1f25f4(0x15e)](..._0xa26471){}[_0x1f25f4(0x158)](..._0x3ae689){}[_0x1f25f4(0x156)](..._0x5daa5c){}} \ No newline at end of file +var _0x49d835=_0x4448;(function(_0x2b88d1,_0x165906){var _0x250d41=_0x4448,_0x325332=_0x2b88d1();while(!![]){try{var _0x1fd45a=parseInt(_0x250d41(0x67))/0x1+parseInt(_0x250d41(0x65))/0x2*(-parseInt(_0x250d41(0x66))/0x3)+-parseInt(_0x250d41(0x6a))/0x4+parseInt(_0x250d41(0x6b))/0x5*(-parseInt(_0x250d41(0x69))/0x6)+-parseInt(_0x250d41(0x6e))/0x7+parseInt(_0x250d41(0x68))/0x8*(parseInt(_0x250d41(0x6f))/0x9)+parseInt(_0x250d41(0x6d))/0xa;if(_0x1fd45a===_0x165906)break;else _0x325332['push'](_0x325332['shift']());}catch(_0x29e51e){_0x325332['push'](_0x325332['shift']());}}}(_0xa9c1,0xd5a32));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x59bf7e){}[_0x49d835(0x70)](..._0x2f218c){}[_0x49d835(0x6c)](..._0x454e6d){}}function _0x4448(_0x5cdbae,_0x291bea){var _0xa9c1f9=_0xa9c1();return _0x4448=function(_0x444844,_0x47f211){_0x444844=_0x444844-0x65;var _0x421a11=_0xa9c1f9[_0x444844];return _0x421a11;},_0x4448(_0x5cdbae,_0x291bea);}function _0xa9c1(){var _0x199ed0=['12MkRDKe','200143diImGs','5313584ajUqSY','2202PwMihz','5751848kYsTuG','3715OdHEAk','onRobotProfileChanged','32992000yFegMp','5454428GBdqCG','9qPZjbR','onRobotListChanged','399318XTbeMT'];_0xa9c1=function(){return _0x199ed0;};return _0xa9c1();} \ 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 97490106..6bc47cdf 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x13bee0=_0x2a8e;function _0x2a8e(_0x1bc68c,_0x76453e){var _0x1f15d2=_0x1f15();return _0x2a8e=function(_0x2a8e9b,_0x5c4ac6){_0x2a8e9b=_0x2a8e9b-0x19d;var _0x2067f5=_0x1f15d2[_0x2a8e9b];return _0x2067f5;},_0x2a8e(_0x1bc68c,_0x76453e);}function _0x1f15(){var _0x3e0f1a=['2086260BiyGJy','1954128DLCMid','onGetSelfTinyId','6ZCQZOu','onOpentelemetryInit','440973FTJPVK','928002WCxavu','onUserOnlineResult','onSessionInitComplete','1661779iqlzto','146636lXtUhd','5fjhlrs','onNTSessionCreate','526300ElywFa'];_0x1f15=function(){return _0x3e0f1a;};return _0x1f15();}(function(_0x32f5b2,_0x1a91f9){var _0x539f5d=_0x2a8e,_0xef8f6f=_0x32f5b2();while(!![]){try{var _0x526d79=parseInt(_0x539f5d(0x19e))/0x1+-parseInt(_0x539f5d(0x1a9))/0x2*(parseInt(_0x539f5d(0x1a2))/0x3)+parseInt(_0x539f5d(0x19f))/0x4+parseInt(_0x539f5d(0x1aa))/0x5*(-parseInt(_0x539f5d(0x1a5))/0x6)+-parseInt(_0x539f5d(0x1a8))/0x7+-parseInt(_0x539f5d(0x1a0))/0x8+parseInt(_0x539f5d(0x1a4))/0x9;if(_0x526d79===_0x1a91f9)break;else _0xef8f6f['push'](_0xef8f6f['shift']());}catch(_0x53aae4){_0xef8f6f['push'](_0xef8f6f['shift']());}}}(_0x1f15,0x4ca28));export class SessionListener{[_0x13bee0(0x19d)](_0x10b7b9){}['onGProSessionCreate'](_0x514062){}[_0x13bee0(0x1a7)](_0x5b31a8){}[_0x13bee0(0x1a3)](_0x32182d){}[_0x13bee0(0x1a6)](_0x4ee906){}[_0x13bee0(0x1a1)](_0x1f38e8){}} \ No newline at end of file +function _0x137f(){var _0x5b5ac1=['onGProSessionCreate','16432196uBNnST','onGetSelfTinyId','526083jbVirj','onSessionInitComplete','29300apFeTq','onOpentelemetryInit','35DfXEFj','153lxykfk','3hdoxNU','1512360pbfAch','onNTSessionCreate','1062602KnMDAr','627930OlCDtd','6mFAnvE','998376Dopkgw'];_0x137f=function(){return _0x5b5ac1;};return _0x137f();}function _0x1dec(_0xbc24ba,_0x580a2e){var _0x137fcb=_0x137f();return _0x1dec=function(_0x1decc4,_0x3e3a43){_0x1decc4=_0x1decc4-0xb8;var _0x4250a7=_0x137fcb[_0x1decc4];return _0x4250a7;},_0x1dec(_0xbc24ba,_0x580a2e);}var _0x57fa79=_0x1dec;(function(_0x274a00,_0x4108e1){var _0x375dae=_0x1dec,_0x28c3f2=_0x274a00();while(!![]){try{var _0x15ef38=parseInt(_0x375dae(0xc2))/0x1+parseInt(_0x375dae(0xbb))/0x2*(-parseInt(_0x375dae(0xb8))/0x3)+-parseInt(_0x375dae(0xb9))/0x4+-parseInt(_0x375dae(0xbc))/0x5*(parseInt(_0x375dae(0xbd))/0x6)+-parseInt(_0x375dae(0xc6))/0x7*(parseInt(_0x375dae(0xbe))/0x8)+-parseInt(_0x375dae(0xc7))/0x9*(-parseInt(_0x375dae(0xc4))/0xa)+parseInt(_0x375dae(0xc0))/0xb;if(_0x15ef38===_0x4108e1)break;else _0x28c3f2['push'](_0x28c3f2['shift']());}catch(_0x283e4f){_0x28c3f2['push'](_0x28c3f2['shift']());}}}(_0x137f,0x6448f));export class SessionListener{[_0x57fa79(0xba)](_0x396558){}[_0x57fa79(0xbf)](_0x5d314d){}[_0x57fa79(0xc3)](_0x41451a){}[_0x57fa79(0xc5)](_0x1dc25c){}['onUserOnlineResult'](_0x5bbbfa){}[_0x57fa79(0xc1)](_0x269641){}} \ 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 f82099ec..109130e4 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0x4bcb(){var _0x2e073d=['402YqOXmJ','1382RLqBrv','onCleanCacheStorageChanged','18242tcCBLx','12876ELYruA','onChatCleanDone','305703RfVtuO','onCleanCacheProgressChanged','11XpuKUf','6411290wlMPZm','5HfXylm','14183ByGyEH','1023477AlXaXF','onFinishScan','879188OIVscd','588RDZJSx','onScanCacheProgressChanged','104ezRsHH'];_0x4bcb=function(){return _0x2e073d;};return _0x4bcb();}var _0x1bfd9a=_0x545f;function _0x545f(_0xc4688d,_0xcf6984){var _0x4bcb74=_0x4bcb();return _0x545f=function(_0x545f14,_0x2306fe){_0x545f14=_0x545f14-0x85;var _0x66053=_0x4bcb74[_0x545f14];return _0x66053;},_0x545f(_0xc4688d,_0xcf6984);}(function(_0x23f49f,_0x3a829c){var _0x4d4ae7=_0x545f,_0x2e0723=_0x23f49f();while(!![]){try{var _0x230df2=-parseInt(_0x4d4ae7(0x8d))/0x1*(parseInt(_0x4d4ae7(0x91))/0x2)+parseInt(_0x4d4ae7(0x8a))/0x3+parseInt(_0x4d4ae7(0x8c))/0x4*(parseInt(_0x4d4ae7(0x88))/0x5)+-parseInt(_0x4d4ae7(0x90))/0x6*(-parseInt(_0x4d4ae7(0x93))/0x7)+-parseInt(_0x4d4ae7(0x8f))/0x8*(parseInt(_0x4d4ae7(0x96))/0x9)+parseInt(_0x4d4ae7(0x87))/0xa*(-parseInt(_0x4d4ae7(0x86))/0xb)+parseInt(_0x4d4ae7(0x94))/0xc*(parseInt(_0x4d4ae7(0x89))/0xd);if(_0x230df2===_0x3a829c)break;else _0x2e0723['push'](_0x2e0723['shift']());}catch(_0x38f78a){_0x2e0723['push'](_0x2e0723['shift']());}}}(_0x4bcb,0x65da9));export class StorageCleanListener{[_0x1bfd9a(0x85)](_0x23cfe2){}[_0x1bfd9a(0x8e)](_0x17e203){}[_0x1bfd9a(0x92)](_0x24d495){}[_0x1bfd9a(0x8b)](_0xb128f1){}[_0x1bfd9a(0x95)](_0x522b52){}} \ No newline at end of file +var _0x43d177=_0x4364;(function(_0x466b15,_0x1c300e){var _0xd5d638=_0x4364,_0x1770dc=_0x466b15();while(!![]){try{var _0x1ac55a=-parseInt(_0xd5d638(0xec))/0x1*(-parseInt(_0xd5d638(0xf0))/0x2)+parseInt(_0xd5d638(0xeb))/0x3*(-parseInt(_0xd5d638(0xef))/0x4)+-parseInt(_0xd5d638(0xea))/0x5*(parseInt(_0xd5d638(0xf1))/0x6)+-parseInt(_0xd5d638(0xe9))/0x7*(parseInt(_0xd5d638(0xf2))/0x8)+-parseInt(_0xd5d638(0xe7))/0x9*(-parseInt(_0xd5d638(0xee))/0xa)+parseInt(_0xd5d638(0xe6))/0xb*(-parseInt(_0xd5d638(0xed))/0xc)+parseInt(_0xd5d638(0xe5))/0xd*(parseInt(_0xd5d638(0xe3))/0xe);if(_0x1ac55a===_0x1c300e)break;else _0x1770dc['push'](_0x1770dc['shift']());}catch(_0x497d5f){_0x1770dc['push'](_0x1770dc['shift']());}}}(_0x1d79,0x32bb2));function _0x4364(_0x2c7c68,_0x274ecf){var _0x1d79c5=_0x1d79();return _0x4364=function(_0x4364a0,_0x4c3c10){_0x4364a0=_0x4364a0-0xe2;var _0x118370=_0x1d79c5[_0x4364a0];return _0x118370;},_0x4364(_0x2c7c68,_0x274ecf);}function _0x1d79(){var _0x33aa80=['onScanCacheProgressChanged','25064uIIAZG','11qxTSxE','2718DrPcZE','onFinishScan','10073tZByaD','18500PuqmDn','1143642UyLdXX','141974DKyYUe','4519344hnFYVE','3010qbVoLc','4pRPJYb','2psJRYB','6ktsnbT','2144IjbEkA','onCleanCacheStorageChanged','8148UwQXzV'];_0x1d79=function(){return _0x33aa80;};return _0x1d79();}export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x59479e){}[_0x43d177(0xe4)](_0x15a624){}[_0x43d177(0xe2)](_0x3aeee6){}[_0x43d177(0xe8)](_0x411fed){}['onChatCleanDone'](_0x581957){}} \ 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 2f7b543d..cfa5877b 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x4f7a3b,_0x45c82a){var _0x2e4e72=_0x7afd,_0xbbe72c=_0x4f7a3b();while(!![]){try{var _0x2be417=parseInt(_0x2e4e72(0x18e))/0x1+parseInt(_0x2e4e72(0x191))/0x2*(parseInt(_0x2e4e72(0x192))/0x3)+parseInt(_0x2e4e72(0x18d))/0x4+parseInt(_0x2e4e72(0x18f))/0x5*(parseInt(_0x2e4e72(0x195))/0x6)+parseInt(_0x2e4e72(0x190))/0x7+-parseInt(_0x2e4e72(0x18c))/0x8*(-parseInt(_0x2e4e72(0x193))/0x9)+-parseInt(_0x2e4e72(0x194))/0xa;if(_0x2be417===_0x45c82a)break;else _0xbbe72c['push'](_0xbbe72c['shift']());}catch(_0x290e26){_0xbbe72c['push'](_0xbbe72c['shift']());}}}(_0x31cf,0xd3403));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x7afd(_0x874361,_0x44a754){var _0x31cfff=_0x31cf();return _0x7afd=function(_0x7afdcd,_0x1e7212){_0x7afdcd=_0x7afdcd-0x18c;var _0x2fe101=_0x31cfff[_0x7afdcd];return _0x2fe101;},_0x7afd(_0x874361,_0x44a754);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x31cf(){var _0x2507f0=['21nGWagR','9ALPGEe','66911210ogIYfT','6zEuXnQ','11933624fzVGAI','4620800hIGntN','1523365dLFQvF','3466655BvKinM','9971619AvqURV','362368SbyYDb'];_0x31cf=function(){return _0x2507f0;};return _0x31cf();}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x2ba300,_0x427578){var _0x33688d=_0x3a84,_0x39efff=_0x2ba300();while(!![]){try{var _0x18c74a=parseInt(_0x33688d(0x71))/0x1+-parseInt(_0x33688d(0x79))/0x2*(-parseInt(_0x33688d(0x72))/0x3)+-parseInt(_0x33688d(0x74))/0x4*(parseInt(_0x33688d(0x73))/0x5)+-parseInt(_0x33688d(0x76))/0x6+-parseInt(_0x33688d(0x78))/0x7+parseInt(_0x33688d(0x70))/0x8+-parseInt(_0x33688d(0x77))/0x9*(-parseInt(_0x33688d(0x75))/0xa);if(_0x18c74a===_0x427578)break;else _0x39efff['push'](_0x39efff['shift']());}catch(_0x3e274c){_0x39efff['push'](_0x39efff['shift']());}}}(_0x4ebe,0x8bcf7));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x4ebe(){var _0x1612c7=['75084PlLwej','60EEVTXt','318385zACTdk','68PCNpHn','30GgnUwU','5270880ywNynv','5780547HUnfDC','5441947UbocTZ','77108HzoJuO','4304480NJLlTY'];_0x4ebe=function(){return _0x1612c7;};return _0x4ebe();}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';function _0x3a84(_0x5f05f7,_0x7bd4e1){var _0x4ebeaa=_0x4ebe();return _0x3a84=function(_0x3a84f9,_0x287253){_0x3a84f9=_0x3a84f9-0x70;var _0x4ea912=_0x4ebeaa[_0x3a84f9];return _0x4ea912;},_0x3a84(_0x5f05f7,_0x7bd4e1);}export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/NodeIKernelProfileService.d.ts b/src/core.lib/src/services/NodeIKernelProfileService.d.ts index ff6a9fee..7bafe8be 100644 --- a/src/core.lib/src/services/NodeIKernelProfileService.d.ts +++ b/src/core.lib/src/services/NodeIKernelProfileService.d.ts @@ -1,3 +1,4 @@ +import { ModifyProfileParams } from '../entities'; import { NodeIKernelProfileListener } from '../listeners'; import { GeneralCallResult } from '@/core/services/common'; export interface NodeIKernelProfileService { @@ -10,7 +11,7 @@ export interface NodeIKernelProfileService { enumCityOptions(...args: unknown[]): unknown; enumAreaOptions(...args: unknown[]): unknown; modifySelfProfile(...args: unknown[]): unknown; - modifyDesktopMiniProfile(...args: unknown[]): unknown; + modifyDesktopMiniProfile(param: ModifyProfileParams): Promise; setNickName(...args: unknown[]): unknown; setLongNick(...args: unknown[]): unknown; setBirthday(...args: unknown[]): unknown; diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index b9d4ce08..7f0cfc2d 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x1af58b,_0x561007){var _0x432c8c=_0x5f23,_0x3e42de=_0x1af58b();while(!![]){try{var _0x19f019=-parseInt(_0x432c8c(0x1b8))/0x1+parseInt(_0x432c8c(0x1b2))/0x2*(-parseInt(_0x432c8c(0x1b4))/0x3)+-parseInt(_0x432c8c(0x1b6))/0x4+parseInt(_0x432c8c(0x1b9))/0x5+-parseInt(_0x432c8c(0x1ba))/0x6+parseInt(_0x432c8c(0x1b5))/0x7+parseInt(_0x432c8c(0x1b7))/0x8*(parseInt(_0x432c8c(0x1b3))/0x9);if(_0x19f019===_0x561007)break;else _0x3e42de['push'](_0x3e42de['shift']());}catch(_0x3090f7){_0x3e42de['push'](_0x3e42de['shift']());}}}(_0xff06,0xdfa87));function _0xff06(){var _0x49e85a=['7891520EeJaHB','71832SXHwlL','5164520qRCrDf','195453ueXFys','8161475KGdVfp','7016034lbkQCO','19252bYSjWI','18RLtcLd','546AoXxAA'];_0xff06=function(){return _0x49e85a;};return _0xff06();}function _0x5f23(_0x55ab8b,_0x2e8ce7){var _0xff064c=_0xff06();return _0x5f23=function(_0x5f2357,_0x7c2036){_0x5f2357=_0x5f2357-0x1b2;var _0x3d37a1=_0xff064c[_0x5f2357];return _0x3d37a1;},_0x5f23(_0x55ab8b,_0x2e8ce7);}export var GeneralCallResultStatus;(function(_0x18e1c2){_0x18e1c2[_0x18e1c2['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x4157e3,_0x41167f){var _0x4e8c07=_0x1027,_0x528f86=_0x4157e3();while(!![]){try{var _0x3f13f5=-parseInt(_0x4e8c07(0x19f))/0x1*(-parseInt(_0x4e8c07(0x199))/0x2)+-parseInt(_0x4e8c07(0x1a0))/0x3*(-parseInt(_0x4e8c07(0x1a1))/0x4)+parseInt(_0x4e8c07(0x19e))/0x5*(parseInt(_0x4e8c07(0x198))/0x6)+parseInt(_0x4e8c07(0x1a2))/0x7*(parseInt(_0x4e8c07(0x19a))/0x8)+-parseInt(_0x4e8c07(0x19b))/0x9+-parseInt(_0x4e8c07(0x19d))/0xa+-parseInt(_0x4e8c07(0x19c))/0xb;if(_0x3f13f5===_0x41167f)break;else _0x528f86['push'](_0x528f86['shift']());}catch(_0x28ac16){_0x528f86['push'](_0x528f86['shift']());}}}(_0x11c6,0x2a72d));function _0x1027(_0x4e18df,_0x1b3676){var _0x11c6eb=_0x11c6();return _0x1027=function(_0x1027fc,_0x592a4f){_0x1027fc=_0x1027fc-0x198;var _0x26cffd=_0x11c6eb[_0x1027fc];return _0x26cffd;},_0x1027(_0x4e18df,_0x1b3676);}function _0x11c6(){var _0x574fd7=['5ShHhHJ','1RXrdrm','3IBWkKr','699076jJGUBV','33705Kmwwpv','1875702PswfNs','75562jOwoIo','144xmgjGe','1672677ffgShd','757493BXKeWB','1832520etQyiv'];_0x11c6=function(){return _0x574fd7;};return _0x11c6();}export var GeneralCallResultStatus;(function(_0x16034c){_0x16034c[_0x16034c['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 f9323c9f..3362f543 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0xb15364,_0x2efa72){var _0x351af8=_0x41e1,_0x2418b2=_0xb15364();while(!![]){try{var _0x7765f8=-parseInt(_0x351af8(0x1d4))/0x1+-parseInt(_0x351af8(0x1d0))/0x2*(-parseInt(_0x351af8(0x1d2))/0x3)+parseInt(_0x351af8(0x1cf))/0x4+parseInt(_0x351af8(0x1d8))/0x5*(-parseInt(_0x351af8(0x1d7))/0x6)+-parseInt(_0x351af8(0x1d5))/0x7+parseInt(_0x351af8(0x1d3))/0x8*(parseInt(_0x351af8(0x1d1))/0x9)+parseInt(_0x351af8(0x1d6))/0xa;if(_0x7765f8===_0x2efa72)break;else _0x2418b2['push'](_0x2418b2['shift']());}catch(_0x227d3f){_0x2418b2['push'](_0x2418b2['shift']());}}}(_0x528d,0xa50aa));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';function _0x528d(){var _0x76937e=['359092vQLnwO','9150883RCuwPi','4942850TCKxqv','1176OPMgxY','11485INQsdB','3135544nrhtzk','10ERctPX','262242xEsqOX','576474tbidOH','152XajYBa'];_0x528d=function(){return _0x76937e;};return _0x528d();}export*from'./NodeIKernelRobotService';function _0x41e1(_0x105eed,_0x659bb4){var _0x528dfd=_0x528d();return _0x41e1=function(_0x41e169,_0x2a364d){_0x41e169=_0x41e169-0x1cf;var _0x1043d5=_0x528dfd[_0x41e169];return _0x1043d5;},_0x41e1(_0x105eed,_0x659bb4);}export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x20c945,_0x5a14f3){var _0x42f636=_0x20e2,_0x2f6dba=_0x20c945();while(!![]){try{var _0x3a15b6=-parseInt(_0x42f636(0x8f))/0x1+-parseInt(_0x42f636(0x88))/0x2+-parseInt(_0x42f636(0x8e))/0x3*(parseInt(_0x42f636(0x87))/0x4)+-parseInt(_0x42f636(0x8a))/0x5*(-parseInt(_0x42f636(0x8c))/0x6)+parseInt(_0x42f636(0x90))/0x7+parseInt(_0x42f636(0x89))/0x8+parseInt(_0x42f636(0x8d))/0x9*(-parseInt(_0x42f636(0x8b))/0xa);if(_0x3a15b6===_0x5a14f3)break;else _0x2f6dba['push'](_0x2f6dba['shift']());}catch(_0x5ee0dc){_0x2f6dba['push'](_0x2f6dba['shift']());}}}(_0x2552,0x1d296));function _0x20e2(_0x4410bd,_0x1424b5){var _0x2552ae=_0x2552();return _0x20e2=function(_0x20e215,_0x5e1873){_0x20e215=_0x20e215-0x87;var _0x2d0223=_0x2552ae[_0x20e215];return _0x2d0223;},_0x20e2(_0x4410bd,_0x1424b5);}export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';function _0x2552(){var _0x40cefa=['25490WnhMln','1404008fKTHOD','44110mDGtLU','194960pFTmbh','102votVzM','63zbbSGL','6MgfCiY','898sNqyXg','108766cckkHc','142904dRScKF'];_0x2552=function(){return _0x40cefa;};return _0x2552();}export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 4a6b7313..1c2a5fbb 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x130b2f,_0x5d157a){const _0x375525=_0x4737,_0x495730=_0x130b2f();while(!![]){try{const _0x4be9c3=parseInt(_0x375525(0xca))/0x1+parseInt(_0x375525(0xd1))/0x2*(parseInt(_0x375525(0xc4))/0x3)+parseInt(_0x375525(0xc5))/0x4+parseInt(_0x375525(0xcf))/0x5+parseInt(_0x375525(0xcc))/0x6+parseInt(_0x375525(0xbf))/0x7*(parseInt(_0x375525(0xcd))/0x8)+parseInt(_0x375525(0xce))/0x9*(-parseInt(_0x375525(0xc0))/0xa);if(_0x4be9c3===_0x5d157a)break;else _0x495730['push'](_0x495730['shift']());}catch(_0x1684c1){_0x495730['push'](_0x495730['shift']());}}}(_0x15e0,0x30a8c));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x284be3 from'node:path';import _0x16094d from'node:fs';import{getMachineId}from'@/common/utils/system';function _0x4737(_0x304692,_0xda5585){const _0x15e005=_0x15e0();return _0x4737=function(_0x47373f,_0x50169d){_0x47373f=_0x47373f-0xbf;let _0x513b6c=_0x15e005[_0x47373f];return _0x513b6c;},_0x4737(_0x304692,_0xda5585);}function _0x15e0(){const _0x36ff85=['145648xJjaQY','477Tbpskn','1146040asItWN','cdmge','4798jUTaer','63rRKzbZ','170350dMIEeT','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','mkdirSync','version','174siSlxh','873532mgcgbm','NapCat','temp','gsrVu','join','234513pRvSQC','curVersion','702378gGWusP'];_0x15e0=function(){return _0x36ff85;};return _0x15e0();}export const sessionConfig={};export async function genSessionConfig(_0x584ed6,_0x45dc38,_0x172ee0){const _0x328ee3=_0x4737,_0x1a216d={'cdmge':_0x328ee3(0xc7),'gsrVu':function(_0x3ddc3f){return _0x3ddc3f();}},_0x2ec4c4=_0x284be3[_0x328ee3(0xc9)](_0x172ee0,_0x328ee3(0xc6),_0x1a216d[_0x328ee3(0xd0)]);_0x16094d[_0x328ee3(0xc2)](_0x2ec4c4,{'recursive':!![]});let _0x4a7487=await _0x1a216d[_0x328ee3(0xc8)](getMachineId);const _0xe72a97={'selfUin':_0x584ed6,'selfUid':_0x45dc38,'desktopPathConfig':{'account_path':_0x172ee0},'clientVer':qqVersionConfigInfo[_0x328ee3(0xcb)],'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':_0x2ec4c4,'deviceInfo':{'guid':_0x4a7487,'buildVer':qqPkgInfo[_0x328ee3(0xc3)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x328ee3(0xc1)};return Object['assign'](sessionConfig,_0xe72a97),_0xe72a97;} \ No newline at end of file +function _0x3c95(){const _0x254916=['4190sDaOul','2VbLKqL','816299wdGKQT','1619696oBAILL','36azYope','temp','58915GMbipC','60719cOYVbO','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','7bkSMET','3249vjoiBE','assign','mkdirSync','curVersion','396027rRSkrv','1127910KgftgE'];_0x3c95=function(){return _0x254916;};return _0x3c95();}(function(_0x497a00,_0x3e3806){const _0x2c25af=_0x2eb9,_0x3560c5=_0x497a00();while(!![]){try{const _0xd7d0df=parseInt(_0x2c25af(0x7e))/0x1+-parseInt(_0x2c25af(0x88))/0x2*(-parseInt(_0x2c25af(0x85))/0x3)+-parseInt(_0x2c25af(0x7b))/0x4*(-parseInt(_0x2c25af(0x7d))/0x5)+-parseInt(_0x2c25af(0x86))/0x6+parseInt(_0x2c25af(0x80))/0x7*(-parseInt(_0x2c25af(0x8a))/0x8)+-parseInt(_0x2c25af(0x81))/0x9*(-parseInt(_0x2c25af(0x87))/0xa)+parseInt(_0x2c25af(0x89))/0xb;if(_0xd7d0df===_0x3e3806)break;else _0x3560c5['push'](_0x3560c5['shift']());}catch(_0x2653dd){_0x3560c5['push'](_0x3560c5['shift']());}}}(_0x3c95,0x20aa4));function _0x2eb9(_0x1c8901,_0x35a88f){const _0x3c9570=_0x3c95();return _0x2eb9=function(_0x2eb9c2,_0x32ecff){_0x2eb9c2=_0x2eb9c2-0x7b;let _0x32ed60=_0x3c9570[_0x2eb9c2];return _0x32ed60;},_0x2eb9(_0x1c8901,_0x35a88f);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x51a0c1 from'node:path';import _0x282f5e from'node:fs';import{getMachineId}from'@/common/utils/system';export const sessionConfig={};export async function genSessionConfig(_0x33acc4,_0x486ff0,_0x4372a9){const _0xda5dce=_0x2eb9,_0x21c9af=_0x51a0c1['join'](_0x4372a9,'NapCat',_0xda5dce(0x7c));_0x282f5e[_0xda5dce(0x83)](_0x21c9af,{'recursive':!![]});let _0x3f2155=await getMachineId();const _0x49fc79={'selfUin':_0x33acc4,'selfUid':_0x486ff0,'desktopPathConfig':{'account_path':_0x4372a9},'clientVer':qqVersionConfigInfo[_0xda5dce(0x84)],'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':_0x21c9af,'deviceInfo':{'guid':_0x3f2155,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0xda5dce(0x7f)};return Object[_0xda5dce(0x82)](sessionConfig,_0x49fc79),_0x49fc79;} \ 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 362dd375..2d5bf756 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -function _0x4f3e(_0x1f9537,_0x25530f){const _0xf228bd=_0xf228();return _0x4f3e=function(_0x4f3ef5,_0x2dbd62){_0x4f3ef5=_0x4f3ef5-0xf2;let _0x40c24a=_0xf228bd[_0x4f3ef5];return _0x40c24a;},_0x4f3e(_0x1f9537,_0x25530f);}const _0x1350db=_0x4f3e;(function(_0x191355,_0x1f0af5){const _0xc991a8=_0x4f3e,_0x449a71=_0x191355();while(!![]){try{const _0x1cf04f=-parseInt(_0xc991a8(0xf4))/0x1*(parseInt(_0xc991a8(0x103))/0x2)+-parseInt(_0xc991a8(0xfc))/0x3*(-parseInt(_0xc991a8(0xf6))/0x4)+-parseInt(_0xc991a8(0xfe))/0x5*(-parseInt(_0xc991a8(0xf3))/0x6)+-parseInt(_0xc991a8(0xf7))/0x7*(-parseInt(_0xc991a8(0xfd))/0x8)+parseInt(_0xc991a8(0xff))/0x9+-parseInt(_0xc991a8(0x101))/0xa*(parseInt(_0xc991a8(0xf2))/0xb)+parseInt(_0xc991a8(0x102))/0xc;if(_0x1cf04f===_0x1f0af5)break;else _0x449a71['push'](_0x449a71['shift']());}catch(_0x2083f2){_0x449a71['push'](_0x449a71['shift']());}}}(_0xf228,0x761e7));function _0xf228(){const _0x11299f=['fileLogLevel','.json','2728bUrsBv','36JnxGIZ','821557nKvzWG','consoleLog','2212LHKOlW','962157CCnmzI','join','consoleLogLevel','napcat_','uin','669YwRHjg','48vlqkAu','801510icHGPi','183960BFbBok','getConfigPath','29190kmAcMi','1188084cvUyFP','2cmJUOz'];_0xf228=function(){return _0x11299f;};return _0xf228();}import _0x3ba6cb 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']=!![];[_0x1350db(0xf5)]=!![];[_0x1350db(0x104)]=LogLevel['DEBUG'];[_0x1350db(0xf9)]=LogLevel['INFO'];constructor(){super();}[_0x1350db(0x100)](){const _0x322044=_0x1350db;return _0x3ba6cb[_0x322044(0xf8)](this['getConfigDir'](),_0x322044(0xfa)+selfInfo[_0x322044(0xfb)]+_0x322044(0x105));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x3be28e=_0x13ab;function _0xb6cf(){const _0x259f3c=['getConfigDir','4DcljsI','consoleLogLevel','INFO','getConfigPath','27765jOibfL','6919717NvQaAA','.json','fileLogLevel','12IxpqnJ','uin','37542080jJWjtP','8DhsnKU','join','DEBUG','775476ZNoQyo','897393Aopmwj','827712gJJpzE','consoleLog','6497488OPMuXl'];_0xb6cf=function(){return _0x259f3c;};return _0xb6cf();}(function(_0x27dd42,_0x56095d){const _0x59ada5=_0x13ab,_0x485dcc=_0x27dd42();while(!![]){try{const _0x15e393=-parseInt(_0x59ada5(0xe6))/0x1+-parseInt(_0x59ada5(0xea))/0x2*(-parseInt(_0x59ada5(0xe5))/0x3)+-parseInt(_0x59ada5(0xe8))/0x4+-parseInt(_0x59ada5(0xee))/0x5*(parseInt(_0x59ada5(0xde))/0x6)+-parseInt(_0x59ada5(0xef))/0x7+parseInt(_0x59ada5(0xe1))/0x8*(parseInt(_0x59ada5(0xe4))/0x9)+parseInt(_0x59ada5(0xe0))/0xa;if(_0x15e393===_0x56095d)break;else _0x485dcc['push'](_0x485dcc['shift']());}catch(_0x3f59ca){_0x485dcc['push'](_0x485dcc['shift']());}}}(_0xb6cf,0xf0f21));import _0x3b4ede from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x13ab(_0x3b23d8,_0x16a9a3){const _0xb6cfce=_0xb6cf();return _0x13ab=function(_0x13abf1,_0x53ac8e){_0x13abf1=_0x13abf1-0xdc;let _0x23b6e2=_0xb6cfce[_0x13abf1];return _0x23b6e2;},_0x13ab(_0x3b23d8,_0x16a9a3);}class Config extends ConfigBase{['fileLog']=!![];[_0x3be28e(0xe7)]=!![];[_0x3be28e(0xdd)]=LogLevel[_0x3be28e(0xe3)];[_0x3be28e(0xeb)]=LogLevel[_0x3be28e(0xec)];constructor(){super();}[_0x3be28e(0xed)](){const _0x4bb628=_0x3be28e;return _0x3b4ede[_0x4bb628(0xe2)](this[_0x4bb628(0xe9)](),'napcat_'+selfInfo[_0x4bb628(0xdf)]+_0x4bb628(0xdc));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index c57aacd8..601223bf 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -const _0x119c4b=_0x4bfe;function _0x4bfe(_0x1308fe,_0x243b6a){const _0x3440f7=_0x3440();return _0x4bfe=function(_0x4bfe2b,_0x5e873e){_0x4bfe2b=_0x4bfe2b-0x12d;let _0x5b8d3e=_0x3440f7[_0x4bfe2b];return _0x5b8d3e;},_0x4bfe(_0x1308fe,_0x243b6a);}(function(_0xadc186,_0x4ca462){const _0x2c3268=_0x4bfe,_0x436764=_0xadc186();while(!![]){try{const _0x224826=parseInt(_0x2c3268(0x12f))/0x1+parseInt(_0x2c3268(0x139))/0x2*(parseInt(_0x2c3268(0x130))/0x3)+-parseInt(_0x2c3268(0x13f))/0x4*(-parseInt(_0x2c3268(0x136))/0x5)+-parseInt(_0x2c3268(0x144))/0x6+parseInt(_0x2c3268(0x13a))/0x7*(parseInt(_0x2c3268(0x134))/0x8)+parseInt(_0x2c3268(0x12d))/0x9*(parseInt(_0x2c3268(0x137))/0xa)+-parseInt(_0x2c3268(0x142))/0xb*(parseInt(_0x2c3268(0x143))/0xc);if(_0x224826===_0x4ca462)break;else _0x436764['push'](_0x436764['shift']());}catch(_0x26c104){_0x436764['push'](_0x436764['shift']());}}}(_0x3440,0xdd789));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';function _0x3440(){const _0x7adcb6=['8873730hjmyej','GET','http://napcat-sign.wumiao.wang:2082/rkey','getTime','639OqlGbM','serverUrl','1734942jCdAwV','616269vIqgba','getRkey','isExpired','rkeyData','529776jAEdUS','HttpGetJson','6895920YnhhAY','56690RoZfGh','PVaRe','12DqIHHp','182gTqOwU','zsLlV','hJhFe','expired_time','refreshRkey','4KAHEEA','获取rkey失败','RPnwe','11GsCWSa','49018020StQTCS'];_0x3440=function(){return _0x7adcb6;};return _0x3440();}class RkeyManager{[_0x119c4b(0x12e)]='';[_0x119c4b(0x133)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x231aa9){const _0x462f98=_0x119c4b;this[_0x462f98(0x12e)]=_0x231aa9;}async[_0x119c4b(0x131)](){const _0x1c05c5=_0x119c4b,_0x589c22={'PVaRe':function(_0x46dc16,_0x26b613,_0x26a863){return _0x46dc16(_0x26b613,_0x26a863);},'zsLlV':_0x1c05c5(0x140)};if(this[_0x1c05c5(0x132)]())try{await this[_0x1c05c5(0x13e)]();}catch(_0x422c02){_0x589c22[_0x1c05c5(0x138)](logError,_0x589c22[_0x1c05c5(0x13b)],_0x422c02);}return this['rkeyData'];}[_0x119c4b(0x132)](){const _0x2e38e9=_0x119c4b,_0x18207f={'BMsjX':function(_0x2f0d18,_0x1f536b){return _0x2f0d18/_0x1f536b;},'RPnwe':function(_0x31d72d,_0x596c55){return _0x31d72d>_0x596c55;}},_0x1610a9=_0x18207f['BMsjX'](new Date()[_0x2e38e9(0x147)](),0x3e8);return _0x18207f[_0x2e38e9(0x141)](_0x1610a9,this[_0x2e38e9(0x133)][_0x2e38e9(0x13d)]);}async[_0x119c4b(0x13e)](){const _0x286ae5=_0x119c4b,_0x1e351c={'hJhFe':_0x286ae5(0x145)};this[_0x286ae5(0x133)]=await RequestUtil[_0x286ae5(0x135)](this['serverUrl'],_0x1e351c[_0x286ae5(0x13c)]);}}export const rkeyManager=new RkeyManager(_0x119c4b(0x146)); \ No newline at end of file +const _0x3535b6=_0x3a45;(function(_0x140eff,_0x49ea79){const _0x568627=_0x3a45,_0xffff43=_0x140eff();while(!![]){try{const _0x8a63e6=parseInt(_0x568627(0x15e))/0x1+-parseInt(_0x568627(0x15f))/0x2+parseInt(_0x568627(0x15b))/0x3*(parseInt(_0x568627(0x151))/0x4)+-parseInt(_0x568627(0x15c))/0x5+parseInt(_0x568627(0x159))/0x6+-parseInt(_0x568627(0x154))/0x7+parseInt(_0x568627(0x158))/0x8*(parseInt(_0x568627(0x161))/0x9);if(_0x8a63e6===_0x49ea79)break;else _0xffff43['push'](_0xffff43['shift']());}catch(_0x2685cd){_0xffff43['push'](_0xffff43['shift']());}}}(_0x5b9a,0x7481f));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x3535b6(0x14f)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x469226){this['serverUrl']=_0x469226;}async[_0x3535b6(0x153)](){const _0x34de2d=_0x3535b6;if(this[_0x34de2d(0x162)]())try{await this['refreshRkey']();}catch(_0x48d023){logError(_0x34de2d(0x163),_0x48d023);}return this[_0x34de2d(0x15d)];}[_0x3535b6(0x162)](){const _0x3e201a=_0x3535b6,_0xc5b4f={'euJCb':function(_0x5b091e,_0x16bda2){return _0x5b091e/_0x16bda2;}},_0xa42795=_0xc5b4f[_0x3e201a(0x15a)](new Date()[_0x3e201a(0x155)](),0x3e8);return _0xa42795>this[_0x3e201a(0x15d)][_0x3e201a(0x150)];}async['refreshRkey'](){const _0x10d2d2=_0x3535b6,_0xd82f09={'KaVow':_0x10d2d2(0x152)};this['rkeyData']=await RequestUtil[_0x10d2d2(0x156)](this['serverUrl'],_0xd82f09[_0x10d2d2(0x157)]);}}function _0x3a45(_0x4c9b1b,_0x4fb96d){const _0x5b9a35=_0x5b9a();return _0x3a45=function(_0x3a45e0,_0x26c2a6){_0x3a45e0=_0x3a45e0-0x14f;let _0x1c32fb=_0x5b9a35[_0x3a45e0];return _0x1c32fb;},_0x3a45(_0x4c9b1b,_0x4fb96d);}function _0x5b9a(){const _0x451c5b=['HttpGetJson','KaVow','3186416PdyufW','3075252uqcGPe','euJCb','3TAeRdD','2140910USQmtA','rkeyData','297702kANwVr','1426174RnTLdh','http://napcat-sign.wumiao.wang:2082/rkey','9brDSEe','isExpired','获取rkey失败','serverUrl','expired_time','2304344bTGiMM','GET','getRkey','1163036xWWuUN','getTime'];_0x5b9a=function(){return _0x451c5b;};return _0x5b9a();}export const rkeyManager=new RkeyManager(_0x3535b6(0x160)); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 628373f0..5de8aaf3 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -function _0x45b6(_0x45a6bd,_0xd29739){const _0x5af351=_0x5af3();return _0x45b6=function(_0x45b6b8,_0x2f5ec6){_0x45b6b8=_0x45b6b8-0x14a;let _0x4a843b=_0x5af351[_0x45b6b8];return _0x4a843b;},_0x45b6(_0x45a6bd,_0xd29739);}const _0x10d576=_0x45b6;function _0x5af3(){const _0x48a50a=['default','107608MHAipW','resources/app/versions/','30108045ihooVQ','file://','17456OuvoHE','705jfYskg','378nwTjDm','dirname','existsSync','7141950drYpHL','curVersion','execPath','7428485hvyQHt','join','url','8848fvZhEN','5532751cICRdy','resolve','399ehEkqz','./resources/app/wrapper.node','replace','6EIqRjl','\x0amodule.exports\x20=\x20require(\x22','\x22);\x0aexports\x20=\x20module.exports;\x0a'];_0x5af3=function(){return _0x48a50a;};return _0x5af3();}(function(_0x1f5a7e,_0x4637bb){const _0x470cfe=_0x45b6,_0x5680e1=_0x1f5a7e();while(!![]){try{const _0x211d25=parseInt(_0x470cfe(0x150))/0x1*(-parseInt(_0x470cfe(0x14d))/0x2)+parseInt(_0x470cfe(0x15c))/0x3*(-parseInt(_0x470cfe(0x15b))/0x4)+parseInt(_0x470cfe(0x14a))/0x5+parseInt(_0x470cfe(0x153))/0x6*(parseInt(_0x470cfe(0x14e))/0x7)+parseInt(_0x470cfe(0x157))/0x8*(-parseInt(_0x470cfe(0x15d))/0x9)+-parseInt(_0x470cfe(0x160))/0xa+parseInt(_0x470cfe(0x159))/0xb;if(_0x211d25===_0x4637bb)break;else _0x5680e1['push'](_0x5680e1['shift']());}catch(_0xdb5995){_0x5680e1['push'](_0x5680e1['shift']());}}}(_0x5af3,0xe64e4));import _0x177702 from'node:path';import _0xbb57dd from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x10d576(0x14c)]),__dirname=dirname(__filename);let wrapperNodePath=_0x177702[_0x10d576(0x14f)](_0x177702['dirname'](process['execPath']),_0x10d576(0x151));!_0xbb57dd[_0x10d576(0x15f)](wrapperNodePath)&&(wrapperNodePath=_0x177702[_0x10d576(0x14b)](_0x177702[_0x10d576(0x15e)](process[_0x10d576(0x162)]),_0x10d576(0x158)+qqVersionConfigInfo[_0x10d576(0x161)]+'/wrapper.node'));let WrapperLoader=_0x177702[_0x10d576(0x14b)](__dirname,'WrapperLoader.cjs');_0xbb57dd['writeFileSync'](WrapperLoader,_0x10d576(0x154)+wrapperNodePath[_0x10d576(0x152)](/\\/g,'\x5c\x5c')+_0x10d576(0x155));const QQWrapper=(await import(_0x10d576(0x15a)+WrapperLoader))[_0x10d576(0x156)];export default QQWrapper; \ No newline at end of file +const _0x3f8f1b=_0xa245;(function(_0x44beee,_0x4e2e73){const _0x44928b=_0xa245,_0x246e05=_0x44beee();while(!![]){try{const _0x4b0081=parseInt(_0x44928b(0xd8))/0x1*(-parseInt(_0x44928b(0xe7))/0x2)+parseInt(_0x44928b(0xdb))/0x3+parseInt(_0x44928b(0xe6))/0x4*(-parseInt(_0x44928b(0xd5))/0x5)+parseInt(_0x44928b(0xe1))/0x6*(-parseInt(_0x44928b(0xda))/0x7)+parseInt(_0x44928b(0xdd))/0x8*(parseInt(_0x44928b(0xe0))/0x9)+-parseInt(_0x44928b(0xde))/0xa*(-parseInt(_0x44928b(0xe5))/0xb)+parseInt(_0x44928b(0xe8))/0xc;if(_0x4b0081===_0x4e2e73)break;else _0x246e05['push'](_0x246e05['shift']());}catch(_0x3bb411){_0x246e05['push'](_0x246e05['shift']());}}}(_0x5d4d,0x9249f));import _0x268d48 from'node:path';function _0xa245(_0x5afdf9,_0x2c7f58){const _0x5d4dfa=_0x5d4d();return _0xa245=function(_0xa245e7,_0x55f5b6){_0xa245e7=_0xa245e7-0xd4;let _0xc0e21d=_0x5d4dfa[_0xa245e7];return _0xc0e21d;},_0xa245(_0x5afdf9,_0x2c7f58);}import _0x5153b1 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename);function _0x5d4d(){const _0x23ebec=['4918yeGxML','curVersion','1974MntXeo','1088934xnbAld','/wrapper.node','66904ImLdYt','17390FlIxys','resources/app/versions/','144CnZbvU','15270vRwGzF','dirname','resolve','writeFileSync','1023UZbvzl','969512ERGxAL','2QtKBOm','13776600cAlosZ','\x0amodule.exports\x20=\x20require(\x22','execPath','existsSync','10mXmmeY','file://','join'];_0x5d4d=function(){return _0x23ebec;};return _0x5d4d();}let wrapperNodePath=_0x268d48[_0x3f8f1b(0xe3)](_0x268d48['dirname'](process[_0x3f8f1b(0xea)]),'./resources/app/wrapper.node');!_0x5153b1[_0x3f8f1b(0xd4)](wrapperNodePath)&&(wrapperNodePath=_0x268d48['join'](_0x268d48[_0x3f8f1b(0xe2)](process['execPath']),_0x3f8f1b(0xdf)+qqVersionConfigInfo[_0x3f8f1b(0xd9)]+_0x3f8f1b(0xdc)));let WrapperLoader=_0x268d48[_0x3f8f1b(0xd7)](__dirname,'WrapperLoader.cjs');_0x5153b1[_0x3f8f1b(0xe4)](WrapperLoader,_0x3f8f1b(0xe9)+wrapperNodePath['replace'](/\\/g,'\x5c\x5c')+'\x22);\x0aexports\x20=\x20module.exports;\x0a');const QQWrapper=(await import(_0x3f8f1b(0xd6)+WrapperLoader))['default'];export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/action/extends/SetSelfProfile.ts b/src/onebot11/action/extends/SetSelfProfile.ts new file mode 100644 index 00000000..13db0dda --- /dev/null +++ b/src/onebot11/action/extends/SetSelfProfile.ts @@ -0,0 +1,32 @@ + +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQUserApi } from '@/core/apis'; +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; + +const SchemaData = { + type: 'object', + properties: { + nick: { type: 'string' }, + longNick: { type: 'string' }, + sex: { type: 'number' }//传Sex值?建议传0 + }, + required: ['nick', 'longNick', 'sex',], +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class SetSelfProfile extends BaseAction { + actionName = ActionName.SetSelfProfile; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + let ret = await NTQQUserApi.modifySelfProfile({ + nick: payload.nick, + longNick: payload.longNick, + sex: payload.sex, + birthday: { birthday_year: '', birthday_month: '', birthday_day: '' }, + location: undefined + }); + return ret; + } +} diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index ddda85a1..013d513f 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -87,5 +87,6 @@ export enum ActionName { GetGroupSystemMsg = 'get_group_system_msg', GetOnlineClient = 'get_online_clients', OCRImage = 'ocr_image', - IOCRImage = '.ocr_image' + IOCRImage = '.ocr_image', + SetSelfProfile = "set_self_profile" }