mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Merge branch 'main' into pr/23
This commit is contained in:
@@ -4,10 +4,12 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 优化启动脚本
|
||||
* 尝试修复收不到群成员减少事件
|
||||
## 新增与调整
|
||||
* 修复非管理时群成员减少事件上报 **无法获取操作者与操作类型**
|
||||
* 修复快速重启进程清理问题
|
||||
* 优化配置文件格式 **注意备份配置**
|
||||
## 新增与调整
|
||||
* 支持WebUi热重载
|
||||
* 新增首次启动输出webui秘钥
|
||||
* 新增群荣誉信息 /get_group_honor_info
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
2
src/core
2
src/core
Submodule src/core updated: b135183567...ed10e0fc9f
@@ -1 +1 @@
|
||||
var _0x323ba7=_0x398c;(function(_0x1efda2,_0x4f19da){var _0x4a9835=_0x398c,_0x305dd2=_0x1efda2();while(!![]){try{var _0x3bde6f=parseInt(_0x4a9835(0x117))/0x1*(-parseInt(_0x4a9835(0x110))/0x2)+-parseInt(_0x4a9835(0x10e))/0x3+-parseInt(_0x4a9835(0x10f))/0x4*(-parseInt(_0x4a9835(0x11b))/0x5)+-parseInt(_0x4a9835(0x111))/0x6*(-parseInt(_0x4a9835(0x119))/0x7)+-parseInt(_0x4a9835(0x115))/0x8+parseInt(_0x4a9835(0x112))/0x9+parseInt(_0x4a9835(0x11a))/0xa*(parseInt(_0x4a9835(0x114))/0xb);if(_0x3bde6f===_0x4f19da)break;else _0x305dd2['push'](_0x305dd2['shift']());}catch(_0x76a26a){_0x305dd2['push'](_0x305dd2['shift']());}}}(_0x4763,0xb24a3));function _0x4763(){var _0x28b3fa=['3061146mhiSqg','4321384NvZVaV','onMSFStatusChange','81UckaAh','getGroupCode','172571pJsUlP','50DRqKDp','78635VCnsag','1500129IuFukg','164XFBxwp','23378VjcXvX','54LzGZgV','4132674aRsgWj','onMSFSsoError'];_0x4763=function(){return _0x28b3fa;};return _0x4763();}function _0x398c(_0x459918,_0x35f902){var _0x476342=_0x4763();return _0x398c=function(_0x398c78,_0x397eb2){_0x398c78=_0x398c78-0x10e;var _0x29f59c=_0x476342[_0x398c78];return _0x29f59c;},_0x398c(_0x459918,_0x35f902);}export class DependsAdapter{[_0x323ba7(0x116)](_0x328e1c,_0x1bd629){}[_0x323ba7(0x113)](_0x118e2a){}[_0x323ba7(0x118)](_0x2a625b){}}
|
||||
var _0x35540b=_0x1a1f;function _0x1a1f(_0x36cb84,_0x29c1ec){var _0x1644c9=_0x1644();return _0x1a1f=function(_0x1a1ffb,_0x23ba40){_0x1a1ffb=_0x1a1ffb-0xfc;var _0xec1cdc=_0x1644c9[_0x1a1ffb];return _0xec1cdc;},_0x1a1f(_0x36cb84,_0x29c1ec);}function _0x1644(){var _0x567c65=['407745rGDJKM','6678690efuqdS','4IsrSPl','10oVqkyy','72ZCiGcG','20981741mrxJbu','52uMXnQe','5498325iFsfKS','195411GtoBFY','1264235tkrdhD','onMSFStatusChange','14290urQsPS'];_0x1644=function(){return _0x567c65;};return _0x1644();}(function(_0x51eb69,_0x9ce55d){var _0x73abf6=_0x1a1f,_0x2c69bc=_0x51eb69();while(!![]){try{var _0x5efe28=-parseInt(_0x73abf6(0x105))/0x1*(parseInt(_0x73abf6(0xfe))/0x2)+-parseInt(_0x73abf6(0x107))/0x3+parseInt(_0x73abf6(0x101))/0x4*(-parseInt(_0x73abf6(0x106))/0x5)+-parseInt(_0x73abf6(0x100))/0x6+-parseInt(_0x73abf6(0xfc))/0x7*(-parseInt(_0x73abf6(0x103))/0x8)+-parseInt(_0x73abf6(0xff))/0x9+parseInt(_0x73abf6(0x102))/0xa*(parseInt(_0x73abf6(0x104))/0xb);if(_0x5efe28===_0x9ce55d)break;else _0x2c69bc['push'](_0x2c69bc['shift']());}catch(_0x59cb91){_0x2c69bc['push'](_0x2c69bc['shift']());}}}(_0x1644,0xcc9e2));export class DependsAdapter{[_0x35540b(0xfd)](_0x5544dc,_0x42e602){}['onMSFSsoError'](_0x1aa939){}['getGroupCode'](_0x3a9fa1){}}
|
@@ -1 +1 @@
|
||||
function _0x19f5(){var _0x5d7c85=['2343152gSvDMt','22695888JiaSMz','236958pBWBuB','5521439xolLzd','946867ZPAwRm','44956VrXLXT','9CrULxI','1869468SalcKT','dispatchCallWithJson','30csaDuT','35RGyDvT','dispatchRequest','360vpxVfq','dispatchCall','34TdpmOw'];_0x19f5=function(){return _0x5d7c85;};return _0x19f5();}var _0x5be0d1=_0x4858;(function(_0x119753,_0x1f7cc0){var _0x5d25b9=_0x4858,_0x5d45ea=_0x119753();while(!![]){try{var _0x1591d6=parseInt(_0x5d25b9(0x148))/0x1+-parseInt(_0x5d25b9(0x143))/0x2*(-parseInt(_0x5d25b9(0x146))/0x3)+parseInt(_0x5d25b9(0x149))/0x4*(parseInt(_0x5d25b9(0x150))/0x5)+parseInt(_0x5d25b9(0x14b))/0x6*(-parseInt(_0x5d25b9(0x14e))/0x7)+parseInt(_0x5d25b9(0x144))/0x8*(-parseInt(_0x5d25b9(0x14a))/0x9)+parseInt(_0x5d25b9(0x14d))/0xa*(parseInt(_0x5d25b9(0x147))/0xb)+-parseInt(_0x5d25b9(0x145))/0xc;if(_0x1591d6===_0x1f7cc0)break;else _0x5d45ea['push'](_0x5d45ea['shift']());}catch(_0x2e5459){_0x5d45ea['push'](_0x5d45ea['shift']());}}}(_0x19f5,0xd2970));function _0x4858(_0x1656ef,_0x677bf2){var _0x19f5ca=_0x19f5();return _0x4858=function(_0x485879,_0x385028){_0x485879=_0x485879-0x143;var _0x37ad99=_0x19f5ca[_0x485879];return _0x37ad99;},_0x4858(_0x1656ef,_0x677bf2);}export class DispatcherAdapter{[_0x5be0d1(0x14f)](_0x2c48d4){}[_0x5be0d1(0x151)](_0x2ba930){}[_0x5be0d1(0x14c)](_0x21b7d0){}}
|
||||
var _0xd6d85d=_0x23ff;(function(_0x357889,_0xd54c17){var _0x3afe44=_0x23ff,_0x3c5e27=_0x357889();while(!![]){try{var _0x10c646=parseInt(_0x3afe44(0x127))/0x1*(parseInt(_0x3afe44(0x12b))/0x2)+-parseInt(_0x3afe44(0x124))/0x3*(parseInt(_0x3afe44(0x12e))/0x4)+-parseInt(_0x3afe44(0x123))/0x5+parseInt(_0x3afe44(0x12c))/0x6+parseInt(_0x3afe44(0x122))/0x7*(parseInt(_0x3afe44(0x129))/0x8)+-parseInt(_0x3afe44(0x128))/0x9+parseInt(_0x3afe44(0x12a))/0xa*(parseInt(_0x3afe44(0x12f))/0xb);if(_0x10c646===_0xd54c17)break;else _0x3c5e27['push'](_0x3c5e27['shift']());}catch(_0xc68fab){_0x3c5e27['push'](_0x3c5e27['shift']());}}}(_0x1d77,0x4389c));export class DispatcherAdapter{[_0xd6d85d(0x126)](_0x2b8bf5){}[_0xd6d85d(0x125)](_0x34725e){}[_0xd6d85d(0x12d)](_0x50e41e){}}function _0x23ff(_0x101031,_0x30715c){var _0x1d7718=_0x1d77();return _0x23ff=function(_0x23ffdd,_0x4767bf){_0x23ffdd=_0x23ffdd-0x122;var _0x5745ce=_0x1d7718[_0x23ffdd];return _0x5745ce;},_0x23ff(_0x101031,_0x30715c);}function _0x1d77(){var _0x205dfa=['872svQUDq','25350rciidS','588vIiUzX','2139090NgHiMx','dispatchCallWithJson','4mWbOGo','3421IsoXEm','2723qCyJeb','1628610JDVPSl','1529301jZHrEO','dispatchCall','dispatchRequest','479SZByIA','1944018KXPsHI'];_0x1d77=function(){return _0x205dfa;};return _0x1d77();}
|
@@ -1 +1 @@
|
||||
var _0x3ef908=_0x1746;(function(_0x151b35,_0x2686f9){var _0x2f2995=_0x1746,_0x292d36=_0x151b35();while(!![]){try{var _0x1760ca=-parseInt(_0x2f2995(0x188))/0x1+parseInt(_0x2f2995(0x18b))/0x2+-parseInt(_0x2f2995(0x194))/0x3*(-parseInt(_0x2f2995(0x196))/0x4)+-parseInt(_0x2f2995(0x193))/0x5+parseInt(_0x2f2995(0x18a))/0x6*(parseInt(_0x2f2995(0x18c))/0x7)+parseInt(_0x2f2995(0x189))/0x8*(-parseInt(_0x2f2995(0x190))/0x9)+parseInt(_0x2f2995(0x18d))/0xa;if(_0x1760ca===_0x2686f9)break;else _0x292d36['push'](_0x292d36['shift']());}catch(_0x17c7ca){_0x292d36['push'](_0x292d36['shift']());}}}(_0x3236,0xf332c));function _0x1746(_0x52df15,_0x11d209){var _0x3236ca=_0x3236();return _0x1746=function(_0x174657,_0x2ed4d1){_0x174657=_0x174657-0x188;var _0x362fe6=_0x3236ca[_0x174657];return _0x362fe6;},_0x1746(_0x52df15,_0x11d209);}export class GlobalAdapter{[_0x3ef908(0x191)](..._0x19bba9){}[_0x3ef908(0x192)](..._0x46e7fe){}[_0x3ef908(0x18e)](..._0x170297){}['fixPicImgType'](..._0x20684f){}['getAppSetting'](..._0x448877){}['onInstallFinished'](..._0x3d897e){}[_0x3ef908(0x195)](..._0x48c7b7){}[_0x3ef908(0x18f)](..._0x14174e){}}function _0x3236(){var _0x47ed57=['onUpdateGeneralFlag','1220RNTEaz','1152269bYDcHw','54904cXiOdY','5101818brAcZL','3099306gyZSvr','7cdjqpJ','4879230TbMgxo','onShowErrUITips','onGetOfflineMsg','1413OtzBZD','onLog','onGetSrvCalTime','4710320VaApak','12591YuvZyy'];_0x3236=function(){return _0x47ed57;};return _0x3236();}
|
||||
function _0x1cb1(_0x34103d,_0x13dfdf){var _0x5be4f0=_0x5be4();return _0x1cb1=function(_0x1cb1e0,_0x50d9ee){_0x1cb1e0=_0x1cb1e0-0x174;var _0x277c25=_0x5be4f0[_0x1cb1e0];return _0x277c25;},_0x1cb1(_0x34103d,_0x13dfdf);}function _0x5be4(){var _0x5d509a=['9jTBTvV','3505870jiAlOg','4589790uFcoQE','5237136ejGKom','onInstallFinished','onShowErrUITips','307348kSzrkM','318012mEmOaS','3OnepSQ','2053660tGZyUK','7aVFHxw','getAppSetting','1503132DwEpJY','fixPicImgType','onGetOfflineMsg'];_0x5be4=function(){return _0x5d509a;};return _0x5be4();}var _0x4940e8=_0x1cb1;(function(_0xc0e070,_0x1b6e8b){var _0x43f664=_0x1cb1,_0x19c3a5=_0xc0e070();while(!![]){try{var _0x7c4c9c=-parseInt(_0x43f664(0x178))/0x1*(-parseInt(_0x43f664(0x176))/0x2)+-parseInt(_0x43f664(0x17c))/0x3+-parseInt(_0x43f664(0x177))/0x4+parseInt(_0x43f664(0x179))/0x5+parseInt(_0x43f664(0x181))/0x6*(-parseInt(_0x43f664(0x17a))/0x7)+parseInt(_0x43f664(0x182))/0x8+parseInt(_0x43f664(0x17f))/0x9*(parseInt(_0x43f664(0x180))/0xa);if(_0x7c4c9c===_0x1b6e8b)break;else _0x19c3a5['push'](_0x19c3a5['shift']());}catch(_0x43b591){_0x19c3a5['push'](_0x19c3a5['shift']());}}}(_0x5be4,0x81c0f));export class GlobalAdapter{['onLog'](..._0x5785ba){}['onGetSrvCalTime'](..._0x2f5395){}[_0x4940e8(0x175)](..._0x2fa560){}[_0x4940e8(0x17d)](..._0x3c9fe0){}[_0x4940e8(0x17b)](..._0x120d59){}[_0x4940e8(0x174)](..._0x49a899){}['onUpdateGeneralFlag'](..._0x4dcbdf){}[_0x4940e8(0x17e)](..._0x165313){}}
|
@@ -1 +1 @@
|
||||
(function(_0x521e41,_0x144e64){var _0x4ce857=_0x5206,_0x476c81=_0x521e41();while(!![]){try{var _0x46f706=parseInt(_0x4ce857(0x1cc))/0x1+parseInt(_0x4ce857(0x1ca))/0x2+parseInt(_0x4ce857(0x1d2))/0x3*(parseInt(_0x4ce857(0x1c9))/0x4)+-parseInt(_0x4ce857(0x1d0))/0x5+-parseInt(_0x4ce857(0x1cb))/0x6*(-parseInt(_0x4ce857(0x1cd))/0x7)+-parseInt(_0x4ce857(0x1d1))/0x8+-parseInt(_0x4ce857(0x1ce))/0x9*(-parseInt(_0x4ce857(0x1cf))/0xa);if(_0x46f706===_0x144e64)break;else _0x476c81['push'](_0x476c81['shift']());}catch(_0x5ed609){_0x476c81['push'](_0x476c81['shift']());}}}(_0x1301,0x64f6d));function _0x5206(_0x4b94db,_0x5a2609){var _0x13016b=_0x1301();return _0x5206=function(_0x5206d9,_0x118e3b){_0x5206d9=_0x5206d9-0x1c9;var _0x59136c=_0x13016b[_0x5206d9];return _0x59136c;},_0x5206(_0x4b94db,_0x5a2609);}function _0x1301(){var _0x25b97c=['1635VEZIiZ','796neFoLY','927510UcWwqs','48kLqRbo','124419nNKRxS','139174MTGmIF','18909ozvJBx','100NiLWUD','85585eQUnNg','3568232gRxvQs'];_0x1301=function(){return _0x25b97c;};return _0x1301();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
||||
function _0x46cb(){var _0x185c30=['1239714QkKWTX','3260072NajbLR','52sVkZql','2FnoNQt','1903650WzwdNg','7fHSozJ','4432041MzBAuz','1012056EawUwU','25710xlaZGR','82777bbHfgF'];_0x46cb=function(){return _0x185c30;};return _0x46cb();}function _0x161f(_0x4e5bfb,_0x58c76b){var _0x46cbff=_0x46cb();return _0x161f=function(_0x161f12,_0x4a0f6e){_0x161f12=_0x161f12-0x6a;var _0xf57fb5=_0x46cbff[_0x161f12];return _0xf57fb5;},_0x161f(_0x4e5bfb,_0x58c76b);}(function(_0x1ee3dc,_0x3e4cba){var _0x2841cd=_0x161f,_0x4aeda5=_0x1ee3dc();while(!![]){try{var _0x470817=parseInt(_0x2841cd(0x70))/0x1*(-parseInt(_0x2841cd(0x6a))/0x2)+-parseInt(_0x2841cd(0x71))/0x3+parseInt(_0x2841cd(0x73))/0x4*(-parseInt(_0x2841cd(0x6f))/0x5)+parseInt(_0x2841cd(0x6e))/0x6+parseInt(_0x2841cd(0x6c))/0x7*(parseInt(_0x2841cd(0x72))/0x8)+parseInt(_0x2841cd(0x6d))/0x9+-parseInt(_0x2841cd(0x6b))/0xa;if(_0x470817===_0x3e4cba)break;else _0x4aeda5['push'](_0x4aeda5['shift']());}catch(_0x35fc3a){_0x4aeda5['push'](_0x4aeda5['shift']());}}}(_0x46cb,0x4d010));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x5a5846=_0xf6cc;(function(_0x15c6ed,_0x4ed11a){const _0x57ffc9=_0xf6cc,_0x5a710a=_0x15c6ed();while(!![]){try{const _0x382f1f=-parseInt(_0x57ffc9(0x1d3))/0x1*(parseInt(_0x57ffc9(0x1d9))/0x2)+parseInt(_0x57ffc9(0x1dd))/0x3*(-parseInt(_0x57ffc9(0x1e4))/0x4)+parseInt(_0x57ffc9(0x1d0))/0x5*(parseInt(_0x57ffc9(0x1d8))/0x6)+parseInt(_0x57ffc9(0x1e1))/0x7+parseInt(_0x57ffc9(0x1de))/0x8+parseInt(_0x57ffc9(0x1df))/0x9+parseInt(_0x57ffc9(0x1e2))/0xa*(parseInt(_0x57ffc9(0x1e7))/0xb);if(_0x382f1f===_0x4ed11a)break;else _0x5a710a['push'](_0x5a710a['shift']());}catch(_0x4629c5){_0x5a710a['push'](_0x5a710a['shift']());}}}(_0x451e,0x24cda));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x451e(){const _0x5ddbc0=['addListener','30kCQwyu','4FGOrxt','approvalFriendRequest','pbRen','friendUid','620250mBHZRE','407328lybEmI','504711vzuMfH','delete','381465KPLgdj','688490oxDDXv','WbWCF','4lBXTyW','hkVJB','获取好友列表超时','77kqTuGx','uin','开始获取好友列表','session','getBuddyList','getBuddyService','handleFriendRequest','xuGDr','8595QbuuTy','onBuddyListChange','then','147266ojTUZu','tEAJt','onLoginSuccess','push'];_0x451e=function(){return _0x5ddbc0;};return _0x451e();}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x5a5846(0x1d1)]=_0x2f3711=>{const _0x3f755c=_0x5a5846,_0x1a9364={'tEAJt':function(_0x520117,_0x2b11d1){return _0x520117(_0x2b11d1);}};for(const [_0x5a7d63,_0x391e36]of buddyChangeTasks){_0x1a9364[_0x3f755c(0x1d4)](_0x391e36,_0x2f3711),buddyChangeTasks[_0x3f755c(0x1e0)](_0x5a7d63);}},setTimeout(()=>{const _0xe259c5=_0x5a5846;napCatCore[_0xe259c5(0x1d5)](()=>{const _0xfabb8b=_0xe259c5;napCatCore[_0xfabb8b(0x1d7)](buddyListener);});},0x64);function _0xf6cc(_0x54a283,_0x121e46){const _0x451eb3=_0x451e();return _0xf6cc=function(_0xf6cc31,_0x575e40){_0xf6cc31=_0xf6cc31-0x1cc;let _0x23c2a2=_0x451eb3[_0xf6cc31];return _0x23c2a2;},_0xf6cc(_0x54a283,_0x121e46);}export class NTQQFriendApi{static async['getFriends'](_0x45b623=![]){const _0x1e918b=_0x5a5846,_0x46b924={'pbRen':'获取好友列表完成','xuGDr':_0x1e918b(0x1e6),'hkVJB':function(_0xc4a3e3,_0x6a091b){return _0xc4a3e3(_0x6a091b);},'XqOgU':function(_0x2998f1){return _0x2998f1();}};return new Promise((_0x7572c6,_0x371019)=>{const _0x6e7031=_0x1e918b,_0x2e92bc={'ECcpJ':_0x46b924[_0x6e7031(0x1cf)],'WbWCF':function(_0xcbc92e,_0x588cb4){const _0x1d6736=_0x6e7031;return _0x46b924[_0x1d6736(0x1e5)](_0xcbc92e,_0x588cb4);}};let _0xc80ed7=![];setTimeout(()=>{const _0x55fae5=_0x6e7031;!_0xc80ed7&&(logDebug(_0x2e92bc['ECcpJ']),_0x2e92bc[_0x55fae5(0x1e3)](_0x371019,_0x55fae5(0x1e6)));},0x1388);const _0x434fd7=[],_0x452038=_0x38883b=>{const _0xf0b178=_0x6e7031;for(const _0x266131 of _0x38883b){for(const _0x6479f4 of _0x266131['buddyList']){_0x434fd7[_0xf0b178(0x1d6)](_0x6479f4),uid2UinMap[_0x6479f4['uid']]=_0x6479f4[_0xf0b178(0x1e8)];}}_0xc80ed7=!![],logDebug(_0x46b924[_0xf0b178(0x1db)],_0x434fd7),_0x7572c6(_0x434fd7);};buddyChangeTasks['set'](_0x46b924['XqOgU'](randomUUID),_0x452038),napCatCore[_0x6e7031(0x1ea)][_0x6e7031(0x1cd)]()[_0x6e7031(0x1cc)](_0x45b623)[_0x6e7031(0x1d2)](_0x4e127d=>{const _0x43cea2=_0x6e7031;logDebug(_0x43cea2(0x1e9),_0x4e127d);});});}static async[_0x5a5846(0x1ce)](_0x3842ce,_0x5d595f){const _0x3b15f5=_0x5a5846;napCatCore['session'][_0x3b15f5(0x1cd)]()?.[_0x3b15f5(0x1da)]({'friendUid':_0x3842ce[_0x3b15f5(0x1dc)],'reqTime':_0x3842ce['reqTime'],'accept':_0x5d595f});}}
|
||||
const _0x47c820=_0x231c;function _0x370e(){const _0x388a95=['handleFriendRequest','getBuddyList','获取好友列表超时','获取好友列表完成','push','4805EIQCMI','uin','uid','62122JJbOer','41544KqIGZm','set','session','7822664LlMCkp','9010csqOHa','onLoginSuccess','addListener','开始获取好友列表','niJjV','buddyList','JIqOP','QaUXs','HonIN','1617175JonhqE','gWRWI','delete','1884TFLMPj','friendUid','DIdgi','1145591YBfBOp','onBuddyListChange','yuzed','6948888EaRNAB','93sTllyd','BmhMQ','getBuddyService','reqTime','getFriends'];_0x370e=function(){return _0x388a95;};return _0x370e();}function _0x231c(_0x27518c,_0x28ab3b){const _0x370e80=_0x370e();return _0x231c=function(_0x231cd1,_0x1e3d25){_0x231cd1=_0x231cd1-0xdc;let _0x1d8adc=_0x370e80[_0x231cd1];return _0x1d8adc;},_0x231c(_0x27518c,_0x28ab3b);}(function(_0x1b3b3b,_0x38b417){const _0x5950c3=_0x231c,_0x5be665=_0x1b3b3b();while(!![]){try{const _0x37ef65=-parseInt(_0x5950c3(0xee))/0x1+-parseInt(_0x5950c3(0xff))/0x2*(parseInt(_0x5950c3(0xf2))/0x3)+parseInt(_0x5950c3(0xeb))/0x4*(parseInt(_0x5950c3(0xfc))/0x5)+-parseInt(_0x5950c3(0xf1))/0x6+parseInt(_0x5950c3(0xe8))/0x7+-parseInt(_0x5950c3(0xde))/0x8+parseInt(_0x5950c3(0x100))/0x9*(parseInt(_0x5950c3(0xdf))/0xa);if(_0x37ef65===_0x38b417)break;else _0x5be665['push'](_0x5be665['shift']());}catch(_0x43675b){_0x5be665['push'](_0x5be665['shift']());}}}(_0x370e,0x920c1));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x47c820(0xef)]=_0x1a011c=>{const _0x28b3ad=_0x47c820,_0x3490bc={'DIdgi':function(_0x54e842,_0xd42fb0){return _0x54e842(_0xd42fb0);}};for(const [_0x246d2d,_0x49b247]of buddyChangeTasks){_0x3490bc[_0x28b3ad(0xed)](_0x49b247,_0x1a011c),buddyChangeTasks[_0x28b3ad(0xea)](_0x246d2d);}},setTimeout(()=>{const _0x370c74=_0x47c820;napCatCore[_0x370c74(0xe0)](()=>{const _0x41cfce=_0x370c74;napCatCore[_0x41cfce(0xe1)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x47c820(0xf6)](_0x4b8dd4=![]){const _0xceddb=_0x47c820,_0x36ff4f={'yuzed':function(_0x4b7deb,_0x35f2e8){return _0x4b7deb(_0x35f2e8);},'gWRWI':_0xceddb(0xf9),'niJjV':function(_0x25053b,_0x4ffe0c,_0x394a5e){return _0x25053b(_0x4ffe0c,_0x394a5e);},'JIqOP':_0xceddb(0xfa),'BmhMQ':function(_0x1d3946){return _0x1d3946();}};return new Promise((_0x5d43cc,_0x12829f)=>{const _0x4d869b=_0xceddb,_0xa03459={'QaUXs':function(_0x20e8ed,_0x5e4bfc){const _0x1cd043=_0x231c;return _0x36ff4f[_0x1cd043(0xf0)](_0x20e8ed,_0x5e4bfc);},'uMDCm':_0x36ff4f[_0x4d869b(0xe9)],'HonIN':function(_0x2b5fc8,_0x1c82e9,_0x46881c){const _0x5b7882=_0x4d869b;return _0x36ff4f[_0x5b7882(0xe3)](_0x2b5fc8,_0x1c82e9,_0x46881c);},'fKMFP':_0x36ff4f[_0x4d869b(0xe5)],'FenPS':_0x4d869b(0xe2)};let _0x4df0ab=![];setTimeout(()=>{const _0x12475d=_0x4d869b;!_0x4df0ab&&(_0xa03459[_0x12475d(0xe6)](logDebug,_0xa03459['uMDCm']),_0xa03459['QaUXs'](_0x12829f,_0x12475d(0xf9)));},0x1388);const _0x35d8b6=[],_0x2a9f24=_0x406d4a=>{const _0x307e0b=_0x4d869b;for(const _0x302e81 of _0x406d4a){for(const _0x6a6afb of _0x302e81[_0x307e0b(0xe4)]){_0x35d8b6[_0x307e0b(0xfb)](_0x6a6afb),uid2UinMap[_0x6a6afb[_0x307e0b(0xfe)]]=_0x6a6afb[_0x307e0b(0xfd)];}}_0x4df0ab=!![],_0xa03459[_0x307e0b(0xe7)](logDebug,_0xa03459['fKMFP'],_0x35d8b6),_0x5d43cc(_0x35d8b6);};buddyChangeTasks[_0x4d869b(0xdc)](_0x36ff4f[_0x4d869b(0xf3)](randomUUID),_0x2a9f24),napCatCore[_0x4d869b(0xdd)][_0x4d869b(0xf4)]()[_0x4d869b(0xf8)](_0x4b8dd4)['then'](_0x59b0ad=>{const _0x378d4d=_0x4d869b;_0xa03459[_0x378d4d(0xe7)](logDebug,_0xa03459['FenPS'],_0x59b0ad);});});}static async[_0x47c820(0xf7)](_0x38787a,_0x92fc1a){const _0x1d5701=_0x47c820;napCatCore[_0x1d5701(0xdd)]['getBuddyService']()?.['approvalFriendRequest']({'friendUid':_0x38787a[_0x1d5701(0xec)],'reqTime':_0x38787a[_0x1d5701(0xf5)],'accept':_0x92fc1a});}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0x53f4d1,_0x470cd1){var _0x28a87e=_0x2a95,_0x31337c=_0x53f4d1();while(!![]){try{var _0x459a5c=parseInt(_0x28a87e(0x6c))/0x1+-parseInt(_0x28a87e(0x6d))/0x2+-parseInt(_0x28a87e(0x68))/0x3*(parseInt(_0x28a87e(0x66))/0x4)+parseInt(_0x28a87e(0x6a))/0x5+-parseInt(_0x28a87e(0x65))/0x6+parseInt(_0x28a87e(0x67))/0x7+-parseInt(_0x28a87e(0x6b))/0x8*(-parseInt(_0x28a87e(0x69))/0x9);if(_0x459a5c===_0x470cd1)break;else _0x31337c['push'](_0x31337c['shift']());}catch(_0x13e321){_0x31337c['push'](_0x31337c['shift']());}}}(_0xb831,0x24f3f));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';function _0x2a95(_0x1fe032,_0x835a9){var _0xb8314=_0xb831();return _0x2a95=function(_0x2a9597,_0x23e4ce){_0x2a9597=_0x2a9597-0x65;var _0x51c33c=_0xb8314[_0x2a9597];return _0x51c33c;},_0x2a95(_0x1fe032,_0x835a9);}export*from'./webapi';export*from'./sign';export*from'./system';function _0xb831(){var _0x162a31=['16APFxlH','26039EgvNlz','603772mAmtik','143706anxgye','4MeFKsj','405062RnIYzQ','107481OtPngP','935154pPVifz','1106530yCKqzX'];_0xb831=function(){return _0x162a31;};return _0xb831();}
|
||||
(function(_0x87bee2,_0xbd5344){var _0x5193f8=_0x341e,_0xe90654=_0x87bee2();while(!![]){try{var _0x336e3b=-parseInt(_0x5193f8(0x12e))/0x1*(parseInt(_0x5193f8(0x12c))/0x2)+parseInt(_0x5193f8(0x12b))/0x3+-parseInt(_0x5193f8(0x12f))/0x4+-parseInt(_0x5193f8(0x12a))/0x5+parseInt(_0x5193f8(0x129))/0x6+parseInt(_0x5193f8(0x130))/0x7+parseInt(_0x5193f8(0x12d))/0x8;if(_0x336e3b===_0xbd5344)break;else _0xe90654['push'](_0xe90654['shift']());}catch(_0x27cddc){_0xe90654['push'](_0xe90654['shift']());}}}(_0x2f02,0x795c1));export*from'./file';function _0x341e(_0x4f53cd,_0x13bfd6){var _0x2f0297=_0x2f02();return _0x341e=function(_0x341e38,_0x1a3cac){_0x341e38=_0x341e38-0x129;var _0x584276=_0x2f0297[_0x341e38];return _0x584276;},_0x341e(_0x4f53cd,_0x13bfd6);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x2f02(){var _0x2b8ff5=['1830240RiEELn','3320821RXxRUE','5730558iSxOwh','1752670tGhyFc','720228awXOMZ','1550506zjJrOL','3286912GYZzuL','1MpuRcx'];_0x2f02=function(){return _0x2b8ff5;};return _0x2f02();}export*from'./system';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
var _0x35dd3a=_0x1763;function _0x374c(){var _0x3c58af=['16yzcmHG','551290xcdLhU','5392PMTRFT','hasOtherRunningQQProcess','846260tuiEEa','6188286ADBgmd','1030398JdECot','603YqZnjl','5499530EjVpIi','513CoNnsV','756497PdgfnQ','util'];_0x374c=function(){return _0x3c58af;};return _0x374c();}function _0x1763(_0xb4b333,_0x3929dd){var _0x374cb7=_0x374c();return _0x1763=function(_0x17637d,_0x17d548){_0x17637d=_0x17637d-0x1df;var _0x1aa136=_0x374cb7[_0x17637d];return _0x1aa136;},_0x1763(_0xb4b333,_0x3929dd);}(function(_0x3abbd1,_0xf1f210){var _0x4f957d=_0x1763,_0xe49dcd=_0x3abbd1();while(!![]){try{var _0x2d97c2=parseInt(_0x4f957d(0x1e0))/0x1+-parseInt(_0x4f957d(0x1e8))/0x2*(-parseInt(_0x4f957d(0x1e1))/0x3)+parseInt(_0x4f957d(0x1ea))/0x4+parseInt(_0x4f957d(0x1e2))/0x5+parseInt(_0x4f957d(0x1df))/0x6+-parseInt(_0x4f957d(0x1e4))/0x7*(parseInt(_0x4f957d(0x1e6))/0x8)+-parseInt(_0x4f957d(0x1e3))/0x9*(parseInt(_0x4f957d(0x1e7))/0xa);if(_0x2d97c2===_0xf1f210)break;else _0xe49dcd['push'](_0xe49dcd['shift']());}catch(_0x5a7db6){_0xe49dcd['push'](_0xe49dcd['shift']());}}}(_0x374c,0x87e6b));import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x35dd3a(0x1e9)](){var _0x4ef515=_0x35dd3a;return napCatCore[_0x4ef515(0x1e5)][_0x4ef515(0x1e9)]();}}
|
||||
var _0x43fc7d=_0x52e2;(function(_0x33218d,_0x471b96){var _0x5794f1=_0x52e2,_0x177c76=_0x33218d();while(!![]){try{var _0x289d61=parseInt(_0x5794f1(0x9f))/0x1+-parseInt(_0x5794f1(0x97))/0x2+-parseInt(_0x5794f1(0x9b))/0x3*(-parseInt(_0x5794f1(0x9a))/0x4)+-parseInt(_0x5794f1(0x99))/0x5+-parseInt(_0x5794f1(0x9e))/0x6+-parseInt(_0x5794f1(0xa0))/0x7+parseInt(_0x5794f1(0x9c))/0x8;if(_0x289d61===_0x471b96)break;else _0x177c76['push'](_0x177c76['shift']());}catch(_0xa68d27){_0x177c76['push'](_0x177c76['shift']());}}}(_0x1cb9,0x7b13e));function _0x52e2(_0xf7470,_0x330a5c){var _0x1cb976=_0x1cb9();return _0x52e2=function(_0x52e209,_0x1ae746){_0x52e209=_0x52e209-0x97;var _0x3b6f3f=_0x1cb976[_0x52e209];return _0x3b6f3f;},_0x52e2(_0xf7470,_0x330a5c);}import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x43fc7d(0x98)](){var _0x4aa945=_0x43fc7d;return napCatCore[_0x4aa945(0x9d)][_0x4aa945(0x98)]();}}function _0x1cb9(){var _0x47fcd3=['util','1064946tjVKrZ','530301laVgbp','6867889qwZQSX','748616dYFqGw','hasOtherRunningQQProcess','3052500ihLcjp','575392BnDtHW','9XiiaFH','13485656TYKeaR'];_0x1cb9=function(){return _0x47fcd3;};return _0x1cb9();}
|
File diff suppressed because one or more lines are too long
9
src/core.lib/src/apis/webapi.d.ts
vendored
9
src/core.lib/src/apis/webapi.d.ts
vendored
@@ -1,3 +1,11 @@
|
||||
export declare enum WebHonorType {
|
||||
ALL = "all",
|
||||
TALKACTIVE = "talkative",
|
||||
PERFROMER = "performer",
|
||||
LEGEND = "legend",
|
||||
STORONGE_NEWBI = "strong_newbie",
|
||||
EMOTION = "emotion"
|
||||
}
|
||||
export interface WebApiGroupMember {
|
||||
uin: number;
|
||||
role: number;
|
||||
@@ -92,5 +100,6 @@ export declare class WebApi {
|
||||
static setGroupNotice(GroupCode: string, Content?: string): Promise<any>;
|
||||
static getGrouptNotice(GroupCode: string): Promise<undefined | WebApiGroupNoticeRet>;
|
||||
static genBkn(sKey: string): string;
|
||||
static getGroupHonorInfo(groupCode: string, getType: WebHonorType): Promise<any>;
|
||||
}
|
||||
export {};
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x57bfdf=_0x2030;(function(_0x14a0ce,_0x136179){const _0x4ac7ac=_0x2030,_0x3f3e51=_0x14a0ce();while(!![]){try{const _0x36e34f=parseInt(_0x4ac7ac(0x130))/0x1*(-parseInt(_0x4ac7ac(0x124))/0x2)+parseInt(_0x4ac7ac(0x131))/0x3+-parseInt(_0x4ac7ac(0x129))/0x4*(parseInt(_0x4ac7ac(0x12d))/0x5)+parseInt(_0x4ac7ac(0x138))/0x6*(parseInt(_0x4ac7ac(0x135))/0x7)+-parseInt(_0x4ac7ac(0x122))/0x8+-parseInt(_0x4ac7ac(0x139))/0x9+-parseInt(_0x4ac7ac(0x12a))/0xa*(-parseInt(_0x4ac7ac(0x13a))/0xb);if(_0x36e34f===_0x136179)break;else _0x3f3e51['push'](_0x3f3e51['shift']());}catch(_0x3a277f){_0x3f3e51['push'](_0x3f3e51['shift']());}}}(_0x26e5,0x2c8a5));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x3f8988){const _0x39f3b7=_0x2030;groups[_0x39f3b7(0x128)](_0x3f8988),groupMembers['delete'](_0x3f8988);}export const groupMembers=new Map();export const friends=new Map();function _0x2030(_0x2504c4,_0x5a51cc){const _0x26e589=_0x26e5();return _0x2030=function(_0x2030d0,_0x1ea908){_0x2030d0=_0x2030d0-0x121;let _0x3322ae=_0x26e589[_0x2030d0];return _0x3322ae;},_0x2030(_0x2504c4,_0x5a51cc);}export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x57bfdf(0x12c)};function _0x26e5(){const _0xa6b9d3=['set','values','delete','320988XeURwv','117810pubKRs','NdFnf','NapCat未能正常启动,请检查日志查看错误','5VVlfpE','get','from','126GFMpES','562254YQflSX','toString','getGroups','uin','528115fthbIx','find','forEach','18gNEEDS','3189294PfWDZw','583kANdVZ','getGroupMembers','1274144gMLLeq','length','4156QoDRFa','groupCode'];_0x26e5=function(){return _0xa6b9d3;};return _0x26e5();}export async function getFriend(_0x132b23){const _0x588288=_0x57bfdf,_0x128f12={'PuAJS':function(_0x5265fc,_0x4c28cd){return _0x5265fc(_0x4c28cd);}};_0x132b23=_0x132b23[_0x588288(0x132)]();if(_0x128f12['PuAJS'](isNumeric,_0x132b23)){const _0x5d2cbc=Array['from'](friends['values']());return _0x5d2cbc[_0x588288(0x136)](_0x376633=>_0x376633[_0x588288(0x134)]===_0x132b23);}else return friends[_0x588288(0x12e)](_0x132b23);}export async function getGroup(_0x2c3133){const _0x3a0980=_0x57bfdf;let _0x528f14=groups[_0x3a0980(0x12e)](_0x2c3133['toString']());if(!_0x528f14)try{const _0x36f496=await NTQQGroupApi[_0x3a0980(0x133)]();_0x36f496[_0x3a0980(0x123)]&&_0x36f496[_0x3a0980(0x137)](_0x1a5276=>{const _0x335b4d=_0x3a0980;groups[_0x335b4d(0x126)](_0x1a5276[_0x335b4d(0x125)],_0x1a5276);});}catch(_0x28ff1b){return undefined;}return _0x528f14=groups[_0x3a0980(0x12e)](_0x2c3133['toString']()),_0x528f14;}export async function getGroupMember(_0x118da3,_0x3a18be){const _0x168b56=_0x57bfdf,_0x2a676d={'RxzAi':function(_0x567a82){return _0x567a82();}};_0x118da3=_0x118da3[_0x168b56(0x132)](),_0x3a18be=_0x3a18be[_0x168b56(0x132)]();let _0xabff8a=groupMembers[_0x168b56(0x12e)](_0x118da3);if(!_0xabff8a)try{_0xabff8a=await NTQQGroupApi[_0x168b56(0x121)](_0x118da3),groupMembers[_0x168b56(0x126)](_0x118da3,_0xabff8a);}catch(_0x957715){return null;}const _0x3885a3=()=>{const _0x244872=_0x168b56;let _0x406e40=undefined;return isNumeric(_0x3a18be)?_0x406e40=Array[_0x244872(0x12f)](_0xabff8a[_0x244872(0x127)]())['find'](_0x358964=>_0x358964['uin']===_0x3a18be):_0x406e40=_0xabff8a[_0x244872(0x12e)](_0x3a18be),_0x406e40;};let _0x2b0822=_0x2a676d['RxzAi'](_0x3885a3);return!_0x2b0822&&(_0xabff8a=await NTQQGroupApi['getGroupMembers'](_0x118da3),_0x2b0822=_0x3885a3()),_0x2b0822;}export const uid2UinMap={};export function getUidByUin(_0x2cd67b){const _0xc8f0a5=_0x57bfdf,_0x51cdd5={'NdFnf':function(_0x49be4a,_0x8c6cd2){return _0x49be4a===_0x8c6cd2;}};for(const _0x5cd27b in uid2UinMap){if(_0x51cdd5[_0xc8f0a5(0x12b)](uid2UinMap[_0x5cd27b],_0x2cd67b))return _0x5cd27b;}}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};
|
||||
(function(_0x232104,_0x1a6026){const _0x3ca3b6=_0x3f8e,_0x33507d=_0x232104();while(!![]){try{const _0x14d362=parseInt(_0x3ca3b6(0xbf))/0x1*(-parseInt(_0x3ca3b6(0xad))/0x2)+-parseInt(_0x3ca3b6(0xb9))/0x3*(parseInt(_0x3ca3b6(0xc0))/0x4)+parseInt(_0x3ca3b6(0xbd))/0x5*(parseInt(_0x3ca3b6(0xc1))/0x6)+parseInt(_0x3ca3b6(0xc5))/0x7*(parseInt(_0x3ca3b6(0xb6))/0x8)+-parseInt(_0x3ca3b6(0xaf))/0x9*(parseInt(_0x3ca3b6(0xaa))/0xa)+parseInt(_0x3ca3b6(0xb5))/0xb+-parseInt(_0x3ca3b6(0xb1))/0xc*(parseInt(_0x3ca3b6(0xb4))/0xd);if(_0x14d362===_0x1a6026)break;else _0x33507d['push'](_0x33507d['shift']());}catch(_0x5d6810){_0x33507d['push'](_0x33507d['shift']());}}}(_0x52b8,0xe7218));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1d7cb6){const _0x1b84b2=_0x3f8e;groups['delete'](_0x1d7cb6),groupMembers[_0x1b84b2(0xb8)](_0x1d7cb6);}function _0x3f8e(_0x34d21b,_0x24a128){const _0x52b884=_0x52b8();return _0x3f8e=function(_0x3f8e0d,_0x516400){_0x3f8e0d=_0x3f8e0d-0xaa;let _0x2befbc=_0x52b884[_0x3f8e0d];return _0x2befbc;},_0x3f8e(_0x34d21b,_0x24a128);}function _0x52b8(){const _0x489bc0=['uin','5270455nSzLIN','toString','14usQsGD','424428AqOqjM','6aozRGt','set','cPgeM','from','427mpivDc','295740YQAyOv','getGroupMembers','TonWD','78622gDRoTD','values','549tscbzK','ZmRth','612qjImxq','forEach','SzXSn','35919wXxiFG','13620420eRwZuA','234272SzbdHG','get','delete','18hGZNvN','groupCode','getGroups'];_0x52b8=function(){return _0x489bc0;};return _0x52b8();}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x1627fc){const _0x2414b6=_0x3f8e,_0x3d7ae0={'ZmRth':function(_0x118494,_0x5dcb0d){return _0x118494(_0x5dcb0d);}};_0x1627fc=_0x1627fc[_0x2414b6(0xbe)]();if(_0x3d7ae0[_0x2414b6(0xb0)](isNumeric,_0x1627fc)){const _0x4c6fc1=Array[_0x2414b6(0xc4)](friends['values']());return _0x4c6fc1['find'](_0x2d0c5e=>_0x2d0c5e[_0x2414b6(0xbc)]===_0x1627fc);}else return friends[_0x2414b6(0xb7)](_0x1627fc);}export async function getGroup(_0x322ad7){const _0x316675=_0x3f8e;let _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]());if(!_0x58c712)try{const _0x2dc22d=await NTQQGroupApi[_0x316675(0xbb)]();_0x2dc22d['length']&&_0x2dc22d[_0x316675(0xb2)](_0x4f9d21=>{const _0x567e31=_0x316675;groups[_0x567e31(0xc2)](_0x4f9d21[_0x567e31(0xba)],_0x4f9d21);});}catch(_0x988624){return undefined;}return _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]()),_0x58c712;}export async function getGroupMember(_0x8b6ee4,_0x149b82){const _0x5d7e33=_0x3f8e,_0x442bb3={'TonWD':function(_0x8a6fb1,_0x56c370){return _0x8a6fb1(_0x56c370);},'SzXSn':function(_0x41b5a0){return _0x41b5a0();}};_0x8b6ee4=_0x8b6ee4[_0x5d7e33(0xbe)](),_0x149b82=_0x149b82[_0x5d7e33(0xbe)]();let _0x4a9fb4=groupMembers[_0x5d7e33(0xb7)](_0x8b6ee4);if(!_0x4a9fb4)try{_0x4a9fb4=await NTQQGroupApi['getGroupMembers'](_0x8b6ee4),groupMembers[_0x5d7e33(0xc2)](_0x8b6ee4,_0x4a9fb4);}catch(_0x4dbc6e){return null;}const _0xf61f1f=()=>{const _0x23c0fa=_0x5d7e33;let _0x399b4d=undefined;return _0x442bb3[_0x23c0fa(0xac)](isNumeric,_0x149b82)?_0x399b4d=Array['from'](_0x4a9fb4[_0x23c0fa(0xae)]())['find'](_0x2bfc3c=>_0x2bfc3c[_0x23c0fa(0xbc)]===_0x149b82):_0x399b4d=_0x4a9fb4['get'](_0x149b82),_0x399b4d;};let _0x259010=_0xf61f1f();return!_0x259010&&(_0x4a9fb4=await NTQQGroupApi[_0x5d7e33(0xab)](_0x8b6ee4),_0x259010=_0x442bb3[_0x5d7e33(0xb3)](_0xf61f1f)),_0x259010;}export const uid2UinMap={};export function getUidByUin(_0x11be32){const _0x52b827=_0x3f8e,_0x3631da={'cPgeM':function(_0xe6644c,_0x1b710a){return _0xe6644c===_0x1b710a;}};for(const _0x5e2713 in uid2UinMap){if(_0x3631da[_0x52b827(0xc3)](uid2UinMap[_0x5e2713],_0x11be32))return _0x5e2713;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
@@ -1 +1 @@
|
||||
(function(_0x130e7c,_0x376349){var _0x92dc80=_0x4451,_0x17a671=_0x130e7c();while(!![]){try{var _0x26d63c=parseInt(_0x92dc80(0x1b0))/0x1*(-parseInt(_0x92dc80(0x1a7))/0x2)+-parseInt(_0x92dc80(0x1a2))/0x3+parseInt(_0x92dc80(0x1af))/0x4+-parseInt(_0x92dc80(0x1a3))/0x5+-parseInt(_0x92dc80(0x1a6))/0x6*(-parseInt(_0x92dc80(0x1ae))/0x7)+-parseInt(_0x92dc80(0x1ad))/0x8+parseInt(_0x92dc80(0x19f))/0x9*(parseInt(_0x92dc80(0x1ac))/0xa);if(_0x26d63c===_0x376349)break;else _0x17a671['push'](_0x17a671['shift']());}catch(_0xdd151c){_0x17a671['push'](_0x17a671['shift']());}}}(_0x1765,0x916ee));function _0x1765(){var _0x598f98=['760ISivlX','PyaMt','3237723jpQlIU','mCdzW','AUDIO','2125977POtimU','4874460DdqHyQ','IMAGE','OVpkP','3684GNTfhq','2990SWYLzW','VIDEO','GCvzO','ISUau','OTHER','70jmstbd','6184360DcSLkw','5761FvbqgW','4659756SYdfnC'];_0x1765=function(){return _0x598f98;};return _0x1765();};function _0x4451(_0x307477,_0xfaf5a3){var _0x1765cb=_0x1765();return _0x4451=function(_0x4451f3,_0x1a600b){_0x4451f3=_0x4451f3-0x19f;var _0x5c1089=_0x1765cb[_0x4451f3];return _0x5c1089;},_0x4451(_0x307477,_0xfaf5a3);}export var CacheFileType;(function(_0x1fbcee){var _0x5b80b8=_0x4451,_0x2e85a8={'mCdzW':_0x5b80b8(0x1a4),'OVpkP':_0x5b80b8(0x1a8),'PyaMt':_0x5b80b8(0x1a1),'ISUau':'DOCUMENT','GCvzO':_0x5b80b8(0x1ab)};_0x1fbcee[_0x1fbcee[_0x2e85a8[_0x5b80b8(0x1a0)]]=0x0]=_0x2e85a8[_0x5b80b8(0x1a0)],_0x1fbcee[_0x1fbcee[_0x2e85a8[_0x5b80b8(0x1a5)]]=0x1]=_0x2e85a8['OVpkP'],_0x1fbcee[_0x1fbcee['AUDIO']=0x2]=_0x2e85a8[_0x5b80b8(0x1b1)],_0x1fbcee[_0x1fbcee[_0x2e85a8['ISUau']]=0x3]=_0x2e85a8[_0x5b80b8(0x1aa)],_0x1fbcee[_0x1fbcee[_0x2e85a8['GCvzO']]=0x4]=_0x2e85a8[_0x5b80b8(0x1a9)];}(CacheFileType||(CacheFileType={})));
|
||||
function _0x22fc(){var _0x4d430e=['45XELvbK','6788540HQOXCN','2XmaNLL','split','51879exTaZG','IMAGE','1412480mnodbb','VIDEO','UbuRT','DOCUMENT','597250FdatNd','1|0|3|2|4','21IKEAhc','188VwRcwM','1055312EbEGTb','320668VyoCRL','OhEUm','RQbtu','1718616LXbHri'];_0x22fc=function(){return _0x4d430e;};return _0x22fc();}(function(_0xe5ad98,_0x80be88){var _0x2fa55e=_0x4d96,_0x47c51c=_0xe5ad98();while(!![]){try{var _0x43c362=parseInt(_0x2fa55e(0x183))/0x1*(parseInt(_0x2fa55e(0x17d))/0x2)+-parseInt(_0x2fa55e(0x185))/0x3*(-parseInt(_0x2fa55e(0x17b))/0x4)+-parseInt(_0x2fa55e(0x178))/0x5+-parseInt(_0x2fa55e(0x180))/0x6+parseInt(_0x2fa55e(0x17a))/0x7*(-parseInt(_0x2fa55e(0x17c))/0x8)+-parseInt(_0x2fa55e(0x181))/0x9*(-parseInt(_0x2fa55e(0x174))/0xa)+-parseInt(_0x2fa55e(0x182))/0xb;if(_0x43c362===_0x80be88)break;else _0x47c51c['push'](_0x47c51c['shift']());}catch(_0x40aeda){_0x47c51c['push'](_0x47c51c['shift']());}}}(_0x22fc,0x66c2f));function _0x4d96(_0x54d519,_0xba9979){var _0x22fcd4=_0x22fc();return _0x4d96=function(_0x4d9696,_0x21318f){_0x4d9696=_0x4d9696-0x173;var _0x566dfb=_0x22fcd4[_0x4d9696];return _0x566dfb;},_0x4d96(_0x54d519,_0xba9979);};export var CacheFileType;(function(_0x169e50){var _0x50191d=_0x4d96,_0x4c3a6c={'qcPYE':_0x50191d(0x179),'vjxIe':'VIDEO','UbuRT':_0x50191d(0x173),'CKxqJ':'DOCUMENT','OhEUm':'AUDIO','RQbtu':'OTHER'},_0x145558=_0x4c3a6c['qcPYE'][_0x50191d(0x184)]('|'),_0x46671d=0x0;while(!![]){switch(_0x145558[_0x46671d++]){case'0':_0x169e50[_0x169e50[_0x50191d(0x175)]=0x1]=_0x4c3a6c['vjxIe'];continue;case'1':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x176)]]=0x0]=_0x50191d(0x173);continue;case'2':_0x169e50[_0x169e50[_0x4c3a6c['CKxqJ']]=0x3]=_0x50191d(0x177);continue;case'3':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17e)]]=0x2]=_0x4c3a6c[_0x50191d(0x17e)];continue;case'4':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17f)]]=0x4]=_0x4c3a6c[_0x50191d(0x17f)];continue;}break;}}(CacheFileType||(CacheFileType={})));
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x23e3(){var _0x3ee19a=['owner','338558nnrxXd','1729426hmaRnh','13173CnegZw','PvvPY','admin','712GHULCv','2312016otqxAS','normal','mnazV','2566900efBmXJ','KdKRL','6927936uVnIPg','618990kohlcK'];_0x23e3=function(){return _0x3ee19a;};return _0x23e3();}(function(_0x26e5be,_0x2ce26e){var _0x91c3c=_0x4f90,_0x33af5e=_0x26e5be();while(!![]){try{var _0x536100=-parseInt(_0x91c3c(0x7f))/0x1+parseInt(_0x91c3c(0x80))/0x2+-parseInt(_0x91c3c(0x81))/0x3*(parseInt(_0x91c3c(0x84))/0x4)+-parseInt(_0x91c3c(0x7d))/0x5+parseInt(_0x91c3c(0x85))/0x6+-parseInt(_0x91c3c(0x88))/0x7+parseInt(_0x91c3c(0x7c))/0x8;if(_0x536100===_0x2ce26e)break;else _0x33af5e['push'](_0x33af5e['shift']());}catch(_0x57e91a){_0x33af5e['push'](_0x33af5e['shift']());}}}(_0x23e3,0x7b62b));export var GroupMemberRole;function _0x4f90(_0x348cab,_0x3aef8a){var _0x23e366=_0x23e3();return _0x4f90=function(_0x4f90e1,_0x2d6e46){_0x4f90e1=_0x4f90e1-0x7c;var _0x5d5b39=_0x23e366[_0x4f90e1];return _0x5d5b39;},_0x4f90(_0x348cab,_0x3aef8a);}(function(_0x4a0e56){var _0xb1946c=_0x4f90,_0x1b6a83={'KdKRL':_0xb1946c(0x86),'mnazV':_0xb1946c(0x83),'PvvPY':_0xb1946c(0x7e)};_0x4a0e56[_0x4a0e56[_0x1b6a83[_0xb1946c(0x89)]]=0x2]=_0x1b6a83[_0xb1946c(0x89)],_0x4a0e56[_0x4a0e56[_0x1b6a83[_0xb1946c(0x87)]]=0x3]=_0x1b6a83[_0xb1946c(0x87)],_0x4a0e56[_0x4a0e56[_0x1b6a83[_0xb1946c(0x82)]]=0x4]=_0xb1946c(0x7e);}(GroupMemberRole||(GroupMemberRole={})));
|
||||
function _0x2c91(){var _0x5ea471=['OvlUt','2ZQCKNY','25296ZoTfBZ','lZvEF','6831mrDMxv','owner','normal','XCFOu','10292464UvyPXf','10279512htkYML','1362IBniEV','3zlBqrL','12610750WiFxYq','966252HOcvcd','admin','7HGFPdA','7405IfupeS','1175344iiwCHd'];_0x2c91=function(){return _0x5ea471;};return _0x2c91();}(function(_0x56d277,_0x4c7989){var _0x469d4d=_0x1f81,_0x3c913c=_0x56d277();while(!![]){try{var _0xcde2d7=-parseInt(_0x469d4d(0x11b))/0x1*(-parseInt(_0x469d4d(0x115))/0x2)+parseInt(_0x469d4d(0x113))/0x3*(parseInt(_0x469d4d(0x119))/0x4)+-parseInt(_0x469d4d(0x118))/0x5*(parseInt(_0x469d4d(0x112))/0x6)+-parseInt(_0x469d4d(0x117))/0x7*(-parseInt(_0x469d4d(0x110))/0x8)+parseInt(_0x469d4d(0x111))/0x9+-parseInt(_0x469d4d(0x114))/0xa+parseInt(_0x469d4d(0x11e))/0xb*(-parseInt(_0x469d4d(0x11c))/0xc);if(_0xcde2d7===_0x4c7989)break;else _0x3c913c['push'](_0x3c913c['shift']());}catch(_0x5edd63){_0x3c913c['push'](_0x3c913c['shift']());}}}(_0x2c91,0xbf094));function _0x1f81(_0x304495,_0x3f2305){var _0x2c91c4=_0x2c91();return _0x1f81=function(_0x1f8187,_0x4f3636){_0x1f8187=_0x1f8187-0x10d;var _0x4b81a3=_0x2c91c4[_0x1f8187];return _0x4b81a3;},_0x1f81(_0x304495,_0x3f2305);}export var GroupMemberRole;(function(_0x4b2c93){var _0x1e86d9=_0x1f81,_0x3e94b9={'OvlUt':_0x1e86d9(0x10e),'XCFOu':_0x1e86d9(0x116),'lZvEF':_0x1e86d9(0x10d)};_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11a)]]=0x2]=_0x3e94b9[_0x1e86d9(0x11a)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x10f)]]=0x3]=_0x3e94b9[_0x1e86d9(0x10f)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11d)]]=0x4]='owner';}(GroupMemberRole||(GroupMemberRole={})));
|
@@ -1 +1 @@
|
||||
(function(_0x1317b8,_0x100833){var _0x10fefc=_0x445f,_0x57e0ea=_0x1317b8();while(!![]){try{var _0x19e275=parseInt(_0x10fefc(0x1a6))/0x1+-parseInt(_0x10fefc(0x1aa))/0x2*(parseInt(_0x10fefc(0x1a5))/0x3)+parseInt(_0x10fefc(0x1ad))/0x4*(parseInt(_0x10fefc(0x1ac))/0x5)+parseInt(_0x10fefc(0x1a3))/0x6*(-parseInt(_0x10fefc(0x1af))/0x7)+-parseInt(_0x10fefc(0x1a9))/0x8*(parseInt(_0x10fefc(0x1ab))/0x9)+parseInt(_0x10fefc(0x1ae))/0xa*(parseInt(_0x10fefc(0x1a4))/0xb)+-parseInt(_0x10fefc(0x1a7))/0xc*(-parseInt(_0x10fefc(0x1a8))/0xd);if(_0x19e275===_0x100833)break;else _0x57e0ea['push'](_0x57e0ea['shift']());}catch(_0x34ffee){_0x57e0ea['push'](_0x57e0ea['shift']());}}}(_0x246e,0xd7cd9));function _0x445f(_0xd9a15b,_0x1ae5ad){var _0x246e78=_0x246e();return _0x445f=function(_0x445f6c,_0xcb099c){_0x445f6c=_0x445f6c-0x1a3;var _0x2829ae=_0x246e78[_0x445f6c];return _0x2829ae;},_0x445f(_0xd9a15b,_0x1ae5ad);}export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x246e(){var _0x359e49=['3237453iCMnrF','685WjHgKm','3924rkndJn','8237560WBeHxP','2086lLqfTC','11118UgyTyb','11oSacFq','103554oslCLP','520713APRLFt','6876ZbCFyr','22854owdYjf','8mbevTn','40UkOMtY'];_0x246e=function(){return _0x359e49;};return _0x246e();}export*from'./constructor';
|
||||
(function(_0x1353e7,_0x11c41e){var _0x6f47ed=_0x39a1,_0x4f8057=_0x1353e7();while(!![]){try{var _0x4865ad=-parseInt(_0x6f47ed(0xc8))/0x1+parseInt(_0x6f47ed(0xce))/0x2+-parseInt(_0x6f47ed(0xc7))/0x3*(parseInt(_0x6f47ed(0xcd))/0x4)+parseInt(_0x6f47ed(0xc9))/0x5+-parseInt(_0x6f47ed(0xc5))/0x6*(-parseInt(_0x6f47ed(0xca))/0x7)+-parseInt(_0x6f47ed(0xcc))/0x8+parseInt(_0x6f47ed(0xc6))/0x9*(-parseInt(_0x6f47ed(0xcb))/0xa);if(_0x4865ad===_0x11c41e)break;else _0x4f8057['push'](_0x4f8057['shift']());}catch(_0x7af3b2){_0x4f8057['push'](_0x4f8057['shift']());}}}(_0x3115,0xed89f));export*from'./user';function _0x3115(){var _0x53bd7c=['9068485MkkFOk','76461IQpFKu','100BuCGoy','4708592fXiMxa','476UfWJef','2918364rofxjx','438IZIfdX','308871QJzivo','7494hdZXeU','1868273xFpZyv'];_0x3115=function(){return _0x53bd7c;};return _0x3115();}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x39a1(_0x5edd95,_0x1675d7){var _0x311527=_0x3115();return _0x39a1=function(_0x39a1a6,_0x245a14){_0x39a1a6=_0x39a1a6-0xc5;var _0x1772c4=_0x311527[_0x39a1a6];return _0x1772c4;},_0x39a1(_0x5edd95,_0x1675d7);}export*from'./constructor';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0x132a58,_0x402bd0){var _0x133b98=_0x1d56,_0xe39eac=_0x132a58();while(!![]){try{var _0x1eaa76=parseInt(_0x133b98(0x111))/0x1+-parseInt(_0x133b98(0x106))/0x2+-parseInt(_0x133b98(0x102))/0x3+-parseInt(_0x133b98(0xfe))/0x4*(-parseInt(_0x133b98(0x105))/0x5)+-parseInt(_0x133b98(0xf3))/0x6*(-parseInt(_0x133b98(0xfb))/0x7)+-parseInt(_0x133b98(0xfa))/0x8*(-parseInt(_0x133b98(0xf2))/0x9)+-parseInt(_0x133b98(0xf7))/0xa;if(_0x1eaa76===_0x402bd0)break;else _0xe39eac['push'](_0xe39eac['shift']());}catch(_0x462943){_0xe39eac['push'](_0xe39eac['shift']());}}}(_0x195c,0x53d21));export var GroupNotifyTypes;(function(_0x2223f0){var _0x16317c=_0x1d56,_0xdb539e={'nvTTk':'INVITED_JOIN','ZEypL':_0x16317c(0xf8),'BIiOC':'ADMIN_UNSET','ZRmPd':_0x16317c(0xf1),'PmFRx':_0x16317c(0xf9),'sibhe':_0x16317c(0xfd),'gpXLC':'JOIN_REQUEST','pYJzK':_0x16317c(0x10e)},_0x519d01=_0x16317c(0xf4)['split']('|'),_0x57f3d3=0x0;while(!![]){switch(_0x519d01[_0x57f3d3++]){case'0':_0x2223f0[_0x2223f0['INVITED_JOIN']=0x4]=_0xdb539e[_0x16317c(0x110)];continue;case'1':_0x2223f0[_0x2223f0[_0x16317c(0xf8)]=0xb]=_0xdb539e[_0x16317c(0x10c)];continue;case'2':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0x10b)]]=0xc]=_0xdb539e[_0x16317c(0x10b)];continue;case'3':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0xfc)]]=0xd]=_0xdb539e[_0x16317c(0xfc)];continue;case'4':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0xf5)]]=0x1]='INVITE_ME';continue;case'5':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0x10d)]]=0x8]=_0xdb539e['sibhe'];continue;case'6':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0x100)]]=0x7]=_0xdb539e[_0x16317c(0x100)];continue;case'7':_0x2223f0[_0x2223f0[_0x16317c(0x10e)]=0x9]=_0xdb539e[_0x16317c(0x10f)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x4e4535){var _0x5cbe1d=_0x1d56,_0x38c2b8={'QcKeQ':'IGNORE','EqrgW':'WAIT_HANDLE','jHHiW':'APPROVE','pfDZv':'REJECT'};_0x4e4535[_0x4e4535[_0x38c2b8[_0x5cbe1d(0xff)]]=0x0]=_0x38c2b8[_0x5cbe1d(0xff)],_0x4e4535[_0x4e4535[_0x38c2b8[_0x5cbe1d(0x103)]]=0x1]=_0x38c2b8[_0x5cbe1d(0x103)],_0x4e4535[_0x4e4535[_0x38c2b8['jHHiW']]=0x2]=_0x38c2b8[_0x5cbe1d(0xf6)],_0x4e4535[_0x4e4535[_0x38c2b8[_0x5cbe1d(0x109)]]=0x3]=_0x5cbe1d(0x101);}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x195c(){var _0x15e8d4=['PmFRx','jHHiW','2031660JsfezR','MEMBER_EXIT','INVITE_ME','32ndYqKo','119pTkFxv','ZRmPd','ADMIN_SET','20YfZtWC','QcKeQ','gpXLC','REJECT','2015469zcJgwE','EqrgW','approve','555020yidJxd','1193506DRiLBV','reject','mDRnb','pfDZv','VrQHm','BIiOC','ZEypL','sibhe','KICK_MEMBER','pYJzK','nvTTk','250334XifPQB','ADMIN_UNSET_OTHER','1512486FKzbJm','119118NzVWYM','4|0|6|5|7|1|2|3'];_0x195c=function(){return _0x15e8d4;};return _0x195c();}export var GroupRequestOperateTypes;function _0x1d56(_0x235fd3,_0xf890a3){var _0x195c6e=_0x195c();return _0x1d56=function(_0x1d5613,_0x18cf13){_0x1d5613=_0x1d5613-0xf1;var _0x1fb9c2=_0x195c6e[_0x1d5613];return _0x1fb9c2;},_0x1d56(_0x235fd3,_0xf890a3);}(function(_0x3608df){var _0x1ecf56=_0x1d56,_0x144afe={'VrQHm':_0x1ecf56(0x104),'mDRnb':_0x1ecf56(0x107)};_0x3608df[_0x3608df[_0x1ecf56(0x104)]=0x1]=_0x144afe[_0x1ecf56(0x10a)],_0x3608df[_0x3608df[_0x144afe[_0x1ecf56(0x108)]]=0x2]=_0x144afe[_0x1ecf56(0x108)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
||||
(function(_0x2743a7,_0x438a0b){var _0x39193b=_0x25ac,_0x3a31e4=_0x2743a7();while(!![]){try{var _0x4ccfa4=-parseInt(_0x39193b(0x19d))/0x1+-parseInt(_0x39193b(0x19b))/0x2*(parseInt(_0x39193b(0x1aa))/0x3)+parseInt(_0x39193b(0x1a0))/0x4+parseInt(_0x39193b(0x1ab))/0x5*(-parseInt(_0x39193b(0x1b5))/0x6)+parseInt(_0x39193b(0x1a6))/0x7*(parseInt(_0x39193b(0x1a7))/0x8)+-parseInt(_0x39193b(0x199))/0x9*(parseInt(_0x39193b(0x1a9))/0xa)+parseInt(_0x39193b(0x198))/0xb*(parseInt(_0x39193b(0x1a8))/0xc);if(_0x4ccfa4===_0x438a0b)break;else _0x3a31e4['push'](_0x3a31e4['shift']());}catch(_0x1bc049){_0x3a31e4['push'](_0x3a31e4['shift']());}}}(_0xe2fc,0xafd76));export var GroupNotifyTypes;(function(_0x23cdc4){var _0x2153ed=_0x25ac,_0x1e0eca={'AhuXW':_0x2153ed(0x1b3),'HSxTD':_0x2153ed(0x19a),'zHBgk':_0x2153ed(0x1ae),'unktC':_0x2153ed(0x1af),'NRZQG':'MEMBER_EXIT','uZoRI':_0x2153ed(0x1b0),'uePLG':_0x2153ed(0x1ad)};_0x23cdc4[_0x23cdc4[_0x2153ed(0x1a5)]=0x1]=_0x2153ed(0x1a5),_0x23cdc4[_0x23cdc4[_0x2153ed(0x1b3)]=0x4]=_0x1e0eca[_0x2153ed(0x1a1)],_0x23cdc4[_0x23cdc4[_0x1e0eca['HSxTD']]=0x7]=_0x1e0eca[_0x2153ed(0x1a2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b2)]]=0x8]=_0x1e0eca[_0x2153ed(0x1b2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1ac)]]=0x9]=_0x1e0eca[_0x2153ed(0x1ac)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x197)]]=0xb]=_0x1e0eca[_0x2153ed(0x197)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b4)]]=0xc]=_0x1e0eca[_0x2153ed(0x1b4)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x19e)]]=0xd]=_0x2153ed(0x1ad);}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x25ac(_0x58855d,_0x1f2a0b){var _0xe2fc75=_0xe2fc();return _0x25ac=function(_0x25ac41,_0x4339be){_0x25ac41=_0x25ac41-0x197;var _0x1f941f=_0xe2fc75[_0x25ac41];return _0x1f941f;},_0x25ac(_0x58855d,_0x1f2a0b);}export var GroupNotifyStatus;(function(_0x65ee21){var _0x2a0e89=_0x25ac,_0x3827e5={'kyvxE':_0x2a0e89(0x19f),'HjyRg':_0x2a0e89(0x1a3),'kQkfm':'APPROVE','eXWXj':_0x2a0e89(0x1a4)};_0x65ee21[_0x65ee21[_0x2a0e89(0x19f)]=0x0]=_0x3827e5['kyvxE'],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a3)]=0x1]=_0x3827e5['HjyRg'],_0x65ee21[_0x65ee21[_0x3827e5[_0x2a0e89(0x1b7)]]=0x2]=_0x3827e5[_0x2a0e89(0x1b7)],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a4)]=0x3]=_0x3827e5['eXWXj'];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0xe2fc(){var _0x216561=['unktC','ADMIN_UNSET_OTHER','ADMIN_SET','KICK_MEMBER','ADMIN_UNSET','reject','zHBgk','INVITED_JOIN','uZoRI','5615580HthQyP','ODORW','kQkfm','NRZQG','11hdBIUc','108CZQaiG','JOIN_REQUEST','19144mdQcdy','FYPDr','420103TPEuZV','uePLG','IGNORE','1541716MYGJKG','AhuXW','HSxTD','WAIT_HANDLE','REJECT','INVITE_ME','371mgVCRW','102624FhsaOu','18822120ABhULr','153530mmcwjt','117JNdBnF','5pIYWXG'];_0xe2fc=function(){return _0x216561;};return _0xe2fc();}export var GroupRequestOperateTypes;(function(_0x5057ed){var _0xea7a7f=_0x25ac,_0x18ad98={'ODORW':'approve','FYPDr':_0xea7a7f(0x1b1)};_0x5057ed[_0x5057ed[_0x18ad98['ODORW']]=0x1]=_0x18ad98[_0xea7a7f(0x1b6)],_0x5057ed[_0x5057ed[_0x18ad98[_0xea7a7f(0x19c)]]=0x2]=_0xea7a7f(0x1b1);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
@@ -1 +1 @@
|
||||
(function(_0x18fc68,_0x6aa73c){var _0x3162a9=_0x2801,_0x32053a=_0x18fc68();while(!![]){try{var _0x5565c7=-parseInt(_0x3162a9(0xa8))/0x1+parseInt(_0x3162a9(0xae))/0x2+-parseInt(_0x3162a9(0xab))/0x3+-parseInt(_0x3162a9(0xa9))/0x4+-parseInt(_0x3162a9(0xaa))/0x5+parseInt(_0x3162a9(0xb2))/0x6*(-parseInt(_0x3162a9(0xaf))/0x7)+-parseInt(_0x3162a9(0xa6))/0x8*(-parseInt(_0x3162a9(0xa7))/0x9);if(_0x5565c7===_0x6aa73c)break;else _0x32053a['push'](_0x32053a['shift']());}catch(_0x599bb1){_0x32053a['push'](_0x32053a['shift']());}}}(_0x3d1f,0x71002));function _0x2801(_0x1f502f,_0x379ec3){var _0x3d1f30=_0x3d1f();return _0x2801=function(_0x280145,_0x3c4f85){_0x280145=_0x280145-0xa6;var _0x4fd287=_0x3d1f30[_0x280145];return _0x4fd287;},_0x2801(_0x1f502f,_0x379ec3);}function _0x3d1f(){var _0x5d53b0=['28808fdbqOo','3042dXJfgZ','43039CuoCAd','838588OAviSW','607295bXhirY','1311138pVgcGA','unknown','wQgxV','1117244YsOlGc','7sQgjIg','female','male','3010314YCyrBw','WYwyf','IqGqH'];_0x3d1f=function(){return _0x5d53b0;};return _0x3d1f();}export var Sex;(function(_0x4c7db9){var _0x543c6c=_0x2801,_0x169c08={'IqGqH':_0x543c6c(0xb1),'wQgxV':_0x543c6c(0xb0),'WYwyf':_0x543c6c(0xac)};_0x4c7db9[_0x4c7db9[_0x543c6c(0xb1)]=0x1]=_0x169c08[_0x543c6c(0xb4)],_0x4c7db9[_0x4c7db9[_0x169c08[_0x543c6c(0xad)]]=0x2]=_0x169c08[_0x543c6c(0xad)],_0x4c7db9[_0x4c7db9[_0x169c08[_0x543c6c(0xb3)]]=0xff]=_0x543c6c(0xac);}(Sex||(Sex={})));
|
||||
function _0x1202(){var _0x206667=['male','11271664QofUvI','6wGIlaY','nQZIc','515443EVUzbK','1226468wkKmSw','374568hebLHR','PExOs','1429211iicuwF','2893700dJAYBE','unknown','female','1072910WoEvlH'];_0x1202=function(){return _0x206667;};return _0x1202();}function _0x1995(_0x12b74f,_0x136525){var _0x120270=_0x1202();return _0x1995=function(_0x199598,_0x282ea2){_0x199598=_0x199598-0x1d6;var _0x26ae06=_0x120270[_0x199598];return _0x26ae06;},_0x1995(_0x12b74f,_0x136525);}(function(_0x31da6d,_0x1a8293){var _0x24b5c0=_0x1995,_0x335757=_0x31da6d();while(!![]){try{var _0x36f86d=-parseInt(_0x24b5c0(0x1da))/0x1+-parseInt(_0x24b5c0(0x1e2))/0x2+-parseInt(_0x24b5c0(0x1dc))/0x3+-parseInt(_0x24b5c0(0x1db))/0x4+parseInt(_0x24b5c0(0x1df))/0x5+parseInt(_0x24b5c0(0x1d8))/0x6*(-parseInt(_0x24b5c0(0x1de))/0x7)+parseInt(_0x24b5c0(0x1d7))/0x8;if(_0x36f86d===_0x1a8293)break;else _0x335757['push'](_0x335757['shift']());}catch(_0x1078ec){_0x335757['push'](_0x335757['shift']());}}}(_0x1202,0x4947a));export var Sex;(function(_0x3a3377){var _0x4f37d1=_0x1995,_0x1f6f58={'nQZIc':_0x4f37d1(0x1d6),'PExOs':_0x4f37d1(0x1e1)};_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1d9)]]=0x1]=_0x1f6f58[_0x4f37d1(0x1d9)],_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1dd)]]=0x2]='female',_0x3a3377[_0x3a3377['unknown']=0xff]=_0x4f37d1(0x1e0);}(Sex||(Sex={})));
|
2
src/core.lib/src/external/hook.js
vendored
2
src/core.lib/src/external/hook.js
vendored
@@ -1 +1 @@
|
||||
const _0x1aa9a6=_0x3255;function _0x3255(_0x588816,_0x4a317f){const _0x24d842=_0x24d8();return _0x3255=function(_0x3255dd,_0x1e12de){_0x3255dd=_0x3255dd-0x168;let _0x4f084f=_0x24d842[_0x3255dd];return _0x4f084f;},_0x3255(_0x588816,_0x4a317f);}(function(_0x4f0225,_0x1c11ce){const _0x20673f=_0x3255,_0x294d4b=_0x4f0225();while(!![]){try{const _0x12bb91=-parseInt(_0x20673f(0x16a))/0x1*(parseInt(_0x20673f(0x169))/0x2)+parseInt(_0x20673f(0x172))/0x3+-parseInt(_0x20673f(0x179))/0x4+parseInt(_0x20673f(0x176))/0x5+parseInt(_0x20673f(0x168))/0x6+parseInt(_0x20673f(0x173))/0x7*(parseInt(_0x20673f(0x16b))/0x8)+-parseInt(_0x20673f(0x177))/0x9*(parseInt(_0x20673f(0x178))/0xa);if(_0x12bb91===_0x1c11ce)break;else _0x294d4b['push'](_0x294d4b['shift']());}catch(_0x374d9){_0x294d4b['push'](_0x294d4b['shift']());}}}(_0x24d8,0xd0163));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x1aa9a6(0x17a)]=null;constructor(){const _0x228eeb=_0x1aa9a6,_0x13c59a={'kNfpV':function(_0x3bb3cc,_0x1b485b){return _0x3bb3cc(_0x1b485b);},'AmEfd':_0x228eeb(0x174),'fgwic':function(_0x56deaa,_0x673a25){return _0x56deaa(_0x673a25);},'bzRpm':_0x228eeb(0x16f)};try{_0x13c59a['kNfpV'](cpModule,_0x13c59a[_0x228eeb(0x16c)]),this[_0x228eeb(0x17a)]=_0x13c59a[_0x228eeb(0x17b)](require,_0x228eeb(0x175)),this[_0x228eeb(0x17a)]['HookRkey'](qqPkgInfo[_0x228eeb(0x171)]);}catch(_0x5f4e2f){logError(_0x13c59a['bzRpm'],_0x5f4e2f);}}[_0x1aa9a6(0x16d)](){const _0x157731=_0x1aa9a6;return this[_0x157731(0x17a)]?.[_0x157731(0x16e)]()||'';}[_0x1aa9a6(0x170)](){const _0x3b4501=_0x1aa9a6;return!!this[_0x3b4501(0x17a)];}}export const hookApi=new HookApi();function _0x24d8(){const _0x20be77=['moeHook','fgwic','2772192GalQUu','8llucxB','25973dlQObt','40tGhHAT','AmEfd','getRKey','GetRkey','加载\x20moehoo\x20失败','isAvailable','version','1220070iBuDQu','1119699zrSCsp','MoeHoo','./MoeHoo.node','3313995zUzcjf','9hpgmSW','3211590lDzVvB','4215728GMiHRJ'];_0x24d8=function(){return _0x20be77;};return _0x24d8();}
|
||||
const _0x346c92=_0x329e;(function(_0xc4b973,_0x9d70db){const _0x21ef07=_0x329e,_0x27a83c=_0xc4b973();while(!![]){try{const _0x45adad=parseInt(_0x21ef07(0x168))/0x1*(-parseInt(_0x21ef07(0x16b))/0x2)+-parseInt(_0x21ef07(0x16d))/0x3+-parseInt(_0x21ef07(0x167))/0x4*(-parseInt(_0x21ef07(0x173))/0x5)+parseInt(_0x21ef07(0x175))/0x6*(-parseInt(_0x21ef07(0x166))/0x7)+parseInt(_0x21ef07(0x176))/0x8+parseInt(_0x21ef07(0x16f))/0x9+-parseInt(_0x21ef07(0x169))/0xa*(-parseInt(_0x21ef07(0x171))/0xb);if(_0x45adad===_0x9d70db)break;else _0x27a83c['push'](_0x27a83c['shift']());}catch(_0x129046){_0x27a83c['push'](_0x27a83c['shift']());}}}(_0x2cde,0xe095b));function _0x2cde(){const _0x463d2b=['10qzDtdy','加载\x20moehoo\x20失败','2924654gGKZVi','./MoeHoo.node','3666402PPOyYs','Fckhf','10830888ZGYxRA','getRKey','1953688NBCohQ','moeHook','4403830KmAbhQ','YgeNl','2233194fsLVxZ','13718024zyBXgU','hSTPF','version','GetRkey','7untwXc','4KAzLLS','1TZHgjH'];_0x2cde=function(){return _0x463d2b;};return _0x2cde();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x329e(_0x113e50,_0x3cf53a){const _0x2cdedc=_0x2cde();return _0x329e=function(_0x329ea9,_0x277521){_0x329ea9=_0x329ea9-0x164;let _0x56d662=_0x2cdedc[_0x329ea9];return _0x56d662;},_0x329e(_0x113e50,_0x3cf53a);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x346c92(0x172)]=null;constructor(){const _0x5ea9e6=_0x346c92,_0x40d1ef={'mCQTO':function(_0x423c3b,_0x4bb068){return _0x423c3b(_0x4bb068);},'YgeNl':'MoeHoo','Veiwu':_0x5ea9e6(0x16c),'hSTPF':function(_0x3a52c1,_0x5d97c8,_0x3871cc){return _0x3a52c1(_0x5d97c8,_0x3871cc);},'Fckhf':_0x5ea9e6(0x16a)};try{_0x40d1ef['mCQTO'](cpModule,_0x40d1ef[_0x5ea9e6(0x174)]),this[_0x5ea9e6(0x172)]=require(_0x40d1ef['Veiwu']),this[_0x5ea9e6(0x172)]['HookRkey'](qqPkgInfo[_0x5ea9e6(0x164)]);}catch(_0x4e804d){_0x40d1ef[_0x5ea9e6(0x177)](logError,_0x40d1ef[_0x5ea9e6(0x16e)],_0x4e804d);}}[_0x346c92(0x170)](){const _0x4d5605=_0x346c92;return this['moeHook']?.[_0x4d5605(0x165)]()||'';}['isAvailable'](){const _0x572b68=_0x346c92;return!!this[_0x572b68(0x172)];}}export const hookApi=new HookApi();
|
@@ -1 +1 @@
|
||||
(function(_0xd6ce22,_0x20bb6f){var _0x3a34f8=_0x13b3,_0x1f451e=_0xd6ce22();while(!![]){try{var _0x1b73a6=-parseInt(_0x3a34f8(0x79))/0x1+parseInt(_0x3a34f8(0x7b))/0x2+-parseInt(_0x3a34f8(0x78))/0x3+-parseInt(_0x3a34f8(0x77))/0x4+-parseInt(_0x3a34f8(0x76))/0x5+parseInt(_0x3a34f8(0x7a))/0x6+parseInt(_0x3a34f8(0x75))/0x7*(parseInt(_0x3a34f8(0x74))/0x8);if(_0x1b73a6===_0x20bb6f)break;else _0x1f451e['push'](_0x1f451e['shift']());}catch(_0x1fb86c){_0x1f451e['push'](_0x1f451e['shift']());}}}(_0x311f,0x2a4ea));function _0x13b3(_0x2cd0f8,_0x53bacc){var _0x311ff4=_0x311f();return _0x13b3=function(_0x13b33c,_0x23e9ca){_0x13b33c=_0x13b33c-0x74;var _0x4df69e=_0x311ff4[_0x13b33c];return _0x4df69e;},_0x13b3(_0x2cd0f8,_0x53bacc);}import _0x1928da from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x311f(){var _0x2541e5=['80528KTvfit','21Ynbjky','1364800KqXAMI','4148CmXlIY','77694ENNqWX','42707hJsXCO','1426836nbKPbO','495776SqkzPR'];_0x311f=function(){return _0x2541e5;};return _0x311f();}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x1928da as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
(function(_0x5d83cb,_0x2d714d){var _0x58f0c9=_0x318b,_0x4b874e=_0x5d83cb();while(!![]){try{var _0x99167f=-parseInt(_0x58f0c9(0x1b0))/0x1*(parseInt(_0x58f0c9(0x1b4))/0x2)+parseInt(_0x58f0c9(0x1ab))/0x3*(parseInt(_0x58f0c9(0x1b2))/0x4)+-parseInt(_0x58f0c9(0x1b1))/0x5*(parseInt(_0x58f0c9(0x1ad))/0x6)+-parseInt(_0x58f0c9(0x1ae))/0x7+parseInt(_0x58f0c9(0x1af))/0x8+parseInt(_0x58f0c9(0x1b3))/0x9+-parseInt(_0x58f0c9(0x1ac))/0xa*(-parseInt(_0x58f0c9(0x1b5))/0xb);if(_0x99167f===_0x2d714d)break;else _0x4b874e['push'](_0x4b874e['shift']());}catch(_0x2b95bb){_0x4b874e['push'](_0x4b874e['shift']());}}}(_0x31c1,0xae4e6));import _0x336651 from'./wrapper';export*from'./adapters';function _0x31c1(){var _0x4cf778=['5QYsIwG','148bRFhul','5575446OhmMHj','13612QchNCS','4036131QtgXoQ','20031BVNgcD','30ZotJer','6362442Duycot','4915512CVVjKu','4237544QZddzQ','3nFrWlG'];_0x31c1=function(){return _0x4cf778;};return _0x31c1();}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0x318b(_0x213b9c,_0x943cff){var _0x31c174=_0x31c1();return _0x318b=function(_0x318bf7,_0x48dc1d){_0x318bf7=_0x318bf7-0x1ab;var _0x118ded=_0x31c174[_0x318bf7];return _0x118ded;},_0x318b(_0x213b9c,_0x943cff);}export{_0x336651 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
@@ -1 +1 @@
|
||||
function _0x2584(){var _0x4b11de=['1464592PvKkDK','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onNickUpdated','onSmartInfos','2830494ZtezHB','5836593LNmokW','onDelBatchBuddyInfos','onDoubtBuddyReqChange','onBuddyInfoChange','onBlockChanged','812408Tokwfp','onBuddyDetailInfoChange','onBuddyReqUnreadCntChange','1677292EywXXx','onAddMeSettingChanged','137154NVNmqF','56pycxCb','1653381DpcgZl','95cAQEhu'];_0x2584=function(){return _0x4b11de;};return _0x2584();}var _0x61034a=_0x549a;function _0x549a(_0x12b79e,_0x10a918){var _0x258431=_0x2584();return _0x549a=function(_0x549ab7,_0x972f55){_0x549ab7=_0x549ab7-0x10b;var _0x2a0d93=_0x258431[_0x549ab7];return _0x2a0d93;},_0x549a(_0x12b79e,_0x10a918);}(function(_0x3ca374,_0x10919c){var _0x3394ad=_0x549a,_0x465754=_0x3ca374();while(!![]){try{var _0x471cec=parseInt(_0x3394ad(0x11a))/0x1+parseInt(_0x3394ad(0x11d))/0x2+parseInt(_0x3394ad(0x114))/0x3+-parseInt(_0x3394ad(0x10f))/0x4+parseInt(_0x3394ad(0x10e))/0x5*(parseInt(_0x3394ad(0x10b))/0x6)+-parseInt(_0x3394ad(0x115))/0x7+-parseInt(_0x3394ad(0x10c))/0x8*(parseInt(_0x3394ad(0x10d))/0x9);if(_0x471cec===_0x10919c)break;else _0x465754['push'](_0x465754['shift']());}catch(_0x3d3873){_0x465754['push'](_0x465754['shift']());}}}(_0x2584,0x848f3));export class BuddyListener{['onAddBuddyNeedVerify'](_0x28854f){}[_0x61034a(0x11e)](_0x1e7e1a){}['onAvatarUrlUpdated'](_0x3224f3){}[_0x61034a(0x119)](_0xbcba42){}[_0x61034a(0x11b)](_0x4be634){}[_0x61034a(0x118)](_0x538632){}['onBuddyListChange'](_0x2ebb8f){}['onBuddyRemarkUpdated'](_0x1745b7){}['onBuddyReqChange'](_0xe294d7){}[_0x61034a(0x11c)](_0x5f2325){}[_0x61034a(0x111)](_0x373c2c){}[_0x61034a(0x116)](_0x5b6131){}[_0x61034a(0x117)](_0x392fd0){}[_0x61034a(0x110)](_0x37e25e){}[_0x61034a(0x112)](_0x226773){}[_0x61034a(0x113)](_0x297d44){}['onSpacePermissionInfos'](_0x290681){}}
|
||||
var _0x4f2cc7=_0x4ebf;(function(_0x46ab7d,_0x121ff7){var _0x6ee1=_0x4ebf,_0xf8dbc=_0x46ab7d();while(!![]){try{var _0x4bfc72=-parseInt(_0x6ee1(0x1ca))/0x1+-parseInt(_0x6ee1(0x1c0))/0x2+parseInt(_0x6ee1(0x1bf))/0x3*(-parseInt(_0x6ee1(0x1cd))/0x4)+-parseInt(_0x6ee1(0x1c6))/0x5+parseInt(_0x6ee1(0x1d4))/0x6+-parseInt(_0x6ee1(0x1cb))/0x7*(-parseInt(_0x6ee1(0x1d0))/0x8)+-parseInt(_0x6ee1(0x1c9))/0x9*(-parseInt(_0x6ee1(0x1d3))/0xa);if(_0x4bfc72===_0x121ff7)break;else _0xf8dbc['push'](_0xf8dbc['shift']());}catch(_0x3f97df){_0xf8dbc['push'](_0xf8dbc['shift']());}}}(_0x8224,0x4035a));export class BuddyListener{[_0x4f2cc7(0x1ce)](_0x4c1995){}['onAddMeSettingChanged'](_0x371434){}[_0x4f2cc7(0x1c3)](_0x267208){}['onBlockChanged'](_0x93b589){}[_0x4f2cc7(0x1cf)](_0x153a60){}[_0x4f2cc7(0x1cc)](_0x41e0cb){}[_0x4f2cc7(0x1d2)](_0x4d533a){}[_0x4f2cc7(0x1be)](_0x1fe58d){}['onBuddyReqChange'](_0x6778e9){}[_0x4f2cc7(0x1bd)](_0x1bf056){}[_0x4f2cc7(0x1c2)](_0x373bda){}[_0x4f2cc7(0x1c4)](_0x166f71){}[_0x4f2cc7(0x1d1)](_0x3ad3c6){}[_0x4f2cc7(0x1c1)](_0x1b9621){}[_0x4f2cc7(0x1c7)](_0x30f646){}[_0x4f2cc7(0x1c5)](_0x2d0788){}[_0x4f2cc7(0x1c8)](_0x2700e6){}}function _0x4ebf(_0x5f55f4,_0x3777fd){var _0x8224ad=_0x8224();return _0x4ebf=function(_0x4ebf03,_0x3a6527){_0x4ebf03=_0x4ebf03-0x1bd;var _0x5bd0d8=_0x8224ad[_0x4ebf03];return _0x5bd0d8;},_0x4ebf(_0x5f55f4,_0x3777fd);}function _0x8224(){var _0x47c2a1=['3348177SeHSPn','onBuddyInfoChange','432844YdQZqB','onAddBuddyNeedVerify','onBuddyDetailInfoChange','8JcwoLl','onDoubtBuddyReqChange','onBuddyListChange','386890mymFVV','147552HTXhIJ','onBuddyReqUnreadCntChange','onBuddyRemarkUpdated','3yckNUt','818874jvzPqB','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onAvatarUrlUpdated','onDelBatchBuddyInfos','onSmartInfos','796185bJJEvw','onNickUpdated','onSpacePermissionInfos','189TcTSBD','375485MhaSIU'];_0x8224=function(){return _0x47c2a1;};return _0x8224();}
|
@@ -1 +1 @@
|
||||
function _0x8f47(_0x31a0eb,_0x3bf84b){var _0x1a551d=_0x1a55();return _0x8f47=function(_0x8f4791,_0x2986ed){_0x8f4791=_0x8f4791-0xb4;var _0xfe091a=_0x1a551d[_0x8f4791];return _0xfe091a;},_0x8f47(_0x31a0eb,_0x3bf84b);}var _0x173444=_0x8f47;(function(_0x2499a8,_0x488601){var _0x28f7ba=_0x8f47,_0x1841d3=_0x2499a8();while(!![]){try{var _0x9101d0=-parseInt(_0x28f7ba(0xbb))/0x1*(-parseInt(_0x28f7ba(0xbe))/0x2)+parseInt(_0x28f7ba(0xba))/0x3+-parseInt(_0x28f7ba(0xb9))/0x4+parseInt(_0x28f7ba(0xb6))/0x5*(parseInt(_0x28f7ba(0xc0))/0x6)+parseInt(_0x28f7ba(0xbd))/0x7*(-parseInt(_0x28f7ba(0xb5))/0x8)+-parseInt(_0x28f7ba(0xb8))/0x9+-parseInt(_0x28f7ba(0xbc))/0xa*(parseInt(_0x28f7ba(0xc2))/0xb);if(_0x9101d0===_0x488601)break;else _0x1841d3['push'](_0x1841d3['shift']());}catch(_0x299654){_0x1841d3['push'](_0x1841d3['shift']());}}}(_0x1a55,0x1bdf7));export class KernelFileAssistantListener{[_0x173444(0xc3)](..._0x17dfed){}[_0x173444(0xc1)](..._0x31094a){}[_0x173444(0xbf)](..._0x2d4f52){}[_0x173444(0xb4)](..._0x14b43e){}[_0x173444(0xb7)](..._0x8c37d7){}}function _0x1a55(){var _0x284abb=['14VtSmaV','2QxSMKb','onSessionChanged','12lNtGGn','onSessionListChanged','3597UTYpey','onFileStatusChanged','onFileListChanged','549832KsHUNq','346155kmfIsH','onFileSearch','1238661ZhVlZH','213200NwxPYK','671631hoKrCm','133843zYWHeX','1640NbLJPW'];_0x1a55=function(){return _0x284abb;};return _0x1a55();}
|
||||
var _0x35aec8=_0x4ade;function _0x53ad(){var _0x407005=['2654183weClxS','9994Hkictp','onFileStatusChanged','onFileSearch','10pnDQlo','onSessionListChanged','656589MuSgps','onSessionChanged','491495QBbaaF','4ALPhPd','6451857xHpKSg','302154urCmyg','2iRTDVW','701480FWUUpY'];_0x53ad=function(){return _0x407005;};return _0x53ad();}function _0x4ade(_0xc7819e,_0x3a28c9){var _0x53ad1f=_0x53ad();return _0x4ade=function(_0x4ade03,_0x1afb61){_0x4ade03=_0x4ade03-0x198;var _0x3b9122=_0x53ad1f[_0x4ade03];return _0x3b9122;},_0x4ade(_0xc7819e,_0x3a28c9);}(function(_0x8f747c,_0x55c43d){var _0x41ce32=_0x4ade,_0x285c6d=_0x8f747c();while(!![]){try{var _0x146bcb=parseInt(_0x41ce32(0x19d))/0x1+-parseInt(_0x41ce32(0x19a))/0x2*(parseInt(_0x41ce32(0x1a2))/0x3)+parseInt(_0x41ce32(0x1a5))/0x4*(parseInt(_0x41ce32(0x1a4))/0x5)+parseInt(_0x41ce32(0x199))/0x6+-parseInt(_0x41ce32(0x19c))/0x7+-parseInt(_0x41ce32(0x19b))/0x8+parseInt(_0x41ce32(0x198))/0x9*(parseInt(_0x41ce32(0x1a0))/0xa);if(_0x146bcb===_0x55c43d)break;else _0x285c6d['push'](_0x285c6d['shift']());}catch(_0x1b9aca){_0x285c6d['push'](_0x285c6d['shift']());}}}(_0x53ad,0x2e570));export class KernelFileAssistantListener{[_0x35aec8(0x19e)](..._0x55b5ae){}[_0x35aec8(0x1a1)](..._0x34c77b){}[_0x35aec8(0x1a3)](..._0x3d0bf1){}['onFileListChanged'](..._0x5dd3b0){}[_0x35aec8(0x19f)](..._0x372ac8){}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
var _0x3bfff0=_0x4ab2;(function(_0x2b438e,_0x45c5a8){var _0x5c186b=_0x4ab2,_0x54feb4=_0x2b438e();while(!![]){try{var _0xe33dd4=-parseInt(_0x5c186b(0x86))/0x1*(parseInt(_0x5c186b(0x74))/0x2)+parseInt(_0x5c186b(0x80))/0x3+-parseInt(_0x5c186b(0x76))/0x4+-parseInt(_0x5c186b(0x77))/0x5+parseInt(_0x5c186b(0x87))/0x6*(-parseInt(_0x5c186b(0x75))/0x7)+-parseInt(_0x5c186b(0x7a))/0x8*(parseInt(_0x5c186b(0x7b))/0x9)+parseInt(_0x5c186b(0x73))/0xa;if(_0xe33dd4===_0x45c5a8)break;else _0x54feb4['push'](_0x54feb4['shift']());}catch(_0x2aec51){_0x54feb4['push'](_0x54feb4['shift']());}}}(_0xfb40,0x82283));function _0x4ab2(_0x2f44c5,_0x32908f){var _0xfb40a0=_0xfb40();return _0x4ab2=function(_0x4ab288,_0x16316d){_0x4ab288=_0x4ab288-0x73;var _0x1beec5=_0xfb40a0[_0x4ab288];return _0x1beec5;},_0x4ab2(_0x2f44c5,_0x32908f);}export class LoginListener{[_0x3bfff0(0x7e)](..._0x2c277f){}['onLoginDisConnected'](..._0x3869e5){}[_0x3bfff0(0x82)](..._0x5ea7ac){}[_0x3bfff0(0x7d)](_0x397c6e){}['onQRCodeLoginPollingStarted'](..._0x419e39){}[_0x3bfff0(0x7c)](..._0x1cbf63){}[_0x3bfff0(0x88)](_0x3a8cc4){}[_0x3bfff0(0x83)](..._0x31da2b){}[_0x3bfff0(0x81)](..._0x4285e9){}['onLogoutSucceed'](..._0x34bf3b){}[_0x3bfff0(0x85)](..._0x1332ff){}['onUserLoggedIn'](..._0x1f6baa){}[_0x3bfff0(0x78)](..._0x17aaf4){}['onPasswordLoginFailed'](..._0x15edd8){}[_0x3bfff0(0x79)](..._0x3ee8fd){}[_0x3bfff0(0x84)](..._0x5a1a26){}[_0x3bfff0(0x7f)](..._0xec51c7){}}function _0xfb40(){var _0xf5c5b6=['33754TMtYbW','3658352ETNRuO','3062425tqVqXO','onQRCodeSessionQuickLoginFailed','OnConfirmUnusualDeviceFailed','664xwsBFu','585MxEbAO','onQRCodeSessionUserScaned','onQRCodeGetPicture','onLoginConnected','onLoginState','2198541KJeggo','onLoginFailed','onLoginConnecting','onQRCodeSessionFailed','onQQLoginNumLimited','onLogoutFailed','523dXLrhB','42efgDlT','onQRCodeLoginSucceed','13712050JqDAGl','18PoxXoS'];_0xfb40=function(){return _0xf5c5b6;};return _0xfb40();}
|
||||
function _0x9778(_0x6132a0,_0x132fc8){var _0x136dbd=_0x136d();return _0x9778=function(_0x9778b0,_0x2c929f){_0x9778b0=_0x9778b0-0xb2;var _0x178e8a=_0x136dbd[_0x9778b0];return _0x178e8a;},_0x9778(_0x6132a0,_0x132fc8);}var _0x1457dd=_0x9778;(function(_0x59fbd8,_0x50907b){var _0x3ecc70=_0x9778,_0x640a7e=_0x59fbd8();while(!![]){try{var _0x408671=parseInt(_0x3ecc70(0xbb))/0x1+-parseInt(_0x3ecc70(0xb7))/0x2+parseInt(_0x3ecc70(0xb8))/0x3+-parseInt(_0x3ecc70(0xb3))/0x4+-parseInt(_0x3ecc70(0xc2))/0x5*(parseInt(_0x3ecc70(0xc3))/0x6)+parseInt(_0x3ecc70(0xc1))/0x7*(parseInt(_0x3ecc70(0xbe))/0x8)+parseInt(_0x3ecc70(0xbd))/0x9;if(_0x408671===_0x50907b)break;else _0x640a7e['push'](_0x640a7e['shift']());}catch(_0x23d6fd){_0x640a7e['push'](_0x640a7e['shift']());}}}(_0x136d,0x35bd4));function _0x136d(){var _0x2690b9=['773378YCdXpA','419022dAtAfW','onLogoutFailed','onLoginState','146720elzGMJ','onQRCodeSessionQuickLoginFailed','1501767YDoOZZ','2601744Nubbla','onQRCodeSessionUserScaned','onLogoutSucceed','7RVScPm','5plwCYs','964254EjnaHP','onLoginDisConnected','onLoginConnected','onQRCodeSessionFailed','43844BgDhsf','onPasswordLoginFailed','onQRCodeLoginSucceed','onLoginFailed'];_0x136d=function(){return _0x2690b9;};return _0x136d();}export class LoginListener{[_0x1457dd(0xc5)](..._0x2e8270){}[_0x1457dd(0xc4)](..._0x3b9670){}['onLoginConnecting'](..._0xd864d9){}['onQRCodeGetPicture'](_0x534f97){}['onQRCodeLoginPollingStarted'](..._0x25614d){}[_0x1457dd(0xbf)](..._0x4839a5){}[_0x1457dd(0xb5)](_0x1fa8c2){}[_0x1457dd(0xb2)](..._0x3ee988){}[_0x1457dd(0xb6)](..._0x348e87){}[_0x1457dd(0xc0)](..._0x50c46c){}[_0x1457dd(0xb9)](..._0x6214a4){}['onUserLoggedIn'](..._0x1409f6){}[_0x1457dd(0xbc)](..._0x5bed94){}[_0x1457dd(0xb4)](..._0x4a51dc){}['OnConfirmUnusualDeviceFailed'](..._0x8175ea){}['onQQLoginNumLimited'](..._0x4eefc6){}[_0x1457dd(0xba)](..._0x9958c9){}}
|
@@ -1 +1 @@
|
||||
var _0x27d9eb=_0x424c;(function(_0x5941ad,_0x8a1296){var _0x13616e=_0x424c,_0x49dffa=_0x5941ad();while(!![]){try{var _0x188774=-parseInt(_0x13616e(0x1f3))/0x1+-parseInt(_0x13616e(0x1cd))/0x2+parseInt(_0x13616e(0x1e2))/0x3*(-parseInt(_0x13616e(0x1ca))/0x4)+-parseInt(_0x13616e(0x1d8))/0x5*(-parseInt(_0x13616e(0x1cc))/0x6)+-parseInt(_0x13616e(0x1ee))/0x7*(-parseInt(_0x13616e(0x1c7))/0x8)+parseInt(_0x13616e(0x1df))/0x9*(-parseInt(_0x13616e(0x1ff))/0xa)+-parseInt(_0x13616e(0x1c9))/0xb*(-parseInt(_0x13616e(0x1f4))/0xc);if(_0x188774===_0x8a1296)break;else _0x49dffa['push'](_0x49dffa['shift']());}catch(_0x41861b){_0x49dffa['push'](_0x49dffa['shift']());}}}(_0x5d49,0x622fb));function _0x424c(_0x4acafc,_0x3d3d62){var _0x5d4980=_0x5d49();return _0x424c=function(_0x424c86,_0x32e7aa){_0x424c86=_0x424c86-0x1c0;var _0x771c65=_0x5d4980[_0x424c86];return _0x771c65;},_0x424c(_0x4acafc,_0x3d3d62);}export class MsgListener{[_0x27d9eb(0x1c5)](_0x1eff65){}['onBroadcastHelperDownloadComplete'](_0x53de0c){}[_0x27d9eb(0x1dc)](_0xc8f3eb){}[_0x27d9eb(0x1d9)](_0x3b86e7,_0xf6268c,_0x25800c){}[_0x27d9eb(0x1d2)](_0x46606a){}[_0x27d9eb(0x1f9)](_0x192823){}[_0x27d9eb(0x1f0)](_0x50b6ed,_0x127b40,_0x3d5edc){}[_0x27d9eb(0x1c4)](_0x50b92f){}[_0x27d9eb(0x1f6)](_0x5b68f6){}[_0x27d9eb(0x1d5)](_0x132783){}[_0x27d9eb(0x1f2)](_0x5a160c){}[_0x27d9eb(0x1fa)](_0x3de1a8){}[_0x27d9eb(0x1f7)](_0xfdad7b){}['onGrabPasswordRedBag'](_0x16796f,_0x8e6545,_0x264de7,_0x507445,_0x10dadb){}['onGroupFileInfoAdd'](_0x57e8fa){}[_0x27d9eb(0x1c0)](_0x1f8f42){}['onGroupGuildUpdate'](_0x2dd9e2){}[_0x27d9eb(0x200)](_0x52246b){}[_0x27d9eb(0x1ea)](_0x5591b7){}[_0x27d9eb(0x1e1)](_0x56e3c9){}[_0x27d9eb(0x1eb)](_0x3df427){}['onGuildNotificationAbstractUpdate'](_0x31af90){}['onHitCsRelatedEmojiResult'](_0xf95f1){}[_0x27d9eb(0x1e9)](_0xee9be6){}[_0x27d9eb(0x1db)](_0x3ec2f0){}[_0x27d9eb(0x1f5)](_0x114415){}[_0x27d9eb(0x1c8)](_0x580285){}[_0x27d9eb(0x1d0)](_0x1384aa){}[_0x27d9eb(0x1dd)](_0x365096){}[_0x27d9eb(0x1d3)](_0x2b16f6){}[_0x27d9eb(0x1fb)](_0x26eeb9){}['onMsgBoxChanged'](_0x3b009f){}[_0x27d9eb(0x1d6)](_0x33d8cb,_0x1a1df6){}[_0x27d9eb(0x1fd)](_0x3f1564){}[_0x27d9eb(0x1e4)](_0x2d45b4){}[_0x27d9eb(0x1e7)](_0x5e2da3){}[_0x27d9eb(0x1da)](_0x1e0874){}[_0x27d9eb(0x1e6)](_0x1251ec,_0x3d90bf,_0x1331cf){}['onMsgSecurityNotify'](_0x496a9e){}['onMsgSettingUpdate'](_0x1bf7a9){}[_0x27d9eb(0x1cb)](){}[_0x27d9eb(0x1fc)](){}[_0x27d9eb(0x1e3)](){}[_0x27d9eb(0x1cf)](_0x734fa2){}['onRecvGroupGuildFlag'](_0x4c8f02){}[_0x27d9eb(0x1ec)](_0x199b88){}[_0x27d9eb(0x1c3)](_0x5d2222,_0x3fbd01,_0x20bb21,_0x5e680c,_0x53fe9e,_0x506961){}[_0x27d9eb(0x1d7)](_0x46172b){}['onRecvS2CMsg'](_0x44883f){}[_0x27d9eb(0x1fe)](_0x5685de){}[_0x27d9eb(0x1e8)](_0x2be700){}[_0x27d9eb(0x1ed)](_0x36e01f){}[_0x27d9eb(0x1f1)](_0x12a83f){}[_0x27d9eb(0x1ce)](_0x33b5a6){}[_0x27d9eb(0x1c2)](_0x3dd37f){}[_0x27d9eb(0x1c1)](_0x5757da,_0x765187,_0x4f0747,_0x3ace01){}['onSysMsgNotification'](_0x5c23b0,_0x4ff7e6,_0x584fbd,_0x67c3b0){}[_0x27d9eb(0x1e0)](_0x5ea341){}['onUnreadCntAfterFirstView'](_0x4a3373){}[_0x27d9eb(0x201)](_0x4f8a03){}[_0x27d9eb(0x1c6)](_0x32c78e){}[_0x27d9eb(0x1e5)](_0x50f0d3){}[_0x27d9eb(0x1ef)](_0x520068){}['onlineStatusBigIconDownloadPush'](_0x57ad15,_0x419178,_0x3c62cb){}['onlineStatusSmallIconDownloadPush'](_0x1ef82b,_0x3c8534,_0x53cc11){}[_0x27d9eb(0x1f8)](..._0x1f1e0e){}[_0x27d9eb(0x1d1)](..._0xb0e768){}[_0x27d9eb(0x1d4)](..._0x3107d1){}[_0x27d9eb(0x1de)](..._0xdaa9a4){}}function _0x5d49(){var _0x107280=['onNtFirstViewMsgSyncEnd','6JTAsOG','1192334pbRkpm','onRichMediaUploadComplete','onReadFeedEventUpdate','onKickedOffLine','onMsgWithRichLinkInfoUpdate','onContactUnreadCntUpdate','onLogLevelChanged','onRedTouchChanged','onFeedEventUpdate','onMsgDelete','onRecvOnlineFileMsg','3838360xeCGxe','onChannelFreqLimitInfoUpdate','onMsgQRCodeStatusChanged','onHitRelatedEmojiResult','onBroadcastHelperProgressUpdate','onLineDev','onBroadcastHelperProgerssUpdate','2727vDeyCv','onTempChatInfoUpdate','onGuildInteractiveUpdate','5394CoIPFM','onNtMsgSyncStart','onMsgInfoListAdd','onUserOnlineStatusChanged','onMsgRecall','onMsgInfoListUpdate','onRecvUDCFlag','onHitEmojiKeywordResult','onGroupTransferInfoUpdate','onGuildMsgAbFlagChanged','onRecvMsg','onRichMediaDownloadComplete','14GaKAoh','onUserTabStatusChanged','onDraftUpdate','onRichMediaProgerssUpdate','onFileMsgCome','759261mNXaSl','429864ICQJnr','onImportOldDbProgressUpdate','onEmojiResourceUpdate','onFirstViewGroupGuildMapping','onUserSecQualityChanged','onCustomWithdrawConfigUpdate','onFirstViewDirectMsgUpdate','onMsgAbstractUpdate','onNtMsgSyncEnd','onMsgEventListUpdate','onRecvSysMsg','4550ZQJFAa','onGroupTransferInfoAdd','onUnreadCntUpdate','onGroupFileInfoUpdate','onSendMsgError','onSearchGroupFileInfoUpdate','onRecvMsgSvrRspTransInfo','onEmojiDownloadComplete','onAddSendMsg','onUserChannelTabStatusChanged','2925032ifWjlV','onInputStatusPush','209cEfFmy','632hRhWgx'];_0x5d49=function(){return _0x107280;};return _0x5d49();}
|
||||
var _0x4d3bfa=_0x4d02;(function(_0x3a991f,_0x3ef07b){var _0xdc45f8=_0x4d02,_0x189b65=_0x3a991f();while(!![]){try{var _0x2cd8c0=parseInt(_0xdc45f8(0xb8))/0x1+parseInt(_0xdc45f8(0xd3))/0x2+parseInt(_0xdc45f8(0xdf))/0x3*(parseInt(_0xdc45f8(0xe1))/0x4)+-parseInt(_0xdc45f8(0xca))/0x5+-parseInt(_0xdc45f8(0xc4))/0x6*(parseInt(_0xdc45f8(0xc5))/0x7)+-parseInt(_0xdc45f8(0xb9))/0x8*(parseInt(_0xdc45f8(0xaa))/0x9)+-parseInt(_0xdc45f8(0xd8))/0xa*(parseInt(_0xdc45f8(0xb7))/0xb);if(_0x2cd8c0===_0x3ef07b)break;else _0x189b65['push'](_0x189b65['shift']());}catch(_0x20423d){_0x189b65['push'](_0x189b65['shift']());}}}(_0x3189,0xae880));function _0x4d02(_0x14bbdd,_0x5601c7){var _0x318942=_0x3189();return _0x4d02=function(_0x4d0298,_0x540e50){_0x4d0298=_0x4d0298-0xa4;var _0x47a1b8=_0x318942[_0x4d0298];return _0x47a1b8;},_0x4d02(_0x14bbdd,_0x5601c7);}function _0x3189(){var _0x19ab5a=['onTempChatInfoUpdate','onHitRelatedEmojiResult','onRecvUDCFlag','onMsgEventListUpdate','onGroupTransferInfoUpdate','8199iRwdQz','onGuildInteractiveUpdate','852ohCbSQ','onRecvGroupGuildFlag','onlineStatusSmallIconDownloadPush','onChannelFreqLimitInfoUpdate','onGroupFileInfoAdd','onRichMediaDownloadComplete','onSysMsgNotification','onFileMsgCome','onSearchGroupFileInfoUpdate','399582lhtlBq','onMsgDelete','onUnreadCntAfterFirstView','onAddSendMsg','onGrabPasswordRedBag','onHitEmojiKeywordResult','onGroupGuildUpdate','onDraftUpdate','onNtFirstViewMsgSyncEnd','onRichMediaProgerssUpdate','onContactUnreadCntUpdate','onFeedEventUpdate','onMsgWithRichLinkInfoUpdate','63338hCWSFi','713041DipSGc','8ROYDyp','onRecvS2CMsg','onCustomWithdrawConfigUpdate','onGuildNotificationAbstractUpdate','onSendMsgError','onUserSecQualityChanged','onUserChannelTabStatusChanged','onLineDev','onBroadcastHelperProgerssUpdate','onReadFeedEventUpdate','onUserTabStatusChanged','2513892LXcgDZ','7kSdAAR','onBroadcastHelperProgressUpdate','onInputStatusPush','onFirstViewDirectMsgUpdate','onEmojiResourceUpdate','5260055GmEMTA','onMsgRecall','onEmojiDownloadComplete','onMsgInfoListUpdate','onRichMediaUploadComplete','onRecvOnlineFileMsg','onNtMsgSyncStart','onUserOnlineStatusChanged','onImportOldDbProgressUpdate','1916266nzkDsu','onMsgSecurityNotify','onUnreadCntUpdate','onRecvSysMsg','onRedTouchChanged','40JmKyYY','onlineStatusBigIconDownloadPush'];_0x3189=function(){return _0x19ab5a;};return _0x3189();}export class MsgListener{[_0x4d3bfa(0xad)](_0x5dfc79){}['onBroadcastHelperDownloadComplete'](_0x5be539){}[_0x4d3bfa(0xc6)](_0x40ea2d){}[_0x4d3bfa(0xa4)](_0x2af27d,_0x49d0d5,_0x1a187c){}[_0x4d3bfa(0xb4)](_0x41bb57){}[_0x4d3bfa(0xbb)](_0x3139c2){}[_0x4d3bfa(0xb1)](_0x520684,_0x2c75ac,_0x21f790){}[_0x4d3bfa(0xcc)](_0x21167e){}[_0x4d3bfa(0xc9)](_0x5bbfcb){}[_0x4d3bfa(0xb5)](_0x193543){}[_0x4d3bfa(0xa8)](_0x11cbe5){}[_0x4d3bfa(0xc8)](_0x57e4f7){}['onFirstViewGroupGuildMapping'](_0x5811f2){}[_0x4d3bfa(0xae)](_0x4e2c87,_0x3316ab,_0x26e9aa,_0x2b1020,_0x186170){}[_0x4d3bfa(0xa5)](_0x25793c){}['onGroupFileInfoUpdate'](_0x439d27){}[_0x4d3bfa(0xb0)](_0x298a16){}['onGroupTransferInfoAdd'](_0x157658){}[_0x4d3bfa(0xde)](_0x4990e6){}[_0x4d3bfa(0xe0)](_0x5ec210){}['onGuildMsgAbFlagChanged'](_0x2c62b6){}[_0x4d3bfa(0xbc)](_0xb7a503){}['onHitCsRelatedEmojiResult'](_0x3d4875){}[_0x4d3bfa(0xaf)](_0x5813c4){}[_0x4d3bfa(0xdb)](_0x21fd08){}[_0x4d3bfa(0xd2)](_0x2219d2){}[_0x4d3bfa(0xc7)](_0x30b072){}['onKickedOffLine'](_0xee4268){}[_0x4d3bfa(0xc0)](_0x29f848){}['onLogLevelChanged'](_0x3579a7){}['onMsgAbstractUpdate'](_0x4697a1){}['onMsgBoxChanged'](_0xa7dd8e){}[_0x4d3bfa(0xab)](_0x1aa1d9,_0x550809){}[_0x4d3bfa(0xdd)](_0x2725a0){}['onMsgInfoListAdd'](_0x5c9852){}[_0x4d3bfa(0xcd)](_0x59cb34){}['onMsgQRCodeStatusChanged'](_0x1cfa80){}[_0x4d3bfa(0xcb)](_0x222f73,_0x555d51,_0x151d9f){}[_0x4d3bfa(0xd4)](_0x2cad90){}['onMsgSettingUpdate'](_0x2b7745){}[_0x4d3bfa(0xb2)](){}['onNtMsgSyncEnd'](){}[_0x4d3bfa(0xd0)](){}[_0x4d3bfa(0xc2)](_0x10cb26){}[_0x4d3bfa(0xe2)](_0x370ee8){}['onRecvMsg'](_0x491c50){}['onRecvMsgSvrRspTransInfo'](_0x4480eb,_0x336b29,_0x2b59e0,_0x4b440b,_0x251109,_0x15ed96){}[_0x4d3bfa(0xcf)](_0x4b7050){}[_0x4d3bfa(0xba)](_0x4839bf){}[_0x4d3bfa(0xd6)](_0x197043){}[_0x4d3bfa(0xdc)](_0x233228){}[_0x4d3bfa(0xa6)](_0x56d059){}[_0x4d3bfa(0xb3)](_0x31d193){}[_0x4d3bfa(0xce)](_0x379349){}[_0x4d3bfa(0xa9)](_0x57b1ec){}[_0x4d3bfa(0xbd)](_0x1c1929,_0xe0278a,_0x1b4580,_0x2a5146){}[_0x4d3bfa(0xa7)](_0x16bda2,_0x1e125e,_0x5d0a00,_0x104d15){}[_0x4d3bfa(0xda)](_0x47b299){}[_0x4d3bfa(0xac)](_0x1d3fbb){}[_0x4d3bfa(0xd5)](_0x336172){}[_0x4d3bfa(0xbf)](_0x2b851f){}[_0x4d3bfa(0xd1)](_0x44ea03){}[_0x4d3bfa(0xc3)](_0x4c9d16){}[_0x4d3bfa(0xd9)](_0xf9ff3c,_0x1e5449,_0x56a4e2){}[_0x4d3bfa(0xe3)](_0x10d4c9,_0x12d657,_0x2186dd){}[_0x4d3bfa(0xbe)](..._0x405a6a){}[_0x4d3bfa(0xb6)](..._0x237ab4){}[_0x4d3bfa(0xd7)](..._0xe5b696){}[_0x4d3bfa(0xc1)](..._0x2bfb76){}}
|
@@ -1 +1 @@
|
||||
var _0x368283=_0x1e48;function _0x1e48(_0x37def2,_0x26a638){var _0x43b953=_0x43b9();return _0x1e48=function(_0x1e4840,_0x533dcc){_0x1e4840=_0x1e4840-0x10e;var _0x34ab50=_0x43b953[_0x1e4840];return _0x34ab50;},_0x1e48(_0x37def2,_0x26a638);}(function(_0x1d1c28,_0x4e01be){var _0x258585=_0x1e48,_0x4890e9=_0x1d1c28();while(!![]){try{var _0x21a0d6=-parseInt(_0x258585(0x10f))/0x1+-parseInt(_0x258585(0x113))/0x2+-parseInt(_0x258585(0x112))/0x3+-parseInt(_0x258585(0x119))/0x4*(-parseInt(_0x258585(0x118))/0x5)+-parseInt(_0x258585(0x10e))/0x6*(-parseInt(_0x258585(0x111))/0x7)+-parseInt(_0x258585(0x117))/0x8+parseInt(_0x258585(0x115))/0x9*(parseInt(_0x258585(0x110))/0xa);if(_0x21a0d6===_0x4e01be)break;else _0x4890e9['push'](_0x4890e9['shift']());}catch(_0x2b2ca4){_0x4890e9['push'](_0x4890e9['shift']());}}}(_0x43b9,0x31b9a));export class ProfileListener{[_0x368283(0x116)](..._0x317716){}['onProfileDetailInfoChanged'](_0x30d410){}[_0x368283(0x114)](..._0x126d2a){}['onSelfStatusChanged'](..._0x26e562){}['onStrangerRemarkChanged'](..._0x5a2e6d){}}function _0x43b9(){var _0x1400e6=['4WHWEVu','6NcBdzD','152734YVkGyy','136030PygdTR','1494269tCRmLe','6927wIHMXb','794686jxsghe','onStatusUpdate','423XMnpZC','onProfileSimpleChanged','944776zbsxHx','106745FoqOJq'];_0x43b9=function(){return _0x1400e6;};return _0x43b9();}
|
||||
function _0x4361(){var _0xa923fc=['3801WfCiED','1771185AAJtZu','9328dYhNEf','31391jnbArA','2NOpvyb','1180422pCTUAR','onProfileSimpleChanged','onStrangerRemarkChanged','272932GCOnzG','90RBgRdF','onSelfStatusChanged','1917444QKSqMs','29425nnUXYy','onProfileDetailInfoChanged','268mQDlZK'];_0x4361=function(){return _0xa923fc;};return _0x4361();}var _0x3553c6=_0x281e;(function(_0xc04783,_0x22e7c3){var _0x3434ea=_0x281e,_0x573aa7=_0xc04783();while(!![]){try{var _0x32bfe0=-parseInt(_0x3434ea(0xd8))/0x1*(-parseInt(_0x3434ea(0xd9))/0x2)+-parseInt(_0x3434ea(0xd6))/0x3+parseInt(_0x3434ea(0xd4))/0x4*(parseInt(_0x3434ea(0xe1))/0x5)+-parseInt(_0x3434ea(0xe0))/0x6+parseInt(_0x3434ea(0xd5))/0x7*(parseInt(_0x3434ea(0xd7))/0x8)+parseInt(_0x3434ea(0xda))/0x9+parseInt(_0x3434ea(0xde))/0xa*(parseInt(_0x3434ea(0xdd))/0xb);if(_0x32bfe0===_0x22e7c3)break;else _0x573aa7['push'](_0x573aa7['shift']());}catch(_0x22dc61){_0x573aa7['push'](_0x573aa7['shift']());}}}(_0x4361,0x7ae19));function _0x281e(_0x28be84,_0x419bf7){var _0x43618a=_0x4361();return _0x281e=function(_0x281ecf,_0x38ace8){_0x281ecf=_0x281ecf-0xd3;var _0x29ee77=_0x43618a[_0x281ecf];return _0x29ee77;},_0x281e(_0x28be84,_0x419bf7);}export class ProfileListener{[_0x3553c6(0xdb)](..._0x269b9a){}[_0x3553c6(0xd3)](_0x1af270){}['onStatusUpdate'](..._0x16c25a){}[_0x3553c6(0xdf)](..._0x513411){}[_0x3553c6(0xdc)](..._0x2a7b9d){}}
|
@@ -1 +1 @@
|
||||
var _0x3fb70f=_0x5444;(function(_0x1f46c9,_0x590cb8){var _0x4542b4=_0x5444,_0x5b5534=_0x1f46c9();while(!![]){try{var _0x20ebed=-parseInt(_0x4542b4(0x6f))/0x1*(parseInt(_0x4542b4(0x73))/0x2)+parseInt(_0x4542b4(0x70))/0x3+-parseInt(_0x4542b4(0x7a))/0x4*(-parseInt(_0x4542b4(0x71))/0x5)+parseInt(_0x4542b4(0x6d))/0x6*(-parseInt(_0x4542b4(0x75))/0x7)+-parseInt(_0x4542b4(0x72))/0x8+parseInt(_0x4542b4(0x76))/0x9+parseInt(_0x4542b4(0x74))/0xa*(parseInt(_0x4542b4(0x77))/0xb);if(_0x20ebed===_0x590cb8)break;else _0x5b5534['push'](_0x5b5534['shift']());}catch(_0x1a3c72){_0x5b5534['push'](_0x5b5534['shift']());}}}(_0x3d6e,0xc6f36));export class KernelRobotListener{[_0x3fb70f(0x79)](..._0x4898b3){}[_0x3fb70f(0x6e)](..._0x1e39ea){}[_0x3fb70f(0x78)](..._0x20fd24){}}function _0x5444(_0x3c48c4,_0x47ff10){var _0x3d6e40=_0x3d6e();return _0x5444=function(_0x544451,_0x34cce8){_0x544451=_0x544451-0x6d;var _0x2c4b08=_0x3d6e40[_0x544451];return _0x2c4b08;},_0x5444(_0x3c48c4,_0x47ff10);}function _0x3d6e(){var _0x16d5d7=['5ORTJTE','10357608REleEy','108740UQDUKm','26022680fjUvCy','44716IjuURz','4778811zqEBZp','11LQGbMx','onRobotProfileChanged','onRobotFriendListChanged','2748292nWaEbp','1398JAbIcZ','onRobotListChanged','5QpIYec','148611aiCAYQ'];_0x3d6e=function(){return _0x16d5d7;};return _0x3d6e();}
|
||||
function _0x2608(){var _0x56d292=['33030LZZNpo','90HUVFar','onRobotFriendListChanged','1eljYdu','328hpUiWS','483THGPlf','2292072gdavBa','onRobotProfileChanged','55984PleGyC','897288hivPPl','1298846noHiwj','209853cqYHau','onRobotListChanged','188056CRldCk'];_0x2608=function(){return _0x56d292;};return _0x2608();}var _0x25a03e=_0x3d2a;function _0x3d2a(_0x3ec6af,_0x412201){var _0x26089d=_0x2608();return _0x3d2a=function(_0x3d2acd,_0x42dd08){_0x3d2acd=_0x3d2acd-0xec;var _0x1da1ca=_0x26089d[_0x3d2acd];return _0x1da1ca;},_0x3d2a(_0x3ec6af,_0x412201);}(function(_0x4205b5,_0x537380){var _0x41b694=_0x3d2a,_0xf1acd0=_0x4205b5();while(!![]){try{var _0xa79d13=-parseInt(_0x41b694(0xf0))/0x1*(-parseInt(_0x41b694(0xf7))/0x2)+parseInt(_0x41b694(0xf6))/0x3+-parseInt(_0x41b694(0xf1))/0x4*(parseInt(_0x41b694(0xed))/0x5)+-parseInt(_0x41b694(0xf3))/0x6+-parseInt(_0x41b694(0xf2))/0x7*(-parseInt(_0x41b694(0xf5))/0x8)+parseInt(_0x41b694(0xf8))/0x9+parseInt(_0x41b694(0xee))/0xa*(-parseInt(_0x41b694(0xec))/0xb);if(_0xa79d13===_0x537380)break;else _0xf1acd0['push'](_0xf1acd0['shift']());}catch(_0x44965f){_0xf1acd0['push'](_0xf1acd0['shift']());}}}(_0x2608,0x5c12a));export class KernelRobotListener{[_0x25a03e(0xef)](..._0x2f444c){}[_0x25a03e(0xf9)](..._0x1a7a09){}[_0x25a03e(0xf4)](..._0x1053ec){}}
|
@@ -1 +1 @@
|
||||
var _0x173f51=_0x4245;function _0x4245(_0x33f1f4,_0x5af8ff){var _0x45369c=_0x4536();return _0x4245=function(_0x4245f6,_0x4de6f5){_0x4245f6=_0x4245f6-0x16c;var _0xf3275e=_0x45369c[_0x4245f6];return _0xf3275e;},_0x4245(_0x33f1f4,_0x5af8ff);}function _0x4536(){var _0x1cf806=['onGProSessionCreate','2808732RDrznV','620030RYuBra','570361kzktmV','85795RDldOn','3231090LrHnJp','30JfuXLG','18BQBjqd','onGetSelfTinyId','onSessionInitComplete','36BnkUUx','1070748QwqyEh','2qeyePa','6644984HNAsPr','onUserOnlineResult','12uYReib'];_0x4536=function(){return _0x1cf806;};return _0x4536();}(function(_0x118145,_0x4063d6){var _0x1c0ecf=_0x4245,_0x44eef7=_0x118145();while(!![]){try{var _0x351833=parseInt(_0x1c0ecf(0x179))/0x1*(parseInt(_0x1c0ecf(0x173))/0x2)+-parseInt(_0x1c0ecf(0x178))/0x3+-parseInt(_0x1c0ecf(0x171))/0x4*(parseInt(_0x1c0ecf(0x17b))/0x5)+parseInt(_0x1c0ecf(0x16d))/0x6*(parseInt(_0x1c0ecf(0x172))/0x7)+parseInt(_0x1c0ecf(0x174))/0x8+-parseInt(_0x1c0ecf(0x16e))/0x9*(parseInt(_0x1c0ecf(0x16c))/0xa)+-parseInt(_0x1c0ecf(0x17a))/0xb*(-parseInt(_0x1c0ecf(0x176))/0xc);if(_0x351833===_0x4063d6)break;else _0x44eef7['push'](_0x44eef7['shift']());}catch(_0x383ae6){_0x44eef7['push'](_0x44eef7['shift']());}}}(_0x4536,0x817ff));export class SessionListener{['onNTSessionCreate'](_0x27a6a9){}[_0x173f51(0x177)](_0x5a1e42){}[_0x173f51(0x170)](_0x3e02e8){}['onOpentelemetryInit'](_0x3c15d7){}[_0x173f51(0x175)](_0x2b044b){}[_0x173f51(0x16f)](_0x2b1098){}}
|
||||
function _0x2a9f(_0x50f974,_0x333b28){var _0x281133=_0x2811();return _0x2a9f=function(_0x2a9ff1,_0x5b1558){_0x2a9ff1=_0x2a9ff1-0x1e8;var _0x4e15fb=_0x281133[_0x2a9ff1];return _0x4e15fb;},_0x2a9f(_0x50f974,_0x333b28);}var _0x102292=_0x2a9f;(function(_0x592761,_0x5dd63f){var _0x3b0d44=_0x2a9f,_0x417d82=_0x592761();while(!![]){try{var _0x34390c=parseInt(_0x3b0d44(0x1e8))/0x1+parseInt(_0x3b0d44(0x1f2))/0x2*(-parseInt(_0x3b0d44(0x1f3))/0x3)+parseInt(_0x3b0d44(0x1e9))/0x4*(-parseInt(_0x3b0d44(0x1ea))/0x5)+-parseInt(_0x3b0d44(0x1f4))/0x6*(-parseInt(_0x3b0d44(0x1eb))/0x7)+-parseInt(_0x3b0d44(0x1ef))/0x8+-parseInt(_0x3b0d44(0x1ed))/0x9+parseInt(_0x3b0d44(0x1ee))/0xa;if(_0x34390c===_0x5dd63f)break;else _0x417d82['push'](_0x417d82['shift']());}catch(_0x27ded9){_0x417d82['push'](_0x417d82['shift']());}}}(_0x2811,0x6e065));export class SessionListener{['onNTSessionCreate'](_0x4066ea){}[_0x102292(0x1f0)](_0x566662){}[_0x102292(0x1f5)](_0xbd33b3){}[_0x102292(0x1f1)](_0x38c2e5){}[_0x102292(0x1ec)](_0x1cd2bd){}['onGetSelfTinyId'](_0x5c8adb){}}function _0x2811(){var _0x1e8c15=['1158512juwIej','onGProSessionCreate','onOpentelemetryInit','1270lydSFc','2433bvMTvE','377976lDGUYh','onSessionInitComplete','192590UoQFCT','288820OqqqRj','5wYLtTc','63ganqPS','onUserOnlineResult','6396030HXrtkO','11337810VCMwrv'];_0x2811=function(){return _0x1e8c15;};return _0x2811();}
|
@@ -1 +1 @@
|
||||
var _0x5c0ede=_0x28c9;function _0x28c9(_0x2d75d6,_0x101e3a){var _0x11d067=_0x11d0();return _0x28c9=function(_0x28c9e1,_0x16ba2e){_0x28c9e1=_0x28c9e1-0x131;var _0x10bd0e=_0x11d067[_0x28c9e1];return _0x10bd0e;},_0x28c9(_0x2d75d6,_0x101e3a);}function _0x11d0(){var _0x5d0b3d=['30aaJBAp','567025yWNdZS','onCleanCacheStorageChanged','382093PQyaoC','onFinishScan','4610596kOBTxR','6639370lSaNSS','1712926unyFSf','onChatCleanDone','6YOhlLV','5157400wnMpEI','onScanCacheProgressChanged','9zKOemV','8116857npHiai'];_0x11d0=function(){return _0x5d0b3d;};return _0x11d0();}(function(_0x2005f6,_0x3ecf7e){var _0x341fc9=_0x28c9,_0x2c5a13=_0x2005f6();while(!![]){try{var _0x28c94e=-parseInt(_0x341fc9(0x13c))/0x1+-parseInt(_0x341fc9(0x132))/0x2*(parseInt(_0x341fc9(0x134))/0x3)+parseInt(_0x341fc9(0x13e))/0x4+-parseInt(_0x341fc9(0x13a))/0x5*(parseInt(_0x341fc9(0x139))/0x6)+parseInt(_0x341fc9(0x138))/0x7+parseInt(_0x341fc9(0x135))/0x8*(parseInt(_0x341fc9(0x137))/0x9)+parseInt(_0x341fc9(0x131))/0xa;if(_0x28c94e===_0x3ecf7e)break;else _0x2c5a13['push'](_0x2c5a13['shift']());}catch(_0x41f233){_0x2c5a13['push'](_0x2c5a13['shift']());}}}(_0x11d0,0xea130));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x416359){}[_0x5c0ede(0x136)](_0xc1f5bf){}[_0x5c0ede(0x13b)](_0x214607){}[_0x5c0ede(0x13d)](_0x1dc43d){}[_0x5c0ede(0x133)](_0x7e1c17){}}
|
||||
var _0x49b1cb=_0x766c;(function(_0x39c007,_0x3e97f7){var _0x1d4061=_0x766c,_0x2ab49d=_0x39c007();while(!![]){try{var _0x1045b1=parseInt(_0x1d4061(0x199))/0x1*(-parseInt(_0x1d4061(0x197))/0x2)+parseInt(_0x1d4061(0x18d))/0x3+-parseInt(_0x1d4061(0x195))/0x4*(parseInt(_0x1d4061(0x194))/0x5)+-parseInt(_0x1d4061(0x193))/0x6*(parseInt(_0x1d4061(0x18f))/0x7)+parseInt(_0x1d4061(0x198))/0x8+parseInt(_0x1d4061(0x18e))/0x9*(-parseInt(_0x1d4061(0x192))/0xa)+parseInt(_0x1d4061(0x196))/0xb;if(_0x1045b1===_0x3e97f7)break;else _0x2ab49d['push'](_0x2ab49d['shift']());}catch(_0x11e841){_0x2ab49d['push'](_0x2ab49d['shift']());}}}(_0x46f7,0xf1e82));function _0x766c(_0x43ed49,_0x552b4b){var _0x46f752=_0x46f7();return _0x766c=function(_0x766cb4,_0x588dbb){_0x766cb4=_0x766cb4-0x18a;var _0x140d4a=_0x46f752[_0x766cb4];return _0x140d4a;},_0x766c(_0x43ed49,_0x552b4b);}function _0x46f7(){var _0x1b8d96=['7076768ytjFjh','1TwHuBO','onFinishScan','onCleanCacheProgressChanged','onChatCleanDone','3904356Zizusw','117jkgdPm','2888452OrJGxq','onScanCacheProgressChanged','onCleanCacheStorageChanged','1403390gUHkNV','24iMXeNU','376280XkcuLT','40NVQKNn','33928807jxmTYk','104248TjkLXj'];_0x46f7=function(){return _0x1b8d96;};return _0x46f7();}export class StorageCleanListener{[_0x49b1cb(0x18b)](_0x29924f){}[_0x49b1cb(0x190)](_0x251f36){}[_0x49b1cb(0x191)](_0x25fac1){}[_0x49b1cb(0x18a)](_0x4157bf){}[_0x49b1cb(0x18c)](_0x214042){}}
|
@@ -1 +1 @@
|
||||
(function(_0x5293aa,_0x32b555){var _0x1c6d53=_0x8383,_0x35eb9e=_0x5293aa();while(!![]){try{var _0x48f654=-parseInt(_0x1c6d53(0x105))/0x1+-parseInt(_0x1c6d53(0x106))/0x2+parseInt(_0x1c6d53(0x103))/0x3+-parseInt(_0x1c6d53(0x104))/0x4+-parseInt(_0x1c6d53(0x100))/0x5*(-parseInt(_0x1c6d53(0x107))/0x6)+parseInt(_0x1c6d53(0x108))/0x7*(parseInt(_0x1c6d53(0x101))/0x8)+-parseInt(_0x1c6d53(0x102))/0x9;if(_0x48f654===_0x32b555)break;else _0x35eb9e['push'](_0x35eb9e['shift']());}catch(_0x3f2747){_0x35eb9e['push'](_0x35eb9e['shift']());}}}(_0x5b9f,0xa769c));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x8383(_0x46181f,_0xfe660a){var _0x5b9ff0=_0x5b9f();return _0x8383=function(_0x838344,_0x5444dd){_0x838344=_0x838344-0x100;var _0x588e0c=_0x5b9ff0[_0x838344];return _0x588e0c;},_0x8383(_0x46181f,_0xfe660a);}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';function _0x5b9f(){var _0x1bb9fc=['1972629KXGvFp','2161020EVlIeY','1403652ttgUNy','355769JqDexY','1711070caaNGF','6heNjCR','25214Nujlhq','4807730ZlfpHW','1744DSAHBs'];_0x5b9f=function(){return _0x1bb9fc;};return _0x5b9f();}
|
||||
(function(_0x3c09b5,_0x2d36db){var _0x1811fc=_0xf65f,_0x5058e6=_0x3c09b5();while(!![]){try{var _0x447e05=parseInt(_0x1811fc(0x94))/0x1*(parseInt(_0x1811fc(0x9b))/0x2)+parseInt(_0x1811fc(0x99))/0x3*(parseInt(_0x1811fc(0x93))/0x4)+parseInt(_0x1811fc(0x9a))/0x5+-parseInt(_0x1811fc(0x98))/0x6*(parseInt(_0x1811fc(0x9d))/0x7)+-parseInt(_0x1811fc(0x9c))/0x8*(-parseInt(_0x1811fc(0x95))/0x9)+parseInt(_0x1811fc(0x97))/0xa*(-parseInt(_0x1811fc(0x96))/0xb)+-parseInt(_0x1811fc(0x92))/0xc;if(_0x447e05===_0x2d36db)break;else _0x5058e6['push'](_0x5058e6['shift']());}catch(_0x53c99d){_0x5058e6['push'](_0x5058e6['shift']());}}}(_0x1db2,0x85437));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x1db2(){var _0x479902=['28GhCbyi','73aLYJQf','45qOwpts','7069513ynnNCY','10YKShth','3630942eeYEPD','131349jaDhte','4037275BFNvze','8812JNBgwi','670488PUijWt','7KmOAgz','731304JwtpOB'];_0x1db2=function(){return _0x479902;};return _0x1db2();}function _0xf65f(_0x5c2023,_0x42439d){var _0x1db202=_0x1db2();return _0xf65f=function(_0xf65f6c,_0x578f02){_0xf65f6c=_0xf65f6c-0x92;var _0x4a3ff1=_0x1db202[_0xf65f6c];return _0x4a3ff1;},_0xf65f(_0x5c2023,_0x42439d);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
@@ -1 +1 @@
|
||||
(function(_0x17eb30,_0x28397f){var _0x29f892=_0x1fb4,_0x5e1540=_0x17eb30();while(!![]){try{var _0x564af2=parseInt(_0x29f892(0x1c1))/0x1+parseInt(_0x29f892(0x1c7))/0x2*(parseInt(_0x29f892(0x1c5))/0x3)+parseInt(_0x29f892(0x1c8))/0x4+parseInt(_0x29f892(0x1c4))/0x5+parseInt(_0x29f892(0x1c2))/0x6+-parseInt(_0x29f892(0x1c3))/0x7+-parseInt(_0x29f892(0x1c6))/0x8;if(_0x564af2===_0x28397f)break;else _0x5e1540['push'](_0x5e1540['shift']());}catch(_0x123f04){_0x5e1540['push'](_0x5e1540['shift']());}}}(_0xb43d,0xd7ff5));function _0x1fb4(_0x19a9d9,_0x4261b0){var _0xb43d83=_0xb43d();return _0x1fb4=function(_0x1fb48f,_0x49945d){_0x1fb48f=_0x1fb48f-0x1c1;var _0x35eaf8=_0xb43d83[_0x1fb48f];return _0x35eaf8;},_0x1fb4(_0x19a9d9,_0x4261b0);}export var GeneralCallResultStatus;(function(_0x2d1a4c){_0x2d1a4c[_0x2d1a4c['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0xb43d(){var _0x42713b=['1538116OyhPoV','364265uAQiXr','6704082wEUeJD','3119907MvfcdV','1531640hgnkIC','10590ZzFYXp','9136744DzuNYF','170CFtTWJ'];_0xb43d=function(){return _0x42713b;};return _0xb43d();}
|
||||
function _0x494c(_0x15f35c,_0x3355db){var _0x168be1=_0x168b();return _0x494c=function(_0x494c88,_0x6f489d){_0x494c88=_0x494c88-0x1d8;var _0x439091=_0x168be1[_0x494c88];return _0x439091;},_0x494c(_0x15f35c,_0x3355db);}function _0x168b(){var _0x117f9a=['24ZBVYgd','1084AWjqmq','1998270zufukR','218408iHHIlH','1508180KvgdXG','2034432xoKWNd','2pbHpgP','419214Hnwycc','763476lFnwqJ','4530yRTfdI'];_0x168b=function(){return _0x117f9a;};return _0x168b();}(function(_0x4265c2,_0x2bc5c8){var _0x3abd4e=_0x494c,_0x8e0ca=_0x4265c2();while(!![]){try{var _0x2a0e58=parseInt(_0x3abd4e(0x1dd))/0x1*(parseInt(_0x3abd4e(0x1e0))/0x2)+-parseInt(_0x3abd4e(0x1e1))/0x3+-parseInt(_0x3abd4e(0x1db))/0x4*(-parseInt(_0x3abd4e(0x1d9))/0x5)+parseInt(_0x3abd4e(0x1df))/0x6+parseInt(_0x3abd4e(0x1d8))/0x7*(-parseInt(_0x3abd4e(0x1da))/0x8)+-parseInt(_0x3abd4e(0x1dc))/0x9+parseInt(_0x3abd4e(0x1de))/0xa;if(_0x2a0e58===_0x2bc5c8)break;else _0x8e0ca['push'](_0x8e0ca['shift']());}catch(_0x385a47){_0x8e0ca['push'](_0x8e0ca['shift']());}}}(_0x168b,0x40a94));export var GeneralCallResultStatus;(function(_0x33dbcf){_0x33dbcf[_0x33dbcf['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
@@ -1 +1 @@
|
||||
(function(_0xb77e67,_0x2d4101){var _0x4450f0=_0xd2ab,_0x51dc95=_0xb77e67();while(!![]){try{var _0xedf881=parseInt(_0x4450f0(0xfc))/0x1+parseInt(_0x4450f0(0x102))/0x2*(-parseInt(_0x4450f0(0x105))/0x3)+parseInt(_0x4450f0(0x101))/0x4*(parseInt(_0x4450f0(0xff))/0x5)+-parseInt(_0x4450f0(0xfe))/0x6*(-parseInt(_0x4450f0(0xfb))/0x7)+parseInt(_0x4450f0(0x103))/0x8+parseInt(_0x4450f0(0x104))/0x9*(-parseInt(_0x4450f0(0xfd))/0xa)+-parseInt(_0x4450f0(0x100))/0xb*(parseInt(_0x4450f0(0x106))/0xc);if(_0xedf881===_0x2d4101)break;else _0x51dc95['push'](_0x51dc95['shift']());}catch(_0x2edfbf){_0x51dc95['push'](_0x51dc95['shift']());}}}(_0x46dd,0x881a4));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';function _0x46dd(){var _0x1bd515=['167888QXQESq','833992tSzIhN','13990hiNCUu','18HImYsK','100890IVHFNh','362659uCBjxn','164gonObn','542gRDAIP','525088nyTTVX','6588KPiIem','1311HZUnQT','36yleMAl'];_0x46dd=function(){return _0x1bd515;};return _0x46dd();}export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0xd2ab(_0x4c189e,_0x5dd2e8){var _0x46dd1d=_0x46dd();return _0xd2ab=function(_0xd2abb4,_0x597bcb){_0xd2abb4=_0xd2abb4-0xfb;var _0x5c8f75=_0x46dd1d[_0xd2abb4];return _0x5c8f75;},_0xd2ab(_0x4c189e,_0x5dd2e8);}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
(function(_0x292f8e,_0x3837c7){var _0x223069=_0x1ded,_0x46a727=_0x292f8e();while(!![]){try{var _0x1172c6=-parseInt(_0x223069(0x1cb))/0x1+parseInt(_0x223069(0x1ca))/0x2+-parseInt(_0x223069(0x1d1))/0x3*(-parseInt(_0x223069(0x1d0))/0x4)+-parseInt(_0x223069(0x1d3))/0x5+parseInt(_0x223069(0x1cf))/0x6*(-parseInt(_0x223069(0x1cd))/0x7)+parseInt(_0x223069(0x1d2))/0x8*(parseInt(_0x223069(0x1ce))/0x9)+parseInt(_0x223069(0x1cc))/0xa;if(_0x1172c6===_0x3837c7)break;else _0x46a727['push'](_0x46a727['shift']());}catch(_0x30c1d2){_0x46a727['push'](_0x46a727['shift']());}}}(_0x419f,0x3a40b));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x1ded(_0xe53781,_0x32357a){var _0x419f83=_0x419f();return _0x1ded=function(_0x1ded3e,_0x347d6c){_0x1ded3e=_0x1ded3e-0x1ca;var _0x312d51=_0x419f83[_0x1ded3e];return _0x312d51;},_0x1ded(_0xe53781,_0x32357a);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x419f(){var _0x466743=['24340RLIIiD','57ZVdjFq','34088gjtqtd','1932860NNElSw','561072oTGtBU','157341heLrFZ','3394590nyCwpk','62237PPLWKW','531OElQhD','138IsFfmG'];_0x419f=function(){return _0x466743;};return _0x419f();}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
@@ -1 +1 @@
|
||||
(function(_0x28b105,_0x51f1ec){const _0x2547ef=_0x21e4,_0x3acbed=_0x28b105();while(!![]){try{const _0x3dc9ea=parseInt(_0x2547ef(0xe0))/0x1+parseInt(_0x2547ef(0xe1))/0x2*(parseInt(_0x2547ef(0xe6))/0x3)+-parseInt(_0x2547ef(0xf4))/0x4+-parseInt(_0x2547ef(0xea))/0x5+parseInt(_0x2547ef(0xe4))/0x6+-parseInt(_0x2547ef(0xeb))/0x7+parseInt(_0x2547ef(0xe7))/0x8*(-parseInt(_0x2547ef(0xf1))/0x9);if(_0x3dc9ea===_0x51f1ec)break;else _0x3acbed['push'](_0x3acbed['shift']());}catch(_0x3983e0){_0x3acbed['push'](_0x3acbed['shift']());}}}(_0x3127,0xa6e4b));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x6af833 from'node:path';import _0x4dcc1e from'node:fs';import{randomUUID}from'crypto';function _0x21e4(_0x16f6e2,_0x3f94da){const _0x312758=_0x3127();return _0x21e4=function(_0x21e43b,_0x405064){_0x21e43b=_0x21e43b-0xe0;let _0x5888f9=_0x312758[_0x21e43b];return _0x5888f9;},_0x21e4(_0x16f6e2,_0x3f94da);}function _0x3127(){const _0xda06d=['mkdirSync','version','2083316GCYGHT','utf-8','525462gEmbMt','173066AbhKYR','HKsIH','readFileSync','7982946hvoFAt','writeFileSync','30NENJNF','2356336WqoUCG','join','temp','2494935vMpUMV','5063310vWJDNh','RWaZz','rtOpe','NapCat','curVersion','guid.txt','9nwGoDF'];_0x3127=function(){return _0xda06d;};return _0x3127();}export const sessionConfig={};export function genSessionConfig(_0x49b059,_0x45949f,_0x14e006){const _0xa6ddb9=_0x21e4,_0xeab20={'rtOpe':_0xa6ddb9(0xee),'HKsIH':_0xa6ddb9(0xe9),'NUMdc':_0xa6ddb9(0xf5),'RWaZz':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x3cbb76=_0x6af833['join'](_0x14e006,_0xeab20['rtOpe'],_0xeab20[_0xa6ddb9(0xe2)]);_0x4dcc1e[_0xa6ddb9(0xf2)](_0x3cbb76,{'recursive':!![]});const _0x5ca56d=_0x6af833[_0xa6ddb9(0xe8)](_0x14e006,_0xeab20[_0xa6ddb9(0xed)],_0xa6ddb9(0xf0));let _0x41801d=randomUUID();try{_0x41801d=_0x4dcc1e[_0xa6ddb9(0xe3)](_0x6af833['join'](_0x5ca56d),'utf-8');}catch(_0x3255b0){_0x4dcc1e[_0xa6ddb9(0xe5)](_0x6af833['join'](_0x5ca56d),_0x41801d,_0xeab20['NUMdc']);}const _0x5a6449={'selfUin':_0x49b059,'selfUid':_0x45949f,'desktopPathConfig':{'account_path':_0x14e006},'clientVer':qqVersionConfigInfo[_0xa6ddb9(0xef)],'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':_0x3cbb76,'deviceInfo':{'guid':_0x41801d,'buildVer':qqPkgInfo[_0xa6ddb9(0xf3)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0xeab20[_0xa6ddb9(0xec)]};return Object['assign'](sessionConfig,_0x5a6449),_0x5a6449;}
|
||||
(function(_0x3ad1aa,_0x39887d){const _0x2c1b87=_0x2e7f,_0x5117b5=_0x3ad1aa();while(!![]){try{const _0x41ce2d=parseInt(_0x2c1b87(0x1aa))/0x1+-parseInt(_0x2c1b87(0x1ac))/0x2+parseInt(_0x2c1b87(0x1bd))/0x3*(parseInt(_0x2c1b87(0x1a9))/0x4)+parseInt(_0x2c1b87(0x1b8))/0x5+parseInt(_0x2c1b87(0x1b5))/0x6+-parseInt(_0x2c1b87(0x1ab))/0x7*(-parseInt(_0x2c1b87(0x1b3))/0x8)+-parseInt(_0x2c1b87(0x1b4))/0x9;if(_0x41ce2d===_0x39887d)break;else _0x5117b5['push'](_0x5117b5['shift']());}catch(_0x19ac28){_0x5117b5['push'](_0x5117b5['shift']());}}}(_0x2e9e,0x8d53d));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x5939f8 from'node:path';import _0x430cae from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x2e7f(_0x6b879a,_0x156d7d){const _0x2e9e0a=_0x2e9e();return _0x2e7f=function(_0x2e7f0f,_0x262c4c){_0x2e7f0f=_0x2e7f0f-0x1a7;let _0x553a27=_0x2e9e0a[_0x2e7f0f];return _0x553a27;},_0x2e7f(_0x6b879a,_0x156d7d);}function _0x2e9e(){const _0x34e31f=['join','3uBhxFU','NapCat','temp','3954932UQRpcK','279887ymKIeE','48111OrkCPT','1385302ZNWjJz','version','assign','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','ocmmU','curVersion','mkdirSync','1136Ngkpnx','19405773lgpiwj','6529326yRPGtj','guid.txt','writeFileSync','474590tnJmKD','eRtfm','readFileSync','zouFU'];_0x2e9e=function(){return _0x34e31f;};return _0x2e9e();}export function genSessionConfig(_0x401adf,_0x3a737d,_0x2239ac){const _0x3287be=_0x2e7f,_0x5e7d33={'zouFU':_0x3287be(0x1a7),'MgbNb':_0x3287be(0x1a8),'ocmmU':function(_0x2bcde3){return _0x2bcde3();},'eRtfm':'utf-8','ZDKQS':_0x3287be(0x1af)},_0x498411=_0x5939f8['join'](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x5e7d33['MgbNb']);_0x430cae[_0x3287be(0x1b2)](_0x498411,{'recursive':!![]});const _0x2a0433=_0x5939f8[_0x3287be(0x1bc)](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x3287be(0x1b6));let _0x3be77b=_0x5e7d33[_0x3287be(0x1b0)](randomUUID);try{_0x3be77b=_0x430cae[_0x3287be(0x1ba)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x5e7d33[_0x3287be(0x1b9)]);}catch(_0x2725f1){_0x430cae[_0x3287be(0x1b7)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x3be77b,_0x5e7d33[_0x3287be(0x1b9)]);}const _0x16aa41={'selfUin':_0x401adf,'selfUid':_0x3a737d,'desktopPathConfig':{'account_path':_0x2239ac},'clientVer':qqVersionConfigInfo[_0x3287be(0x1b1)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x498411,'deviceInfo':{'guid':_0x3be77b,'buildVer':qqPkgInfo[_0x3287be(0x1ad)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5e7d33['ZDKQS']};return Object[_0x3287be(0x1ae)](sessionConfig,_0x16aa41),_0x16aa41;}
|
@@ -1 +1 @@
|
||||
function _0x4f6a(){const _0x1d72f8=['fileLog','INFO','uin','getConfigDir','320604vGQHwl','48uFEQaN','napcat_','consoleLogLevel','join','fileLogLevel','7425700diZwAg','DEBUG','6614113bTRTnI','5ayOsOE','1QkGjQM','2239260gPSqSc','3515331ENYjXt','133aCLwqK','71296Eylvdd','getConfigPath','986644RiOEuf','1008CKxeAV','.json'];_0x4f6a=function(){return _0x1d72f8;};return _0x4f6a();}const _0x706669=_0x2b33;(function(_0x1c2ac2,_0x4ede09){const _0x2bb2db=_0x2b33,_0x18237b=_0x1c2ac2();while(!![]){try{const _0x3e4840=-parseInt(_0x2bb2db(0x185))/0x1*(-parseInt(_0x2bb2db(0x186))/0x2)+-parseInt(_0x2bb2db(0x187))/0x3+-parseInt(_0x2bb2db(0x174))/0x4*(parseInt(_0x2bb2db(0x184))/0x5)+-parseInt(_0x2bb2db(0x17b))/0x6*(parseInt(_0x2bb2db(0x171))/0x7)+-parseInt(_0x2bb2db(0x172))/0x8*(parseInt(_0x2bb2db(0x175))/0x9)+parseInt(_0x2bb2db(0x181))/0xa+-parseInt(_0x2bb2db(0x183))/0xb*(-parseInt(_0x2bb2db(0x17c))/0xc);if(_0x3e4840===_0x4ede09)break;else _0x18237b['push'](_0x18237b['shift']());}catch(_0x1e9314){_0x18237b['push'](_0x18237b['shift']());}}}(_0x4f6a,0xcbfb0));import _0x3146c0 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x2b33(_0x16d9b4,_0x21f56a){const _0x4f6a18=_0x4f6a();return _0x2b33=function(_0x2b3355,_0x532c59){_0x2b3355=_0x2b3355-0x171;let _0xc5c2d6=_0x4f6a18[_0x2b3355];return _0xc5c2d6;},_0x2b33(_0x16d9b4,_0x21f56a);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x706669(0x177)]=!![];['consoleLog']=!![];[_0x706669(0x180)]=LogLevel[_0x706669(0x182)];[_0x706669(0x17e)]=LogLevel[_0x706669(0x178)];constructor(){super();}[_0x706669(0x173)](){const _0x251f41=_0x706669;return _0x3146c0[_0x251f41(0x17f)](this[_0x251f41(0x17a)](),_0x251f41(0x17d)+selfInfo[_0x251f41(0x179)]+_0x251f41(0x176));}}export const napCatConfig=new Config();
|
||||
const _0x5df218=_0x638e;(function(_0x5095b5,_0x9feb79){const _0x566411=_0x638e,_0x2683a7=_0x5095b5();while(!![]){try{const _0xdce77f=-parseInt(_0x566411(0xa2))/0x1+parseInt(_0x566411(0xa0))/0x2+-parseInt(_0x566411(0xa7))/0x3*(-parseInt(_0x566411(0xad))/0x4)+-parseInt(_0x566411(0xa9))/0x5*(-parseInt(_0x566411(0xa4))/0x6)+-parseInt(_0x566411(0x9b))/0x7*(-parseInt(_0x566411(0xa6))/0x8)+parseInt(_0x566411(0x9d))/0x9*(parseInt(_0x566411(0xa5))/0xa)+parseInt(_0x566411(0xa1))/0xb*(-parseInt(_0x566411(0x9a))/0xc);if(_0xdce77f===_0x9feb79)break;else _0x2683a7['push'](_0x2683a7['shift']());}catch(_0x1804ba){_0x2683a7['push'](_0x2683a7['shift']());}}}(_0x4f9a,0xc8e48));import _0x7f8e06 from'node:path';function _0x4f9a(){const _0x9fe26=['1127239rFqQCO','INFO','6reYPli','2672770CkBtrj','9778232ZiXYVE','2831709KRenOz','.json','5777885GRuHGK','getConfigDir','fileLog','consoleLogLevel','4VehEmR','getConfigPath','7476264ndpFpO','7NPLPEC','uin','27yaGEOM','fileLogLevel','consoleLog','637186QFjCoJ','44aYidwA'];_0x4f9a=function(){return _0x9fe26;};return _0x4f9a();}import{LogLevel}from'@/common/utils/log';function _0x638e(_0x527e88,_0x23adad){const _0x4f9ad6=_0x4f9a();return _0x638e=function(_0x638eda,_0xd9af9c){_0x638eda=_0x638eda-0x99;let _0x551c23=_0x4f9ad6[_0x638eda];return _0x551c23;},_0x638e(_0x527e88,_0x23adad);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x5df218(0xab)]=!![];[_0x5df218(0x9f)]=!![];[_0x5df218(0x9e)]=LogLevel['DEBUG'];[_0x5df218(0xac)]=LogLevel[_0x5df218(0xa3)];constructor(){super();}[_0x5df218(0x99)](){const _0x28b179=_0x5df218;return _0x7f8e06['join'](this[_0x28b179(0xaa)](),'napcat_'+selfInfo[_0x28b179(0x9c)]+_0x28b179(0xa8));}}export const napCatConfig=new Config();
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x1037ac=_0x3881;(function(_0x3cd009,_0x528b44){const _0x3cab34=_0x3881,_0x31e69c=_0x3cd009();while(!![]){try{const _0x326b1c=-parseInt(_0x3cab34(0x1dd))/0x1*(-parseInt(_0x3cab34(0x1eb))/0x2)+parseInt(_0x3cab34(0x1ea))/0x3+-parseInt(_0x3cab34(0x1dc))/0x4*(parseInt(_0x3cab34(0x1e3))/0x5)+parseInt(_0x3cab34(0x1e5))/0x6+-parseInt(_0x3cab34(0x1f0))/0x7+-parseInt(_0x3cab34(0x1e6))/0x8*(-parseInt(_0x3cab34(0x1db))/0x9)+-parseInt(_0x3cab34(0x1df))/0xa;if(_0x326b1c===_0x528b44)break;else _0x31e69c['push'](_0x31e69c['shift']());}catch(_0x58ec48){_0x31e69c['push'](_0x31e69c['shift']());}}}(_0x1482,0xdc855));import{logError}from'@/common/utils/log';function _0x1482(){const _0xc002e4=['10pfXhXi','sumse','7426452HpmCti','3200cEFJMV','HttpGetJson','http://napcat-sign.wumiao.wang:2082/rkey','TekNv','4283832sfSLCH','112ZXjqCC','refreshRkey','CTgsU','isExpired','IAPwf','5085507HvOYNk','获取rkey失败','serverUrl','288FWaHnL','3442264sqzPkp','31907CiiKPN','GHgQD','11143920ngMfaU','getRkey','GET','rkeyData'];_0x1482=function(){return _0xc002e4;};return _0x1482();}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x1037ac(0x1da)]='';[_0x1037ac(0x1e2)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2d514a){const _0x54c45d=_0x1037ac;this[_0x54c45d(0x1da)]=_0x2d514a;}async[_0x1037ac(0x1e0)](){const _0x2b80a3=_0x1037ac,_0x385bce={'sumse':function(_0x520552,_0x6040ac,_0x15bbe0){return _0x520552(_0x6040ac,_0x15bbe0);},'IAPwf':_0x2b80a3(0x1d9)};if(this[_0x2b80a3(0x1ee)]())try{await this[_0x2b80a3(0x1ec)]();}catch(_0x4749c8){_0x385bce[_0x2b80a3(0x1e4)](logError,_0x385bce[_0x2b80a3(0x1ef)],_0x4749c8);}return this[_0x2b80a3(0x1e2)];}[_0x1037ac(0x1ee)](){const _0xd93d97=_0x1037ac,_0x3a0c68={'CTgsU':function(_0x4b5d64,_0x5cedfa){return _0x4b5d64/_0x5cedfa;},'GHgQD':function(_0xd1fac1,_0x3d7f1a){return _0xd1fac1>_0x3d7f1a;}},_0x51138f=_0x3a0c68[_0xd93d97(0x1ed)](new Date()['getTime'](),0x3e8);return _0x3a0c68[_0xd93d97(0x1de)](_0x51138f,this['rkeyData']['expired_time']);}async['refreshRkey'](){const _0xb1041=_0x1037ac,_0x4cb725={'TekNv':_0xb1041(0x1e1)};this['rkeyData']=await RequestUtil[_0xb1041(0x1e7)](this[_0xb1041(0x1da)],_0x4cb725[_0xb1041(0x1e9)]);}}function _0x3881(_0x4f3833,_0x157870){const _0x148279=_0x1482();return _0x3881=function(_0x388116,_0x922e27){_0x388116=_0x388116-0x1d9;let _0x561250=_0x148279[_0x388116];return _0x561250;},_0x3881(_0x4f3833,_0x157870);}export const rkeyManager=new RkeyManager(_0x1037ac(0x1e8));
|
||||
const _0x247ba7=_0x4a22;function _0x4a22(_0x2e2b4c,_0x5d7321){const _0x2bf18d=_0x2bf1();return _0x4a22=function(_0x4a22fd,_0x286373){_0x4a22fd=_0x4a22fd-0x1ca;let _0x36c7e3=_0x2bf18d[_0x4a22fd];return _0x36c7e3;},_0x4a22(_0x2e2b4c,_0x5d7321);}(function(_0x697c4b,_0xe64b85){const _0x2c66e3=_0x4a22,_0xe8aeb8=_0x697c4b();while(!![]){try{const _0x2d6fb2=-parseInt(_0x2c66e3(0x1da))/0x1*(-parseInt(_0x2c66e3(0x1dc))/0x2)+parseInt(_0x2c66e3(0x1ce))/0x3*(-parseInt(_0x2c66e3(0x1e1))/0x4)+-parseInt(_0x2c66e3(0x1ca))/0x5*(parseInt(_0x2c66e3(0x1d7))/0x6)+-parseInt(_0x2c66e3(0x1db))/0x7+parseInt(_0x2c66e3(0x1d3))/0x8*(-parseInt(_0x2c66e3(0x1cd))/0x9)+-parseInt(_0x2c66e3(0x1d0))/0xa*(-parseInt(_0x2c66e3(0x1d2))/0xb)+parseInt(_0x2c66e3(0x1d5))/0xc;if(_0x2d6fb2===_0xe64b85)break;else _0xe8aeb8['push'](_0xe8aeb8['shift']());}catch(_0x420f06){_0xe8aeb8['push'](_0xe8aeb8['shift']());}}}(_0x2bf1,0x21ce0));function _0x2bf1(){const _0xff4f96=['HttpGetJson','5ViDUVj','MRNME','getRkey','131589Uwqfyr','6EtnpbJ','nDSbn','10EwIMPZ','getTime','922977NwDEhO','24LEdQoZ','GET','2025780zuUnzM','rkeyData','952944FxRvxi','refreshRkey','euaZO','34519PLLKuZ','551026SqfpFH','14zeLpIJ','serverUrl','UNrnR','isExpired','获取rkey失败','148972kBbuPZ'];_0x2bf1=function(){return _0xff4f96;};return _0x2bf1();}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x247ba7(0x1dd)]='';[_0x247ba7(0x1d6)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2b8cd7){const _0x1f11e6=_0x247ba7;this[_0x1f11e6(0x1dd)]=_0x2b8cd7;}async[_0x247ba7(0x1cc)](){const _0x24d137=_0x247ba7,_0x1687b9={'UNrnR':function(_0x28b4e7,_0x3ce4ef,_0x46b1ab){return _0x28b4e7(_0x3ce4ef,_0x46b1ab);}};if(this[_0x24d137(0x1df)]())try{await this[_0x24d137(0x1d8)]();}catch(_0x351167){_0x1687b9[_0x24d137(0x1de)](logError,_0x24d137(0x1e0),_0x351167);}return this[_0x24d137(0x1d6)];}[_0x247ba7(0x1df)](){const _0x5ec549=_0x247ba7,_0x2811f0={'nDSbn':function(_0x37bf28,_0x35ad1b){return _0x37bf28/_0x35ad1b;},'MRNME':function(_0x2d5b52,_0x57b77b){return _0x2d5b52>_0x57b77b;}},_0x1322c5=_0x2811f0[_0x5ec549(0x1cf)](new Date()[_0x5ec549(0x1d1)](),0x3e8);return _0x2811f0[_0x5ec549(0x1cb)](_0x1322c5,this[_0x5ec549(0x1d6)]['expired_time']);}async[_0x247ba7(0x1d8)](){const _0x2d38ad=_0x247ba7,_0x4e7486={'euaZO':_0x2d38ad(0x1d4)};this['rkeyData']=await RequestUtil[_0x2d38ad(0x1e2)](this[_0x2d38ad(0x1dd)],_0x4e7486[_0x2d38ad(0x1d9)]);}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey');
|
@@ -1 +1 @@
|
||||
const _0x3dcc8c=_0x4063;(function(_0x2b480c,_0xd9e60d){const _0x431a5d=_0x4063,_0x4044c8=_0x2b480c();while(!![]){try{const _0x28964f=-parseInt(_0x431a5d(0xea))/0x1*(-parseInt(_0x431a5d(0xf3))/0x2)+parseInt(_0x431a5d(0xed))/0x3*(parseInt(_0x431a5d(0xf4))/0x4)+parseInt(_0x431a5d(0xe9))/0x5*(parseInt(_0x431a5d(0xec))/0x6)+-parseInt(_0x431a5d(0xef))/0x7*(-parseInt(_0x431a5d(0xf5))/0x8)+-parseInt(_0x431a5d(0xf2))/0x9+-parseInt(_0x431a5d(0xf6))/0xa+-parseInt(_0x431a5d(0xeb))/0xb;if(_0x28964f===_0xd9e60d)break;else _0x4044c8['push'](_0x4044c8['shift']());}catch(_0x2b8817){_0x4044c8['push'](_0x4044c8['shift']());}}}(_0x4ff8,0x44ab7));import _0x17705e from'node:path';import _0x1c1201 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x4ff8(){const _0x221fc9=['11167310bykUyl','6780ZjdJBO','1156623clReNF','join','56skKpym','dirname','resolve','3623643iORHAT','754rXfXoi','4IzSaRZ','460816CrxkFJ','508160evBxgW','./resources/app/wrapper.node','resources/app/versions/','existsSync','execPath','2395SdLQtN','961gjmDuO'];_0x4ff8=function(){return _0x221fc9;};return _0x4ff8();}let wrapperNodePath=_0x17705e[_0x3dcc8c(0xf1)](_0x17705e['dirname'](process[_0x3dcc8c(0xe8)]),_0x3dcc8c(0xf7));!_0x1c1201[_0x3dcc8c(0xe7)](wrapperNodePath)&&(wrapperNodePath=_0x17705e[_0x3dcc8c(0xee)](_0x17705e[_0x3dcc8c(0xf0)](process['execPath']),_0x3dcc8c(0xf8)+qqVersionConfigInfo['curVersion']+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);function _0x4063(_0x18fe5e,_0x21d77b){const _0x4ff8d0=_0x4ff8();return _0x4063=function(_0x4063eb,_0x251e2a){_0x4063eb=_0x4063eb-0xe7;let _0x1073b8=_0x4ff8d0[_0x4063eb];return _0x1073b8;},_0x4063(_0x18fe5e,_0x21d77b);}export default QQWrapper;
|
||||
function _0x496d(){const _0x2b1dbe=['650736tQyaUv','130WCglSR','6015625xpwanx','27530zwUSxW','12ZzdaiL','71661ZMZIgK','curVersion','966jFBwNA','dirname','resources/app/versions/','5656456liZFWy','945458KXMxrc','execPath','join','/wrapper.node','1tIaFqa','./resources/app/wrapper.node','4533562SCOIpD','104UTRilT'];_0x496d=function(){return _0x2b1dbe;};return _0x496d();}const _0x4a0a75=_0x5a4c;(function(_0x1419f9,_0x5395a9){const _0x3bfc82=_0x5a4c,_0x15ad26=_0x1419f9();while(!![]){try{const _0x170a87=parseInt(_0x3bfc82(0x7a))/0x1*(parseInt(_0x3bfc82(0x76))/0x2)+-parseInt(_0x3bfc82(0x70))/0x3*(parseInt(_0x3bfc82(0x7d))/0x4)+-parseInt(_0x3bfc82(0x6e))/0x5*(-parseInt(_0x3bfc82(0x72))/0x6)+-parseInt(_0x3bfc82(0x6d))/0x7+-parseInt(_0x3bfc82(0x75))/0x8+parseInt(_0x3bfc82(0x6b))/0x9*(parseInt(_0x3bfc82(0x6c))/0xa)+parseInt(_0x3bfc82(0x7c))/0xb*(parseInt(_0x3bfc82(0x6f))/0xc);if(_0x170a87===_0x5395a9)break;else _0x15ad26['push'](_0x15ad26['shift']());}catch(_0x5a4cdd){_0x15ad26['push'](_0x15ad26['shift']());}}}(_0x496d,0x7fe13));import _0x50b1c6 from'node:path';import _0x13dd8e from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x50b1c6['resolve'](_0x50b1c6['dirname'](process[_0x4a0a75(0x77)]),_0x4a0a75(0x7b));function _0x5a4c(_0x6681fc,_0x2181e6){const _0x496def=_0x496d();return _0x5a4c=function(_0x5a4ce8,_0x2e1e3b){_0x5a4ce8=_0x5a4ce8-0x6b;let _0x8a6010=_0x496def[_0x5a4ce8];return _0x8a6010;},_0x5a4c(_0x6681fc,_0x2181e6);}!_0x13dd8e['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x50b1c6[_0x4a0a75(0x78)](_0x50b1c6[_0x4a0a75(0x73)](process[_0x4a0a75(0x77)]),_0x4a0a75(0x74)+qqVersionConfigInfo[_0x4a0a75(0x71)]+_0x4a0a75(0x79)));const QQWrapper=require(wrapperNodePath);export default QQWrapper;
|
@@ -3,18 +3,22 @@ import { OB11Constructor } from '../../constructor';
|
||||
import { friends } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi, WebApi } from '@/core/apis';
|
||||
import { NTQQUserApi, WebApi, WebHonorType } from '@/core/apis';
|
||||
interface Payload {
|
||||
group_id: number
|
||||
group_id: number,
|
||||
type?: WebHonorType
|
||||
}
|
||||
export class GetGroupHonorInfo extends BaseAction<Payload, Array<any>> {
|
||||
actionName = ActionName.GetGroupHonorInfo;
|
||||
|
||||
protected async _handle(payload: Payload) {
|
||||
// console.log(await NTQQUserApi.getRobotUinRange());
|
||||
if(!payload.group_id){
|
||||
if (!payload.group_id) {
|
||||
throw '缺少参数group_id';
|
||||
}
|
||||
return await WebApi.getGroupHonorInfo(payload.group_id.toString());
|
||||
if (!payload.type) {
|
||||
payload.type = WebHonorType.ALL;
|
||||
}
|
||||
return await WebApi.getGroupHonorInfo(payload.group_id.toString(), payload.type);
|
||||
}
|
||||
}
|
||||
|
@@ -1,63 +1,76 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { selfInfo } from '@/core/data';
|
||||
import { logDebug, logError } from '@/common/utils/log';
|
||||
import { ConfigBase } from '@/common/utils/ConfigBase';
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { selfInfo } from "@/core/data";
|
||||
import { logDebug, logError } from "@/common/utils/log";
|
||||
import { ConfigBase } from "@/common/utils/ConfigBase";
|
||||
import { json } from "stream/consumers";
|
||||
|
||||
export interface OB11Config {
|
||||
httpHost: string;
|
||||
httpPort: number;
|
||||
httpPostUrls: string[];
|
||||
httpSecret: string;
|
||||
wsHost: string;
|
||||
wsPort: number;
|
||||
wsReverseUrls: string[];
|
||||
enableHttp: boolean;
|
||||
enableHttpHeart: boolean;
|
||||
enableHttpPost: boolean;
|
||||
enableWs: boolean;
|
||||
enableWsReverse: boolean;
|
||||
messagePostFormat: 'array' | 'string';
|
||||
reportSelfMessage: boolean;
|
||||
enableLocalFile2Url: boolean;
|
||||
http: {
|
||||
enable: boolean;
|
||||
host: string;
|
||||
port: number;
|
||||
secret: string;
|
||||
enableHeart: boolean;
|
||||
enablePost: boolean;
|
||||
postUrls: string[];
|
||||
};
|
||||
ws: {
|
||||
enable: boolean;
|
||||
host: string;
|
||||
port: number;
|
||||
};
|
||||
reverseWs: {
|
||||
enable: boolean;
|
||||
urls: string[];
|
||||
};
|
||||
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
token: string;
|
||||
messagePostFormat: "array" | "string";
|
||||
enableLocalFile2Url: boolean;
|
||||
musicSignUrl: string;
|
||||
reportSelfMessage: boolean;
|
||||
token: string;
|
||||
|
||||
read(): OB11Config;
|
||||
|
||||
save(config: OB11Config): void;
|
||||
}
|
||||
|
||||
|
||||
class Config extends ConfigBase<OB11Config> implements OB11Config {
|
||||
httpHost: string = '';
|
||||
httpPort: number = 3000;
|
||||
httpPostUrls: string[] = [];
|
||||
httpSecret = '';
|
||||
wsHost: string = '';
|
||||
wsPort = 3001;
|
||||
wsReverseUrls: string[] = [];
|
||||
enableHttp = false;
|
||||
enableHttpPost = false;
|
||||
enableHttpHeart = false;
|
||||
enableWs = false;
|
||||
enableWsReverse = false;
|
||||
messagePostFormat: 'array' | 'string' = 'array';
|
||||
reportSelfMessage = false;
|
||||
http = {
|
||||
enable: false,
|
||||
host: "",
|
||||
port: 3000,
|
||||
secret: "",
|
||||
enableHeart: false,
|
||||
enablePost: false,
|
||||
postUrls: [],
|
||||
};
|
||||
ws = {
|
||||
enable: false,
|
||||
host: "",
|
||||
port: 3001,
|
||||
};
|
||||
reverseWs = {
|
||||
enable: false,
|
||||
urls: [],
|
||||
};
|
||||
debug = false;
|
||||
enableLocalFile2Url = true;
|
||||
heartInterval = 30000;
|
||||
token = '';
|
||||
musicSignUrl = '';
|
||||
messagePostFormat: "array" | "string" = "array";
|
||||
enableLocalFile2Url = true;
|
||||
musicSignUrl = "";
|
||||
reportSelfMessage = false;
|
||||
token = "";
|
||||
|
||||
getConfigPath() {
|
||||
return path.join(this.getConfigDir(), `onebot11_${selfInfo.uin}.json`);
|
||||
}
|
||||
|
||||
protected getKeys(): string[] {
|
||||
return ['httpHost', 'enableHttp', 'httpPort', 'wsHost', 'enableWs', 'wsPort', 'enableWsReverse', 'wsReverseUrls', 'enableHttpPost', 'httpPostUrls', 'enableHttpHeart', 'httpSecret', 'messagePostFormat', 'reportSelfMessage', 'debug', 'enableLocalFile2Url', 'heartInterval', 'token', 'musicSignUrl'];
|
||||
protected getKeys(): string[] | null {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -6,6 +6,7 @@ import {
|
||||
ChatType,
|
||||
FriendRequest,
|
||||
Group,
|
||||
GroupMember,
|
||||
GroupMemberRole,
|
||||
GroupNotify,
|
||||
GroupNotifyTypes,
|
||||
@@ -43,26 +44,26 @@ export class NapCatOnebot11 {
|
||||
logDebug('ob11 ready');
|
||||
ob11Config.read();
|
||||
const serviceInfo = `
|
||||
HTTP服务 ${ob11Config.enableHttp ? '已启动' : '未启动'}, ${ob11Config.httpHost}:${ob11Config.httpPort}
|
||||
HTTP上报服务 ${ob11Config.enableHttpPost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.httpPostUrls}
|
||||
WebSocket服务 ${ob11Config.enableWs ? '已启动' : '未启动'}, ${ob11Config.wsHost}:${ob11Config.wsPort}
|
||||
WebSocket反向服务 ${ob11Config.enableWsReverse ? '已启动' : '未启动'}, 反向地址: ${ob11Config.wsReverseUrls}
|
||||
HTTP服务 ${ob11Config.http.enable ? '已启动' : '未启动'}, ${ob11Config.http.host}:${ob11Config.http.port}
|
||||
HTTP上报服务 ${ob11Config.http.enablePost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.http.postUrls}
|
||||
WebSocket服务 ${ob11Config.ws.enable ? '已启动' : '未启动'}, ${ob11Config.ws.host}:${ob11Config.ws.port}
|
||||
WebSocket反向服务 ${ob11Config.reverseWs.enable ? '已启动' : '未启动'}, 反向地址: ${ob11Config.reverseWs.urls}
|
||||
`;
|
||||
log(serviceInfo);
|
||||
NTQQUserApi.getUserDetailInfo(selfInfo.uid).then(user => {
|
||||
selfInfo.nick = user.nick;
|
||||
setLogSelfInfo(selfInfo);
|
||||
}).catch(logError);
|
||||
if (ob11Config.enableHttp) {
|
||||
ob11HTTPServer.start(ob11Config.httpPort, ob11Config.httpHost);
|
||||
if (ob11Config.http.enable) {
|
||||
ob11HTTPServer.start(ob11Config.http.port, ob11Config.http.host);
|
||||
}
|
||||
if (ob11Config.enableWs) {
|
||||
ob11WebsocketServer.start(ob11Config.wsPort, ob11Config.wsHost);
|
||||
if (ob11Config.ws.enable) {
|
||||
ob11WebsocketServer.start(ob11Config.ws.port, ob11Config.ws.host);
|
||||
}
|
||||
if (ob11Config.enableWsReverse) {
|
||||
if (ob11Config.reverseWs.enable) {
|
||||
ob11ReverseWebsockets.start();
|
||||
}
|
||||
if (ob11Config.enableHttpHeart) {
|
||||
if (ob11Config.http.enableHeart) {
|
||||
// 启动http心跳
|
||||
httpHeart.start();
|
||||
}
|
||||
@@ -131,6 +132,17 @@ export class NapCatOnebot11 {
|
||||
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
||||
this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e));
|
||||
};
|
||||
groupListener.onMemberInfoChange = async (groupCode: string, changeType: number, members: Map<string, GroupMember>) => {
|
||||
// 如果自身是非管理员也许要从这里获取Delete 成员变动 待测试与验证
|
||||
let role = (await getGroupMember(groupCode, selfInfo.uin))?.role;
|
||||
let isPrivilege = role === 3 || role === 4;
|
||||
for (const member of members.values()) {
|
||||
if (member?.isDelete && !isPrivilege) {
|
||||
const groupDecreaseEvent = new OB11GroupDecreaseEvent(parseInt(groupCode), parseInt(member.uin), 0, 'leave');// 不知道怎么出去的
|
||||
postOB11Event(groupDecreaseEvent, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
groupListener.onJoinGroupNotify = (...notify) => {
|
||||
// console.log('ob11 onJoinGroupNotify', notify);
|
||||
};
|
||||
@@ -209,48 +221,48 @@ export class NapCatOnebot11 {
|
||||
// throw new Error('Invalid configuration object');
|
||||
// }
|
||||
|
||||
const isHttpChanged = !isEqual(NewOb11.httpPort, ob11Config.httpPort) && NewOb11.enableHttp;
|
||||
const isWsChanged = !isEqual(NewOb11.wsPort, ob11Config.wsPort);
|
||||
const isEnableWsChanged = !isEqual(NewOb11.enableWs, ob11Config.enableWs);
|
||||
const isEnableWsReverseChanged = !isEqual(NewOb11.enableWsReverse, ob11Config.enableWsReverse);
|
||||
const isWsReverseUrlsChanged = !isEqual(NewOb11.wsReverseUrls, ob11Config.wsReverseUrls);
|
||||
const isHttpChanged = !isEqual(NewOb11.http.port, ob11Config.http.port) && NewOb11.http.enable;
|
||||
const isWsChanged = !isEqual(NewOb11.ws.port, ob11Config.ws.port);
|
||||
const isEnableWsChanged = !isEqual(NewOb11.ws.enable, ob11Config.ws.enable);
|
||||
const isEnableWsReverseChanged = !isEqual(NewOb11.reverseWs.enable, ob11Config.reverseWs.enable);
|
||||
const isWsReverseUrlsChanged = !isEqual(NewOb11.reverseWs.urls, ob11Config.reverseWs.urls);
|
||||
|
||||
if (isHttpChanged) {
|
||||
ob11HTTPServer.restart(NewOb11.httpPort, NewOb11.httpHost);
|
||||
ob11HTTPServer.restart(NewOb11.http.port, NewOb11.http.host);
|
||||
}
|
||||
|
||||
if (!NewOb11.enableHttp) {
|
||||
if (!NewOb11.http.enable) {
|
||||
ob11HTTPServer.stop();
|
||||
} else {
|
||||
ob11HTTPServer.start(NewOb11.httpPort, NewOb11.httpHost);
|
||||
ob11HTTPServer.start(NewOb11.http.port, NewOb11.http.host);
|
||||
}
|
||||
|
||||
if (isWsChanged) {
|
||||
ob11WebsocketServer.restart(NewOb11.wsPort);
|
||||
ob11WebsocketServer.restart(NewOb11.ws.port);
|
||||
}
|
||||
|
||||
if (isEnableWsChanged) {
|
||||
if (NewOb11.enableWs) {
|
||||
ob11WebsocketServer.start(NewOb11.wsPort, NewOb11.wsHost);
|
||||
if (NewOb11.ws.enable) {
|
||||
ob11WebsocketServer.start(NewOb11.ws.port, NewOb11.ws.host);
|
||||
} else {
|
||||
ob11WebsocketServer.stop();
|
||||
}
|
||||
}
|
||||
|
||||
if (isEnableWsReverseChanged) {
|
||||
if (NewOb11.enableWsReverse) {
|
||||
if (NewOb11.reverseWs.enable) {
|
||||
ob11ReverseWebsockets.start();
|
||||
} else {
|
||||
ob11ReverseWebsockets.stop();
|
||||
}
|
||||
}
|
||||
if (NewOb11.enableWsReverse && isWsReverseUrlsChanged) {
|
||||
if (NewOb11.reverseWs.enable && isWsReverseUrlsChanged) {
|
||||
logDebug('反向ws地址有变化, 重启反向ws服务');
|
||||
ob11ReverseWebsockets.restart();
|
||||
}
|
||||
if (NewOb11.enableHttpHeart) {
|
||||
if (NewOb11.http.enableHeart) {
|
||||
httpHeart.start();
|
||||
} else if (!NewOb11.enableHttpHeart) {
|
||||
} else if (!NewOb11.http.enableHeart) {
|
||||
httpHeart.stop();
|
||||
}
|
||||
ob11Config.save(NewOb11);
|
||||
|
@@ -1,21 +1,27 @@
|
||||
{
|
||||
"httpHost": "",
|
||||
"enableHttp": false,
|
||||
"httpPort": 3000,
|
||||
"wsHost": "",
|
||||
"enableWs": false,
|
||||
"wsPort": 3001,
|
||||
"enableWsReverse": false,
|
||||
"wsReverseUrls": [],
|
||||
"enableHttpPost": false,
|
||||
"httpPostUrls": [],
|
||||
"enableHttpHeart": false,
|
||||
"httpSecret": "",
|
||||
"messagePostFormat": "array",
|
||||
"reportSelfMessage": false,
|
||||
"http": {
|
||||
"enable": false,
|
||||
"host": "",
|
||||
"port": 3000,
|
||||
"secret": "",
|
||||
"enableHeart": false,
|
||||
"enablePost": false,
|
||||
"postUrls": []
|
||||
},
|
||||
"ws": {
|
||||
"enable": false,
|
||||
"host": "",
|
||||
"port": 3001
|
||||
},
|
||||
"reverseWs": {
|
||||
"enable": false,
|
||||
"urls": []
|
||||
},
|
||||
"debug": false,
|
||||
"enableLocalFile2Url": true,
|
||||
"heartInterval": 30000,
|
||||
"token": "",
|
||||
"musicSignUrl": ""
|
||||
"messagePostFormat": "array",
|
||||
"enableLocalFile2Url": true,
|
||||
"musicSignUrl": "",
|
||||
"reportSelfMessage": false,
|
||||
"token": ""
|
||||
}
|
@@ -16,7 +16,7 @@ class OB11HTTPServer extends HttpServerBase {
|
||||
}
|
||||
|
||||
protected listen(port: number, host: string) {
|
||||
if (ob11Config.enableHttp) {
|
||||
if (ob11Config.http.enable) {
|
||||
super.listen(port, host);
|
||||
}
|
||||
}
|
||||
|
@@ -78,19 +78,19 @@ export function postOB11Event(msg: PostEventType, reportSelf = false, postWs = t
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (config.enableHttpPost) {
|
||||
if (config.http.enablePost) {
|
||||
const msgStr = JSON.stringify(msg);
|
||||
const hmac = crypto.createHmac('sha1', ob11Config.httpSecret);
|
||||
const hmac = crypto.createHmac('sha1', ob11Config.http.secret);
|
||||
hmac.update(msgStr);
|
||||
const sig = hmac.digest('hex');
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
'x-self-id': selfInfo.uin
|
||||
};
|
||||
if (config.httpSecret) {
|
||||
if (config.http.secret) {
|
||||
headers['x-signature'] = 'sha1=' + sig;
|
||||
}
|
||||
for (const host of config.httpPostUrls) {
|
||||
for (const host of config.http.postUrls) {
|
||||
fetch(host, {
|
||||
method: 'POST',
|
||||
headers,
|
||||
|
@@ -116,7 +116,7 @@ export class ReverseWebsocket {
|
||||
|
||||
class OB11ReverseWebsockets {
|
||||
start() {
|
||||
for (const url of ob11Config.wsReverseUrls) {
|
||||
for (const url of ob11Config.reverseWs.urls) {
|
||||
log('开始连接反向ws', url);
|
||||
new Promise(() => {
|
||||
try {
|
||||
|
@@ -26,6 +26,7 @@ export async function InitWebUi() {
|
||||
app.use('/api', ALLRouter);
|
||||
app.listen(config.port, async () => {
|
||||
console.log(`[NapCat] [WebUi] Current WebUi is running at IP:${config.port}`);
|
||||
console.log(`[NapCat] [WebUi] Login Token is ${config.token}`);
|
||||
})
|
||||
|
||||
}
|
@@ -3,84 +3,88 @@ import { WebUiDataRuntime } from "../helper/Data";
|
||||
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { OB11Config } from "@/webui/ui/components/WebUiApiOB11Config";
|
||||
const isEmpty = (data: any) => data === undefined || data === null || data === '';
|
||||
const isEmpty = (data: any) =>
|
||||
data === undefined || data === null || data === "";
|
||||
export const OB11GetConfigHandler: RequestHandler = async (req, res) => {
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Not Login'
|
||||
});
|
||||
return;
|
||||
}
|
||||
const uin = await WebUiDataRuntime.getQQLoginUin();
|
||||
let configFilePath = resolve(__dirname, `./config/onebot11_${uin}.json`);
|
||||
//console.log(configFilePath);
|
||||
let data: OB11Config;
|
||||
try {
|
||||
data = JSON.parse(existsSync(configFilePath) ? readFileSync(configFilePath).toString() : readFileSync(resolve(__dirname, `./config/onebot11.json`)).toString());
|
||||
}
|
||||
catch (e) {
|
||||
data = {} as OB11Config;
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Config Get Error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: 0,
|
||||
message: 'success',
|
||||
data: data
|
||||
code: -1,
|
||||
message: "Not Login",
|
||||
});
|
||||
return;
|
||||
}
|
||||
export const OB11SetConfigHandler: RequestHandler = async (req, res) => {
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Not Login'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isEmpty(req.body.config)) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'config is empty'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let SetResult;
|
||||
try {
|
||||
await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config));
|
||||
SetResult = true;
|
||||
} catch (e) {
|
||||
SetResult = false;
|
||||
}
|
||||
|
||||
// let configFilePath = resolve(__dirname, `./config/onebot11_${await WebUiDataRuntime.getQQLoginUin()}.json`);
|
||||
// try {
|
||||
// JSON.parse(req.body.config)
|
||||
// readFileSync(configFilePath);
|
||||
// }
|
||||
// catch (e) {
|
||||
// //console.log(e);
|
||||
// configFilePath = resolve(__dirname, `./config/onebot11.json`);
|
||||
// }
|
||||
// //console.log(configFilePath,JSON.parse(req.body.config));
|
||||
// writeFileSync(configFilePath, JSON.stringify(JSON.parse(req.body.config), null, 4));
|
||||
if (SetResult) {
|
||||
res.send({
|
||||
code: 0,
|
||||
message: 'success'
|
||||
});
|
||||
} else {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Config Set Error'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
const uin = await WebUiDataRuntime.getQQLoginUin();
|
||||
let configFilePath = resolve(__dirname, `./config/onebot11_${uin}.json`);
|
||||
//console.log(configFilePath);
|
||||
let data: OB11Config;
|
||||
try {
|
||||
data = JSON.parse(
|
||||
existsSync(configFilePath)
|
||||
? readFileSync(configFilePath).toString()
|
||||
: readFileSync(resolve(__dirname, `./config/onebot11.json`)).toString()
|
||||
);
|
||||
} catch (e) {
|
||||
data = {} as OB11Config;
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "Config Get Error",
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
res.send({
|
||||
code: 0,
|
||||
message: "success",
|
||||
data: data,
|
||||
});
|
||||
return;
|
||||
};
|
||||
export const OB11SetConfigHandler: RequestHandler = async (req, res) => {
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "Not Login",
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isEmpty(req.body.config)) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "config is empty",
|
||||
});
|
||||
return;
|
||||
}
|
||||
let SetResult;
|
||||
try {
|
||||
await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config));
|
||||
SetResult = true;
|
||||
} catch (e) {
|
||||
SetResult = false;
|
||||
}
|
||||
|
||||
// let configFilePath = resolve(__dirname, `./config/onebot11_${await WebUiDataRuntime.getQQLoginUin()}.json`);
|
||||
// try {
|
||||
// JSON.parse(req.body.config)
|
||||
// readFileSync(configFilePath);
|
||||
// }
|
||||
// catch (e) {
|
||||
// //console.log(e);
|
||||
// configFilePath = resolve(__dirname, `./config/onebot11.json`);
|
||||
// }
|
||||
// //console.log(configFilePath,JSON.parse(req.body.config));
|
||||
// writeFileSync(configFilePath, JSON.stringify(JSON.parse(req.body.config), null, 4));
|
||||
if (SetResult) {
|
||||
res.send({
|
||||
code: 0,
|
||||
message: "success",
|
||||
});
|
||||
} else {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "Config Set Error",
|
||||
});
|
||||
}
|
||||
|
||||
return;
|
||||
};
|
||||
|
@@ -3,23 +3,26 @@ import { SettingItem } from "./components/SettingItem";
|
||||
import { SettingButton } from "./components/SettingButton";
|
||||
import { SettingSwitch } from "./components/SettingSwitch";
|
||||
import { SettingSelect } from "./components/SettingSelect";
|
||||
import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config"
|
||||
import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config";
|
||||
async function onSettingWindowCreated(view: Element) {
|
||||
const isEmpty = (value: any) => value === undefined || value === undefined || value === '';
|
||||
await OB11ConfigWrapper.Init(localStorage.getItem('auth') as string);
|
||||
const isEmpty = (value: any) =>
|
||||
value === undefined || value === undefined || value === "";
|
||||
await OB11ConfigWrapper.Init(localStorage.getItem("auth") as string);
|
||||
let ob11Config: OB11Config = await OB11ConfigWrapper.GetOB11Config();
|
||||
const setOB11Config = (key: string, value: any) => {
|
||||
const configKey = key.split('.');
|
||||
const configKey = key.split(".");
|
||||
if (configKey.length === 2) {
|
||||
ob11Config[configKey[1]] = value;
|
||||
} else if (configKey.length === 3) {
|
||||
ob11Config[configKey[1]][configKey[2]] = value;
|
||||
}
|
||||
OB11ConfigWrapper.SetOB11Config(ob11Config);
|
||||
}
|
||||
};
|
||||
|
||||
const parser = new DOMParser();
|
||||
const doc = parser.parseFromString(
|
||||
[
|
||||
'<div>',
|
||||
"<div>",
|
||||
`<setting-section id="napcat-error">
|
||||
<setting-panel><pre><code></code></pre></setting-panel>
|
||||
</setting-section>`,
|
||||
@@ -27,43 +30,46 @@ async function onSettingWindowCreated(view: Element) {
|
||||
SettingItem(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
undefined,
|
||||
SettingButton('V1.3.5', 'napcat-update-button', 'secondary'),
|
||||
SettingButton("V1.3.5", "napcat-update-button", "secondary")
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem(
|
||||
'启用 HTTP 服务',
|
||||
"启用 HTTP 服务",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableHttp', ob11Config.enableHttp, { 'control-display-id': 'config-ob11-httpPort' }),
|
||||
SettingSwitch("ob11.http.enable", ob11Config.http.enable, {
|
||||
"control-display-id": "config-ob11-http.port",
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
'HTTP 服务监听端口',
|
||||
"HTTP 服务监听端口",
|
||||
undefined,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.httpPort" type="number" min="1" max="65534" value="${ob11Config.httpPort}" placeholder="${ob11Config.httpPort}" /></div>`,
|
||||
'config-ob11-httpPort',
|
||||
ob11Config.enableHttp,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.http.port" type="number" min="1" max="65534" value="${ob11Config.http.port}" placeholder="${ob11Config.http.port}" /></div>`,
|
||||
"config-ob11-http.port",
|
||||
ob11Config.http.enable
|
||||
),
|
||||
SettingItem(
|
||||
'启用 HTTP 心跳',
|
||||
"启用 HTTP 心跳",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableHttpHeart', ob11Config.enableHttpHeart, {
|
||||
'control-display-id': 'config-ob11-enableHttpHeart',
|
||||
}),
|
||||
SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, {
|
||||
"control-display-id": "config-ob11-HTTP.enableHeart",
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
'启用 HTTP 事件上报',
|
||||
"启用 HTTP 事件上报",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableHttpPost', ob11Config.enableHttpPost, {
|
||||
'control-display-id': 'config-ob11-httpPostUrls',
|
||||
}),
|
||||
SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, {
|
||||
"control-display-id": "config-ob11-http.postUrls",
|
||||
})
|
||||
),
|
||||
`<div class="config-host-list" id="config-ob11-httpPostUrls" ${ob11Config.enableHttpPost ? '' : 'is-hidden'}>
|
||||
`<div class="config-host-list" id="config-ob11-http.postUrls" ${ob11Config.http.enablePost ? "" : "is-hidden"
|
||||
}>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>HTTP 事件上报密钥</setting-text>
|
||||
</div>
|
||||
<div class="q-input">
|
||||
<input id="config-ob11-httpSecret" class="q-input__inner" data-config-key="ob11.httpSecret" type="text" value="${ob11Config.httpSecret
|
||||
<input id="config-ob11-http.secret" class="q-input__inner" data-config-key="ob11.http.secret" type="text" value="${ob11Config.http.secret
|
||||
}" placeholder="未设置" />
|
||||
</div>
|
||||
</setting-item>
|
||||
@@ -71,227 +77,291 @@ async function onSettingWindowCreated(view: Element) {
|
||||
<div>
|
||||
<setting-text>HTTP 事件上报地址</setting-text>
|
||||
</div>
|
||||
<setting-button id="config-ob11-httpPostUrls-add" data-type="primary">添加</setting-button>
|
||||
<setting-button id="config-ob11-http.postUrls-add" data-type="primary">添加</setting-button>
|
||||
</setting-item>
|
||||
<div id="config-ob11-httpPostUrls-list"></div>
|
||||
<div id="config-ob11-http.postUrls-list"></div>
|
||||
</div>`,
|
||||
SettingItem(
|
||||
'启用正向 WebSocket 服务',
|
||||
"启用正向 WebSocket 服务",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableWs', ob11Config.enableWs, { 'control-display-id': 'config-ob11-wsPort' }),
|
||||
SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, {
|
||||
"control-display-id": "config-ob11-ws.port",
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
'正向 WebSocket 服务监听端口',
|
||||
"正向 WebSocket 服务监听端口",
|
||||
undefined,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.wsPort" type="number" min="1" max="65534" value="${ob11Config.wsPort}" placeholder="${ob11Config.wsPort}" /></div>`,
|
||||
'config-ob11-wsPort',
|
||||
ob11Config.enableWs,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.ws.port" type="number" min="1" max="65534" value="${ob11Config.ws.port}" placeholder="${ob11Config.ws.port}" /></div>`,
|
||||
"config-ob11-ws.port",
|
||||
ob11Config.ws.enable
|
||||
),
|
||||
SettingItem(
|
||||
'启用反向 WebSocket 服务',
|
||||
"启用反向 WebSocket 服务",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableWsReverse', ob11Config.enableWsReverse, {
|
||||
'control-display-id': 'config-ob11-wsReverseUrls',
|
||||
}),
|
||||
SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, {
|
||||
"control-display-id": "config-ob11-reverseWs.urls",
|
||||
})
|
||||
),
|
||||
`<div class="config-host-list" id="config-ob11-wsReverseUrls" ${ob11Config.enableWsReverse ? '' : 'is-hidden'}>
|
||||
`<div class="config-host-list" id="config-ob11-reverseWs.urls" ${ob11Config.reverseWs.enable ? "" : "is-hidden"
|
||||
}>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>反向 WebSocket 监听地址</setting-text>
|
||||
</div>
|
||||
<setting-button id="config-ob11-wsReverseUrls-add" data-type="primary">添加</setting-button>
|
||||
<setting-button id="config-ob11-reverseWs.urls-add" data-type="primary">添加</setting-button>
|
||||
</setting-item>
|
||||
<div id="config-ob11-wsReverseUrls-list"></div>
|
||||
<div id="config-ob11-reverseWs.urls-list"></div>
|
||||
</div>`,
|
||||
SettingItem(
|
||||
' WebSocket 服务心跳间隔',
|
||||
'控制每隔多久发送一个心跳包,单位为毫秒',
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.heartInterval" type="number" min="1000" value="${ob11Config.heartInterval}" placeholder="${ob11Config.heartInterval}" /></div>`,
|
||||
" WebSocket 服务心跳间隔",
|
||||
"控制每隔多久发送一个心跳包,单位为毫秒",
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.heartInterval" type="number" min="1000" value="${ob11Config.heartInterval}" placeholder="${ob11Config.heartInterval}" /></div>`
|
||||
),
|
||||
SettingItem(
|
||||
'Access token',
|
||||
"Access token",
|
||||
undefined,
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.token" type="text" value="${ob11Config.token}" placeholder="未设置" /></div>`,
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.token" type="text" value="${ob11Config.token}" placeholder="未设置" /></div>`
|
||||
),
|
||||
SettingItem(
|
||||
'新消息上报格式',
|
||||
'如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 <a href="javascript:LiteLoader.api.openExternal(\'https://github.com/botuniverse/onebot-11/tree/master/message#readme\');">OneBot v11 文档</a>',
|
||||
"新消息上报格式",
|
||||
"如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 <a href=\"javascript:LiteLoader.api.openExternal('https://github.com/botuniverse/onebot-11/tree/master/message#readme');\">OneBot v11 文档</a>",
|
||||
SettingSelect(
|
||||
[
|
||||
{ text: '消息段', value: 'array' },
|
||||
{ text: 'CQ码', value: 'string' },
|
||||
{ text: "消息段", value: "array" },
|
||||
{ text: "CQ码", value: "string" },
|
||||
],
|
||||
'ob11.messagePostFormat',
|
||||
ob11Config.messagePostFormat,
|
||||
),
|
||||
"ob11.messagePostFormat",
|
||||
ob11Config.messagePostFormat
|
||||
)
|
||||
),
|
||||
SettingItem(
|
||||
'音乐卡片签名地址',
|
||||
"音乐卡片签名地址",
|
||||
undefined,
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.musicSignUrl" type="text" value="${ob11Config.musicSignUrl}" placeholder="未设置" /></div>`,
|
||||
'ob11.musicSignUrl',
|
||||
"ob11.musicSignUrl"
|
||||
),
|
||||
SettingItem(
|
||||
"",
|
||||
undefined,
|
||||
SettingButton("保存", "config-ob11-save", "primary")
|
||||
),
|
||||
SettingItem('', undefined, SettingButton('保存', 'config-ob11-save', 'primary')),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem(
|
||||
'上报 Bot 自身发送的消息',
|
||||
'上报 event 为 message_sent',
|
||||
SettingSwitch('ob11.reportSelfMessage', ob11Config.reportSelfMessage),
|
||||
)
|
||||
"上报 Bot 自身发送的消息",
|
||||
"上报 event 为 message_sent",
|
||||
SettingSwitch("ob11.reportSelfMessage", ob11Config.reportSelfMessage)
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem('GitHub 仓库', `https://github.com/NapNeko/NapCatQQ`, SettingButton('点个星星', 'open-github')),
|
||||
SettingItem('NapCat 文档', ``, SettingButton('看看文档', 'open-docs')),
|
||||
SettingItem('Telegram 群', `https://t.me/+nLZEnpne-pQ1OWFl`, SettingButton('进去逛逛', 'open-telegram')),
|
||||
SettingItem('QQ 群', `545402644`, SettingButton('我要进去', 'open-qq-group')),
|
||||
SettingItem(
|
||||
"GitHub 仓库",
|
||||
`https://github.com/NapNeko/NapCatQQ`,
|
||||
SettingButton("点个星星", "open-github")
|
||||
),
|
||||
SettingItem("NapCat 文档", ``, SettingButton("看看文档", "open-docs")),
|
||||
SettingItem(
|
||||
"Telegram 群",
|
||||
`https://t.me/+nLZEnpne-pQ1OWFl`,
|
||||
SettingButton("进去逛逛", "open-telegram")
|
||||
),
|
||||
SettingItem(
|
||||
"QQ 群",
|
||||
`545402644`,
|
||||
SettingButton("我要进去", "open-qq-group")
|
||||
),
|
||||
]),
|
||||
'</div>',
|
||||
].join(''),
|
||||
'text/html',
|
||||
)
|
||||
"</div>",
|
||||
].join(""),
|
||||
"text/html"
|
||||
);
|
||||
|
||||
// 外链按钮
|
||||
doc.querySelector('#open-github')?.addEventListener('click', () => {
|
||||
window.open("https://napneko.github.io/", '_blank');
|
||||
})
|
||||
doc.querySelector('#open-telegram')?.addEventListener('click', () => {
|
||||
window.open('https://t.me/+nLZEnpne-pQ1OWFl')
|
||||
})
|
||||
doc.querySelector('#open-qq-group')?.addEventListener('click', () => {
|
||||
window.open('https://qm.qq.com/q/bDnHRG38aI')
|
||||
})
|
||||
doc.querySelector('#open-docs')?.addEventListener('click', () => {
|
||||
window.open('https://github.com/NapNeko/NapCatQQ')
|
||||
})
|
||||
doc.querySelector("#open-github")?.addEventListener("click", () => {
|
||||
window.open("https://napneko.github.io/", "_blank");
|
||||
});
|
||||
doc.querySelector("#open-telegram")?.addEventListener("click", () => {
|
||||
window.open("https://t.me/+nLZEnpne-pQ1OWFl");
|
||||
});
|
||||
doc.querySelector("#open-qq-group")?.addEventListener("click", () => {
|
||||
window.open("https://qm.qq.com/q/bDnHRG38aI");
|
||||
});
|
||||
doc.querySelector("#open-docs")?.addEventListener("click", () => {
|
||||
window.open("https://github.com/NapNeko/NapCatQQ");
|
||||
});
|
||||
// 生成反向地址列表
|
||||
const buildHostListItem = (type: string, host: string, index: number, inputAttrs: any = {}) => {
|
||||
const buildHostListItem = (
|
||||
type: string,
|
||||
host: string,
|
||||
index: number,
|
||||
inputAttrs: any = {}
|
||||
) => {
|
||||
const dom = {
|
||||
container: document.createElement('setting-item'),
|
||||
input: document.createElement('input'),
|
||||
inputContainer: document.createElement('div'),
|
||||
deleteBtn: document.createElement('setting-button'),
|
||||
}
|
||||
dom.container.classList.add('setting-host-list-item')
|
||||
dom.container.dataset.direction = 'row'
|
||||
Object.assign(dom.input, inputAttrs)
|
||||
dom.input.classList.add('q-input__inner')
|
||||
dom.input.type = 'url'
|
||||
dom.input.value = host
|
||||
dom.input.addEventListener('input', () => {
|
||||
ob11Config[type][index] = dom.input.value
|
||||
})
|
||||
container: document.createElement("setting-item"),
|
||||
input: document.createElement("input"),
|
||||
inputContainer: document.createElement("div"),
|
||||
deleteBtn: document.createElement("setting-button"),
|
||||
};
|
||||
dom.container.classList.add("setting-host-list-item");
|
||||
dom.container.dataset.direction = "row";
|
||||
Object.assign(dom.input, inputAttrs);
|
||||
dom.input.classList.add("q-input__inner");
|
||||
dom.input.type = "url";
|
||||
dom.input.value = host;
|
||||
dom.input.addEventListener("input", () => {
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]][index] =
|
||||
dom.input.value;
|
||||
});
|
||||
|
||||
dom.inputContainer.classList.add('q-input')
|
||||
dom.inputContainer.appendChild(dom.input)
|
||||
dom.inputContainer.classList.add("q-input");
|
||||
dom.inputContainer.appendChild(dom.input);
|
||||
|
||||
dom.deleteBtn.innerHTML = '删除'
|
||||
dom.deleteBtn.dataset.type = 'secondary'
|
||||
dom.deleteBtn.addEventListener('click', () => {
|
||||
ob11Config[type].splice(index, 1)
|
||||
initReverseHost(type)
|
||||
})
|
||||
dom.deleteBtn.innerHTML = "删除";
|
||||
dom.deleteBtn.dataset.type = "secondary";
|
||||
dom.deleteBtn.addEventListener("click", () => {
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].splice(index, 1);
|
||||
initReverseHost(type);
|
||||
});
|
||||
|
||||
dom.container.appendChild(dom.inputContainer)
|
||||
dom.container.appendChild(dom.deleteBtn)
|
||||
dom.container.appendChild(dom.inputContainer);
|
||||
dom.container.appendChild(dom.deleteBtn);
|
||||
|
||||
return dom.container
|
||||
}
|
||||
const buildHostList = (hosts: string[], type: string, inputAttr: any = {}) => {
|
||||
const result: HTMLElement[] = []
|
||||
return dom.container;
|
||||
};
|
||||
const buildHostList = (
|
||||
hosts: string[],
|
||||
type: string,
|
||||
inputAttr: any = {}
|
||||
) => {
|
||||
const result: HTMLElement[] = [];
|
||||
|
||||
hosts.forEach((host, index) => {
|
||||
result.push(buildHostListItem(type, host, index, inputAttr))
|
||||
})
|
||||
hosts?.forEach((host, index) => {
|
||||
result.push(buildHostListItem(type, host, index, inputAttr));
|
||||
});
|
||||
|
||||
return result
|
||||
}
|
||||
const addReverseHost = (type: string, doc: Document = document, inputAttr: any = {}) => {
|
||||
const hostContainerDom = doc.body.querySelector(`#config-ob11-${type}-list`);
|
||||
hostContainerDom?.appendChild(buildHostListItem(type, '', ob11Config[type].length, inputAttr));
|
||||
ob11Config[type].push('');
|
||||
}
|
||||
return result;
|
||||
};
|
||||
const addReverseHost = (
|
||||
type: string,
|
||||
doc: Document = document,
|
||||
inputAttr: any = {}
|
||||
) => {
|
||||
const hostContainerDom = doc.body.querySelector(
|
||||
`#config-ob11-${type}-list`
|
||||
);
|
||||
hostContainerDom?.appendChild(
|
||||
buildHostListItem(
|
||||
type,
|
||||
"",
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].length,
|
||||
inputAttr
|
||||
)
|
||||
);
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].push("");
|
||||
};
|
||||
const initReverseHost = (type: string, doc: Document = document) => {
|
||||
const hostContainerDom = doc.body?.querySelector(`#config-ob11-${type}-list`);
|
||||
const hostContainerDom = doc.body?.querySelector(
|
||||
`#config-ob11-${type}-list`
|
||||
);
|
||||
if (hostContainerDom) {
|
||||
[...hostContainerDom.childNodes].forEach((dom) => dom.remove());
|
||||
buildHostList(ob11Config[type], type).forEach((dom) => {
|
||||
buildHostList(
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]],
|
||||
type
|
||||
).forEach((dom) => {
|
||||
hostContainerDom?.appendChild(dom);
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
initReverseHost('httpPostUrls', doc);
|
||||
initReverseHost('wsReverseUrls', doc);
|
||||
};
|
||||
initReverseHost("http.postUrls", doc);
|
||||
initReverseHost("reverseWs.urls", doc);
|
||||
|
||||
doc
|
||||
.querySelector('#config-ob11-httpPostUrls-add')
|
||||
?.addEventListener('click', () =>
|
||||
addReverseHost('httpPostUrls', document, { placeholder: '如:http://127.0.0.1:5140/onebot' }),
|
||||
)
|
||||
.querySelector("#config-ob11-http.postUrls-add")
|
||||
?.addEventListener("click", () =>
|
||||
addReverseHost("http.postUrls", document, {
|
||||
placeholder: "如:http://127.0.0.1:5140/onebot",
|
||||
})
|
||||
);
|
||||
doc
|
||||
.querySelector('#config-ob11-wsReverseUrls-add')
|
||||
?.addEventListener('click', () =>
|
||||
addReverseHost('wsReverseUrls', document, { placeholder: '如:ws://127.0.0.1:5140/onebot' }),
|
||||
)
|
||||
.querySelector("#config-ob11-reverseWs.urls-add")
|
||||
?.addEventListener("click", () =>
|
||||
addReverseHost("reverseWs.urls", document, {
|
||||
placeholder: "如:ws://127.0.0.1:5140/onebot",
|
||||
})
|
||||
);
|
||||
|
||||
doc.querySelector('#config-ffmpeg-select')?.addEventListener('click', () => {
|
||||
doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => {
|
||||
//选择ffmpeg
|
||||
})
|
||||
});
|
||||
|
||||
doc.querySelector('#config-open-log-path')?.addEventListener('click', () => {
|
||||
doc.querySelector("#config-open-log-path")?.addEventListener("click", () => {
|
||||
//打开日志
|
||||
})
|
||||
});
|
||||
|
||||
// 开关
|
||||
doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: Element) => {
|
||||
dom.addEventListener('click', () => {
|
||||
const active = dom.getAttribute('is-active') == undefined;
|
||||
//@ts-ignore 扩展
|
||||
setOB11Config(dom.dataset.configKey, active)
|
||||
if (active) dom.setAttribute('is-active', '')
|
||||
else dom.removeAttribute('is-active')
|
||||
//@ts-ignore 等待修复
|
||||
if (!isEmpty(dom.dataset.controlDisplayId)) {
|
||||
doc
|
||||
.querySelectorAll("setting-switch[data-config-key]")
|
||||
.forEach((dom: Element) => {
|
||||
dom.addEventListener("click", () => {
|
||||
const active = dom.getAttribute("is-active") == undefined;
|
||||
//@ts-ignore 扩展
|
||||
setOB11Config(dom.dataset.configKey, active);
|
||||
if (active) dom.setAttribute("is-active", "");
|
||||
else dom.removeAttribute("is-active");
|
||||
//@ts-ignore 等待修复
|
||||
const displayDom = document.querySelector(`#${dom.dataset.controlDisplayId}`)
|
||||
if (active) displayDom?.removeAttribute('is-hidden')
|
||||
else displayDom?.setAttribute('is-hidden', '')
|
||||
}
|
||||
})
|
||||
})
|
||||
if (!isEmpty(dom.dataset.controlDisplayId)) {
|
||||
const displayDom = document.querySelector(
|
||||
//@ts-ignore 等待修复
|
||||
`#${dom.dataset.controlDisplayId}`
|
||||
);
|
||||
if (active) displayDom?.removeAttribute("is-hidden");
|
||||
else displayDom?.setAttribute("is-hidden", "");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 输入框
|
||||
doc
|
||||
.querySelectorAll('setting-item .q-input input.q-input__inner[data-config-key]')
|
||||
.querySelectorAll(
|
||||
"setting-item .q-input input.q-input__inner[data-config-key]"
|
||||
)
|
||||
.forEach((dom: Element) => {
|
||||
dom.addEventListener('input', () => {
|
||||
const Type = dom.getAttribute('type')
|
||||
dom.addEventListener("input", () => {
|
||||
const Type = dom.getAttribute("type");
|
||||
//@ts-ignore 等待修复
|
||||
const configKey = dom.dataset.configKey
|
||||
const configValue = Type === 'number' ? (parseInt((dom as HTMLInputElement).value) >= 1 ? parseInt((dom as HTMLInputElement).value) : 1) : (dom as HTMLInputElement).value
|
||||
const configKey = dom.dataset.configKey;
|
||||
const configValue =
|
||||
Type === "number"
|
||||
? parseInt((dom as HTMLInputElement).value) >= 1
|
||||
? parseInt((dom as HTMLInputElement).value)
|
||||
: 1
|
||||
: (dom as HTMLInputElement).value;
|
||||
|
||||
setOB11Config(configKey, configValue)
|
||||
})
|
||||
})
|
||||
setOB11Config(configKey, configValue);
|
||||
});
|
||||
});
|
||||
|
||||
// 下拉框
|
||||
doc.querySelectorAll('ob-setting-select[data-config-key]').forEach((dom: Element) => {
|
||||
//@ts-ignore 等待修复
|
||||
dom?.addEventListener('selected', (e: CustomEvent) => {
|
||||
doc
|
||||
.querySelectorAll("ob-setting-select[data-config-key]")
|
||||
.forEach((dom: Element) => {
|
||||
//@ts-ignore 等待修复
|
||||
const configKey = dom.dataset.configKey
|
||||
const configValue = e.detail.value
|
||||
setOB11Config(configKey, configValue);
|
||||
})
|
||||
})
|
||||
dom?.addEventListener("selected", (e: CustomEvent) => {
|
||||
//@ts-ignore 等待修复
|
||||
const configKey = dom.dataset.configKey;
|
||||
const configValue = e.detail.value;
|
||||
setOB11Config(configKey, configValue);
|
||||
});
|
||||
});
|
||||
|
||||
// 保存按钮
|
||||
doc.querySelector('#config-ob11-save')?.addEventListener('click', () => {
|
||||
doc.querySelector("#config-ob11-save")?.addEventListener("click", () => {
|
||||
OB11ConfigWrapper.SetOB11Config(ob11Config);
|
||||
alert('保存成功');
|
||||
})
|
||||
alert("保存成功");
|
||||
});
|
||||
doc.body.childNodes.forEach((node) => {
|
||||
view.appendChild(node)
|
||||
})
|
||||
view.appendChild(node);
|
||||
});
|
||||
}
|
||||
export { onSettingWindowCreated };
|
@@ -1,64 +1,70 @@
|
||||
export interface OB11Config {
|
||||
[key: string]: any,
|
||||
httpHost: "",
|
||||
httpPort: number;
|
||||
httpPostUrls: string[];
|
||||
httpSecret: "",
|
||||
wsHost: "",
|
||||
wsPort: number;
|
||||
wsReverseUrls: string[];
|
||||
enableHttp: boolean;
|
||||
enableHttpHeart: boolean;
|
||||
enableHttpPost: boolean;
|
||||
enableWs: boolean;
|
||||
enableWsReverse: boolean;
|
||||
messagePostFormat: 'array' | 'string';
|
||||
reportSelfMessage: boolean;
|
||||
enableLocalFile2Url: boolean;
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
token: "",
|
||||
musicSignUrl: "",
|
||||
[key: string]: any;
|
||||
http: {
|
||||
enable: boolean;
|
||||
host: "";
|
||||
port: number;
|
||||
secret: "";
|
||||
enableHeart: boolean;
|
||||
enablePost: boolean;
|
||||
postUrls: string[];
|
||||
};
|
||||
ws: {
|
||||
enable: boolean;
|
||||
host: "";
|
||||
port: number;
|
||||
};
|
||||
reverseWs: {
|
||||
enable: boolean;
|
||||
urls: string[];
|
||||
};
|
||||
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
messagePostFormat: "array" | "string";
|
||||
enableLocalFile2Url: boolean;
|
||||
musicSignUrl: "";
|
||||
reportSelfMessage: boolean;
|
||||
token: "";
|
||||
}
|
||||
|
||||
class WebUiApiOB11ConfigWrapper {
|
||||
private retCredential: string = "";
|
||||
async Init(Credential: string) {
|
||||
this.retCredential = Credential;
|
||||
private retCredential: string = "";
|
||||
async Init(Credential: string) {
|
||||
this.retCredential = Credential;
|
||||
}
|
||||
async GetOB11Config(): Promise<OB11Config> {
|
||||
let ConfigResponse = await fetch("/api/OB11Config/GetConfig", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return ConfigResponseJson?.data;
|
||||
}
|
||||
}
|
||||
async GetOB11Config(): Promise<OB11Config> {
|
||||
let ConfigResponse = await fetch('/api/OB11Config/GetConfig', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': "Bearer " + this.retCredential,
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return ConfigResponseJson?.data;
|
||||
}
|
||||
}
|
||||
return {} as OB11Config;
|
||||
}
|
||||
async SetOB11Config(config: OB11Config): Promise<Boolean> {
|
||||
let ConfigResponse = await fetch('/api/OB11Config/SetConfig',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': "Bearer " + this.retCredential,
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({ config: JSON.stringify(config) })
|
||||
}
|
||||
);
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return {} as OB11Config;
|
||||
}
|
||||
async SetOB11Config(config: OB11Config): Promise<Boolean> {
|
||||
let ConfigResponse = await fetch("/api/OB11Config/SetConfig", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ config: JSON.stringify(config) }),
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
export const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper();
|
@@ -111,7 +111,7 @@ class WebUiApiOB11ConfigWrapper {
|
||||
let ConfigResponse = await fetch("/api/OB11Config/GetConfig", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Authorization": "Bearer " + this.retCredential,
|
||||
Authorization: "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
});
|
||||
@@ -124,17 +124,14 @@ class WebUiApiOB11ConfigWrapper {
|
||||
return {};
|
||||
}
|
||||
async SetOB11Config(config) {
|
||||
let ConfigResponse = await fetch(
|
||||
"/api/OB11Config/SetConfig",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Authorization": "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({ config: JSON.stringify(config) })
|
||||
}
|
||||
);
|
||||
let ConfigResponse = await fetch("/api/OB11Config/SetConfig", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({ config: JSON.stringify(config) })
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
@@ -154,6 +151,8 @@ async function onSettingWindowCreated(view) {
|
||||
const configKey = key.split(".");
|
||||
if (configKey.length === 2) {
|
||||
ob11Config[configKey[1]] = value;
|
||||
} else if (configKey.length === 3) {
|
||||
ob11Config[configKey[1]][configKey[2]] = value;
|
||||
}
|
||||
OB11ConfigWrapper.SetOB11Config(ob11Config);
|
||||
};
|
||||
@@ -175,73 +174,77 @@ async function onSettingWindowCreated(view) {
|
||||
SettingItem(
|
||||
"启用 HTTP 服务",
|
||||
void 0,
|
||||
SettingSwitch("ob11.enableHttp", ob11Config.enableHttp, { "control-display-id": "config-ob11-httpPort" })
|
||||
SettingSwitch("ob11.http.enable", ob11Config.http.enable, {
|
||||
"control-display-id": "config-ob11-http.port"
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
"HTTP 服务监听端口",
|
||||
void 0,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.httpPort" type="number" min="1" max="65534" value="${ob11Config.httpPort}" placeholder="${ob11Config.httpPort}" /></div>`,
|
||||
"config-ob11-httpPort",
|
||||
ob11Config.enableHttp
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.http.port" type="number" min="1" max="65534" value="${ob11Config.http.port}" placeholder="${ob11Config.http.port}" /></div>`,
|
||||
"config-ob11-http.port",
|
||||
ob11Config.http.enable
|
||||
),
|
||||
SettingItem(
|
||||
"启用 HTTP 心跳",
|
||||
void 0,
|
||||
SettingSwitch("ob11.enableHttpHeart", ob11Config.enableHttpHeart, {
|
||||
"control-display-id": "config-ob11-enableHttpHeart"
|
||||
SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, {
|
||||
"control-display-id": "config-ob11-HTTP.enableHeart"
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
"启用 HTTP 事件上报",
|
||||
void 0,
|
||||
SettingSwitch("ob11.enableHttpPost", ob11Config.enableHttpPost, {
|
||||
"control-display-id": "config-ob11-httpPostUrls"
|
||||
SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, {
|
||||
"control-display-id": "config-ob11-http.postUrls"
|
||||
})
|
||||
),
|
||||
`<div class="config-host-list" id="config-ob11-httpPostUrls" ${ob11Config.enableHttpPost ? "" : "is-hidden"}>
|
||||
`<div class="config-host-list" id="config-ob11-http.postUrls" ${ob11Config.http.enablePost ? "" : "is-hidden"}>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>HTTP 事件上报密钥</setting-text>
|
||||
</div>
|
||||
<div class="q-input">
|
||||
<input id="config-ob11-httpSecret" class="q-input__inner" data-config-key="ob11.httpSecret" type="text" value="${ob11Config.httpSecret}" placeholder="未设置" />
|
||||
<input id="config-ob11-http.secret" class="q-input__inner" data-config-key="ob11.http.secret" type="text" value="${ob11Config.http.secret}" placeholder="未设置" />
|
||||
</div>
|
||||
</setting-item>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>HTTP 事件上报地址</setting-text>
|
||||
</div>
|
||||
<setting-button id="config-ob11-httpPostUrls-add" data-type="primary">添加</setting-button>
|
||||
<setting-button id="config-ob11-http.postUrls-add" data-type="primary">添加</setting-button>
|
||||
</setting-item>
|
||||
<div id="config-ob11-httpPostUrls-list"></div>
|
||||
<div id="config-ob11-http.postUrls-list"></div>
|
||||
</div>`,
|
||||
SettingItem(
|
||||
"启用正向 WebSocket 服务",
|
||||
void 0,
|
||||
SettingSwitch("ob11.enableWs", ob11Config.enableWs, { "control-display-id": "config-ob11-wsPort" })
|
||||
SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, {
|
||||
"control-display-id": "config-ob11-ws.port"
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
"正向 WebSocket 服务监听端口",
|
||||
void 0,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.wsPort" type="number" min="1" max="65534" value="${ob11Config.wsPort}" placeholder="${ob11Config.wsPort}" /></div>`,
|
||||
"config-ob11-wsPort",
|
||||
ob11Config.enableWs
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.ws.port" type="number" min="1" max="65534" value="${ob11Config.ws.port}" placeholder="${ob11Config.ws.port}" /></div>`,
|
||||
"config-ob11-ws.port",
|
||||
ob11Config.ws.enable
|
||||
),
|
||||
SettingItem(
|
||||
"启用反向 WebSocket 服务",
|
||||
void 0,
|
||||
SettingSwitch("ob11.enableWsReverse", ob11Config.enableWsReverse, {
|
||||
"control-display-id": "config-ob11-wsReverseUrls"
|
||||
SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, {
|
||||
"control-display-id": "config-ob11-reverseWs.urls"
|
||||
})
|
||||
),
|
||||
`<div class="config-host-list" id="config-ob11-wsReverseUrls" ${ob11Config.enableWsReverse ? "" : "is-hidden"}>
|
||||
`<div class="config-host-list" id="config-ob11-reverseWs.urls" ${ob11Config.reverseWs.enable ? "" : "is-hidden"}>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>反向 WebSocket 监听地址</setting-text>
|
||||
</div>
|
||||
<setting-button id="config-ob11-wsReverseUrls-add" data-type="primary">添加</setting-button>
|
||||
<setting-button id="config-ob11-reverseWs.urls-add" data-type="primary">添加</setting-button>
|
||||
</setting-item>
|
||||
<div id="config-ob11-wsReverseUrls-list"></div>
|
||||
<div id="config-ob11-reverseWs.urls-list"></div>
|
||||
</div>`,
|
||||
SettingItem(
|
||||
" WebSocket 服务心跳间隔",
|
||||
@@ -271,7 +274,11 @@ async function onSettingWindowCreated(view) {
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.musicSignUrl" type="text" value="${ob11Config.musicSignUrl}" placeholder="未设置" /></div>`,
|
||||
"ob11.musicSignUrl"
|
||||
),
|
||||
SettingItem("", void 0, SettingButton("保存", "config-ob11-save", "primary"))
|
||||
SettingItem(
|
||||
"",
|
||||
void 0,
|
||||
SettingButton("保存", "config-ob11-save", "primary")
|
||||
)
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem(
|
||||
@@ -281,10 +288,22 @@ async function onSettingWindowCreated(view) {
|
||||
)
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem("GitHub 仓库", `https://github.com/NapNeko/NapCatQQ`, SettingButton("点个星星", "open-github")),
|
||||
SettingItem(
|
||||
"GitHub 仓库",
|
||||
`https://github.com/NapNeko/NapCatQQ`,
|
||||
SettingButton("点个星星", "open-github")
|
||||
),
|
||||
SettingItem("NapCat 文档", ``, SettingButton("看看文档", "open-docs")),
|
||||
SettingItem("Telegram 群", `https://t.me/+nLZEnpne-pQ1OWFl`, SettingButton("进去逛逛", "open-telegram")),
|
||||
SettingItem("QQ 群", `545402644`, SettingButton("我要进去", "open-qq-group"))
|
||||
SettingItem(
|
||||
"Telegram 群",
|
||||
`https://t.me/+nLZEnpne-pQ1OWFl`,
|
||||
SettingButton("进去逛逛", "open-telegram")
|
||||
),
|
||||
SettingItem(
|
||||
"QQ 群",
|
||||
`545402644`,
|
||||
SettingButton("我要进去", "open-qq-group")
|
||||
)
|
||||
]),
|
||||
"</div>"
|
||||
].join(""),
|
||||
@@ -316,14 +335,14 @@ async function onSettingWindowCreated(view) {
|
||||
dom.input.type = "url";
|
||||
dom.input.value = host;
|
||||
dom.input.addEventListener("input", () => {
|
||||
ob11Config[type][index] = dom.input.value;
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]][index] = dom.input.value;
|
||||
});
|
||||
dom.inputContainer.classList.add("q-input");
|
||||
dom.inputContainer.appendChild(dom.input);
|
||||
dom.deleteBtn.innerHTML = "删除";
|
||||
dom.deleteBtn.dataset.type = "secondary";
|
||||
dom.deleteBtn.addEventListener("click", () => {
|
||||
ob11Config[type].splice(index, 1);
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].splice(index, 1);
|
||||
initReverseHost(type);
|
||||
});
|
||||
dom.container.appendChild(dom.inputContainer);
|
||||
@@ -332,34 +351,52 @@ async function onSettingWindowCreated(view) {
|
||||
};
|
||||
const buildHostList = (hosts, type, inputAttr = {}) => {
|
||||
const result = [];
|
||||
hosts.forEach((host, index) => {
|
||||
hosts?.forEach((host, index) => {
|
||||
result.push(buildHostListItem(type, host, index, inputAttr));
|
||||
});
|
||||
return result;
|
||||
};
|
||||
const addReverseHost = (type, doc2 = document, inputAttr = {}) => {
|
||||
const hostContainerDom = doc2.body.querySelector(`#config-ob11-${type}-list`);
|
||||
hostContainerDom?.appendChild(buildHostListItem(type, "", ob11Config[type].length, inputAttr));
|
||||
ob11Config[type].push("");
|
||||
const hostContainerDom = doc2.body.querySelector(
|
||||
`#config-ob11-${type}-list`
|
||||
);
|
||||
hostContainerDom?.appendChild(
|
||||
buildHostListItem(
|
||||
type,
|
||||
"",
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].length,
|
||||
inputAttr
|
||||
)
|
||||
);
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].push("");
|
||||
};
|
||||
const initReverseHost = (type, doc2 = document) => {
|
||||
const hostContainerDom = doc2.body?.querySelector(`#config-ob11-${type}-list`);
|
||||
const hostContainerDom = doc2.body?.querySelector(
|
||||
`#config-ob11-${type}-list`
|
||||
);
|
||||
if (hostContainerDom) {
|
||||
[...hostContainerDom.childNodes].forEach((dom) => dom.remove());
|
||||
buildHostList(ob11Config[type], type).forEach((dom) => {
|
||||
buildHostList(
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]],
|
||||
type
|
||||
).forEach((dom) => {
|
||||
hostContainerDom?.appendChild(dom);
|
||||
});
|
||||
}
|
||||
};
|
||||
initReverseHost("httpPostUrls", doc);
|
||||
initReverseHost("wsReverseUrls", doc);
|
||||
doc.querySelector("#config-ob11-httpPostUrls-add")?.addEventListener(
|
||||
initReverseHost("http.postUrls", doc);
|
||||
initReverseHost("reverseWs.urls", doc);
|
||||
doc.querySelector("#config-ob11-http.postUrls-add")?.addEventListener(
|
||||
"click",
|
||||
() => addReverseHost("httpPostUrls", document, { placeholder: "如:http://127.0.0.1:5140/onebot" })
|
||||
() => addReverseHost("http.postUrls", document, {
|
||||
placeholder: "如:http://127.0.0.1:5140/onebot"
|
||||
})
|
||||
);
|
||||
doc.querySelector("#config-ob11-wsReverseUrls-add")?.addEventListener(
|
||||
doc.querySelector("#config-ob11-reverseWs.urls-add")?.addEventListener(
|
||||
"click",
|
||||
() => addReverseHost("wsReverseUrls", document, { placeholder: "如:ws://127.0.0.1:5140/onebot" })
|
||||
() => addReverseHost("reverseWs.urls", document, {
|
||||
placeholder: "如:ws://127.0.0.1:5140/onebot"
|
||||
})
|
||||
);
|
||||
doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => {
|
||||
});
|
||||
@@ -374,7 +411,10 @@ async function onSettingWindowCreated(view) {
|
||||
else
|
||||
dom.removeAttribute("is-active");
|
||||
if (!isEmpty(dom.dataset.controlDisplayId)) {
|
||||
const displayDom = document.querySelector(`#${dom.dataset.controlDisplayId}`);
|
||||
const displayDom = document.querySelector(
|
||||
//@ts-ignore 等待修复
|
||||
`#${dom.dataset.controlDisplayId}`
|
||||
);
|
||||
if (active)
|
||||
displayDom?.removeAttribute("is-hidden");
|
||||
else
|
||||
@@ -382,7 +422,9 @@ async function onSettingWindowCreated(view) {
|
||||
}
|
||||
});
|
||||
});
|
||||
doc.querySelectorAll("setting-item .q-input input.q-input__inner[data-config-key]").forEach((dom) => {
|
||||
doc.querySelectorAll(
|
||||
"setting-item .q-input input.q-input__inner[data-config-key]"
|
||||
).forEach((dom) => {
|
||||
dom.addEventListener("input", () => {
|
||||
const Type = dom.getAttribute("type");
|
||||
const configKey = dom.dataset.configKey;
|
||||
|
Reference in New Issue
Block a user