Compare commits

...

249 Commits

Author SHA1 Message Date
手瓜一十雪
4b3a9e5847 release: 1.3.8 2024-05-24 13:47:25 +08:00
手瓜一十雪
e4982256a4 fix: typo 2024-05-24 11:39:46 +08:00
手瓜一十雪
babc4927a8 feat: 注释解码 2024-05-24 11:28:43 +08:00
手瓜一十雪
6dd84cf469 build: 1.4.0-beta8 2024-05-24 11:21:34 +08:00
手瓜一十雪
a8800e3899 feat: 1.4.0-beta8 2024-05-24 11:18:32 +08:00
手瓜一十雪
5f03496046 build: 1.4.0-beta7 2024-05-24 10:45:12 +08:00
手瓜一十雪
41500c17a2 try: fix 2024-05-24 10:42:21 +08:00
手瓜一十雪
2dcfde8b9a build: 1.4.0-beta6 2024-05-23 18:23:11 +08:00
手瓜一十雪
5c3305d8fa Revert "feat: try support LiteLoader"
This reverts commit 8101d17482.
2024-05-23 18:10:18 +08:00
手瓜一十雪
0d1fe99f53 Merge pull request #32 from xihan123/main
fix: set_group_add_request reason 字段错误
2024-05-23 16:48:43 +08:00
xihan123
4c03ffeec7 fix: set_group_add_request reason 字段错误 2024-05-23 16:45:41 +08:00
手瓜一十雪
8101d17482 feat: try support LiteLoader 2024-05-23 16:30:29 +08:00
手瓜一十雪
bc7b4dcc2a build: 1.4.0-beta5 2024-05-23 15:16:35 +08:00
手瓜一十雪
3db8b9078d docs: change 2024-05-23 11:14:42 +08:00
手瓜一十雪
943dbbefd3 build: 1.4.0-beta4-兼容9.7.x换行符 2024-05-23 11:10:31 +08:00
手瓜一十雪
480abcb853 fix: HandlersClear 2024-05-23 10:23:37 +08:00
手瓜一十雪
60aaaff58e fix: UserDetail 2024-05-23 10:19:45 +08:00
手瓜一十雪
e3b889bbe8 fix: test 2024-05-22 21:44:12 +08:00
手瓜一十雪
ac5506a43b style: lint 2024-05-22 20:58:49 +08:00
手瓜一十雪
b29f533a3b feat: 1.4.0 2024-05-22 20:36:38 +08:00
手瓜一十雪
a8ee86b09e build: test 2024-05-22 20:31:16 +08:00
手瓜一十雪
0238c53302 build: 1.4.0-beta2 2024-05-22 20:19:28 +08:00
手瓜一十雪
665e3c806f build: 1.4.0 - beta2 2024-05-22 20:16:24 +08:00
手瓜一十雪
8c96838441 refactor: cjs to es 2024-05-22 20:13:18 +08:00
手瓜一十雪
4a722daec6 chore: sync core 2024-05-22 19:59:36 +08:00
手瓜一十雪
4e0cdbcb91 feat: 破坏性更新 cjs to es 2024-05-22 19:58:45 +08:00
手瓜一十雪
08976624cd feat: debug 2024-05-22 17:30:40 +08:00
手瓜一十雪
fdeba94653 chore: sync core 2024-05-22 16:11:01 +08:00
手瓜一十雪
d3b100b7e5 refactor: member info 2024-05-22 12:52:49 +08:00
手瓜一十雪
1de3e18b08 fix: remove unuse 2024-05-21 19:32:17 +08:00
手瓜一十雪
d5c3c95682 chore: sync core 2024-05-21 19:28:26 +08:00
手瓜一十雪
dabe1e29ed feat: GroupMemberDetailInfo 2024-05-21 19:27:59 +08:00
手瓜一十雪
203d1c0cfc release: v1.3.5 2024-05-20 21:24:11 +08:00
手瓜一十雪
7edd8601be fix 2024-05-20 18:11:13 +08:00
手瓜一十雪
a4423247f4 fix 2024-05-20 18:05:00 +08:00
手瓜一十雪
4834b203a0 fix: stop express 2024-05-20 17:56:36 +08:00
手瓜一十雪
bbabb32d13 fix: 移除调试代码 2024-05-20 17:49:15 +08:00
手瓜一十雪
95112d6bdf fix: 热重载问题 2024-05-20 17:47:13 +08:00
手瓜一十雪
36cdca5a3e fix: 热重载 2024-05-20 16:58:24 +08:00
手瓜一十雪
6980a9f3fc refactor: webui config 2024-05-20 16:56:34 +08:00
手瓜一十雪
7b09479cd2 fix: 拦截错误 2024-05-20 16:26:42 +08:00
手瓜一十雪
5825fd6f36 fix: 拦截异常 2024-05-20 12:35:50 +08:00
手瓜一十雪
2d5b45dd82 feat: test 2024-05-20 12:10:48 +08:00
手瓜一十雪
52dda1d1fe refactor: SysMessage Proto 2024-05-19 22:29:02 +08:00
手瓜一十雪
420624bee4 build: 1.3.5-catch error 2024-05-19 21:48:52 +08:00
手瓜一十雪
8abde7b7d0 Revert "build: 1.3.5-re"
This reverts commit 9e5b1ba28e.
2024-05-19 21:41:57 +08:00
手瓜一十雪
9e5b1ba28e build: 1.3.5-re 2024-05-19 21:18:33 +08:00
手瓜一十雪
b9c7d3c18e build: 1.3.5-re 2024-05-19 21:04:24 +08:00
手瓜一十雪
10aeccbbe5 build: 1.3.5 2024-05-19 20:46:02 +08:00
手瓜一十雪
15d351ebc2 build: 1.3.5-re 2024-05-19 13:30:42 +08:00
手瓜一十雪
7194f31cb6 build: 1.3.5-re 2024-05-19 13:18:29 +08:00
手瓜一十雪
84b7e82446 build: 1.4.0-beta1 2024-05-19 12:36:56 +08:00
手瓜一十雪
8264423b1a fix: 上报问题 2024-05-19 12:36:40 +08:00
手瓜一十雪
37f897f3bf feat: 上报戳一戳 2024-05-19 12:35:15 +08:00
手瓜一十雪
fe3efac145 feat: 解析戳一戳 2024-05-19 12:29:40 +08:00
手瓜一十雪
9773aebefc feat: sys msg decode 2024-05-19 12:12:03 +08:00
手瓜一十雪
06f2b8c371 docs: change init 2024-05-19 11:08:42 +08:00
手瓜一十雪
e8f0bb8350 build: fix check type 2024-05-18 20:48:06 +08:00
手瓜一十雪
9bfa6b827b build: 1.3.5 2024-05-18 20:36:16 +08:00
手瓜一十雪
b21bc17a58 build: 1.3.5 2024-05-18 20:28:35 +08:00
手瓜一十雪
f4d5d417d0 build: 1.3.5 2024-05-18 20:09:33 +08:00
手瓜一十雪
91fc83621e build: 1.3.5 2024-05-18 19:46:53 +08:00
手瓜一十雪
461feca0ca Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2024-05-18 19:33:24 +08:00
手瓜一十雪
5e9afab3f7 fix: workflow 2024-05-18 18:18:08 +08:00
Version
2599ca6450 chore:version change 2024-05-18 10:15:09 +00:00
手瓜一十雪
fc99ad3a39 Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2024-05-18 18:08:29 +08:00
手瓜一十雪
10e1c3e72c build: 1.3.5-beta38 2024-05-18 18:08:18 +08:00
手瓜一十雪
af5dedd4d4 docs: change 2024-05-18 18:00:40 +08:00
手瓜一十雪
3b986c1076 build: 1.3.5-beta37 2024-05-18 17:58:09 +08:00
手瓜一十雪
72f77e8b7c feat: support get_group_system_msg 2024-05-18 17:57:42 +08:00
手瓜一十雪
e893bf676f build: 1.3.5-beta36
get_group_system_msg 未标准化
2024-05-18 17:37:10 +08:00
手瓜一十雪
80eb34f611 feat: try add get_group_system_msg 2024-05-18 16:58:46 +08:00
手瓜一十雪
5d01947552 feat: 快速操作msg默认reply模式回应 2024-05-18 16:27:53 +08:00
手瓜一十雪
d3a025ef7b build: 1.3.5-beta35 2024-05-18 14:40:46 +08:00
手瓜一十雪
c466df841e build: 1.3.5-beta34 2024-05-18 14:36:52 +08:00
手瓜一十雪
b3c6e2a0f3 feat: QuickHandle From LLOB 2024-05-18 14:35:24 +08:00
手瓜一十雪
076c9cfed7 feat: send timeout predict 2024-05-18 14:09:57 +08:00
手瓜一十雪
c3f3d12f83 build: 1.3.5-beta33 2024-05-18 13:35:57 +08:00
手瓜一十雪
44974034ec build: 1.3.5-beta32 2024-05-18 12:56:03 +08:00
手瓜一十雪
d6175acd38 feat: check action data 3 2024-05-18 12:40:41 +08:00
手瓜一十雪
62eee5f05c feat: check action data 2 2024-05-18 12:23:15 +08:00
手瓜一十雪
d4e5201913 feat: action check data 2024-05-18 11:48:38 +08:00
手瓜一十雪
f4d584765a build: 1.3.5-beta30 2024-05-17 21:58:48 +08:00
手瓜一十雪
26e224f852 fix: 热重载容错 2024-05-17 21:44:52 +08:00
手瓜一十雪
252358ed66 build: 1.3.5-beta29 2024-05-17 21:41:07 +08:00
手瓜一十雪
475afeb7c8 build: 1.3.5-beta28 2024-05-17 21:30:37 +08:00
手瓜一十雪
7cbbb846eb build: 1.3.5-beta27 2024-05-17 21:26:32 +08:00
手瓜一十雪
25f947968c fix: typo 2024-05-17 19:55:12 +08:00
手瓜一十雪
cad824dcbc refactor: powershell script 2024-05-17 19:22:36 +08:00
手瓜一十雪
e506f50b00 build: 1.3.5-beta24 2024-05-17 18:51:31 +08:00
手瓜一十雪
96ec149a98 fix: webui 2024-05-17 18:23:50 +08:00
手瓜一十雪
8c913512f6 fix: webui 2024-05-17 18:21:03 +08:00
手瓜一十雪
4cc307299d build: 1.3.5-beta23 2024-05-17 18:12:41 +08:00
手瓜一十雪
407c6b4c5f fix: webui 2024-05-17 18:11:53 +08:00
手瓜一十雪
8f87070434 build: 1.3.5-beta22 2024-05-17 17:17:49 +08:00
手瓜一十雪
4a63996ee2 docs: change 2024-05-17 17:08:01 +08:00
手瓜一十雪
0358fe7620 feat: UpdateConfig 2024-05-17 17:03:48 +08:00
手瓜一十雪
55e64395ed build: 1.3.5-beta20 2024-05-17 15:39:31 +08:00
手瓜一十雪
ff5fb18e14 chore: sync core 2024-05-16 20:47:12 +08:00
手瓜一十雪
52dd960857 build: 1.3.5-beta19 2024-05-16 20:24:49 +08:00
手瓜一十雪
430221c2de fix: check msgElement 2024-05-16 20:23:36 +08:00
手瓜一十雪
217bdf8f92 build: 1.3.5-beta17 2024-05-16 12:53:33 +08:00
手瓜一十雪
38c6c869bf docs: change 2024-05-16 12:52:45 +08:00
手瓜一十雪
84d46da67e fix: ws心跳问题 2024-05-16 12:46:27 +08:00
手瓜一十雪
eb9d6240d7 chore: move 2024-05-16 11:57:02 +08:00
linyuchen
2d44a871b0 chore: Sync core 2024-05-15 23:08:57 +08:00
手瓜一十雪
3f89f350ff fix: 移除umami 2024-05-15 22:18:05 +08:00
手瓜一十雪
1a8407a782 refactor: requests 2024-05-15 21:13:41 +08:00
手瓜一十雪
cf288a3f73 feat: 迁移配置辅助函数 2024-05-15 20:55:09 +08:00
手瓜一十雪
f1f37fb180 Merge pull request #23 from Wesley-Young/main
Refactoring onebot11/action/msg/SendMsg
2024-05-15 19:47:37 +08:00
手瓜一十雪
fb0dd079fd Merge branch 'main' into pr/23 2024-05-15 19:47:19 +08:00
手瓜一十雪
a6c584c85c Merge branch 'main' of https://github.com/Wesley-Young/NapCatQQ.Patch into pr/23 2024-05-15 19:46:46 +08:00
手瓜一十雪
77adf35a30 fix: export problem 2024-05-15 19:45:27 +08:00
linyuchen
dc6951c2a9 Merge remote-tracking branch 'origin/main' 2024-05-15 17:55:20 +08:00
linyuchen
d14ba3f0f7 feat: Cache decorator 2024-05-15 17:55:03 +08:00
Wesley F. Young
78ddf36e35 refactor: split types.ts into separate files 2024-05-15 17:02:24 +08:00
Wesley F. Young
d42734624d refactor: move checkSendMessage and handleForwardNode to separate files 2024-05-15 16:43:21 +08:00
Wesley F. Young
b5dbd9d59b refactor: rename function convertMessage2List to normalize 2024-05-15 16:33:15 +08:00
手瓜一十雪
bed3e1289b chore: sync core 2024-05-15 16:11:01 +08:00
手瓜一十雪
b11ca4e60e Merge branch 'main' into pr/23 2024-05-15 16:10:11 +08:00
Wesley F. Young
4fcf3aa2bd refactor: better type inferring; move createSendElement into another file 2024-05-15 14:53:58 +08:00
手瓜一十雪
dc39da8ca5 build: 1.3.5-beta15 2024-05-15 12:13:39 +08:00
手瓜一十雪
c10c87d28e build: 1.3.5-beta14 2024-05-15 12:10:52 +08:00
手瓜一十雪
c6fe6f1cc5 Merge pull request #22 from SherkeyXD/main
refactor: 重构 Onebot 配置格式,增强可读性
2024-05-15 12:07:46 +08:00
手瓜一十雪
1c2bbeb26d fix: webui renderer 2024-05-15 12:06:17 +08:00
SherkeyXD
17ed3692d0 refactor: webui 跟进 Onebot 配置重构 2024-05-15 11:43:20 +08:00
手瓜一十雪
966a00f41e chore: sync code 2024-05-15 11:40:25 +08:00
手瓜一十雪
fd8d8f89aa Merge branch 'main' into pr/22 2024-05-15 11:32:26 +08:00
手瓜一十雪
305bb74072 chore: sync core 2024-05-15 11:00:24 +08:00
手瓜一十雪
7f4dcdd134 Merge branch 'main' into pr/22 2024-05-15 10:59:46 +08:00
手瓜一十雪
aac37dcce1 docs: typo 2024-05-15 09:35:01 +08:00
手瓜一十雪
f539c662a5 docs: todo 2024-05-15 09:32:05 +08:00
SherkeyXD
c82f346dd0 refactor: 重构 Onebot 配置格式,增强可读性 2024-05-15 00:17:59 +08:00
手瓜一十雪
21b4a87837 docs: change 2024-05-14 23:05:01 +08:00
手瓜一十雪
ae73bcf24b chore: sync core 2024-05-14 22:56:24 +08:00
手瓜一十雪
2a3b56bde1 build: 1.3.5-beta12 2024-05-14 22:53:26 +08:00
手瓜一十雪
b8ebededd8 fix: Member Kick Event 2024-05-14 22:48:43 +08:00
手瓜一十雪
227c4c422c build: 1.3.5-beta11 2024-05-14 20:44:04 +08:00
手瓜一十雪
652bfb93cc docs: change 2024-05-14 17:24:17 +08:00
手瓜一十雪
c2278e3536 build: v1.3.5-beta10 2024-05-14 16:40:23 +08:00
手瓜一十雪
caa2fca4e8 refactor: http requests 2024-05-14 15:31:53 +08:00
手瓜一十雪
745cb0175c refactor: requests 2024-05-14 15:19:37 +08:00
手瓜一十雪
e5165a780f feat: 新增群荣誉信息 2024-05-14 14:08:57 +08:00
手瓜一十雪
b4b91af02b feat: 新增群荣誉信息 2024-05-14 14:02:29 +08:00
手瓜一十雪
5649ff9c2e chore: sync core 2024-05-14 11:38:39 +08:00
手瓜一十雪
5b4bf6c62a chore: sync core 2024-05-14 10:20:27 +08:00
手瓜一十雪
93cb662282 refactor: scipt and request 2024-05-14 10:16:30 +08:00
手瓜一十雪
00a8715e58 chore: sync core 2024-05-13 21:24:47 +08:00
手瓜一十雪
7ecd479b3e refactor: webapi http 2024-05-13 21:22:20 +08:00
手瓜一十雪
8fe7d3aaec refactor: sign music 2024-05-13 21:14:48 +08:00
手瓜一十雪
f32a693393 feat: 配置热重载 2024-05-13 21:07:19 +08:00
手瓜一十雪
17ebc01597 fix: linux script env 2024-05-13 18:39:59 +08:00
手瓜一十雪
827fb698e1 chore: version 2024-05-13 18:25:34 +08:00
手瓜一十雪
32bdf10fd2 refactor: check version 2024-05-13 18:13:52 +08:00
手瓜一十雪
b795e6c3d2 refactor: umami 2024-05-13 18:08:46 +08:00
手瓜一十雪
42ba524e4e refactor: HttpGetJson 2024-05-13 17:53:50 +08:00
手瓜一十雪
317c6d96e3 refactor: http_util 2024-05-13 17:41:10 +08:00
手瓜一十雪
3692d1499f refactor: boot script 2024-05-13 17:26:22 +08:00
手瓜一十雪
b21fbad8a3 refactor: boot scipt 2024-05-13 16:57:03 +08:00
手瓜一十雪
743334a68a refactor: version check 2024-05-13 16:46:40 +08:00
手瓜一十雪
951413eb38 docs: change 2024-05-13 16:44:30 +08:00
手瓜一十雪
32dcdef853 fix: build script 2024-05-13 16:43:16 +08:00
手瓜一十雪
34c9254d4a fix: typo 2024-05-13 16:39:24 +08:00
手瓜一十雪
14012a4668 Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2024-05-13 16:38:19 +08:00
手瓜一十雪
575debca63 fix: reboot on win 2024-05-13 16:37:48 +08:00
linyuchen
763cac8532 Merge remote-tracking branch 'origin/main' 2024-05-13 16:32:52 +08:00
linyuchen
43faacd7a7 doc: changelog history 2024-05-13 16:32:40 +08:00
Version
1d4e307e96 chore:version change 2024-05-13 08:09:02 +00:00
linyuchen
7f8933b0de doc: changelog 2024-05-13 16:05:35 +08:00
手瓜一十雪
81608ff025 docs:change 2024-05-13 13:56:36 +08:00
手瓜一十雪
db63675b8e fix: 修复重启 但win无法及时结束父进程 2024-05-13 13:44:23 +08:00
linyuchen
f74a83bc46 doc: changelog 2024-05-13 12:53:44 +08:00
linyuchen
bc1deba3e4 style: eslint 2024-05-13 12:53:30 +08:00
手瓜一十雪
d6113a8f0a fix: 尝试修复 但仍然无法使用reboot 2024-05-13 12:35:15 +08:00
手瓜一十雪
2062cd48ea fix: RebootNormol 2024-05-13 09:33:00 +08:00
手瓜一十雪
1c965ef515 feat: api Extend RebootNormol 2024-05-13 09:32:25 +08:00
linyuchen
58291b7156 update core 2024-05-13 08:52:55 +08:00
linyuchen
afd1648d80 refactor: GetUserDetailInfo auto map uid2uin 2024-05-13 08:41:48 +08:00
linyuchen
21814ffa9a Merge remote-tracking branch 'origin/main' 2024-05-13 01:28:23 +08:00
手瓜一十雪
9d3522da54 fix: OnGroupNotifiesUpdated catch getUserDetailInfo 2024-05-13 01:28:11 +08:00
手瓜一十雪
e07a76755e docs: todo 2024-05-12 23:22:53 +08:00
手瓜一十雪
ba46bcdeae docs: change 2024-05-12 23:21:48 +08:00
手瓜一十雪
8d7e44314c build: 1.3.5-beta8 2024-05-12 23:18:59 +08:00
手瓜一十雪
35a67498c7 Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2024-05-12 23:18:39 +08:00
手瓜一十雪
90dd934f95 feat: limit sendMsg 2024-05-12 23:18:27 +08:00
手瓜一十雪
4087045542 docs: change 2024-05-12 22:59:30 +08:00
手瓜一十雪
d11cef5907 build: 1.3.5-beta7 2024-05-12 22:57:32 +08:00
手瓜一十雪
76c91d226c build: 1.3.5-beta6 2024-05-12 22:23:27 +08:00
手瓜一十雪
c2b4dd2afd feat: Reboot Api(未经测试) 2024-05-12 22:19:03 +08:00
手瓜一十雪
25b39cb39a Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2024-05-12 22:12:13 +08:00
手瓜一十雪
35dcb7b88b feat: reboot util 2024-05-12 22:11:47 +08:00
手瓜一十雪
e5f7e7c26e docs: change 2024-05-12 22:05:07 +08:00
手瓜一十雪
c5c11fd6a6 docs: change 2024-05-12 22:04:49 +08:00
手瓜一十雪
8134083419 build: 1.3.5-beta5 2024-05-12 22:00:18 +08:00
linyuchen
a87e624198 build: fix fetch ua 2024-05-12 21:50:50 +08:00
linyuchen
e4c62d20b4 build: Fix http UA 2024-05-12 21:49:39 +08:00
手瓜一十雪
fa195d9e55 docs: change 2024-05-12 21:48:38 +08:00
linyuchen
5ef5773d23 update core 2024-05-12 21:48:30 +08:00
linyuchen
6eea52afdf Merge remote-tracking branch 'origin/main' 2024-05-12 21:46:27 +08:00
linyuchen
80e64af30f fix: Fetch miss ua 2024-05-12 21:46:13 +08:00
手瓜一十雪
563b6ddc36 refactor: rm SetGroupNotice 2024-05-12 21:24:22 +08:00
手瓜一十雪
c051ab9dc4 fix: rm exist GoCQHTTP_SendGroupNotice 2024-05-12 20:52:40 +08:00
linyuchen
87737a8bdb refactor: Remove random os hostname 2024-05-12 20:41:45 +08:00
linyuchen
94273d80b0 refactor: Random os hostname 2024-05-12 20:32:36 +08:00
手瓜一十雪
a08ec2a4bd docs: CHANGELOG 2024-05-12 18:41:28 +08:00
linyuchen
d246c556f4 update core.lib 2024-05-12 18:00:56 +08:00
linyuchen
65aa365e38 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/core.lib/src/adapters/NodeIDependsAdapter.js
#	src/core.lib/src/adapters/NodeIDispatcherAdapter.js
#	src/core.lib/src/adapters/NodeIGlobalAdapter.js
#	src/core.lib/src/adapters/index.js
#	src/core.lib/src/apis/file.js
#	src/core.lib/src/apis/friend.js
#	src/core.lib/src/apis/group.js
#	src/core.lib/src/apis/index.js
#	src/core.lib/src/apis/msg.js
#	src/core.lib/src/apis/sign.js
#	src/core.lib/src/apis/user.js
#	src/core.lib/src/apis/webapi.js
#	src/core.lib/src/core.js
#	src/core.lib/src/data.js
#	src/core.lib/src/entities/cache.js
#	src/core.lib/src/entities/constructor.js
#	src/core.lib/src/entities/group.js
#	src/core.lib/src/entities/index.js
#	src/core.lib/src/entities/msg.js
#	src/core.lib/src/entities/notify.js
#	src/core.lib/src/entities/user.js
#	src/core.lib/src/external/hook.js
#	src/core.lib/src/index.js
#	src/core.lib/src/listeners/NodeIKernelBuddyListener.js
#	src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js
#	src/core.lib/src/listeners/NodeIKernelGroupListener.js
#	src/core.lib/src/listeners/NodeIKernelLoginListener.js
#	src/core.lib/src/listeners/NodeIKernelMsgListener.js
#	src/core.lib/src/listeners/NodeIKernelProfileListener.js
#	src/core.lib/src/listeners/NodeIKernelRobotListener.js
#	src/core.lib/src/listeners/NodeIKernelSessionListener.js
#	src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js
#	src/core.lib/src/listeners/index.js
#	src/core.lib/src/services/common.js
#	src/core.lib/src/services/index.js
#	src/core.lib/src/sessionConfig.js
#	src/core.lib/src/utils/config.js
#	src/core.lib/src/utils/db.js
#	src/core.lib/src/utils/rkey.js
#	src/core.lib/src/wrapper.js
2024-05-12 18:00:42 +08:00
linyuchen
eeeae449b4 update core.lib 2024-05-12 18:00:23 +08:00
linyuchen
17c10a7ba2 update core.lib 2024-05-12 17:59:25 +08:00
手瓜一十雪
69f4383678 feat: try add reboot 2024-05-12 17:56:57 +08:00
linyuchen
07852a7295 fix: Log filename add milliseconds 2024-05-12 17:56:42 +08:00
手瓜一十雪
20b7e9b6b5 fix:build error 2024-05-12 16:59:03 +08:00
手瓜一十雪
75f43ccea4 chore: sync core 2024-05-12 16:56:07 +08:00
手瓜一十雪
59e5785e93 fix: build 2024-05-12 16:55:01 +08:00
手瓜一十雪
b38f52dba9 chore: sync core 2024-05-12 16:46:35 +08:00
手瓜一十雪
2a6b17a48e fix: try support win7 2024-05-12 16:21:04 +08:00
手瓜一十雪
a6c056a894 fix: SendGroupNotice Image Unlink 2024-05-12 15:49:53 +08:00
手瓜一十雪
5c3442a71f feat: 扩展SendGroupNotice 2024-05-12 15:27:02 +08:00
手瓜一十雪
390253242f build: 1.3.5-beta1 2024-05-12 15:21:35 +08:00
手瓜一十雪
9ab80fe1ac feat: Api SendGroupNotice 2024-05-12 12:07:51 +08:00
手瓜一十雪
91fdd09e7a docs: 2024-05-12 00:41:06 +08:00
手瓜一十雪
db5bd5c8a4 chore: 1.3.2 version 2024-05-11 14:42:49 +08:00
手瓜一十雪
ef94c2fe7c chore: remove debug code 2024-05-11 14:30:36 +08:00
手瓜一十雪
72a25ed8e1 docs: change fix image recv 2024-05-11 14:24:11 +08:00
手瓜一十雪
eb065e218f build: 1.3.2-beta7 2024-05-11 14:23:36 +08:00
手瓜一十雪
33426736fc docs: change 2024-05-11 13:51:01 +08:00
手瓜一十雪
896658d5ce build: 1.3.2-beta6 2024-05-11 13:45:41 +08:00
linyuchen
b14135ed72 refactor: Use remote rkey 2024-05-11 13:43:07 +08:00
linyuchen
a1baf2e32d Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/onebot11/action/extends/GetFriendWithCategory.ts
#	src/onebot11/action/types.ts
2024-05-11 13:42:05 +08:00
linyuchen
f9aa2d3bce refactor: Use remote rkey 2024-05-11 13:41:09 +08:00
手瓜一十雪
c95d0e0696 build: 1.3.2-beta5 2024-05-11 13:34:04 +08:00
手瓜一十雪
ad4b84d446 build: 1.3.2-beta3 2024-05-11 13:10:34 +08:00
手瓜一十雪
3e27d5fcb0 fix:roboot file 2024-05-11 13:06:35 +08:00
手瓜一十雪
48a100f49a feat: reboot-uncomplete 2024-05-11 10:51:07 +08:00
linyuchen
698649f981 Merge remote-tracking branch 'origin/main' 2024-05-11 10:45:22 +08:00
手瓜一十雪
780078c3aa build: 1.3.0-beta2 2024-05-11 10:15:08 +08:00
手瓜一十雪
4c25e4ddee build: 1.3.2-beta1 2024-05-10 23:52:18 +08:00
手瓜一十雪
c0a5ac2ac5 feat: ServerRkeyWrapper 2024-05-10 23:40:07 +08:00
student_2333
0435409870 fix 2024-05-10 21:41:06 +08:00
student_2333
c521269409 fix: custom music card content 2024-05-10 21:38:39 +08:00
linyuchen
1e252b7e4c Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/core.lib/src/adapters/NodeIDependsAdapter.js
#	src/core.lib/src/adapters/NodeIDispatcherAdapter.js
#	src/core.lib/src/adapters/NodeIGlobalAdapter.js
#	src/core.lib/src/adapters/index.js
#	src/core.lib/src/apis/file.js
#	src/core.lib/src/apis/friend.js
#	src/core.lib/src/apis/group.js
#	src/core.lib/src/apis/index.js
#	src/core.lib/src/apis/msg.js
#	src/core.lib/src/apis/sign.js
#	src/core.lib/src/apis/user.js
#	src/core.lib/src/apis/webapi.js
#	src/core.lib/src/core.js
#	src/core.lib/src/data.js
#	src/core.lib/src/entities/cache.js
#	src/core.lib/src/entities/constructor.js
#	src/core.lib/src/entities/group.js
#	src/core.lib/src/entities/index.js
#	src/core.lib/src/entities/msg.js
#	src/core.lib/src/entities/notify.js
#	src/core.lib/src/entities/user.js
#	src/core.lib/src/external/hook.js
#	src/core.lib/src/index.js
#	src/core.lib/src/listeners/NodeIKernelBuddyListener.js
#	src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js
#	src/core.lib/src/listeners/NodeIKernelGroupListener.js
#	src/core.lib/src/listeners/NodeIKernelLoginListener.js
#	src/core.lib/src/listeners/NodeIKernelMsgListener.js
#	src/core.lib/src/listeners/NodeIKernelProfileListener.js
#	src/core.lib/src/listeners/NodeIKernelRobotListener.js
#	src/core.lib/src/listeners/NodeIKernelSessionListener.js
#	src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js
#	src/core.lib/src/listeners/index.js
#	src/core.lib/src/services/common.js
#	src/core.lib/src/services/index.js
#	src/core.lib/src/sessionConfig.js
#	src/core.lib/src/utils/config.js
#	src/core.lib/src/utils/db.js
#	src/core.lib/src/wrapper.js
2024-05-10 21:35:49 +08:00
linyuchen
d72b1edc48 chore: build core.lib 2024-05-10 21:35:14 +08:00
手瓜一十雪
f7307e8e01 chore: sync core 2024-05-10 21:32:22 +08:00
手瓜一十雪
127905f04b docs: change 2024-05-10 20:29:37 +08:00
手瓜一十雪
261c6dabd5 feat: 扩展GetFriendCategory Api 2024-05-10 20:27:38 +08:00
手瓜一十雪
cae84bbf02 style: rename DataRuntime to WebUiDataRuntime 2024-05-10 17:55:29 +08:00
手瓜一十雪
cdb2bc52fa feat: add BuddyProfileLikeReq Type 2024-05-09 23:17:33 +08:00
手瓜一十雪
cd2972eee0 chore: sync core 2024-05-09 23:15:32 +08:00
手瓜一十雪
4036aa8d0e chore: version 2024-05-09 23:06:55 +08:00
194 changed files with 7704 additions and 2407 deletions

View File

@@ -5,7 +5,7 @@ root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
end_of_line = lf|crlf
insert_final_newline = true
# Matches multiple files with brace expansion notation
@@ -18,4 +18,4 @@ indent_style = space
indent_size = 2
# Unfortunately, EditorConfig doesn't support space configuration inside import braces directly.
# You'll need to rely on your linter/formatter like ESLint or Prettier for that.
# You'll need to rely on your linter/formatter like ESLint or Prettier for that.

View File

@@ -1 +1 @@
VITE_BUILD_TYPE = Production
VITE_BUILD_TYPE = Production

View File

@@ -1,9 +1,10 @@
module.exports = {
'env': {
'browser': true,
'es2021': true,
'node': true
},
'ignorePatterns': ['src/core/', 'src/core.lib/'],
'ignorePatterns': ['src/core/', 'src/core.lib/','src/proto/'],
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'

View File

@@ -121,7 +121,7 @@ jobs:
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Clone Changes Log
run: curl -o CHANGELOG.md https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/CHANGELOG.md
run: curl -o CHANGELOG.md https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/docs/changelogs/CHANGELOG.v${{ env.VERSION }}.md
- name: Create Release Draft and Upload Artifacts
uses: softprops/action-gh-release@v1

7
.gitignore vendored
View File

@@ -1,10 +1,11 @@
# Develop
node_modules/
package-lock.json
pnpm-lock.yaml
out/
dist/
src/core.lib/common/
test
/src/core.lib/common/
/localdebug/
# Editor
.vscode/*
@@ -13,4 +14,4 @@ test
# Build
*.db
checkVersion.sh
checkVersion.sh

View File

@@ -1,15 +0,0 @@
# v1.3.0
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
## 修复与优化
* 修复了一个导致每个图片都自动下载的 bug
* 再一次修复图片URL,支持 Win/Linux X64 获取Rkey暂时不支持arm64
* 修复了设置消息群聊与私聊已读接口
* 修复无法获取进群申请人员信息
## 新增与调整
* 再一次对获取Cookies与获取群成员优化分别添加30/60/120分钟缓存
* 新增 WebUi 支持远程配置设置 详细参考官方教程
* 新增二维码过期自动刷新功能
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,17 @@
# v1.3.3
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
## 修复与优化
* 尝试修复多开崩溃问题
* 修复群列表更新问题
* 修复兼容性问题支持Win7
* 修复下载 http 资源缺少UA
* 优化少量消息合并转发速度
* 修复加载群通知时出现 getUserDetailInfo timeout 导致程序崩溃
## 新增与调整
* 新增设置群公告 Api: /_send_group_notice
* 新增重启实现 包括重启快速登录/普通重启 副作用: 原进程 无法清理
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,18 @@
# v1.3.5
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
## 修复与优化
* 优化启动脚本
* 修复非管理时群成员减少事件上报 **无法获取操作者与操作类型**
* 修复快速重启进程清理问题
* 优化配置文件格式 支持自动更新配置 但仍然建议 **备份配置**
* 修复正向反向ws多个客户端周期多次心跳问题
## 新增与调整
* 支持WebUi热重载
* 新增启动输出WEBUI秘钥
* 新增群荣誉信息 /get_group_honor_info
* 支持获取群系统消息 /get_group_system_msg
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.3.6
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
## 修复与优化
* 修复戳一戳多次上报问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,15 @@
# v1.3.8
QQ Version: Windows 9.9.9-23873 / Linux 3.2.7-23361
## 修复与优化
* 优化打包后体积问题
* 修复QQ等级获取
* 兼容 9.7.x 版本换行符 统一为 \n
* 修复处理加群请求 字段异常情况
* 修复退群通知问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "1.3.0",
"version": "1.3.8",
"scripts": {
"watch:dev": "vite --mode development",
"watch:prod": "vite --mode production",
@@ -19,7 +19,6 @@
},
"devDependencies": {
"@log4js-node/log4js-api": "^1.0.2",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/cors": "^2.8.17",
@@ -37,7 +36,6 @@
"eslint-plugin-import": "^2.29.1",
"i": "^0.3.7",
"javascript-obfuscator": "^4.1.0",
"protobufjs-cli": "^1.1.2",
"rollup": "^4.13.2",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-obfuscator": "^1.1.0",
@@ -45,9 +43,11 @@
"vite": "^5.2.6",
"vite-plugin-cp": "^4.0.8",
"vite-plugin-dts": "^3.8.2",
"vite-tsconfig-paths": "^4.3.2"
"vite-tsconfig-paths": "^4.3.2",
"@protobuf-ts/plugin": "^2.9.4"
},
"dependencies": {
"ajv": "^8.13.0",
"commander": "^12.0.0",
"cors": "^2.8.5",
"express": "^5.0.0-beta.2",
@@ -55,6 +55,7 @@
"file-type": "^19.0.0",
"fluent-ffmpeg": "^2.1.2",
"image-size": "^1.1.1",
"json-schema-to-ts": "^3.1.0",
"log4js": "^6.9.1",
"qrcode-terminal": "^0.12.0",
"silk-wasm": "^3.3.4",

View File

@@ -1,13 +1,42 @@
let fs = require("fs");
let process = require("process")
const fs = require("fs");
const process = require("process");
console.log("[NapCat] [CheckVersion] 开始检测当前仓库版本...");
let currentVersion = require("../package.json").version;
let targetVersion = process.env.VERSION;
console.log("[NapCat] [CheckVersion] currentVersion:", currentVersion, " targetVersion:", targetVersion);
// fs.mkdirSync("./dist");
if (currentVersion === targetVersion) {
fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\necho \"CheckVersion Is Done\"")
} else {
let runscript = "sed -i 's/\"version\": \"" + currentVersion + "\"/\"version\": \"" + targetVersion + "\"/g' package.json";
fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.wumiao.wang\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main")
}
try {
const packageJson = require("../package.json");
const currentVersion = packageJson.version;
const targetVersion = process.env.VERSION;
console.log("[NapCat] [CheckVersion] currentVersion:", currentVersion, "targetVersion:", targetVersion);
// 验证 targetVersion 格式
if (!targetVersion || typeof targetVersion !== 'string') {
console.error("[NapCat] [CheckVersion] 目标版本格式不正确或未设置!");
return;
}
// 写入脚本文件的统一函数
const writeScriptToFile = (content) => {
fs.writeFileSync("./checkVersion.sh", content, { flag: 'w' });
console.log("[NapCat] [CheckVersion] checkVersion.sh 文件已更新。");
};
if (currentVersion === targetVersion) {
// 不需要更新版本,写入一个简单的脚本
const simpleScript = "#!/bin/bash\necho \"CheckVersion Is Done\"";
writeScriptToFile(simpleScript);
} else {
// 更新版本构建安全的sed命令
const safeScriptContent = `
#!/bin/bash
git config --global user.email "bot@test.wumiao.wang"
git config --global user.name "Version"
sed -i "s/\\\"version\\\": \\\"${currentVersion}\\\"/\\\"version\\\": \\\"${targetVersion}\\\"/g" package.json
git add .
git commit -m "chore:version change"
git push -u origin main`;
writeScriptToFile(safeScriptContent);
}
} catch (error) {
console.error("[NapCat] [CheckVersion] 检测过程中发生错误:", error);
}

View File

@@ -15,4 +15,4 @@ for %%a in ("!RetString!") do (
set "QQPath=!pathWithoutUninstall!QQ.exe"
set ELECTRON_RUN_AS_NODE=1
echo !QQPath!
"!QQPath!" ./napcat.cjs %*
"!QQPath!" ./napcat.mjs %*

View File

@@ -5,11 +5,39 @@ function Get-QQpath {
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe"
}
catch {
return "D:\QQ.exe"
throw "get QQ path error: $_"
}
}
function Select-QQPath {
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Application]::EnableVisualStyles()
$dialogTitle = "Select QQ.exe"
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
$filePicker.Title = $dialogTitle
$filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"
$filePicker.FilterIndex = 1
$null = $filePicker.ShowDialog()
if (-not ($filePicker.FileName)) {
throw "User did not select an .exe file."
}
return $filePicker.FileName
}
$params = $args -join " "
$QQpath = Get-QQpath
$Bootfile = Join-Path $PSScriptRoot "napcat.cjs"
Try {
$QQpath = Get-QQpath
}
Catch {
$QQpath = Select-QQPath
}
if (!(Test-Path $QQpath)) {
throw "provided QQ path is invalid: $QQpath"
}
$Bootfile = Join-Path $PSScriptRoot "napcat.mjs"
$env:ELECTRON_RUN_AS_NODE = 1
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$QQpath' $Bootfile $params}"
$commandInfo = Get-Command $QQpath -ErrorAction Stop
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& chcp 65001;& '$($commandInfo.Path)' $Bootfile $params}"

View File

@@ -14,4 +14,4 @@ for %%a in ("!RetString!") do (
set "QQPath=!pathWithoutUninstall!QQ.exe"
set ELECTRON_RUN_AS_NODE=1
echo !QQPath!
"!QQPath!" ./napcat.cjs %*
"!QQPath!" ./napcat.mjs %*

View File

@@ -5,11 +5,39 @@ function Get-QQpath {
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe"
}
catch {
return "D:\QQ.exe"
throw "get QQ path error: $_"
}
}
function Select-QQPath {
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Application]::EnableVisualStyles()
$dialogTitle = "Select QQ.exe"
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
$filePicker.Title = $dialogTitle
$filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"
$filePicker.FilterIndex = 1
$null = $filePicker.ShowDialog()
if (-not ($filePicker.FileName)) {
throw "User did not select an .exe file."
}
return $filePicker.FileName
}
$params = $args -join " "
$QQpath = Get-QQpath
$Bootfile = Join-Path $PSScriptRoot "napcat.cjs"
Try {
$QQpath = Get-QQpath
}
Catch {
$QQpath = Select-QQPath
}
if (!(Test-Path $QQpath)) {
throw "provided QQ path is invalid: $QQpath"
}
$Bootfile = Join-Path $PSScriptRoot "napcat.mjs"
$env:ELECTRON_RUN_AS_NODE = 1
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& '$QQpath' $Bootfile $params}"
$commandInfo = Get-Command $QQpath -ErrorAction Stop
Start-Process powershell -ArgumentList "-noexit", "-noprofile", "-command &{& '$($commandInfo.Path)' $Bootfile $params}"

View File

@@ -1,4 +1,21 @@
#!/bin/bash
SCRIPT_DIR=$(realpath $(dirname "${BASH_SOURCE[0]}"))
get_script_dir() {
local script_path="${1:-$0}"
local script_dir
script_path=$(readlink -f "$script_path")
script_dir=$(dirname "$script_path")
echo "$script_dir"
}
SCRIPT_DIR=$(get_script_dir)
export ELECTRON_RUN_AS_NODE=1
/opt/QQ/qq ${SCRIPT_DIR}/napcat.cjs $@
if ! [ -x /opt/QQ/qq ]; then
echo "Error: /opt/QQ/qq is not executable or does not exist." >&2
exit 1
fi
/opt/QQ/qq "${SCRIPT_DIR}/napcat.mjs" "$@"

View File

@@ -61,12 +61,12 @@ export abstract class HttpServerBase {
this.listen(port, host);
} catch (e: any) {
logError('HTTP服务启动失败', e.toString());
// llonebotError.httpServerError = "HTTP服务启动失败, " + e.toString()
// httpServerError = "HTTP服务启动失败, " + e.toString()
}
}
stop() {
// llonebotError.httpServerError = ""
// httpServerError = ""
if (this.server) {
this.server.close();
this.server = null;
@@ -114,8 +114,10 @@ export abstract class HttpServerBase {
this.server = this.expressAPP.listen(port, host, () => {
const info = `${this.name} started ${host}:${port}`;
log(info);
}).on('error', (err) => {
logError('HTTP服务启动失败', err.toString());
});
}catch (e: any) {
} catch (e: any) {
logError('HTTP服务启动失败, 请检查监听的ip地址和端口', e.stack.toString());
}
}

View File

@@ -30,9 +30,10 @@ export class WebsocketServerBase {
start(port: number, host: string = '') {
try {
this.ws = new WebSocketServer({
port ,
port,
host: '',
maxPayload: 1024 * 1024 * 1024
}).on('error', () => {
});
log(`ws服务启动成功, ${host}:${port}`);
} catch (e: any) {

View File

@@ -1,6 +1,12 @@
import path from 'node:path';
import fs from 'node:fs';
import { log, logDebug, logError } from '@/common/utils/log';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const configDir = path.resolve(__dirname, 'config');
fs.mkdirSync(configDir, { recursive: true });

View File

@@ -55,7 +55,7 @@ if (fs.existsSync(configVersionInfoPath)) {
export const qqVersionConfigInfo: QQVersionConfigInfo = _qqVersionConfigInfo;
export const qqPkgInfo: QQPkgInfo = require(pkgInfoPath);
export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toString());
// platform_type: 3,
// app_type: 4,
// app_version: '9.9.9-23159',

View File

@@ -1,7 +1,12 @@
import * as os from 'os';
import path from 'node:path';
import fs from 'fs';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export function getModuleWithArchName(moduleName: string) {
const systemPlatform = os.platform();
const cpuArch = os.arch();
@@ -14,6 +19,6 @@ export function cpModule(moduleName: string) {
try {
fs.copyFileSync(path.join(currentDir, fileName), path.join(currentDir, `${moduleName}.node`));
} catch (e) {
console.error(e);
}
}

View File

@@ -125,7 +125,7 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi
}
}
}
const fetchRes = await fetch(url, headers);
const fetchRes = await fetch(url, { headers });
if (!fetchRes.ok) throw new Error(`下载文件失败: ${fetchRes.statusText}`);
const blob = await fetchRes.blob();

View File

@@ -1,5 +1,13 @@
import crypto from 'node:crypto';
import path from 'node:path';
import fs from 'fs/promises';
import { log, logDebug } from './log';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export function sleep(ms: number): Promise<void> {
return new Promise(resolve => setTimeout(resolve, ms));
}
@@ -35,3 +43,137 @@ export function truncateString(obj: any, maxLength = 500) {
}
return obj;
}
/**
* 函数缓存装饰器根据方法名、参数、自定义key生成缓存键在一定时间内返回缓存结果
* @param ttl 超时时间,单位毫秒
* @param customKey 自定义缓存键前缀,可为空,防止方法名参数名一致时导致缓存键冲突
* @returns 处理后缓存或调用原方法的结果
*/
export function cacheFunc(ttl: number, customKey: string = '') {
const cache = new Map<string, { expiry: number; value: any }>();
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor {
const originalMethod = descriptor.value;
const className = target.constructor.name; // 获取类名
const methodName = propertyKey; // 获取方法名
descriptor.value = async function (...args: any[]) {
const cacheKey = `${customKey}${className}.${methodName}:${JSON.stringify(args)}`;
const cached = cache.get(cacheKey);
if (cached && cached.expiry > Date.now()) {
return cached.value;
} else {
const result = await originalMethod.apply(this, args);
cache.set(cacheKey, { value: result, expiry: Date.now() + ttl });
return result;
}
};
return descriptor;
};
}
export function isValidOldConfig(config: any) {
if (typeof config !== 'object') {
return false;
}
const requiredKeys = [
'httpHost', 'httpPort', 'httpPostUrls', 'httpSecret',
'wsHost', 'wsPort', 'wsReverseUrls', 'enableHttp',
'enableHttpHeart', 'enableHttpPost', 'enableWs', 'enableWsReverse',
'messagePostFormat', 'reportSelfMessage', 'enableLocalFile2Url',
'debug', 'heartInterval', 'token', 'musicSignUrl'
];
for (const key of requiredKeys) {
if (!(key in config)) {
return false;
}
}
if (!Array.isArray(config.httpPostUrls) || !Array.isArray(config.wsReverseUrls)) {
return false;
}
if (config.httpPostUrls.some((url: any) => typeof url !== 'string')) {
return false;
}
if (config.wsReverseUrls.some((url: any) => typeof url !== 'string')) {
return false;
}
if (typeof config.httpPort !== 'number' || typeof config.wsPort !== 'number' || typeof config.heartInterval !== 'number') {
return false;
}
if (
typeof config.enableHttp !== 'boolean' ||
typeof config.enableHttpHeart !== 'boolean' ||
typeof config.enableHttpPost !== 'boolean' ||
typeof config.enableWs !== 'boolean' ||
typeof config.enableWsReverse !== 'boolean' ||
typeof config.enableLocalFile2Url !== 'boolean' ||
typeof config.reportSelfMessage !== 'boolean'
) {
return false;
}
if (config.messagePostFormat !== 'array' && config.messagePostFormat !== 'string') {
return false;
}
return true;
}
export function migrateConfig(oldConfig: any) {
const newConfig = {
http: {
enable: oldConfig.enableHttp,
host: oldConfig.httpHost,
port: oldConfig.httpPort,
secret: oldConfig.httpSecret,
enableHeart: oldConfig.enableHttpHeart,
enablePost: oldConfig.enableHttpPost,
postUrls: oldConfig.httpPostUrls,
},
ws: {
enable: oldConfig.enableWs,
host: oldConfig.wsHost,
port: oldConfig.wsPort,
},
reverseWs: {
enable: oldConfig.enableWsReverse,
urls: oldConfig.wsReverseUrls,
},
debug: oldConfig.debug,
heartInterval: oldConfig.heartInterval,
messagePostFormat: oldConfig.messagePostFormat,
enableLocalFile2Url: oldConfig.enableLocalFile2Url,
musicSignUrl: oldConfig.musicSignUrl,
reportSelfMessage: oldConfig.reportSelfMessage,
token: oldConfig.token,
};
return newConfig;
}
// 升级旧的配置到新的
export async function UpdateConfig() {
const configFiles = await fs.readdir(path.join(__dirname, 'config'));
for (const file of configFiles) {
if (file.match(/^onebot11_\d+.json$/)) {
const CurrentConfig = JSON.parse(await fs.readFile(path.join(__dirname, 'config', file), 'utf8'));
if (isValidOldConfig(CurrentConfig)) {
log('正在迁移旧配置到新配置 File:', file);
const NewConfig = migrateConfig(CurrentConfig);
await fs.writeFile(path.join(__dirname, 'config', file), JSON.stringify(NewConfig, null, 2));
}
}
}
}
export function isEqual(obj1: any, obj2: any) {
if (obj1 === obj2) return true;
if (obj1 == null || obj2 == null) return false;
if (typeof obj1 !== 'object' || typeof obj2 !== 'object') return obj1 === obj2;
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);
if (keys1.length !== keys2.length) return false;
for (const key of keys1) {
if (!isEqual(obj1[key], obj2[key])) return false;
}
return true;
}

View File

@@ -2,6 +2,12 @@ import log4js, { Configuration } from 'log4js';
import { truncateString } from '@/common/utils/helper';
import path from 'node:path';
import { SelfInfo } from '@/core';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export enum LogLevel {
DEBUG = 'debug',
@@ -21,7 +27,8 @@ function getFormattedTimestamp() {
const hours = now.getHours().toString().padStart(2, '0');
const minutes = now.getMinutes().toString().padStart(2, '0');
const seconds = now.getSeconds().toString().padStart(2, '0');
return `${year}-${month}-${day}_${hours}-${minutes}-${seconds}`;
const milliseconds = now.getMilliseconds().toString().padStart(3, '0');
return `${year}-${month}-${day}_${hours}-${minutes}-${seconds}.${milliseconds}`;
}
const filename = `${getFormattedTimestamp()}.log`;

View File

@@ -1,5 +1,5 @@
// QQ等级换算
import { QQLevel } from '../../core/src/entities';
import { QQLevel } from '@/core/entities';
export function calcQQLevel(level: QQLevel) {
const { crownNum, sunNum, moonNum, starNum } = level;

View File

@@ -0,0 +1,44 @@
import { resolve } from 'node:path';
import { spawn } from 'node:child_process';
import { pid, ppid, exit } from 'node:process';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export async function rebootWithQuickLogin(uin: string) {
const batScript = resolve(__dirname, './napcat.bat');
const batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
const bashScript = resolve(__dirname, './napcat.sh');
if (process.platform === 'win32') {
const subProcess = spawn(`start ${batUtf8Script} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
subProcess.unref();
// 子父进程一起送走 有点效果
spawn('cmd /c taskkill /t /f /pid ' + pid.toString(), { detached: true, shell: true, stdio: 'ignore' });
spawn('cmd /c taskkill /t /f /pid ' + ppid.toString(), { detached: true, shell: true, stdio: 'ignore' });
} else if (process.platform === 'linux') {
const subProcess = spawn(`${bashScript} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
//还没兼容
subProcess.unref();
exit(0);
}
//exit(0);
}
export async function rebootWithNormolLogin() {
const batScript = resolve(__dirname, './napcat.bat');
const batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
const bashScript = resolve(__dirname, './napcat.sh');
if (process.platform === 'win32') {
const subProcess = spawn(`start ${batUtf8Script} `, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
subProcess.unref();
// 子父进程一起送走 有点效果
spawn('cmd /c taskkill /t /f /pid ' + pid.toString(), { detached: true, shell: true, stdio: 'ignore' });
spawn('cmd /c taskkill /t /f /pid ' + ppid.toString(), { detached: true, shell: true, stdio: 'ignore' });
} else if (process.platform === 'linux') {
const subProcess = spawn(`${bashScript}`, { detached: true, windowsHide: false, env: process.env, shell: true });
subProcess.unref();
exit(0);
}
}

View File

@@ -1,57 +1,87 @@
const https = require('node:https');
export async function HttpGetCookies(url: string): Promise<Map<string, string>> {
return new Promise((resolve, reject) => {
const result: Map<string, string> = new Map<string, string>();
const req = https.get(url, (res: any) => {
res.on('data', (data: any) => {
});
res.on('end', () => {
try {
const responseCookies = res.headers['set-cookie'];
for (const line of responseCookies) {
const parts = line.split(';');
const [key, value] = parts[0].split('=');
result.set(key, value);
}
} catch (e) {
import https from 'node:https';
import http from 'node:http';
export class RequestUtil {
// 适用于获取服务器下发cookies时获取仅GET
static async HttpsGetCookies(url: string): Promise<Map<string, string>> {
return new Promise<Map<string, string>>((resolve, reject) => {
const protocol = url.startsWith('https://') ? https : http;
protocol.get(url, (res) => {
const cookiesHeader = res.headers['set-cookie'];
if (!cookiesHeader) {
resolve(new Map<string, string>());
} else {
const cookiesMap = new Map<string, string>();
cookiesHeader.forEach((cookieStr) => {
cookieStr.split(';').forEach((cookiePart) => {
const trimmedPart = cookiePart.trim();
if (trimmedPart.includes('=')) {
const [key, value] = trimmedPart.split('=').map(part => part.trim());
cookiesMap.set(key, decodeURIComponent(value)); // 解码cookie值
}
});
});
resolve(cookiesMap);
}
resolve(result);
}).on('error', (error) => {
reject(error);
});
});
req.on('error', (error: any) => {
resolve(result);
// console.log(error)
});
req.end();
});
}
}
export async function HttpPostCookies(url: string): Promise<Map<string, string>> {
return new Promise((resolve, reject) => {
const result: Map<string, string> = new Map<string, string>();
const req = https.get(url, (res: any) => {
res.on('data', (data: any) => {
});
res.on('end', () => {
try {
const responseCookies = res.headers['set-cookie'];
for (const line of responseCookies) {
const parts = line.split(';');
const [key, value] = parts[0].split('=');
result.set(key, value);
// 请求和回复都是JSON data传原始内容 自动编码json
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
const option = new URL(url);
const protocol = url.startsWith('https://') ? https : http;
const options = {
hostname: option.hostname,
port: option.port,
path: option.href,
method: method,
headers: headers
};
return new Promise((resolve, reject) => {
const req = protocol.request(options, (res: any) => {
let responseBody = '';
res.on('data', (chunk: string | Buffer) => {
responseBody += chunk.toString();
});
res.on('end', () => {
try {
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
if (isJsonRet) {
const responseJson = JSON.parse(responseBody);
resolve(responseJson as T);
} else {
resolve(responseBody as T);
}
} else {
reject(new Error(`Unexpected status code: ${res.statusCode}`));
}
} catch (parseError) {
reject(parseError);
}
} catch (e) {
}
resolve(result);
});
});
});
req.on('error', (error: any) => {
resolve(result);
// console.log(error)
});
req.end();
});
req.on('error', (error: any) => {
reject(error);
});
if (method === 'POST' || method === 'PUT' || method === 'PATCH') {
if (isArgJson) {
req.write(JSON.stringify(data));
} else {
req.write(data);
}
}
req.end();
});
}
// 请求返回都是原始内容
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}) {
return this.HttpGetJson<string>(url, method, data, headers, false, false);
}
}

View File

@@ -1,10 +1,17 @@
import os from 'node:os';
import path from 'node:path';
// 缓解Win7设备兼容性问题
let osName: string;
try {
osName = os.hostname();
} catch (e) {
osName = 'NapCat'; // + crypto.randomUUID().substring(0, 4);
}
export const systemPlatform = os.platform();
export const cpuArch = os.arch();
export const systemVersion = os.release();
export const hostname = os.hostname();
export const hostname = osName;
const homeDir = os.homedir();
export const downloadsPath = path.join(homeDir, 'Downloads');
export const systemName = os.type();

31
src/common/utils/type.ts Normal file
View File

@@ -0,0 +1,31 @@
/**
* 运行时类型转换与检查类
*/
export class TypeCheck {
static isEmpty(value: any): boolean {
return value === null || value === undefined || value === '' ||
(Array.isArray(value) && value.length === 0) || (typeof value === 'object' && Object.keys(value).length === 0);
}
}
export class TypeConvert {
static toNumber(value: any): number {
const num = Number(value);
if (isNaN(num)) {
throw new Error(`无法将输入转换为数字: ${value}`);
}
return num;
}
static toString(value: any): string {
return String(value);
}
static toBoolean(value: any): boolean {
return Boolean(value);
}
static toArray(value: any): any[] {
return Array.isArray(value) ? value : [value];
}
}

View File

@@ -1,44 +0,0 @@
import { request } from 'node:https';
export function postLoginStatus() {
const req = request(
{
hostname: 'napcat.wumiao.wang',
path: '/api/send',
port: 443,
method: 'POST',
headers: {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0'
}
},
(res) => {
//let data = '';
res.on('data', (chunk) => {
//data += chunk;
});
res.on('error', (err) => {
});
res.on('end', () => {
//console.log('Response:', data);
});
}
);
req.on('error', (e) => {
// console.error('Request error:', e);
});
const StatesData = {
type: 'event',
payload: {
'website': '952bf82f-8f49-4456-aec5-e17db5f27f7e',
'hostname': 'napcat.demo.cn',
'screen': '1920x1080',
'language': 'zh-CN',
'title': 'OneBot.Login',
'url': '/login/onebot11/1.3.0',
'referrer': 'https://napcat.demo.cn/login?type=onebot11'
}
};
req.write(JSON.stringify(StatesData));
req.end();
}

View File

@@ -1,40 +1,21 @@
import { get as httpsGet } from 'node:https';
function requestMirror(url: string): Promise<string | undefined> {
return new Promise((resolve, reject) => {
httpsGet(url, (response) => {
let data = '';
response.on('data', (chunk) => {
data += chunk;
});
response.on('end', () => {
try {
const parsedData = JSON.parse(data);
const version = parsedData.version;
resolve(version);
} catch (error) {
// 解析失败或无法访问域名,跳过
resolve(undefined);
}
});
}).on('error', (error) => {
// 请求失败,跳过
resolve(undefined);
});
});
}
import { logDebug } from './log';
import { RequestUtil } from './request';
export async function checkVersion(): Promise<string> {
return new Promise(async (resolve, reject) => {
const MirrorList =
[
'https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
'https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
'https://cdn.jsdelivr.us/gh/NapNeko/NapCatQQ@main/package.json',
'https://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json'
];
[
'https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
'https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
'https://cdn.jsdelivr.us/gh/NapNeko/NapCatQQ@main/package.json',
'https://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json'
];
let version = undefined;
for (const url of MirrorList) {
const version = await requestMirror(url);
try {
version = (await RequestUtil.HttpGetJson<{ version: string }>(url)).version;
} catch (e) {
logDebug(e);
}
if (version) {
resolve(version);
}

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
var _0x20f3a3=_0xab98;function _0x199d(){var _0x242524=['867835orpyol','4820904NfmEhM','1317316mJNiBq','getGroupCode','450140cGAuXI','20613waHIrp','8oFAhmM','onMSFSsoError','204bbaYtT','4929841hhAgzJ','40438130xxOPUR','onMSFStatusChange','30YvLOjS'];_0x199d=function(){return _0x242524;};return _0x199d();}(function(_0x5cd7da,_0x2c9531){var _0x5a5abb=_0xab98,_0x5e2994=_0x5cd7da();while(!![]){try{var _0x25997b=-parseInt(_0x5a5abb(0x7f))/0x1+parseInt(_0x5a5abb(0x7a))/0x2*(-parseInt(_0x5a5abb(0x77))/0x3)+-parseInt(_0x5a5abb(0x81))/0x4+parseInt(_0x5a5abb(0x83))/0x5*(-parseInt(_0x5a5abb(0x7e))/0x6)+-parseInt(_0x5a5abb(0x7b))/0x7+parseInt(_0x5a5abb(0x78))/0x8*(-parseInt(_0x5a5abb(0x80))/0x9)+parseInt(_0x5a5abb(0x7c))/0xa;if(_0x25997b===_0x2c9531)break;else _0x5e2994['push'](_0x5e2994['shift']());}catch(_0x3ba8b5){_0x5e2994['push'](_0x5e2994['shift']());}}}(_0x199d,0x6f444));function _0xab98(_0x1f2e57,_0x4954bf){var _0x199dc8=_0x199d();return _0xab98=function(_0xab9882,_0x1ff8bb){_0xab9882=_0xab9882-0x77;var _0x3c4334=_0x199dc8[_0xab9882];return _0x3c4334;},_0xab98(_0x1f2e57,_0x4954bf);}export class DependsAdapter{[_0x20f3a3(0x7d)](_0x488b05,_0x25a4d5){}[_0x20f3a3(0x79)](_0x22e500){}[_0x20f3a3(0x82)](_0x35a823){}}
function _0x201b(){var _0x2b4fc4=['616tYGRlF','11XkhEXj','5tvHPqu','1TJnXlY','339600ywIDdH','10290RxANja','163276NVhEfu','onMSFSsoError','3179930XmQKaN','206637KEYrOU','1997744mrggFI','3695742kPmxRj','onMSFStatusChange'];_0x201b=function(){return _0x2b4fc4;};return _0x201b();}var _0xc0b873=_0x544b;(function(_0x332a1b,_0x2b8851){var _0x37a37a=_0x544b,_0x300a9a=_0x332a1b();while(!![]){try{var _0x3871d0=parseInt(_0x37a37a(0x1ca))/0x1*(parseInt(_0x37a37a(0x1cd))/0x2)+-parseInt(_0x37a37a(0x1c3))/0x3+-parseInt(_0x37a37a(0x1c4))/0x4+-parseInt(_0x37a37a(0x1c9))/0x5*(parseInt(_0x37a37a(0x1cb))/0x6)+parseInt(_0x37a37a(0x1cc))/0x7*(parseInt(_0x37a37a(0x1c7))/0x8)+parseInt(_0x37a37a(0x1c5))/0x9+-parseInt(_0x37a37a(0x1cf))/0xa*(-parseInt(_0x37a37a(0x1c8))/0xb);if(_0x3871d0===_0x2b8851)break;else _0x300a9a['push'](_0x300a9a['shift']());}catch(_0x9f9de4){_0x300a9a['push'](_0x300a9a['shift']());}}}(_0x201b,0x48e30));function _0x544b(_0x53730d,_0x8455a8){var _0x201bf2=_0x201b();return _0x544b=function(_0x544bc9,_0x5870b7){_0x544bc9=_0x544bc9-0x1c3;var _0x259aed=_0x201bf2[_0x544bc9];return _0x259aed;},_0x544b(_0x53730d,_0x8455a8);}export class DependsAdapter{[_0xc0b873(0x1c6)](_0x321ed0,_0x2594d7){}[_0xc0b873(0x1ce)](_0x186df0){}['getGroupCode'](_0x5bb868){}}

View File

@@ -1 +1 @@
var _0x3a826a=_0x50c0;(function(_0x58209d,_0x457985){var _0x4e7f7f=_0x50c0,_0x6c4dd4=_0x58209d();while(!![]){try{var _0x4cd98f=parseInt(_0x4e7f7f(0xb4))/0x1+parseInt(_0x4e7f7f(0xbe))/0x2*(parseInt(_0x4e7f7f(0xb6))/0x3)+parseInt(_0x4e7f7f(0xb8))/0x4+-parseInt(_0x4e7f7f(0xb7))/0x5*(-parseInt(_0x4e7f7f(0xbf))/0x6)+parseInt(_0x4e7f7f(0xb5))/0x7*(parseInt(_0x4e7f7f(0xbd))/0x8)+-parseInt(_0x4e7f7f(0xc0))/0x9+parseInt(_0x4e7f7f(0xbc))/0xa*(-parseInt(_0x4e7f7f(0xbb))/0xb);if(_0x4cd98f===_0x457985)break;else _0x6c4dd4['push'](_0x6c4dd4['shift']());}catch(_0x554e0f){_0x6c4dd4['push'](_0x6c4dd4['shift']());}}}(_0x5bbf,0x2ebf4));export class DispatcherAdapter{[_0x3a826a(0xb9)](_0x3985c1){}['dispatchCall'](_0x54a892){}[_0x3a826a(0xba)](_0x14b0dc){}}function _0x50c0(_0x165ac0,_0x11c111){var _0x5bbf85=_0x5bbf();return _0x50c0=function(_0x50c011,_0x2b2384){_0x50c011=_0x50c011-0xb4;var _0x466d72=_0x5bbf85[_0x50c011];return _0x466d72;},_0x50c0(_0x165ac0,_0x11c111);}function _0x5bbf(){var _0x52ff37=['1491652WULToR','dispatchRequest','dispatchCallWithJson','2235827oVrwUv','30KzTwbU','136WfIqPO','18IwgFaa','16722NvbGSt','3430728zqiFyT','75305fnfONu','131222lMZVkq','124578SapZzq','75GkdEQt'];_0x5bbf=function(){return _0x52ff37;};return _0x5bbf();}
var _0x21dadd=_0x40b8;(function(_0x10a18d,_0x4ae609){var _0x59df0d=_0x40b8,_0x3c56e6=_0x10a18d();while(!![]){try{var _0x31fdfa=-parseInt(_0x59df0d(0x1d3))/0x1*(parseInt(_0x59df0d(0x1ce))/0x2)+-parseInt(_0x59df0d(0x1cd))/0x3+parseInt(_0x59df0d(0x1ca))/0x4*(parseInt(_0x59df0d(0x1d2))/0x5)+parseInt(_0x59df0d(0x1d1))/0x6+-parseInt(_0x59df0d(0x1cf))/0x7+parseInt(_0x59df0d(0x1c8))/0x8+parseInt(_0x59df0d(0x1c9))/0x9;if(_0x31fdfa===_0x4ae609)break;else _0x3c56e6['push'](_0x3c56e6['shift']());}catch(_0x4cb115){_0x3c56e6['push'](_0x3c56e6['shift']());}}}(_0xf9fb,0xf41b6));function _0xf9fb(){var _0x334c3e=['3091416IKpRSJ','16814358eyEUFb','2152lpDUrA','dispatchCallWithJson','dispatchRequest','177744ZUzNoZ','4SufjbE','6013385nIUesq','dispatchCall','6169248PBFZfS','1105RuTOAO','741815dPjrCZ'];_0xf9fb=function(){return _0x334c3e;};return _0xf9fb();}function _0x40b8(_0x3760a9,_0x202153){var _0xf9fb6a=_0xf9fb();return _0x40b8=function(_0x40b897,_0x375ee2){_0x40b897=_0x40b897-0x1c8;var _0x416357=_0xf9fb6a[_0x40b897];return _0x416357;},_0x40b8(_0x3760a9,_0x202153);}export class DispatcherAdapter{[_0x21dadd(0x1cc)](_0x84c9ef){}[_0x21dadd(0x1d0)](_0x3a3b37){}[_0x21dadd(0x1cb)](_0x13176f){}}

View File

@@ -1 +1 @@
function _0x1594(_0x58c29b,_0x44acfd){var _0x4d164b=_0x4d16();return _0x1594=function(_0x1594d5,_0x1525fc){_0x1594d5=_0x1594d5-0x198;var _0x1c1815=_0x4d164b[_0x1594d5];return _0x1c1815;},_0x1594(_0x58c29b,_0x44acfd);}var _0x175dc0=_0x1594;(function(_0x1b3e3d,_0x5116e4){var _0x17fe4f=_0x1594,_0x36c543=_0x1b3e3d();while(!![]){try{var _0x6b9ab7=parseInt(_0x17fe4f(0x19f))/0x1*(-parseInt(_0x17fe4f(0x19d))/0x2)+parseInt(_0x17fe4f(0x1a4))/0x3+-parseInt(_0x17fe4f(0x19b))/0x4+parseInt(_0x17fe4f(0x1a6))/0x5*(-parseInt(_0x17fe4f(0x19a))/0x6)+parseInt(_0x17fe4f(0x1a8))/0x7+-parseInt(_0x17fe4f(0x1a2))/0x8*(-parseInt(_0x17fe4f(0x1a3))/0x9)+parseInt(_0x17fe4f(0x1a0))/0xa*(parseInt(_0x17fe4f(0x19c))/0xb);if(_0x6b9ab7===_0x5116e4)break;else _0x36c543['push'](_0x36c543['shift']());}catch(_0x42cd0b){_0x36c543['push'](_0x36c543['shift']());}}}(_0x4d16,0x2199c));function _0x4d16(){var _0x2d8922=['1419546mxJbdk','446484HoiEEq','44yRWgfw','2XpkqmL','onUpdateGeneralFlag','185044fHAWUd','749790oMOrHe','onShowErrUITips','149672nKQepV','18zczhAP','504006SYbXob','onInstallFinished','5OkkvYy','onGetSrvCalTime','1158836BJpeXd','onGetOfflineMsg','onLog'];_0x4d16=function(){return _0x2d8922;};return _0x4d16();}export class GlobalAdapter{[_0x175dc0(0x199)](..._0x3e4b79){}[_0x175dc0(0x1a7)](..._0x987740){}[_0x175dc0(0x1a1)](..._0x292841){}['fixPicImgType'](..._0x415237){}['getAppSetting'](..._0x3934ab){}[_0x175dc0(0x1a5)](..._0x486c90){}[_0x175dc0(0x19e)](..._0x1b54fe){}[_0x175dc0(0x198)](..._0x466ac8){}}
var _0x2492ef=_0x1abe;function _0xa491(){var _0x2bb6a5=['27uqoEkY','2089598vRULYp','36LYeTDM','356024gbmJKJ','3PHyUct','145FNmTJZ','onUpdateGeneralFlag','5052CIWyYs','548408moGsYL','onInstallFinished','9033040UUQDGg','637gngiNP','onLog','50688zTGKHr','2944403McpWQX'];_0xa491=function(){return _0x2bb6a5;};return _0xa491();}function _0x1abe(_0x4549ff,_0x4b4a51){var _0xa491a3=_0xa491();return _0x1abe=function(_0x1abe41,_0x161295){_0x1abe41=_0x1abe41-0x8e;var _0x5bad2b=_0xa491a3[_0x1abe41];return _0x5bad2b;},_0x1abe(_0x4549ff,_0x4b4a51);}(function(_0x573f0b,_0x24140a){var _0x31869e=_0x1abe,_0x15bcbe=_0x573f0b();while(!![]){try{var _0x3fb875=parseInt(_0x31869e(0x9b))/0x1+-parseInt(_0x31869e(0x99))/0x2*(-parseInt(_0x31869e(0x9c))/0x3)+-parseInt(_0x31869e(0x90))/0x4*(-parseInt(_0x31869e(0x8e))/0x5)+-parseInt(_0x31869e(0x96))/0x6*(-parseInt(_0x31869e(0x94))/0x7)+parseInt(_0x31869e(0x91))/0x8*(parseInt(_0x31869e(0x98))/0x9)+-parseInt(_0x31869e(0x93))/0xa+parseInt(_0x31869e(0x97))/0xb*(-parseInt(_0x31869e(0x9a))/0xc);if(_0x3fb875===_0x24140a)break;else _0x15bcbe['push'](_0x15bcbe['shift']());}catch(_0x373a28){_0x15bcbe['push'](_0x15bcbe['shift']());}}}(_0xa491,0xac40c));export class GlobalAdapter{[_0x2492ef(0x95)](..._0x4ed74a){}['onGetSrvCalTime'](..._0x447fbc){}['onShowErrUITips'](..._0xde50b7){}['fixPicImgType'](..._0x178050){}['getAppSetting'](..._0x567d8c){}[_0x2492ef(0x92)](..._0x55001b){}[_0x2492ef(0x8f)](..._0x1ee30a){}['onGetOfflineMsg'](..._0x1f1bbd){}}

View File

@@ -1 +1 @@
(function(_0x58f3c0,_0x4da555){var _0x533787=_0x47f5,_0x20e107=_0x58f3c0();while(!![]){try{var _0x1ecc8a=parseInt(_0x533787(0xa8))/0x1+parseInt(_0x533787(0xa5))/0x2+parseInt(_0x533787(0xaa))/0x3+-parseInt(_0x533787(0xab))/0x4+-parseInt(_0x533787(0xa7))/0x5+parseInt(_0x533787(0xa6))/0x6+-parseInt(_0x533787(0xa9))/0x7;if(_0x1ecc8a===_0x4da555)break;else _0x20e107['push'](_0x20e107['shift']());}catch(_0x45e3c2){_0x20e107['push'](_0x20e107['shift']());}}}(_0x4522,0xd51f1));export*from'./NodeIDependsAdapter';function _0x4522(){var _0x35130d=['1885660uvyoQv','2176134RkNlVH','10342008dNTcpR','1718020vzZflV','591401KlIhxJ','12755001GAlbSX','320913ocIGre'];_0x4522=function(){return _0x35130d;};return _0x4522();}export*from'./NodeIDispatcherAdapter';function _0x47f5(_0x5209cd,_0x119af6){var _0x4522f9=_0x4522();return _0x47f5=function(_0x47f51e,_0x4a3f72){_0x47f51e=_0x47f51e-0xa5;var _0x5460ce=_0x4522f9[_0x47f51e];return _0x5460ce;},_0x47f5(_0x5209cd,_0x119af6);}export*from'./NodeIGlobalAdapter';
function _0x5515(_0xec437d,_0x146dac){var _0x2b3ace=_0x2b3a();return _0x5515=function(_0x5515b6,_0x1905fc){_0x5515b6=_0x5515b6-0x197;var _0x51cfc8=_0x2b3ace[_0x5515b6];return _0x51cfc8;},_0x5515(_0xec437d,_0x146dac);}function _0x2b3a(){var _0x35c9e3=['104xSJCiU','6113220bQmOis','2398hRcVLl','830zXUMUy','275694JsBSyq','1394358SaGxEv','58KJmGWJ','390FGWDTp','9059ohCfEF','130002EnValB','12amPgvn','363069aaorcv'];_0x2b3a=function(){return _0x35c9e3;};return _0x2b3a();}(function(_0x37a1a6,_0x36c8b5){var _0x43754c=_0x5515,_0x42e5f5=_0x37a1a6();while(!![]){try{var _0x1f7df1=parseInt(_0x43754c(0x1a0))/0x1*(-parseInt(_0x43754c(0x19e))/0x2)+-parseInt(_0x43754c(0x19c))/0x3*(-parseInt(_0x43754c(0x1a2))/0x4)+-parseInt(_0x43754c(0x19f))/0x5*(-parseInt(_0x43754c(0x1a1))/0x6)+parseInt(_0x43754c(0x19d))/0x7+parseInt(_0x43754c(0x198))/0x8*(-parseInt(_0x43754c(0x197))/0x9)+parseInt(_0x43754c(0x19b))/0xa*(parseInt(_0x43754c(0x19a))/0xb)+-parseInt(_0x43754c(0x199))/0xc;if(_0x1f7df1===_0x36c8b5)break;else _0x42e5f5['push'](_0x42e5f5['shift']());}catch(_0x3e0445){_0x42e5f5['push'](_0x42e5f5['shift']());}}}(_0x2b3a,0xd869d));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';

View File

@@ -1,4 +1,4 @@
import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType, RawMessage } from '@/core/entities';
import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType } from '@/core/entities';
import { GeneralCallResult } from '@/core';
import * as fileType from 'file-type';
import { ISizeCalculationResult } from 'image-size/dist/types/interface';
@@ -15,7 +15,11 @@ export declare class NTQQFileApi {
}>;
static downloadMedia(msgId: string, chatType: ChatType, peerUid: string, elementId: string, thumbPath: string, sourcePath: string, timeout?: number, force?: boolean): Promise<string>;
static getImageSize(filePath: string): Promise<ISizeCalculationResult | undefined>;
static getImageUrl(msg: RawMessage): Promise<string>;
static getImageUrl(element: {
originImageUrl: any;
md5HexStr?: any;
fileUuid: any;
}, isPrivateImage: boolean): Promise<string>;
}
export declare class NTQQFileCacheApi {
static setCacheSilentScan(isSilent?: boolean): Promise<string>;

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
const _0x5d90db=_0x6e1f;(function(_0x24d76c,_0x417026){const _0x3934dc=_0x6e1f,_0x409f34=_0x24d76c();while(!![]){try{const _0x4cfa41=parseInt(_0x3934dc(0xed))/0x1*(-parseInt(_0x3934dc(0xef))/0x2)+parseInt(_0x3934dc(0x104))/0x3+parseInt(_0x3934dc(0x10a))/0x4*(parseInt(_0x3934dc(0x101))/0x5)+-parseInt(_0x3934dc(0xf8))/0x6+-parseInt(_0x3934dc(0xf2))/0x7*(-parseInt(_0x3934dc(0x10e))/0x8)+parseInt(_0x3934dc(0xf6))/0x9+-parseInt(_0x3934dc(0xf0))/0xa;if(_0x4cfa41===_0x417026)break;else _0x409f34['push'](_0x409f34['shift']());}catch(_0x4a3355){_0x409f34['push'](_0x409f34['shift']());}}}(_0x14c8,0x57274));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x14c8(){const _0x10b5d5=['184UFZlkf','friendUid','jkeAr','getFriends','开始获取好友列表','获取好友列表超时','613921sxNnsp','push','2ebyoMa','4830650gKakYu','sSrfY','81284CyEMsa','approvalFriendRequest','getBuddyService','nbjed','4085010bxbJes','getBuddyList','2314320zqoTdO','set','session','onBuddyListChange','mYCGi','LrPsD','bdKyy','rHmbs','bMJFx','91380bYbqII','reqTime','onLoginSuccess','2095116ctrGGY','QjJIv','handleFriendRequest','uid','获取好友列表完成','Kyync','92OSXxDD','buddyList','uin','addListener'];_0x14c8=function(){return _0x10b5d5;};return _0x14c8();}function _0x6e1f(_0xcd1082,_0x5d4c43){const _0x14c83d=_0x14c8();return _0x6e1f=function(_0x6e1ff1,_0x4f413c){_0x6e1ff1=_0x6e1ff1-0xea;let _0x4f990d=_0x14c83d[_0x6e1ff1];return _0x4f990d;},_0x6e1f(_0xcd1082,_0x5d4c43);}buddyListener[_0x5d90db(0xfb)]=_0x5744b0=>{const _0x82bd68=_0x5d90db,_0x227be2={'sSrfY':function(_0x431ad6,_0x5c27df){return _0x431ad6(_0x5c27df);}};for(const [_0x1d1533,_0xec0bdc]of buddyChangeTasks){_0x227be2[_0x82bd68(0xf1)](_0xec0bdc,_0x5744b0),buddyChangeTasks['delete'](_0x1d1533);}},setTimeout(()=>{const _0x2ed984=_0x5d90db;napCatCore[_0x2ed984(0x103)](()=>{const _0x44d31e=_0x2ed984;napCatCore[_0x44d31e(0x10d)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x5d90db(0xea)](_0x32de31=![]){const _0x48b08d=_0x5d90db,_0x288b91={'LrPsD':function(_0x442fab,_0x49808e){return _0x442fab(_0x49808e);},'bdKyy':_0x48b08d(0xec),'mYCGi':_0x48b08d(0x108),'rHmbs':_0x48b08d(0xeb),'QjJIv':function(_0x47ec31,_0x89c564,_0x200124){return _0x47ec31(_0x89c564,_0x200124);},'NvRGy':function(_0xc59d70){return _0xc59d70();}};return new Promise((_0x32f1e2,_0x331e5f)=>{const _0x1ad213=_0x48b08d,_0x4f7658={'nbjed':_0x288b91[_0x1ad213(0xfc)],'bMJFx':function(_0x13d235,_0x51359a){const _0x1e3247=_0x1ad213;return _0x288b91[_0x1e3247(0xfd)](_0x13d235,_0x51359a);},'Kyync':function(_0x527c70,_0x555e27,_0x4d031a){return _0x527c70(_0x555e27,_0x4d031a);},'jkeAr':_0x288b91[_0x1ad213(0xff)]};let _0x1317c0=![];_0x288b91[_0x1ad213(0x105)](setTimeout,()=>{const _0x2a78fe=_0x1ad213;!_0x1317c0&&(_0x288b91[_0x2a78fe(0xfd)](logDebug,_0x288b91[_0x2a78fe(0xfe)]),_0x331e5f('获取好友列表超时'));},0x1388);const _0x254032=[],_0x321bb8=_0x304f26=>{const _0x7f8575=_0x1ad213;for(const _0x440f1c of _0x304f26){for(const _0x40aae7 of _0x440f1c[_0x7f8575(0x10b)]){_0x254032[_0x7f8575(0xee)](_0x40aae7),uid2UinMap[_0x40aae7[_0x7f8575(0x107)]]=_0x40aae7[_0x7f8575(0x10c)];}}_0x1317c0=!![],logDebug(_0x4f7658[_0x7f8575(0xf5)],_0x254032),_0x4f7658[_0x7f8575(0x100)](_0x32f1e2,_0x254032);};buddyChangeTasks[_0x1ad213(0xf9)](_0x288b91['NvRGy'](randomUUID),_0x321bb8),napCatCore[_0x1ad213(0xfa)][_0x1ad213(0xf4)]()[_0x1ad213(0xf7)](_0x32de31)['then'](_0x1e963c=>{const _0x1bea4b=_0x1ad213;_0x4f7658[_0x1bea4b(0x109)](logDebug,_0x4f7658[_0x1bea4b(0x110)],_0x1e963c);});});}static async[_0x5d90db(0x106)](_0x15a498,_0x30ed3c){const _0x4a1120=_0x5d90db;napCatCore[_0x4a1120(0xfa)][_0x4a1120(0xf4)]()?.[_0x4a1120(0xf3)]({'friendUid':_0x15a498[_0x4a1120(0x10f)],'reqTime':_0x15a498[_0x4a1120(0x102)],'accept':_0x30ed3c});}}
function _0x5305(_0x4234a0,_0x3c14f5){const _0x12b425=_0x12b4();return _0x5305=function(_0x5305d9,_0x4fcec8){_0x5305d9=_0x5305d9-0xff;let _0x5d86b9=_0x12b425[_0x5305d9];return _0x5d86b9;},_0x5305(_0x4234a0,_0x3c14f5);}const _0x9aa6ca=_0x5305;(function(_0x4507b1,_0x1ecd56){const _0x3c79c8=_0x5305,_0x43ab69=_0x4507b1();while(!![]){try{const _0x313bf9=parseInt(_0x3c79c8(0x10e))/0x1*(-parseInt(_0x3c79c8(0x120))/0x2)+-parseInt(_0x3c79c8(0x115))/0x3+-parseInt(_0x3c79c8(0x108))/0x4+parseInt(_0x3c79c8(0x102))/0x5*(-parseInt(_0x3c79c8(0x10b))/0x6)+parseInt(_0x3c79c8(0x116))/0x7*(parseInt(_0x3c79c8(0x107))/0x8)+parseInt(_0x3c79c8(0x110))/0x9*(-parseInt(_0x3c79c8(0x11c))/0xa)+parseInt(_0x3c79c8(0x104))/0xb;if(_0x313bf9===_0x1ecd56)break;else _0x43ab69['push'](_0x43ab69['shift']());}catch(_0x17e0b7){_0x43ab69['push'](_0x43ab69['shift']());}}}(_0x12b4,0x6317a));function _0x12b4(){const _0x24ddd9=['getFriends','30sRXDSH','buddyList','approvalFriendRequest','41879jZSspG','KwlBp','9BWBHnQ','getBuddyService','uin','TlQkn','XOQdT','41973ZAqiMK','217aNacjU','NxjVh','onBuddyListChange','reqTime','YFSdW','UKDLL','7513290hmZyoK','push','yBqoA','getBuddyList','14qILoEw','获取好友列表超时','session','FCMqh','156795PvRDgG','then','19724859KipXUr','delete','set','4496mxCNhK','757764KIuNmI','uid'];_0x12b4=function(){return _0x24ddd9;};return _0x12b4();}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[_0x9aa6ca(0x118)]=_0x35016d=>{const _0x54e1db=_0x9aa6ca,_0x5cf8da={'FCMqh':function(_0x521182,_0x402dae){return _0x521182(_0x402dae);}};for(const [_0x29b0df,_0x2fec11]of buddyChangeTasks){_0x5cf8da[_0x54e1db(0x101)](_0x2fec11,_0x35016d),buddyChangeTasks[_0x54e1db(0x105)](_0x29b0df);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x9aa6ca(0x10a)](_0x5a84f2=![]){const _0x53c2d2=_0x9aa6ca,_0x53b045={'TlQkn':function(_0x5601d4,_0x414a5f){return _0x5601d4(_0x414a5f);},'NxjVh':_0x53c2d2(0xff),'RhLos':function(_0x13371f,_0x4cbc07,_0x5aa361){return _0x13371f(_0x4cbc07,_0x5aa361);},'rMiwi':'获取好友列表完成','yBqoA':'开始获取好友列表','XOQdT':function(_0x5482cb){return _0x5482cb();}};return new Promise((_0x218a32,_0x1ee5f9)=>{const _0x2a6b4e=_0x53c2d2,_0x38ad26={'YFSdW':function(_0xe6b8b6,_0x4bd8f6,_0x26d26d){return _0x53b045['RhLos'](_0xe6b8b6,_0x4bd8f6,_0x26d26d);},'KwlBp':_0x53b045['rMiwi'],'UKDLL':_0x53b045[_0x2a6b4e(0x11e)]};let _0x36b6b8=![];setTimeout(()=>{const _0x237265=_0x2a6b4e;!_0x36b6b8&&(_0x53b045[_0x237265(0x113)](logDebug,_0x53b045[_0x237265(0x117)]),_0x53b045[_0x237265(0x113)](_0x1ee5f9,_0x53b045[_0x237265(0x117)]));},0x1388);const _0x2a5711=[],_0xd76275=_0x149cc0=>{const _0x56f7a2=_0x2a6b4e;for(const _0x2855a3 of _0x149cc0){for(const _0x2d7aa2 of _0x2855a3[_0x56f7a2(0x10c)]){_0x2a5711[_0x56f7a2(0x11d)](_0x2d7aa2),uid2UinMap[_0x2d7aa2[_0x56f7a2(0x109)]]=_0x2d7aa2[_0x56f7a2(0x112)];}}_0x36b6b8=!![],_0x38ad26[_0x56f7a2(0x11a)](logDebug,_0x38ad26[_0x56f7a2(0x10f)],_0x2a5711),_0x218a32(_0x2a5711);};buddyChangeTasks[_0x2a6b4e(0x106)](_0x53b045[_0x2a6b4e(0x114)](randomUUID),_0xd76275),napCatCore[_0x2a6b4e(0x100)]['getBuddyService']()[_0x2a6b4e(0x11f)](_0x5a84f2)[_0x2a6b4e(0x103)](_0x3cca42=>{const _0x21773a=_0x2a6b4e;_0x38ad26['YFSdW'](logDebug,_0x38ad26[_0x21773a(0x11b)],_0x3cca42);});});}static async['handleFriendRequest'](_0x225a2e,_0x182c2b){const _0x200e2e=_0x9aa6ca;napCatCore[_0x200e2e(0x100)][_0x200e2e(0x111)]()?.[_0x200e2e(0x10d)]({'friendUid':_0x225a2e['friendUid'],'reqTime':_0x225a2e[_0x200e2e(0x119)],'accept':_0x182c2b});}}

View File

@@ -1,9 +1,18 @@
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
export declare class NTQQGroupApi {
static getGroups(forced?: boolean): Promise<Group[]>;
static getSingleScreenNotifies(num: number): Promise<GroupNotify[]>;
static getGroupMembers(groupQQ: string, num?: number): Promise<Map<string, GroupMember>>;
static getGroupNotifies(): Promise<void>;
static getGroupIgnoreNotifies(): Promise<void>;
static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise<import("@/core").GeneralCallResult & {
errCode: number;
picInfo?: {
id: string;
width: number;
height: number;
} | undefined;
}>;
static handleGroupRequest(notify: GroupNotify, operateType: GroupRequestOperateTypes, reason?: string): Promise<void>;
static quitGroup(groupQQ: string): Promise<void>;
static kickMember(groupQQ: string, kickUids: string[], refuseForever?: boolean, kickReason?: string): Promise<void>;
@@ -16,5 +25,9 @@ export declare class NTQQGroupApi {
static setMemberRole(groupQQ: string, memberUid: string, role: GroupMemberRole): Promise<void>;
static setGroupName(groupQQ: string, groupName: string): Promise<void>;
static setGroupTitle(groupQQ: string, uid: string, title: string): Promise<void>;
static publishGroupBulletin(groupQQ: string, title: string, content: string): void;
static publishGroupBulletin(groupQQ: string, content: string, picInfo?: {
id: string;
width: number;
height: number;
} | undefined, pinned?: number, confirmRequired?: number): Promise<import("@/core").GeneralCallResult>;
}

File diff suppressed because one or more lines are too long

View File

@@ -4,3 +4,5 @@ export * from './group';
export * from './msg';
export * from './user';
export * from './webapi';
export * from './sign';
export * from './system';

View File

@@ -1 +1 @@
function _0x2aaa(){var _0x43042b=['301592lbSBZw','86690FyvJbk','9iBNAOX','3306471SdIbmQ','340DWpBjj','7233EAgzRw','4537464FpTHSS','38145pavdea','166LvmfHD','473LCHAEB','15180dJtWDO'];_0x2aaa=function(){return _0x43042b;};return _0x2aaa();}(function(_0x4e25d9,_0x420476){var _0x564b42=_0x1300,_0x34aceb=_0x4e25d9();while(!![]){try{var _0x2f21fe=-parseInt(_0x564b42(0x160))/0x1+parseInt(_0x564b42(0x15e))/0x2*(-parseInt(_0x564b42(0x15b))/0x3)+parseInt(_0x564b42(0x15a))/0x4*(parseInt(_0x564b42(0x15d))/0x5)+parseInt(_0x564b42(0x15c))/0x6+-parseInt(_0x564b42(0x159))/0x7+parseInt(_0x564b42(0x156))/0x8*(parseInt(_0x564b42(0x158))/0x9)+parseInt(_0x564b42(0x157))/0xa*(-parseInt(_0x564b42(0x15f))/0xb);if(_0x2f21fe===_0x420476)break;else _0x34aceb['push'](_0x34aceb['shift']());}catch(_0x3e9455){_0x34aceb['push'](_0x34aceb['shift']());}}}(_0x2aaa,0x5d42b));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x1300(_0xeb4411,_0x25f97d){var _0x2aaac2=_0x2aaa();return _0x1300=function(_0x13009c,_0x2b83e9){_0x13009c=_0x13009c-0x156;var _0xdafa48=_0x2aaac2[_0x13009c];return _0xdafa48;},_0x1300(_0xeb4411,_0x25f97d);}export*from'./user';export*from'./webapi';
(function(_0x7df16d,_0x40dd30){var _0x27d423=_0x21b0,_0x470eb6=_0x7df16d();while(!![]){try{var _0x17b757=parseInt(_0x27d423(0x180))/0x1+parseInt(_0x27d423(0x17a))/0x2*(-parseInt(_0x27d423(0x17f))/0x3)+parseInt(_0x27d423(0x17b))/0x4*(parseInt(_0x27d423(0x17e))/0x5)+parseInt(_0x27d423(0x17c))/0x6+parseInt(_0x27d423(0x17d))/0x7+-parseInt(_0x27d423(0x182))/0x8+-parseInt(_0x27d423(0x181))/0x9;if(_0x17b757===_0x40dd30)break;else _0x470eb6['push'](_0x470eb6['shift']());}catch(_0x36afb2){_0x470eb6['push'](_0x470eb6['shift']());}}}(_0x5ca7,0x4fe29));function _0x21b0(_0x78f1a2,_0x4e7997){var _0x5ca7d6=_0x5ca7();return _0x21b0=function(_0x21b0ba,_0x43cf03){_0x21b0ba=_0x21b0ba-0x17a;var _0x48101f=_0x5ca7d6[_0x21b0ba];return _0x48101f;},_0x21b0(_0x78f1a2,_0x4e7997);}export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x5ca7(){var _0x2293bf=['38ffLWVH','32996SFbSjm','122262dEFbUA','4539220geklDp','130ZHPdEr','7725rxlmkO','373687VxywCO','6877107SWQLrY','933928YcZZvx'];_0x5ca7=function(){return _0x2293bf;};return _0x5ca7();}export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system';

File diff suppressed because one or more lines are too long

View File

@@ -10,8 +10,3 @@ export interface CustomMusicSignPostData {
image?: string;
singer?: string;
}
export declare class MusicSign {
private readonly url;
constructor(url: string);
sign(postData: CustomMusicSignPostData | IdMusicSignPostData): Promise<any>;
}

View File

@@ -1 +1 @@
var _0xf9ee2f=_0x1a53;function _0x1a53(_0x3901e0,_0x1b3559){var _0x30411d=_0x3041();return _0x1a53=function(_0x1a53f8,_0x27cf36){_0x1a53f8=_0x1a53f8-0x11b;var _0x590816=_0x30411d[_0x1a53f8];return _0x590816;},_0x1a53(_0x3901e0,_0x1b3559);}function _0x3041(){var _0x1c91aa=['application/json','json','1947612FUGSZi','1689758UvDRpj','url','392ZmOcmc','vVHnS','then','statusText','7316235TlDBqM','7448spIJaX','525628eDeiHn','fvEWg','stringify','835096bylraq','音乐消息生成成功','1027146RxGgmg','sign','20AbZWDO'];_0x3041=function(){return _0x1c91aa;};return _0x3041();}(function(_0x1469d4,_0x225d39){var _0x54c5ba=_0x1a53,_0xa7b16b=_0x1469d4();while(!![]){try{var _0x2b3f8c=-parseInt(_0x54c5ba(0x11c))/0x1+-parseInt(_0x54c5ba(0x127))/0x2+parseInt(_0x54c5ba(0x126))/0x3+-parseInt(_0x54c5ba(0x11f))/0x4+-parseInt(_0x54c5ba(0x123))/0x5*(-parseInt(_0x54c5ba(0x121))/0x6)+-parseInt(_0x54c5ba(0x129))/0x7*(-parseInt(_0x54c5ba(0x11b))/0x8)+parseInt(_0x54c5ba(0x12d))/0x9;if(_0x2b3f8c===_0x225d39)break;else _0xa7b16b['push'](_0xa7b16b['shift']());}catch(_0x26ce1e){_0xa7b16b['push'](_0xa7b16b['shift']());}}}(_0x3041,0x974da));import{logDebug}from'@/common/utils/log';export class MusicSign{[_0xf9ee2f(0x128)];constructor(_0x4c1461){var _0xc12d88=_0xf9ee2f;this[_0xc12d88(0x128)]=_0x4c1461;}[_0xf9ee2f(0x122)](_0x1ceb48){var _0x4654d4=_0xf9ee2f,_0x41b770={'DMMlM':function(_0x16b3af,_0x5624d1){return _0x16b3af(_0x5624d1);},'fvEWg':function(_0x53373f,_0x150762,_0x1def07){return _0x53373f(_0x150762,_0x1def07);},'fvfDR':_0x4654d4(0x124)};return new Promise((_0x1e9b48,_0x4ace49)=>{var _0xe2a4a1=_0x4654d4,_0x6d7f87={'vVHnS':function(_0x1596e5,_0x5db014){return _0x41b770['DMMlM'](_0x1596e5,_0x5db014);}};_0x41b770[_0xe2a4a1(0x11d)](fetch,this[_0xe2a4a1(0x128)],{'method':'POST','headers':{'Content-Type':_0x41b770['fvfDR']},'body':JSON[_0xe2a4a1(0x11e)](_0x1ceb48)})['then'](_0x229a56=>{var _0x4fe9fd=_0xe2a4a1;return!_0x229a56['ok']&&_0x6d7f87[_0x4fe9fd(0x12a)](_0x4ace49,_0x229a56[_0x4fe9fd(0x12c)]),_0x229a56[_0x4fe9fd(0x125)]();})[_0xe2a4a1(0x12b)](_0x1d12d7=>{var _0x5f5483=_0xe2a4a1;logDebug(_0x5f5483(0x120),_0x1d12d7),_0x6d7f87[_0x5f5483(0x12a)](_0x1e9b48,_0x1d12d7);})['catch'](_0x13ca27=>{_0x4ace49(_0x13ca27);});});}}
export{};

3
src/core.lib/src/apis/system.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export declare class NTQQSystemApi {
static hasOtherRunningQQProcess(): Promise<boolean>;
}

View File

@@ -0,0 +1 @@
var _0x2d57de=_0x17be;function _0x2236(){var _0x135738=['1RVJTVj','163942IFsQFB','hasOtherRunningQQProcess','3861180sIgVjq','820nPgqVw','5088141JvHGWm','34078dmmowL','1182lMRIxE','util','19119QeJMbA','8NYZhWn','76CaLxeM','4454961fZNRjv'];_0x2236=function(){return _0x135738;};return _0x2236();}function _0x17be(_0x4c7f7b,_0x8af039){var _0x223628=_0x2236();return _0x17be=function(_0x17be05,_0x265987){_0x17be05=_0x17be05-0x1bc;var _0x50b1c0=_0x223628[_0x17be05];return _0x50b1c0;},_0x17be(_0x4c7f7b,_0x8af039);}(function(_0x28b22a,_0x51488d){var _0x1f622b=_0x17be,_0x1782d7=_0x28b22a();while(!![]){try{var _0x31ff17=-parseInt(_0x1f622b(0x1c2))/0x1*(parseInt(_0x1f622b(0x1c3))/0x2)+parseInt(_0x1f622b(0x1be))/0x3*(parseInt(_0x1f622b(0x1c0))/0x4)+-parseInt(_0x1f622b(0x1c6))/0x5*(-parseInt(_0x1f622b(0x1bc))/0x6)+-parseInt(_0x1f622b(0x1c1))/0x7+-parseInt(_0x1f622b(0x1bf))/0x8*(-parseInt(_0x1f622b(0x1c7))/0x9)+parseInt(_0x1f622b(0x1c5))/0xa+-parseInt(_0x1f622b(0x1c8))/0xb;if(_0x31ff17===_0x51488d)break;else _0x1782d7['push'](_0x1782d7['shift']());}catch(_0x380f0b){_0x1782d7['push'](_0x1782d7['shift']());}}}(_0x2236,0x5d98a));import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x2d57de(0x1c4)](){var _0x8eb3e0=_0x2d57de;return napCatCore[_0x8eb3e0(0x1bd)]['hasOtherRunningQQProcess']();}}

View File

@@ -14,7 +14,9 @@ export declare class NTQQUserApi {
static getSelfInfo(): Promise<void>;
static getUserInfo(uid: string): Promise<void>;
static getUserDetailInfo(uid: string): Promise<User>;
static getPSkey(domainList: string[], cached?: boolean): Promise<any>;
static getPSkey(domainList: string[], cached?: boolean): Promise<{
[key: string]: string;
}>;
static getRobotUinRange(): Promise<Array<any>>;
static getSkey(cached?: boolean): Promise<string | undefined>;
}

File diff suppressed because one or more lines are too long

View File

@@ -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;
@@ -91,8 +99,7 @@ export declare class WebApi {
static getGroupMembers(GroupCode: string, cached?: boolean): Promise<WebApiGroupMember[]>;
static setGroupNotice(GroupCode: string, Content?: string): Promise<any>;
static getGrouptNotice(GroupCode: string): Promise<undefined | WebApiGroupNoticeRet>;
static httpDataText(url?: string, method?: string, data?: string, CookiesValue?: string): Promise<string>;
static httpDataJson<T>(url?: string, method?: string, data?: string, CookiesValue?: string): Promise<T>;
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

View File

@@ -1,5 +1,5 @@
/// <reference types="node" />
import { NodeIQQNTWrapperSession, NodeQQNTWrapperUtil } from '@/core/wrapper';
import { NodeIQQNTWrapperEngine, NodeIQQNTWrapperSession, NodeQQNTWrapperUtil } from '@/core/wrapper';
import { QuickLoginResult } from '@/core/services';
import { BuddyListener, GroupListener, MsgListener, ProfileListener } from '@/core/listeners';
export interface OnLoginSuccess {
@@ -8,9 +8,9 @@ export interface OnLoginSuccess {
export declare class NapCatCore {
readonly session: NodeIQQNTWrapperSession;
readonly util: NodeQQNTWrapperUtil;
private engine;
private loginService;
readonly engine: NodeIQQNTWrapperEngine;
private readonly loginListener;
private loginService;
private onLoginSuccessFuncList;
private proxyHandler;
constructor();

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo } from './entities';
import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities';
import { WebApiGroupMember } from '@/core/apis';
export declare const Credentials: {
Skey: string;
@@ -29,6 +29,7 @@ export declare function getGroupMember(groupQQ: string | number, memberUinOrUid:
export declare const uid2UinMap: Record<string, string>;
export declare function getUidByUin(uin: string): string | undefined;
export declare const tempGroupCodeMap: Record<string, string>;
export declare const rawFriends: Array<BuddyCategoryType>;
export declare const stat: {
packet_received: number;
packet_sent: number;

View File

@@ -1 +1 @@
const _0x474d1f=_0x3cc6;(function(_0x484c3c,_0x3e08b9){const _0x55a41e=_0x3cc6,_0x4b3d93=_0x484c3c();while(!![]){try{const _0x5db001=parseInt(_0x55a41e(0xaa))/0x1+-parseInt(_0x55a41e(0xab))/0x2+-parseInt(_0x55a41e(0xb4))/0x3+parseInt(_0x55a41e(0xb6))/0x4*(parseInt(_0x55a41e(0xb3))/0x5)+-parseInt(_0x55a41e(0xa9))/0x6*(parseInt(_0x55a41e(0xb5))/0x7)+-parseInt(_0x55a41e(0xb9))/0x8*(-parseInt(_0x55a41e(0xa8))/0x9)+parseInt(_0x55a41e(0xa2))/0xa;if(_0x5db001===_0x3e08b9)break;else _0x4b3d93['push'](_0x4b3d93['shift']());}catch(_0x2c3753){_0x4b3d93['push'](_0x4b3d93['shift']());}}}(_0x3cac,0x859f6));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';function _0x3cc6(_0x40c26d,_0x17c8ba){const _0x3cacdc=_0x3cac();return _0x3cc6=function(_0x3cc6f9,_0x4e9b5c){_0x3cc6f9=_0x3cc6f9-0xa2;let _0x17935a=_0x3cacdc[_0x3cc6f9];return _0x17935a;},_0x3cc6(_0x40c26d,_0x17c8ba);}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(_0x273c3d){const _0x262587=_0x3cc6;groups[_0x262587(0xa6)](_0x273c3d),groupMembers[_0x262587(0xa6)](_0x273c3d);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};function _0x3cac(){const _0x28ba2e=['27698720UhRqZu','forEach','getGroupMembers','find','delete','from','4392hXvAvr','2139378TPffZD','400267IDbVTT','2125254VKBPkE','set','toString','NapCat未能正常启动请检查日志查看错误','get','length','groupCode','getGroups','35iVIBKX','2873178OfRMfZ','21cfQpIN','80428MJJroX','values','kwcyn','5352PtfEqM','jUXHE'];_0x3cac=function(){return _0x28ba2e;};return _0x3cac();}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x474d1f(0xae)};export async function getFriend(_0x2cb391){const _0x35c43a=_0x474d1f,_0x33d6c5={'jUXHE':function(_0x202486,_0x16f9c7){return _0x202486(_0x16f9c7);}};_0x2cb391=_0x2cb391['toString']();if(_0x33d6c5[_0x35c43a(0xba)](isNumeric,_0x2cb391)){const _0x20d36d=Array[_0x35c43a(0xa7)](friends[_0x35c43a(0xb7)]());return _0x20d36d['find'](_0x36c139=>_0x36c139['uin']===_0x2cb391);}else return friends[_0x35c43a(0xaf)](_0x2cb391);}export async function getGroup(_0x403de7){const _0x42ebdd=_0x474d1f;let _0x49ba4d=groups[_0x42ebdd(0xaf)](_0x403de7[_0x42ebdd(0xad)]());if(!_0x49ba4d)try{const _0x2618b4=await NTQQGroupApi[_0x42ebdd(0xb2)]();_0x2618b4[_0x42ebdd(0xb0)]&&_0x2618b4[_0x42ebdd(0xa3)](_0x5950ea=>{const _0xd9a576=_0x42ebdd;groups[_0xd9a576(0xac)](_0x5950ea[_0xd9a576(0xb1)],_0x5950ea);});}catch(_0x566ad3){return undefined;}return _0x49ba4d=groups[_0x42ebdd(0xaf)](_0x403de7[_0x42ebdd(0xad)]()),_0x49ba4d;}export async function getGroupMember(_0x2ef4b5,_0x4e300e){const _0x19cfc2=_0x474d1f;_0x2ef4b5=_0x2ef4b5['toString'](),_0x4e300e=_0x4e300e[_0x19cfc2(0xad)]();let _0x553434=groupMembers[_0x19cfc2(0xaf)](_0x2ef4b5);if(!_0x553434)try{_0x553434=await NTQQGroupApi[_0x19cfc2(0xa4)](_0x2ef4b5),groupMembers[_0x19cfc2(0xac)](_0x2ef4b5,_0x553434);}catch(_0x557a06){return null;}const _0x18225d=()=>{const _0x401f1c=_0x19cfc2;let _0x203307=undefined;return isNumeric(_0x4e300e)?_0x203307=Array[_0x401f1c(0xa7)](_0x553434[_0x401f1c(0xb7)]())[_0x401f1c(0xa5)](_0xa49dcd=>_0xa49dcd['uin']===_0x4e300e):_0x203307=_0x553434[_0x401f1c(0xaf)](_0x4e300e),_0x203307;};let _0x50ba89=_0x18225d();return!_0x50ba89&&(_0x553434=await NTQQGroupApi[_0x19cfc2(0xa4)](_0x2ef4b5),_0x50ba89=_0x18225d()),_0x50ba89;}export const uid2UinMap={};export function getUidByUin(_0x1a604f){const _0xedf8ca=_0x474d1f,_0x4961e3={'kwcyn':function(_0x14a7b4,_0x3c4d98){return _0x14a7b4===_0x3c4d98;}};for(const _0x4b3e9b in uid2UinMap){if(_0x4961e3[_0xedf8ca(0xb8)](uid2UinMap[_0x4b3e9b],_0x1a604f))return _0x4b3e9b;}}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
const _0x2735a1=_0x7d0e;(function(_0x48b44f,_0x37f6d7){const _0x5bce74=_0x7d0e,_0x51e476=_0x48b44f();while(!![]){try{const _0x1e2289=-parseInt(_0x5bce74(0x79))/0x1*(parseInt(_0x5bce74(0x65))/0x2)+-parseInt(_0x5bce74(0x66))/0x3*(parseInt(_0x5bce74(0x67))/0x4)+-parseInt(_0x5bce74(0x78))/0x5*(-parseInt(_0x5bce74(0x6c))/0x6)+-parseInt(_0x5bce74(0x82))/0x7*(parseInt(_0x5bce74(0x6f))/0x8)+parseInt(_0x5bce74(0x76))/0x9+-parseInt(_0x5bce74(0x68))/0xa*(parseInt(_0x5bce74(0x7a))/0xb)+parseInt(_0x5bce74(0x72))/0xc*(parseInt(_0x5bce74(0x7c))/0xd);if(_0x1e2289===_0x37f6d7)break;else _0x51e476['push'](_0x51e476['shift']());}catch(_0x58b8bb){_0x51e476['push'](_0x51e476['shift']());}}}(_0x5ea6,0x9b181));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(_0x2de053){const _0x1809e5=_0x7d0e;groups[_0x1809e5(0x7d)](_0x2de053),groupMembers[_0x1809e5(0x7d)](_0x2de053);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};function _0x7d0e(_0x1bdf9b,_0x178f47){const _0x5ea60a=_0x5ea6();return _0x7d0e=function(_0x7d0e53,_0x46770b){_0x7d0e53=_0x7d0e53-0x65;let _0x1bd909=_0x5ea60a[_0x7d0e53];return _0x1bd909;},_0x7d0e(_0x1bdf9b,_0x178f47);}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x2735a1(0x6d)};export async function getFriend(_0x3d749c){const _0x591bcc=_0x2735a1,_0x532fc7={'XyglG':function(_0x2b13ca,_0xaaa7a6){return _0x2b13ca(_0xaaa7a6);}};_0x3d749c=_0x3d749c[_0x591bcc(0x71)]();if(_0x532fc7['XyglG'](isNumeric,_0x3d749c)){const _0x1e1444=Array[_0x591bcc(0x6a)](friends[_0x591bcc(0x6e)]());return _0x1e1444[_0x591bcc(0x80)](_0x428547=>_0x428547[_0x591bcc(0x7b)]===_0x3d749c);}else return friends[_0x591bcc(0x81)](_0x3d749c);}export async function getGroup(_0x3d54c4){const _0x3b5493=_0x2735a1;let _0x2d8287=groups[_0x3b5493(0x81)](_0x3d54c4['toString']());if(!_0x2d8287)try{const _0xf0d704=await NTQQGroupApi[_0x3b5493(0x73)]();_0xf0d704[_0x3b5493(0x75)]&&_0xf0d704[_0x3b5493(0x74)](_0x4fcdef=>{const _0x442155=_0x3b5493;groups[_0x442155(0x7e)](_0x4fcdef[_0x442155(0x77)],_0x4fcdef);});}catch(_0x4b7a1f){return undefined;}return _0x2d8287=groups[_0x3b5493(0x81)](_0x3d54c4[_0x3b5493(0x71)]()),_0x2d8287;}function _0x5ea6(){const _0x4198da=['NapCat未能正常启动请检查日志查看错误','values','5216264ciBYHK','cmOZj','toString','5172CMtJzt','getGroups','forEach','length','1677042uHaYVo','groupCode','4540885xEjwmt','25QNYZHR','4752refAfW','uin','60073IfEORt','delete','set','huywW','find','get','7HonMKK','74330naoPBe','1414317jqJcAN','4jmGLED','9220KMOAdx','getGroupMembers','from','maTjZ','6Mtqaty'];_0x5ea6=function(){return _0x4198da;};return _0x5ea6();}export async function getGroupMember(_0x472671,_0x2d725d){const _0x1f4735=_0x2735a1,_0x5a1111={'cmOZj':function(_0x2175f9,_0x2d953f){return _0x2175f9(_0x2d953f);},'maTjZ':function(_0x15c4c6){return _0x15c4c6();}};_0x472671=_0x472671[_0x1f4735(0x71)](),_0x2d725d=_0x2d725d['toString']();let _0x5f5d20=groupMembers[_0x1f4735(0x81)](_0x472671);if(!_0x5f5d20)try{_0x5f5d20=await NTQQGroupApi[_0x1f4735(0x69)](_0x472671),groupMembers['set'](_0x472671,_0x5f5d20);}catch(_0x2fae15){return null;}const _0x5825f5=()=>{const _0x3dd941=_0x1f4735;let _0x5ac10d=undefined;return _0x5a1111[_0x3dd941(0x70)](isNumeric,_0x2d725d)?_0x5ac10d=Array[_0x3dd941(0x6a)](_0x5f5d20[_0x3dd941(0x6e)]())[_0x3dd941(0x80)](_0x23692a=>_0x23692a[_0x3dd941(0x7b)]===_0x2d725d):_0x5ac10d=_0x5f5d20[_0x3dd941(0x81)](_0x2d725d),_0x5ac10d;};let _0x1abef0=_0x5a1111[_0x1f4735(0x6b)](_0x5825f5);return!_0x1abef0&&(_0x5f5d20=await NTQQGroupApi[_0x1f4735(0x69)](_0x472671),_0x1abef0=_0x5a1111[_0x1f4735(0x6b)](_0x5825f5)),_0x1abef0;}export const uid2UinMap={};export function getUidByUin(_0x124b9e){const _0x112722=_0x2735a1,_0x1de3c0={'huywW':function(_0x10247a,_0x262b4f){return _0x10247a===_0x262b4f;}};for(const _0x13a430 in uid2UinMap){if(_0x1de3c0[_0x112722(0x7f)](uid2UinMap[_0x13a430],_0x124b9e))return _0x13a430;}}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};

View File

@@ -1 +1 @@
function _0x4a73(_0x176af7,_0x1a4144){var _0x108d09=_0x108d();return _0x4a73=function(_0x4a731e,_0xf80ae7){_0x4a731e=_0x4a731e-0x115;var _0x3ff7ad=_0x108d09[_0x4a731e];return _0x3ff7ad;},_0x4a73(_0x176af7,_0x1a4144);}(function(_0x20bae8,_0x51024a){var _0x4d4b24=_0x4a73,_0x1df5f2=_0x20bae8();while(!![]){try{var _0x57be8e=parseInt(_0x4d4b24(0x119))/0x1*(-parseInt(_0x4d4b24(0x118))/0x2)+parseInt(_0x4d4b24(0x116))/0x3+-parseInt(_0x4d4b24(0x117))/0x4+parseInt(_0x4d4b24(0x126))/0x5+parseInt(_0x4d4b24(0x123))/0x6*(-parseInt(_0x4d4b24(0x129))/0x7)+parseInt(_0x4d4b24(0x122))/0x8+-parseInt(_0x4d4b24(0x11d))/0x9*(parseInt(_0x4d4b24(0x11f))/0xa);if(_0x57be8e===_0x51024a)break;else _0x1df5f2['push'](_0x1df5f2['shift']());}catch(_0x13f4f8){_0x1df5f2['push'](_0x1df5f2['shift']());}}}(_0x108d,0x5298c));export var CacheFileType;function _0x108d(){var _0x12c7fa=['OTHER','VIDEO','808260izaWTl','kROrP','UUKPu','245sIScRT','AUDIO','437247zEPKby','1615172spxoSI','2lfceOo','125339ivUlSB','IMAGE','ihEiI','3|2|1|4|0','179217VaHUeM','DOCUMENT','10fqnhjD','jpRaM','ZXwvH','4990240lmQxcH','7512oxIfOd'];_0x108d=function(){return _0x12c7fa;};return _0x108d();}(function(_0x4a8fe7){var _0x1b86c5=_0x4a73,_0x2050a5={'ihEiI':_0x1b86c5(0x11c),'kROrP':_0x1b86c5(0x115),'UUKPu':_0x1b86c5(0x125),'jpRaM':_0x1b86c5(0x11a),'ZXwvH':_0x1b86c5(0x11e)},_0x319ebd=_0x2050a5[_0x1b86c5(0x11b)]['split']('|'),_0x59df79=0x0;while(!![]){switch(_0x319ebd[_0x59df79++]){case'0':_0x4a8fe7[_0x4a8fe7[_0x1b86c5(0x124)]=0x4]=_0x1b86c5(0x124);continue;case'1':_0x4a8fe7[_0x4a8fe7[_0x2050a5['kROrP']]=0x2]=_0x2050a5[_0x1b86c5(0x127)];continue;case'2':_0x4a8fe7[_0x4a8fe7[_0x2050a5[_0x1b86c5(0x128)]]=0x1]=_0x2050a5[_0x1b86c5(0x128)];continue;case'3':_0x4a8fe7[_0x4a8fe7[_0x2050a5[_0x1b86c5(0x120)]]=0x0]='IMAGE';continue;case'4':_0x4a8fe7[_0x4a8fe7[_0x2050a5[_0x1b86c5(0x121)]]=0x3]=_0x1b86c5(0x11e);continue;}break;}}(CacheFileType||(CacheFileType={})));
(function(_0x575e0e,_0x630d){var _0x49b0d5=_0x3c77,_0x2e9cb2=_0x575e0e();while(!![]){try{var _0x139568=-parseInt(_0x49b0d5(0x88))/0x1+-parseInt(_0x49b0d5(0x80))/0x2+-parseInt(_0x49b0d5(0x85))/0x3*(parseInt(_0x49b0d5(0x83))/0x4)+-parseInt(_0x49b0d5(0x7f))/0x5+-parseInt(_0x49b0d5(0x7e))/0x6+-parseInt(_0x49b0d5(0x77))/0x7+parseInt(_0x49b0d5(0x82))/0x8;if(_0x139568===_0x630d)break;else _0x2e9cb2['push'](_0x2e9cb2['shift']());}catch(_0x289741){_0x2e9cb2['push'](_0x2e9cb2['shift']());}}}(_0x3e74,0xcd85b));function _0x3e74(){var _0x2d4076=['IMAGE','42dFWcZY','VIDEO','OTHER','473302lTxRxi','7445830SEvJrC','nsbYk','iEuVm','AUDIO','WwqPh','FIlAA','FhCbc','7158126cKzkon','313150kCdAmt','1367238sDWkUM','DOCUMENT','36583720IuYLDp','72824UIQUFn'];_0x3e74=function(){return _0x2d4076;};return _0x3e74();};function _0x3c77(_0x2257a2,_0x3052b1){var _0x3e74bf=_0x3e74();return _0x3c77=function(_0x3c77b8,_0x27fef7){_0x3c77b8=_0x3c77b8-0x77;var _0x5f3d51=_0x3e74bf[_0x3c77b8];return _0x5f3d51;},_0x3c77(_0x2257a2,_0x3052b1);}export var CacheFileType;(function(_0x218e74){var _0xc308c1=_0x3c77,_0x3e95a4={'nsbYk':'IMAGE','iEuVm':_0xc308c1(0x86),'FhCbc':_0xc308c1(0x7a),'FIlAA':_0xc308c1(0x81),'WwqPh':'OTHER'};_0x218e74[_0x218e74[_0x3e95a4[_0xc308c1(0x78)]]=0x0]=_0xc308c1(0x84),_0x218e74[_0x218e74[_0x3e95a4['iEuVm']]=0x1]=_0x3e95a4[_0xc308c1(0x79)],_0x218e74[_0x218e74[_0x3e95a4['FhCbc']]=0x2]=_0x3e95a4[_0xc308c1(0x7d)],_0x218e74[_0x218e74[_0x3e95a4[_0xc308c1(0x7c)]]=0x3]='DOCUMENT',_0x218e74[_0x218e74[_0xc308c1(0x87)]=0x4]=_0x3e95a4[_0xc308c1(0x7b)];}(CacheFileType||(CacheFileType={})));

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,7 @@ export interface Group {
groupStatus: 0;
memberRole: 2;
isTop: boolean;
toppedTimestamp: '0';
toppedTimestamp: string;
privilegeFlag: number;
isConf: boolean;
hasModifyConfGroupFace: boolean;
@@ -24,8 +24,8 @@ export interface Group {
groupCreditLevel: number;
groupFlagExt3: number;
groupOwnerId: {
'memberUin': string;
'memberUid': string;
memberUin: string;
memberUid: string;
};
}
export declare enum GroupMemberRole {

View File

@@ -1 +1 @@
function _0x204c(){var _0x1f7faf=['9wxEkQY','10353eAemMy','owner','219812fhrapW','2345wZzuzb','704008ursPKF','6812090OxESOL','UGBDc','1868VUaSoi','7yZhRZE','eomue','admin','164892ebLTvu','104690iTJmah','Rojuj'];_0x204c=function(){return _0x1f7faf;};return _0x204c();}(function(_0x1cc54f,_0x113489){var _0x49a02c=_0x24c6,_0x49e700=_0x1cc54f();while(!![]){try{var _0x48199e=-parseInt(_0x49a02c(0xc7))/0x1+-parseInt(_0x49a02c(0xcc))/0x2+-parseInt(_0x49a02c(0xca))/0x3+-parseInt(_0x49a02c(0xc2))/0x4*(parseInt(_0x49a02c(0xcd))/0x5)+-parseInt(_0x49a02c(0xc6))/0x6+parseInt(_0x49a02c(0xc3))/0x7*(-parseInt(_0x49a02c(0xce))/0x8)+-parseInt(_0x49a02c(0xc9))/0x9*(-parseInt(_0x49a02c(0xc0))/0xa);if(_0x48199e===_0x113489)break;else _0x49e700['push'](_0x49e700['shift']());}catch(_0x2df5de){_0x49e700['push'](_0x49e700['shift']());}}}(_0x204c,0x1f690));export var GroupMemberRole;function _0x24c6(_0x295792,_0xc820a){var _0x204c3b=_0x204c();return _0x24c6=function(_0x24c63d,_0x3dc32a){_0x24c63d=_0x24c63d-0xc0;var _0x57e55b=_0x204c3b[_0x24c63d];return _0x57e55b;},_0x24c6(_0x295792,_0xc820a);}(function(_0x1feeb7){var _0xec8b18=_0x24c6,_0x14b84c={'UGBDc':'normal','Rojuj':_0xec8b18(0xc5),'eomue':_0xec8b18(0xcb)};_0x1feeb7[_0x1feeb7[_0x14b84c[_0xec8b18(0xc1)]]=0x2]=_0x14b84c[_0xec8b18(0xc1)],_0x1feeb7[_0x1feeb7[_0x14b84c[_0xec8b18(0xc8)]]=0x3]=_0x14b84c[_0xec8b18(0xc8)],_0x1feeb7[_0x1feeb7[_0x14b84c[_0xec8b18(0xc4)]]=0x4]=_0x14b84c[_0xec8b18(0xc4)];}(GroupMemberRole||(GroupMemberRole={})));
function _0xb298(_0x541189,_0x4108a7){var _0x55906e=_0x5590();return _0xb298=function(_0xb298a9,_0x55eddd){_0xb298a9=_0xb298a9-0x1cf;var _0x26d1ee=_0x55906e[_0xb298a9];return _0x26d1ee;},_0xb298(_0x541189,_0x4108a7);}(function(_0x493093,_0x1cea70){var _0x26c178=_0xb298,_0x4e73a5=_0x493093();while(!![]){try{var _0x4cdd5e=parseInt(_0x26c178(0x1d0))/0x1*(parseInt(_0x26c178(0x1d4))/0x2)+-parseInt(_0x26c178(0x1dc))/0x3+parseInt(_0x26c178(0x1d7))/0x4*(parseInt(_0x26c178(0x1d9))/0x5)+parseInt(_0x26c178(0x1de))/0x6+parseInt(_0x26c178(0x1db))/0x7+-parseInt(_0x26c178(0x1d1))/0x8+parseInt(_0x26c178(0x1d2))/0x9*(-parseInt(_0x26c178(0x1d3))/0xa);if(_0x4cdd5e===_0x1cea70)break;else _0x4e73a5['push'](_0x4e73a5['shift']());}catch(_0x1a2c17){_0x4e73a5['push'](_0x4e73a5['shift']());}}}(_0x5590,0x495aa));function _0x5590(){var _0x44c664=['399009htGgTz','xxheT','1602600NLGZnY','kxlWs','12503oHsNqh','409400bWbePM','3447eBDOFi','28430hHTEdW','42LGzfPA','owner','admin','12eXqkWU','xSfOf','860785SDERqW','normal','3691597xEklGI'];_0x5590=function(){return _0x44c664;};return _0x5590();}export var GroupMemberRole;(function(_0x5dd3f1){var _0xe69db7=_0xb298,_0x2a9ace={'xSfOf':_0xe69db7(0x1da),'xxheT':_0xe69db7(0x1d6),'kxlWs':'owner'};_0x5dd3f1[_0x5dd3f1[_0x2a9ace[_0xe69db7(0x1d8)]]=0x2]=_0x2a9ace[_0xe69db7(0x1d8)],_0x5dd3f1[_0x5dd3f1[_0x2a9ace['xxheT']]=0x3]=_0x2a9ace[_0xe69db7(0x1dd)],_0x5dd3f1[_0x5dd3f1[_0x2a9ace[_0xe69db7(0x1cf)]]=0x4]=_0xe69db7(0x1d5);}(GroupMemberRole||(GroupMemberRole={})));

View File

@@ -1 +1 @@
(function(_0x39bbc9,_0x3e6ba0){var _0x56e959=_0x3b83,_0x1df56f=_0x39bbc9();while(!![]){try{var _0xfc26b5=parseInt(_0x56e959(0x12d))/0x1*(parseInt(_0x56e959(0x128))/0x2)+parseInt(_0x56e959(0x124))/0x3*(parseInt(_0x56e959(0x123))/0x4)+parseInt(_0x56e959(0x125))/0x5+-parseInt(_0x56e959(0x127))/0x6*(-parseInt(_0x56e959(0x12e))/0x7)+-parseInt(_0x56e959(0x126))/0x8*(-parseInt(_0x56e959(0x12b))/0x9)+parseInt(_0x56e959(0x12a))/0xa*(parseInt(_0x56e959(0x122))/0xb)+parseInt(_0x56e959(0x12c))/0xc*(-parseInt(_0x56e959(0x129))/0xd);if(_0xfc26b5===_0x3e6ba0)break;else _0x1df56f['push'](_0x1df56f['shift']());}catch(_0x4cc5c1){_0x1df56f['push'](_0x1df56f['shift']());}}}(_0x5b0a,0x9d183));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';function _0x3b83(_0x42aa80,_0x8dd778){var _0x5b0a5b=_0x5b0a();return _0x3b83=function(_0x3b83a2,_0x12202f){_0x3b83a2=_0x3b83a2-0x122;var _0x315591=_0x5b0a5b[_0x3b83a2];return _0x315591;},_0x3b83(_0x42aa80,_0x8dd778);}function _0x5b0a(){var _0x1c4b84=['5048950aCiqrm','55400RqVfLv','1914feBawE','14iUfhDF','962LuiHBa','1090vtOYwC','1386qhVdFS','458244rarPMn','44284UdiKYZ','266PMaXEB','75713igBErl','641400zIcqBZ','6vbIaSR'];_0x5b0a=function(){return _0x1c4b84;};return _0x5b0a();}
(function(_0x610bda,_0x36b670){var _0x4dd94e=_0xe97e,_0x318982=_0x610bda();while(!![]){try{var _0x480648=-parseInt(_0x4dd94e(0x14e))/0x1*(parseInt(_0x4dd94e(0x14b))/0x2)+-parseInt(_0x4dd94e(0x153))/0x3+-parseInt(_0x4dd94e(0x154))/0x4*(parseInt(_0x4dd94e(0x14c))/0x5)+-parseInt(_0x4dd94e(0x14d))/0x6+-parseInt(_0x4dd94e(0x152))/0x7+parseInt(_0x4dd94e(0x150))/0x8+parseInt(_0x4dd94e(0x151))/0x9*(parseInt(_0x4dd94e(0x14f))/0xa);if(_0x480648===_0x36b670)break;else _0x318982['push'](_0x318982['shift']());}catch(_0x50c875){_0x318982['push'](_0x318982['shift']());}}}(_0x5eac,0x4bfdf));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x5eac(){var _0x206033=['90lRkHNL','5ufVbqV','427074gsKIfY','4486suYqPD','10JxSiTs','3781920BCGVGp','8623305HyBbnE','400001dDkpLg','1704864IcCmmk','884568uhwWmC'];_0x5eac=function(){return _0x206033;};return _0x5eac();}function _0xe97e(_0x39257f,_0x12caf6){var _0x5eac34=_0x5eac();return _0xe97e=function(_0xe97e95,_0x22e357){_0xe97e95=_0xe97e95-0x14b;var _0x151438=_0x5eac34[_0xe97e95];return _0x151438;},_0xe97e(_0x39257f,_0x12caf6);}export*from'./constructor';

View File

@@ -2,7 +2,16 @@ import { GroupMemberRole } from './group';
export interface Peer {
chatType: ChatType;
peerUid: string;
guildId?: '';
guildId?: string;
}
export interface KickedOffLineInfo {
appId: number;
instanceId: number;
sameDevice: boolean;
tipsDesc: string;
tipsTitle: string;
kickedType: number;
securityKickedType: number;
}
export declare enum ElementType {
TEXT = 1,
@@ -18,7 +27,7 @@ export declare enum ElementType {
}
export interface SendTextElement {
elementType: ElementType.TEXT;
elementId: '';
elementId: string;
textElement: {
content: string;
atType: number;
@@ -29,7 +38,7 @@ export interface SendTextElement {
}
export interface SendPttElement {
elementType: ElementType.PTT;
elementId: '';
elementId: string;
pttElement: {
fileName: string;
filePath: string;
@@ -41,7 +50,7 @@ export interface SendPttElement {
voiceChangeType: number;
canConvert2Text: boolean;
waveAmplitudes: number[];
fileSubId: '';
fileSubId: string;
playState: number;
autoConvertText: number;
};
@@ -56,7 +65,7 @@ export declare enum PicSubType {
}
export interface SendPicElement {
elementType: ElementType.PIC;
elementId: '';
elementId: string;
picElement: {
md5HexStr: string;
fileSize: number | string;
@@ -75,7 +84,7 @@ export interface SendPicElement {
}
export interface SendReplyElement {
elementType: ElementType.REPLY;
elementId: '';
elementId: string;
replyElement: {
replayMsgSeq: string;
replayMsgId: string;
@@ -85,7 +94,7 @@ export interface SendReplyElement {
}
export interface SendFaceElement {
elementType: ElementType.FACE;
elementId: '';
elementId: string;
faceElement: FaceElement;
}
export interface SendMarketFaceElement {
@@ -93,39 +102,39 @@ export interface SendMarketFaceElement {
marketFaceElement: MarketFaceElement;
}
export interface FileElement {
'fileMd5'?: '';
'fileName': string;
'filePath': string;
fileMd5?: string;
fileName: string;
filePath: string;
fileSize: string;
'picHeight'?: number;
'picWidth'?: number;
'picThumbPath'?: Map<number, string>;
'file10MMd5'?: '';
'fileSha'?: '';
'fileSha3'?: '';
'fileUuid'?: '';
'fileSubId'?: '';
'thumbFileSize'?: number;
picHeight?: number;
picWidth?: number;
picThumbPath?: Map<number, string>;
file10MMd5?: string;
fileSha?: string;
fileSha3?: string;
fileUuid?: string;
fileSubId?: string;
thumbFileSize?: number;
fileBizId?: number;
}
export interface SendFileElement {
elementType: ElementType.FILE;
elementId: '';
elementId: string;
fileElement: FileElement;
}
export interface SendVideoElement {
elementType: ElementType.VIDEO;
elementId: '';
elementId: string;
videoElement: VideoElement;
}
export interface SendArkElement {
elementType: ElementType.ARK;
elementId: '';
elementId: string;
arkElement: ArkElement;
}
export interface SendMarkdownElement {
elementType: ElementType.MARKDOWN;
elementId: '';
elementId: string;
markdownElement: MarkdownElement;
}
export type SendMessageElement = SendTextElement | SendPttElement | SendPicElement | SendReplyElement | SendFaceElement | SendMarketFaceElement | SendFileElement | SendVideoElement | SendArkElement | SendMarkdownElement;
@@ -137,6 +146,7 @@ export declare enum AtType {
export declare enum ChatType {
friend = 1,
group = 2,
chatDevice = 8,//移动设备?
temp = 100
}
export interface PttElement {
@@ -232,49 +242,49 @@ export interface MarketFaceElement {
key: string;
}
export interface VideoElement {
'filePath': string;
'fileName': string;
'videoMd5'?: string;
'thumbMd5'?: string;
'fileTime'?: number;
'thumbSize'?: number;
'fileFormat'?: number;
'fileSize'?: string;
'thumbWidth'?: number;
'thumbHeight'?: number;
'busiType'?: 0;
'subBusiType'?: 0;
'thumbPath'?: Map<number, any>;
'transferStatus'?: 0;
'progress'?: 0;
'invalidState'?: 0;
'fileUuid'?: string;
'fileSubId'?: '';
'fileBizId'?: null;
'originVideoMd5'?: '';
'import_rich_media_context'?: null;
'sourceVideoCodecFormat'?: number;
filePath: string;
fileName: string;
videoMd5?: string;
thumbMd5?: string;
fileTime?: number;
thumbSize?: number;
fileFormat?: number;
fileSize?: string;
thumbWidth?: number;
thumbHeight?: number;
busiType?: 0;
subBusiType?: 0;
thumbPath?: Map<number, any>;
transferStatus?: 0;
progress?: 0;
invalidState?: 0;
fileUuid?: string;
fileSubId?: string;
fileBizId?: null;
originVideoMd5?: string;
import_rich_media_context?: null;
sourceVideoCodecFormat?: number;
}
export interface MarkdownElement {
content: string;
}
export interface InlineKeyboardElementRowButton {
'id': '';
'label': string;
'visitedLabel': string;
'style': 1;
'type': 2;
'clickLimit': 0;
'unsupportTips': '请升级新版手机QQ';
'data': string;
'atBotShowChannelList': false;
'permissionType': 2;
'specifyRoleIds': [];
'specifyTinyids': [];
'isReply': false;
'anchor': 0;
'enter': false;
'subscribeDataTemplateIds': [];
id: string;
label: string;
visitedLabel: string;
style: 1;
type: 2;
clickLimit: 0;
unsupportTips: string;
data: string;
atBotShowChannelList: boolean;
permissionType: number;
specifyRoleIds: [];
specifyTinyids: [];
isReply: false;
anchor: 0;
enter: false;
subscribeDataTemplateIds: [];
}
export interface InlineKeyboardElement {
rows: [
@@ -294,40 +304,40 @@ export declare enum TipGroupElementType {
ban = 8
}
export interface TipGroupElement {
'type': TipGroupElementType;
'role': 0;
'groupName': string;
'memberUid': string;
'memberNick': string;
'memberRemark': string;
'adminUid': string;
'adminNick': string;
'adminRemark': string;
'createGroup': null;
'memberAdd'?: {
'showType': 1;
'otherAdd': null;
'otherAddByOtherQRCode': null;
'otherAddByYourQRCode': null;
'youAddByOtherQRCode': null;
'otherInviteOther': null;
'otherInviteYou': null;
'youInviteOther': null;
type: TipGroupElementType;
role: 0;
groupName: string;
memberUid: string;
memberNick: string;
memberRemark: string;
adminUid: string;
adminNick: string;
adminRemark: string;
createGroup: null;
memberAdd?: {
showType: 1;
otherAdd: null;
otherAddByOtherQRCode: null;
otherAddByYourQRCode: null;
youAddByOtherQRCode: null;
otherInviteOther: null;
otherInviteYou: null;
youInviteOther: null;
};
'shutUp'?: {
'curTime': string;
'duration': string;
'admin': {
'uid': string;
'card': string;
'name': string;
'role': GroupMemberRole;
shutUp?: {
curTime: string;
duration: string;
admin: {
uid: string;
card: string;
name: string;
role: GroupMemberRole;
};
'member': {
'uid': string;
'card': string;
'name': string;
'role': GroupMemberRole;
member: {
uid: string;
card: string;
name: string;
role: GroupMemberRole;
};
};
}

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
function _0x3257(_0x22283c,_0x4f00ec){var _0x43251c=_0x4325();return _0x3257=function(_0x3257c1,_0x32db93){_0x3257c1=_0x3257c1-0x1d1;var _0x32fad8=_0x43251c[_0x3257c1];return _0x32fad8;},_0x3257(_0x22283c,_0x4f00ec);}(function(_0x16c142,_0x413b4c){var _0x3c989e=_0x3257,_0x9be4f8=_0x16c142();while(!![]){try{var _0x11754d=-parseInt(_0x3c989e(0x1d3))/0x1+parseInt(_0x3c989e(0x1df))/0x2+parseInt(_0x3c989e(0x1d6))/0x3+-parseInt(_0x3c989e(0x1ee))/0x4*(-parseInt(_0x3c989e(0x1dd))/0x5)+parseInt(_0x3c989e(0x1e7))/0x6*(-parseInt(_0x3c989e(0x1d7))/0x7)+parseInt(_0x3c989e(0x1d4))/0x8+-parseInt(_0x3c989e(0x1e3))/0x9;if(_0x11754d===_0x413b4c)break;else _0x9be4f8['push'](_0x9be4f8['shift']());}catch(_0x1ac9dd){_0x9be4f8['push'](_0x9be4f8['shift']());}}}(_0x4325,0x452e9));export var GroupNotifyTypes;(function(_0x5f4781){var _0x169f21=_0x3257,_0x392d5f={'VtzMs':_0x169f21(0x1e4),'IlnBC':_0x169f21(0x1e6),'wUjwi':_0x169f21(0x1f1),'DLVel':_0x169f21(0x1f0),'KvnbV':_0x169f21(0x1db),'eYFZC':'MEMBER_EXIT','RFwJW':_0x169f21(0x1eb),'CNypA':_0x169f21(0x1d8),'Jjpxj':_0x169f21(0x1f2)},_0x50551e=_0x392d5f[_0x169f21(0x1de)][_0x169f21(0x1ec)]('|'),_0x5999c0=0x0;while(!![]){switch(_0x50551e[_0x5999c0++]){case'0':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1e9)]]=0x7]=_0x169f21(0x1e6);continue;case'1':_0x5f4781[_0x5f4781[_0x392d5f['wUjwi']]=0x4]=_0x169f21(0x1f1);continue;case'2':_0x5f4781[_0x5f4781[_0x392d5f['DLVel']]=0xd]=_0x392d5f[_0x169f21(0x1e0)];continue;case'3':_0x5f4781[_0x5f4781[_0x169f21(0x1db)]=0x9]=_0x392d5f[_0x169f21(0x1ed)];continue;case'4':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1dc)]]=0xb]=_0x392d5f[_0x169f21(0x1dc)];continue;case'5':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1e2)]]=0x8]=_0x392d5f[_0x169f21(0x1e2)];continue;case'6':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1da)]]=0x1]=_0x392d5f['CNypA'];continue;case'7':_0x5f4781[_0x5f4781[_0x169f21(0x1f2)]=0xc]=_0x392d5f[_0x169f21(0x1ea)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x144246){var _0x2bb6dc=_0x3257,_0x56c4b5={'CGvUr':_0x2bb6dc(0x1ef),'oLQZQ':'WAIT_HANDLE','YRkGq':_0x2bb6dc(0x1e8),'zvcNT':_0x2bb6dc(0x1e1)};_0x144246[_0x144246[_0x56c4b5[_0x2bb6dc(0x1d1)]]=0x0]=_0x56c4b5[_0x2bb6dc(0x1d1)],_0x144246[_0x144246['WAIT_HANDLE']=0x1]=_0x56c4b5['oLQZQ'],_0x144246[_0x144246['APPROVE']=0x2]=_0x56c4b5[_0x2bb6dc(0x1d2)],_0x144246[_0x144246[_0x56c4b5[_0x2bb6dc(0x1e5)]]=0x3]=_0x56c4b5[_0x2bb6dc(0x1e5)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0xe5f9e5){var _0x4dd3ce=_0x3257,_0x35a12a={'pEunQ':_0x4dd3ce(0x1d5),'ebYqz':'reject'};_0xe5f9e5[_0xe5f9e5[_0x4dd3ce(0x1d5)]=0x1]=_0x35a12a['pEunQ'],_0xe5f9e5[_0xe5f9e5[_0x35a12a[_0x4dd3ce(0x1d9)]]=0x2]=_0x35a12a[_0x4dd3ce(0x1d9)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x4325(){var _0x2e3f4e=['2100708ZKBhOA','6|1|0|5|3|4|7|2','zvcNT','JOIN_REQUEST','375318XktzPQ','APPROVE','IlnBC','Jjpxj','ADMIN_SET','split','KvnbV','461204RaVoVQ','IGNORE','ADMIN_UNSET_OTHER','INVITED_JOIN','ADMIN_UNSET','CGvUr','YRkGq','20620DdNeVj','686552Sskzcp','approve','1122690LlPZmE','63kUFrfo','INVITE_ME','ebYqz','CNypA','KICK_MEMBER','eYFZC','10lmwBlq','VtzMs','819454faFDxy','DLVel','REJECT','RFwJW'];_0x4325=function(){return _0x2e3f4e;};return _0x4325();}
(function(_0x3fe2c2,_0x177afd){var _0x4e3d42=_0x2cdc,_0x17bce5=_0x3fe2c2();while(!![]){try{var _0x45ab12=-parseInt(_0x4e3d42(0x1b4))/0x1*(parseInt(_0x4e3d42(0x19e))/0x2)+parseInt(_0x4e3d42(0x1ad))/0x3*(parseInt(_0x4e3d42(0x1b1))/0x4)+parseInt(_0x4e3d42(0x1a6))/0x5*(parseInt(_0x4e3d42(0x1b0))/0x6)+parseInt(_0x4e3d42(0x19f))/0x7*(-parseInt(_0x4e3d42(0x1ab))/0x8)+parseInt(_0x4e3d42(0x1a3))/0x9*(parseInt(_0x4e3d42(0x195))/0xa)+-parseInt(_0x4e3d42(0x1ac))/0xb*(-parseInt(_0x4e3d42(0x1ae))/0xc)+-parseInt(_0x4e3d42(0x1a0))/0xd;if(_0x45ab12===_0x177afd)break;else _0x17bce5['push'](_0x17bce5['shift']());}catch(_0x49e233){_0x17bce5['push'](_0x17bce5['shift']());}}}(_0x4339,0x4458c));export var GroupNotifyTypes;function _0x2cdc(_0x347df2,_0x171085){var _0x4339d2=_0x4339();return _0x2cdc=function(_0x2cdc02,_0x557817){_0x2cdc02=_0x2cdc02-0x190;var _0x273284=_0x4339d2[_0x2cdc02];return _0x273284;},_0x2cdc(_0x347df2,_0x171085);}(function(_0x529fd7){var _0x1f3b7d=_0x2cdc,_0x1fec4d={'cbVxW':_0x1f3b7d(0x1a7),'leEdA':_0x1f3b7d(0x1af),'YklSr':_0x1f3b7d(0x193),'ENPCe':'MEMBER_EXIT','PLKak':'ADMIN_UNSET_OTHER','jQfna':_0x1f3b7d(0x1a1),'JRYjd':_0x1f3b7d(0x196),'BcEgu':_0x1f3b7d(0x1b5),'XKkst':_0x1f3b7d(0x19b)},_0x4954fb=_0x1fec4d[_0x1f3b7d(0x19c)]['split']('|'),_0x6882d7=0x0;while(!![]){switch(_0x4954fb[_0x6882d7++]){case'0':_0x529fd7[_0x529fd7[_0x1fec4d[_0x1f3b7d(0x197)]]=0x4]=_0x1fec4d['leEdA'];continue;case'1':_0x529fd7[_0x529fd7[_0x1fec4d[_0x1f3b7d(0x19a)]]=0xc]=_0x1fec4d[_0x1f3b7d(0x19a)];continue;case'2':_0x529fd7[_0x529fd7['MEMBER_EXIT']=0xb]=_0x1fec4d[_0x1f3b7d(0x1a9)];continue;case'3':_0x529fd7[_0x529fd7[_0x1f3b7d(0x1a5)]=0xd]=_0x1fec4d[_0x1f3b7d(0x1b3)];continue;case'4':_0x529fd7[_0x529fd7[_0x1fec4d[_0x1f3b7d(0x1a4)]]=0x8]=_0x1fec4d['jQfna'];continue;case'5':_0x529fd7[_0x529fd7[_0x1fec4d['JRYjd']]=0x9]=_0x1fec4d[_0x1f3b7d(0x190)];continue;case'6':_0x529fd7[_0x529fd7[_0x1fec4d[_0x1f3b7d(0x19d)]]=0x7]=_0x1f3b7d(0x1b5);continue;case'7':_0x529fd7[_0x529fd7[_0x1fec4d[_0x1f3b7d(0x1a8)]]=0x1]=_0x1fec4d[_0x1f3b7d(0x1a8)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x4339(){var _0x464d59=['cbVxW','BcEgu','4znipdY','7BBGTfV','446927nRwFPh','ADMIN_SET','fwlsN','119277WyHhpw','jQfna','ADMIN_UNSET_OTHER','4415qjAukh','7|0|6|4|5|2|1|3','XKkst','ENPCe','biNCI','3982696lHlnyp','11ZpguAY','1839StLElO','74424bijLaZ','INVITED_JOIN','3738kHaJfH','1820sNvoHf','PCgyl','PLKak','64543tkblBE','JOIN_REQUEST','JRYjd','DdIaO','approve','ADMIN_UNSET','BSnDM','80knpeyt','KICK_MEMBER','leEdA','WAIT_HANDLE','reject','YklSr','INVITE_ME'];_0x4339=function(){return _0x464d59;};return _0x4339();}export var GroupNotifyStatus;(function(_0x55c376){var _0x5e707d=_0x2cdc,_0x15cd8c={'DdIaO':'IGNORE','PCgyl':_0x5e707d(0x198),'BSnDM':'APPROVE','biNCI':'REJECT'};_0x55c376[_0x55c376['IGNORE']=0x0]=_0x15cd8c[_0x5e707d(0x191)],_0x55c376[_0x55c376[_0x15cd8c[_0x5e707d(0x1b2)]]=0x1]=_0x15cd8c['PCgyl'],_0x55c376[_0x55c376[_0x15cd8c[_0x5e707d(0x194)]]=0x2]=_0x15cd8c[_0x5e707d(0x194)],_0x55c376[_0x55c376[_0x15cd8c[_0x5e707d(0x1aa)]]=0x3]=_0x15cd8c['biNCI'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0xa87390){var _0x953ad1=_0x2cdc,_0xd3eaab={'VioIW':_0x953ad1(0x192),'fwlsN':_0x953ad1(0x199)};_0xa87390[_0xa87390[_0xd3eaab['VioIW']]=0x1]=_0xd3eaab['VioIW'],_0xa87390[_0xa87390[_0xd3eaab[_0x953ad1(0x1a2)]]=0x2]=_0xd3eaab['fwlsN'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));

View File

@@ -3,11 +3,27 @@ export declare enum Sex {
female = 2,
unknown = 255
}
export interface BuddyCategoryType {
categoryId: number;
categroyName: string;
categroyMbCount: number;
buddyList: User[];
}
export interface BuddyProfileLikeReq {
friendUids: string[];
basic: number;
vote: number;
favorite: number;
userProfile: number;
type: number;
start: number;
limit: number;
}
export interface QQLevel {
'crownNum': number;
'sunNum': number;
'moonNum': number;
'starNum': number;
crownNum: number;
sunNum: number;
moonNum: number;
starNum: number;
}
export interface User {
uid: string;
@@ -19,52 +35,52 @@ export interface User {
sex?: Sex;
qqLevel?: QQLevel;
qid?: string;
'birthday_year'?: number;
'birthday_month'?: number;
'birthday_day'?: number;
'topTime'?: string;
'constellation'?: number;
'shengXiao'?: number;
'kBloodType'?: number;
'homeTown'?: string;
'makeFriendCareer'?: number;
'pos'?: string;
'eMail'?: string;
'phoneNum'?: string;
'college'?: string;
'country'?: string;
'province'?: string;
'city'?: string;
'postCode'?: string;
'address'?: string;
'isBlock'?: boolean;
'isSpecialCareOpen'?: boolean;
'isSpecialCareZone'?: boolean;
'ringId'?: string;
'regTime'?: number;
birthday_year?: number;
birthday_month?: number;
birthday_day?: number;
topTime?: string;
constellation?: number;
shengXiao?: number;
kBloodType?: number;
homeTown?: string;
makeFriendCareer?: number;
pos?: string;
eMail?: string;
phoneNum?: string;
college?: string;
country?: string;
province?: string;
city?: string;
postCode?: string;
address?: string;
isBlock?: boolean;
isSpecialCareOpen?: boolean;
isSpecialCareZone?: boolean;
ringId?: string;
regTime?: number;
interest?: string;
'labels'?: string[];
'isHideQQLevel'?: number;
'privilegeIcon'?: {
'jumpUrl': string;
'openIconList': unknown[];
'closeIconList': unknown[];
labels?: string[];
isHideQQLevel?: number;
privilegeIcon?: {
jumpUrl: string;
openIconList: unknown[];
closeIconList: unknown[];
};
'photoWall'?: {
'picList': unknown[];
photoWall?: {
picList: unknown[];
};
'vipFlag'?: boolean;
'yearVipFlag'?: boolean;
'svipFlag'?: boolean;
'vipLevel'?: number;
'status'?: number;
'qidianMasterFlag'?: number;
'qidianCrewFlag'?: number;
'qidianCrewFlag2'?: number;
'extStatus'?: number;
'recommendImgFlag'?: number;
'disableEmojiShortCuts'?: number;
'pendantId'?: string;
vipFlag?: boolean;
yearVipFlag?: boolean;
svipFlag?: boolean;
vipLevel?: number;
status?: number;
qidianMasterFlag?: number;
qidianCrewFlag?: number;
qidianCrewFlag2?: number;
extStatus?: number;
recommendImgFlag?: number;
disableEmojiShortCuts?: number;
pendantId?: string;
}
export interface SelfInfo extends User {
online?: boolean;

View File

@@ -1 +1 @@
(function(_0x4b08f8,_0x1ca2db){var _0x44b880=_0x3a95,_0x3e8b44=_0x4b08f8();while(!![]){try{var _0xa36709=parseInt(_0x44b880(0x8d))/0x1*(parseInt(_0x44b880(0x91))/0x2)+parseInt(_0x44b880(0x92))/0x3+-parseInt(_0x44b880(0x95))/0x4+parseInt(_0x44b880(0x90))/0x5*(parseInt(_0x44b880(0x93))/0x6)+parseInt(_0x44b880(0x88))/0x7*(-parseInt(_0x44b880(0x8e))/0x8)+parseInt(_0x44b880(0x87))/0x9+-parseInt(_0x44b880(0x8f))/0xa;if(_0xa36709===_0x1ca2db)break;else _0x3e8b44['push'](_0x3e8b44['shift']());}catch(_0x534911){_0x3e8b44['push'](_0x3e8b44['shift']());}}}(_0xd8d8,0xe6bf3));export var Sex;function _0xd8d8(){var _0x43bc6b=['male','10450611HaAuQK','2058hFSwRi','RwTNC','FVSSn','EJoPt','female','1208499UwXQwI','528akARcZ','29586120bAEmwx','5RKhpWu','2IvnXQD','748095ImuOvU','11240472RqVlNc','unknown','2277200INtlvk'];_0xd8d8=function(){return _0x43bc6b;};return _0xd8d8();}function _0x3a95(_0x1cd0e4,_0x2265f6){var _0xd8d8d2=_0xd8d8();return _0x3a95=function(_0x3a9592,_0x383bcc){_0x3a9592=_0x3a9592-0x86;var _0x10090b=_0xd8d8d2[_0x3a9592];return _0x10090b;},_0x3a95(_0x1cd0e4,_0x2265f6);}(function(_0x438ee7){var _0x49b09f=_0x3a95,_0x2fddaf={'RwTNC':_0x49b09f(0x86),'FVSSn':_0x49b09f(0x8c),'EJoPt':_0x49b09f(0x94)};_0x438ee7[_0x438ee7[_0x2fddaf[_0x49b09f(0x89)]]=0x1]=_0x2fddaf[_0x49b09f(0x89)],_0x438ee7[_0x438ee7[_0x2fddaf[_0x49b09f(0x8a)]]=0x2]=_0x2fddaf[_0x49b09f(0x8a)],_0x438ee7[_0x438ee7[_0x2fddaf[_0x49b09f(0x8b)]]=0xff]=_0x2fddaf[_0x49b09f(0x8b)];}(Sex||(Sex={})));
function _0x316d(){var _0x449373=['1087872iVtaHB','GgcUP','LutGY','385TENAjo','1160qwNiDI','389984BckPbS','female','966420TtCbXz','1699686ieLwNX','6cVzElU','16236fvxNBx','2447711ttmzqt','ZrXQS','722GmHuUA'];_0x316d=function(){return _0x449373;};return _0x316d();}function _0x4f28(_0x72db32,_0x167fb4){var _0x316df4=_0x316d();return _0x4f28=function(_0x4f28b1,_0x11a628){_0x4f28b1=_0x4f28b1-0x1d5;var _0x16222a=_0x316df4[_0x4f28b1];return _0x16222a;},_0x4f28(_0x72db32,_0x167fb4);}(function(_0x5a10ac,_0x22fa85){var _0x1316fe=_0x4f28,_0x537b6=_0x5a10ac();while(!![]){try{var _0x59735c=-parseInt(_0x1316fe(0x1de))/0x1*(parseInt(_0x1316fe(0x1da))/0x2)+-parseInt(_0x1316fe(0x1d6))/0x3*(-parseInt(_0x1316fe(0x1db))/0x4)+parseInt(_0x1316fe(0x1e2))/0x5+-parseInt(_0x1316fe(0x1d5))/0x6+parseInt(_0x1316fe(0x1d8))/0x7+-parseInt(_0x1316fe(0x1e0))/0x8+parseInt(_0x1316fe(0x1d7))/0x9*(parseInt(_0x1316fe(0x1df))/0xa);if(_0x59735c===_0x22fa85)break;else _0x537b6['push'](_0x537b6['shift']());}catch(_0x5af758){_0x537b6['push'](_0x537b6['shift']());}}}(_0x316d,0xc9737));export var Sex;(function(_0x46a55d){var _0x4f687d=_0x4f28,_0x144aa9={'LutGY':'male','GgcUP':_0x4f687d(0x1e1),'ZrXQS':'unknown'};_0x46a55d[_0x46a55d[_0x144aa9[_0x4f687d(0x1dd)]]=0x1]=_0x144aa9['LutGY'],_0x46a55d[_0x46a55d[_0x144aa9[_0x4f687d(0x1dc)]]=0x2]=_0x144aa9[_0x4f687d(0x1dc)],_0x46a55d[_0x46a55d[_0x144aa9[_0x4f687d(0x1d9)]]=0xff]=_0x144aa9[_0x4f687d(0x1d9)];}(Sex||(Sex={})));

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(function(_0x679653,_0x2b39cc){var _0x34ecf4=_0x4dce,_0x5b696c=_0x679653();while(!![]){try{var _0x493f18=-parseInt(_0x34ecf4(0xb6))/0x1+-parseInt(_0x34ecf4(0xae))/0x2*(-parseInt(_0x34ecf4(0xb5))/0x3)+parseInt(_0x34ecf4(0xb4))/0x4+-parseInt(_0x34ecf4(0xaf))/0x5+parseInt(_0x34ecf4(0xb3))/0x6+parseInt(_0x34ecf4(0xb2))/0x7*(-parseInt(_0x34ecf4(0xb1))/0x8)+-parseInt(_0x34ecf4(0xb0))/0x9;if(_0x493f18===_0x2b39cc)break;else _0x5b696c['push'](_0x5b696c['shift']());}catch(_0x2edcf7){_0x5b696c['push'](_0x5b696c['shift']());}}}(_0x28cb,0x4da5c));import _0x1ea3c6 from'./wrapper';export*from'./adapters';function _0x28cb(){var _0x3704e1=['47166fSGFIS','2705196NXNBrs','542736izQjPG','105ZUERZT','223617PwrcEW','28224IUMbgl','11640ejtXpk','3494205ZaTsvN','176szAFot'];_0x28cb=function(){return _0x3704e1;};return _0x28cb();}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x4dce(_0x4501ba,_0x2cb7d0){var _0x28cb4d=_0x28cb();return _0x4dce=function(_0x4dcec7,_0x1186ab){_0x4dcec7=_0x4dcec7-0xae;var _0xbe9a4c=_0x28cb4d[_0x4dcec7];return _0xbe9a4c;},_0x4dce(_0x4501ba,_0x2cb7d0);}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x1ea3c6 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
function _0x2d09(){var _0x51a251=['3455110JbelSf','11EvEFui','1494fYLvlp','35567MDVZIR','1314rgghJK','12072MWpvSO','958eDUxhP','115644hUHJsn','220yMAnDB','12GONAJQ','640984dfvlpl','3130575TRttYg'];_0x2d09=function(){return _0x51a251;};return _0x2d09();}(function(_0x69fccf,_0x18d279){var _0x2b362e=_0x141c,_0x21e806=_0x69fccf();while(!![]){try{var _0x3a7f07=-parseInt(_0x2b362e(0x1bf))/0x1*(-parseInt(_0x2b362e(0x1bd))/0x2)+-parseInt(_0x2b362e(0x1c0))/0x3*(-parseInt(_0x2b362e(0x1c1))/0x4)+-parseInt(_0x2b362e(0x1c2))/0x5+-parseInt(_0x2b362e(0x1bb))/0x6*(-parseInt(_0x2b362e(0x1ba))/0x7)+parseInt(_0x2b362e(0x1bc))/0x8*(-parseInt(_0x2b362e(0x1c5))/0x9)+parseInt(_0x2b362e(0x1c3))/0xa*(-parseInt(_0x2b362e(0x1c4))/0xb)+parseInt(_0x2b362e(0x1be))/0xc;if(_0x3a7f07===_0x18d279)break;else _0x21e806['push'](_0x21e806['shift']());}catch(_0x5cd3d9){_0x21e806['push'](_0x21e806['shift']());}}}(_0x2d09,0x9dddc));import _0x5433ab from'./wrapper';function _0x141c(_0x450527,_0x58ea10){var _0x2d09d7=_0x2d09();return _0x141c=function(_0x141caf,_0x1ae962){_0x141caf=_0x141caf-0x1ba;var _0x2f80a1=_0x2d09d7[_0x141caf];return _0x2f80a1;},_0x141c(_0x450527,_0x58ea10);}export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5433ab as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';

View File

@@ -1,10 +1,5 @@
import { FriendRequestNotify, User } from '@/core/entities';
export type OnBuddyChangeParams = {
categoryId: number;
categroyName: string;
categroyMbCount: number;
buddyList: User[];
}[];
import { BuddyCategoryType, FriendRequestNotify } from '@/core/entities';
export type OnBuddyChangeParams = BuddyCategoryType[];
interface IBuddyListener {
onBuddyListChange(arg: OnBuddyChangeParams): void;
onBuddyInfoChange(arg: unknown): void;

View File

@@ -1 +1 @@
var _0x37c6dc=_0x3b87;(function(_0x62a04d,_0x7a1d79){var _0x5c7ed8=_0x3b87,_0x142ce5=_0x62a04d();while(!![]){try{var _0x5d1c7f=-parseInt(_0x5c7ed8(0x165))/0x1+-parseInt(_0x5c7ed8(0x15c))/0x2+-parseInt(_0x5c7ed8(0x161))/0x3+-parseInt(_0x5c7ed8(0x15d))/0x4*(parseInt(_0x5c7ed8(0x167))/0x5)+parseInt(_0x5c7ed8(0x160))/0x6+parseInt(_0x5c7ed8(0x16f))/0x7*(-parseInt(_0x5c7ed8(0x163))/0x8)+parseInt(_0x5c7ed8(0x166))/0x9*(parseInt(_0x5c7ed8(0x16a))/0xa);if(_0x5d1c7f===_0x7a1d79)break;else _0x142ce5['push'](_0x142ce5['shift']());}catch(_0x455e7f){_0x142ce5['push'](_0x142ce5['shift']());}}}(_0x3503,0xf1b8e));function _0x3b87(_0xed9e25,_0x214a5f){var _0x3503e6=_0x3503();return _0x3b87=function(_0x3b87d5,_0x422de1){_0x3b87d5=_0x3b87d5-0x15a;var _0x2176ae=_0x3503e6[_0x3b87d5];return _0x2176ae;},_0x3b87(_0xed9e25,_0x214a5f);}export class BuddyListener{[_0x37c6dc(0x170)](_0x43f57e){}['onAddMeSettingChanged'](_0x317c37){}[_0x37c6dc(0x15a)](_0x50befe){}[_0x37c6dc(0x168)](_0x2a90e4){}[_0x37c6dc(0x15f)](_0x1227ff){}[_0x37c6dc(0x16c)](_0x5d2d1e){}[_0x37c6dc(0x162)](_0x30a45f){}[_0x37c6dc(0x16d)](_0x533df4){}['onBuddyReqChange'](_0x5b950b){}[_0x37c6dc(0x169)](_0x2c4662){}['onCheckBuddySettingResult'](_0x36afeb){}[_0x37c6dc(0x15b)](_0x336e25){}[_0x37c6dc(0x16e)](_0x3127c7){}[_0x37c6dc(0x16b)](_0x5ad10f){}[_0x37c6dc(0x171)](_0x418e9d){}[_0x37c6dc(0x15e)](_0x5ac71b){}[_0x37c6dc(0x164)](_0x123b97){}}function _0x3503(){var _0x2bd405=['onDoubtBuddyReqUnreadNumChange','onBuddyInfoChange','onBuddyRemarkUpdated','onDoubtBuddyReqChange','3744391oFYPmm','onAddBuddyNeedVerify','onNickUpdated','onAvatarUrlUpdated','onDelBatchBuddyInfos','446956RtkhDk','18808EZhNAC','onSmartInfos','onBuddyDetailInfoChange','2866818IPzTaP','1662702NtyZMl','onBuddyListChange','16DAyVyx','onSpacePermissionInfos','1105494YEsueM','9NvvGsf','1645yGVcAR','onBlockChanged','onBuddyReqUnreadCntChange','50122810zCsmes'];_0x3503=function(){return _0x2bd405;};return _0x3503();}
var _0xf618ff=_0xd205;(function(_0x193f0f,_0x290b58){var _0x2b55ff=_0xd205,_0x3ab299=_0x193f0f();while(!![]){try{var _0x515898=-parseInt(_0x2b55ff(0x146))/0x1+-parseInt(_0x2b55ff(0x142))/0x2+parseInt(_0x2b55ff(0x151))/0x3*(-parseInt(_0x2b55ff(0x140))/0x4)+-parseInt(_0x2b55ff(0x155))/0x5+-parseInt(_0x2b55ff(0x145))/0x6*(-parseInt(_0x2b55ff(0x153))/0x7)+parseInt(_0x2b55ff(0x14c))/0x8*(-parseInt(_0x2b55ff(0x14b))/0x9)+-parseInt(_0x2b55ff(0x14d))/0xa*(-parseInt(_0x2b55ff(0x148))/0xb);if(_0x515898===_0x290b58)break;else _0x3ab299['push'](_0x3ab299['shift']());}catch(_0x469483){_0x3ab299['push'](_0x3ab299['shift']());}}}(_0x2f48,0x4bbd5));export class BuddyListener{['onAddBuddyNeedVerify'](_0x462404){}['onAddMeSettingChanged'](_0x1cb933){}[_0xf618ff(0x144)](_0x773995){}[_0xf618ff(0x14a)](_0x8d039c){}[_0xf618ff(0x147)](_0x71348){}[_0xf618ff(0x14f)](_0x186588){}[_0xf618ff(0x154)](_0x3ccae2){}[_0xf618ff(0x14e)](_0x1b3ac7){}[_0xf618ff(0x152)](_0x373dbc){}['onBuddyReqUnreadCntChange'](_0x39bc45){}[_0xf618ff(0x150)](_0x58ead8){}['onDelBatchBuddyInfos'](_0x9615c6){}[_0xf618ff(0x143)](_0x3dd5c4){}['onDoubtBuddyReqUnreadNumChange'](_0x4303da){}[_0xf618ff(0x141)](_0x546ed6){}['onSmartInfos'](_0x58eee7){}[_0xf618ff(0x149)](_0x2ef290){}}function _0xd205(_0x42fb93,_0x1c1402){var _0x2f48bf=_0x2f48();return _0xd205=function(_0xd20520,_0x3d00a0){_0xd20520=_0xd20520-0x140;var _0x4220c8=_0x2f48bf[_0xd20520];return _0x4220c8;},_0xd205(_0x42fb93,_0x1c1402);}function _0x2f48(){var _0x2314c9=['651ydeQGR','onBuddyListChange','765375bowWlv','743900LFuLLM','onNickUpdated','1158926PbLtFo','onDoubtBuddyReqChange','onAvatarUrlUpdated','8724CKMXBm','176074xeFQJR','onBuddyDetailInfoChange','33rQuRpx','onSpacePermissionInfos','onBlockChanged','1629CGYlkL','17912zGEkqx','6202760WfbPlI','onBuddyRemarkUpdated','onBuddyInfoChange','onCheckBuddySettingResult','6MovlIo','onBuddyReqChange'];_0x2f48=function(){return _0x2314c9;};return _0x2f48();}

View File

@@ -1 +1 @@
function _0x59c8(_0x5120b1,_0x3679c0){var _0x1fdb21=_0x1fdb();return _0x59c8=function(_0x59c8c1,_0x4e0255){_0x59c8c1=_0x59c8c1-0x81;var _0x300360=_0x1fdb21[_0x59c8c1];return _0x300360;},_0x59c8(_0x5120b1,_0x3679c0);}var _0x11ca3f=_0x59c8;(function(_0xfa6ba5,_0x39f83f){var _0x39f962=_0x59c8,_0x398357=_0xfa6ba5();while(!![]){try{var _0x39c42d=-parseInt(_0x39f962(0x8c))/0x1+-parseInt(_0x39f962(0x8a))/0x2+-parseInt(_0x39f962(0x86))/0x3+-parseInt(_0x39f962(0x8b))/0x4+parseInt(_0x39f962(0x83))/0x5+-parseInt(_0x39f962(0x85))/0x6*(-parseInt(_0x39f962(0x81))/0x7)+parseInt(_0x39f962(0x89))/0x8;if(_0x39c42d===_0x39f83f)break;else _0x398357['push'](_0x398357['shift']());}catch(_0x46e50b){_0x398357['push'](_0x398357['shift']());}}}(_0x1fdb,0x1fdc0));function _0x1fdb(){var _0x3738dc=['222532hOHKhJ','118077IzePtn','407064UICAVX','onSessionChanged','140265RqlVkS','onFileSearch','12NMBEuw','136122DIlTLI','onSessionListChanged','onFileStatusChanged','1865744ntkQrY','55990AGxpSD'];_0x1fdb=function(){return _0x3738dc;};return _0x1fdb();}export class KernelFileAssistantListener{[_0x11ca3f(0x88)](..._0x53a30b){}[_0x11ca3f(0x87)](..._0x4432e1){}[_0x11ca3f(0x82)](..._0x56ba18){}['onFileListChanged'](..._0x80b647){}[_0x11ca3f(0x84)](..._0x4a33e9){}}
function _0x46ea(){var _0x5ba0c6=['7LUZHcy','808GNJAIB','onFileSearch','17355240bQSdnw','onSessionListChanged','220SuOPrN','onSessionChanged','2392605qpQRsx','18138soWnAN','1805826aPCljL','730851ibFNMR','onFileStatusChanged','53230CVZXWS','4wezmfc','31905PrbcHV','90ygVakj'];_0x46ea=function(){return _0x5ba0c6;};return _0x46ea();}var _0x4f0f07=_0x5587;(function(_0xbed386,_0xe660ca){var _0x289945=_0x5587,_0x2ecd3b=_0xbed386();while(!![]){try{var _0x443333=-parseInt(_0x289945(0x1ca))/0x1*(-parseInt(_0x289945(0x1c5))/0x2)+parseInt(_0x289945(0x1c4))/0x3+-parseInt(_0x289945(0x1c2))/0x4*(-parseInt(_0x289945(0x1c9))/0x5)+parseInt(_0x289945(0x1c6))/0x6*(parseInt(_0x289945(0x1cd))/0x7)+parseInt(_0x289945(0x1ce))/0x8*(-parseInt(_0x289945(0x1cb))/0x9)+parseInt(_0x289945(0x1cc))/0xa*(parseInt(_0x289945(0x1c7))/0xb)+-parseInt(_0x289945(0x1c0))/0xc;if(_0x443333===_0xe660ca)break;else _0x2ecd3b['push'](_0x2ecd3b['shift']());}catch(_0x19007d){_0x2ecd3b['push'](_0x2ecd3b['shift']());}}}(_0x46ea,0x7d7ae));function _0x5587(_0xcd83ea,_0x2a921e){var _0x46ea5e=_0x46ea();return _0x5587=function(_0x55871c,_0x21ec2f){_0x55871c=_0x55871c-0x1c0;var _0x942891=_0x46ea5e[_0x55871c];return _0x942891;},_0x5587(_0xcd83ea,_0x2a921e);}export class KernelFileAssistantListener{[_0x4f0f07(0x1c8)](..._0x43bb8e){}[_0x4f0f07(0x1c1)](..._0x69a704){}[_0x4f0f07(0x1c3)](..._0x1dbd1a){}['onFileListChanged'](..._0x22f2dc){}[_0x4f0f07(0x1cf)](..._0x2ecf61){}}

View File

@@ -2,7 +2,7 @@ import { Group, GroupMember, GroupNotify } from '@/core/entities';
interface IGroupListener {
onGroupListUpdate(updateType: number, groupList: Group[]): void;
onGroupExtListUpdate(...args: unknown[]): void;
onGroupSingleScreenNotifies(...args: unknown[]): void;
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void;
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
onGroupDetailInfoChange(...args: unknown[]): void;
@@ -50,7 +50,7 @@ export declare class GroupListener implements IGroupListener {
onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void;
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
onGroupSingleScreenNotifies(...args: unknown[]): void;
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
onGroupsMsgMaskResult(...args: unknown[]): void;
onGroupStatisticInfoChange(...args: unknown[]): void;
onJoinGroupNotify(...args: unknown[]): void;
@@ -82,7 +82,7 @@ export declare class DebugGroupListener implements IGroupListener {
onGroupNotifiesUpdated(...args: unknown[]): void;
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
onGroupSingleScreenNotifies(...args: unknown[]): void;
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
onGroupsMsgMaskResult(...args: unknown[]): void;
onGroupStatisticInfoChange(...args: unknown[]): void;
onJoinGroupNotify(...args: unknown[]): void;

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
function _0x454a(_0x42e5a7,_0x3a3c11){var _0xb75d88=_0xb75d();return _0x454a=function(_0x454a2d,_0x5bcb95){_0x454a2d=_0x454a2d-0x107;var _0x15d5fa=_0xb75d88[_0x454a2d];return _0x15d5fa;},_0x454a(_0x42e5a7,_0x3a3c11);}var _0x5b372b=_0x454a;(function(_0x4ac01d,_0x2000d3){var _0x1ea469=_0x454a,_0xbf30c6=_0x4ac01d();while(!![]){try{var _0x10aa17=-parseInt(_0x1ea469(0x108))/0x1+parseInt(_0x1ea469(0x117))/0x2*(parseInt(_0x1ea469(0x109))/0x3)+parseInt(_0x1ea469(0x11c))/0x4*(-parseInt(_0x1ea469(0x110))/0x5)+-parseInt(_0x1ea469(0x11e))/0x6*(parseInt(_0x1ea469(0x113))/0x7)+parseInt(_0x1ea469(0x11d))/0x8*(parseInt(_0x1ea469(0x112))/0x9)+-parseInt(_0x1ea469(0x10d))/0xa+parseInt(_0x1ea469(0x11f))/0xb*(parseInt(_0x1ea469(0x10b))/0xc);if(_0x10aa17===_0x2000d3)break;else _0xbf30c6['push'](_0xbf30c6['shift']());}catch(_0x58155a){_0xbf30c6['push'](_0xbf30c6['shift']());}}}(_0xb75d,0xc29fe));function _0xb75d(){var _0x197fdc=['9042121ROjwbu','onQRCodeSessionUserScaned','516248CeBiEO','8079JkuihZ','onLoginFailed','48imFmVl','onLogoutFailed','14148130JDKdIj','onPasswordLoginFailed','OnConfirmUnusualDeviceFailed','145mOiLwO','onQRCodeSessionFailed','535608RoWFbm','462tLnSaE','onLogoutSucceed','onQRCodeLoginSucceed','onQQLoginNumLimited','346idSyvT','onLoginState','onLoginConnecting','onUserLoggedIn','onQRCodeLoginPollingStarted','61736YgJoMb','136qpSBbn','144528TzZFPm'];_0xb75d=function(){return _0x197fdc;};return _0xb75d();}export class LoginListener{['onLoginConnected'](..._0x34088f){}['onLoginDisConnected'](..._0x160399){}[_0x5b372b(0x119)](..._0x370042){}['onQRCodeGetPicture'](_0x89bbf6){}[_0x5b372b(0x11b)](..._0x4d8e73){}[_0x5b372b(0x107)](..._0x3e4379){}[_0x5b372b(0x115)](_0x20adf0){}[_0x5b372b(0x111)](..._0x339703){}[_0x5b372b(0x10a)](..._0x2c1b8){}[_0x5b372b(0x114)](..._0x60de2c){}[_0x5b372b(0x10c)](..._0x40488d){}[_0x5b372b(0x11a)](..._0x8637fe){}['onQRCodeSessionQuickLoginFailed'](..._0x38e457){}[_0x5b372b(0x10e)](..._0x36087b){}[_0x5b372b(0x10f)](..._0xa3ed73){}[_0x5b372b(0x116)](..._0x37fcb3){}[_0x5b372b(0x118)](..._0x20f71e){}}
var _0x23cd6e=_0x57ea;function _0x164e(){var _0x4c1a92=['1017443DuAqcK','onQQLoginNumLimited','onQRCodeSessionQuickLoginFailed','onLogoutFailed','onQRCodeSessionFailed','onPasswordLoginFailed','onLoginDisConnected','onQRCodeSessionUserScaned','21537630AXXGBA','2978560sDAKBZ','onQRCodeLoginSucceed','onQRCodeLoginPollingStarted','5jfdlCR','8013231oGVKYp','46896ftGAkH','onLoginConnecting','3002812sPYHDK','OnConfirmUnusualDeviceFailed','917wijZtm','3cpuXXz','2981152DkIlEv'];_0x164e=function(){return _0x4c1a92;};return _0x164e();}(function(_0x2edba,_0x58dcb0){var _0xef436=_0x57ea,_0x251e6c=_0x2edba();while(!![]){try{var _0x3ef300=parseInt(_0xef436(0x180))/0x1+-parseInt(_0xef436(0x17f))/0x2*(parseInt(_0xef436(0x17e))/0x3)+parseInt(_0xef436(0x17b))/0x4*(parseInt(_0xef436(0x18c))/0x5)+-parseInt(_0xef436(0x179))/0x6*(parseInt(_0xef436(0x17d))/0x7)+parseInt(_0xef436(0x189))/0x8+-parseInt(_0xef436(0x178))/0x9+parseInt(_0xef436(0x188))/0xa;if(_0x3ef300===_0x58dcb0)break;else _0x251e6c['push'](_0x251e6c['shift']());}catch(_0x5d62a9){_0x251e6c['push'](_0x251e6c['shift']());}}}(_0x164e,0xd9236));function _0x57ea(_0x4c284c,_0x288e98){var _0x164ec8=_0x164e();return _0x57ea=function(_0x57ea9c,_0x6a9785){_0x57ea9c=_0x57ea9c-0x178;var _0x102587=_0x164ec8[_0x57ea9c];return _0x102587;},_0x57ea(_0x4c284c,_0x288e98);}export class LoginListener{['onLoginConnected'](..._0x17847b){}[_0x23cd6e(0x186)](..._0x491962){}[_0x23cd6e(0x17a)](..._0x24f08e){}['onQRCodeGetPicture'](_0xde7d25){}[_0x23cd6e(0x18b)](..._0x1020fb){}[_0x23cd6e(0x187)](..._0x27ec63){}[_0x23cd6e(0x18a)](_0x2cacca){}[_0x23cd6e(0x184)](..._0x411915){}['onLoginFailed'](..._0x5d61ca){}['onLogoutSucceed'](..._0x1797a1){}[_0x23cd6e(0x183)](..._0x28e3fe){}['onUserLoggedIn'](..._0x261fe4){}[_0x23cd6e(0x182)](..._0x534616){}[_0x23cd6e(0x185)](..._0x52793d){}[_0x23cd6e(0x17c)](..._0x2ba188){}[_0x23cd6e(0x181)](..._0x21dfaa){}['onLoginState'](..._0x104458){}}

View File

@@ -1 +1 @@
function _0x2d93(_0x4d1934,_0x4b3066){var _0x411ede=_0x411e();return _0x2d93=function(_0x2d9323,_0x3947ab){_0x2d9323=_0x2d9323-0x6b;var _0x35ed22=_0x411ede[_0x2d9323];return _0x35ed22;},_0x2d93(_0x4d1934,_0x4b3066);}var _0x563d20=_0x2d93;(function(_0x26db2a,_0x28c2d4){var _0xc1c9de=_0x2d93,_0x3e3323=_0x26db2a();while(!![]){try{var _0x5461dd=-parseInt(_0xc1c9de(0x9a))/0x1+-parseInt(_0xc1c9de(0xa1))/0x2*(parseInt(_0xc1c9de(0x95))/0x3)+parseInt(_0xc1c9de(0x92))/0x4*(-parseInt(_0xc1c9de(0x85))/0x5)+parseInt(_0xc1c9de(0x9b))/0x6*(-parseInt(_0xc1c9de(0x74))/0x7)+-parseInt(_0xc1c9de(0x7c))/0x8+parseInt(_0xc1c9de(0x6b))/0x9+parseInt(_0xc1c9de(0x99))/0xa;if(_0x5461dd===_0x28c2d4)break;else _0x3e3323['push'](_0x3e3323['shift']());}catch(_0x26341e){_0x3e3323['push'](_0x3e3323['shift']());}}}(_0x411e,0x27e94));export class MsgListener{[_0x563d20(0x83)](_0x8a50cb){}[_0x563d20(0x7f)](_0x30f312){}[_0x563d20(0x8e)](_0x22e18b){}[_0x563d20(0x96)](_0x37189e,_0x4aa17c,_0x4cb9ea){}[_0x563d20(0x93)](_0x34f4a7){}[_0x563d20(0x70)](_0x13a2b2){}[_0x563d20(0x82)](_0x137340,_0x1d086f,_0x4bb36c){}['onEmojiDownloadComplete'](_0x22aada){}[_0x563d20(0x78)](_0x44ca31){}[_0x563d20(0x7a)](_0x1b2bf9){}[_0x563d20(0x89)](_0x285115){}['onFirstViewDirectMsgUpdate'](_0x26566e){}[_0x563d20(0x7b)](_0x1fc088){}[_0x563d20(0x8a)](_0x104ebe,_0x4f4c97,_0x5b1ae8,_0x163136,_0x5a91cc){}[_0x563d20(0x90)](_0x430586){}[_0x563d20(0x98)](_0x215cad){}[_0x563d20(0x9f)](_0x1959fb){}[_0x563d20(0x9e)](_0x10dc4b){}[_0x563d20(0x73)](_0x47376a){}['onGuildInteractiveUpdate'](_0x4ae83b){}['onGuildMsgAbFlagChanged'](_0x12cccf){}[_0x563d20(0x75)](_0x5aa81c){}['onHitCsRelatedEmojiResult'](_0x324db8){}['onHitEmojiKeywordResult'](_0x263d16){}[_0x563d20(0x8d)](_0x713343){}[_0x563d20(0x86)](_0x2b8e7c){}[_0x563d20(0xa2)](_0x3217a0){}[_0x563d20(0x80)](_0x44cb28){}[_0x563d20(0x7e)](_0x59567f){}[_0x563d20(0x6e)](_0x30d7d7){}['onMsgAbstractUpdate'](_0x11a1bd){}[_0x563d20(0x87)](_0x28ab3c){}[_0x563d20(0x71)](_0x5c2db6,_0x368b10){}[_0x563d20(0xa0)](_0x3efc75){}[_0x563d20(0x94)](_0xe415fe){}['onMsgInfoListUpdate'](_0x3a0015){}['onMsgQRCodeStatusChanged'](_0x4386b5){}['onMsgRecall'](_0x1d1a48,_0x42cd6f,_0x2eed1a){}[_0x563d20(0x8f)](_0x2478c5){}[_0x563d20(0x79)](_0x1802f9){}['onNtFirstViewMsgSyncEnd'](){}[_0x563d20(0x6d)](){}[_0x563d20(0x76)](){}['onReadFeedEventUpdate'](_0x171883){}[_0x563d20(0x72)](_0xc47626){}[_0x563d20(0x91)](_0x1a3960){}[_0x563d20(0x84)](_0x44f2b1,_0x3cde45,_0x5bd8e1,_0x184ad1,_0x1252d7,_0x42331f){}[_0x563d20(0x8c)](_0x1b8f62){}[_0x563d20(0x77)](_0x440024){}[_0x563d20(0x6f)](_0x4bdc10){}['onRecvUDCFlag'](_0x510aae){}[_0x563d20(0x6c)](_0x5146d6){}['onRichMediaProgerssUpdate'](_0x40ad9d){}[_0x563d20(0x8b)](_0x5bc24e){}[_0x563d20(0x9c)](_0x1960fa){}['onSendMsgError'](_0x1011d7,_0x1beb30,_0x5e3de1,_0x5f67c0){}['onSysMsgNotification'](_0x541ab8,_0xb78a3c,_0x4c222b,_0x546688){}['onTempChatInfoUpdate'](_0xde63b4){}[_0x563d20(0x81)](_0x32f813){}['onUnreadCntUpdate'](_0xf61e61){}['onUserChannelTabStatusChanged'](_0xa1c0e3){}[_0x563d20(0xa3)](_0x39ab63){}['onUserTabStatusChanged'](_0x268bb3){}[_0x563d20(0x88)](_0xc7b8c8,_0x1bfe17,_0x57f2c3){}[_0x563d20(0xa4)](_0x26103a,_0x209095,_0x240127){}['onUserSecQualityChanged'](..._0x2e3405){}[_0x563d20(0x97)](..._0x3c4916){}[_0x563d20(0x7d)](..._0x16772c){}[_0x563d20(0x9d)](..._0x252c67){}}function _0x411e(){var _0x128d5c=['onSearchGroupFileInfoUpdate','onBroadcastHelperProgerssUpdate','onGroupTransferInfoAdd','onGroupGuildUpdate','onMsgEventListUpdate','10yLCYFZ','onInputStatusPush','onUserOnlineStatusChanged','onlineStatusSmallIconDownloadPush','2071017qdokCZ','onRichMediaDownloadComplete','onNtMsgSyncEnd','onLogLevelChanged','onRecvSysMsg','onCustomWithdrawConfigUpdate','onMsgDelete','onRecvGroupGuildFlag','onGroupTransferInfoUpdate','35BwxcGx','onGuildNotificationAbstractUpdate','onNtMsgSyncStart','onRecvS2CMsg','onEmojiResourceUpdate','onMsgSettingUpdate','onFeedEventUpdate','onFirstViewGroupGuildMapping','758544fTdMrO','onRedTouchChanged','onLineDev','onBroadcastHelperDownloadComplete','onKickedOffLine','onUnreadCntAfterFirstView','onDraftUpdate','onAddSendMsg','onRecvMsgSvrRspTransInfo','435815YOoYoj','onImportOldDbProgressUpdate','onMsgBoxChanged','onlineStatusBigIconDownloadPush','onFileMsgCome','onGrabPasswordRedBag','onRichMediaUploadComplete','onRecvOnlineFileMsg','onHitRelatedEmojiResult','onBroadcastHelperProgressUpdate','onMsgSecurityNotify','onGroupFileInfoAdd','onRecvMsg','4RMtbEB','onContactUnreadCntUpdate','onMsgInfoListAdd','178377ckOVTM','onChannelFreqLimitInfoUpdate','onMsgWithRichLinkInfoUpdate','onGroupFileInfoUpdate','7024470cWaiyM','41673aCqLma','297762WsxMEV'];_0x411e=function(){return _0x128d5c;};return _0x411e();}
function _0x573d(){var _0x424a2b=['onFirstViewDirectMsgUpdate','510630FsCQPt','onGroupGuildUpdate','onGroupTransferInfoUpdate','onUnreadCntAfterFirstView','onFirstViewGroupGuildMapping','onRecvMsgSvrRspTransInfo','onMsgQRCodeStatusChanged','onRichMediaUploadComplete','onImportOldDbProgressUpdate','onRecvMsg','onLogLevelChanged','470988lMaMpP','onGrabPasswordRedBag','onSendMsgError','onGroupFileInfoAdd','42JbcabF','275610BtLVtd','onTempChatInfoUpdate','onCustomWithdrawConfigUpdate','67167raKMvn','onHitRelatedEmojiResult','onDraftUpdate','1128889TQAeEw','onNtFirstViewMsgSyncEnd','50MapsbB','onRecvS2CMsg','onUserSecQualityChanged','onRecvGroupGuildFlag','onGuildMsgAbFlagChanged','2CyuNQa','onMsgRecall','onContactUnreadCntUpdate','4IFGIvi','onChannelFreqLimitInfoUpdate','onSysMsgNotification','onMsgDelete','onGuildNotificationAbstractUpdate','795221PkKKau','onUserChannelTabStatusChanged','onEmojiDownloadComplete','onMsgInfoListUpdate','onFeedEventUpdate','286IelqKp','9457976jjRPQN','onUserTabStatusChanged','onUserOnlineStatusChanged','onEmojiResourceUpdate','onMsgSecurityNotify','onMsgAbstractUpdate','onMsgBoxChanged','onlineStatusSmallIconDownloadPush','onHitEmojiKeywordResult','onRedTouchChanged','onNtMsgSyncEnd','onBroadcastHelperProgerssUpdate','onReadFeedEventUpdate','onRecvSysMsg','onRecvOnlineFileMsg','onSearchGroupFileInfoUpdate','onGroupTransferInfoAdd','onAddSendMsg','onKickedOffLine','onFileMsgCome','onRecvUDCFlag','onHitCsRelatedEmojiResult'];_0x573d=function(){return _0x424a2b;};return _0x573d();}function _0x54cd(_0x1c8a4a,_0x3a1543){var _0x573d5b=_0x573d();return _0x54cd=function(_0x54cde8,_0x4d8b18){_0x54cde8=_0x54cde8-0x139;var _0xb7029a=_0x573d5b[_0x54cde8];return _0xb7029a;},_0x54cd(_0x1c8a4a,_0x3a1543);}var _0x488d54=_0x54cd;(function(_0x4e83df,_0x31a00d){var _0x525e41=_0x54cd,_0x5aaf70=_0x4e83df();while(!![]){try{var _0x1e3d07=parseInt(_0x525e41(0x159))/0x1*(parseInt(_0x525e41(0x160))/0x2)+parseInt(_0x525e41(0x143))/0x3*(parseInt(_0x525e41(0x163))/0x4)+-parseInt(_0x525e41(0x153))/0x5+parseInt(_0x525e41(0x152))/0x6*(-parseInt(_0x525e41(0x168))/0x7)+parseInt(_0x525e41(0x16e))/0x8+-parseInt(_0x525e41(0x156))/0x9*(-parseInt(_0x525e41(0x15b))/0xa)+-parseInt(_0x525e41(0x16d))/0xb*(parseInt(_0x525e41(0x14e))/0xc);if(_0x1e3d07===_0x31a00d)break;else _0x5aaf70['push'](_0x5aaf70['shift']());}catch(_0x2e6d8c){_0x5aaf70['push'](_0x5aaf70['shift']());}}}(_0x573d,0x9e2a4));export class MsgListener{[_0x488d54(0x13d)](_0x6bab5){}['onBroadcastHelperDownloadComplete'](_0xdeafd0){}['onBroadcastHelperProgressUpdate'](_0x5352f1){}[_0x488d54(0x164)](_0x1040ca,_0x235765,_0x5bfb4a){}[_0x488d54(0x162)](_0x5f57cc){}[_0x488d54(0x155)](_0x27e06c){}[_0x488d54(0x158)](_0x328c51,_0x25d5de,_0x4acf33){}[_0x488d54(0x16a)](_0x4276c2){}[_0x488d54(0x171)](_0x2002d6){}[_0x488d54(0x16c)](_0x3c6bbe){}[_0x488d54(0x13f)](_0x33e094){}[_0x488d54(0x142)](_0x1bf65e){}[_0x488d54(0x147)](_0x505a6e){}[_0x488d54(0x14f)](_0x132f02,_0x3595c7,_0x5d6e59,_0x432703,_0x511862){}[_0x488d54(0x151)](_0x20dc89){}['onGroupFileInfoUpdate'](_0x528864){}[_0x488d54(0x144)](_0x4626b7){}[_0x488d54(0x13c)](_0x37cf7b){}[_0x488d54(0x145)](_0x21eda2){}['onGuildInteractiveUpdate'](_0x352964){}[_0x488d54(0x15f)](_0x28aabc){}[_0x488d54(0x167)](_0x416b74){}[_0x488d54(0x141)](_0x372982){}[_0x488d54(0x176)](_0x34bd3d){}[_0x488d54(0x157)](_0x427c07){}[_0x488d54(0x14b)](_0x2aed4b){}['onInputStatusPush'](_0x2b789e){}[_0x488d54(0x13e)](_0x56b517){}['onLineDev'](_0x18a7db){}[_0x488d54(0x14d)](_0x29b501){}[_0x488d54(0x173)](_0x23db50){}[_0x488d54(0x174)](_0x58c606){}[_0x488d54(0x166)](_0x181b2c,_0x16cd57){}['onMsgEventListUpdate'](_0x2b628f){}['onMsgInfoListAdd'](_0x5d7962){}[_0x488d54(0x16b)](_0x10ac98){}[_0x488d54(0x149)](_0x46794e){}[_0x488d54(0x161)](_0x49d591,_0x47cb43,_0x44fa21){}[_0x488d54(0x172)](_0x650116){}['onMsgSettingUpdate'](_0x2db181){}[_0x488d54(0x15a)](){}[_0x488d54(0x178)](){}['onNtMsgSyncStart'](){}[_0x488d54(0x17a)](_0x1054b1){}[_0x488d54(0x15e)](_0x36fd91){}[_0x488d54(0x14c)](_0x40d32f){}[_0x488d54(0x148)](_0x1e741f,_0x41485e,_0x5322fc,_0x209b01,_0x5723c5,_0x117d44){}[_0x488d54(0x13a)](_0x328eee){}[_0x488d54(0x15c)](_0x560468){}[_0x488d54(0x139)](_0x34cbb9){}[_0x488d54(0x140)](_0x3d7e07){}['onRichMediaDownloadComplete'](_0x369b67){}['onRichMediaProgerssUpdate'](_0x8d22b4){}[_0x488d54(0x14a)](_0x4e2330){}[_0x488d54(0x13b)](_0x43c2d7){}[_0x488d54(0x150)](_0x45e6ab,_0x2b556f,_0x45e45b,_0x59d39a){}[_0x488d54(0x165)](_0x415825,_0x43cf55,_0x3f064a,_0x1e7b24){}[_0x488d54(0x154)](_0x12cca8){}[_0x488d54(0x146)](_0x447614){}['onUnreadCntUpdate'](_0x3d009f){}[_0x488d54(0x169)](_0x5bfbcd){}[_0x488d54(0x170)](_0x29fd02){}[_0x488d54(0x16f)](_0x16d2c6){}['onlineStatusBigIconDownloadPush'](_0x5b9ab4,_0x3c275e,_0x5a9f4c){}[_0x488d54(0x175)](_0x4495f2,_0x9f24d6,_0x3d825a){}[_0x488d54(0x15d)](..._0x15fddb){}['onMsgWithRichLinkInfoUpdate'](..._0x3f4dfb){}[_0x488d54(0x177)](..._0x30a678){}[_0x488d54(0x179)](..._0x144f58){}}

View File

@@ -1 +1 @@
var _0x6ae8ac=_0x6441;(function(_0x14949f,_0x1a5bf7){var _0x4e981f=_0x6441,_0x45b76f=_0x14949f();while(!![]){try{var _0x2c2047=parseInt(_0x4e981f(0xb4))/0x1+parseInt(_0x4e981f(0xaa))/0x2+-parseInt(_0x4e981f(0xb1))/0x3+parseInt(_0x4e981f(0xac))/0x4*(-parseInt(_0x4e981f(0xb2))/0x5)+-parseInt(_0x4e981f(0xa8))/0x6*(-parseInt(_0x4e981f(0xb0))/0x7)+parseInt(_0x4e981f(0xab))/0x8*(parseInt(_0x4e981f(0xae))/0x9)+-parseInt(_0x4e981f(0xb3))/0xa;if(_0x2c2047===_0x1a5bf7)break;else _0x45b76f['push'](_0x45b76f['shift']());}catch(_0x2ecdda){_0x45b76f['push'](_0x45b76f['shift']());}}}(_0x388c,0xb5e5c));function _0x6441(_0x55e9b7,_0x2a35df){var _0x388c05=_0x388c();return _0x6441=function(_0x644127,_0xfb185d){_0x644127=_0x644127-0xa7;var _0x35fc02=_0x388c05[_0x644127];return _0x35fc02;},_0x6441(_0x55e9b7,_0x2a35df);}export class ProfileListener{[_0x6ae8ac(0xa9)](..._0x16c17d){}[_0x6ae8ac(0xaf)](_0x17b6ce){}['onStatusUpdate'](..._0x27345c){}[_0x6ae8ac(0xa7)](..._0x134828){}[_0x6ae8ac(0xad)](..._0x2ddf19){}}function _0x388c(){var _0x2e2571=['1481994ziaioA','25FbnqdO','15794640LqcaQp','914700nkcuEW','onSelfStatusChanged','5682zRgLAD','onProfileSimpleChanged','2301576aDSYsJ','8kAmfAj','495536owoREI','onStrangerRemarkChanged','1186884GDzSzk','onProfileDetailInfoChanged','9170DlyHBn'];_0x388c=function(){return _0x2e2571;};return _0x388c();}
var _0x17710a=_0x31bb;function _0x31bb(_0x4f13e1,_0x1c3a57){var _0x47014b=_0x4701();return _0x31bb=function(_0x31bbf2,_0x198d6b){_0x31bbf2=_0x31bbf2-0x187;var _0x25b063=_0x47014b[_0x31bbf2];return _0x25b063;},_0x31bb(_0x4f13e1,_0x1c3a57);}(function(_0x217747,_0xb6be93){var _0x5a93f5=_0x31bb,_0x33ca9c=_0x217747();while(!![]){try{var _0x1b32b2=-parseInt(_0x5a93f5(0x187))/0x1*(parseInt(_0x5a93f5(0x18f))/0x2)+-parseInt(_0x5a93f5(0x18c))/0x3+parseInt(_0x5a93f5(0x188))/0x4+-parseInt(_0x5a93f5(0x189))/0x5+parseInt(_0x5a93f5(0x18e))/0x6*(parseInt(_0x5a93f5(0x18d))/0x7)+-parseInt(_0x5a93f5(0x18b))/0x8+-parseInt(_0x5a93f5(0x190))/0x9;if(_0x1b32b2===_0xb6be93)break;else _0x33ca9c['push'](_0x33ca9c['shift']());}catch(_0x58653b){_0x33ca9c['push'](_0x33ca9c['shift']());}}}(_0x4701,0xdf6c0));function _0x4701(){var _0x5b99b0=['1LBYwiO','4765132unuODq','3709305NhYAjL','onProfileDetailInfoChanged','2166808sgRHDL','459789xYlUPF','7faGJuX','6414210mwLvzD','297562SAqKQt','273834QsazVJ'];_0x4701=function(){return _0x5b99b0;};return _0x4701();}export class ProfileListener{['onProfileSimpleChanged'](..._0x85c00a){}[_0x17710a(0x18a)](_0xf6072){}['onStatusUpdate'](..._0xe45333){}['onSelfStatusChanged'](..._0x4d4be1){}['onStrangerRemarkChanged'](..._0x44a19c){}}

View File

@@ -1 +1 @@
var _0x213048=_0x3929;(function(_0x50715c,_0x4867dd){var _0x188bd8=_0x3929,_0x31b40e=_0x50715c();while(!![]){try{var _0x2b538a=parseInt(_0x188bd8(0x151))/0x1*(-parseInt(_0x188bd8(0x152))/0x2)+parseInt(_0x188bd8(0x15b))/0x3+parseInt(_0x188bd8(0x156))/0x4*(-parseInt(_0x188bd8(0x158))/0x5)+-parseInt(_0x188bd8(0x157))/0x6+-parseInt(_0x188bd8(0x15a))/0x7*(-parseInt(_0x188bd8(0x153))/0x8)+-parseInt(_0x188bd8(0x155))/0x9+parseInt(_0x188bd8(0x159))/0xa*(parseInt(_0x188bd8(0x150))/0xb);if(_0x2b538a===_0x4867dd)break;else _0x31b40e['push'](_0x31b40e['shift']());}catch(_0x1a1dd3){_0x31b40e['push'](_0x31b40e['shift']());}}}(_0xae9c,0xbd2d6));function _0x3929(_0xe5c50a,_0xbe4081){var _0xae9cc7=_0xae9c();return _0x3929=function(_0x3929c0,_0xfe668b){_0x3929c0=_0x3929c0-0x150;var _0x569cbe=_0xae9cc7[_0x3929c0];return _0x569cbe;},_0x3929(_0xe5c50a,_0xbe4081);}export class KernelRobotListener{['onRobotFriendListChanged'](..._0x33d119){}[_0x213048(0x154)](..._0x1d0111){}['onRobotProfileChanged'](..._0x20105c){}}function _0xae9c(){var _0x5acba9=['1016lWkBFl','1221774UmidID','17745ttylet','10EYwLVK','9081597vZBXSY','3520218VUestZ','12930599iBqFuH','134yFyVGt','12886xieNPA','8zGDFmq','onRobotListChanged','8126811LFrfYL'];_0xae9c=function(){return _0x5acba9;};return _0xae9c();}
var _0x21a405=_0x2b8b;(function(_0x3b4d4b,_0x19b630){var _0x2298e0=_0x2b8b,_0x21c578=_0x3b4d4b();while(!![]){try{var _0x460be8=-parseInt(_0x2298e0(0x178))/0x1*(parseInt(_0x2298e0(0x179))/0x2)+-parseInt(_0x2298e0(0x177))/0x3*(parseInt(_0x2298e0(0x174))/0x4)+-parseInt(_0x2298e0(0x17d))/0x5+-parseInt(_0x2298e0(0x17e))/0x6*(parseInt(_0x2298e0(0x173))/0x7)+parseInt(_0x2298e0(0x176))/0x8+parseInt(_0x2298e0(0x172))/0x9+parseInt(_0x2298e0(0x175))/0xa;if(_0x460be8===_0x19b630)break;else _0x21c578['push'](_0x21c578['shift']());}catch(_0xda8169){_0x21c578['push'](_0x21c578['shift']());}}}(_0x2c7c,0xbae86));function _0x2b8b(_0x143f53,_0x20820f){var _0x2c7ccf=_0x2c7c();return _0x2b8b=function(_0x2b8b94,_0x2e9947){_0x2b8b94=_0x2b8b94-0x172;var _0x46eda7=_0x2c7ccf[_0x2b8b94];return _0x46eda7;},_0x2b8b(_0x143f53,_0x20820f);}export class KernelRobotListener{[_0x21a405(0x17b)](..._0x2e583b){}[_0x21a405(0x17a)](..._0x48b5b5){}[_0x21a405(0x17c)](..._0x907d2c){}}function _0x2c7c(){var _0x131bd6=['onRobotFriendListChanged','onRobotProfileChanged','222840oTGaIg','582FRTXSt','12210966GPmpMm','60935LBndMJ','14372pdoSPr','7124680tJjofh','9927672odUuYC','1161zUKDHc','15599VhsdFz','34KnEFKx','onRobotListChanged'];_0x2c7c=function(){return _0x131bd6;};return _0x2c7c();}

View File

@@ -1 +1 @@
var _0x422bea=_0x5926;function _0x5926(_0x2be58c,_0x350a92){var _0x16e4f2=_0x16e4();return _0x5926=function(_0x592644,_0x1a500b){_0x592644=_0x592644-0x1bf;var _0x1488f3=_0x16e4f2[_0x592644];return _0x1488f3;},_0x5926(_0x2be58c,_0x350a92);}function _0x16e4(){var _0x5ab9d0=['36OTuZVq','onSessionInitComplete','12818456OMIQHa','3395062HdFzCH','10FdiwNm','onGetSelfTinyId','162896kNYCla','545015DFZjQr','4261887GDgNPX','7UMwtAo','onNTSessionCreate','13711554DZGOcj','onGProSessionCreate','5901220PiuuQM'];_0x16e4=function(){return _0x5ab9d0;};return _0x16e4();}(function(_0x47fc34,_0x49f5c8){var _0x20c533=_0x5926,_0x2ccbe6=_0x47fc34();while(!![]){try{var _0x431322=-parseInt(_0x20c533(0x1cc))/0x1+parseInt(_0x20c533(0x1c9))/0x2+parseInt(_0x20c533(0x1c0))/0x3+-parseInt(_0x20c533(0x1c5))/0x4+-parseInt(_0x20c533(0x1bf))/0x5*(parseInt(_0x20c533(0x1c6))/0x6)+-parseInt(_0x20c533(0x1c1))/0x7*(-parseInt(_0x20c533(0x1c8))/0x8)+parseInt(_0x20c533(0x1c3))/0x9*(-parseInt(_0x20c533(0x1ca))/0xa);if(_0x431322===_0x49f5c8)break;else _0x2ccbe6['push'](_0x2ccbe6['shift']());}catch(_0x48f388){_0x2ccbe6['push'](_0x2ccbe6['shift']());}}}(_0x16e4,0xdce26));export class SessionListener{[_0x422bea(0x1c2)](_0x213a2f){}[_0x422bea(0x1c4)](_0x568289){}[_0x422bea(0x1c7)](_0x35c515){}['onOpentelemetryInit'](_0x42cd3a){}['onUserOnlineResult'](_0x5f790e){}[_0x422bea(0x1cb)](_0x28c799){}}
function _0x1581(){var _0x502204=['16907WBNzTI','2681820aRdhcF','261379wYSrfL','5288RMEiWK','onOpentelemetryInit','6SitAXy','118870SGegLT','68412HwEmtk','7672DNFpNm','4044wttMJH','531eJgyTj','onNTSessionCreate','641568YkvRtt','5hZPtft','onGetSelfTinyId','onSessionInitComplete'];_0x1581=function(){return _0x502204;};return _0x1581();}var _0x303f0f=_0xfa3d;(function(_0x3b4071,_0x2783ba){var _0x4e7263=_0xfa3d,_0x4d966a=_0x3b4071();while(!![]){try{var _0x252bb1=parseInt(_0x4e7263(0x1f6))/0x1*(parseInt(_0x4e7263(0x1f9))/0x2)+-parseInt(_0x4e7263(0x1f0))/0x3+parseInt(_0x4e7263(0x1f5))/0x4+-parseInt(_0x4e7263(0x1f1))/0x5*(-parseInt(_0x4e7263(0x1fb))/0x6)+-parseInt(_0x4e7263(0x1fc))/0x7*(parseInt(_0x4e7263(0x1f7))/0x8)+parseInt(_0x4e7263(0x1ee))/0x9*(parseInt(_0x4e7263(0x1fa))/0xa)+-parseInt(_0x4e7263(0x1f4))/0xb*(parseInt(_0x4e7263(0x1fd))/0xc);if(_0x252bb1===_0x2783ba)break;else _0x4d966a['push'](_0x4d966a['shift']());}catch(_0x5700b8){_0x4d966a['push'](_0x4d966a['shift']());}}}(_0x1581,0xad986));function _0xfa3d(_0x891735,_0x5545d0){var _0x1581b7=_0x1581();return _0xfa3d=function(_0xfa3d2c,_0x376f79){_0xfa3d2c=_0xfa3d2c-0x1ee;var _0x17db1d=_0x1581b7[_0xfa3d2c];return _0x17db1d;},_0xfa3d(_0x891735,_0x5545d0);}export class SessionListener{[_0x303f0f(0x1ef)](_0x10710e){}['onGProSessionCreate'](_0x1b9e23){}[_0x303f0f(0x1f3)](_0x36a4cb){}[_0x303f0f(0x1f8)](_0x2a372c){}['onUserOnlineResult'](_0x29e8b3){}[_0x303f0f(0x1f2)](_0x1ab63d){}}

View File

@@ -1 +1 @@
function _0x2a26(_0x4e5a42,_0x4dd1a1){var _0x3077e1=_0x3077();return _0x2a26=function(_0x2a261c,_0x3f6efe){_0x2a261c=_0x2a261c-0x14c;var _0xe43131=_0x3077e1[_0x2a261c];return _0xe43131;},_0x2a26(_0x4e5a42,_0x4dd1a1);}var _0x20c3a2=_0x2a26;(function(_0x1316f5,_0x1e5b8d){var _0x5cf60a=_0x2a26,_0x37fe68=_0x1316f5();while(!![]){try{var _0x38f5b9=parseInt(_0x5cf60a(0x14d))/0x1+parseInt(_0x5cf60a(0x150))/0x2+parseInt(_0x5cf60a(0x153))/0x3+-parseInt(_0x5cf60a(0x152))/0x4+-parseInt(_0x5cf60a(0x155))/0x5+parseInt(_0x5cf60a(0x154))/0x6+-parseInt(_0x5cf60a(0x14f))/0x7;if(_0x38f5b9===_0x1e5b8d)break;else _0x37fe68['push'](_0x37fe68['shift']());}catch(_0x1c30b6){_0x37fe68['push'](_0x37fe68['shift']());}}}(_0x3077,0x33774));export class StorageCleanListener{[_0x20c3a2(0x151)](_0x44484d){}[_0x20c3a2(0x14e)](_0xf481f3){}['onCleanCacheStorageChanged'](_0x1f1d38){}[_0x20c3a2(0x14c)](_0x1baab6){}['onChatCleanDone'](_0x4d5f81){}}function _0x3077(){var _0x2685e6=['654888jfqLXP','807789XEWKJA','2240622DovqNz','159530dlyoUs','onFinishScan','322114FysUDS','onScanCacheProgressChanged','5584425ktmvXe','478786beTnrd','onCleanCacheProgressChanged'];_0x3077=function(){return _0x2685e6;};return _0x3077();}
function _0x24f2(_0x702870,_0x57acff){var _0x52a4e8=_0x52a4();return _0x24f2=function(_0x24f235,_0x196a4e){_0x24f235=_0x24f235-0x19d;var _0x5279bc=_0x52a4e8[_0x24f235];return _0x5279bc;},_0x24f2(_0x702870,_0x57acff);}var _0x35286=_0x24f2;function _0x52a4(){var _0x1bd4e5=['830024nOZFzJ','onCleanCacheStorageChanged','643917faBsCI','823536TEPCBf','onFinishScan','5818455WFdaTH','2YZbvTD','73738fWYuBu','6RbYYtp','onCleanCacheProgressChanged','213552nXkUWJ','onChatCleanDone','1252645NyAPkn'];_0x52a4=function(){return _0x1bd4e5;};return _0x52a4();}(function(_0x9d5bfb,_0x176a63){var _0x318114=_0x24f2,_0x212d4=_0x9d5bfb();while(!![]){try{var _0x5c06ac=parseInt(_0x318114(0x1a1))/0x1+parseInt(_0x318114(0x19d))/0x2*(parseInt(_0x318114(0x1a6))/0x3)+parseInt(_0x318114(0x1a4))/0x4+-parseInt(_0x318114(0x1a3))/0x5*(-parseInt(_0x318114(0x19f))/0x6)+-parseInt(_0x318114(0x19e))/0x7+-parseInt(_0x318114(0x1a7))/0x8+-parseInt(_0x318114(0x1a9))/0x9;if(_0x5c06ac===_0x176a63)break;else _0x212d4['push'](_0x212d4['shift']());}catch(_0x2bb44f){_0x212d4['push'](_0x212d4['shift']());}}}(_0x52a4,0x1ed2f));export class StorageCleanListener{[_0x35286(0x1a0)](_0x541394){}['onScanCacheProgressChanged'](_0x39839f){}[_0x35286(0x1a5)](_0x5de85b){}[_0x35286(0x1a8)](_0xe08fb8){}[_0x35286(0x1a2)](_0x5a2a1a){}}

View File

@@ -1 +1 @@
(function(_0x1e77e5,_0x417bfc){var _0x5590b2=_0x579d,_0x44ffa5=_0x1e77e5();while(!![]){try{var _0x2b85f0=parseInt(_0x5590b2(0x1cb))/0x1*(parseInt(_0x5590b2(0x1c9))/0x2)+-parseInt(_0x5590b2(0x1c7))/0x3*(-parseInt(_0x5590b2(0x1d1))/0x4)+-parseInt(_0x5590b2(0x1cc))/0x5+parseInt(_0x5590b2(0x1d0))/0x6*(-parseInt(_0x5590b2(0x1c8))/0x7)+parseInt(_0x5590b2(0x1ce))/0x8+parseInt(_0x5590b2(0x1ca))/0x9*(parseInt(_0x5590b2(0x1cf))/0xa)+parseInt(_0x5590b2(0x1c6))/0xb*(-parseInt(_0x5590b2(0x1cd))/0xc);if(_0x2b85f0===_0x417bfc)break;else _0x44ffa5['push'](_0x44ffa5['shift']());}catch(_0x765508){_0x44ffa5['push'](_0x44ffa5['shift']());}}}(_0x5829,0xecbef));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x5829(){var _0x1a0d05=['180155MgsalM','12zXsWcI','10848TbyKgy','9160laCaIF','4776sQGHVb','4DNIjXW','21210343dLoBFN','3613779BYfACt','5971sLwnIa','66WJvGFg','13914KGkVwE','30026cTtwyH'];_0x5829=function(){return _0x1a0d05;};return _0x5829();}function _0x579d(_0x13475a,_0x4c92d4){var _0x58295f=_0x5829();return _0x579d=function(_0x579da0,_0x3c9b20){_0x579da0=_0x579da0-0x1c6;var _0x1ece43=_0x58295f[_0x579da0];return _0x1ece43;},_0x579d(_0x13475a,_0x4c92d4);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
function _0x3690(){var _0x3f0de5=['85567DrGMJW','7RcSWaV','6NLncDf','6581648eDENok','2187396pJwUlD','2217774gYLFgy','8958786YJymxZ','7069149vKOxyP','15951270oSxdLO','15VLoweP'];_0x3690=function(){return _0x3f0de5;};return _0x3690();}(function(_0x2fbe7c,_0x5afd5d){var _0x4c6dd9=_0x41f9,_0x391810=_0x2fbe7c();while(!![]){try{var _0x4a6cff=parseInt(_0x4c6dd9(0x84))/0x1*(parseInt(_0x4c6dd9(0x86))/0x2)+parseInt(_0x4c6dd9(0x89))/0x3+-parseInt(_0x4c6dd9(0x88))/0x4*(parseInt(_0x4c6dd9(0x8d))/0x5)+-parseInt(_0x4c6dd9(0x8a))/0x6*(-parseInt(_0x4c6dd9(0x85))/0x7)+parseInt(_0x4c6dd9(0x87))/0x8+parseInt(_0x4c6dd9(0x8b))/0x9+-parseInt(_0x4c6dd9(0x8c))/0xa;if(_0x4a6cff===_0x5afd5d)break;else _0x391810['push'](_0x391810['shift']());}catch(_0x318643){_0x391810['push'](_0x391810['shift']());}}}(_0x3690,0xd258f));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x41f9(_0x3d44bf,_0x5b06b0){var _0x369020=_0x3690();return _0x41f9=function(_0x41f926,_0x22aecd){_0x41f926=_0x41f926-0x84;var _0x4750db=_0x369020[_0x41f926];return _0x4750db;},_0x41f9(_0x3d44bf,_0x5b06b0);}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';

View File

@@ -2,7 +2,7 @@ export interface NodeIKernelAvatarService {
addAvatarListener(arg: unknown): unknown;
removeAvatarListener(arg: unknown): unknown;
getAvatarPath(arg1: unknown, arg2: unknown): unknown;
forceDownloadAvatar(arg1: unknown, arg2: unknown): unknown;
forceDownloadAvatar(uid: string, useCache: number): Promise<unknown>;
getGroupAvatarPath(arg1: unknown, arg2: unknown): unknown;
getConfGroupAvatarPath(arg: unknown): unknown;
forceDownloadGroupAvatar(arg1: unknown, arg2: unknown): unknown;

View File

@@ -45,25 +45,32 @@ export interface NodeIKernelGroupService {
createGroupWithMembers(arg: unknown): void;
quitGroup(groupCode: string): void;
destroyGroup(groupCode: string): void;
getSingleScreenNotifies(groupCode: string, ...args: unknown[]): void;
getSingleScreenNotifies(arg1: boolean, arg2: string, arg3: number): Promise<GeneralCallResult>;
clearGroupNotifies(groupCode: string): void;
getGroupNotifiesUnreadCount(groupCode: string): void;
getGroupNotifiesUnreadCount(unknown: Boolean): Promise<GeneralCallResult>;
clearGroupNotifiesUnreadCount(groupCode: string): void;
operateSysNotify(doubt: boolean, operateMsg: {
'operateType': GroupRequestOperateTypes;
'targetMsg': {
'seq': string;
'type': GroupNotifyTypes;
'groupCode': string;
'postscript': string;
operateType: GroupRequestOperateTypes;
targetMsg: {
seq: string;
type: GroupNotifyTypes;
groupCode: string;
postscript: string;
};
}): Promise<void>;
setTop(groupCode: string, isTop: boolean): void;
getGroupBulletin(groupCode: string): unknown;
deleteGroupBulletin(groupCode: string, seq: string): void;
publishGroupBulletin(groupCode: string, arg: unknown): void;
publishGroupBulletin(groupCode: string, pskey: string, data: any): Promise<GeneralCallResult>;
publishInstructionForNewcomers(groupCode: string, arg: unknown): void;
uploadGroupBulletinPic(groupCode: string, arg: unknown): void;
uploadGroupBulletinPic(groupCode: string, pskey: string, imagePath: string): Promise<GeneralCallResult & {
errCode: number;
picInfo?: {
id: string;
width: number;
height: number;
};
}>;
downloadGroupBulletinRichMedia(groupCode: string): unknown;
getGroupBulletinList(groupCode: string): unknown;
getGroupStatisticInfo(groupCode: string): unknown;

View File

@@ -1,3 +1,4 @@
import { BuddyProfileLikeReq } from "../entities/user";
export interface NodeIKernelProfileLikeService {
addKernelProfileLikeListener(listener: NodeIKernelProfileLikeService): void;
removeKernelProfileLikeListener(listener: unknown): void;
@@ -6,7 +7,7 @@ export interface NodeIKernelProfileLikeService {
errMsg: string;
succCounts: number;
};
getBuddyProfileLike(...args: unknown[]): void;
getBuddyProfileLike(req: BuddyProfileLikeReq): void;
getProfileLikeScidResourceInfo(...args: unknown[]): void;
isNull(): boolean;
}

View File

@@ -1 +1 @@
(function(_0x419d50,_0x128099){var _0x419aa4=_0x57f7,_0x4fa903=_0x419d50();while(!![]){try{var _0x29d631=-parseInt(_0x419aa4(0xac))/0x1+-parseInt(_0x419aa4(0xaa))/0x2*(parseInt(_0x419aa4(0xa8))/0x3)+parseInt(_0x419aa4(0xb1))/0x4+parseInt(_0x419aa4(0xae))/0x5+-parseInt(_0x419aa4(0xaf))/0x6*(-parseInt(_0x419aa4(0xa9))/0x7)+-parseInt(_0x419aa4(0xad))/0x8*(parseInt(_0x419aa4(0xab))/0x9)+parseInt(_0x419aa4(0xb0))/0xa;if(_0x29d631===_0x128099)break;else _0x4fa903['push'](_0x4fa903['shift']());}catch(_0x510bd3){_0x4fa903['push'](_0x4fa903['shift']());}}}(_0x3868,0xa20ee));function _0x3868(){var _0x45dcfe=['14931720QrWnsd','1736016ArGcIG','969okaCPX','280IscwfA','6866HCqpJK','1692Vvpnim','529466JaJYFW','10056RMyVBR','936075IrLOoT','63606memWml'];_0x3868=function(){return _0x45dcfe;};return _0x3868();}function _0x57f7(_0x447e82,_0x3751c3){var _0x3868e5=_0x3868();return _0x57f7=function(_0x57f792,_0x34553c){_0x57f792=_0x57f792-0xa8;var _0x5f5b65=_0x3868e5[_0x57f792];return _0x5f5b65;},_0x57f7(_0x447e82,_0x3751c3);}export var GeneralCallResultStatus;(function(_0xc51a5e){_0xc51a5e[_0xc51a5e['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
function _0xf517(){var _0x1f86dc=['4147048iWpwTG','21IJkgpu','85CglRAi','38664JUqYcF','422750EpkmWR','15482400MpNEok','43474JvAUXd','4082519ybIzHm','322324UhpJvf','121pbXlnh','26sDXBFG','9qIENKM'];_0xf517=function(){return _0x1f86dc;};return _0xf517();}(function(_0x1b28f1,_0x15cef3){var _0x18c2a3=_0x6712,_0x3e2bae=_0x1b28f1();while(!![]){try{var _0x54183c=parseInt(_0x18c2a3(0xe1))/0x1*(parseInt(_0x18c2a3(0xd9))/0x2)+-parseInt(_0x18c2a3(0xdc))/0x3*(-parseInt(_0x18c2a3(0xe3))/0x4)+-parseInt(_0x18c2a3(0xdd))/0x5*(-parseInt(_0x18c2a3(0xde))/0x6)+-parseInt(_0x18c2a3(0xe2))/0x7+-parseInt(_0x18c2a3(0xdb))/0x8*(-parseInt(_0x18c2a3(0xda))/0x9)+-parseInt(_0x18c2a3(0xdf))/0xa*(-parseInt(_0x18c2a3(0xd8))/0xb)+-parseInt(_0x18c2a3(0xe0))/0xc;if(_0x54183c===_0x15cef3)break;else _0x3e2bae['push'](_0x3e2bae['shift']());}catch(_0x1b8a55){_0x3e2bae['push'](_0x3e2bae['shift']());}}}(_0xf517,0x5525e));function _0x6712(_0x151903,_0x414ea8){var _0xf51726=_0xf517();return _0x6712=function(_0x67127b,_0x566e84){_0x67127b=_0x67127b-0xd8;var _0x3c52eb=_0xf51726[_0x67127b];return _0x3c52eb;},_0x6712(_0x151903,_0x414ea8);}export var GeneralCallResultStatus;(function(_0x175de5){_0x175de5[_0x175de5['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));

View File

@@ -1 +1 @@
(function(_0x3af42d,_0x277b00){var _0x1fe091=_0xa7fb,_0x34295a=_0x3af42d();while(!![]){try{var _0x326e76=-parseInt(_0x1fe091(0xb4))/0x1+parseInt(_0x1fe091(0xb5))/0x2*(-parseInt(_0x1fe091(0xb1))/0x3)+-parseInt(_0x1fe091(0xb2))/0x4+parseInt(_0x1fe091(0xb0))/0x5*(parseInt(_0x1fe091(0xab))/0x6)+-parseInt(_0x1fe091(0xac))/0x7+-parseInt(_0x1fe091(0xae))/0x8*(-parseInt(_0x1fe091(0xb3))/0x9)+parseInt(_0x1fe091(0xad))/0xa*(parseInt(_0x1fe091(0xaf))/0xb);if(_0x326e76===_0x277b00)break;else _0x34295a['push'](_0x34295a['shift']());}catch(_0x597c5f){_0x34295a['push'](_0x34295a['shift']());}}}(_0x25b7,0x5a8cb));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0xa7fb(_0x5f2a79,_0x27bcef){var _0x25b72a=_0x25b7();return _0xa7fb=function(_0xa7fbde,_0x4fc6b0){_0xa7fbde=_0xa7fbde-0xab;var _0x2869df=_0x25b72a[_0xa7fbde];return _0x2869df;},_0xa7fb(_0x5f2a79,_0x27bcef);}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';function _0x25b7(){var _0x40c55c=['138xxrvbn','497478UhzoXa','2507701peAaku','20TREEfH','24bHLEzP','7103470KozDch','15JHpTxU','87exviYM','2398748xhUsis','93447qTyMcO','240606jTNDNW'];_0x25b7=function(){return _0x40c55c;};return _0x25b7();}
function _0x1dcb(){var _0x1d8381=['3704288wPFFtr','3960754ZyIQrm','1455549efQpAy','5xbdgkS','1793876VKjCCQ','3600564NGoHxc','12431835zvWwWW','17OfuROs','70322jsaSZI'];_0x1dcb=function(){return _0x1d8381;};return _0x1dcb();}(function(_0x51fff0,_0x468f11){var _0x7b781e=_0x306f,_0xef846e=_0x51fff0();while(!![]){try{var _0x440cbd=parseInt(_0x7b781e(0x11a))/0x1*(-parseInt(_0x7b781e(0x11b))/0x2)+parseInt(_0x7b781e(0x11e))/0x3+parseInt(_0x7b781e(0x120))/0x4*(-parseInt(_0x7b781e(0x11f))/0x5)+-parseInt(_0x7b781e(0x121))/0x6+parseInt(_0x7b781e(0x11d))/0x7+-parseInt(_0x7b781e(0x11c))/0x8+parseInt(_0x7b781e(0x119))/0x9;if(_0x440cbd===_0x468f11)break;else _0xef846e['push'](_0xef846e['shift']());}catch(_0x449faf){_0xef846e['push'](_0xef846e['shift']());}}}(_0x1dcb,0x4eda8));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';function _0x306f(_0x3908c5,_0x3ba7fd){var _0x1dcb8b=_0x1dcb();return _0x306f=function(_0x306ffe,_0x59318a){_0x306ffe=_0x306ffe-0x119;var _0x5dffd7=_0x1dcb8b[_0x306ffe];return _0x5dffd7;},_0x306f(_0x3908c5,_0x3ba7fd);}export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';

View File

@@ -1 +1 @@
(function(_0x5e0987,_0x338877){const _0x3939c4=_0x2c8d,_0x3a96dc=_0x5e0987();while(!![]){try{const _0x1ca36a=-parseInt(_0x3939c4(0xcf))/0x1*(parseInt(_0x3939c4(0xd2))/0x2)+parseInt(_0x3939c4(0xda))/0x3+-parseInt(_0x3939c4(0xd0))/0x4*(-parseInt(_0x3939c4(0xcd))/0x5)+parseInt(_0x3939c4(0xca))/0x6+-parseInt(_0x3939c4(0xcb))/0x7+parseInt(_0x3939c4(0xd9))/0x8+parseInt(_0x3939c4(0xd1))/0x9*(-parseInt(_0x3939c4(0xc7))/0xa);if(_0x1ca36a===_0x338877)break;else _0x3a96dc['push'](_0x3a96dc['shift']());}catch(_0x53321c){_0x3a96dc['push'](_0x3a96dc['shift']());}}}(_0x241f,0x479a6));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x255961 from'node:path';function _0x241f(){const _0x2b8e88=['guid.txt','32470rYYcsY','gUsJg','utf-8','3030042RPpGjq','1320662CIJRYA','KcvjA','5iYuEdG','curVersion','233687YpbkMU','640264qSeGSX','549QvbGLC','2YXeZKl','join','mbMZO','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','assign','temp','version','973576krHYKP','380808GxQIxG','readFileSync','mkdirSync'];_0x241f=function(){return _0x2b8e88;};return _0x241f();}import _0x26acb7 from'node:fs';function _0x2c8d(_0x58189d,_0x509f08){const _0x241ffd=_0x241f();return _0x2c8d=function(_0x2c8def,_0xbeb7a9){_0x2c8def=_0x2c8def-0xc5;let _0x243abb=_0x241ffd[_0x2c8def];return _0x243abb;},_0x2c8d(_0x58189d,_0x509f08);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0xbfec3f,_0x9de278,_0x51c8d6){const _0x300eb7=_0x2c8d,_0x54482a={'KcvjA':'NapCat','mbMZO':_0x300eb7(0xc6),'gUsJg':function(_0x25786a){return _0x25786a();},'iVsfj':_0x300eb7(0xc9),'RUULm':_0x300eb7(0xd5)},_0x21587f=_0x255961['join'](_0x51c8d6,_0x54482a[_0x300eb7(0xcc)],_0x300eb7(0xd7));_0x26acb7[_0x300eb7(0xc5)](_0x21587f,{'recursive':!![]});const _0x22d971=_0x255961[_0x300eb7(0xd3)](_0x51c8d6,_0x54482a[_0x300eb7(0xcc)],_0x54482a[_0x300eb7(0xd4)]);let _0x34e999=_0x54482a[_0x300eb7(0xc8)](randomUUID);try{_0x34e999=_0x26acb7[_0x300eb7(0xdb)](_0x255961['join'](_0x22d971),_0x54482a['iVsfj']);}catch(_0xd78ee8){_0x26acb7['writeFileSync'](_0x255961[_0x300eb7(0xd3)](_0x22d971),_0x34e999,_0x300eb7(0xc9));}const _0x30ab09={'selfUin':_0xbfec3f,'selfUid':_0x9de278,'desktopPathConfig':{'account_path':_0x51c8d6},'clientVer':qqVersionConfigInfo[_0x300eb7(0xce)],'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':_0x21587f,'deviceInfo':{'guid':_0x34e999,'buildVer':qqPkgInfo[_0x300eb7(0xd8)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x54482a['RUULm']};return Object[_0x300eb7(0xd6)](sessionConfig,_0x30ab09),_0x30ab09;}
(function(_0x116e78,_0x1cbd80){const _0x31ca22=_0x3cdc,_0x3f273d=_0x116e78();while(!![]){try{const _0x174370=-parseInt(_0x31ca22(0x7b))/0x1*(-parseInt(_0x31ca22(0x75))/0x2)+-parseInt(_0x31ca22(0x83))/0x3+parseInt(_0x31ca22(0x82))/0x4*(parseInt(_0x31ca22(0x70))/0x5)+-parseInt(_0x31ca22(0x81))/0x6*(parseInt(_0x31ca22(0x6c))/0x7)+-parseInt(_0x31ca22(0x6e))/0x8*(parseInt(_0x31ca22(0x7f))/0x9)+-parseInt(_0x31ca22(0x77))/0xa*(parseInt(_0x31ca22(0x6a))/0xb)+parseInt(_0x31ca22(0x76))/0xc*(parseInt(_0x31ca22(0x7c))/0xd);if(_0x174370===_0x1cbd80)break;else _0x3f273d['push'](_0x3f273d['shift']());}catch(_0x7376ac){_0x3f273d['push'](_0x3f273d['shift']());}}}(_0x442e,0x95b2f));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x3cdc(_0x115e00,_0x21cc7e){const _0x442ea0=_0x442e();return _0x3cdc=function(_0x3cdc4c,_0x3aeeeb){_0x3cdc4c=_0x3cdc4c-0x6a;let _0x3f90e4=_0x442ea0[_0x3cdc4c];return _0x3f90e4;},_0x3cdc(_0x115e00,_0x21cc7e);}import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x39869c from'node:path';import _0x2e7a98 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x4b73cf,_0x164873,_0xaacc8){const _0x2249df=_0x3cdc,_0x4b8b69={'QYkof':_0x2249df(0x7a),'ytccf':_0x2249df(0x80),'uJWOp':'guid.txt','tmvRo':function(_0x1f7572){return _0x1f7572();},'uSScc':_0x2249df(0x7d)},_0x3d2736=_0x39869c[_0x2249df(0x6f)](_0xaacc8,_0x4b8b69['QYkof'],_0x4b8b69[_0x2249df(0x78)]);_0x2e7a98[_0x2249df(0x72)](_0x3d2736,{'recursive':!![]});const _0x40fab0=_0x39869c[_0x2249df(0x6f)](_0xaacc8,_0x4b8b69['QYkof'],_0x4b8b69[_0x2249df(0x6b)]);let _0x35b592=_0x4b8b69['tmvRo'](randomUUID);try{_0x35b592=_0x2e7a98['readFileSync'](_0x39869c[_0x2249df(0x6f)](_0x40fab0),_0x4b8b69[_0x2249df(0x6d)]);}catch(_0x2f74bf){_0x2e7a98[_0x2249df(0x79)](_0x39869c[_0x2249df(0x6f)](_0x40fab0),_0x35b592,_0x2249df(0x7d));}const _0x2b1e56={'selfUin':_0x4b73cf,'selfUid':_0x164873,'desktopPathConfig':{'account_path':_0xaacc8},'clientVer':qqVersionConfigInfo[_0x2249df(0x71)],'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':_0x3d2736,'deviceInfo':{'guid':_0x35b592,'buildVer':qqPkgInfo[_0x2249df(0x7e)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x2249df(0x74)};return Object[_0x2249df(0x73)](sessionConfig,_0x2b1e56),_0x2b1e56;}function _0x442e(){const _0x11fcc2=['1032RqMqmQ','20UIoutd','ytccf','writeFileSync','NapCat','1lbNQdl','272103KjYwDL','utf-8','version','3078909qjUGdV','temp','68130empPtP','49688XsnUIP','1219173vKLMEC','5995627ZPDDzH','uJWOp','42hxXcOy','uSScc','16zjCrQz','join','140pxDQLs','curVersion','mkdirSync','assign','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','1428244rxpbrE'];_0x442e=function(){return _0x11fcc2;};return _0x442e();}

View File

@@ -1 +1 @@
const _0x11fdd2=_0x3fb1;function _0x3fb1(_0x358dbb,_0x3b3231){const _0x1618af=_0x1618();return _0x3fb1=function(_0x3fb116,_0x23e073){_0x3fb116=_0x3fb116-0x1b1;let _0x7f4b11=_0x1618af[_0x3fb116];return _0x7f4b11;},_0x3fb1(_0x358dbb,_0x3b3231);}(function(_0x4b2463,_0xcb9f74){const _0x322502=_0x3fb1,_0x3d4f12=_0x4b2463();while(!![]){try{const _0x3f4bb5=parseInt(_0x322502(0x1b3))/0x1+-parseInt(_0x322502(0x1c1))/0x2*(-parseInt(_0x322502(0x1bb))/0x3)+-parseInt(_0x322502(0x1b8))/0x4+parseInt(_0x322502(0x1bf))/0x5+parseInt(_0x322502(0x1c0))/0x6*(-parseInt(_0x322502(0x1be))/0x7)+parseInt(_0x322502(0x1b7))/0x8*(-parseInt(_0x322502(0x1b2))/0x9)+parseInt(_0x322502(0x1c3))/0xa;if(_0x3f4bb5===_0xcb9f74)break;else _0x3d4f12['push'](_0x3d4f12['shift']());}catch(_0x3e2f69){_0x3d4f12['push'](_0x3d4f12['shift']());}}}(_0x1618,0xc2694));import _0x301216 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x1618(){const _0x26c012=['12639820nSIBHk','INFO','getConfigPath','2151GjEnHl','1192058uqZrUg','napcat_','consoleLog','.json','36664FrgKFP','3400016tplOSG','join','DEBUG','930333TRvJTS','getConfigDir','uin','57463xzsofg','1177350WvokkW','870lxBfaQ','8kiKmlg','consoleLogLevel'];_0x1618=function(){return _0x26c012;};return _0x1618();}class Config extends ConfigBase{['fileLog']=!![];[_0x11fdd2(0x1b5)]=!![];['fileLogLevel']=LogLevel[_0x11fdd2(0x1ba)];[_0x11fdd2(0x1c2)]=LogLevel[_0x11fdd2(0x1c4)];constructor(){super();}[_0x11fdd2(0x1b1)](){const _0x4ef7fc=_0x11fdd2;return _0x301216[_0x4ef7fc(0x1b9)](this[_0x4ef7fc(0x1bc)](),_0x4ef7fc(0x1b4)+selfInfo[_0x4ef7fc(0x1bd)]+_0x4ef7fc(0x1b6));}}export const napCatConfig=new Config();
const _0x58a7cf=_0x208a;(function(_0x5ab679,_0x7f5bb6){const _0x50356a=_0x208a,_0x2c4fca=_0x5ab679();while(!![]){try{const _0x10f9fa=parseInt(_0x50356a(0xe9))/0x1*(-parseInt(_0x50356a(0xec))/0x2)+-parseInt(_0x50356a(0xf1))/0x3*(parseInt(_0x50356a(0xe7))/0x4)+parseInt(_0x50356a(0xf3))/0x5+parseInt(_0x50356a(0xf7))/0x6*(parseInt(_0x50356a(0xe6))/0x7)+-parseInt(_0x50356a(0xf5))/0x8*(parseInt(_0x50356a(0xea))/0x9)+-parseInt(_0x50356a(0xfa))/0xa+-parseInt(_0x50356a(0xee))/0xb*(-parseInt(_0x50356a(0xed))/0xc);if(_0x10f9fa===_0x7f5bb6)break;else _0x2c4fca['push'](_0x2c4fca['shift']());}catch(_0x264a27){_0x2c4fca['push'](_0x2c4fca['shift']());}}}(_0x537b,0x74783));import _0x2aea36 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x208a(_0x1d7ae0,_0x5086d0){const _0x537bed=_0x537b();return _0x208a=function(_0x208aac,_0x4c7424){_0x208aac=_0x208aac-0xe6;let _0x7ff384=_0x537bed[_0x208aac];return _0x7ff384;},_0x208a(_0x1d7ae0,_0x5086d0);}function _0x537b(){const _0x345389=['consoleLog','10704qzsRwZ','getConfigDir','431022dNZgtc','join','DEBUG','2544820LerJsQ','uin','91cqxoGy','36yTcCzd','fileLog','2PwQwZd','3600WMKzlv','consoleLogLevel','34354qvMbea','12InQEse','4927945HJGrAZ','fileLogLevel','napcat_','294030sxbhpc','INFO','4006545xUsqgf'];_0x537b=function(){return _0x345389;};return _0x537b();}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x58a7cf(0xe8)]=!![];[_0x58a7cf(0xf4)]=!![];[_0x58a7cf(0xef)]=LogLevel[_0x58a7cf(0xf9)];[_0x58a7cf(0xeb)]=LogLevel[_0x58a7cf(0xf2)];constructor(){super();}['getConfigPath'](){const _0x592eaf=_0x58a7cf;return _0x2aea36[_0x592eaf(0xf8)](this[_0x592eaf(0xf6)](),_0x592eaf(0xf0)+selfInfo[_0x592eaf(0xfb)]+'.json');}}export const napCatConfig=new Config();

File diff suppressed because one or more lines are too long

15
src/core.lib/src/utils/rkey.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
interface ServerRkeyData {
group_rkey: string;
private_rkey: string;
expired_time: number;
}
declare class RkeyManager {
serverUrl: string;
private rkeyData;
constructor(serverUrl: string);
getRkey(): Promise<ServerRkeyData>;
isExpired(): boolean;
refreshRkey(): Promise<any>;
}
export declare const rkeyManager: RkeyManager;
export {};

View File

@@ -0,0 +1 @@
const _0x94d395=_0x2ce3;function _0x2fc2(){const _0x452f5d=['isExpired','HttpGetJson','605144FMoJEZ','lgAuw','getRkey','GET','refreshRkey','9XUAgsh','http://napcat-sign.wumiao.wang:2082/rkey','473972axhgyU','23534xUsOzX','18UqXQsn','5XhUxZo','获取rkey失败','2068500mgTQdt','742091beVrss','112078jSJdIu','serverUrl','2027616VNejBu','rkeyData'];_0x2fc2=function(){return _0x452f5d;};return _0x2fc2();}(function(_0x1d541e,_0x30d1e6){const _0x317e8e=_0x2ce3,_0x51bb80=_0x1d541e();while(!![]){try{const _0x22ee96=-parseInt(_0x317e8e(0x119))/0x1+-parseInt(_0x317e8e(0x11f))/0x2*(parseInt(_0x317e8e(0x116))/0x3)+-parseInt(_0x317e8e(0x118))/0x4*(parseInt(_0x317e8e(0x11b))/0x5)+parseInt(_0x317e8e(0x121))/0x6+-parseInt(_0x317e8e(0x11e))/0x7+parseInt(_0x317e8e(0x125))/0x8*(parseInt(_0x317e8e(0x11a))/0x9)+parseInt(_0x317e8e(0x11d))/0xa;if(_0x22ee96===_0x30d1e6)break;else _0x51bb80['push'](_0x51bb80['shift']());}catch(_0x316da3){_0x51bb80['push'](_0x51bb80['shift']());}}}(_0x2fc2,0x4456b));function _0x2ce3(_0x80bf2f,_0x1aa09a){const _0x2fc269=_0x2fc2();return _0x2ce3=function(_0x2ce3c4,_0x24694e){_0x2ce3c4=_0x2ce3c4-0x112;let _0x193b24=_0x2fc269[_0x2ce3c4];return _0x193b24;},_0x2ce3(_0x80bf2f,_0x1aa09a);}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x94d395(0x120)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x440f76){const _0x262df6=_0x94d395;this[_0x262df6(0x120)]=_0x440f76;}async[_0x94d395(0x113)](){const _0x3f112a=_0x94d395,_0xf0558a={'pHDoW':function(_0x2125c1,_0x487bc1,_0x35a79a){return _0x2125c1(_0x487bc1,_0x35a79a);}};if(this['isExpired']())try{await this['refreshRkey']();}catch(_0x4e3d72){_0xf0558a['pHDoW'](logError,_0x3f112a(0x11c),_0x4e3d72);}return this[_0x3f112a(0x122)];}[_0x94d395(0x123)](){const _0x48aaa=_0x94d395,_0x306e15={'QMGmP':function(_0x2427e1,_0x502465){return _0x2427e1/_0x502465;},'lgAuw':function(_0xa18351,_0x4b0952){return _0xa18351>_0x4b0952;}},_0x2728eb=_0x306e15['QMGmP'](new Date()['getTime'](),0x3e8);return _0x306e15[_0x48aaa(0x112)](_0x2728eb,this[_0x48aaa(0x122)]['expired_time']);}async[_0x94d395(0x115)](){const _0x1d8a6b=_0x94d395;this[_0x1d8a6b(0x122)]=await RequestUtil[_0x1d8a6b(0x124)](this[_0x1d8a6b(0x120)],_0x1d8a6b(0x114));}}export const rkeyManager=new RkeyManager(_0x94d395(0x117));

View File

@@ -7,50 +7,52 @@ import { NodeIKernelRobotService } from './services/NodeIKernelRobotService';
export interface NodeQQNTWrapperUtil {
new (): NodeQQNTWrapperUtil;
getNTUserDataInfoConfig(): string;
emptyWorkingSet(n: 38704): void;
getSsoCmdOfOidbReq(...args: unknown[]): unknown;
emptyWorkingSet(n: number): void;
getSsoCmdOfOidbReq(arg1: number, arg2: number): unknown;
getSsoBufferOfOidbReq(...args: unknown[]): unknown;
getOidbRspInfo(...args: unknown[]): unknown;
getFileSize(...args: unknown[]): Promise<number>;
genFileMd5Buf(...args: unknown[]): unknown;
genFileMd5Hex(...args: unknown[]): unknown;
genFileShaBuf(...args: unknown[]): unknown;
genFileCumulateSha1(...args: unknown[]): unknown;
genFileShaHex(...args: unknown[]): unknown;
fileIsExist(...args: unknown[]): unknown;
startTrace(...args: unknown[]): unknown;
copyFile(...args: unknown[]): unknown;
genFileShaAndMd5Hex(...args: unknown[]): unknown;
setTraceInfo(...args: unknown[]): unknown;
encodeOffLine(...args: unknown[]): unknown;
decodeOffLine(...args: unknown[]): unknown;
DecoderRecentInfo(...args: unknown[]): unknown;
getPinyin(...args: unknown[]): unknown;
matchInPinyin(...args: unknown[]): unknown;
makeDirByPath(...args: unknown[]): unknown;
emptyWorkingSet(...args: unknown[]): unknown;
runProcess(...args: unknown[]): unknown;
runProcessArgs(...args: unknown[]): unknown;
calcThumbSize(...args: unknown[]): unknown;
fullWordToHalfWord(...args: unknown[]): unknown;
getNTUserDataInfoConfig(...args: unknown[]): unknown;
pathIsReadableAndWriteable(...args: unknown[]): unknown;
resetUserDataSavePathToDocument(...args: unknown[]): unknown;
getSoBuildInfo(...args: unknown[]): unknown;
registerCountInstruments(...args: unknown[]): unknown;
registerValueInstruments(...args: unknown[]): unknown;
registerValueInstrumentsWithBoundary(...args: unknown[]): unknown;
reportCountIndicators(...args: unknown[]): unknown;
reportValueIndicators(...args: unknown[]): unknown;
checkNewUserDataSaveDirAvailable(...args: unknown[]): unknown;
copyUserData(...args: unknown[]): unknown;
setUserDataSaveDirectory(...args: unknown[]): unknown;
hasOtherRunningQQProcess(...args: unknown[]): unknown;
quitAllRunningQQProcess(...args: unknown[]): unknown;
checkNvidiaConfig(...args: unknown[]): unknown;
repairNvidiaConfig(...args: unknown[]): unknown;
getNvidiaDriverVersion(...args: unknown[]): unknown;
isNull(...args: unknown[]): unknown;
getOidbRspInfo(arg: string): unknown;
getFileSize(path: string): Promise<number>;
genFileMd5Buf(arg: string): unknown;
genFileMd5Hex(path: string): unknown;
genFileShaBuf(path: string): unknown;
genFileCumulateSha1(path: string): unknown;
genFileShaHex(path: string): unknown;
fileIsExist(path: string): unknown;
startTrace(path: string): unknown;
copyFile(src: string, dst: string): unknown;
genFileShaAndMd5Hex(path: string, unknown: number): unknown;
setTraceInfo(unknown: Object): unknown;
encodeOffLine(unknown: Object): unknown;
decodeOffLine(arg: string): unknown;
DecoderRecentInfo(arg: string): unknown;
getPinyin(arg0: string, arg1: boolean): unknown;
matchInPinyin(arg0: any[], arg1: string): unknown;
makeDirByPath(arg0: string): unknown;
emptyWorkingSet(arg0: number): unknown;
runProcess(arg0: string, arg1: boolean): unknown;
runProcessArgs(arg0: string, arg1: {
[key: string]: string;
}, arg2: boolean): unknown;
calcThumbSize(arg0: number, arg1: number, arg2: Object): unknown;
fullWordToHalfWord(arg0: string): unknown;
getNTUserDataInfoConfig(): unknown;
pathIsReadableAndWriteable(path: string): unknown;
resetUserDataSavePathToDocument(): unknown;
getSoBuildInfo(): any;
registerCountInstruments(arg0: string, arg1: string[], arg2: number, arg3: number): unknown;
registerValueInstruments(arg0: string, arg1: string[], arg2: number, arg3: number): unknown;
registerValueInstrumentsWithBoundary(arg0: string, arg1: unknown, arg2: unknown, arg3: number, arg4: number): unknown;
reportCountIndicators(arg0: string, arg1: Map<unknown, unknown>, arg2: string, arg3: number, arg4: boolean): unknown;
reportValueIndicators(arg0: string, arg1: Map<unknown, unknown>, arg2: string, arg3: boolean, arg4: number): unknown;
checkNewUserDataSaveDirAvailable(arg0: string): unknown;
copyUserData(arg0: string, arg1: string): Promise<any>;
setUserDataSaveDirectory(arg0: string): Promise<any>;
hasOtherRunningQQProcess(): boolean;
quitAllRunningQQProcess(arg: boolean): unknown;
checkNvidiaConfig(): unknown;
repairNvidiaConfig(): unknown;
getNvidiaDriverVersion(): unknown;
isNull(): unknown;
}
export interface NodeIQQNTWrapperSession {
new (): NodeIQQNTWrapperSession;

View File

@@ -1 +1 @@
const _0x5383e6=_0x35da;(function(_0x21936b,_0xba324a){const _0x586691=_0x35da,_0x441b87=_0x21936b();while(!![]){try{const _0x25ff3e=-parseInt(_0x586691(0x1ef))/0x1+parseInt(_0x586691(0x1eb))/0x2*(-parseInt(_0x586691(0x1ea))/0x3)+-parseInt(_0x586691(0x1f4))/0x4*(-parseInt(_0x586691(0x1ec))/0x5)+-parseInt(_0x586691(0x1f5))/0x6+-parseInt(_0x586691(0x1f3))/0x7+-parseInt(_0x586691(0x1f1))/0x8+parseInt(_0x586691(0x1f0))/0x9*(parseInt(_0x586691(0x1e9))/0xa);if(_0x25ff3e===_0xba324a)break;else _0x441b87['push'](_0x441b87['shift']());}catch(_0x1e2f58){_0x441b87['push'](_0x441b87['shift']());}}}(_0xd806,0x8756e));import _0x1bb093 from'node:path';import _0x3ffe57 from'node:fs';function _0x35da(_0x12008e,_0x56a903){const _0xd80675=_0xd806();return _0x35da=function(_0x35da7f,_0x4dc960){_0x35da7f=_0x35da7f-0x1e9;let _0x5808b0=_0xd80675[_0x35da7f];return _0x5808b0;},_0x35da(_0x12008e,_0x56a903);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x1bb093[_0x5383e6(0x1ee)](_0x1bb093['dirname'](process[_0x5383e6(0x1f6)]),_0x5383e6(0x1fa));!_0x3ffe57[_0x5383e6(0x1ed)](wrapperNodePath)&&(wrapperNodePath=_0x1bb093[_0x5383e6(0x1f2)](_0x1bb093[_0x5383e6(0x1f7)](process['execPath']),_0x5383e6(0x1f8)+qqVersionConfigInfo['curVersion']+_0x5383e6(0x1f9)));function _0xd806(){const _0x91e217=['8160152dCBymS','join','4129356dscXay','826888XfCJTK','3289332RRVdbG','execPath','dirname','resources/app/versions/','/wrapper.node','./resources/app/wrapper.node','8379610VfYEeD','1262589obQEEs','2ZQaAaf','15XMwLKh','existsSync','resolve','687kjLVzs','27UGLRsK'];_0xd806=function(){return _0x91e217;};return _0xd806();}const QQWrapper=require(wrapperNodePath);export default QQWrapper;
const _0x367aad=_0x20d8;(function(_0x2da0e8,_0xedb2c0){const _0x55ba22=_0x20d8,_0x28d6a7=_0x2da0e8();while(!![]){try{const _0x210122=-parseInt(_0x55ba22(0x1fa))/0x1*(parseInt(_0x55ba22(0x201))/0x2)+parseInt(_0x55ba22(0x1f4))/0x3+parseInt(_0x55ba22(0x1f3))/0x4+-parseInt(_0x55ba22(0x209))/0x5+parseInt(_0x55ba22(0x1f9))/0x6*(parseInt(_0x55ba22(0x1f5))/0x7)+parseInt(_0x55ba22(0x1fd))/0x8*(parseInt(_0x55ba22(0x1f7))/0x9)+-parseInt(_0x55ba22(0x20a))/0xa;if(_0x210122===_0xedb2c0)break;else _0x28d6a7['push'](_0x28d6a7['shift']());}catch(_0x2746bd){_0x28d6a7['push'](_0x28d6a7['shift']());}}}(_0x3669,0xc291b));import _0x287006 from'node:path';function _0x3669(){const _0x3bb45f=['./resources/app/wrapper.node','\x0amodule.exports\x20=\x20require(\x22','778564ntAiaR','3071820OPhskT','9352tQIpXR','writeFileSync','27lSmAWj','join','2724JjxLmX','11qaPRWg','execPath','/wrapper.node','3815704BVqxhc','resolve','\x22);\x0aexports\x20=\x20module.exports;\x0a','WrapperLoader.cjs','69592yiueLl','file://','replace','resources/app/versions/','existsSync','default','url','dirname','1342400KysHiz','18078230qgQOUh','curVersion'];_0x3669=function(){return _0x3bb45f;};return _0x3669();}import _0x1b01b0 from'node:fs';function _0x20d8(_0x48c230,_0x329f1d){const _0x3669a5=_0x3669();return _0x20d8=function(_0x20d831,_0x220017){_0x20d831=_0x20d831-0x1f2;let _0xe32ad7=_0x3669a5[_0x20d831];return _0xe32ad7;},_0x20d8(_0x48c230,_0x329f1d);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x367aad(0x207)]),__dirname=dirname(__filename);let wrapperNodePath=_0x287006[_0x367aad(0x1fe)](_0x287006[_0x367aad(0x208)](process[_0x367aad(0x1fb)]),_0x367aad(0x20c));!_0x1b01b0[_0x367aad(0x205)](wrapperNodePath)&&(wrapperNodePath=_0x287006[_0x367aad(0x1f8)](_0x287006[_0x367aad(0x208)](process['execPath']),_0x367aad(0x204)+qqVersionConfigInfo[_0x367aad(0x20b)]+_0x367aad(0x1fc)));let WrapperLoader=_0x287006[_0x367aad(0x1f8)](__dirname,_0x367aad(0x200));_0x1b01b0[_0x367aad(0x1f6)](WrapperLoader,_0x367aad(0x1f2)+wrapperNodePath[_0x367aad(0x203)](/\\/g,'\x5c\x5c')+_0x367aad(0x1ff));const QQWrapper=(await import(_0x367aad(0x202)+WrapperLoader))[_0x367aad(0x206)];export default QQWrapper;

View File

@@ -2,29 +2,33 @@ import { napCatCore } from '@/core';
import { program } from 'commander';
import qrcode from 'qrcode-terminal';
import fs from 'fs/promises';
import fsSync from 'fs';
import path from 'node:path';
import { postLoginStatus } from '@/common/utils/umami';
import { checkVersion } from '@/common/utils/version';
import { log, logDebug, logError, LogLevel, setLogLevel } from '@/common/utils/log';
import { NapCatOnebot11 } from '@/onebot11/main';
import { hookApi } from '@/core/external/hook';
import { InitWebUi } from './webui/index';
import { DataRuntime } from './webui/src/helper/Data';
import { WebUiDataRuntime } from './webui/src/helper/Data';
import { UpdateConfig } from './common/utils/helper';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
program
.option('-q, --qq <type>', 'QQ号')
.parse(process.argv);
// 无缝升级旧的配置到新的 应在1.3.5发布 1.5.5 左右移除兼容支持
UpdateConfig().catch(logError);
// 启动WebUi
InitWebUi();
const cmdOptions = program.opts();
// console.log(process.argv);
for (let k = 0; k < 30; k++) {
new Promise((r, j) => {
hookApi.getRKey();
}).then();
}
checkVersion().then((remoteVersion: string) => {
const localVersion = require('./package.json').version;
checkVersion().then(async (remoteVersion: string) => {
const localVersion = JSON.parse(fsSync.readFileSync(path.join(__dirname, 'package.json')).toString()).version;
const localVersionList = localVersion.split('.');
const remoteVersionList = remoteVersion.split('.');
log('[NapCat] 当前版本:', localVersion);
@@ -39,17 +43,20 @@ checkVersion().then((remoteVersion: string) => {
logDebug('[NapCat] 当前已是最新版本');
return;
}).catch((e) => {
logError('[NapCat] 检测更新失败');
logError('[NapCat] 检测更新失败', e);
});
new NapCatOnebot11();
// 不是很好待优化
const NapCat_OneBot11 = new NapCatOnebot11();
WebUiDataRuntime.setOB11ConfigCall(NapCat_OneBot11.SetConfig);
napCatCore.onLoginSuccess((uin, uid) => {
console.log('登录成功!');
DataRuntime.setQQLoginStatus(true);
DataRuntime.setQQLoginUin(uin.toString());
postLoginStatus();
WebUiDataRuntime.setQQLoginStatus(true);
WebUiDataRuntime.setQQLoginUin(uin.toString());
});
const showQRCode = async (url: string, base64: string, buffer: Buffer) => {
await DataRuntime.setQQLoginQrcodeURL(url);
await WebUiDataRuntime.setQQLoginQrcodeURL(url);
console.log('请扫描下面的二维码然后在手Q上授权登录');
const qrcodePath = path.join(__dirname, 'qrcode.png');
qrcode.generate(url, { small: true }, (res) => {
@@ -65,12 +72,12 @@ const quickLoginQQ = cmdOptions.qq;
// napCatCore.qrLogin().then().catch(console.error);
// });
napCatCore.getQuickLoginList().then((res) => {
// 遍历 res.LocalLoginInfoList[x].isQuickLogin是否可以可以 res.LocalLoginInfoList[x].uin 转为string 加入string[] 最后遍历完成调用DataRuntime.setQQQuickLoginList
DataRuntime.setQQQuickLoginList(res.LocalLoginInfoList.filter((item) => item.isQuickLogin).map((item) => item.uin.toString()));
// 遍历 res.LocalLoginInfoList[x].isQuickLogin是否可以可以 res.LocalLoginInfoList[x].uin 转为string 加入string[] 最后遍历完成调用WebUiDataRuntime.setQQQuickLoginList
WebUiDataRuntime.setQQQuickLoginList(res.LocalLoginInfoList.filter((item) => item.isQuickLogin).map((item) => item.uin.toString()));
});
DataRuntime.setQQQuickLogin(async (uin: string) => {
let QuickLogin: Promise<{ result: boolean, message: string }> = new Promise((resolve, reject) => {
WebUiDataRuntime.setQQQuickLoginCall(async (uin: string) => {
const QuickLogin: Promise<{ result: boolean, message: string }> = new Promise((resolve, reject) => {
if (quickLoginQQ) {
log('正在快速登录 ', quickLoginQQ);
napCatCore.quickLogin(quickLoginQQ).then(res => {
@@ -86,7 +93,7 @@ DataRuntime.setQQQuickLogin(async (uin: string) => {
resolve({ result: false, message: '快速登录失败' });
}
});
let result = await QuickLogin;
const result = await QuickLogin;
return result;
});

View File

@@ -1,15 +1,29 @@
import { ActionName, BaseCheckResult } from './types';
import { OB11Response } from './OB11Response';
import { OB11Return } from '../types';
import { log, logError } from '../../common/utils/log';
import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
class BaseAction<PayloadType, ReturnDataType> {
actionName!: ActionName;
private validate: undefined | ValidateFunction<any> = undefined;
PayloadSchema: any = undefined;
protected async check(payload: PayloadType): Promise<BaseCheckResult> {
if (this.PayloadSchema) {
this.validate = new Ajv({ allowUnionTypes: true }).compile(this.PayloadSchema);
}
if (this.validate && !this.validate(payload)) {
const errors = this.validate.errors as ErrorObject[];
const errorMessages: string[] = errors.map((e) => {
return `Key: ${e.instancePath.split('/').slice(1).join('.')}, Message: ${e.message}`;
});
return {
valid: false,
message: errorMessages.join('\n') as string || '未知错误'
};
}
return {
valid: true,
valid: true
};
}

View File

@@ -0,0 +1,14 @@
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { rawFriends, friends } from '@/core/data';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { BuddyCategoryType } from '@/core/entities/';
export class GetFriendWithCategory extends BaseAction<void, Array<BuddyCategoryType>> {
actionName = ActionName.GetFriendsWithCategory;
protected async _handle(payload: void) {
return rawFriends;
}
}

Some files were not shown because too many files have changed in this diff Show More