Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9d1d84716 | ||
|
|
64b2d547ce | ||
|
|
d8d2ff7e4e | ||
|
|
8aa5dc6482 | ||
|
|
474ba20e61 | ||
|
|
bdea2d02a9 | ||
|
|
c4307481f1 | ||
|
|
b8ac1b28bd | ||
|
|
24038cda95 | ||
|
|
86c82e9608 | ||
|
|
daab5d150b | ||
|
|
9ff82bdb90 | ||
|
|
c6d70ef1cf | ||
|
|
15d4bb3c76 | ||
|
|
3e698981fd | ||
|
|
9d45c934a5 | ||
|
|
c2bf9cf93e | ||
|
|
b3c6fd7f26 | ||
|
|
ccd155de71 | ||
|
|
1f90d2e46b | ||
|
|
4c5d974c22 | ||
|
|
392eda1cbc | ||
|
|
a9da3279e8 | ||
|
|
1ce8351180 | ||
|
|
96c334478a | ||
|
|
f1b0875b05 | ||
|
|
cea9e11c83 | ||
|
|
f098b39200 | ||
|
|
012d948b59 | ||
|
|
3334cd0a71 | ||
|
|
d63d53fd88 | ||
|
|
a7fa39b2fd | ||
|
|
40bb42e193 | ||
|
|
9c382c639b | ||
|
|
a43cde38f1 | ||
|
|
c35d2e08cd | ||
|
|
3377c383c1 | ||
|
|
c00e6d95cd | ||
|
|
725fccf4ed | ||
|
|
13129bd219 | ||
|
|
4561977bcf | ||
|
|
40be8a91f5 | ||
|
|
2a04d5830b | ||
|
|
82a38574f3 | ||
|
|
fea3a33c2b | ||
|
|
9a502cdf6f | ||
|
|
4b616299cf | ||
|
|
102243e064 | ||
|
|
4b21ac5ebe | ||
|
|
4dd7363dd3 | ||
|
|
3d5e5ab78f | ||
|
|
73045a1b21 | ||
|
|
871173a7cf | ||
|
|
0002313093 | ||
|
|
948cf5cca6 | ||
|
|
d40230879c | ||
|
|
ab22b775f1 | ||
|
|
42c85224ba | ||
|
|
e57444a353 | ||
|
|
3c6503d495 | ||
|
|
149b518f48 | ||
|
|
74621447ff | ||
|
|
3280952931 | ||
|
|
9e670e2736 | ||
|
|
9fc6347a2f | ||
|
|
ec7a15a192 | ||
|
|
7f99982810 | ||
|
|
935d83aaf8 | ||
|
|
0ff6edd546 | ||
|
|
94f629585a | ||
|
|
89c04be02f | ||
|
|
3151965ea8 | ||
|
|
bdf5159be1 | ||
|
|
0499ebbea3 | ||
|
|
d5843b7236 | ||
|
|
1c9c574a90 | ||
|
|
39acf20e48 | ||
|
|
52eb6ed5ab | ||
|
|
ee78d2d59d | ||
|
|
60dc5c4a38 | ||
|
|
50a0dc0355 | ||
|
|
3f681ec914 | ||
|
|
0bf499f191 | ||
|
|
389695a0d6 | ||
|
|
07f1afb312 | ||
|
|
ae91e61304 | ||
|
|
6248991b01 | ||
|
|
7f2d57ef62 | ||
|
|
31f8f884f1 | ||
|
|
4f4af5985a | ||
|
|
a716fdf6d4 | ||
|
|
9717f64abd | ||
|
|
adf239183a | ||
|
|
6cf209c79c | ||
|
|
decc5fb3c0 | ||
|
|
1e0820d613 | ||
|
|
70124d5177 | ||
|
|
269de65201 | ||
|
|
1d11abbfb6 | ||
|
|
700f308d6e | ||
|
|
21b6928ca6 | ||
|
|
998c67a649 | ||
|
|
fb99e878b0 | ||
|
|
1619adfc27 | ||
|
|
5510fb473f | ||
|
|
be1878cb2b | ||
|
|
15ab121cbd | ||
|
|
aa79b0e861 | ||
|
|
b80e550bcd | ||
|
|
dbc40b5814 | ||
|
|
0d5696a644 | ||
|
|
ceffa05802 | ||
|
|
d5668920b6 | ||
|
|
516f2da144 | ||
|
|
33c94e1888 | ||
|
|
51ab58cd91 | ||
|
|
aa7798d1d1 | ||
|
|
9067a1fc92 | ||
|
|
4024b6c564 | ||
|
|
d39730928b | ||
|
|
e1f049229c | ||
|
|
8f2676ec19 | ||
|
|
32d26248dc | ||
|
|
16f926401b | ||
|
|
66d60d3599 | ||
|
|
5a35ab6c34 | ||
|
|
ba1542bd31 | ||
|
|
453060945a | ||
|
|
c8351be461 | ||
|
|
9954da22a6 | ||
|
|
907b5611eb | ||
|
|
5f075de212 | ||
|
|
8fcf3c5079 | ||
|
|
07cee90c7a | ||
|
|
75ad495b98 | ||
|
|
0bb7288ad2 | ||
|
|
ad72415532 | ||
|
|
0ad0353fc0 | ||
|
|
9fa0dcd7aa | ||
|
|
1f2e80cd39 | ||
|
|
6cb6034d43 | ||
|
|
25134c6ac6 | ||
|
|
92bf42878a | ||
|
|
9f4582d158 | ||
|
|
68af73970e | ||
|
|
b6ed8d4975 | ||
|
|
d07d3645ce | ||
|
|
123759ab17 | ||
|
|
f2f1f893d8 | ||
|
|
db93a8eed2 | ||
|
|
12ab6d4a7d | ||
|
|
add759e889 | ||
|
|
f315f7977d | ||
|
|
f2f6701ebd | ||
|
|
1a92794d33 | ||
|
|
7640deb798 | ||
|
|
f1e8ef1cf6 | ||
|
|
5e5ac0162e | ||
|
|
0c013820f0 | ||
|
|
4b3a9e5847 | ||
|
|
e4982256a4 | ||
|
|
babc4927a8 | ||
|
|
6dd84cf469 | ||
|
|
a8800e3899 | ||
|
|
5f03496046 | ||
|
|
41500c17a2 | ||
|
|
2dcfde8b9a | ||
|
|
5c3305d8fa | ||
|
|
0d1fe99f53 | ||
|
|
4c03ffeec7 | ||
|
|
8101d17482 | ||
|
|
bc7b4dcc2a | ||
|
|
3db8b9078d | ||
|
|
943dbbefd3 | ||
|
|
480abcb853 | ||
|
|
60aaaff58e | ||
|
|
e3b889bbe8 | ||
|
|
ac5506a43b | ||
|
|
b29f533a3b | ||
|
|
a8ee86b09e | ||
|
|
0238c53302 | ||
|
|
665e3c806f | ||
|
|
8c96838441 | ||
|
|
4a722daec6 | ||
|
|
4e0cdbcb91 | ||
|
|
08976624cd | ||
|
|
fdeba94653 | ||
|
|
d3b100b7e5 | ||
|
|
1de3e18b08 | ||
|
|
d5c3c95682 | ||
|
|
dabe1e29ed | ||
|
|
203d1c0cfc | ||
|
|
7edd8601be | ||
|
|
a4423247f4 | ||
|
|
4834b203a0 | ||
|
|
bbabb32d13 | ||
|
|
95112d6bdf | ||
|
|
36cdca5a3e | ||
|
|
6980a9f3fc | ||
|
|
7b09479cd2 | ||
|
|
5825fd6f36 | ||
|
|
2d5b45dd82 | ||
|
|
52dda1d1fe | ||
|
|
420624bee4 | ||
|
|
8abde7b7d0 | ||
|
|
9e5b1ba28e | ||
|
|
b9c7d3c18e | ||
|
|
10aeccbbe5 | ||
|
|
15d351ebc2 | ||
|
|
7194f31cb6 | ||
|
|
84b7e82446 | ||
|
|
8264423b1a | ||
|
|
37f897f3bf | ||
|
|
fe3efac145 | ||
|
|
9773aebefc | ||
|
|
06f2b8c371 | ||
|
|
e8f0bb8350 | ||
|
|
9bfa6b827b | ||
|
|
b21bc17a58 | ||
|
|
f4d5d417d0 | ||
|
|
91fc83621e | ||
|
|
461feca0ca | ||
|
|
5e9afab3f7 | ||
|
|
2599ca6450 | ||
|
|
fc99ad3a39 | ||
|
|
10e1c3e72c | ||
|
|
af5dedd4d4 | ||
|
|
3b986c1076 | ||
|
|
72f77e8b7c | ||
|
|
e893bf676f | ||
|
|
80eb34f611 | ||
|
|
5d01947552 | ||
|
|
d3a025ef7b | ||
|
|
c466df841e | ||
|
|
b3c6e2a0f3 | ||
|
|
076c9cfed7 | ||
|
|
c3f3d12f83 | ||
|
|
44974034ec | ||
|
|
d6175acd38 | ||
|
|
62eee5f05c | ||
|
|
d4e5201913 | ||
|
|
f4d584765a | ||
|
|
26e224f852 | ||
|
|
252358ed66 | ||
|
|
475afeb7c8 | ||
|
|
7cbbb846eb | ||
|
|
25f947968c | ||
|
|
cad824dcbc | ||
|
|
e506f50b00 | ||
|
|
96ec149a98 | ||
|
|
8c913512f6 | ||
|
|
4cc307299d | ||
|
|
407c6b4c5f | ||
|
|
8f87070434 | ||
|
|
4a63996ee2 | ||
|
|
0358fe7620 | ||
|
|
55e64395ed | ||
|
|
ff5fb18e14 | ||
|
|
52dd960857 | ||
|
|
430221c2de | ||
|
|
217bdf8f92 | ||
|
|
38c6c869bf | ||
|
|
84d46da67e | ||
|
|
eb9d6240d7 | ||
|
|
2d44a871b0 | ||
|
|
3f89f350ff | ||
|
|
1a8407a782 | ||
|
|
cf288a3f73 | ||
|
|
f1f37fb180 | ||
|
|
fb0dd079fd | ||
|
|
a6c584c85c | ||
|
|
77adf35a30 | ||
|
|
dc6951c2a9 | ||
|
|
d14ba3f0f7 | ||
|
|
78ddf36e35 | ||
|
|
d42734624d | ||
|
|
b5dbd9d59b | ||
|
|
bed3e1289b | ||
|
|
b11ca4e60e | ||
|
|
4fcf3aa2bd | ||
|
|
dc39da8ca5 | ||
|
|
c10c87d28e | ||
|
|
c6fe6f1cc5 | ||
|
|
1c2bbeb26d | ||
|
|
17ed3692d0 | ||
|
|
966a00f41e | ||
|
|
fd8d8f89aa | ||
|
|
305bb74072 | ||
|
|
7f4dcdd134 | ||
|
|
aac37dcce1 | ||
|
|
f539c662a5 | ||
|
|
c82f346dd0 | ||
|
|
21b4a87837 | ||
|
|
ae73bcf24b | ||
|
|
2a3b56bde1 | ||
|
|
b8ebededd8 | ||
|
|
227c4c422c | ||
|
|
652bfb93cc | ||
|
|
c2278e3536 | ||
|
|
caa2fca4e8 | ||
|
|
745cb0175c | ||
|
|
e5165a780f | ||
|
|
b4b91af02b | ||
|
|
5649ff9c2e | ||
|
|
5b4bf6c62a | ||
|
|
93cb662282 | ||
|
|
00a8715e58 | ||
|
|
7ecd479b3e | ||
|
|
8fe7d3aaec | ||
|
|
f32a693393 | ||
|
|
17ebc01597 | ||
|
|
827fb698e1 | ||
|
|
32bdf10fd2 | ||
|
|
b795e6c3d2 | ||
|
|
42ba524e4e | ||
|
|
317c6d96e3 | ||
|
|
3692d1499f | ||
|
|
b21fbad8a3 | ||
|
|
743334a68a | ||
|
|
951413eb38 | ||
|
|
32dcdef853 | ||
|
|
34c9254d4a | ||
|
|
14012a4668 | ||
|
|
575debca63 | ||
|
|
763cac8532 | ||
|
|
43faacd7a7 | ||
|
|
1d4e307e96 | ||
|
|
7f8933b0de | ||
|
|
81608ff025 | ||
|
|
db63675b8e | ||
|
|
f74a83bc46 | ||
|
|
bc1deba3e4 | ||
|
|
d6113a8f0a | ||
|
|
2062cd48ea | ||
|
|
1c965ef515 | ||
|
|
58291b7156 | ||
|
|
afd1648d80 | ||
|
|
21814ffa9a | ||
|
|
9d3522da54 | ||
|
|
e07a76755e | ||
|
|
ba46bcdeae | ||
|
|
8d7e44314c | ||
|
|
35a67498c7 | ||
|
|
90dd934f95 | ||
|
|
4087045542 | ||
|
|
d11cef5907 | ||
|
|
76c91d226c | ||
|
|
c2b4dd2afd | ||
|
|
25b39cb39a | ||
|
|
35dcb7b88b | ||
|
|
e5f7e7c26e | ||
|
|
c5c11fd6a6 | ||
|
|
8134083419 | ||
|
|
a87e624198 | ||
|
|
e4c62d20b4 | ||
|
|
fa195d9e55 | ||
|
|
5ef5773d23 | ||
|
|
6eea52afdf | ||
|
|
80e64af30f | ||
|
|
563b6ddc36 | ||
|
|
c051ab9dc4 | ||
|
|
87737a8bdb | ||
|
|
94273d80b0 | ||
|
|
a08ec2a4bd | ||
|
|
d246c556f4 | ||
|
|
65aa365e38 | ||
|
|
eeeae449b4 | ||
|
|
17c10a7ba2 | ||
|
|
69f4383678 | ||
|
|
07852a7295 | ||
|
|
20b7e9b6b5 | ||
|
|
75f43ccea4 | ||
|
|
59e5785e93 | ||
|
|
b38f52dba9 | ||
|
|
2a6b17a48e | ||
|
|
a6c056a894 | ||
|
|
5c3442a71f | ||
|
|
390253242f | ||
|
|
9ab80fe1ac | ||
|
|
91fdd09e7a | ||
|
|
db5bd5c8a4 | ||
|
|
ef94c2fe7c | ||
|
|
72a25ed8e1 | ||
|
|
eb065e218f | ||
|
|
33426736fc | ||
|
|
896658d5ce | ||
|
|
b14135ed72 | ||
|
|
a1baf2e32d | ||
|
|
f9aa2d3bce | ||
|
|
c95d0e0696 | ||
|
|
ad4b84d446 | ||
|
|
3e27d5fcb0 | ||
|
|
48a100f49a | ||
|
|
698649f981 | ||
|
|
780078c3aa | ||
|
|
4c25e4ddee | ||
|
|
c0a5ac2ac5 | ||
|
|
0435409870 | ||
|
|
c521269409 | ||
|
|
1e252b7e4c | ||
|
|
d72b1edc48 | ||
|
|
f7307e8e01 | ||
|
|
127905f04b | ||
|
|
261c6dabd5 | ||
|
|
cae84bbf02 | ||
|
|
cdb2bc52fa | ||
|
|
cd2972eee0 | ||
|
|
4036aa8d0e | ||
|
|
52c6927c44 | ||
|
|
a16e0a21a2 | ||
|
|
e796b21157 | ||
|
|
1c6bc478b4 | ||
|
|
98f39c6388 | ||
|
|
570c83571b | ||
|
|
c0c38d89e0 | ||
|
|
b866cfc03c | ||
|
|
28c2755b37 | ||
|
|
57bfc5c73a | ||
|
|
0f3f7d53a3 | ||
|
|
529e50fd7f | ||
|
|
2fa283f91d | ||
|
|
029a9ade93 | ||
|
|
f1ca8b15c8 | ||
|
|
4d8edd5da9 | ||
|
|
6c63990653 | ||
|
|
5b521409c6 | ||
|
|
3268fc1014 | ||
|
|
19afb4941b | ||
|
|
40e5111d41 | ||
|
|
a3a40e1e74 | ||
|
|
101caa6826 | ||
|
|
875fed8d77 | ||
|
|
69e28eb000 | ||
|
|
e5d3a8360c | ||
|
|
4545d9285b | ||
|
|
6702024805 | ||
|
|
78bad4842b | ||
|
|
b9a913cfed | ||
|
|
6f5a6f353f | ||
|
|
790c4f589d | ||
|
|
cd1bd3461f | ||
|
|
0280dcd6a8 | ||
|
|
fc337292bc | ||
|
|
fb1daa0e21 | ||
|
|
579b9dc0c2 | ||
|
|
dedd0be352 | ||
|
|
1c7d9c3513 | ||
|
|
0c7dfe2af4 | ||
|
|
8d1351a8a3 | ||
|
|
e6e68a6036 | ||
|
|
24658edc45 | ||
|
|
09eaa3116a | ||
|
|
e9bff466b5 | ||
|
|
5d77f50160 | ||
|
|
2ab91e363f | ||
|
|
34d881426f | ||
|
|
13ecaa0ad4 | ||
|
|
ce6185b1f7 | ||
|
|
2cfde6b75a | ||
|
|
37d0354751 | ||
|
|
0a0edcf203 | ||
|
|
d6aad2ea28 | ||
|
|
63084506ee | ||
|
|
c5d313574f | ||
|
|
caab998212 | ||
|
|
aa037cc3d9 | ||
|
|
642bffe374 | ||
|
|
d682b154fc | ||
|
|
d4a06d98cf | ||
|
|
856b5e16b1 | ||
|
|
a0aa208860 | ||
|
|
037a11e04f | ||
|
|
bd8a1d715f | ||
|
|
54ab1dc091 | ||
|
|
9471e63857 | ||
|
|
fa4a403f38 | ||
|
|
d608d65bf4 | ||
|
|
c0f2df172a | ||
|
|
788ef5d81c | ||
|
|
1c6b5cffe1 | ||
|
|
c04382b623 | ||
|
|
0bbe51f8fd | ||
|
|
ff7d7d15a0 | ||
|
|
4b3d083d3a | ||
|
|
a566dd390b | ||
|
|
7d1442da04 | ||
|
|
17fc982f55 | ||
|
|
ba417e2274 | ||
|
|
d345094b75 | ||
|
|
6da477480d | ||
|
|
e274088c06 | ||
|
|
1bcaa73c5c | ||
|
|
ca94e8f621 | ||
|
|
1c4e198f59 | ||
|
|
fdd13f9c66 | ||
|
|
4333ab624e | ||
|
|
9fe1eb3a42 | ||
|
|
ad251a7682 | ||
|
|
1fa740de2d | ||
|
|
466b89064a | ||
|
|
2748cb0ba3 | ||
|
|
aef0d5bdde | ||
|
|
c71e8f024a | ||
|
|
9411f07321 | ||
|
|
9b2a5c9bbf | ||
|
|
2b275523a0 | ||
|
|
31fe2f6da4 | ||
|
|
f95db623a5 | ||
|
|
a46313e483 | ||
|
|
31c330826e | ||
|
|
c4cf800142 | ||
|
|
b64a2b0006 | ||
|
|
a3702f2270 | ||
|
|
d221b1d470 | ||
|
|
0b22a6bc1d | ||
|
|
07e8acd003 | ||
|
|
9fce617c57 | ||
|
|
8d5c736975 | ||
|
|
4ccec05186 | ||
|
|
a4f456f002 | ||
|
|
fbdb941c27 | ||
|
|
a41cd42e8d | ||
|
|
77521e4627 | ||
|
|
b6a1242bac | ||
|
|
2f325cfe26 | ||
|
|
193b0ad0f0 | ||
|
|
ed476b7793 | ||
|
|
720fd94b7f | ||
|
|
ff87da105c | ||
|
|
a875e65536 | ||
|
|
0b2c6bb662 | ||
|
|
e44e2fbbb7 | ||
|
|
b3c93644fd | ||
|
|
a56b7ff636 | ||
|
|
c724236930 | ||
|
|
4853320b2b | ||
|
|
ba1acb6ac1 | ||
|
|
f32a6320fc | ||
|
|
9f914ce36a | ||
|
|
b037644e5a | ||
|
|
afd8c59f83 | ||
|
|
8aa4af3e91 | ||
|
|
630a8a2b97 |
No files matched your search
+2
-2
@@ -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.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
VITE_BUILD_TYPE = Production
|
||||
VITE_BUILD_TYPE = Production
|
||||
+2
-1
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
# Logs
|
||||
|
||||
# Develop
|
||||
node_modules/
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
out/
|
||||
dist/
|
||||
src/core.lib/common/
|
||||
/src/core.lib/common/
|
||||
/localdebug/
|
||||
|
||||
# Editor
|
||||
.vscode/*
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# v1.2.0
|
||||
|
||||
QQ Version: Windows 9.9.9-23361 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
|
||||
* 修复图片URL,支持 Win/Linux X64 获取Rkey,暂时不支持arm64
|
||||
* 适配最新版 Windows 9.9.9-23361 / Linux 3.2.7-23361 提升了兼容性 - 修复 SYS: Listener Proxy
|
||||
* 修复群成员加入时间 上次活跃 活跃等级字段 - 影响 API: /get_group_member_info /get_group_member_list
|
||||
* 修复视频所需的 ffmpeg 路径不正确导致视频封面和时长获取失败 - 影响 Event/API
|
||||
* 优化数据库对消息储存,消耗储存减少 - 影响 Sys: OneBot
|
||||
* 修复他人管理员被撤销时没有上报
|
||||
|
||||
## 新增与调整
|
||||
* 支持商城表情发送和上报 url
|
||||
* 支持获取群公告 - 新增 API: /_get_group_notice
|
||||
* 支持了设置已读群/私聊消息接口 - 新增 API: /mark_private_msg_as_read /mark_group_msg_as_read
|
||||
* 支持了好友添加上报事件 - 新增 Event: AddFriend
|
||||
* 支持wsHost和httpHost配置
|
||||
* 支持获取官方Bot账号范围 - 新增 API: /get_robot_uin_range
|
||||
* 支持设置自身在线状态 - 新增 API: /set_online_status
|
||||
* 支持表情回应api和上报 - 新增 Event/API
|
||||
* 支持获取Cookies 实现更加稳定 且支持Skey缓存3600S Pskey每次刷新 - 新增 API: /get_cookies
|
||||
* 支持 服务端踢下线 / 其它设备上线 / 重复登录 / 自身在线状态变更 日志 - 新增 Sys: Log
|
||||
* 支持了消息统计 - API: /get_status
|
||||
* 支持单条消息转发 - API /forward_friend_single_msg、/forward_group_single_msg
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -26,9 +26,7 @@ NapCatQQ 是基于 PC NTQQ 本体实现一套无头 Bot 框架。
|
||||
|
||||
## 鸣谢名单
|
||||
|
||||
[OpenShamrock]()
|
||||
|
||||
[Lagrange]()
|
||||
[Lagrange](https://github.com/LagrangeDev/Lagrange.Core)
|
||||
|
||||
<!--
|
||||
QQ群:545402644
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.5.4
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
|
||||
|
||||
## 修复与优化
|
||||
* 紧急修复视频与文件问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.3.9
|
||||
|
||||
QQ Version: Windows 9.9.10-23873 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复QQ等级获取与兼容性问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.0
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
|
||||
## 新增与调整
|
||||
* 支持空间Cookies获取
|
||||
* 支持获取在线设备 API /get_online_clients
|
||||
* 支持图片OCR API: /.ocr_image /ocr_image
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,14 @@
|
||||
# v1.4.1
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 提高部分Api兼容性
|
||||
* 优化日志膨胀问题
|
||||
* 在线状态刷新问题修复
|
||||
## 新增与调整
|
||||
* 支持非管理群 本地记录时间数据 (建议 **备份配置 清空配置 重新配置**)
|
||||
* 新增英译中接口 Api: /translate_en2zh
|
||||
* 新增群文件管理相关扩展接口 Api: /get_group_file_count /get_group_file_list /set_group_file_folder /del_group_file /del_group_file_folder
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.2
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复获取群文件列表Api
|
||||
* 修复退群通知问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.4.3
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复名片通知
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,10 @@
|
||||
# v1.4.4
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 更新
|
||||
* **重大更新:**更新了版本号
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.5
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 紧急修复二维扫码问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.6
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 优化整体稳定性
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.4.7
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 临时扩展 Api: GoCQHTTPUploadGroupFile folder_id字段 用于选择文件夹
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.8
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 优化Guid的生成方式
|
||||
* 支持临时消息获取群来源
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.4.9
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复接口调用问题 接口标准化 API:set_group_add_request
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.5.0
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修正各Api默认值
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.5.1
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 支持 新Api: set_self_profile 可设置个性签名
|
||||
* 修复 Api: get_group_system_msg
|
||||
* 整理日志、添加颜色、使用统一的日志函数以提高日志可读性
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,13 @@
|
||||
# v1.5.2
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 替换Uid/Uin为内部实现
|
||||
* 增加HttpApi调用稳定性
|
||||
* 修复 GetMsg 兼容性
|
||||
|
||||
## 新增与调整
|
||||
* 支持真正意义上的陌生人信息获取 Api: GoCQHTTP_GetStrangerInfo
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,15 @@
|
||||
# v1.5.3
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
|
||||
|
||||
## 修复与优化
|
||||
* 修复引用消息id问题
|
||||
* 修复添加好友的通知
|
||||
|
||||
## 新增与调整
|
||||
* 扩展群分享Json生成
|
||||
* 扩展关于收藏的一系列接口
|
||||
* 支持专属群头衔获取
|
||||
* 支持视频获取直链
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,2 @@
|
||||
# 开始
|
||||
jadx 跳转于 `com.tencent.qqnt.kernel.*`
|
||||
@@ -0,0 +1,42 @@
|
||||
# Android
|
||||
```java
|
||||
GroupMemberExtReq groupMemberExtReq = new GroupMemberExtReq();
|
||||
groupMemberExtReq.sourceType = MemberExtSourceType.TITLETYPE.ordinal();
|
||||
groupMemberExtReq.groupCode = longOrNull.longValue();
|
||||
groupMemberExtReq.beginUin = "0";
|
||||
groupMemberExtReq.dataTime = "0";
|
||||
Long[] lArr = new Long[1];
|
||||
AppInterface a2 = dVar.a();
|
||||
lArr[0] = Long.valueOf(a2 != null ? a2.getLongAccountUin() : 0L);
|
||||
arrayListOf = CollectionsKt__CollectionsKt.arrayListOf(lArr);
|
||||
groupMemberExtReq.uinList = arrayListOf;
|
||||
MemberExtInfoFilter memberExtInfoFilter = new MemberExtInfoFilter();
|
||||
memberExtInfoFilter.memberLevelInfoUin = 1;
|
||||
memberExtInfoFilter.memberLevelInfoPoint = 1;
|
||||
memberExtInfoFilter.memberLevelInfoActiveDay = 1;
|
||||
memberExtInfoFilter.memberLevelInfoLevel = 1;
|
||||
memberExtInfoFilter.levelName = 1;
|
||||
memberExtInfoFilter.dataTime = 1;
|
||||
memberExtInfoFilter.sysShowFlag = 1;
|
||||
memberExtInfoFilter.userShowFlag = 1;
|
||||
memberExtInfoFilter.userShowFlagNew = 1;
|
||||
memberExtInfoFilter.levelNameNew = 1;
|
||||
Unit unit = Unit.INSTANCE;
|
||||
groupMemberExtReq.memberExtFilter = memberExtInfoFilter;
|
||||
troopLevelFrequencyControl.f(troopUin, new TroopListRepo$fetchTroopLevelInfo$2(b2, groupMemberExtReq, troopUin, new com.tencent.qqnt.troopmemberlist.report.c("fetchTroopLevelInfo")));
|
||||
```
|
||||
# Win
|
||||
参数解析位于 sub_181456A10(24108) -> wrapper.node(24108)+1456A10
|
||||
IGroupService.GetMemberExt(param: object);
|
||||
param展开如下
|
||||
```
|
||||
groupCode string
|
||||
beginUin string
|
||||
dataTime string
|
||||
uinList Array<string>
|
||||
uinNum string
|
||||
groupType string
|
||||
richCardNameVer string
|
||||
sourceType number
|
||||
memberExtFilter object// 参数解析位于 sub_18145A6D0(24108) -> wrapper.node(24108)+145A6D0
|
||||
```
|
||||
@@ -0,0 +1,48 @@
|
||||
public static final int C2C_PIC_DOWNLOAD = 1004;
|
||||
public static final String C2C_PIC_DOWNLOAD_DOMAIN = "c2cpicdw.qpic.cn";
|
||||
public static final String C2C_PIC_DOWNLOAD_QUIC_DOMAIN = "c2cpicdw.quic.qpic.cn";
|
||||
public static final int FLAG_NOT_UPLOAD = 3;
|
||||
public static final int FLAG_UPLOADINFO_ERROR = 4;
|
||||
public static final int GROUP_PIC_DOWNLOAD = 1000;
|
||||
public static final String GROUP_PIC_DOWNLOAD_DOMAIN = "gchat.qpic.cn";
|
||||
public static final String GROUP_PIC_DOWNLOAD_QUIC_DOMAIN = "gchat.quic.qpic.cn";
|
||||
public static final String GUILD_PIC_DOWNLOAD_DOMAIN = "gchat.qpic.cn/qmeetpic";
|
||||
public static final boolean NEW_STORE_FLAG = true;
|
||||
public static final String PTT_VIDEO_DOWNLOAD_DOMAIN = "grouptalk.c2c.qq.com";
|
||||
|
||||
protected static final int AVIF_DECODE_EXCEPTION = 4;
|
||||
protected static final int AVIF_DECODE_FAIL = 1;
|
||||
protected static final int AVIF_DECODE_FAIL_SO_FAIL = 2;
|
||||
protected static final int AVIF_DECODE_FAIL_UNKNOWN = 6;
|
||||
protected static final int AVIF_DECODE_FILETYPE_ERROR = 5;
|
||||
protected static final int AVIF_DECODE_OOM = 3;
|
||||
protected static final int AVIF_DECODE_RENAME_FAIL = 7;
|
||||
protected static final int AVIF_DECODE_SUC = 0;
|
||||
public static final String AVIF_FILE_SUFFIX = ".avif";
|
||||
public static final int AVIF_REQ_APPRUNTIME_NULL = 12;
|
||||
public static final int AVIF_REQ_CODEC_UNSURPPORT = 5;
|
||||
protected static final int AVIF_REQ_DENSITY_UNSURPPORT = 10;
|
||||
protected static final int AVIF_REQ_FLASH_PHOTO = 9;
|
||||
protected static final int AVIF_REQ_HAS_TMP_AVIF = 7;
|
||||
protected static final int AVIF_REQ_INVALID_MSG_RECORD = 2;
|
||||
protected static final int AVIF_REQ_IS_RAW_PHOTO = 3;
|
||||
protected static final int AVIF_REQ_OUTPUTSTREAM_UNSURPPORT = 11;
|
||||
protected static final int AVIF_REQ_OVERSIZE = 6;
|
||||
protected static final int AVIF_REQ_RETRY = 1;
|
||||
public static final int AVIF_REQ_SO_DOWNLOAD_FAILED = 8;
|
||||
protected static final int AVIF_REQ_SUC = 0;
|
||||
public static final int AVIF_REQ_SWITCH_CLOSE = 4;
|
||||
public static final String C2C_PIC_DOWNLOAD_ERROR_CODE = "C2CPicDownloadErrorCode";
|
||||
static final int DOWNLOAD_ST_COMPLETE = 1;
|
||||
static final int DOWNLOAD_ST_HEAD = 2;
|
||||
static final int DOWNLOAD_ST_LEFT = 4;
|
||||
static final int DOWNLOAD_ST_PART = 3;
|
||||
private static final int ENCRYPT_APPID = 1600000226;
|
||||
public static final String GROUP_PIC_DOWNLOAD_ERROR_CODE = "GroupPicDownloadErrorCode";
|
||||
public static final String KEY_PIC_DOWNLOAD_ERROR_CODE = "param_detail_code";
|
||||
protected static final int QUIC_FAIL_IP_LIST_EMPTY = 1;
|
||||
protected static final int QUIC_FAIL_REQUEST_HTTPS = 3;
|
||||
protected static final int QUIC_FAIL_REQUEST_QUIC = 2;
|
||||
protected static final int QUIC_FAIL_SO_LOAD = 4;
|
||||
public static final String REPORT_TAG_DIRECT_DOWNLOAD_FAIL = "report_direct_download_fail";
|
||||
public static final String REQ_PARAM_AVIF = "tp=avif";
|
||||
@@ -0,0 +1,444 @@
|
||||
```java
|
||||
MsgConstant
|
||||
int ARKSTRUCTELEMENTSUBTYPETENCENTDOCFROMMINIAPP = 1;
|
||||
int ARKSTRUCTELEMENTSUBTYPETENCENTDOCFROMPLUSPANEL = 2;
|
||||
int ARKSTRUCTELEMENTSUBTYPEUNKNOWN = 0;
|
||||
int ATTYPEALL = 1;
|
||||
int ATTYPECATEGORY = 512;
|
||||
int ATTYPECHANNEL = 16;
|
||||
int ATTYPEME = 4;
|
||||
int ATTYPEONE = 2;
|
||||
int ATTYPEONLINE = 64;
|
||||
int ATTYPEROLE = 8;
|
||||
int ATTYPESUMMON = 32;
|
||||
int ATTYPESUMMONONLINE = 128;
|
||||
int ATTYPESUMMONROLE = 256;
|
||||
int ATTYPEUNKNOWN = 0;
|
||||
int CALENDARELEMSUBTYPECOMMON = 3;
|
||||
int CALENDARELEMSUBTYPESTRONG = 1;
|
||||
int CALENDARELEMSUBTYPEUNKNOWN = 0;
|
||||
int CALENDARELEMSUBTYPEWEAK = 2;
|
||||
int FACEBUBBLEELEMSUBTYPENORMAL = 1;
|
||||
int FACEBUBBLEELEMSUBTYPEUNKNOWN = 0;
|
||||
int FETCHLONGMSGERRCODEMSGEXPIRED = 196;
|
||||
int FILEELEMENTSUBTYPEAI = 16;
|
||||
int FILEELEMENTSUBTYPEAPP = 11;
|
||||
int FILEELEMENTSUBTYPEAUDIO = 3;
|
||||
int FILEELEMENTSUBTYPEDOC = 4;
|
||||
int FILEELEMENTSUBTYPEEMOTICON = 15;
|
||||
int FILEELEMENTSUBTYPEEXCEL = 6;
|
||||
int FILEELEMENTSUBTYPEFOLDER = 13;
|
||||
int FILEELEMENTSUBTYPEHTML = 10;
|
||||
int FILEELEMENTSUBTYPEIPA = 14;
|
||||
int FILEELEMENTSUBTYPENORMAL = 0;
|
||||
int FILEELEMENTSUBTYPEPDF = 7;
|
||||
int FILEELEMENTSUBTYPEPIC = 1;
|
||||
int FILEELEMENTSUBTYPEPPT = 5;
|
||||
int FILEELEMENTSUBTYPEPSD = 12;
|
||||
int FILEELEMENTSUBTYPETXT = 8;
|
||||
int FILEELEMENTSUBTYPEVIDEO = 2;
|
||||
int FILEELEMENTSUBTYPEZIP = 9;
|
||||
int GRAYTIPELEMENTSUBTYPEAIOOP = 15;
|
||||
int GRAYTIPELEMENTSUBTYPEBLOCK = 14;
|
||||
int GRAYTIPELEMENTSUBTYPEBUDDY = 5;
|
||||
int GRAYTIPELEMENTSUBTYPEBUDDYNOTIFY = 9;
|
||||
int GRAYTIPELEMENTSUBTYPEEMOJIREPLY = 3;
|
||||
int GRAYTIPELEMENTSUBTYPEESSENCE = 7;
|
||||
int GRAYTIPELEMENTSUBTYPEFEED = 6;
|
||||
int GRAYTIPELEMENTSUBTYPEFEEDCHANNELMSG = 11;
|
||||
int GRAYTIPELEMENTSUBTYPEFILE = 10;
|
||||
int GRAYTIPELEMENTSUBTYPEGROUP = 4;
|
||||
int GRAYTIPELEMENTSUBTYPEGROUPNOTIFY = 8;
|
||||
int GRAYTIPELEMENTSUBTYPEJSON = 17;
|
||||
int GRAYTIPELEMENTSUBTYPELOCALMSG = 13;
|
||||
int GRAYTIPELEMENTSUBTYPEPROCLAMATION = 2;
|
||||
int GRAYTIPELEMENTSUBTYPEREVOKE = 1;
|
||||
int GRAYTIPELEMENTSUBTYPEUNKNOWN = 0;
|
||||
int GRAYTIPELEMENTSUBTYPEWALLET = 16;
|
||||
int GRAYTIPELEMENTSUBTYPEXMLMSG = 12;
|
||||
int INLINEKEYBOARDBUTTONRENDERSTYLEBLUEBLACKGROUND = 4;
|
||||
int INLINEKEYBOARDBUTTONRENDERSTYLEBLUEBORDER = 1;
|
||||
int INLINEKEYBOARDBUTTONRENDERSTYLEGRAYBORDER = 0;
|
||||
int INLINEKEYBOARDBUTTONRENDERSTYLENOBORDER = 2;
|
||||
int INLINEKEYBOARDBUTTONRENDERSTYLEREDCHARACTER = 3;
|
||||
int INPUTSTATUSTYPECANCEL = 2;
|
||||
int INPUTSTATUSTYPESPEAK = 3;
|
||||
int INPUTSTATUSTYPETEXT = 1;
|
||||
int KACTIVITYMSG = 22;
|
||||
int KADDLOCALMSGEXTINFOTYPEPROLOGUEMSG = 1;
|
||||
int KANONYMOUSATMEMSGTYPEINMSGBOX = 1001;
|
||||
int KANONYMOUSFLAGFROMOTHERPEOPLE = 1;
|
||||
int KANONYMOUSFLAGFROMOWN = 2;
|
||||
int KANONYMOUSFLAGINVALID = 0;
|
||||
int KAPPCHANNELMSG = 16;
|
||||
int KATALLMSGTYPEINMSGBOX = 2000;
|
||||
int KATMEMSGTYPEINMSGBOX = 1000;
|
||||
int KATTRIBUTETYPEADELIEMSG = 16;
|
||||
int KATTRIBUTETYPEEXTENDBUSINESS = 13;
|
||||
int KATTRIBUTETYPEFEEDBACKSTATE = 17;
|
||||
int KATTRIBUTETYPEGROUPHONOR = 2;
|
||||
int KATTRIBUTETYPEKINGHONOR = 3;
|
||||
int KATTRIBUTETYPELONGMSG = 8;
|
||||
int KATTRIBUTETYPEMEMORYSTATEMSGINFO = 18;
|
||||
int KATTRIBUTETYPEMSG = 0;
|
||||
int KATTRIBUTETYPEMSGBOXEVENTTYPE = 14;
|
||||
int KATTRIBUTETYPEPERSONAL = 1;
|
||||
int KATTRIBUTETYPEPUBLICACCOUNT = 4;
|
||||
int KATTRIBUTETYPEQQCONNECT = 12;
|
||||
int KATTRIBUTETYPESENDMSGRSPTRANSSVRINFO = 15;
|
||||
int KATTRIBUTETYPESHAREDMSGINFO = 5;
|
||||
int KATTRIBUTETYPETEMPCHATGAMESESSION = 6;
|
||||
int KATTRIBUTETYPETOROBOTMSG = 9;
|
||||
int KATTRIBUTETYPEUININFO = 7;
|
||||
int KATTRIBUTETYPEZPLAN = 11;
|
||||
int KAUTOREPLYTEXTNONEINDEX = -1;
|
||||
int KAVRECORDMSG = 19;
|
||||
int KBUSINESSTYPGUILD = 1;
|
||||
int KBUSINESSTYPNT = 0;
|
||||
int KCHATTYPEADELIE = 42;
|
||||
int KCHATTYPEBUDDYNOTIFY = 5;
|
||||
int KCHATTYPEC2C = 1;
|
||||
int KCHATTYPECIRCLE = 113;
|
||||
int KCHATTYPEDATALINE = 8;
|
||||
int KCHATTYPEDATALINEMQQ = 134;
|
||||
int KCHATTYPEDISC = 3;
|
||||
int KCHATTYPEFAV = 41;
|
||||
int KCHATTYPEGAMEMESSAGE = 105;
|
||||
int KCHATTYPEGAMEMESSAGEFOLDER = 116;
|
||||
int KCHATTYPEGROUP = 2;
|
||||
int KCHATTYPEGROUPBLESS = 133;
|
||||
int KCHATTYPEGROUPGUILD = 9;
|
||||
int KCHATTYPEGROUPHELPER = 7;
|
||||
int KCHATTYPEGROUPNOTIFY = 6;
|
||||
int KCHATTYPEGUILD = 4;
|
||||
int KCHATTYPEGUILDMETA = 16;
|
||||
int KCHATTYPEMATCHFRIEND = 104;
|
||||
int KCHATTYPEMATCHFRIENDFOLDER = 109;
|
||||
int KCHATTYPENEARBY = 106;
|
||||
int KCHATTYPENEARBYASSISTANT = 107;
|
||||
int KCHATTYPENEARBYFOLDER = 110;
|
||||
int KCHATTYPENEARBYHELLOFOLDER = 112;
|
||||
int KCHATTYPENEARBYINTERACT = 108;
|
||||
int KCHATTYPEQQNOTIFY = 132;
|
||||
int KCHATTYPERELATEACCOUNT = 131;
|
||||
int KCHATTYPESERVICEASSISTANT = 118;
|
||||
int KCHATTYPESERVICEASSISTANTSUB = 201;
|
||||
int KCHATTYPESQUAREPUBLIC = 115;
|
||||
int KCHATTYPESUBSCRIBEFOLDER = 30;
|
||||
int KCHATTYPETEMPADDRESSBOOK = 111;
|
||||
int KCHATTYPETEMPBUSSINESSCRM = 102;
|
||||
int KCHATTYPETEMPC2CFROMGROUP = 100;
|
||||
int KCHATTYPETEMPC2CFROMUNKNOWN = 99;
|
||||
int KCHATTYPETEMPFRIENDVERIFY = 101;
|
||||
int KCHATTYPETEMPNEARBYPRO = 119;
|
||||
int KCHATTYPETEMPPUBLICACCOUNT = 103;
|
||||
int KCHATTYPETEMPWPA = 117;
|
||||
int KCHATTYPEUNKNOWN = 0;
|
||||
int KCHATTYPEWEIYUN = 40;
|
||||
int KCOMMONREDENVELOPEMSGTYPEINMSGBOX = 1007;
|
||||
int KDOWNSOURCETYPEAIOINNER = 1;
|
||||
int KDOWNSOURCETYPEBIGSCREEN = 2;
|
||||
int KDOWNSOURCETYPEHISTORY = 3;
|
||||
int KDOWNSOURCETYPEUNKNOWN = 0;
|
||||
int KELEMTYPEACTIVITY = 25;
|
||||
int KELEMTYPEACTIVITYSTATE = 41;
|
||||
int KELEMTYPEACTIVITYSUBTYPECREATEMOBATEAM = 12;
|
||||
int KELEMTYPEACTIVITYSUBTYPEDISBANDMOBATEAM = 11;
|
||||
int KELEMTYPEACTIVITYSUBTYPEFEEDSQUARE = 10001;
|
||||
int KELEMTYPEACTIVITYSUBTYPEFINISHGAME = 16;
|
||||
int KELEMTYPEACTIVITYSUBTYPEFINISHMATCHTEAM = 14;
|
||||
int KELEMTYPEACTIVITYSUBTYPEHOTCHAT = 10000;
|
||||
int KELEMTYPEACTIVITYSUBTYPEMINIGAME = 18;
|
||||
int KELEMTYPEACTIVITYSUBTYPEMUSICPLAY = 17;
|
||||
int KELEMTYPEACTIVITYSUBTYPENEWSMOBA = 9;
|
||||
int KELEMTYPEACTIVITYSUBTYPENOLIVE = 2;
|
||||
int KELEMTYPEACTIVITYSUBTYPENOSCREENSHARE = 7;
|
||||
int KELEMTYPEACTIVITYSUBTYPENOVOICE = 3;
|
||||
int KELEMTYPEACTIVITYSUBTYPEONLIVE = 1;
|
||||
int KELEMTYPEACTIVITYSUBTYPEONSCREENSHARE = 6;
|
||||
int KELEMTYPEACTIVITYSUBTYPEONVOICE = 4;
|
||||
int KELEMTYPEACTIVITYSUBTYPESTARTMATCHTEAM = 13;
|
||||
int KELEMTYPEACTIVITYSUBTYPETARTGAME = 15;
|
||||
int KELEMTYPEACTIVITYSUBTYPEUNKNOWN = 0;
|
||||
int KELEMTYPEADELIEACTIONBAR = 44;
|
||||
int KELEMTYPEADELIERECOMMENDEDMSG = 43;
|
||||
int KELEMTYPEARKSTRUCT = 10;
|
||||
int KELEMTYPEAVRECORD = 21;
|
||||
int KELEMTYPECALENDAR = 19;
|
||||
int KELEMTYPEFACE = 6;
|
||||
int KELEMTYPEFACEBUBBLE = 27;
|
||||
int KELEMTYPEFEED = 22;
|
||||
int KELEMTYPEFILE = 3;
|
||||
int KELEMTYPEGIPHY = 15;
|
||||
int KELEMTYPEGRAYTIP = 8;
|
||||
int KELEMTYPEINLINEKEYBOARD = 17;
|
||||
int KELEMTYPEINTEXTGIFT = 18;
|
||||
int KELEMTYPELIVEGIFT = 12;
|
||||
int KELEMTYPEMARKDOWN = 14;
|
||||
int KELEMTYPEMARKETFACE = 11;
|
||||
int KELEMTYPEMULTIFORWARD = 16;
|
||||
int KELEMTYPEONLINEFILE = 23;
|
||||
int KELEMTYPEPIC = 2;
|
||||
int KELEMTYPEPROLOGUE = 46;
|
||||
int KELEMTYPEPTT = 4;
|
||||
int KELEMTYPEREPLY = 7;
|
||||
int KELEMTYPESHARELOCATION = 28;
|
||||
int KELEMTYPESTRUCTLONGMSG = 13;
|
||||
int KELEMTYPETASKTOPMSG = 29;
|
||||
int KELEMTYPETEXT = 1;
|
||||
int KELEMTYPETOFU = 26;
|
||||
int KELEMTYPEUNKNOWN = 0;
|
||||
int KELEMTYPEVIDEO = 5;
|
||||
int KELEMTYPEWALLET = 9;
|
||||
int KELEMTYPEYOLOGAMERESULT = 20;
|
||||
int KENTERAIO = 1;
|
||||
int KEXITAIO = 2;
|
||||
int KFEEDBACKBUTTONTYPEDISLIKE = 2;
|
||||
int KFEEDBACKBUTTONTYPELIKE = 1;
|
||||
int KFEEDBACKBUTTONTYPEPROMPTCLICK = 5;
|
||||
int KFEEDBACKBUTTONTYPEREGENERATE = 4;
|
||||
int KFEEDBACKBUTTONTYPEUNKNOWN = 0;
|
||||
int KFEEDBACKOPTLIKE = 1;
|
||||
int KFEEDBACKOPTUNKNOWN = 0;
|
||||
int KFEEDBACKOPTUNLIKE = 2;
|
||||
int KFRIENDNEWADDEDMSGTYPEINMSGBOX = 1008;
|
||||
int KGAMEBOXNEWMSGTYPEINMSGBOX = 3000;
|
||||
int KGIFTATMEMSGTYPEINMSGBOX = 1005;
|
||||
int KGROUPFILEATALLMSGTYPEINMSGBOX = 2001;
|
||||
int KGROUPHOMEWORK = 20000;
|
||||
int KGROUPHOMEWORKTASK = 20001;
|
||||
int KGROUPKEYWORDMSGTYPEINMSGBOX = 2006;
|
||||
int KGROUPMANNOUNCEATALLMSGTYPEINMSGBOX = 2004;
|
||||
int KGROUPTASKATALLMSGTYPEINMSGBOX = 2003;
|
||||
int KGROUPUNREADTYPEINMSGBOX = 2007;
|
||||
int KGUILDCHANNELLIST = 10;
|
||||
int KHIGHLIGHTWORDINTEMPCHATTYPEINMSGBOX = 1009;
|
||||
int KHOMEWORKREMINDER = 10000;
|
||||
int KLIKEORDISLIKESTATEDISLIKE = 2;
|
||||
int KLIKEORDISLIKESTATELIKE = 1;
|
||||
int KLIKEORDISLIKESTATENONESELECTED = 0;
|
||||
int KMARKETFACE = 17;
|
||||
int KMEMORYSTATEMSGTYPEADELIEWELCOME = 1;
|
||||
int KMEMORYSTATEMSGTYPEUNKNOWN = 0;
|
||||
int KMINIPROGRAMNOTICE = 114;
|
||||
int KMSGSUBTYPEARKGROUPANNOUNCE = 3;
|
||||
int KMSGSUBTYPEARKGROUPANNOUNCECONFIRMREQUIRED = 4;
|
||||
int KMSGSUBTYPEARKGROUPGIFTATME = 5;
|
||||
int KMSGSUBTYPEARKGROUPTASKATALL = 6;
|
||||
int KMSGSUBTYPEARKMULTIMSG = 7;
|
||||
int KMSGSUBTYPEARKNORMAL = 0;
|
||||
int KMSGSUBTYPEARKTENCENTDOCFROMMINIAPP = 1;
|
||||
int KMSGSUBTYPEARKTENCENTDOCFROMPLUSPANEL = 2;
|
||||
int KMSGSUBTYPEEMOTICON = 15;
|
||||
int KMSGSUBTYPEFILEAPP = 11;
|
||||
int KMSGSUBTYPEFILEAUDIO = 3;
|
||||
int KMSGSUBTYPEFILEDOC = 4;
|
||||
int KMSGSUBTYPEFILEEXCEL = 6;
|
||||
int KMSGSUBTYPEFILEFOLDER = 13;
|
||||
int KMSGSUBTYPEFILEHTML = 10;
|
||||
int KMSGSUBTYPEFILEIPA = 14;
|
||||
int KMSGSUBTYPEFILENORMAL = 0;
|
||||
int KMSGSUBTYPEFILEPDF = 7;
|
||||
int KMSGSUBTYPEFILEPIC = 1;
|
||||
int KMSGSUBTYPEFILEPPT = 5;
|
||||
int KMSGSUBTYPEFILEPSD = 12;
|
||||
int KMSGSUBTYPEFILETXT = 8;
|
||||
int KMSGSUBTYPEFILEVIDEO = 2;
|
||||
int KMSGSUBTYPEFILEZIP = 9;
|
||||
int KMSGSUBTYPELINK = 5;
|
||||
int KMSGSUBTYPEMARKETFACE = 1;
|
||||
int KMSGSUBTYPEMIXEMOTICON = 7;
|
||||
int KMSGSUBTYPEMIXFACE = 3;
|
||||
int KMSGSUBTYPEMIXMARKETFACE = 2;
|
||||
int KMSGSUBTYPEMIXPIC = 1;
|
||||
int KMSGSUBTYPEMIXREPLY = 4;
|
||||
int KMSGSUBTYPEMIXTEXT = 0;
|
||||
int KMSGSUBTYPETENCENTDOC = 6;
|
||||
int KMSGTYPEARKSTRUCT = 11;
|
||||
int KMSGTYPEFACEBUBBLE = 24;
|
||||
int KMSGTYPEFILE = 3;
|
||||
int KMSGTYPEGIFT = 14;
|
||||
int KMSGTYPEGIPHY = 13;
|
||||
int KMSGTYPEGRAYTIPS = 5;
|
||||
int KMSGTYPEMIX = 2;
|
||||
int KMSGTYPEMULTIMSGFORWARD = 8;
|
||||
int KMSGTYPENULL = 1;
|
||||
int KMSGTYPEONLINEFILE = 21;
|
||||
int KMSGTYPEONLINEFOLDER = 27;
|
||||
int KMSGTYPEPROLOGUE = 29;
|
||||
int KMSGTYPEPTT = 6;
|
||||
int KMSGTYPEREPLY = 9;
|
||||
int KMSGTYPESHARELOCATION = 25;
|
||||
int KMSGTYPESTRUCT = 4;
|
||||
int KMSGTYPESTRUCTLONGMSG = 12;
|
||||
int KMSGTYPETEXTGIFT = 15;
|
||||
int KMSGTYPEUNKNOWN = 0;
|
||||
int KMSGTYPEVIDEO = 7;
|
||||
int KMSGTYPEWALLET = 10;
|
||||
int KNEEDCONFIRMGROUPMANNOUNCEATALLMSGTYPEINMSGBOX = 2005;
|
||||
int KNOTPASSTHROUGHEVENTTYPEUPPERBOUNDARY = 9999;
|
||||
int KPTTFORMATTYPEAMR = 0;
|
||||
int KPTTFORMATTYPESILK = 1;
|
||||
int KPTTTRANSLATESTATUSFAIL = 3;
|
||||
int KPTTTRANSLATESTATUSSUC = 2;
|
||||
int KPTTTRANSLATESTATUSTRANSLATING = 1;
|
||||
int KPTTTRANSLATESTATUSUNKNOWN = 0;
|
||||
int KPTTVIPLEVELTYPENONE = 0;
|
||||
int KPTTVIPLEVELTYPEQQVIP = 0;
|
||||
int KPTTVIPLEVELTYPESVIP = 0;
|
||||
int KPTTVOICECHANGETYPEBEASTMACHINE = 7;
|
||||
int KPTTVOICECHANGETYPEBOY = 2;
|
||||
int KPTTVOICECHANGETYPECATCHCOLD = 13;
|
||||
int KPTTVOICECHANGETYPEECHO = 5;
|
||||
int KPTTVOICECHANGETYPEFATGUY = 16;
|
||||
int KPTTVOICECHANGETYPEFLASHING = 9;
|
||||
int KPTTVOICECHANGETYPEGIRL = 1;
|
||||
int KPTTVOICECHANGETYPEHORRIBLE = 3;
|
||||
int KPTTVOICECHANGETYPEKINDERGARTEN = 6;
|
||||
int KPTTVOICECHANGETYPEMEDAROT = 15;
|
||||
int KPTTVOICECHANGETYPENONE = 0;
|
||||
int KPTTVOICECHANGETYPEOPTIMUSPRIME = 8;
|
||||
int KPTTVOICECHANGETYPEOUTOFDATE = 14;
|
||||
int KPTTVOICECHANGETYPEPAPI = 11;
|
||||
int KPTTVOICECHANGETYPEQUICK = 4;
|
||||
int KPTTVOICECHANGETYPESTUTTER = 10;
|
||||
int KPTTVOICECHANGETYPETRAPPEDBEAST = 12;
|
||||
int KPTTVOICETYPEINTERCOM = 1;
|
||||
int KPTTVOICETYPESOUNDRECORD = 2;
|
||||
int KPTTVOICETYPEUNKNOW = 0;
|
||||
int KPTTVOICETYPEVOICECHANGE = 3;
|
||||
int KPUBLICACCOUNTTIANSHUHIGHLIGHTWORDTYPEINMSGBOX = 1010;
|
||||
int KREPLYABSELEMTYPEFACE = 2;
|
||||
int KREPLYABSELEMTYPEPIC = 3;
|
||||
int KREPLYABSELEMTYPETEXT = 1;
|
||||
int KREPLYABSELEMTYPEUNKNOWN = 0;
|
||||
int KREPLYATMEMSGTYPEINMSGBOX = 1002;
|
||||
int KRMDOWNTYPEORIG = 1;
|
||||
int KRMDOWNTYPETHUMB = 2;
|
||||
int KRMDOWNTYPEUNKNOWN = 0;
|
||||
int KRMFILETHUMBSIZE128 = 128;
|
||||
int KRMFILETHUMBSIZE320 = 320;
|
||||
int KRMFILETHUMBSIZE384 = 384;
|
||||
int KRMFILETHUMBSIZE750 = 750;
|
||||
int KRMPICAIOTHUMBSIZE = 0;
|
||||
int KRMPICTHUMBSIZE198 = 198;
|
||||
int KRMPICTHUMBSIZE720 = 720;
|
||||
int KRMPICTYPEBMP = 3;
|
||||
int KRMPICTYPECHECKOTHER = 900;
|
||||
int KRMPICTYPEGIF = 2;
|
||||
int KRMPICTYPEJPG = 0;
|
||||
int KRMPICTYPENEWPICAPNG = 2001;
|
||||
int KRMPICTYPENEWPICBMP = 1005;
|
||||
int KRMPICTYPENEWPICGIF = 2000;
|
||||
int KRMPICTYPENEWPICJPEG = 1000;
|
||||
int KRMPICTYPENEWPICPNG = 1001;
|
||||
int KRMPICTYPENEWPICPROGERSSIVJPEG = 1003;
|
||||
int KRMPICTYPENEWPICSHARPP = 1004;
|
||||
int KRMPICTYPENEWPICWEBP = 1002;
|
||||
int KRMPICTYPEPNG = 1;
|
||||
int KRMPICTYPEUNKOWN = 0;
|
||||
int KRMTHUMBSIZEZERO = 0;
|
||||
int KRMTRNASFERSTATUSDOWNLOADING = 3;
|
||||
int KRMTRNASFERSTATUSFAIL = 5;
|
||||
int KRMTRNASFERSTATUSINIT = 1;
|
||||
int KRMTRNASFERSTATUSSUC = 4;
|
||||
int KRMTRNASFERSTATUSUNKOW = 0;
|
||||
int KRMTRNASFERSTATUSUPLOADING = 2;
|
||||
int KRMTRNASFERSTATUSUSERCANCEL = 6;
|
||||
int KSEEKINGPARTNERFLAGSEEKING = 1;
|
||||
int KSEEKINGPARTNERFLAGUNKNOWN = 0;
|
||||
int KSENDSTATUSFAILED = 0;
|
||||
int KSENDSTATUSSENDING = 1;
|
||||
int KSENDSTATUSSUCCESS = 2;
|
||||
int KSENDSTATUSSUCCESSNOSEQ = 3;
|
||||
int KSENDTYPEDROPPED = 6;
|
||||
int KSENDTYPELOCAL = 3;
|
||||
int KSENDTYPEOTHERDEVICE = 2;
|
||||
int KSENDTYPERECV = 0;
|
||||
int KSENDTYPESELF = 1;
|
||||
int KSENDTYPESELFFORWARD = 4;
|
||||
int KSENDTYPESELFMULTIFORWARD = 5;
|
||||
int KSESSIONTYPEADDRESSBOOK = 5;
|
||||
int KSESSIONTYPEC2C = 1;
|
||||
int KSESSIONTYPEDISC = 3;
|
||||
int KSESSIONTYPEFAV = 41;
|
||||
int KSESSIONTYPEGROUP = 2;
|
||||
int KSESSIONTYPEGROUPBLESS = 52;
|
||||
int KSESSIONTYPEGUILD = 4;
|
||||
int KSESSIONTYPEGUILDMETA = 16;
|
||||
int KSESSIONTYPENEARBYPRO = 54;
|
||||
int KSESSIONTYPEQQNOTIFY = 51;
|
||||
int KSESSIONTYPERELATEACCOUNT = 50;
|
||||
int KSESSIONTYPESERVICEASSISTANT = 19;
|
||||
int KSESSIONTYPESUBSCRIBEFOLDER = 30;
|
||||
int KSESSIONTYPETYPEBUDDYNOTIFY = 7;
|
||||
int KSESSIONTYPETYPEGROUPHELPER = 9;
|
||||
int KSESSIONTYPETYPEGROUPNOTIFY = 8;
|
||||
int KSESSIONTYPEUNKNOWN = 0;
|
||||
int KSESSIONTYPEWEIYUN = 40;
|
||||
int KSPECIALCAREMSGTYPEINMSGBOX = 1006;
|
||||
int KSPECIFIEDREDENVELOPEATMEMSGTYPEINMSGBOX = 1004;
|
||||
int KSPECIFIEDREDENVELOPEATONEMSGTYPEINMSGBOX = 1003;
|
||||
int KTENCENTDOCTYPEADDON = 110;
|
||||
int KTENCENTDOCTYPEDOC = 0;
|
||||
int KTENCENTDOCTYPEDRAWING = 89;
|
||||
int KTENCENTDOCTYPEDRIVE = 101;
|
||||
int KTENCENTDOCTYPEFILE = 100;
|
||||
int KTENCENTDOCTYPEFLOWCHART = 91;
|
||||
int KTENCENTDOCTYPEFOLDER = 3;
|
||||
int KTENCENTDOCTYPEFORM = 2;
|
||||
int KTENCENTDOCTYPEMIND = 90;
|
||||
int KTENCENTDOCTYPENOTES = 5;
|
||||
int KTENCENTDOCTYPEPDF = 6;
|
||||
int KTENCENTDOCTYPEPROGRAM = 7;
|
||||
int KTENCENTDOCTYPESHEET = 1;
|
||||
int KTENCENTDOCTYPESLIDE = 4;
|
||||
int KTENCENTDOCTYPESMARTCANVAS = 8;
|
||||
int KTENCENTDOCTYPESMARTSHEET = 9;
|
||||
int KTENCENTDOCTYPESPEECH = 102;
|
||||
int KTENCENTDOCTYPEUNKNOWN = 10;
|
||||
int KTOFURECORDMSG = 23;
|
||||
int KTOPMSGTYPETASK = 1;
|
||||
int KTOPMSGTYPEUNKNOWN = 0;
|
||||
int KTRIGGERTYPEAUTO = 1;
|
||||
int KTRIGGERTYPEMANUAL = 0;
|
||||
int KUNKNOWN = 0;
|
||||
int KUNKNOWNTYPEINMSGBOX = 0;
|
||||
int KUNREADCNTUPTYPEALLDIRECTSESSION = 4;
|
||||
int KUNREADCNTUPTYPEALLFEEDSINGUILD = 6;
|
||||
int KUNREADCNTUPTYPEALLGUILD = 3;
|
||||
int KUNREADCNTUPTYPECATEGORY = 5;
|
||||
int KUNREADCNTUPTYPECHANNEL = 1;
|
||||
int KUNREADCNTUPTYPECONTACT = 0;
|
||||
int KUNREADCNTUPTYPEGUILD = 2;
|
||||
int KUNREADCNTUPTYPEGUILDGROUP = 7;
|
||||
int KUNREADSHOWTTYPEGRAYPOINT = 2;
|
||||
int KUNREADSHOWTYPEREDPOINT = 1;
|
||||
int KUNREADSHOWTYPESMALLGRAYPOINT = 4;
|
||||
int KUNREADSHOWTYPESMALLREDPOINT = 3;
|
||||
int KUNREADSHOWTYPEUNKNOWN = 0;
|
||||
int KVASGIFTCOINTYPECOIN = 0;
|
||||
int KVASGIFTCOINTYPEMARKETCOIN = 1;
|
||||
int KYOLOGAMERESULTMSG = 18;
|
||||
int PIC_800_RECOMMENDED = 7;
|
||||
int PIC_AIGC_EMOJI = 14;
|
||||
int PIC_ALBUM_GIF = 11;
|
||||
int PIC_COMMERCIAL_ADVERTISING = 9;
|
||||
int PIC_FIND = 10;
|
||||
int PIC_HOT = 2;
|
||||
int PIC_HOT_EMOJI = 13;
|
||||
int PIC_NORMAL = 0;
|
||||
int PIC_PK = 3;
|
||||
int PIC_QQZONE = 5;
|
||||
int PIC_SELFIE_GIF = 8;
|
||||
int PIC_SEND_FROM_TAB_SEARCH_BOX = 12;
|
||||
int PIC_USER = 1;
|
||||
int PIC_WISDOM_FIGURE = 4;
|
||||
int REPLYORIGINALMSGSTATEHASRECALL = 1;
|
||||
int REPLYORIGINALMSGSTATEUNKNOWN = 0;
|
||||
int SHARELOCATIONELEMSUBTYPENORMAL = 1;
|
||||
int SHARELOCATIONELEMSUBTYPEUNKNOWN = 0;
|
||||
int TEXTELEMENTSUBTYPELINK = 1;
|
||||
int TEXTELEMENTSUBTYPETENCENTDOC = 2;
|
||||
int TEXTELEMENTSUBTYPEUNKNOWN = 0;
|
||||
```
|
||||
@@ -0,0 +1,24 @@
|
||||
# 前排提示
|
||||
由于Core未处于开源,非组织人员无法参与Core开发,此处为Core开发提示
|
||||
|
||||
# 准备工具
|
||||
frida ida-pro jadx x64dbg ce 内部调试脚本
|
||||
|
||||
## ida-pro
|
||||
1. 用于快速分析入参和返回类型
|
||||
2. 通过静态QLog推测语义
|
||||
3. 提取Listener与Service (常用)
|
||||
## frida
|
||||
1. 用于动态获取QLog推测语义
|
||||
2. 捕捉Native函数 实际入参与数据 分析中间流程
|
||||
|
||||
## jadx
|
||||
1. 通过其它平台实现 静态获取QLog推测语义
|
||||
2. 提供部分未调用代码 参考
|
||||
|
||||
## x64dbg
|
||||
1. 验证IDA的Hook点
|
||||
|
||||
## 内部脚本
|
||||
1. 提取Listener与Service (不调用无类型 不推荐)
|
||||
2. 获取NT调用流程
|
||||
+67
-64
@@ -1,64 +1,67 @@
|
||||
{
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.2.0",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
"build:dev": "vite build --mode development",
|
||||
"build:prod": "vite build --mode production",
|
||||
"build": "npm run build:dev",
|
||||
"build:core": "cd ./src/core && npm run build && cd ../.. && node ./script/copy-core.cjs",
|
||||
"watch": "npm run watch:dev",
|
||||
"debug-win": "powershell dist/napcat.ps1",
|
||||
"lint": "eslint --fix src/**/*.{js,ts}",
|
||||
"release": "npm run build:prod",
|
||||
"depend": "cd dist && npm install --omit=dev"
|
||||
},
|
||||
"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",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/qrcode-terminal": "^0.12.2",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"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",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.2.6",
|
||||
"vite-plugin-cp": "^4.0.8",
|
||||
"vite-plugin-dts": "^3.8.2",
|
||||
"vite-tsconfig-paths": "^4.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
"fast-xml-parser": "^4.3.6",
|
||||
"file-type": "^19.0.0",
|
||||
"fluent-ffmpeg": "^2.1.2",
|
||||
"image-size": "^1.1.1",
|
||||
"log4js": "^6.9.1",
|
||||
"qrcode-terminal": "^0.12.0",
|
||||
"silk-wasm": "^3.3.4",
|
||||
"sqlite3": "^5.1.7",
|
||||
"uuid": "^9.0.1",
|
||||
"ws": "^8.16.0"
|
||||
}
|
||||
}
|
||||
{
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.5.4",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
"build:dev": "vite build --mode development",
|
||||
"build:prod": "vite build --mode production",
|
||||
"build": "npm run build:dev",
|
||||
"build:core": "cd ./src/core && npm run build && cd ../.. && node ./script/copy-core.cjs",
|
||||
"build:webui": "cd ./src/webui && vite build",
|
||||
"watch": "npm run watch:dev",
|
||||
"debug-win": "powershell dist/napcat.ps1",
|
||||
"lint": "eslint --fix src/**/*.{js,ts}",
|
||||
"release": "npm run build:prod",
|
||||
"depend": "cd dist && npm install --omit=dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@log4js-node/log4js-api": "^1.0.2",
|
||||
"@protobuf-ts/plugin": "^2.9.4",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/qrcode-terminal": "^0.12.2",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"i": "^0.3.7",
|
||||
"javascript-obfuscator": "^4.1.0",
|
||||
"rollup": "^4.13.2",
|
||||
"rollup-plugin-dts": "^6.1.0",
|
||||
"rollup-plugin-obfuscator": "^1.1.0",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.2.6",
|
||||
"vite-plugin-cp": "^4.0.8",
|
||||
"vite-plugin-dts": "^3.8.2",
|
||||
"vite-tsconfig-paths": "^4.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^8.13.0",
|
||||
"chalk": "^5.3.0",
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
"fast-xml-parser": "^4.3.6",
|
||||
"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",
|
||||
"sqlite3": "^5.1.7",
|
||||
"uuid": "^10.0.0",
|
||||
"ws": "^8.16.0"
|
||||
}
|
||||
}
|
||||
+41
-12
@@ -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);
|
||||
}
|
||||
@@ -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 %*
|
||||
+32
-4
@@ -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}"
|
||||
+1
-1
@@ -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 %*
|
||||
+32
-4
@@ -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}"
|
||||
+19
-2
@@ -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" "$@"
|
||||
@@ -37,14 +37,14 @@ export abstract class HttpServerBase {
|
||||
const authHeader = req.get('authorization');
|
||||
if (authHeader) {
|
||||
clientToken = authHeader.split('Bearer ').pop() || '';
|
||||
logDebug('receive http header token', clientToken);
|
||||
//logDebug('receive http header token', clientToken);
|
||||
} else if (req.query.access_token) {
|
||||
if (Array.isArray(req.query.access_token)) {
|
||||
clientToken = req.query.access_token[0].toString();
|
||||
} else {
|
||||
clientToken = req.query.access_token.toString();
|
||||
}
|
||||
logDebug('receive http url token', clientToken);
|
||||
//logDebug('receive http url token', clientToken);
|
||||
}
|
||||
|
||||
if (serverToken && clientToken != serverToken) {
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { sleep } from '@/common/utils/helper';
|
||||
|
||||
type AsyncQueueTask = (() => void) | Promise<void> ;
|
||||
import { logError } from './log';
|
||||
type AsyncQueueTask = (() => void) | (()=>Promise<void>);
|
||||
|
||||
|
||||
export class AsyncQueue {
|
||||
@@ -8,23 +8,26 @@ export class AsyncQueue {
|
||||
|
||||
public addTask(task: AsyncQueueTask) {
|
||||
this.tasks.push(task);
|
||||
// console.log('addTask', this.tasks.length);
|
||||
if (this.tasks.length === 1) {
|
||||
this.runQueue().then().catch(()=>{});
|
||||
}
|
||||
}
|
||||
|
||||
private async runQueue() {
|
||||
// console.log('runQueue', this.tasks.length);
|
||||
while (this.tasks.length > 0) {
|
||||
const task = this.tasks[0];
|
||||
// console.log('typeof task', typeof task);
|
||||
try {
|
||||
if (task instanceof Promise) {
|
||||
await task;
|
||||
}
|
||||
else{
|
||||
task();
|
||||
const taskRet = task();
|
||||
// console.log('type of taskRet', typeof taskRet, taskRet);
|
||||
if (taskRet instanceof Promise) {
|
||||
await taskRet;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
// console.error(e);
|
||||
logError(e);
|
||||
}
|
||||
this.tasks.shift();
|
||||
await sleep(100);
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
import { NodeIKernelMsgListener } from '@/core';
|
||||
import { NodeIQQNTWrapperSession } from '@/core/wrapper';
|
||||
import { randomUUID } from 'crypto';
|
||||
|
||||
interface Internal_MapKey {
|
||||
timeout: number,
|
||||
createtime: number,
|
||||
func: (...arg: any[]) => any,
|
||||
}
|
||||
|
||||
export class ListenerClassBase {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export interface ListenerIBase {
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-new
|
||||
new(listener: any): ListenerClassBase;
|
||||
}
|
||||
|
||||
export class NTEventWrapper {
|
||||
|
||||
private ListenerMap: { [key: string]: ListenerIBase } | undefined;//ListenerName-Unique -> Listener构造函数
|
||||
private WrapperSession: NodeIQQNTWrapperSession | undefined;//WrapperSession
|
||||
private ListenerManger: Map<string, ListenerClassBase> = new Map<string, ListenerClassBase>(); //ListenerName-Unique -> Listener实例
|
||||
private EventTask = new Map<string, Map<string, Map<string, Internal_MapKey>>>();//tasks ListenerMainName -> ListenerSubName-> uuid -> {timeout,createtime,func}
|
||||
constructor() {
|
||||
|
||||
}
|
||||
createProxyDispatch(ListenerMainName: string) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
const current = this;
|
||||
return new Proxy({}, {
|
||||
get(target: any, prop: any, receiver: any) {
|
||||
// console.log('get', prop, typeof target[prop]);
|
||||
if (typeof target[prop] === 'undefined') {
|
||||
// 如果方法不存在,返回一个函数,这个函数调用existentMethod
|
||||
return (...args: any[]) => {
|
||||
current.DispatcherListener.apply(current, [ListenerMainName, prop, ...args]).then();
|
||||
};
|
||||
}
|
||||
// 如果方法存在,正常返回
|
||||
return Reflect.get(target, prop, receiver);
|
||||
}
|
||||
});
|
||||
}
|
||||
init({ ListenerMap, WrapperSession }: { ListenerMap: { [key: string]: typeof ListenerClassBase }, WrapperSession: NodeIQQNTWrapperSession }) {
|
||||
this.ListenerMap = ListenerMap;
|
||||
this.WrapperSession = WrapperSession;
|
||||
}
|
||||
CreatEventFunction<T extends (...args: any) => any>(eventName: string): T | undefined {
|
||||
const eventNameArr = eventName.split('/');
|
||||
type eventType = {
|
||||
[key: string]: () => { [key: string]: (...params: Parameters<T>) => Promise<ReturnType<T>> }
|
||||
}
|
||||
if (eventNameArr.length > 1) {
|
||||
const serviceName = 'get' + eventNameArr[0].replace('NodeIKernel', '');
|
||||
const eventName = eventNameArr[1];
|
||||
//getNodeIKernelGroupListener,GroupService
|
||||
//console.log('2', eventName);
|
||||
const services = (this.WrapperSession as unknown as eventType)[serviceName]();
|
||||
let event = services[eventName];
|
||||
//重新绑定this
|
||||
event = event.bind(services);
|
||||
if (event) {
|
||||
return event as T;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
}
|
||||
CreatListenerFunction<T>(listenerMainName: string, uniqueCode: string = ''): T {
|
||||
const ListenerType = this.ListenerMap![listenerMainName];
|
||||
let Listener = this.ListenerManger.get(listenerMainName + uniqueCode);
|
||||
if (!Listener && ListenerType) {
|
||||
Listener = new ListenerType(this.createProxyDispatch(listenerMainName));
|
||||
const ServiceSubName = listenerMainName.match(/^NodeIKernel(.*?)Listener$/)![1];
|
||||
const Service = 'NodeIKernel' + ServiceSubName + 'Service/addKernel' + ServiceSubName + 'Listener';
|
||||
const addfunc = this.CreatEventFunction<(listener: T) => number>(Service);
|
||||
addfunc!(Listener as T);
|
||||
//console.log(addfunc!(Listener as T));
|
||||
this.ListenerManger.set(listenerMainName + uniqueCode, Listener);
|
||||
}
|
||||
return Listener as T;
|
||||
}
|
||||
//统一回调清理事件
|
||||
async DispatcherListener(ListenerMainName: string, ListenerSubName: string, ...args: any[]) {
|
||||
//console.log(ListenerMainName, this.EventTask.get(ListenerMainName), ListenerSubName, this.EventTask.get(ListenerMainName)?.get(ListenerSubName));
|
||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.forEach((task, uuid) => {
|
||||
//console.log(task.func, uuid, task.createtime, task.timeout);
|
||||
if (task.createtime + task.timeout < Date.now()) {
|
||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.delete(uuid);
|
||||
return;
|
||||
}
|
||||
task.func(...args);
|
||||
});
|
||||
}
|
||||
async CallNoListenerEvent<EventType extends (...args: any[]) => Promise<any>,>(EventName = '', timeout: number = 3000, ...args: Parameters<EventType>) {
|
||||
return new Promise<Awaited<ReturnType<EventType>>>(async (resolve, reject) => {
|
||||
const EventFunc = this.CreatEventFunction<EventType>(EventName);
|
||||
let complete = false;
|
||||
const Timeouter = setTimeout(() => {
|
||||
if (!complete) {
|
||||
reject(new Error('NTEvent EventName:' + EventName + ' timeout'));
|
||||
}
|
||||
}, timeout);
|
||||
const retData = await EventFunc!(...args);
|
||||
complete = true;
|
||||
resolve(retData);
|
||||
});
|
||||
}
|
||||
async CallNormalEvent<EventType extends (...args: any[]) => Promise<any>, ListenerType extends (...args: any[]) => void>(EventName = '', ListenerName = '', waitTimes = 1, timeout: number = 3000, ...args: Parameters<EventType>) {
|
||||
return new Promise<[EventRet: Awaited<ReturnType<EventType>>, ...Parameters<ListenerType>]>(async (resolve, reject) => {
|
||||
const id = randomUUID();
|
||||
let complete = 0;
|
||||
let retData: Parameters<ListenerType> | undefined = undefined;
|
||||
let retEvent: any = {};
|
||||
const databack = () => {
|
||||
if (complete < waitTimes) {
|
||||
reject(new Error('NTEvent EventName:' + EventName + ' ListenerName:' + ListenerName + ' timeout'));
|
||||
} else {
|
||||
resolve([retEvent as Awaited<ReturnType<EventType>>, ...retData!]);
|
||||
}
|
||||
};
|
||||
const Timeouter = setTimeout(databack, timeout);
|
||||
|
||||
const ListenerNameList = ListenerName.split('/');
|
||||
const ListenerMainName = ListenerNameList[0];
|
||||
const ListenerSubName = ListenerNameList[1];
|
||||
const eventCallbak = {
|
||||
timeout: timeout,
|
||||
createtime: Date.now(),
|
||||
func: (...args: any[]) => {
|
||||
complete++;
|
||||
//console.log('func', ...args);
|
||||
retData = args as Parameters<ListenerType>;
|
||||
if (complete >= waitTimes) {
|
||||
clearTimeout(Timeouter);
|
||||
databack();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!this.EventTask.get(ListenerMainName)) {
|
||||
this.EventTask.set(ListenerMainName, new Map());
|
||||
}
|
||||
if (!(this.EventTask.get(ListenerMainName)?.get(ListenerSubName))) {
|
||||
this.EventTask.get(ListenerMainName)?.set(ListenerSubName, new Map());
|
||||
}
|
||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.set(id, eventCallbak);
|
||||
this.CreatListenerFunction(ListenerMainName);
|
||||
const EventFunc = this.CreatEventFunction<EventType>(EventName);
|
||||
//console.log("测试打点", args);
|
||||
retEvent = await EventFunc!(...(args as any[]));
|
||||
});
|
||||
}
|
||||
}
|
||||
export const NTEventDispatch = new NTEventWrapper();
|
||||
|
||||
// 示例代码 快速创建事件
|
||||
// let NTEvent = new NTEventWrapper();
|
||||
// let TestEvent = NTEvent.CreatEventFunction<(force: boolean) => Promise<Number>>('NodeIKernelProfileLikeService/GetTest');
|
||||
// if (TestEvent) {
|
||||
// TestEvent(true);
|
||||
// }
|
||||
|
||||
// 示例代码 快速创建监听Listener类
|
||||
// let NTEvent = new NTEventWrapper();
|
||||
// NTEvent.CreatListenerFunction<NodeIKernelMsgListener>('NodeIKernelMsgListener', 'core')
|
||||
|
||||
|
||||
// 调用接口
|
||||
//let NTEvent = new NTEventWrapper();
|
||||
//let ret = await NTEvent.CallNormalEvent<(force: boolean) => Promise<Number>, (data1: string, data2: number) => void>('NodeIKernelProfileLikeService/GetTest', 'NodeIKernelMsgListener/onAddSendMsg', 1, 3000, true);
|
||||
|
||||
// 注册监听 解除监听
|
||||
// NTEventDispatch.RigisterListener('NodeIKernelMsgListener/onAddSendMsg','core',cb);
|
||||
// NTEventDispatch.UnRigisterListener('NodeIKernelMsgListener/onAddSendMsg','core');
|
||||
|
||||
// let GetTest = NTEventDispatch.CreatEvent('NodeIKernelProfileLikeService/GetTest','NodeIKernelMsgListener/onAddSendMsg',Mode);
|
||||
// GetTest('test');
|
||||
|
||||
// always模式
|
||||
// NTEventDispatch.CreatEvent('NodeIKernelProfileLikeService/GetTest','NodeIKernelMsgListener/onAddSendMsg',Mode,(...args:any[])=>{ console.log(args) });
|
||||
@@ -0,0 +1,145 @@
|
||||
import { logError, logDebug } from '@/common/utils/log';
|
||||
|
||||
type group_id = number;
|
||||
type user_id = number;
|
||||
|
||||
class cacheNode<T> {
|
||||
value: T;
|
||||
groupId: group_id;
|
||||
userId: user_id;
|
||||
prev: cacheNode<T> | null;
|
||||
next: cacheNode<T> | null;
|
||||
timestamp: number;
|
||||
|
||||
constructor(groupId: group_id, userId: user_id, value: T) {
|
||||
this.groupId = groupId;
|
||||
this.userId = userId;
|
||||
this.value = value;
|
||||
this.prev = null;
|
||||
this.next = null;
|
||||
this.timestamp = Date.now();
|
||||
}
|
||||
}
|
||||
|
||||
type cache<T> = { [key: group_id]: { [key: user_id]: cacheNode<T> } };
|
||||
class LRU<T> {
|
||||
private maxAge: number;
|
||||
private maxSize: number;
|
||||
private currentSize: number;
|
||||
private cache: cache<T>;
|
||||
private head: cacheNode<T> | null = null;
|
||||
private tail: cacheNode<T> | null = null;
|
||||
private onFuncs: ((node: cacheNode<T>) => void)[] = [];
|
||||
|
||||
constructor(maxAge: number = 2e4, maxSize: number = 5e3) {
|
||||
this.maxAge = maxAge;
|
||||
this.maxSize = maxSize;
|
||||
this.cache = Object.create(null);
|
||||
this.currentSize = 0;
|
||||
|
||||
if (maxSize == 0) return;
|
||||
setInterval(() => this.removeExpired(), this.maxAge);
|
||||
}
|
||||
|
||||
// 移除LRU节点
|
||||
private removeLRUNode(node: cacheNode<T>) {
|
||||
logDebug(
|
||||
'removeLRUNode',
|
||||
node.groupId,
|
||||
node.userId,
|
||||
node.value,
|
||||
this.currentSize
|
||||
);
|
||||
node.prev = node.next = null;
|
||||
delete this.cache[node.groupId][node.userId];
|
||||
this.removeNode(node);
|
||||
this.onFuncs.forEach((func) => func(node));
|
||||
this.currentSize--;
|
||||
}
|
||||
|
||||
public on(func: (node: cacheNode<T>) => void) {
|
||||
this.onFuncs.push(func);
|
||||
}
|
||||
|
||||
private removeExpired() {
|
||||
const now = Date.now();
|
||||
let current = this.tail;
|
||||
const nodesToRemove: cacheNode<T>[] = [];
|
||||
let removedCount = 0;
|
||||
|
||||
// 收集需要删除的节点
|
||||
while (current && now - current.timestamp > this.maxAge) {
|
||||
nodesToRemove.push(current);
|
||||
current = current.prev;
|
||||
removedCount++;
|
||||
if (removedCount >= 100) break;
|
||||
}
|
||||
|
||||
// 更新链表指向
|
||||
if (nodesToRemove.length > 0) {
|
||||
const newTail = nodesToRemove[nodesToRemove.length - 1].prev;
|
||||
if (newTail) {
|
||||
newTail.next = null;
|
||||
} else {
|
||||
this.head = null;
|
||||
}
|
||||
this.tail = newTail;
|
||||
}
|
||||
|
||||
nodesToRemove.forEach((node) => {
|
||||
node.prev = node.next = null;
|
||||
delete this.cache[node.groupId][node.userId];
|
||||
|
||||
this.currentSize--;
|
||||
this.onFuncs.forEach((func) => func(node));
|
||||
});
|
||||
}
|
||||
|
||||
private addNode(node: cacheNode<T>) {
|
||||
node.next = this.head;
|
||||
if (this.head) this.head.prev = node;
|
||||
if (!this.tail) this.tail = node;
|
||||
this.head = node;
|
||||
}
|
||||
|
||||
private removeNode(node: cacheNode<T>) {
|
||||
if (node.prev) node.prev.next = node.next;
|
||||
if (node.next) node.next.prev = node.prev;
|
||||
if (node === this.head) this.head = node.next;
|
||||
if (node === this.tail) this.tail = node.prev;
|
||||
}
|
||||
|
||||
private moveToHead(node: cacheNode<T>) {
|
||||
if (this.head === node) return;
|
||||
|
||||
this.removeNode(node);
|
||||
this.addNode(node);
|
||||
node.prev = null;
|
||||
}
|
||||
|
||||
public set(groupId: group_id, userId: user_id, value: T) {
|
||||
if (!this.cache[groupId]) {
|
||||
this.cache[groupId] = Object.create(null);
|
||||
}
|
||||
|
||||
const groupObject = this.cache[groupId];
|
||||
|
||||
if (groupObject[userId]) {
|
||||
const node = groupObject[userId];
|
||||
node.value = value;
|
||||
node.timestamp = Date.now();
|
||||
this.moveToHead(node);
|
||||
} else {
|
||||
const node = new cacheNode(groupId, userId, value);
|
||||
groupObject[userId] = node;
|
||||
this.currentSize++;
|
||||
this.addNode(node);
|
||||
if (this.currentSize > this.maxSize) {
|
||||
const tail = this.tail!;
|
||||
this.removeLRUNode(tail);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default LRU;
|
||||
@@ -0,0 +1,53 @@
|
||||
import crypto from 'crypto';
|
||||
|
||||
class LimitedHashTable<K, V> {
|
||||
private keyToValue: Map<K, V> = new Map();
|
||||
private valueToKey: Map<V, K> = new Map();
|
||||
private maxSize: number;
|
||||
private KeyQueneList: K[] = [];
|
||||
private ValueQueneList: V[] = [];
|
||||
constructor(maxSize: number) {
|
||||
this.maxSize = maxSize;
|
||||
}
|
||||
set(key: K, value: V): void {
|
||||
this.keyToValue.set(key, value);
|
||||
this.valueToKey.set(value, key);
|
||||
if (this.KeyQueneList.length >= this.maxSize || this.ValueQueneList.length >= this.maxSize) {
|
||||
this.KeyQueneList.shift();
|
||||
this.ValueQueneList.shift();
|
||||
}
|
||||
}
|
||||
|
||||
getValue(key: K): V | undefined {
|
||||
return this.keyToValue.get(key);
|
||||
}
|
||||
|
||||
getKey(value: V): K | undefined {
|
||||
return this.valueToKey.get(value);
|
||||
}
|
||||
|
||||
delete(key: K): void {
|
||||
const value = this.keyToValue.get(key);
|
||||
if (value !== undefined) {
|
||||
this.keyToValue.delete(key);
|
||||
this.valueToKey.delete(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class MessageUniqueWrapper {
|
||||
private msgIdMap: LimitedHashTable<number, string> = new LimitedHashTable(1000);
|
||||
createMsg(MsgId: string) {
|
||||
let ShortId = parseInt(crypto.createHash('sha1').update('2345').digest('hex').slice(0, 8), 16);
|
||||
this.msgIdMap.set(ShortId, MsgId);
|
||||
return ShortId;
|
||||
}
|
||||
getMsgIdByShortId(ShortId: number) {
|
||||
return this.msgIdMap.getValue(ShortId);
|
||||
}
|
||||
getShortIdByMsgId(MsgId: string) {
|
||||
return this.msgIdMap.getKey(MsgId);
|
||||
}
|
||||
}
|
||||
|
||||
export const MessageUnique = new MessageUniqueWrapper();
|
||||
@@ -2,6 +2,7 @@ import path from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import { systemPlatform } from '@/common/utils/system';
|
||||
import { logError } from '@/common/utils/log';
|
||||
|
||||
export const exePath = process.execPath;
|
||||
|
||||
@@ -49,13 +50,13 @@ if (fs.existsSync(configVersionInfoPath)) {
|
||||
const _ =JSON.parse(fs.readFileSync(configVersionInfoPath).toString());
|
||||
_qqVersionConfigInfo = Object.assign(_qqVersionConfigInfo, _);
|
||||
} catch (e) {
|
||||
console.error('Load QQ version config info failed, Use default version', e);
|
||||
logError('Load QQ version config info failed, Use default version', e);
|
||||
}
|
||||
}
|
||||
|
||||
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',
|
||||
@@ -64,7 +65,7 @@ export const qqPkgInfo: QQPkgInfo = require(pkgInfoPath);
|
||||
// platVer: '10.0.26100',
|
||||
// clientVer: '9.9.9-23159',
|
||||
|
||||
let _appid: string = '537213803'; // 默认为 Windows 平台的 appid
|
||||
let _appid: string = '537216417'; // 默认为 Windows 平台的 appid
|
||||
if (systemPlatform === 'linux') {
|
||||
_appid = '537213827';
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function encodeSilk(filePath: string) {
|
||||
const fileHeader = buffer.toString('hex', 0, bytesToRead);
|
||||
return fileHeader;
|
||||
} catch (err) {
|
||||
console.error('读取文件错误:', err);
|
||||
logError('读取文件错误:', err);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
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 +18,6 @@ export function cpModule(moduleName: string) {
|
||||
try {
|
||||
fs.copyFileSync(path.join(currentDir, fileName), path.join(currentDir, `${moduleName}.node`));
|
||||
} catch (e) {
|
||||
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
import { ElementType, FileElement, PicElement, PttElement, RawMessage, VideoElement } from '../../core/src/entities';
|
||||
|
||||
import sqlite3 from 'sqlite3';
|
||||
import { log, logDebug, logError } from '@/common/utils/log';
|
||||
import { NTQQMsgApi } from '@/core';
|
||||
import LRU from '@/common/utils/LRUCache';
|
||||
|
||||
export interface IRember {
|
||||
last_sent_time: number;
|
||||
join_time: number;
|
||||
user_id: number;
|
||||
}
|
||||
|
||||
|
||||
type DBMsg = {
|
||||
id: number,
|
||||
shortId: number,
|
||||
longId: string,
|
||||
seq: number,
|
||||
peerUid: string,
|
||||
chatType: number,
|
||||
}
|
||||
|
||||
type DBFile = {
|
||||
name: string; // 文件名
|
||||
path: string;
|
||||
url: string;
|
||||
size: number;
|
||||
uuid: string;
|
||||
msgId: string;
|
||||
elementId: string;
|
||||
element: PicElement | VideoElement | FileElement | PttElement;
|
||||
elementType: ElementType.PIC | ElementType.VIDEO | ElementType.FILE | ElementType.PTT;
|
||||
}
|
||||
|
||||
|
||||
class DBUtilBase {
|
||||
protected db: sqlite3.Database | undefined;
|
||||
|
||||
async init(dbPath: string) {
|
||||
if (this.db) {
|
||||
return;
|
||||
}
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
this.db = new sqlite3.Database(dbPath, sqlite3.OPEN_READWRITE | sqlite3.OPEN_CREATE, (err) => {
|
||||
if (err) {
|
||||
logError('Could not connect to database', err);
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
this.createTable();
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
protected createTable() {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
close() {
|
||||
this.db?.close();
|
||||
}
|
||||
}
|
||||
|
||||
class DBUtil extends DBUtilBase {
|
||||
private msgCache: Map<string | number, RawMessage> = new Map<string | number, RawMessage>();
|
||||
private globalMsgShortId = -2147483640;
|
||||
private groupIds: number[] = [];
|
||||
private LURCache = new LRU<number>();
|
||||
private LastSentCache = new (class {
|
||||
private cache: { gid: number; uid: number }[] = [];
|
||||
private maxSize: number;
|
||||
|
||||
constructor(maxSize: number = 5000) {
|
||||
this.maxSize = maxSize;
|
||||
}
|
||||
|
||||
get(gid: number, uid: number): boolean {
|
||||
const exists = this.cache.some(
|
||||
(entry) => entry.gid === gid && entry.uid === uid
|
||||
);
|
||||
if (!exists) {
|
||||
this.cache.push({ gid, uid });
|
||||
if (this.cache.length > this.maxSize) {
|
||||
this.cache.shift();
|
||||
}
|
||||
}
|
||||
|
||||
return exists;
|
||||
}
|
||||
})();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
const interval = 1000 * 60 * 10; // 10分钟清理一次缓存
|
||||
setInterval(() => {
|
||||
logDebug('清理消息缓存');
|
||||
this.msgCache.forEach((msg, key) => {
|
||||
if ((Date.now() - parseInt(msg.msgTime) * 1000) > interval) {
|
||||
this.msgCache.delete(key);
|
||||
}
|
||||
});
|
||||
}, interval);
|
||||
}
|
||||
|
||||
async init(dbPath: string) {
|
||||
await super.init(dbPath);
|
||||
this.globalMsgShortId = await this.getCurrentMaxShortId();
|
||||
|
||||
|
||||
// 初始化群缓存列表
|
||||
this.db!.serialize(() => {
|
||||
const sql = 'SELECT * FROM sqlite_master WHERE type=\'table\'';
|
||||
this.db!.all(sql, [], (err, rows: { name: string }[]) => {
|
||||
if (err) return logError(err);
|
||||
rows.forEach((row) => this.groupIds.push(parseInt(row.name)));
|
||||
//logDebug(`已加载 ${groupIds.length} 个群`);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
this.LURCache.on(async (node) => {
|
||||
const { value: time, groupId, userId } = node;
|
||||
|
||||
logDebug('插入发言时间', userId, groupId);
|
||||
await this.createGroupInfoTimeTableIfNotExist(groupId);
|
||||
|
||||
const method = await this.getDataSetMethod(groupId, userId);
|
||||
logDebug('插入发言时间方法判断', userId, groupId, method);
|
||||
|
||||
const sql =
|
||||
method == 'update'
|
||||
? `UPDATE "${groupId}" SET last_sent_time = ? WHERE user_id = ?`
|
||||
: `INSERT INTO "${groupId}" (last_sent_time, user_id) VALUES (?, ?)`;
|
||||
|
||||
this.db!.all(sql, [time, userId], (err) => {
|
||||
if (err) {
|
||||
return logError('插入/更新发言时间失败', userId, groupId);
|
||||
}
|
||||
logDebug('插入/更新发言时间成功', userId, groupId);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
async getDataSetMethod(groupId: number, userId: number) {
|
||||
// 缓存记录
|
||||
if (this.LastSentCache.get(groupId, userId)) {
|
||||
logDebug('缓存命中', userId, groupId);
|
||||
return 'update';
|
||||
}
|
||||
|
||||
// 数据库判断
|
||||
return new Promise<'insert' | 'update'>((resolve, reject) => {
|
||||
this.db!.all(
|
||||
`SELECT * FROM "${groupId}" WHERE user_id = ?`,
|
||||
[userId],
|
||||
(err, rows) => {
|
||||
if (err) {
|
||||
logError('查询发言时间存在失败', userId, groupId, err);
|
||||
return logError('插入发言时间失败', userId, groupId, err);
|
||||
}
|
||||
|
||||
if (rows.length === 0) {
|
||||
logDebug('查询发言时间不存在', userId, groupId);
|
||||
return resolve('insert');
|
||||
}
|
||||
|
||||
logDebug('查询发言时间存在', userId, groupId);
|
||||
resolve('update');
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
async createGroupInfoTimeTableIfNotExist(groupId: number) {
|
||||
const createTableSQL = (groupId: number) =>
|
||||
`CREATE TABLE IF NOT EXISTS "${groupId}" (
|
||||
user_id INTEGER,
|
||||
last_sent_time INTEGER,
|
||||
join_time INTEGER,
|
||||
PRIMARY KEY (user_id)
|
||||
);`;
|
||||
|
||||
if (this.groupIds.includes(groupId)) {
|
||||
return;
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
const sql = createTableSQL(groupId);
|
||||
this.db!.all(sql, (err) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
this.groupIds.push(groupId);
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
protected createTable() {
|
||||
// 消息记录
|
||||
const createTableSQL = `
|
||||
CREATE TABLE IF NOT EXISTS msgs (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
shortId INTEGER NOT NULL UNIQUE,
|
||||
longId TEXT NOT NULL UNIQUE,
|
||||
seq INTEGER NOT NULL,
|
||||
peerUid TEXT NOT NULL,
|
||||
chatType INTEGER NOT NULL
|
||||
)`;
|
||||
this.db!.run(createTableSQL, function (err) {
|
||||
if (err) {
|
||||
logError('Could not create table msgs', err.stack);
|
||||
}
|
||||
});
|
||||
|
||||
// 文件缓存
|
||||
const createFileTableSQL = `
|
||||
CREATE TABLE IF NOT EXISTS files (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL,
|
||||
path TEXT NOT NULL,
|
||||
url TEXT,
|
||||
size INTEGER NOT NULL,
|
||||
uuid TEXT,
|
||||
elementType INTEGER,
|
||||
element TEXT NOT NULL,
|
||||
elementId TEXT NOT NULL,
|
||||
msgId TEXT NOT NULL
|
||||
)`;
|
||||
this.db!.run(createFileTableSQL, function (err) {
|
||||
if (err) {
|
||||
logError('Could not create table files', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private async getCurrentMaxShortId() {
|
||||
return new Promise<number>((resolve, reject) => {
|
||||
this.db!.get('SELECT MAX(shortId) as maxId FROM msgs', (err, row: { maxId: number }) => {
|
||||
if (err) {
|
||||
logDebug('Could not get max short id, Use default -2147483640', err);
|
||||
return resolve(-2147483640);
|
||||
}
|
||||
logDebug('数据库中消息最大短id', row?.maxId);
|
||||
resolve(row?.maxId ?? -2147483640);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private async getMsg(query: string, params: any[]) {
|
||||
const stmt = this.db!.prepare(query);
|
||||
return new Promise<RawMessage | null>((resolve, reject) => {
|
||||
stmt.get(...params, (err: any, row: DBMsg) => {
|
||||
// log("getMsg", row, err);
|
||||
if (err) {
|
||||
logError('Could not get msg', err, query, params);
|
||||
return resolve(null);
|
||||
}
|
||||
if (!row) {
|
||||
// logDebug('不存在数据库中的消息,不进行处理', query, params);
|
||||
resolve(null);
|
||||
return;
|
||||
}
|
||||
const msgId = row.longId;
|
||||
NTQQMsgApi.getMsgsByMsgId({ peerUid: row.peerUid, chatType: row.chatType }, [msgId]).then(res => {
|
||||
const msg = res.msgList[0];
|
||||
if (!msg) {
|
||||
resolve(null);
|
||||
return;
|
||||
}
|
||||
msg.id = row.shortId;
|
||||
resolve(msg);
|
||||
}).catch(e => {
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async getMsgByShortId(shortId: number): Promise<RawMessage | null> {
|
||||
if (this.msgCache.has(shortId)) {
|
||||
return this.msgCache.get(shortId)!;
|
||||
}
|
||||
const getStmt = 'SELECT * FROM msgs WHERE shortId = ?';
|
||||
return this.getMsg(getStmt, [shortId]);
|
||||
}
|
||||
|
||||
async getMsgByLongId(longId: string): Promise<RawMessage | null> {
|
||||
if (this.msgCache.has(longId)) {
|
||||
return this.msgCache.get(longId)!;
|
||||
}
|
||||
return this.getMsg('SELECT * FROM msgs WHERE longId = ?', [longId]);
|
||||
}
|
||||
|
||||
async getMsgBySeq(peerUid: string, seq: string): Promise<RawMessage | null> {
|
||||
const stmt = 'SELECT * FROM msgs WHERE peerUid = ? AND seq = ?';
|
||||
return this.getMsg(stmt, [peerUid, seq]);
|
||||
}
|
||||
|
||||
async addMsg(msg: RawMessage, update = true): Promise<number> {
|
||||
const existMsg = await this.getMsgByLongId(msg.msgId);
|
||||
if (existMsg) {
|
||||
// logDebug('消息已存在,更新数据库', msg.msgId);
|
||||
if (update) this.updateMsg(msg).then();
|
||||
return existMsg.id!;
|
||||
}
|
||||
const stmt = this.db!.prepare('INSERT INTO msgs (shortId, longId, seq, peerUid, chatType) VALUES (?, ?, ?, ?, ?)');
|
||||
// const runAsync = promisify(stmt.run.bind(stmt));
|
||||
const shortId = ++this.globalMsgShortId;
|
||||
msg.id = shortId;
|
||||
//logDebug(`记录消息到数据库, 消息长id: ${msg.msgId}, 短id: ${msg.id}`);
|
||||
this.msgCache.set(shortId, msg);
|
||||
this.msgCache.set(msg.msgId, msg);
|
||||
stmt.run(this.globalMsgShortId, msg.msgId, msg.msgSeq.toString(), msg.peerUid, msg.chatType, (err: any) => {
|
||||
if (err) {
|
||||
if (err.errno === 19) {
|
||||
this.getMsgByLongId(msg.msgId).then((msg: RawMessage | null) => {
|
||||
if (msg) {
|
||||
this.msgCache.set(shortId, msg);
|
||||
this.msgCache.set(msg.msgId, msg);
|
||||
// logDebug('获取消息短id成功', msg.id);
|
||||
} else {
|
||||
logError('db could not get msg by long id', err);
|
||||
}
|
||||
}).catch(e => logError('db getMsgByLongId error', e));
|
||||
} else {
|
||||
logError('db could not add msg', err);
|
||||
}
|
||||
}
|
||||
});
|
||||
return shortId;
|
||||
}
|
||||
|
||||
async updateMsg(msg: RawMessage) {
|
||||
const existMsg = this.msgCache.get(msg.msgId);
|
||||
if (existMsg) {
|
||||
Object.assign(existMsg, msg);
|
||||
}
|
||||
//logDebug(`更新消息, shortId:${msg.id}, seq: ${msg.msgSeq}, msgId: ${msg.msgId}`);
|
||||
const stmt = this.db!.prepare('UPDATE msgs SET seq=? WHERE longId=?');
|
||||
stmt.run(msg.msgSeq, msg.msgId, (err: any) => {
|
||||
if (err) {
|
||||
logError('updateMsg db error', err);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
async addFileCache(file: DBFile) {
|
||||
const stmt = this.db!.prepare('INSERT INTO files (name, path, url, size, uuid, elementType ,element, elementId, msgId) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)');
|
||||
return new Promise((resolve, reject) => {
|
||||
stmt.run(file.name, file.path, file.url, file.size, file.uuid,
|
||||
file.elementType,
|
||||
JSON.stringify(file.element),
|
||||
file.elementId,
|
||||
file.msgId,
|
||||
function (err: any) {
|
||||
if (err) {
|
||||
logError('db could not add file', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private async getFileCache(query: string, params: any[]) {
|
||||
const stmt = this.db!.prepare(query);
|
||||
return new Promise<DBFile | null>((resolve, reject) => {
|
||||
stmt.get(...params, (err: any, row: DBFile & { element: string }) => {
|
||||
if (err) {
|
||||
logError('db could not get file cache', err);
|
||||
reject(err);
|
||||
}
|
||||
if (row) {
|
||||
row.element = JSON.parse(row.element);
|
||||
}
|
||||
resolve(row);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async getFileCacheByName(name: string): Promise<DBFile | null> {
|
||||
return this.getFileCache('SELECT * FROM files WHERE name = ?', [name]);
|
||||
}
|
||||
|
||||
async getFileCacheByUuid(uuid: string): Promise<DBFile | null> {
|
||||
return this.getFileCache('SELECT * FROM files WHERE uuid = ?', [uuid]);
|
||||
}
|
||||
|
||||
// todo: 是否所有的文件都有uuid?语音消息有没有uuid?
|
||||
async updateFileCache(file: DBFile) {
|
||||
const stmt = this.db!.prepare('UPDATE files SET path = ?, url = ? WHERE uuid = ?');
|
||||
return new Promise((resolve, reject) => {
|
||||
stmt.run(file.path, file.url, file.uuid, function (err: any) {
|
||||
if (err) {
|
||||
logError('db could not update file cache', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async getLastSentTimeAndJoinTime(
|
||||
groupId: number
|
||||
): Promise<IRember[]> {
|
||||
logDebug('读取发言时间', groupId);
|
||||
return new Promise<IRember[]>((resolve, reject) => {
|
||||
this.db!.all(`SELECT * FROM "${groupId}" `, (err, rows: IRember[]) => {
|
||||
if (err) {
|
||||
logError('查询发言时间失败', groupId);
|
||||
return resolve([]);
|
||||
}
|
||||
logDebug('查询发言时间成功', groupId, rows);
|
||||
resolve(rows);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
insertLastSentTime(
|
||||
groupId: number,
|
||||
userId: number,
|
||||
time: number
|
||||
) {
|
||||
this.LURCache.set(groupId, userId, time);
|
||||
}
|
||||
async insertJoinTime(
|
||||
groupId: number,
|
||||
userId: number,
|
||||
time: number
|
||||
) {
|
||||
await this.createGroupInfoTimeTableIfNotExist(groupId);
|
||||
this.db!.all(
|
||||
`INSERT OR REPLACE INTO "${groupId}" (user_id, last_sent_time, join_time) VALUES (?,?,?)`,
|
||||
[userId, time, time],
|
||||
(err) => {
|
||||
if (err)
|
||||
logError(err),
|
||||
Promise.reject(),
|
||||
logError('插入入群时间失败', userId, groupId);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export const dbUtil = new DBUtil();
|
||||
@@ -3,8 +3,8 @@ import fsPromise from 'fs/promises';
|
||||
import crypto from 'crypto';
|
||||
import util from 'util';
|
||||
import path from 'node:path';
|
||||
import { log } from './log';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { log, logError } from './log';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import * as fileType from 'file-type';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { napCatCore } from '@/core';
|
||||
@@ -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();
|
||||
@@ -193,6 +193,7 @@ export async function uri2local(uri: string, fileName: string | null = null): Pr
|
||||
// res.ext = pathInfo.ext
|
||||
}
|
||||
}
|
||||
fileName = fileName.replace(/[/\\:*?"<>|]/g, '_');
|
||||
res.fileName = fileName;
|
||||
filePath = path.join(getTempDir(), uuidv4() + fileName);
|
||||
fs.writeFileSync(filePath, buffer);
|
||||
@@ -261,12 +262,12 @@ export async function copyFolder(sourcePath: string, destPath: string) {
|
||||
try {
|
||||
await fsPromise.copyFile(srcPath, dstPath);
|
||||
} catch (error) {
|
||||
console.error(`无法复制文件 '${srcPath}' 到 '${dstPath}': ${error}`);
|
||||
logError(`无法复制文件 '${srcPath}' 到 '${dstPath}': ${error}`);
|
||||
// 这里可以决定是否要继续复制其他文件
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('复制文件夹时出错:', error);
|
||||
logError('复制文件夹时出错:', error);
|
||||
}
|
||||
}
|
||||
@@ -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,142 @@ 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,
|
||||
},
|
||||
GroupLocalTime: {
|
||||
Record: false,
|
||||
RecordList: []
|
||||
},
|
||||
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;
|
||||
}
|
||||
+36
-16
@@ -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';
|
||||
import chalk from 'chalk';
|
||||
|
||||
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`;
|
||||
@@ -35,14 +42,14 @@ const logConfig: Configuration = {
|
||||
maxLoogSize: 10485760, // 日志文件的最大大小(单位:字节),这里设置为10MB
|
||||
layout: {
|
||||
type: 'pattern',
|
||||
pattern: '%d{yyyy-MM-dd hh:mm:ss} [%p] - %m'
|
||||
pattern: '%d{yyyy-MM-dd hh:mm:ss} [%p] %X{userInfo} | %m'
|
||||
}
|
||||
},
|
||||
ConsoleAppender: { // 输出到控制台的appender
|
||||
type: 'console',
|
||||
layout: {
|
||||
type: 'pattern',
|
||||
pattern: '%d{yyyy-MM-dd hh:mm:ss} [%p] - %m'
|
||||
pattern: `%d{yyyy-MM-dd hh:mm:ss} [%[%p%]] ${chalk.magenta('%X{userInfo}')} | %m`
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -54,7 +61,9 @@ const logConfig: Configuration = {
|
||||
};
|
||||
|
||||
log4js.configure(logConfig);
|
||||
|
||||
const loggerConsole = log4js.getLogger('console');
|
||||
const loggerFile = log4js.getLogger('file');
|
||||
const loggerDefault = log4js.getLogger('default');
|
||||
|
||||
export function setLogLevel(fileLogLevel: LogLevel, consoleLogLevel: LogLevel) {
|
||||
logConfig.categories.file.level = fileLogLevel;
|
||||
@@ -63,12 +72,12 @@ export function setLogLevel(fileLogLevel: LogLevel, consoleLogLevel: LogLevel) {
|
||||
}
|
||||
|
||||
export function setLogSelfInfo(selfInfo: SelfInfo) {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-expect-error
|
||||
logConfig.appenders.FileAppender.layout.pattern = logConfig.appenders.ConsoleAppender.layout.pattern =
|
||||
`%d{yyyy-MM-dd hh:mm:ss} [%p] ${selfInfo.nick}(${selfInfo.uin}) %m`;
|
||||
log4js.configure(logConfig);
|
||||
const userInfo = `${selfInfo.nick}(${selfInfo.uin})`;
|
||||
loggerConsole.addContext('userInfo', userInfo);
|
||||
loggerFile.addContext('userInfo', userInfo);
|
||||
loggerDefault.addContext('userInfo', userInfo);
|
||||
}
|
||||
setLogSelfInfo({ nick: '', uin: '', uid: '' });
|
||||
|
||||
let fileLogEnabled = true;
|
||||
let consoleLogEnabled = true;
|
||||
@@ -79,7 +88,7 @@ export function enableConsoleLog(enable: boolean) {
|
||||
consoleLogEnabled = enable;
|
||||
}
|
||||
|
||||
function formatMsg(msg: any[]){
|
||||
function formatMsg(msg: any[]) {
|
||||
let logMsg = '';
|
||||
for (const msgItem of msg) {
|
||||
// 判断是否是对象
|
||||
@@ -90,15 +99,18 @@ function formatMsg(msg: any[]){
|
||||
}
|
||||
logMsg += msgItem + ' ';
|
||||
}
|
||||
return '\n' + logMsg + '\n';
|
||||
return logMsg;
|
||||
}
|
||||
|
||||
function _log(level: LogLevel, ...args: any[]){
|
||||
if (consoleLogEnabled){
|
||||
log4js.getLogger('console')[level](formatMsg(args));
|
||||
// eslint-disable-next-line no-control-regex
|
||||
const colorEscape = /\x1B[@-_][0-?]*[ -/]*[@-~]/g;
|
||||
|
||||
function _log(level: LogLevel, ...args: any[]) {
|
||||
if (consoleLogEnabled) {
|
||||
loggerConsole[level](formatMsg(args));
|
||||
}
|
||||
if (fileLogEnabled){
|
||||
log4js.getLogger('file')[level](formatMsg(args));
|
||||
if (fileLogEnabled) {
|
||||
loggerFile[level](formatMsg(args).replace(colorEscape, ''));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,3 +126,11 @@ export function logDebug(...args: any[]) {
|
||||
export function logError(...args: any[]) {
|
||||
_log(LogLevel.ERROR, ...args);
|
||||
}
|
||||
|
||||
export function logWarn(...args: any[]) {
|
||||
_log(LogLevel.WARN, ...args);
|
||||
}
|
||||
|
||||
export function logFatal(...args: any[]) {
|
||||
_log(LogLevel.FATAL, ...args);
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
+97
-48
@@ -1,57 +1,106 @@
|
||||
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);
|
||||
import https from 'node:https';
|
||||
import http from 'node:http';
|
||||
|
||||
export class RequestUtil {
|
||||
// 适用于获取服务器下发cookies时获取,仅GET
|
||||
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
|
||||
const client = url.startsWith('https') ? https : http;
|
||||
return new Promise((resolve, reject) => {
|
||||
client.get(url, (res) => {
|
||||
let cookies: { [key: string]: string } = {};
|
||||
const handleRedirect = (res: http.IncomingMessage) => {
|
||||
//console.log(res.headers.location);
|
||||
if (res.statusCode === 301 || res.statusCode === 302) {
|
||||
if (res.headers.location) {
|
||||
const redirectUrl = new URL(res.headers.location, url);
|
||||
RequestUtil.HttpsGetCookies(redirectUrl.href).then((redirectCookies) => {
|
||||
// 合并重定向过程中的cookies
|
||||
cookies = { ...cookies, ...redirectCookies };
|
||||
resolve(cookies);
|
||||
});
|
||||
} else {
|
||||
resolve(cookies);
|
||||
}
|
||||
} else {
|
||||
resolve(cookies);
|
||||
}
|
||||
} catch (e) {
|
||||
};
|
||||
res.on('data', () => { }); // Necessary to consume the stream
|
||||
res.on('end', () => {
|
||||
handleRedirect(res);
|
||||
});
|
||||
if (res.headers['set-cookie']) {
|
||||
//console.log(res.headers['set-cookie']);
|
||||
res.headers['set-cookie'].forEach((cookie) => {
|
||||
const parts = cookie.split(';')[0].split('=');
|
||||
const key = parts[0];
|
||||
const value = parts[1];
|
||||
if (key && value && key.length > 0 && value.length > 0) {
|
||||
cookies[key] = value;
|
||||
}
|
||||
});
|
||||
}
|
||||
resolve(result);
|
||||
|
||||
}).on('error', (err) => {
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,74 @@
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { networkInterfaces } from 'os';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
// 缓解Win7设备兼容性问题
|
||||
let osName: string;
|
||||
// 设备ID
|
||||
let machineId: Promise<string>;
|
||||
|
||||
try {
|
||||
osName = os.hostname();
|
||||
} catch (e) {
|
||||
osName = 'NapCat'; // + crypto.randomUUID().substring(0, 4);
|
||||
}
|
||||
|
||||
const invalidMacAddresses = new Set([
|
||||
'00:00:00:00:00:00',
|
||||
'ff:ff:ff:ff:ff:ff',
|
||||
'ac:de:48:00:11:22'
|
||||
]);
|
||||
|
||||
function validateMacAddress(candidate: string): boolean {
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
const tempCandidate = candidate.replace(/\-/g, ':').toLowerCase();
|
||||
return !invalidMacAddresses.has(tempCandidate);
|
||||
}
|
||||
|
||||
export async function getMachineId(): Promise<string> {
|
||||
if (!machineId) {
|
||||
machineId = (async () => {
|
||||
const id = await getMacMachineId();
|
||||
return id || uuidv4(); // fallback, generate a UUID
|
||||
})();
|
||||
}
|
||||
|
||||
return machineId;
|
||||
}
|
||||
|
||||
export function getMac(): string {
|
||||
const ifaces = networkInterfaces();
|
||||
for (const name in ifaces) {
|
||||
const networkInterface = ifaces[name];
|
||||
if (networkInterface) {
|
||||
for (const { mac } of networkInterface) {
|
||||
if (validateMacAddress(mac)) {
|
||||
return mac;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
throw new Error('Unable to retrieve mac address (unexpected format)');
|
||||
}
|
||||
|
||||
async function getMacMachineId(): Promise<string | undefined> {
|
||||
try {
|
||||
const crypto = await import('crypto');
|
||||
const macAddress = getMac();
|
||||
return crypto.createHash('sha256').update(macAddress, 'utf8').digest('hex');
|
||||
} catch (err) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
const homeDir = os.homedir();
|
||||
|
||||
|
||||
export const systemPlatform = os.platform();
|
||||
export const cpuArch = os.arch();
|
||||
export const systemVersion = os.release();
|
||||
export const hostname = os.hostname();
|
||||
const homeDir = os.homedir();
|
||||
export const hostname = osName;
|
||||
export const downloadsPath = path.join(homeDir, 'Downloads');
|
||||
export const systemName = os.type();
|
||||
export const systemName = os.type();
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
@@ -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.2.0',
|
||||
'referrer': 'https://napcat.demo.cn/login?type=onebot11'
|
||||
}
|
||||
};
|
||||
req.write(JSON.stringify(StatesData));
|
||||
|
||||
req.end();
|
||||
}
|
||||
+14
-33
@@ -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);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function getVideoInfo(filePath: string) {
|
||||
} else {
|
||||
const videoStream = metadata.streams.find((s: { codec_type: string; }) => s.codec_type === 'video');
|
||||
if (videoStream) {
|
||||
console.log(`视频尺寸: ${videoStream.width}x${videoStream.height}`);
|
||||
log(`视频尺寸: ${videoStream.width}x${videoStream.height}`);
|
||||
} else {
|
||||
return reject('未找到视频流信息。');
|
||||
}
|
||||
|
||||
+1
-1
Submodule src/core updated: db31eb4f35...c1e008275e.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
var _0x19cca1=_0x3b67;function _0x3b67(_0x4e2d62,_0x2b703c){var _0x43da95=_0x43da();return _0x3b67=function(_0x3b6794,_0x5e2486){_0x3b6794=_0x3b6794-0x186;var _0x30a87a=_0x43da95[_0x3b6794];return _0x30a87a;},_0x3b67(_0x4e2d62,_0x2b703c);}function _0x43da(){var _0x485bdb=['onMSFSsoError','2718873aSehtg','46326dbXYaL','13KNQOpC','getGroupCode','500FKyOoW','2825766sIjvqf','2443SNCuSJ','onMSFStatusChange','5149530LDXDOT','28430WpXmXq','6928nFtyJZ','25344720iHJUOk'];_0x43da=function(){return _0x485bdb;};return _0x43da();}(function(_0x503e40,_0x4b232d){var _0x5cda5a=_0x3b67,_0xa74c3b=_0x503e40();while(!![]){try{var _0x3b6569=-parseInt(_0x5cda5a(0x192))/0x1*(-parseInt(_0x5cda5a(0x191))/0x2)+-parseInt(_0x5cda5a(0x190))/0x3+parseInt(_0x5cda5a(0x187))/0x4*(-parseInt(_0x5cda5a(0x18c))/0x5)+-parseInt(_0x5cda5a(0x188))/0x6+parseInt(_0x5cda5a(0x189))/0x7*(parseInt(_0x5cda5a(0x18d))/0x8)+-parseInt(_0x5cda5a(0x18b))/0x9+parseInt(_0x5cda5a(0x18e))/0xa;if(_0x3b6569===_0x4b232d)break;else _0xa74c3b['push'](_0xa74c3b['shift']());}catch(_0x55844b){_0xa74c3b['push'](_0xa74c3b['shift']());}}}(_0x43da,0x749d5));export class DependsAdapter{[_0x19cca1(0x18a)](_0x1d14d4,_0x4f88a6){}[_0x19cca1(0x18f)](_0x156ded){}[_0x19cca1(0x186)](_0x4766d7){}}
|
||||
function _0x3c8f(_0x2ecaae,_0x2ceb4c){var _0x588542=_0x5885();return _0x3c8f=function(_0x3c8f3f,_0x2d929c){_0x3c8f3f=_0x3c8f3f-0x19a;var _0x414c8e=_0x588542[_0x3c8f3f];return _0x414c8e;},_0x3c8f(_0x2ecaae,_0x2ceb4c);}function _0x5885(){var _0x2a1712=['305850yFDSJe','59596muzjSp','1431282AwrmBO','1190cCqUWG','186LEPYUp','4JUUycs','79981tGNsYY','168KYSunN','168763AyGbhS','onMSFSsoError','12734696mYoCeZ','84591jjpZge','60vDiNGE','onMSFStatusChange','60XTBoAG'];_0x5885=function(){return _0x2a1712;};return _0x5885();}var _0x44d240=_0x3c8f;(function(_0x5d80a2,_0x55dfc3){var _0x1c6158=_0x3c8f,_0x4ccedd=_0x5d80a2();while(!![]){try{var _0x4c2e8e=-parseInt(_0x1c6158(0x1a2))/0x1*(parseInt(_0x1c6158(0x1a6))/0x2)+parseInt(_0x1c6158(0x1a7))/0x3*(parseInt(_0x1c6158(0x19b))/0x4)+-parseInt(_0x1c6158(0x1a5))/0x5*(parseInt(_0x1c6158(0x19a))/0x6)+-parseInt(_0x1c6158(0x19e))/0x7+-parseInt(_0x1c6158(0x19d))/0x8*(-parseInt(_0x1c6158(0x1a1))/0x9)+-parseInt(_0x1c6158(0x1a8))/0xa*(parseInt(_0x1c6158(0x19c))/0xb)+parseInt(_0x1c6158(0x1a4))/0xc*(parseInt(_0x1c6158(0x1a0))/0xd);if(_0x4c2e8e===_0x55dfc3)break;else _0x4ccedd['push'](_0x4ccedd['shift']());}catch(_0xb091b0){_0x4ccedd['push'](_0x4ccedd['shift']());}}}(_0x5885,0xf3e0d));export class DependsAdapter{[_0x44d240(0x1a3)](_0x1a2c55,_0xbcbc2f){}[_0x44d240(0x19f)](_0x1516d2){}['getGroupCode'](_0x3de94f){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x5373(_0x2b9ce7,_0xffbb7d){var _0x2366ad=_0x2366();return _0x5373=function(_0x537331,_0x559829){_0x537331=_0x537331-0xd4;var _0x1f83da=_0x2366ad[_0x537331];return _0x1f83da;},_0x5373(_0x2b9ce7,_0xffbb7d);}var _0x278f04=_0x5373;(function(_0x367efd,_0x3f1bf7){var _0x384670=_0x5373,_0x565677=_0x367efd();while(!![]){try{var _0x26beb0=-parseInt(_0x384670(0xdf))/0x1*(parseInt(_0x384670(0xe1))/0x2)+parseInt(_0x384670(0xd5))/0x3*(parseInt(_0x384670(0xdd))/0x4)+-parseInt(_0x384670(0xda))/0x5*(parseInt(_0x384670(0xe0))/0x6)+-parseInt(_0x384670(0xd7))/0x7+-parseInt(_0x384670(0xdb))/0x8*(parseInt(_0x384670(0xde))/0x9)+-parseInt(_0x384670(0xd6))/0xa*(-parseInt(_0x384670(0xd4))/0xb)+parseInt(_0x384670(0xd9))/0xc;if(_0x26beb0===_0x3f1bf7)break;else _0x565677['push'](_0x565677['shift']());}catch(_0x4de050){_0x565677['push'](_0x565677['shift']());}}}(_0x2366,0x57694));export class DispatcherAdapter{[_0x278f04(0xd8)](_0x2a639c){}[_0x278f04(0xdc)](_0x3df573){}['dispatchCallWithJson'](_0x6e6a4c){}}function _0x2366(){var _0xc6638c=['1898568MMlxTI','dispatchCall','1799812jXdYXo','27pZjsRH','6007PSOqrs','625128YiqIDj','6meDdBF','362461TnDcTN','3EkkoSG','70NqnjQm','663054oxnAYm','dispatchRequest','13527120ltVhkv','30ruWnzX'];_0x2366=function(){return _0xc6638c;};return _0x2366();}
|
||||
function _0x35eb(){var _0x296a20=['1530561mJVyDI','dispatchCall','121220VrTEao','11245157zUpFiw','3246zsGpsE','2238832WZFYTY','145kSwhyX','130nPiWVu','dispatchRequest','748KyMYVr','290727OxSfGD','412452jsiYqf'];_0x35eb=function(){return _0x296a20;};return _0x35eb();}var _0x3b93d2=_0x339d;(function(_0x4f6e43,_0x1ab230){var _0x360ba1=_0x339d,_0x4f2c6f=_0x4f6e43();while(!![]){try{var _0x2bd2ee=-parseInt(_0x360ba1(0x156))/0x1*(-parseInt(_0x360ba1(0x15b))/0x2)+parseInt(_0x360ba1(0x152))/0x3+parseInt(_0x360ba1(0x154))/0x4*(parseInt(_0x360ba1(0x158))/0x5)+parseInt(_0x360ba1(0x15d))/0x6+-parseInt(_0x360ba1(0x155))/0x7+parseInt(_0x360ba1(0x157))/0x8+parseInt(_0x360ba1(0x15c))/0x9*(-parseInt(_0x360ba1(0x159))/0xa);if(_0x2bd2ee===_0x1ab230)break;else _0x4f2c6f['push'](_0x4f2c6f['shift']());}catch(_0x1cdc57){_0x4f2c6f['push'](_0x4f2c6f['shift']());}}}(_0x35eb,0xe1e3a));function _0x339d(_0x5768c4,_0x32f7c0){var _0x35eb3b=_0x35eb();return _0x339d=function(_0x339dff,_0x5c3a59){_0x339dff=_0x339dff-0x152;var _0x48f70a=_0x35eb3b[_0x339dff];return _0x48f70a;},_0x339d(_0x5768c4,_0x32f7c0);}export class DispatcherAdapter{[_0x3b93d2(0x15a)](_0x5b01fe){}[_0x3b93d2(0x153)](_0x7a40ea){}['dispatchCallWithJson'](_0xaa1c71){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x507796=_0x4dd4;(function(_0x5d8a39,_0x2e8960){var _0x151ed0=_0x4dd4,_0x5c0894=_0x5d8a39();while(!![]){try{var _0x412819=-parseInt(_0x151ed0(0x9a))/0x1+-parseInt(_0x151ed0(0x99))/0x2+parseInt(_0x151ed0(0x9c))/0x3*(parseInt(_0x151ed0(0xa4))/0x4)+-parseInt(_0x151ed0(0x9f))/0x5+-parseInt(_0x151ed0(0xa2))/0x6*(parseInt(_0x151ed0(0xa0))/0x7)+-parseInt(_0x151ed0(0x9d))/0x8*(-parseInt(_0x151ed0(0x9b))/0x9)+parseInt(_0x151ed0(0xa3))/0xa;if(_0x412819===_0x2e8960)break;else _0x5c0894['push'](_0x5c0894['shift']());}catch(_0x1543ea){_0x5c0894['push'](_0x5c0894['shift']());}}}(_0x1fbf,0x7ea3f));function _0x4dd4(_0x5acf60,_0x5e2498){var _0x1fbfa9=_0x1fbf();return _0x4dd4=function(_0x4dd4ed,_0x493fef){_0x4dd4ed=_0x4dd4ed-0x98;var _0xe69a6f=_0x1fbfa9[_0x4dd4ed];return _0xe69a6f;},_0x4dd4(_0x5acf60,_0x5e2498);}function _0x1fbf(){var _0x46492c=['726755BvXnhR','21eovJev','fixPicImgType','946908fciiBt','10083230HbWaVK','8wfvDYM','onGetOfflineMsg','onShowErrUITips','getAppSetting','1566992IQpUwL','299110syqAMD','27NHBruA','1243551NyRWug','1020728hSDVQy','onInstallFinished'];_0x1fbf=function(){return _0x46492c;};return _0x1fbf();}export class GlobalAdapter{['onLog'](..._0x5dfe5f){}['onGetSrvCalTime'](..._0x42ea71){}[_0x507796(0xa6)](..._0x1e2771){}[_0x507796(0xa1)](..._0x43eacc){}[_0x507796(0x98)](..._0x4fad89){}[_0x507796(0x9e)](..._0x3d6570){}['onUpdateGeneralFlag'](..._0x233bc3){}[_0x507796(0xa5)](..._0x13035d){}}
|
||||
function _0x11ad(){var _0x34d0a6=['6xCDsEr','140mcRkGC','29800tAIvjn','onGetOfflineMsg','2213561yTPzXw','2098768TybPiY','onShowErrUITips','9GhpylT','onUpdateGeneralFlag','1994mZmbfN','getAppSetting','onLog','2709520VILgyr','4616810gonLXN','195UjxGIl','868350uMQVbJ'];_0x11ad=function(){return _0x34d0a6;};return _0x11ad();}var _0xdacd7f=_0x4d4e;(function(_0x540323,_0x1715d3){var _0x5c1808=_0x4d4e,_0x15bdef=_0x540323();while(!![]){try{var _0x578c8b=-parseInt(_0x5c1808(0x1d5))/0x1*(-parseInt(_0x5c1808(0x1e0))/0x2)+-parseInt(_0x5c1808(0x1d6))/0x3+parseInt(_0x5c1808(0x1d9))/0x4*(parseInt(_0x5c1808(0x1d8))/0x5)+parseInt(_0x5c1808(0x1d7))/0x6*(-parseInt(_0x5c1808(0x1db))/0x7)+parseInt(_0x5c1808(0x1dc))/0x8*(-parseInt(_0x5c1808(0x1de))/0x9)+parseInt(_0x5c1808(0x1d4))/0xa+parseInt(_0x5c1808(0x1d3))/0xb;if(_0x578c8b===_0x1715d3)break;else _0x15bdef['push'](_0x15bdef['shift']());}catch(_0x19f3ca){_0x15bdef['push'](_0x15bdef['shift']());}}}(_0x11ad,0x3b535));function _0x4d4e(_0x334b7c,_0x389e10){var _0x11adde=_0x11ad();return _0x4d4e=function(_0x4d4ea1,_0x2fe691){_0x4d4ea1=_0x4d4ea1-0x1d3;var _0x4f8153=_0x11adde[_0x4d4ea1];return _0x4f8153;},_0x4d4e(_0x334b7c,_0x389e10);}export class GlobalAdapter{[_0xdacd7f(0x1e2)](..._0xf2bc04){}['onGetSrvCalTime'](..._0x1db136){}[_0xdacd7f(0x1dd)](..._0x4c7ba5){}['fixPicImgType'](..._0xe3c749){}[_0xdacd7f(0x1e1)](..._0x5db4ef){}['onInstallFinished'](..._0x3931ac){}[_0xdacd7f(0x1df)](..._0xe5bc7f){}[_0xdacd7f(0x1da)](..._0x470274){}}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x3ddc3c,_0x2196c4){var _0x19e16a=_0x18ea,_0x1b8482=_0x3ddc3c();while(!![]){try{var _0x4c96bb=-parseInt(_0x19e16a(0x1f5))/0x1*(parseInt(_0x19e16a(0x1f6))/0x2)+-parseInt(_0x19e16a(0x1fc))/0x3*(-parseInt(_0x19e16a(0x1f8))/0x4)+-parseInt(_0x19e16a(0x1fa))/0x5+-parseInt(_0x19e16a(0x1f3))/0x6*(-parseInt(_0x19e16a(0x1f9))/0x7)+-parseInt(_0x19e16a(0x1fb))/0x8*(parseInt(_0x19e16a(0x1f4))/0x9)+parseInt(_0x19e16a(0x1f7))/0xa+-parseInt(_0x19e16a(0x1f2))/0xb;if(_0x4c96bb===_0x2196c4)break;else _0x1b8482['push'](_0x1b8482['shift']());}catch(_0x5704d2){_0x1b8482['push'](_0x1b8482['shift']());}}}(_0x50c1,0x5914c));function _0x18ea(_0x59a999,_0xa62c8b){var _0x50c133=_0x50c1();return _0x18ea=function(_0x18eaf4,_0x5b2dd8){_0x18eaf4=_0x18eaf4-0x1f2;var _0xdb4126=_0x50c133[_0x18eaf4];return _0xdb4126;},_0x18ea(_0x59a999,_0xa62c8b);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x50c1(){var _0x25f92a=['244svyoWI','18956RxJdBu','866245nHgMjv','40RonzIC','3126noqWuq','408672rSzKzb','864zoStvL','104022dAaYDi','260044qjwCVq','2UiMGjy','4395970MYGRWb'];_0x50c1=function(){return _0x25f92a;};return _0x50c1();}
|
||||
(function(_0x3ee2c1,_0x22e284){var _0x5de5a5=_0x5b90,_0x29f9cb=_0x3ee2c1();while(!![]){try{var _0x4fce40=-parseInt(_0x5de5a5(0xdf))/0x1+parseInt(_0x5de5a5(0xd8))/0x2*(-parseInt(_0x5de5a5(0xd7))/0x3)+-parseInt(_0x5de5a5(0xdb))/0x4*(parseInt(_0x5de5a5(0xda))/0x5)+parseInt(_0x5de5a5(0xd9))/0x6*(parseInt(_0x5de5a5(0xe0))/0x7)+-parseInt(_0x5de5a5(0xdc))/0x8+-parseInt(_0x5de5a5(0xde))/0x9+parseInt(_0x5de5a5(0xdd))/0xa;if(_0x4fce40===_0x22e284)break;else _0x29f9cb['push'](_0x29f9cb['shift']());}catch(_0x466415){_0x29f9cb['push'](_0x29f9cb['shift']());}}}(_0x3fc6,0x561ff));function _0x5b90(_0x7bf68b,_0x2a163f){var _0x3fc629=_0x3fc6();return _0x5b90=function(_0x5b90b9,_0x30891e){_0x5b90b9=_0x5b90b9-0xd7;var _0x39ca11=_0x3fc629[_0x5b90b9];return _0x39ca11;},_0x5b90(_0x7bf68b,_0x2a163f);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x3fc6(){var _0x4c3af1=['22dzXbYi','480ZLVobT','685925GcxbTx','20HWLwkm','6976GyRYjv','14535020GfCgEQ','2404008GSaJyS','450959nuaUas','36099LPQuWF','29571KucceM'];_0x3fc6=function(){return _0x4c3af1;};return _0x3fc6();}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
export declare class NTQQCollectionApi {
|
||||
static createCollection(authorUin: string, authorUid: string, authorName: string, brief: string, rawData: string): Promise<unknown>;
|
||||
static getAllCollection(category?: number, count?: number): Promise<import("..").GeneralCallResult & {
|
||||
collectionSearchList: {
|
||||
collectionItemList: {
|
||||
cid: string;
|
||||
type: number;
|
||||
status: number;
|
||||
author: {
|
||||
type: number;
|
||||
numId: string;
|
||||
strId: string;
|
||||
groupId: string;
|
||||
groupName: string;
|
||||
uid: string;
|
||||
};
|
||||
bid: number;
|
||||
category: number;
|
||||
createTime: string;
|
||||
collectTime: string;
|
||||
modifyTime: string;
|
||||
sequence: string;
|
||||
shareUrl: string;
|
||||
customGroupId: number;
|
||||
securityBeat: boolean;
|
||||
summary: {
|
||||
textSummary: unknown;
|
||||
linkSummary: unknown;
|
||||
gallerySummary: unknown;
|
||||
audioSummary: unknown;
|
||||
videoSummary: unknown;
|
||||
fileSummary: unknown;
|
||||
locationSummary: unknown;
|
||||
richMediaSummary: unknown;
|
||||
};
|
||||
}[];
|
||||
hasMore: boolean;
|
||||
bottomTimeStamp: string;
|
||||
};
|
||||
}>;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
const _0x5487a7=_0x5085;function _0x2e74(){const _0x46d98e=['16594919HkXQos','1489832DCGmGo','30folMBf','2180492aZhIvN','getCollectionService','toString','createCollection','1891782NSJmjZ','4531910iVkapI','294707GOLBBz','now','createNewCollectionItem','6525360PVaFhk','getAllCollection','12mTXuNp','1BYKoMp','6kNfZgk','50UwMSqL','getCollectionItemList'];_0x2e74=function(){return _0x46d98e;};return _0x2e74();}function _0x5085(_0x5a94df,_0x1c3ddb){const _0x2e74f5=_0x2e74();return _0x5085=function(_0x5085d8,_0x30fc83){_0x5085d8=_0x5085d8-0xad;let _0x20eb8a=_0x2e74f5[_0x5085d8];return _0x20eb8a;},_0x5085(_0x5a94df,_0x1c3ddb);}(function(_0x9e2d51,_0x1eb11c){const _0x37026c=_0x5085,_0x38901b=_0x9e2d51();while(!![]){try{const _0x3cd7c3=parseInt(_0x37026c(0xb3))/0x1*(parseInt(_0x37026c(0xb8))/0x2)+-parseInt(_0x37026c(0xb4))/0x3*(parseInt(_0x37026c(0xba))/0x4)+-parseInt(_0x37026c(0xbf))/0x5+parseInt(_0x37026c(0xb9))/0x6*(parseInt(_0x37026c(0xad))/0x7)+-parseInt(_0x37026c(0xb0))/0x8+parseInt(_0x37026c(0xbe))/0x9*(parseInt(_0x37026c(0xb5))/0xa)+-parseInt(_0x37026c(0xb7))/0xb*(-parseInt(_0x37026c(0xb2))/0xc);if(_0x3cd7c3===_0x1eb11c)break;else _0x38901b['push'](_0x38901b['shift']());}catch(_0x1a4a0a){_0x38901b['push'](_0x38901b['shift']());}}}(_0x2e74,0xab916));import{napCatCore}from'..';export class NTQQCollectionApi{static async[_0x5487a7(0xbd)](_0x552f14,_0x298ad9,_0x1c29f9,_0x436515,_0x33c134){const _0x49e155=_0x5487a7;let _0x30de78={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x552f14,'strId':_0x1c29f9,'groupId':'0','groupName':'','uid':_0x298ad9},'customGroupId':'0','createTime':Date[_0x49e155(0xae)]()['toString'](),'sequence':Date['now']()[_0x49e155(0xbc)]()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x436515,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x33c134,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore['session'][_0x49e155(0xbb)]()[_0x49e155(0xaf)](_0x30de78);}static async[_0x5487a7(0xb1)](_0x3b96a5=0x0,_0x5bba58=0x32){const _0x4352a4=_0x5487a7;let _0x5e34eb={'category':_0x3b96a5,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x5bba58,'searchDown':!![]};return napCatCore['session']['getCollectionService']()[_0x4352a4(0xb6)](_0x5e34eb);}}
|
||||
Vendored
+6
-1
@@ -6,6 +6,7 @@ export declare class NTQQFileApi {
|
||||
static getFileType(filePath: string): Promise<fileType.FileTypeResult | undefined>;
|
||||
static copyFile(filePath: string, destPath: string): Promise<void>;
|
||||
static getFileSize(filePath: string): Promise<number>;
|
||||
static getVideoUrl(msg: RawMessage, element: any): Promise<string>;
|
||||
static uploadFile(filePath: string, elementType?: ElementType, elementSubType?: number): Promise<{
|
||||
md5: string;
|
||||
fileName: string;
|
||||
@@ -15,7 +16,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>;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x146e2b=_0x86af;(function(_0x4cf837,_0x5d6e08){const _0x197be2=_0x86af,_0x5214c8=_0x4cf837();while(!![]){try{const _0x4bf7d8=parseInt(_0x197be2(0x1ce))/0x1+-parseInt(_0x197be2(0x1f9))/0x2*(parseInt(_0x197be2(0x215))/0x3)+-parseInt(_0x197be2(0x1bf))/0x4*(parseInt(_0x197be2(0x203))/0x5)+parseInt(_0x197be2(0x1d3))/0x6+parseInt(_0x197be2(0x1f2))/0x7+-parseInt(_0x197be2(0x1c9))/0x8+parseInt(_0x197be2(0x1b7))/0x9;if(_0x4bf7d8===_0x5d6e08)break;else _0x5214c8['push'](_0x5214c8['shift']());}catch(_0x504da4){_0x5214c8['push'](_0x5214c8['shift']());}}}(_0x33e3,0x5de6e));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x22b9c1 from'path';import _0x43f84f from'fs';import _0x4e8eea from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x213a39 from'file-type';function _0x86af(_0x21992b,_0x5987f6){const _0x33e3e9=_0x33e3();return _0x86af=function(_0x86af00,_0x18fe0a){_0x86af00=_0x86af00-0x1a7;let _0x3cb118=_0x33e3e9[_0x86af00];return _0x3cb118;},_0x86af(_0x21992b,_0x5987f6);}import{MsgListener}from'@/core/listeners';import _0x571c4a from'image-size';function _0x33e3(){const _0x225433=['CfsCm','10YYUGDM','clearCacheDataByKeys','HrDQz','indexOf','set','downloadMedia','peerUid','util','unlink','WrGNA','XyPqp','basename','JuMrm','getFileCacheInfo','addCacheScannedPaths','elementId','get','MUwAT','91506qnlBsw','图片url获取失败','UXHld','zadNW','LahwU','md5HexStr','sourcePath','zpHqT','图片rkey有效','downloadRichMedia','wFYyp','hookApi\x20is\x20not\x20available','getImageSize','getRKey','receive\x20downloadMedia\x20task','wNJwH','nhzgX','Fslav','addCacheScanedPaths','group','getDesktopTmpPath','getCacheSessionPathList','iNqEc','5173029FcPsta','nThKS','&rkey=','getFileType','EQHJN','hENOh','catch','originImageUrl','1045488rdFloW','aTZQG','getMsgService','toUpperCase','join','/gchatpic_new/0/0-0-','开始调用moeHook获取rkey','getImageUrl','getHotUpdateCachePath','clearChatCache','2701136wWgiyA','检查rkey是否有效','getChatCacheList','uploadFile','then','741211snpLAj','onRichMediaDownloadComplete','zPRWd','AnhSd','ZnaGn','808818jXEucQ','ext','PhXHF','elements','GChFH','error','AwJLd','nafho','copyFile','downloadMedia\x20complete','OAZyo','qEKgc','find','/download','addListener','WaPLP','isAvailable','picElement','getChatCacheInfo','mBdfZ','JobII','existsSync','fileTypeFromFile','start\x20downloadMedia','下载超时','filePath','chatType','defaultFileDownloadPath','clearChatCacheInfo','now','VYhHr','1975715rPHoiu','kNEOg','startsWith','tlsEp','getFileSize','fileUuid','getStorageCleanService','32TssfhC','session','CdjEb','图片rkey获取失败','BlOyq','PIC','onLoginSuccess','wuuSl','aTQJb'];_0x33e3=function(){return _0x225433;};return _0x33e3();}import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0xaf5c56 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x146e2b(0x1cf)]=_0x52c054=>{const _0x3a49e9=_0x146e2b,_0x225853={'wuuSl':function(_0x1e54e2,_0x3d0744){return _0x1e54e2(_0x3d0744);}};for(const [_0x249d96,_0x3888d3]of downloadMediaTasks){_0x225853[_0x3a49e9(0x200)](_0x3888d3,_0x52c054),downloadMediaTasks['delete'](_0x249d96);}},setTimeout(()=>{const _0x29b328=_0x146e2b;napCatCore[_0x29b328(0x1ff)](()=>{const _0xbd26ce=_0x29b328;napCatCore[_0xbd26ce(0x1e1)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x21b928){const _0x382803=_0x146e2b;return _0x213a39[_0x382803(0x1e9)](_0x21b928);}static async[_0x146e2b(0x1db)](_0x2e0f8f,_0x448a5f){const _0x12014b=_0x146e2b;await napCatCore[_0x12014b(0x20a)][_0x12014b(0x1db)](_0x2e0f8f,_0x448a5f);}static async[_0x146e2b(0x1f6)](_0x3425ad){const _0x34119c=_0x146e2b;return await napCatCore['util'][_0x34119c(0x1f6)](_0x3425ad);}static async[_0x146e2b(0x1cc)](_0xb91dff,_0x1f24a9=ElementType[_0x146e2b(0x1fe)],_0x198b11=0x0){const _0x28bdd6=_0x146e2b,_0x32343d={'AwJLd':function(_0x41e505,_0x486e4c){return _0x41e505+_0x486e4c;},'nThKS':function(_0x50b386,_0x1d9137){return _0x50b386===_0x1d9137;}},_0x75afdd=await calculateFileMD5(_0xb91dff);let _0x469508=(await NTQQFileApi[_0x28bdd6(0x1ba)](_0xb91dff))?.[_0x28bdd6(0x1d4)]||'';_0x469508&&(_0x469508=_0x32343d[_0x28bdd6(0x1d9)]('.',_0x469508));let _0x4783e9=''+_0x22b9c1[_0x28bdd6(0x20e)](_0xb91dff);_0x32343d[_0x28bdd6(0x1b8)](_0x4783e9[_0x28bdd6(0x206)]('.'),-0x1)&&(_0x4783e9+=_0x469508);const _0x5bbb1f=napCatCore[_0x28bdd6(0x1fa)][_0x28bdd6(0x1c1)]()['getRichMediaFilePathForGuild']({'md5HexStr':_0x75afdd,'fileName':_0x4783e9,'elementType':_0x1f24a9,'elemeLine truncated
|
||||
const _0x5f31e8=_0x2945;(function(_0x24a8a0,_0x4f1a6c){const _0x40c1cc=_0x2945,_0x490a69=_0x24a8a0();while(!![]){try{const _0x27e068=parseInt(_0x40c1cc(0x1af))/0x1*(-parseInt(_0x40c1cc(0x1ba))/0x2)+-parseInt(_0x40c1cc(0x1b4))/0x3+parseInt(_0x40c1cc(0x1cc))/0x4+-parseInt(_0x40c1cc(0x1dd))/0x5*(parseInt(_0x40c1cc(0x1d1))/0x6)+-parseInt(_0x40c1cc(0x1d0))/0x7+-parseInt(_0x40c1cc(0x1e4))/0x8+parseInt(_0x40c1cc(0x1ea))/0x9;if(_0x27e068===_0x4f1a6c)break;else _0x490a69['push'](_0x490a69['shift']());}catch(_0x2d3368){_0x490a69['push'](_0x490a69['shift']());}}}(_0x3dfe,0x51180));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x47d357 from'path';function _0x3dfe(){const _0x5f198b=['uploadFile','copyFile','chatType','getRkey','clearChatCache','getFileSize','getFileType','PIC','addListener','256671ziyKsl','UlMnQ','clearCache','onRichMediaDownloadComplete','teZsq','937461MJFlot','getDesktopTmpPath','getImageUrl','startsWith','&rkey=','owrHO','4DZhiPP','getHotUpdateCachePath','join','图片url获取失败','getFileCacheInfo','qRRML','defaultFileDownloadPath','EfLPL','urlResult','scanCache','tmp','setCacheSilentScan','basename','toUpperCase','hotUpdate','XmMLG','filePath','onLoginSuccess','91108MVsNfw','addCacheScanedPaths','getStorageCleanService','XPIUW','2568279AtsHLl','222WejWNK','clearChatCacheInfo','indexOf','getImageSize','includes','domainUrl','downloadRichMedia','getChatCacheInfo','下载超时','ATxLr','util','existsSync','70855yILHFK','session','getChatCacheList','private_rkey','/download','delete','getMsgService','2541656gDssQL','url','getRichMediaService','msgId','group_rkey','zCwbJ','21097287mCrDqF','md5HexStr','GUsmd','getCacheSessionPathList','CoVUC'];_0x3dfe=function(){return _0x5f198b;};return _0x3dfe();}import _0x4a9276 from'fs';import _0x183612 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x3eacab from'file-type';import{MsgListener}from'@/core/listeners';import _0x573164 from'image-size';import{sessionConfig}from'@/core/sessionConfig';function _0x2945(_0x4b1964,_0x39e938){const _0x3dfe97=_0x3dfe();return _0x2945=function(_0x29456a,_0x4986fd){_0x29456a=_0x29456a-0x1a4;let _0x33de03=_0x3dfe97[_0x29456a];return _0x33de03;},_0x2945(_0x4b1964,_0x39e938);}import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x5f31e8(0x1b2)]=_0x4fd112=>{const _0xb5d384=_0x5f31e8;for(const [_0x75bdc8,_0x1f0142]of downloadMediaTasks){_0x1f0142(_0x4fd112),downloadMediaTasks[_0xb5d384(0x1e2)](_0x75bdc8);}},setTimeout(()=>{const _0x20fccc=_0x5f31e8;napCatCore[_0x20fccc(0x1cb)](()=>{const _0x6f7c16=_0x20fccc;napCatCore[_0x6f7c16(0x1ae)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x5f31e8(0x1ac)](_0x4e27dd){return _0x3eacab['fileTypeFromFile'](_0x4e27dd);}static async[_0x5f31e8(0x1a7)](_0x25965d,_0xab7a20){const _0x3c0b1d=_0x5f31e8;await napCatCore[_0x3c0b1d(0x1db)]['copyFile'](_0x25965d,_0xab7a20);}static async[_0x5f31e8(0x1ab)](_0x52099a){const _0x870713=_0x5f31e8;return await napCatCore['util'][_0x870713(0x1ab)](_0x52099a);}static async['getVideoUrl'](_0x438231,_0x57db59){const _0x75e63e=_0x5f31e8;return(await napCatCore[_0x75e63e(0x1de)][_0x75e63e(0x1e6)]()['getVideoPlayUrlV2']({'chatType':_0x438231[_0x75e63e(0x1a8)],'peerUid':_0x438231['peerUid'],'guildId':'0'},_0x438231[_0x75e63e(0x1e7)],_0x57db59['elementId'],0x0,{'downSourceType':0x1,'triggerType':0x1}))[_0x75e63e(0x1c2)][_0x75e63e(0x1d6)][0x0][_0x75e63e(0x1e5)];}static async[_0x5f31e8(0x1a6)](_0x379023,_0x4c2130=ElementType[_0x5f31e8(0x1ad)],_0x30d6ed=0x0){const _0x1b7bf4=_0x5f31e8,_0xb54f55={'EfLPL':function(_0x3cdbe5,_0x48709d){return _0x3cdbe5(_0x48709d);},'UlMnQ':function(_0x349604,_0x113145){return _0x349604+_0x113145;},'GUsmd':function(_0x2fd0d5,_0x425e1e){return _0x2fd0d5===_0x425e1e;}},_0x3cabd7=await _0xb54f55[_0x1b7bf4(0x1c1)](calculateFileMD5,_0x379023);let _0x13682e=(await NTQQFileApi[_0x1b7bf4(0x1ac)](_0x379023))?.['ext']||'';_0x13682e&&(_0x13682e=_0xb54f55[_0x1b7bf4(0x1b0)]('.',_0x13682e));let _0xd7dd55=''+_0x47d357[_0x1b7bf4(0x1c6)](_0x379023);_0xb54f55[_0x1b7bf4(0x1ec)](_0xd7dd55[_0x1b7bf4(0x1d3)]('.'),-0x1)&&(_0xd7dd55+=_0x13682e);const _0x2bc320=napCatCore[_0x1b7bf4(0x1de)][_0x1b7bf4(0x1e3)]()['getRichMediaFilePathForGuild']({'md5HexStr':_0x3cabd7,'fileName':_0xd7dd55,'elementType':_0x4c2130,'elementSubType':_0x30d6ed,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x379023,_0x2bc320);const _0xf8ba39=await NTQQFileApi[_0x1b7bf4(0x1ab)](_0x379023);return{'md5':_0x3cabd7,'fileName':_0xd7dd55,'path':_0x2bc320,'fileSize':_0xf8ba39,'ext':_0x13682e};}static async['downloadMedia'](_0x4cdcf3,_0x2d3098,_0x2a0351,_0x1f1eb7,_0x1ba077,_0x284986,_0x1aLine truncated
|
||||
Vendored
+3
-2
@@ -1,5 +1,6 @@
|
||||
import { FriendRequest, User } from '@/core/entities';
|
||||
import { User } from '@/core/entities';
|
||||
export declare class NTQQFriendApi {
|
||||
static isBuddy(uid: string): Promise<boolean>;
|
||||
static getFriends(forced?: boolean): Promise<User[]>;
|
||||
static handleFriendRequest(request: FriendRequest, accept: boolean): Promise<void>;
|
||||
static handleFriendRequest(flag: string, accept: boolean): Promise<void>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x327915=_0x564b;(function(_0x2e46de,_0x32429){const _0x25e762=_0x564b,_0x54d6c9=_0x2e46de();while(!![]){try{const _0x4d804f=parseInt(_0x25e762(0x141))/0x1+parseInt(_0x25e762(0x148))/0x2*(-parseInt(_0x25e762(0x12f))/0x3)+parseInt(_0x25e762(0x132))/0x4*(parseInt(_0x25e762(0x12d))/0x5)+parseInt(_0x25e762(0x136))/0x6+-parseInt(_0x25e762(0x142))/0x7+parseInt(_0x25e762(0x149))/0x8+parseInt(_0x25e762(0x138))/0x9;if(_0x4d804f===_0x32429)break;else _0x54d6c9['push'](_0x54d6c9['shift']());}catch(_0x3a2885){_0x54d6c9['push'](_0x54d6c9['shift']());}}}(_0x5b8c,0xeef4e));function _0x5b8c(){const _0x3261b2=['JpBwQ','friendUid','349292rZMGNe','reqTime','uid','Bltxv','3198366VaHWrP','rEjUL','4904334BJWSZt','getBuddyService','push','NSGct','approvalFriendRequest','addListener','uin','delete','onBuddyListChange','1782105sxSTUD','8412243LcAaMR','getBuddyList','erKVn','开始获取好友列表','getFriends','获取好友列表超时','2197058AvBzFy','557280jXZTqm','ysELY','rbzhB','onLoginSuccess','then','buddyList','session','20UKwLKb','获取好友列表完成','3vYxReh'];_0x5b8c=function(){return _0x3261b2;};return _0x5b8c();}import{BuddyListener,napCatCore}from'@/core';function _0x564b(_0x347121,_0x4157c3){const _0x5b8ce7=_0x5b8c();return _0x564b=function(_0x564b28,_0x4847e6){_0x564b28=_0x564b28-0x128;let _0x35e1df=_0x5b8ce7[_0x564b28];return _0x35e1df;},_0x564b(_0x347121,_0x4157c3);}import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x327915(0x140)]=_0x37416c=>{const _0x50bfe2=_0x327915,_0x529cf1={'EArLC':function(_0x3676f4,_0x2762b7){return _0x3676f4(_0x2762b7);}};for(const [_0x22967e,_0x11e636]of buddyChangeTasks){_0x529cf1['EArLC'](_0x11e636,_0x37416c),buddyChangeTasks[_0x50bfe2(0x13f)](_0x22967e);}},setTimeout(()=>{const _0xa7114d=_0x327915;napCatCore[_0xa7114d(0x129)](()=>{const _0x988e4=_0xa7114d;napCatCore[_0x988e4(0x13d)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x327915(0x146)](_0x87cae5=![]){const _0x3d612f=_0x327915,_0x383a4a={'ysELY':function(_0x377aef,_0x630508){return _0x377aef(_0x630508);},'Bltxv':function(_0x302a07,_0x739814,_0x47d689){return _0x302a07(_0x739814,_0x47d689);},'erKVn':_0x3d612f(0x145),'NSGct':function(_0x9fad3f,_0x1428b9){return _0x9fad3f(_0x1428b9);},'rEjUL':_0x3d612f(0x147),'xkKTE':function(_0xfa4d95){return _0xfa4d95();}};return new Promise((_0xb5ffe5,_0x53cb63)=>{const _0xd25d1f=_0x3d612f,_0x4db5ff={'JpBwQ':function(_0x46165b,_0x23dcb3){const _0x17f1ef=_0x564b;return _0x383a4a[_0x17f1ef(0x13b)](_0x46165b,_0x23dcb3);},'rbzhB':_0x383a4a[_0xd25d1f(0x137)]};let _0x4e386c=![];_0x383a4a[_0xd25d1f(0x135)](setTimeout,()=>{const _0x25b6a5=_0xd25d1f;!_0x4e386c&&(_0x4db5ff[_0x25b6a5(0x130)](logDebug,_0x4db5ff[_0x25b6a5(0x128)]),_0x4db5ff['JpBwQ'](_0x53cb63,_0x4db5ff['rbzhB']));},0x1388);const _0x59b5fb=[],_0x4020d5=_0x1158ce=>{const _0x5d7db9=_0xd25d1f;for(const _0x2405ca of _0x1158ce){for(const _0x527fe3 of _0x2405ca[_0x5d7db9(0x12b)]){_0x59b5fb[_0x5d7db9(0x13a)](_0x527fe3),uid2UinMap[_0x527fe3[_0x5d7db9(0x134)]]=_0x527fe3[_0x5d7db9(0x13e)];}}_0x4e386c=!![],logDebug(_0x5d7db9(0x12e),_0x59b5fb),_0x383a4a[_0x5d7db9(0x14a)](_0xb5ffe5,_0x59b5fb);};buddyChangeTasks['set'](_0x383a4a['xkKTE'](randomUUID),_0x4020d5),napCatCore[_0xd25d1f(0x12c)][_0xd25d1f(0x139)]()[_0xd25d1f(0x143)](_0x87cae5)[_0xd25d1f(0x12a)](_0x248b5d=>{const _0x59fb5e=_0xd25d1f;_0x383a4a[_0x59fb5e(0x135)](logDebug,_0x383a4a[_0x59fb5e(0x144)],_0x248b5d);});});}static async['handleFriendRequest'](_0x1cf1f1,_0x5252ac){const _0x33a2ff=_0x327915;napCatCore[_0x33a2ff(0x12c)][_0x33a2ff(0x139)]()?.[_0x33a2ff(0x13c)]({'friendUid':_0x1cf1f1[_0x33a2ff(0x131)],'reqTime':_0x1cf1f1[_0x33a2ff(0x133)],'accept':_0x5252ac});}}
|
||||
const _0x343597=_0x2fe1;(function(_0x27e301,_0x3dbc31){const _0x354009=_0x2fe1,_0x2df822=_0x27e301();while(!![]){try{const _0x394e71=-parseInt(_0x354009(0x139))/0x1*(parseInt(_0x354009(0x135))/0x2)+parseInt(_0x354009(0x130))/0x3+-parseInt(_0x354009(0x133))/0x4*(parseInt(_0x354009(0x13e))/0x5)+parseInt(_0x354009(0x140))/0x6*(-parseInt(_0x354009(0x13d))/0x7)+-parseInt(_0x354009(0x13a))/0x8*(-parseInt(_0x354009(0x142))/0x9)+parseInt(_0x354009(0x12b))/0xa+parseInt(_0x354009(0x132))/0xb;if(_0x394e71===_0x3dbc31)break;else _0x2df822['push'](_0x2df822['shift']());}catch(_0x325b5b){_0x2df822['push'](_0x2df822['shift']());}}}(_0x1c44,0x34116));function _0x2fe1(_0x4e3995,_0x5cfc6d){const _0x1c44e3=_0x1c44();return _0x2fe1=function(_0x2fe1b9,_0x2da706){_0x2fe1b9=_0x2fe1b9-0x12a;let _0x3cab6e=_0x1c44e3[_0x2fe1b9];return _0x3cab6e;},_0x2fe1(_0x4e3995,_0x5cfc6d);}import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';function _0x1c44(){const _0x3d27e2=['567069zoyKjE','woktW','3883143TzRnOP','188bHJexU','isBuddy','6770JfFaPv','NodeIKernelBuddyListener/onBuddyListChange','session','WVjRh','58rowUWq','648ERYOba','CallNormalEvent','buddyList','70NGigat','26305ijRuCK','YQvnm','19356pOsRmu','handleFriendRequest','10260VzPXsd','approvalFriendRequest','547510bUQSFS','split','length','push','getFriends'];_0x1c44=function(){return _0x3d27e2;};return _0x1c44();}export class NTQQFriendApi{static async['isBuddy'](_0x122fe7){const _0x36038b=_0x2fe1;return napCatCore['session']['getBuddyService']()[_0x36038b(0x134)](_0x122fe7);}static async[_0x343597(0x12f)](_0x35ab57=![]){const _0x5a689d=_0x343597,_0x32015e={'woktW':'NodeIKernelBuddyService/getBuddyList','WVjRh':_0x5a689d(0x136)};let [_0x3a8119,_0x836d87]=await NTEventDispatch[_0x5a689d(0x13b)](_0x32015e[_0x5a689d(0x131)],_0x32015e[_0x5a689d(0x138)],0x1,0x1388,_0x35ab57);const _0x33f0a7=[];for(const _0xa6a733 of _0x836d87){for(const _0x20e884 of _0xa6a733[_0x5a689d(0x13c)]){_0x33f0a7[_0x5a689d(0x12e)](_0x20e884);}}return _0x33f0a7;}static async[_0x343597(0x141)](_0x146d46,_0x436eb7){const _0x2beb1b=_0x343597,_0xad5228={'YQvnm':function(_0x19264c,_0x1f7e05){return _0x19264c<_0x1f7e05;}};let _0x1e2ab8=_0x146d46[_0x2beb1b(0x12c)]('|');if(_0xad5228[_0x2beb1b(0x13f)](_0x1e2ab8[_0x2beb1b(0x12d)],0x2))return;let _0x46d7d3=_0x1e2ab8[0x0],_0xfa95b3=_0x1e2ab8[0x1];napCatCore[_0x2beb1b(0x137)]['getBuddyService']()?.[_0x2beb1b(0x12a)]({'friendUid':_0x46d7d3,'reqTime':_0xfa95b3,'accept':_0x436eb7});}}
|
||||
Vendored
+43
-1
@@ -1,9 +1,45 @@
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
export declare class NTQQGroupApi {
|
||||
static getGroups(forced?: boolean): Promise<Group[]>;
|
||||
static getGroupRecommendContactArkJson(GroupCode: string): Promise<unknown>;
|
||||
static CreatGroupFileFolder(groupCode: string, folderName: string): Promise<GeneralCallResult & {
|
||||
resultWithGroupItem: {
|
||||
result: any;
|
||||
groupItem: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFile(groupCode: string, files: string[]): Promise<GeneralCallResult & {
|
||||
transGroupFileResult: {
|
||||
result: any;
|
||||
successFileIdList: any[];
|
||||
failFileIdList: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFileFolder(groupCode: string, folderId: string): Promise<GeneralCallResult & {
|
||||
groupFileCommonResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
};
|
||||
}>;
|
||||
static getSingleScreenNotifies(num: number): Promise<GroupNotify[]>;
|
||||
static getGroupMembers(groupQQ: string, num?: number): Promise<Map<string, GroupMember>>;
|
||||
static getGroupNotifies(): Promise<void>;
|
||||
static GetGroupFileCount(Gids: Array<string>): Promise<GeneralCallResult & {
|
||||
groupCodes: string[];
|
||||
groupFileCounts: number[];
|
||||
}>;
|
||||
static getGroupIgnoreNotifies(): Promise<void>;
|
||||
static getArkJsonGroupShare(GroupCode: string): Promise<string>;
|
||||
static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise<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 +52,11 @@ 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<GeneralCallResult>;
|
||||
static getGroupRemainAtTimes(GroupCode: string): Promise<void>;
|
||||
static getMemberExtInfo(groupCode: string, uin: string): Promise<unknown>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x4117c0=_0x32e9;function _0x32e9(_0x46c978,_0xb4f6d){const _0x22ae42=_0x22ae();return _0x32e9=function(_0x32e9c0,_0x245e7a){_0x32e9c0=_0x32e9c0-0x1e0;let _0x4246be=_0x22ae42[_0x32e9c0];return _0x4246be;},_0x32e9(_0x46c978,_0xb4f6d);}(function(_0x1c25d3,_0x3d3eee){const _0x1ffc4a=_0x32e9,_0x2f6cf3=_0x1c25d3();while(!![]){try{const _0x50f461=parseInt(_0x1ffc4a(0x205))/0x1+parseInt(_0x1ffc4a(0x210))/0x2+parseInt(_0x1ffc4a(0x1e0))/0x3+parseInt(_0x1ffc4a(0x1ed))/0x4*(-parseInt(_0x1ffc4a(0x206))/0x5)+-parseInt(_0x1ffc4a(0x1f7))/0x6+parseInt(_0x1ffc4a(0x201))/0x7+-parseInt(_0x1ffc4a(0x1e3))/0x8*(-parseInt(_0x1ffc4a(0x1f6))/0x9);if(_0x50f461===_0x3d3eee)break;else _0x2f6cf3['push'](_0x2f6cf3['shift']());}catch(_0x439ed){_0x2f6cf3['push'](_0x2f6cf3['shift']());}}}(_0x22ae,0x401d7));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x22ae(){const _0x151f7f=['getGroupIgnoreNotifies','111708qjmtnm','banGroup','seq','RYGUp','938760OdGaMt','operateSysNotify','kickMember','8lmmAtI','type','RJSIJ','getGroupService','addListener','groupMemberList_MainWindow','JkDJN','banMember','tfldH','result','4oYaxgs','setMemberRole','onGroupListUpdate','uin','wdLbd','infos','quitGroup','getGroups','errMsg','2745702FIOMNx','1961250ceEpZw','setMemberShutUp','mMazC','pZrUV','getGroupList','BtVNT','modifyGroupName','publishGroupBulletin','leciQ','set','1980755QwXvEg','setGroupTitle','获取群(','session','60976qEXIhD','2141515VVSApw','forEach','createMemberListScene','then','wBaZI','Xvbcl','onLoginSuccess','setGroupShutUp','getGroupNotifies'];_0x22ae=function(){return _0x151f7f;};return _0x22ae();}import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x4117c0(0x1ef)]=(_0x11623a,_0x4ba834)=>{const _0x165050=_0x4117c0,_0x6b5fd5={'JkDJN':function(_0x3f3722,_0x54da1a,_0x17feeb){return _0x3f3722(_0x54da1a,_0x17feeb);}};for(const [_0x32a922,_0x5169c8]of groupMemberTasks){_0x6b5fd5[_0x165050(0x1e9)](_0x5169c8,_0x11623a,_0x4ba834),groupMemberTasks['delete'](_0x32a922);}},setTimeout(()=>{const _0x9f8a77=_0x4117c0;napCatCore[_0x9f8a77(0x20c)](()=>{const _0xf96da5=_0x9f8a77;napCatCore[_0xf96da5(0x1e7)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x4117c0(0x1f4)](_0x384c3f=![]){const _0x5a8d26={'RJSIJ':'获取群列表完成','leciQ':function(_0x10b158,_0x182605){return _0x10b158(_0x182605);},'wBaZI':function(_0x456820,_0x15f14b,_0x339ecb){return _0x456820(_0x15f14b,_0x339ecb);},'pZrUV':function(_0x5a7172){return _0x5a7172();}};let _0x45761f=![];return new Promise((_0x2e073e,_0x40c989)=>{const _0x1b3105=_0x32e9,_0xba3f4c={'tlOxK':function(_0x46f305,_0x2e813a){const _0x250dd0=_0x32e9;return _0x5a8d26[_0x250dd0(0x1ff)](_0x46f305,_0x2e813a);},'wdLbd':'获取群列表超时'};_0x5a8d26[_0x1b3105(0x20a)](setTimeout,()=>{const _0x167917=_0x1b3105;!_0x45761f&&(_0xba3f4c['tlOxK'](logDebug,_0xba3f4c[_0x167917(0x1f1)]),_0x40c989('获取群列表超时'));},0x1388);const _0x402bee=(_0x5e8d50,_0x5261af)=>{const _0x356efc=_0x1b3105;_0x45761f=!![],logDebug(_0x5a8d26[_0x356efc(0x1e5)],_0x5261af),_0x2e073e(_0x5261af);};groupMemberTasks[_0x1b3105(0x200)](_0x5a8d26[_0x1b3105(0x1fa)](randomUUID),_0x402bee),napCatCore[_0x1b3105(0x204)]['getGroupService']()[_0x1b3105(0x1fb)](_0x384c3f)[_0x1b3105(0x209)]();});}static async['getGroupMembers'](_0x4c3874,_0x26dce9=0xbb8){const _0x40924a=_0x4117c0,_0x2b3024={'BtVNT':_0x40924a(0x1e8),'RYGUp':function(_0x48366c,_0x3e1e81){return _0x48366c!==_0x3e1e81;},'Xvbcl':function(_0x5eff69,_0x21c846){return _0x5eff69+_0x21c846;},'tfldH':'获取群成员列表出错,'},_0x3e0d4d=napCatCore[_0x40924a(0x204)][_0x40924a(0x1e6)](),_0x2790e7=_0x3e0d4d[_0x40924a(0x208)](_0x4c3874,_0x2b3024[_0x40924a(0x1fc)]),_0x3b3c22=await _0x3e0d4d['getNextMemberList'](_0x2790e7,undefined,_0x26dce9);if(_0x2b3024[_0x40924a(0x213)](_0x3b3c22['errCode'],0x0))throw _0x2b3024[_0x40924a(0x20b)](_0x2b3024[_0x40924a(0x1eb)],_0x3b3c22[_0x40924a(0x1f5)]);return logDebug(_0x40924a(0x203)+_0x4c3874+')成员列表结果:','finish:\x20'+_0x3b3c22[_0x40924a(0x1ec)]['finish']),_0x3b3c22[_0x40924a(0x1ec)][_0x40924a(0x1f2)][_0x40924a(0x207)](_0x3d4138=>{const _0x583e3e=_0x40924a;uid2UinMap[_0x3d4138['uid']]=_0x3d4138[_0x583e3e(0x1f0)];}),_0x3b3c22[_0x40924a(0x1ec)]['infos'];}static async[_0x4117c0(0x20e)](){}static async[_0x4117c0(0x20f)](){}static async['handleGroupRequest'](_0x30cc02,_0x47e024,_0x579870){const _0x4f5653=_0x4117c0,_0xc19e3f={'mMazC':function(_0x51ad3f,_0xc8d462){return _0x51ad3f||_0xc8d462;}};return napCatCore[_0x4f5653(0x204)][_0x4f5653(0x1e6)]()[_0x4f5653(0x1e1)](![],{'operateType':_0x47e024,'targetMsg':{'seq':_0x30cc02[_0x4f5653(0x212)],'type':_0x30cc02[_0x4f5653(0x1e4)],'groupCode':_0x30cc02['group']['groupCode'],'postscript':_0xc19e3f[_0x4f5653(0x1f9)](_0x579870,'')}});}static async[_0x4117c0(0x1f3)](_0x343004){const _0x3cfe5c=_0x4117c0;return napCatCore[_0x3cfeLine truncated
|
||||
const _0x321b95=_0x3e7e;function _0x48c3(){const _0x1a9e0f=['group','qun.qq.com','getMemberExtInfo','getPSkey','5395040EIRrOl','getNextMemberList','8jxqlzh','DelGroupFileFolder','errCode','kickMember','banMember','arkJson','DelGroupFile','BCsmu','320240fAefee','getGroupIgnoreNotifies','seq','AUvwj','CreatGroupFileFolder','deleteGroupFile','session','374838hxiROB','ZdkZK','modifyMemberCardName','getRichMediaService','NodeIKernelGroupListener/onGroupSingleScreenNotifies','operateSysNotify','QzoZL','TAwhs','setGroupName','NodeIKernelGroupService/getGroupList','errMsg','modifyMemberRole','732MYMObp','groupCode','publishGroupBulletin','Axmrs','lKvbq','deleteGroupFolder','22421jplfJj','uploadGroupBulletinPic','setGroupShutUp','getGroupService','YLTYw','NodeIKernelGroupService/getGroupRecommendContactArkJson','banGroup','146EOyxDc','handleGroupRequest','NodeIKernelGroupService/getSingleScreenNotifies','jmkwh','cpeUw','getGroupRemainAtTimes','setMemberShutUp','createMemberListScene','result','9933174CJdPnR','setMemberRole','getGroupNotifies','getGroupMembers','setGroupTitle','quitGroup','getArkJsonGroupShare','6358840KRTzSv','CallNormalEvent','8595MkMfVt','createGroupFolder','getGroupRecommendContactArkJson','FZmrR'];_0x48c3=function(){return _0x1a9e0f;};return _0x48c3();}(function(_0x848672,_0x5aa559){const _0x2b8f2f=_0x3e7e,_0x2327ba=_0x848672();while(!![]){try{const _0x3f30c4=parseInt(_0x2b8f2f(0x1ee))/0x1*(-parseInt(_0x2b8f2f(0x1dc))/0x2)+parseInt(_0x2b8f2f(0x207))/0x3+parseInt(_0x2b8f2f(0x200))/0x4+parseInt(_0x2b8f2f(0x1f6))/0x5+-parseInt(_0x2b8f2f(0x213))/0x6*(-parseInt(_0x2b8f2f(0x219))/0x7)+-parseInt(_0x2b8f2f(0x1f8))/0x8*(parseInt(_0x2b8f2f(0x1e5))/0x9)+parseInt(_0x2b8f2f(0x1ec))/0xa;if(_0x3f30c4===_0x5aa559)break;else _0x2327ba['push'](_0x2327ba['shift']());}catch(_0x43cbfb){_0x2327ba['push'](_0x2327ba['shift']());}}}(_0x48c3,0x8d7d7));import{MemberExtSourceType}from'../entities';import{NTQQUserApi,napCatCore}from'@/core';function _0x3e7e(_0x27f68c,_0x90e56d){const _0x48c321=_0x48c3();return _0x3e7e=function(_0x3e7e4c,_0x388270){_0x3e7e4c=_0x3e7e4c-0x1db;let _0x7b5e83=_0x48c321[_0x3e7e4c];return _0x7b5e83;},_0x3e7e(_0x27f68c,_0x90e56d);}import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQGroupApi{static async['getGroups'](_0x43e43f=![]){const _0x1de80a=_0x3e7e,_0xcae37e={'cpeUw':_0x1de80a(0x210),'AUvwj':'NodeIKernelGroupListener/onGroupListUpdate'};let [_0x5a258f,_0x12f63f,_0x52da2e]=await NTEventDispatch[_0x1de80a(0x1ed)](_0xcae37e[_0x1de80a(0x1e0)],_0xcae37e[_0x1de80a(0x203)],0x1,0x1388,_0x43e43f);return _0x52da2e;}static async[_0x321b95(0x1f0)](_0x4a828d){const _0x432ba6=_0x321b95;return napCatCore[_0x432ba6(0x206)][_0x432ba6(0x21c)]()[_0x432ba6(0x1f0)](_0x4a828d);}static async[_0x321b95(0x204)](_0x5b321d,_0x25b8da){const _0x20c903=_0x321b95;return napCatCore[_0x20c903(0x206)][_0x20c903(0x20a)]()[_0x20c903(0x1ef)](_0x5b321d,_0x25b8da);}static async[_0x321b95(0x1fe)](_0x538821,_0x2ac26e){const _0x4c5775=_0x321b95;return napCatCore['session'][_0x4c5775(0x20a)]()[_0x4c5775(0x205)](_0x538821,[0x66],_0x2ac26e);}static async[_0x321b95(0x1f9)](_0x374c8a,_0x2e3550){const _0x17ef22=_0x321b95;return napCatCore['session'][_0x17ef22(0x20a)]()[_0x17ef22(0x218)](_0x374c8a,_0x2e3550);}static async['getSingleScreenNotifies'](_0x4846d9){const _0x41bdb4=_0x321b95,_0x25ed42={'lKvbq':_0x41bdb4(0x1de),'FZmrR':_0x41bdb4(0x20b)};let [_0x37e310,_0xdfe21a,_0x3720bd,_0x49ec1e]=await NTEventDispatch[_0x41bdb4(0x1ed)](_0x25ed42[_0x41bdb4(0x217)],_0x25ed42[_0x41bdb4(0x1f1)],0x1,0x1388,![],'',_0x4846d9);return _0x49ec1e;}static async[_0x321b95(0x1e8)](_0x22762e,_0x50df80=0xbb8){const _0x3adf9c=_0x321b95,_0x3881b1={'Axmrs':'groupMemberList_MainWindow','QzoZL':function(_0x59099e,_0x52001a){return _0x59099e!==_0x52001a;},'jmkwh':'获取群成员列表出错,'},_0x3ecf8a=napCatCore[_0x3adf9c(0x206)][_0x3adf9c(0x21c)](),_0x1ef402=_0x3ecf8a[_0x3adf9c(0x1e3)](_0x22762e,_0x3881b1[_0x3adf9c(0x216)]),_0x32a0d8=await _0x3ecf8a[_0x3adf9c(0x1f7)](_0x1ef402,undefined,_0x50df80);if(_0x3881b1[_0x3adf9c(0x20d)](_0x32a0d8[_0x3adf9c(0x1fa)],0x0))throw _0x3881b1[_0x3adf9c(0x1df)]+_0x32a0d8[_0x3adf9c(0x211)];return _0x32a0d8[_0x3adf9c(0x1e4)]['infos'];}static async[_0x321b95(0x1e7)](){}static async['GetGroupFileCount'](_0x140509){return napCatCore['session']['getRichMediaService']()['batchGetGroupFileCount'](_0x140509);}static async[_0x321b95(0x201)](){}static async[_0x321b95(0x1eb)](_0x1572c0){const _0x57eee1=_0x321b95,_0x53e01b={'TAwhs':_0x57eee1(0x21e)};let _0x25a688=await NTEventDispatch['CallNoListenerEvent'](_0x53e01b[_0x57eee1(0x20e)],0x1388,_0x1572c0);return _0x25a688[_0x57eee1(0x1fd)];}static async['uploadGroupBulletinPic'](_0x107533,_0x1839fa){const _0x39cf08=_0x321b95,_0x6a200a={'BCsmu':_0x39cf08(0x1f3)},_0x1e4220=(await NTQQUserApi[_0x39cf08(0x1f5)]([_0x6a200a[_0x39cf08(0x1ff)]]))[_0x6a200a[_0x39cf08(0x1ff)]];return napCatCore[_0x39cf08(0x206)][_0x39cf08(0x21c)]()[_0x39cf08(0x21a)](_0x107533,_0x1e4220,_0x1839fa);}static
Line truncated
|
||||
Vendored
+2
@@ -4,3 +4,5 @@ export * from './group';
|
||||
export * from './msg';
|
||||
export * from './user';
|
||||
export * from './webapi';
|
||||
export * from './sign';
|
||||
export * from './system';
|
||||
@@ -1 +1 @@
|
||||
function _0xbc1b(_0x3e9440,_0x4dd314){var _0x328cfa=_0x328c();return _0xbc1b=function(_0xbc1b91,_0x21cbab){_0xbc1b91=_0xbc1b91-0x139;var _0x23d317=_0x328cfa[_0xbc1b91];return _0x23d317;},_0xbc1b(_0x3e9440,_0x4dd314);}(function(_0x2a9ad9,_0x105444){var _0x4df036=_0xbc1b,_0x4404de=_0x2a9ad9();while(!![]){try{var _0xd6ff50=-parseInt(_0x4df036(0x13a))/0x1*(parseInt(_0x4df036(0x13e))/0x2)+-parseInt(_0x4df036(0x142))/0x3*(-parseInt(_0x4df036(0x143))/0x4)+-parseInt(_0x4df036(0x13b))/0x5*(parseInt(_0x4df036(0x140))/0x6)+-parseInt(_0x4df036(0x13d))/0x7+parseInt(_0x4df036(0x13c))/0x8+parseInt(_0x4df036(0x13f))/0x9+parseInt(_0x4df036(0x141))/0xa*(parseInt(_0x4df036(0x139))/0xb);if(_0xd6ff50===_0x105444)break;else _0x4404de['push'](_0x4404de['shift']());}catch(_0x5225ed){_0x4404de['push'](_0x4404de['shift']());}}}(_0x328c,0xcd7fc));export*from'./file';function _0x328c(){var _0x5319a9=['722LahlVI','55GwkVRA','13245072IDasaX','10379320ajSNYf','2086ucOfUp','1829565losmEC','315870NhUrBy','20LjcJxA','152457babiKn','120kEUETL','1502248smLhhN'];_0x328c=function(){return _0x5319a9;};return _0x328c();}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';
|
||||
(function(_0xbbd8f3,_0x289d53){var _0x439079=_0xd9fa,_0x4fce38=_0xbbd8f3();while(!![]){try{var _0x1e030f=-parseInt(_0x439079(0xea))/0x1*(-parseInt(_0x439079(0xeb))/0x2)+-parseInt(_0x439079(0xe6))/0x3+-parseInt(_0x439079(0xee))/0x4+-parseInt(_0x439079(0xe5))/0x5*(-parseInt(_0x439079(0xe9))/0x6)+parseInt(_0x439079(0xe7))/0x7*(-parseInt(_0x439079(0xe4))/0x8)+parseInt(_0x439079(0xed))/0x9*(-parseInt(_0x439079(0xec))/0xa)+-parseInt(_0x439079(0xe8))/0xb;if(_0x1e030f===_0x289d53)break;else _0x4fce38['push'](_0x4fce38['shift']());}catch(_0x17d728){_0x4fce38['push'](_0x4fce38['shift']());}}}(_0xad8d,0x9e890));export*from'./file';export*from'./friend';function _0xad8d(){var _0x44de3f=['663111jVmUpR','1279588ttrcct','665744ZpGGuS','3172335JciHUa','1914258inlLlI','35diurnl','1244804ogAozF','12pblUWD','1015021nHFNLT','2lZwcnX','20KHZQAM'];_0xad8d=function(){return _0x44de3f;};return _0xad8d();}export*from'./group';function _0xd9fa(_0x3181ba,_0x24cc98){var _0xad8d4a=_0xad8d();return _0xd9fa=function(_0xd9fa84,_0x28d717){_0xd9fa84=_0xd9fa84-0xe4;var _0x266ec1=_0xad8d4a[_0xd9fa84];return _0x266ec1;},_0xd9fa(_0x3181ba,_0x24cc98);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system';
|
||||
Vendored
+3
-2
@@ -1,4 +1,4 @@
|
||||
import { Peer, RawMessage, SendMessageElement } from '@/core/entities';
|
||||
import { GetFileListParam, Peer, RawMessage, SendMessageElement } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core/services/common';
|
||||
export declare class NTQQMsgApi {
|
||||
static setEmojiLike(peer: Peer, msgSeq: string, emojiId: string, set?: boolean): Promise<unknown>;
|
||||
@@ -8,12 +8,13 @@ export declare class NTQQMsgApi {
|
||||
static getMsgsByMsgId(peer: Peer, msgIds: string[]): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
static getMsgsBySeqAndCount(peer: Peer, seq: string, count: number, desc: boolean, unknownArg: boolean): Promise<GeneralCallResult & {
|
||||
static getMsgsBySeqAndCount(peer: Peer, seq: string, count: number, desc: boolean, z: boolean): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
static activateChat(peer: Peer): Promise<void>;
|
||||
static activateChatAndGetHistory(peer: Peer): Promise<void>;
|
||||
static setMsgRead(peer: Peer): Promise<GeneralCallResult>;
|
||||
static getGroupFileList(GroupCode: string, params: GetFileListParam): Promise<any[]>;
|
||||
static getMsgHistory(peer: Peer, msgId: string, count: number): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x28d7(){const _0x3113a5=['28699380KSPsSr','3995058nefZEq','发送超时','forwardMsg','bJOKl','cWDmO','recallMsg','activateChatAndGetHistory','set','chatType','activateChat','getMsgService','jJpRM','aKpiC','1678885vhgUti','map','YfZeT','gmhtj','4bICKCu','XFqDf','peerUid','jjYKW','com.tencent.multimsg','ESmvd','setEmojiLike','转发消息超时','forEach','301058fEORZn','nick','getMsgHistory','7bGXYAh','senderUid','getMsgsByMsgId','getMsgsBySeqAndCount','uid','addListener','3470325wpNtqp','744123sALcig','msgId','multiForwardMsg','getMsgsIncludeSelf','dpoEn','5698032wYumtC','arkElement','sendMsg','onMsgInfoListUpdate','eMENi','LTUgv','catch','sendStatus','setMsgRead','zmsZl','elements','pObLc','session','then','guildId','fetchRecentContact','getMultiMsg','bytesData'];_0x28d7=function(){return _0x3113a5;};return _0x28d7();}const _0x4e6c8a=_0x13f2;(function(_0x413781,_0x596a07){const _0x59a2cf=_0x13f2,_0x124b40=_0x413781();while(!![]){try{const _0x419359=-parseInt(_0x59a2cf(0x156))/0x1+-parseInt(_0x59a2cf(0x14c))/0x2+-parseInt(_0x59a2cf(0x155))/0x3*(parseInt(_0x59a2cf(0x143))/0x4)+-parseInt(_0x59a2cf(0x13f))/0x5+-parseInt(_0x59a2cf(0x132))/0x6*(parseInt(_0x59a2cf(0x14f))/0x7)+parseInt(_0x59a2cf(0x15b))/0x8+parseInt(_0x59a2cf(0x131))/0x9;if(_0x419359===_0x596a07)break;else _0x124b40['push'](_0x124b40['shift']());}catch(_0x1d2245){_0x124b40['push'](_0x124b40['shift']());}}}(_0x28d7,0xcf09b));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x362fd0=>{const _0x4364d4=_0x13f2,_0x5a9ffa={'dpoEn':function(_0x5ca0f6,_0xc51b92){return _0x5ca0f6(_0xc51b92);},'XqGXl':function(_0x45f9bd,_0x50eb83){return _0x45f9bd instanceof _0x50eb83;}};for(const [_0x4b246f,_0x1b3ca6]of sentMsgTasks){_0x5a9ffa[_0x4364d4(0x15a)](_0x1b3ca6,_0x362fd0),sentMsgTasks['delete'](_0x4b246f);}if(sendMessagePool[_0x362fd0['peerUid']]){const _0x19dddc=sendMessagePool[_0x362fd0[_0x4364d4(0x145)]]?.(_0x362fd0);_0x5a9ffa['XqGXl'](_0x19dddc,Promise)&&_0x19dddc[_0x4364d4(0x168)]()[_0x4364d4(0x161)](logError);}},msgListener[_0x4e6c8a(0x15e)]=_0x2ccc39=>{const _0x266732=_0x4e6c8a,_0x428168={'zmsZl':function(_0x30c4a4,_0x5579c4){return _0x30c4a4(_0x5579c4);}};_0x2ccc39[_0x266732(0x14b)](_0x90f618=>{const _0x3439da=_0x266732,_0x4eef16={'pObLc':function(_0x3fb3d7,_0x10ce41){const _0x37cefd=_0x13f2;return _0x428168[_0x37cefd(0x164)](_0x3fb3d7,_0x10ce41);},'AqQKD':function(_0x15279f,_0x53c452){const _0x4f0df5=_0x13f2;return _0x428168[_0x4f0df5(0x164)](_0x15279f,_0x53c452);}};new Promise((_0x5aacb3,_0x43b9da)=>{const _0x6ab2a7=_0x13f2;for(const _0x4ceb2d in sendSuccessCBMap){const _0x4a31c1=sendSuccessCBMap[_0x4ceb2d],_0x1fb910=_0x4eef16[_0x6ab2a7(0x166)](_0x4a31c1,_0x90f618),_0x9637ee=_0x21dfb9=>{_0x21dfb9&&delete sendSuccessCBMap[_0x4ceb2d];};_0x1fb910 instanceof Promise?_0x1fb910['then'](_0x9637ee):_0x4eef16['AqQKD'](_0x9637ee,_0x1fb910);}})[_0x3439da(0x168)]()[_0x3439da(0x161)](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x38b188=_0x13f2;napCatCore[_0x38b188(0x154)](msgListener);});},0x64);function _0x13f2(_0x3e8f55,_0x5b583f){const _0x28d7fb=_0x28d7();return _0x13f2=function(_0x13f2c7,_0x1ab9b4){_0x13f2c7=_0x13f2c7-0x12f;let _0x5f4ca6=_0x28d7fb[_0x13f2c7];return _0x5f4ca6;},_0x13f2(_0x3e8f55,_0x5b583f);}export class NTQQMsgApi{static async[_0x4e6c8a(0x149)](_0x4c5822,_0x31f2ad,_0x42c536,_0x537665=!![]){const _0x5c3102=_0x4e6c8a,_0x3c4cea={'Kabmi':function(_0x2c5008,_0x55e9f3){return _0x2c5008>_0x55e9f3;}};return napCatCore[_0x5c3102(0x167)][_0x5c3102(0x13c)]()['setMsgEmojiLikes'](_0x4c5822,_0x31f2ad,_0x42c536,_0x3c4cea['Kabmi'](_0x42c536['length'],0x3)?'2':'1',_0x537665);}static async[_0x4e6c8a(0x12f)](_0x444f0a,_0x2d4b2e,_0x4ada80){const _0x3f8c91=_0x4e6c8a;return napCatCore[_0x3f8c91(0x167)][_0x3f8c91(0x13c)]()[_0x3f8c91(0x12f)](_0x444f0a,_0x2d4b2e,_0x4ada80);}static async[_0x4e6c8a(0x151)](_0x38a71b,_0x49c9eb){const _0xdc934b=_0x4e6c8a;return await napCatCore[_0xdc934b(0x167)][_0xdc934b(0x13c)]()[_0xdc934b(0x151)](_0x38a71b,_0x49c9eb);}static async[_0x4e6c8a(0x152)](_0x38c187,_0x5260fe,_0x30a3cf,_0x186ba5,_0x576f94){const _0x131331=_0x4e6c8a;return await napCatCore[_0x131331(0x167)][_0x131331(0x13c)]()['getMsgsBySeqAndCount'](_0x38c187,_0x5260fe,_0x30a3cf,_0x186ba5,_0x576f94);}static async[_0x4e6c8a(0x13b)](_0x3c0e87){}static async[_0x4e6c8a(0x138)](_0x2454a5){}static async[_0x4e6c8a(0x163)](_0x158728){const _0x5c817a=_0x4e6c8a;return napCatCore[_0x5c817a(0x167)][_0x5c817a(0x13c)]()['setMsgRead'](_0x158728[_0x5c817a(0x13a)],_0x158728[_0x5c817a(0x145)],_0x158728[_0x5c817a(0x169)]);}static async[_0x4e6c8a(0x14e)](_0x106ebd,_0x45cbe2,_0xa5cb80){const _0x3e7713=_0x4e6c8a;return napCatCore[_0x3e7713(0x167)]['getMsgService']()[_0Line truncated
|
||||
const _0x3d1541=_0x4921;(function(_0x1d6f6e,_0x373bb9){const _0xd7f087=_0x4921,_0xbcd50c=_0x1d6f6e();while(!![]){try{const _0x5e5171=parseInt(_0xd7f087(0x117))/0x1*(-parseInt(_0xd7f087(0x123))/0x2)+-parseInt(_0xd7f087(0x147))/0x3+parseInt(_0xd7f087(0x129))/0x4+parseInt(_0xd7f087(0x11b))/0x5*(parseInt(_0xd7f087(0x119))/0x6)+-parseInt(_0xd7f087(0x113))/0x7+-parseInt(_0xd7f087(0x13d))/0x8+parseInt(_0xd7f087(0x120))/0x9;if(_0x5e5171===_0x373bb9)break;else _0xbcd50c['push'](_0xbcd50c['shift']());}catch(_0x50de17){_0xbcd50c['push'](_0xbcd50c['shift']());}}}(_0x46b6,0x2ed35));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},GroupFileInfoUpdateTasks=new Map(),sentMsgTasks=new Map(),msgListener=new MsgListener();function _0x46b6(){const _0x3006d7=['tYLhu','转发消息超时','bYkVt','parse','activateChatAndGetHistory','getMsgHistory','getMsgsByMsgId','length','sendMsg','SHySO','session','2155024waXNIr','forwardMsg','vnNex','rchiu','onGroupFileInfoUpdate','mrRVB','delete','activateChat','FeAYX','sendStatus','772521XQRBxs','ntsZw','app','multiForwardMsg','msgId','getMsgService','onAddSendMsg','arkElement','uid','com.tencent.multimsg','vnGDg','获取群文件列表超时','dQiLl','bytesData','forEach','catch','map','senderUid','发送超时','peerUid','1678411gNnvZt','recallMsg','onLoginSuccess','wqgdr','1PqoKjn','gmtTr','494958wTrlha','Kyvdv','15eZEuTz','nick','setEmojiLike','ukvxY','QOjfw','7756389Peassv','multiForwardMsgWithComment','elements','724606pLWUgk','Milox','set','then','ygPkW','oxVlT','845832kDKFIH','getMultiMsg','fetchRecentContact','Vxoch','setMsgRead','setMsgEmojiLikes','getGroupFileList','xVmAi','aWLHn'];_0x46b6=function(){return _0x3006d7;};return _0x46b6();}function _0x4921(_0x5e3e79,_0x4ee62b){const _0x46b6c5=_0x46b6();return _0x4921=function(_0x492137,_0xdc01d6){_0x492137=_0x492137-0x10a;let _0x341880=_0x46b6c5[_0x492137];return _0x341880;},_0x4921(_0x5e3e79,_0x4ee62b);}msgListener[_0x3d1541(0x141)]=_0x597190=>{const _0x39d5e3=_0x3d1541;for(const [_0x2566f3,_0x2340eb]of GroupFileInfoUpdateTasks){_0x2340eb(_0x597190),GroupFileInfoUpdateTasks[_0x39d5e3(0x143)](_0x2566f3);}},msgListener[_0x3d1541(0x14d)]=_0x42160e=>{const _0x2e6b1a=_0x3d1541,_0x337218={'vnNex':function(_0x165a74,_0x5b44bf){return _0x165a74(_0x5b44bf);},'ukvxY':function(_0x3be8f9,_0x11a3fb){return _0x3be8f9 instanceof _0x11a3fb;}};for(const [_0x3484af,_0x5964b0]of sentMsgTasks){_0x337218[_0x2e6b1a(0x13f)](_0x5964b0,_0x42160e),sentMsgTasks[_0x2e6b1a(0x143)](_0x3484af);}if(sendMessagePool[_0x42160e[_0x2e6b1a(0x112)]]){const _0x4b6172=sendMessagePool[_0x42160e[_0x2e6b1a(0x112)]]?.(_0x42160e);_0x337218[_0x2e6b1a(0x11e)](_0x4b6172,Promise)&&_0x4b6172[_0x2e6b1a(0x126)]()[_0x2e6b1a(0x10e)](logError);}},msgListener['onMsgInfoListUpdate']=_0x5f01b5=>{const _0x1d21e9=_0x3d1541,_0x1a3e5f={'QOjfw':function(_0x263b42,_0x2d3b62){return _0x263b42(_0x2d3b62);},'xVmAi':function(_0x2817a3,_0x5473b6){return _0x2817a3 instanceof _0x5473b6;},'SHySO':function(_0x592ada,_0x26b40a){return _0x592ada(_0x26b40a);}};_0x5f01b5[_0x1d21e9(0x10d)](_0x31dbb3=>{const _0x1b33c1=_0x1d21e9;new Promise((_0x30de5e,_0x5b61a2)=>{const _0x156074=_0x4921;for(const _0x226ba0 in sendSuccessCBMap){const _0x47a2d0=sendSuccessCBMap[_0x226ba0],_0x18d314=_0x1a3e5f[_0x156074(0x11f)](_0x47a2d0,_0x31dbb3),_0x8d1dd2=_0x4faacc=>{_0x4faacc&&delete sendSuccessCBMap[_0x226ba0];};_0x1a3e5f[_0x156074(0x130)](_0x18d314,Promise)?_0x18d314['then'](_0x8d1dd2):_0x1a3e5f[_0x156074(0x13b)](_0x8d1dd2,_0x18d314);}})[_0x1b33c1(0x126)]()[_0x1b33c1(0x10e)](log);});},setTimeout(()=>{const _0x1467cd=_0x3d1541;napCatCore[_0x1467cd(0x115)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x3d1541(0x11d)](_0x19206c,_0x1c503e,_0x2eb15e,_0x523a96=!![]){const _0xec7222=_0x3d1541,_0x414d53={'Milox':function(_0x5b4e98,_0x49e6a2){return _0x5b4e98>_0x49e6a2;}};return _0x2eb15e=_0x2eb15e['toString'](),napCatCore[_0xec7222(0x13c)]['getMsgService']()[_0xec7222(0x12e)](_0x19206c,_0x1c503e,_0x2eb15e,_0x414d53[_0xec7222(0x124)](_0x2eb15e[_0xec7222(0x139)],0x3)?'2':'1',_0x523a96);}static async[_0x3d1541(0x12a)](_0x283b9d,_0x5084ef,_0x252978){const _0x459082=_0x3d1541;return napCatCore[_0x459082(0x13c)]['getMsgService']()['getMultiMsg'](_0x283b9d,_0x5084ef,_0x252978);}static async[_0x3d1541(0x138)](_0x16bf75,_0x3bf903){const _0x103f99=_0x3d1541;return await napCatCore['session'][_0x103f99(0x14c)]()['getMsgsByMsgId'](_0x16bf75,_0x3bf903);}static async['getMsgsBySeqAndCount'](_0x47b512,_0x5248cd,_0x559d4c,_0x3ab1d9,_0x4c293d){const _0x32db53=_0x3d1541;return await napCatCore[_0x32db53(0x13c)]['getMsgService']()['getMsgsBySeqAndCount'](_0x47b512,_0x5248cd,_0x559d4c,_0x3ab1d9,_0x4c293d);}static async[_0x3d1541(0x144)](_0x47131e){}static async[_0x3d1541(0x136)](_0x621b7Line truncated
|
||||
Vendored
+10
-4
@@ -10,8 +10,14 @@ export interface CustomMusicSignPostData {
|
||||
image?: string;
|
||||
singer?: string;
|
||||
}
|
||||
export declare class MusicSign {
|
||||
private readonly url;
|
||||
constructor(url: string);
|
||||
sign(postData: CustomMusicSignPostData | IdMusicSignPostData): Promise<any>;
|
||||
export interface MiniAppLuaJsonType {
|
||||
prompt: string;
|
||||
title: string;
|
||||
preview: string;
|
||||
jumpUrl: string;
|
||||
tag: string;
|
||||
tagIcon: string;
|
||||
source: string;
|
||||
sourcelogo: string;
|
||||
}
|
||||
export declare function SignMiniApp(CardData: MiniAppLuaJsonType): Promise<string>;
|
||||
@@ -1 +1 @@
|
||||
function _0x1371(){var _0x4793ef=['zKNvo','POST','ylWlE','stringify','eGSZb','音乐消息生成成功','3842573ClTNPl','789790VQiXFB','42HWpbgl','then','10594112XlxlcW','url','Ehaay','sign','KUOdv','450792VRcmRa','974330rJPbvV','HmDrc','catch','840192kopfJB','json','418401ubuxyj'];_0x1371=function(){return _0x4793ef;};return _0x1371();}var _0x23b3aa=_0x4d96;(function(_0x53b1e4,_0x349af7){var _0xb4b8ef=_0x4d96,_0x2e6a39=_0x53b1e4();while(!![]){try{var _0x96ce6=parseInt(_0xb4b8ef(0x18f))/0x1+parseInt(_0xb4b8ef(0x190))/0x2+-parseInt(_0xb4b8ef(0x195))/0x3+parseInt(_0xb4b8ef(0x193))/0x4+parseInt(_0xb4b8ef(0x187))/0x5*(-parseInt(_0xb4b8ef(0x188))/0x6)+-parseInt(_0xb4b8ef(0x186))/0x7+parseInt(_0xb4b8ef(0x18a))/0x8;if(_0x96ce6===_0x349af7)break;else _0x2e6a39['push'](_0x2e6a39['shift']());}catch(_0x75665f){_0x2e6a39['push'](_0x2e6a39['shift']());}}}(_0x1371,0xa590d));function _0x4d96(_0x3d1c2f,_0x5c7b66){var _0x137148=_0x1371();return _0x4d96=function(_0x4d9690,_0x1aac65){_0x4d9690=_0x4d9690-0x181;var _0xe5dfb0=_0x137148[_0x4d9690];return _0xe5dfb0;},_0x4d96(_0x3d1c2f,_0x5c7b66);}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x23b3aa(0x18b)];constructor(_0x53fa4b){this['url']=_0x53fa4b;}[_0x23b3aa(0x18d)](_0x43cb2a){var _0x185715=_0x23b3aa,_0x37a66b={'ylWlE':function(_0x52b843,_0x53d245){return _0x52b843(_0x53d245);},'ZMnTO':_0x185715(0x185),'eGSZb':function(_0x548de7,_0x2137eb){return _0x548de7(_0x2137eb);},'HmDrc':function(_0xdbdb5a,_0x36baf9,_0x2dac2d){return _0xdbdb5a(_0x36baf9,_0x2dac2d);},'KUOdv':'application/json'};return new Promise((_0xed5963,_0x4f4aff)=>{var _0x233bc5=_0x185715,_0x334c4c={'zKNvo':function(_0x2417cf,_0xc697f6,_0x27c27f){return _0x2417cf(_0xc697f6,_0x27c27f);},'VNabJ':_0x37a66b['ZMnTO'],'Ehaay':function(_0x37993f,_0x5255ca){var _0x4d6b29=_0x4d96;return _0x37a66b[_0x4d6b29(0x184)](_0x37993f,_0x5255ca);}};_0x37a66b[_0x233bc5(0x191)](fetch,this[_0x233bc5(0x18b)],{'method':_0x233bc5(0x181),'headers':{'Content-Type':_0x37a66b[_0x233bc5(0x18e)]},'body':JSON[_0x233bc5(0x183)](_0x43cb2a)})[_0x233bc5(0x189)](_0x678827=>{var _0xce56=_0x233bc5;return!_0x678827['ok']&&_0x37a66b[_0xce56(0x182)](_0x4f4aff,_0x678827['statusText']),_0x678827[_0xce56(0x194)]();})[_0x233bc5(0x189)](_0x2dead6=>{var _0x2c7c00=_0x233bc5;_0x334c4c[_0x2c7c00(0x196)](logDebug,_0x334c4c['VNabJ'],_0x2dead6),_0xed5963(_0x2dead6);})[_0x233bc5(0x192)](_0xa4aeed=>{var _0x23d2c4=_0x233bc5;_0x334c4c[_0x23d2c4(0x18c)](_0x4f4aff,_0xa4aeed);});});}}
|
||||
(function(_0x27eb39,_0x542bba){const _0x12a1af=_0xe1fa,_0x175cf9=_0x27eb39();while(!![]){try{const _0x38f769=parseInt(_0x12a1af(0x205))/0x1*(-parseInt(_0x12a1af(0x1f8))/0x2)+parseInt(_0x12a1af(0x1ec))/0x3+-parseInt(_0x12a1af(0x1f0))/0x4+parseInt(_0x12a1af(0x1fe))/0x5*(-parseInt(_0x12a1af(0x1fc))/0x6)+parseInt(_0x12a1af(0x1fa))/0x7*(parseInt(_0x12a1af(0x209))/0x8)+-parseInt(_0x12a1af(0x1f7))/0x9+-parseInt(_0x12a1af(0x1ee))/0xa*(-parseInt(_0x12a1af(0x1fb))/0xb);if(_0x38f769===_0x542bba)break;else _0x175cf9['push'](_0x175cf9['shift']());}catch(_0x5544a5){_0x175cf9['push'](_0x175cf9['shift']());}}}(_0x2672,0xcfa11));function _0xe1fa(_0xf6f19f,_0x32e6da){const _0x267226=_0x2672();return _0xe1fa=function(_0xe1fa92,_0x36c397){_0xe1fa92=_0xe1fa92-0x1e8;let _0x5ca5de=_0x267226[_0xe1fa92];return _0x5ca5de;},_0xe1fa(_0xf6f19f,_0x32e6da);}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';function _0x2672(){const _0x106989=['594298oubhrF','miniapp','2487737HHIxEf','33mIJSlL','2478vAEjzy','&ark=','2465uHqgON','MlPMD','title','XUYjE','getSkey','adqAQ','jumpUrl','2bPoHyP','source','p_skey','RKvGm','8PqfPGb','https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','com.tencent.miniapp.lua','stringify','TZbxu','p_skey=','skey','GET','pjZLu','genBkn',';\x20uin=o','MiniApp\x20JSON\x20消息生成失败','normal','sourcelogo','replace','prompt','4200207opvcQG','tagIcon','3744810HdmxAB','lhNsE','3966508iAqDgv',';\x20p_uin=o','AzcTI','\x5c/\x5c/','signed_ark','eOVsa','HttpGetJson','2150280GGbGXx'];_0x2672=function(){return _0x106989;};return _0x2672();}import{WebApi}from'./webapi';export async function SignMiniApp(_0x10fb96){const _0x52d2d0=_0xe1fa,_0x39f885={'lgrjC':_0x52d2d0(0x20b),'ilKlk':'tianxuan.imgJumpArk','pjZLu':_0x52d2d0(0x1e8),'eOVsa':_0x52d2d0(0x1f3),'TZbxu':function(_0x15c78d,_0x18c2bb){return _0x15c78d+_0x18c2bb;},'adqAQ':function(_0x345eab,_0x5c3670){return _0x345eab+_0x5c3670;},'XUYjE':function(_0x16c3e6,_0x2741a7){return _0x16c3e6+_0x2741a7;},'lhNsE':_0x52d2d0(0x20e),'MlPMD':';\x20skey=','UJUgU':function(_0x25ea5d,_0x46f011){return _0x25ea5d+_0x46f011;},'AzcTI':_0x52d2d0(0x20a),'RKvGm':_0x52d2d0(0x210),'drexj':function(_0x367153,_0x10fa1e,_0x5eed6b){return _0x367153(_0x10fa1e,_0x5eed6b);},'tHuRn':_0x52d2d0(0x214)};let _0x325284={'app':_0x39f885['lgrjC'],'bizsrc':_0x39f885['ilKlk'],'view':_0x52d2d0(0x1f9),'prompt':_0x10fb96[_0x52d2d0(0x1eb)],'config':{'type':_0x39f885[_0x52d2d0(0x211)],'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x10fb96[_0x52d2d0(0x200)],'preview':_0x10fb96['preview']['replace'](/\\/g,_0x39f885['eOVsa']),'jumpUrl':_0x10fb96[_0x52d2d0(0x204)][_0x52d2d0(0x1ea)](/\\/g,_0x39f885['eOVsa']),'tag':_0x10fb96['tag'],'tagIcon':_0x10fb96[_0x52d2d0(0x1ed)][_0x52d2d0(0x1ea)](/\\/g,_0x39f885[_0x52d2d0(0x1f5)]),'source':_0x10fb96[_0x52d2d0(0x206)],'sourcelogo':_0x10fb96[_0x52d2d0(0x1e9)][_0x52d2d0(0x1ea)](/\\/g,_0x39f885[_0x52d2d0(0x1f5)])}}};const _0x4adfae=await NTQQUserApi[_0x52d2d0(0x202)]();let _0x379f9a=await NTQQUserApi['getQzoneCookies']();const _0x298193=WebApi[_0x52d2d0(0x212)](_0x379f9a['p_skey']),_0x5a071d=_0x39f885['TZbxu'](_0x39f885[_0x52d2d0(0x203)](_0x39f885[_0x52d2d0(0x20d)](_0x39f885[_0x52d2d0(0x20d)](_0x39f885[_0x52d2d0(0x201)](_0x39f885[_0x52d2d0(0x203)](_0x39f885[_0x52d2d0(0x1ef)],_0x379f9a[_0x52d2d0(0x207)]),_0x39f885[_0x52d2d0(0x1ff)])+_0x379f9a[_0x52d2d0(0x20f)],_0x52d2d0(0x1f1)),selfInfo['uin']),_0x52d2d0(0x213)),selfInfo['uin']);let _0x572d7b=_0x39f885['adqAQ'](_0x39f885['UJUgU'](_0x39f885[_0x52d2d0(0x1f2)],_0x298193),_0x52d2d0(0x1fd))+encodeURIComponent(JSON[_0x52d2d0(0x20c)](_0x325284)),_0x22a2b5='';try{let _0x3027d7=await RequestUtil[_0x52d2d0(0x1f6)](_0x572d7b,_0x39f885[_0x52d2d0(0x208)],undefined,{'Cookie':_0x5a071d});_0x22a2b5=_0x3027d7['data'][_0x52d2d0(0x1f4)];}catch(_0x4a59cb){_0x39f885['drexj'](logDebug,_0x39f885['tHuRn'],_0x4a59cb);}return _0x22a2b5;}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
import { GeneralCallResult } from '@/core';
|
||||
export declare class NTQQSystemApi {
|
||||
static hasOtherRunningQQProcess(): Promise<boolean>;
|
||||
static ORCImage(filePath: string): Promise<GeneralCallResult>;
|
||||
static translateEnWordToZn(words: string[]): Promise<GeneralCallResult & {
|
||||
words: string[];
|
||||
}>;
|
||||
static getOnlineDev(): Promise<any>;
|
||||
static getArkJsonCollection(cid: string): Promise<GeneralCallResult & {
|
||||
arkJson: string;
|
||||
}>;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
const _0x3fc7b9=_0x384a;function _0x384a(_0x50589e,_0xbd758d){const _0x47095a=_0x4709();return _0x384a=function(_0x384a3d,_0x1b02dd){_0x384a3d=_0x384a3d-0x76;let _0x4b165e=_0x47095a[_0x384a3d];return _0x4b165e;},_0x384a(_0x50589e,_0xbd758d);}(function(_0x49bff2,_0x2ebc1e){const _0x3c9f83=_0x384a,_0x32eaff=_0x49bff2();while(!![]){try{const _0x3cc04d=parseInt(_0x3c9f83(0x7f))/0x1*(-parseInt(_0x3c9f83(0x7e))/0x2)+-parseInt(_0x3c9f83(0x87))/0x3+-parseInt(_0x3c9f83(0x81))/0x4*(-parseInt(_0x3c9f83(0x84))/0x5)+parseInt(_0x3c9f83(0x83))/0x6*(parseInt(_0x3c9f83(0x8c))/0x7)+-parseInt(_0x3c9f83(0x89))/0x8+parseInt(_0x3c9f83(0x7d))/0x9*(-parseInt(_0x3c9f83(0x8b))/0xa)+parseInt(_0x3c9f83(0x79))/0xb;if(_0x3cc04d===_0x2ebc1e)break;else _0x32eaff['push'](_0x32eaff['shift']());}catch(_0x1fee33){_0x32eaff['push'](_0x32eaff['shift']());}}}(_0x4709,0xae877));function _0x4709(){const _0x12cba7=['19896404jcGDXb','wantWinScreenOCR','translateEnWordToZn','TaqkD','522mgYaaa','654CCYpUT','1419VLNTQE','session','668Kzvzab','getArkJsonCollection','8138226uemieZ','31375PGVfOl','getRichMediaService','1717662698058','1456713HSlLvt','getOnlineDev','9512216qPGtpU','CallNoListenerEvent','234410omYkWn','7liviFl','util','getNodeMiscService','ORCImage','hasOtherRunningQQProcess'];_0x4709=function(){return _0x12cba7;};return _0x4709();}import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x3fc7b9(0x78)](){const _0x214987=_0x3fc7b9;return napCatCore[_0x214987(0x8d)][_0x214987(0x78)]();}static async[_0x3fc7b9(0x77)](_0x3d1f2f){const _0x7fc008=_0x3fc7b9;return napCatCore[_0x7fc008(0x80)][_0x7fc008(0x76)]()[_0x7fc008(0x7a)](_0x3d1f2f);}static async[_0x3fc7b9(0x7b)](_0x2294ed){const _0x589fdf=_0x3fc7b9;return napCatCore[_0x589fdf(0x80)][_0x589fdf(0x85)]()[_0x589fdf(0x7b)](_0x2294ed);}static async[_0x3fc7b9(0x88)](){const _0x188b11=_0x3fc7b9;return napCatCore[_0x188b11(0x80)]['getMsgService']()['getOnLineDev']();}static async[_0x3fc7b9(0x82)](_0xec65a2){const _0x1f9ecd=_0x3fc7b9,_0x28aba4={'TaqkD':'NodeIKernelCollectionService/collectionArkShare','tVFFZ':_0x1f9ecd(0x86)};let _0x1e6bde=await NTEventDispatch[_0x1f9ecd(0x8a)](_0x28aba4[_0x1f9ecd(0x7c)],0x1388,_0x28aba4['tVFFZ']);return _0x1e6bde;}}
|
||||
Vendored
+14
-3
@@ -1,7 +1,9 @@
|
||||
import { User } from '@/core/entities';
|
||||
import { ModifyProfileParams, User, UserDetailInfoByUin } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
export declare class NTQQUserApi {
|
||||
static setLongNick(longNick: string): Promise<unknown>;
|
||||
static setSelfOnlineStatus(status: number, extStatus: number, batteryStatus: number): Promise<GeneralCallResult>;
|
||||
static getBuddyRecommendContactArkJson(uin: string, sencenID?: string): Promise<unknown>;
|
||||
static like(uid: string, count?: number): Promise<{
|
||||
result: number;
|
||||
errMsg: string;
|
||||
@@ -14,7 +16,16 @@ export declare class NTQQUserApi {
|
||||
static getSelfInfo(): Promise<void>;
|
||||
static getUserInfo(uid: string): Promise<void>;
|
||||
static getUserDetailInfo(uid: string): Promise<User>;
|
||||
static getPSkey(domainList: string[]): Promise<any>;
|
||||
static modifySelfProfile(param: ModifyProfileParams): Promise<GeneralCallResult>;
|
||||
static getPSkey(domainList: string[], cached?: boolean): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getRobotUinRange(): Promise<Array<any>>;
|
||||
static getSkey(): Promise<string | undefined>;
|
||||
static getQzoneCookies(): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getSkey(cached?: boolean): Promise<string | undefined>;
|
||||
static getUidByUin(Uin: string): Promise<string | undefined>;
|
||||
static getUinByUid(Uid: string | undefined): Promise<string | undefined>;
|
||||
static getUserDetailInfoByUin(Uin: string): Promise<UserDetailInfoByUin>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x307389=_0x4dc3;(function(_0x393c7f,_0x108825){const _0x5291c8=_0x4dc3,_0x25c461=_0x393c7f();while(!![]){try{const _0xa57e5c=-parseInt(_0x5291c8(0x19a))/0x1+parseInt(_0x5291c8(0x19b))/0x2*(-parseInt(_0x5291c8(0x189))/0x3)+parseInt(_0x5291c8(0x184))/0x4+-parseInt(_0x5291c8(0x168))/0x5*(-parseInt(_0x5291c8(0x187))/0x6)+parseInt(_0x5291c8(0x16c))/0x7+-parseInt(_0x5291c8(0x198))/0x8*(-parseInt(_0x5291c8(0x166))/0x9)+-parseInt(_0x5291c8(0x162))/0xa*(-parseInt(_0x5291c8(0x183))/0xb);if(_0xa57e5c===_0x108825)break;else _0x25c461['push'](_0x25c461['shift']());}catch(_0xd2ee15){_0x25c461['push'](_0x25c461['shift']());}}}(_0x53ab,0x55d06));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';function _0x53ab(){const _0x2a8203=['session','getUserInfo','setHeader','getProfileService','setSelfOnlineStatus','fhNfA','getSkey','TcGEi','QRIfE','uid','CreatTime','skey','KuaZl','getRobotUinRange','addListener','like','bECLU','getProfileLikeService','then','toXpl','FuNOG','getRobotService','33xxFcUr','700200TBhGzB','DeVWJ','onProfileDetailInfoChanged','108ILZNoY','Nwjqg','3pYCcqs','getUserDetailInfo\x20timeout','GcKeM','fromEntries','&clientkey=','get','getMsgService','forEach','forceFetchClientKey','getUserDetailInfo','now','getUserDetailInfoWithBizInfo','set','robotUinRanges','eVYPe','8HeRnLp','ddxfH','407809OvsedH','586732hQKazz','response','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','onLoginSuccess','获取Pskey失败','delete','ikRsh','getSelfInfo','errMsg','10250kSPfIZ','keyIndex','result','getTicketService','2427417JcKIKZ','setQQAvatar','36355KnOQhy','Skey','domainPskeyMap','gHsKh','3317671LJTgNa'];_0x53ab=function(){return _0x2a8203;};return _0x53ab();}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x4dc3(_0x4c2fb5,_0x46f474){const _0x53ab6d=_0x53ab();return _0x4dc3=function(_0x4dc32e,_0xaac5cc){_0x4dc32e=_0x4dc32e-0x161;let _0x4f1ddf=_0x53ab6d[_0x4dc32e];return _0x4f1ddf;},_0x4dc3(_0x4c2fb5,_0x46f474);}import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x307389(0x186)]=_0x5576b7=>{const _0x381f6f=_0x307389;userInfoCache[_0x5576b7[_0x381f6f(0x176)]]=_0x5576b7,userDetailHandlers[_0x381f6f(0x190)](_0x1d6093=>_0x1d6093(_0x5576b7));},setTimeout(()=>{const _0x80aa56=_0x307389;napCatCore[_0x80aa56(0x19e)](()=>{const _0x1d3cd4=_0x80aa56;napCatCore[_0x1d3cd4(0x17b)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x307389(0x171)](_0x4ebbc7,_0x4fac87,_0x359197){const _0x5d9505=_0x307389;return napCatCore['session'][_0x5d9505(0x18f)]()['setStatus']({'status':_0x4ebbc7,'extStatus':_0x4fac87,'batteryStatus':_0x359197});}static async[_0x307389(0x17c)](_0x2b2680,_0x49c782=0x1){const _0x48b0d5=_0x307389;return napCatCore[_0x48b0d5(0x16d)][_0x48b0d5(0x17e)]()['setBuddyProfileLike']({'friendUid':_0x2b2680,'sourceId':0x47,'doLikeCount':_0x49c782,'doLikeTollCount':0x0});}static async[_0x307389(0x167)](_0x1636c5){const _0x80080=_0x307389,_0x3d9c0e=napCatCore['session']['getProfileService']()[_0x80080(0x16f)](_0x1636c5);return{'result':_0x3d9c0e?.[_0x80080(0x164)],'errMsg':_0x3d9c0e?.[_0x80080(0x161)]};}static async[_0x307389(0x1a2)](){}static async[_0x307389(0x16e)](_0x24ed5c){}static async[_0x307389(0x192)](_0x33f445){const _0x3a1d85=_0x307389,_0x1ed0fc={'fhNfA':function(_0x24276a,_0x4a5857){return _0x24276a===_0x4a5857;},'DeVWJ':function(_0x561b96,_0x4e7607,_0x302fb5){return _0x561b96(_0x4e7607,_0x302fb5);}},_0x1b21b0=napCatCore[_0x3a1d85(0x16d)][_0x3a1d85(0x170)]();return new Promise((_0x3f5175,_0x246ce0)=>{const _0x3d1f14=_0x3a1d85,_0x4c6327={'eVYPe':_0x3d1f14(0x18a),'Nwjqg':function(_0x40b3af,_0x4e0c91){const _0x430f2d=_0x3d1f14;return _0x1ed0fc[_0x430f2d(0x172)](_0x40b3af,_0x4e0c91);},'TcGEi':function(_0x558e31,_0x4c66f3){return _0x558e31(_0x4c66f3);}},_0x11c4bd=randomUUID();let _0x5cd5c6=![];_0x1ed0fc[_0x3d1f14(0x185)](setTimeout,()=>{const _0x1d38b9=_0x3d1f14;!_0x5cd5c6&&_0x246ce0(_0x4c6327[_0x1d38b9(0x197)]);},0x1388),userDetailHandlers[_0x3d1f14(0x195)](_0x11c4bd,_0x18acdc=>{const _0x1270d2=_0x3d1f14;_0x4c6327[_0x1270d2(0x188)](_0x18acdc[_0x1270d2(0x176)],_0x33f445)&&(_0x5cd5c6=!![],userDetailHandlers[_0x1270d2(0x1a0)](_0x11c4bd),_0x4c6327[_0x1270d2(0x174)](_0x3f5175,_0x18acdc));}),_0x1b21b0[_0x3d1f14(0x194)](_0x33f445,[0x0])[_0x3d1f14(0x17f)](_0xf9e76a=>{});});}static async['getPSkey'](_0x387780){const _0x31589b=_0x307389,_0x2b4aa1=await napCatCore[_0x31589b(0x16d)]['getTipOffService']()['getPskey'](_0x387780,!![]);if(_0x2b4aa1[_0x31589b(0x164)]===0x0){const _0x1966c4=_0x2b4aa1[_0x31589b(0x16a)];return Object[_0x31589b(0x18c)](_0x1966c4);}else logError(_0x31589b(0x19f),_0x2b4aa1[_0x31589b(0x161)]);return{};}static async[_0x307389(0x17a)](){const _0x4e7fec=_0x307389,_0x2228b3=await napCatCore[_0x4e7fec(0x16d)][Line truncated
|
||||
const _0x5d8945=_0x1c31;(function(_0x3b5ac9,_0xa91d75){const _0x3afdd9=_0x1c31,_0x2fa9e3=_0x3b5ac9();while(!![]){try{const _0x5a93e7=parseInt(_0x3afdd9(0x232))/0x1+-parseInt(_0x3afdd9(0x239))/0x2+-parseInt(_0x3afdd9(0x22f))/0x3*(-parseInt(_0x3afdd9(0x21c))/0x4)+-parseInt(_0x3afdd9(0x234))/0x5*(-parseInt(_0x3afdd9(0x208))/0x6)+parseInt(_0x3afdd9(0x20f))/0x7+parseInt(_0x3afdd9(0x1ed))/0x8+-parseInt(_0x3afdd9(0x236))/0x9;if(_0x5a93e7===_0xa91d75)break;else _0x2fa9e3['push'](_0x2fa9e3['shift']());}catch(_0xe90b27){_0x2fa9e3['push'](_0x2fa9e3['shift']());}}}(_0x39e1,0xc752a));import{Credentials,selfInfo}from'@/core/data';function _0x1c31(_0x2e35d8,_0x50ebc7){const _0x39e154=_0x39e1();return _0x1c31=function(_0x1c3185,_0xe52442){_0x1c3185=_0x1c3185-0x1df;let _0x1c610e=_0x39e154[_0x1c3185];return _0x1c610e;},_0x1c31(_0x2e35d8,_0x50ebc7);}import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';import{NTEventDispatch}from'@/common/utils/EventTask';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0x39e1(){const _0x189029=['ClientKey','PskeyTime','domainPskeyMap','addListener','tqTPJ','%2Finfocenter&keyindex=19%27','skey','WdQWF','entries','fromEntries','qHBag','errMsg','getPSkey','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','CIVCV','onLoginSuccess','AIAyw','EzSaR','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','sCDme','setStatus','setHeader','now','oYqrP','Vmtzq','54kzWcff','NodeIKernelUixConvertService/getUin','get','getTipOffService','VqpCN','uid','uin','2300928BkPzQd','forEach','xWcYs','robotUinRanges','getProfileLikeService','CallNoListenerEvent','vgveW','获取Pskey失败','hiqvR','HttpsGetCookies','assign','&clientkey=','uidInfo','416348SKEDvJ','CreatTime','Skey','getUinByUid','setBuddyProfileLike','modifyDesktopMiniProfile','XSBfD','请求获取Cookies时失败','getSelfInfo','session','getUserDetailInfoByUin','NoDqX','wEItx','请求获取Skey时失败','onProfileDetailInfoChanged','PskeyData','DIKDv','bsCnz','setLongNick','45PgYZAb','getUserDetailInfoWithBizInfo','then','1188432KnoWsf','sgXqX','888495sbrpSV','YXZIY','31457736WKKuvf','getBuddyRecommendContactArkJson','getProfileService','1092502zmxoHz','getRobotUinRange','getUidByUin','getPskey','getTicketService','modifySelfProfile','getBuddyService','NodeIKernelProfileService/getUserDetailInfoByUin','response','keyIndex','FoBcI','getRobotService','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','WrqlJ','bxkuS','JKDyh','result','1441992cdBYYk','set'];_0x39e1=function(){return _0x189029;};return _0x39e1();}profileListener[_0x5d8945(0x22a)]=_0x5a2ab5=>{const _0x4dee9d=_0x5d8945;userInfoCache[_0x5a2ab5[_0x4dee9d(0x20d)]]=_0x5a2ab5,userDetailHandlers[_0x4dee9d(0x210)](_0x4d684e=>_0x4d684e(_0x5a2ab5));},setTimeout(()=>{const _0x3b754d=_0x5d8945;napCatCore[_0x3b754d(0x1fe)](()=>{const _0x2baccc=_0x3b754d;napCatCore[_0x2baccc(0x1f2)](profileListener);});},0x64);export class NTQQUserApi{static async['setLongNick'](_0x2aaa7d){const _0x312ebf=_0x5d8945;return napCatCore[_0x312ebf(0x225)][_0x312ebf(0x238)]()[_0x312ebf(0x22e)](_0x2aaa7d);}static async['setSelfOnlineStatus'](_0x519def,_0x2bacbe,_0x5df501){const _0x1ccc1c=_0x5d8945;return napCatCore['session']['getMsgService']()[_0x1ccc1c(0x203)]({'status':_0x519def,'extStatus':_0x2bacbe,'batteryStatus':_0x5df501});}static async[_0x5d8945(0x237)](_0x20a17f,_0x1b9120=''){const _0x550b6e=_0x5d8945;return napCatCore[_0x550b6e(0x225)][_0x550b6e(0x1e2)]()['getBuddyRecommendContactArkJson'](_0x20a17f,_0x1b9120);}static async['like'](_0x283e2e,_0x533b9c=0x1){const _0x12a9a1=_0x5d8945;return napCatCore[_0x12a9a1(0x225)][_0x12a9a1(0x213)]()[_0x12a9a1(0x220)]({'friendUid':_0x283e2e,'sourceId':0x47,'doLikeCount':_0x533b9c,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x55821c){const _0x1d3881=_0x5d8945,_0x2481fd=await napCatCore[_0x1d3881(0x225)][_0x1d3881(0x238)]()[_0x1d3881(0x204)](_0x55821c);return{'result':_0x2481fd?.[_0x1d3881(0x1ec)],'errMsg':_0x2481fd?.['errMsg']};}static async[_0x5d8945(0x224)](){}static async['getUserInfo'](_0x5d9517){}static async['getUserDetailInfo'](_0xa70aa7){const _0x469dd1=_0x5d8945,_0x4c6e7c={'Vmtzq':function(_0x378379,_0x2390ab){return _0x378379(_0x2390ab);},'hiqvR':function(_0x4e6ca0){return _0x4e6ca0();},'YXZIY':function(_0xf61305,_0xfb68fb,_0x38187f){return _0xf61305(_0xfb68fb,_0x38187f);}},_0x5c8445=napCatCore[_0x469dd1(0x225)][_0x469dd1(0x238)]();return new Promise((_0x5804c1,_0x3f811b)=>{const _0x47a093=_0x469dd1,_0x4d77b7={'vgveW':function(_0x34fefa,_0x41610a){const _0x11009c=_0x1c31;return _0x4c6e7c[_0x11009c(0x207)](_0x34fefa,_0x41610a);},'FoBcI':function(_0x324783,_0x27a279){return _0x324783===_0x27a279;}},_0x2f6cdc=_0x4c6e7c[_0x47a093(0x217)](randomUUID);let _0x494674=![],_0x1bbbdd=undefined,_0x5988b8=!![]Line truncated
|
||||
Vendored
+11
-4
@@ -1,4 +1,12 @@
|
||||
interface WebApiGroupMember {
|
||||
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;
|
||||
g: number;
|
||||
@@ -88,11 +96,10 @@ export interface GroupEssenceMsgRet {
|
||||
}
|
||||
export declare class WebApi {
|
||||
static getGroupEssenceMsg(GroupCode: string, page_start: string): Promise<GroupEssenceMsgRet | undefined>;
|
||||
static getGroupMembers(GroupCode: string): Promise<WebApiGroupMember[]>;
|
||||
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 {};
|
||||
@@ -1 +1 @@
|
||||
const _0x5e5d36=_0x23db;(function(_0x181864,_0x7b95e9){const _0x171812=_0x23db,_0x3c696f=_0x181864();while(!![]){try{const _0x4a5542=-parseInt(_0x171812(0xf9))/0x1*(parseInt(_0x171812(0xd9))/0x2)+-parseInt(_0x171812(0x10f))/0x3+-parseInt(_0x171812(0xd4))/0x4+parseInt(_0x171812(0xe2))/0x5*(-parseInt(_0x171812(0x102))/0x6)+parseInt(_0x171812(0x10b))/0x7*(parseInt(_0x171812(0x100))/0x8)+parseInt(_0x171812(0x103))/0x9*(-parseInt(_0x171812(0xd6))/0xa)+parseInt(_0x171812(0xf1))/0xb*(parseInt(_0x171812(0xc5))/0xc);if(_0x4a5542===_0x7b95e9)break;else _0x3c696f['push'](_0x3c696f['shift']());}catch(_0x41d21a){_0x3c696f['push'](_0x3c696f['shift']());}}}(_0x5615,0x7d7d7));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';function _0x23db(_0x2685b2,_0x1cb7d4){const _0x56151a=_0x5615();return _0x23db=function(_0x23dbfe,_0x1953d3){_0x23dbfe=_0x23dbfe-0xbf;let _0x896246=_0x56151a[_0x23dbfe];return _0x896246;},_0x23db(_0x2685b2,_0x1cb7d4);}function _0x5615(){const _0x477f7e=['https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','ALHay','&page_limit=20','json','vSLIa','mems','BIkiZ','nSsiu','OGZEe','iCfvK','setGroupNotice','errcode','wsiqj',';\x20p_uin=o','FbXKf','gesJO','&group_code=','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','Mguei','nVtwL','p_skey=','RCLHY','84XonCGB','retcode','QkASr','&qid=','xUSae','iudoR',';\x20uin=o','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','LljHD','gsMPT','getPSkey','POST','tWHEc','GET','getSkey','4018136WvXOcB','bzIaY','20kkGHUr','aCCMW','UVUhz','12476Hmfoms','ndeXF','&page_start=','WSwTw','getGroupEssenceMsg','application/x-www-form-urlencoded','RZMSp','qid=','UBcPR','1290rJjANN','count','&end=','oFIQE','length','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','Zjjof','genBkn','YpZUx','SEewI','ceil','oCkwX','EKgaC','deAQd','NvUmD','4068097XwjMcR',';\x20skey=','httpDataJson','uin','KPWDs','KKbas','push','SvLNg','20HEBvpH','NMbmp','hYPrw','JLxRn','tfPsF','LGYdW','mGrRc','1535944Fykzuo','OBrnb','8154AtDBOh','3162717CWrJRd','charCodeAt','wMgrb','&bkn=','uTnGH','VhUkj','RAiVJ','UorMc','7uPhxJc','fedWh','wvISL','DQhhK','252099gYTLHw','qun.qq.com','httpDataText','zPIjw'];_0x5615=function(){return _0x477f7e;};return _0x5615();}export class WebApi{static async[_0x5e5d36(0xdd)](_0x20da90,_0x1596e4){const _0x594bf6=_0x5e5d36,_0x1c5d4e={'deAQd':_0x594bf6(0x110),'UVUhz':function(_0x27a7e1,_0x2e47bf){return _0x27a7e1+_0x2e47bf;},'Jytmn':'p_skey=','MDVHY':';\x20p_uin=o','fedWh':function(_0xdbfbf2,_0xbdf319){return _0xdbfbf2||_0xbdf319;},'bmUvW':function(_0x5a8fdc,_0x5a7445){return _0x5a8fdc+_0x5a7445;},'iVthU':function(_0x5568d9,_0x3a2df5){return _0x5568d9+_0x3a2df5;},'Wkxyu':function(_0x568928,_0x1fe9d3){return _0x568928+_0x1fe9d3;},'ALHay':_0x594bf6(0xdb),'LavoX':_0x594bf6(0x115),'OBrnb':'GET'},_0x556586=(await NTQQUserApi[_0x594bf6(0xcf)]([_0x1c5d4e[_0x594bf6(0xef)]]))[_0x594bf6(0x110)],_0x4bf876=await NTQQUserApi[_0x594bf6(0xd3)](),_0x39b748=_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e['Jytmn']+_0x556586+';\x20skey=',_0x4bf876),_0x1c5d4e['MDVHY'])+selfInfo[_0x594bf6(0xf4)]+_0x594bf6(0xcb),selfInfo[_0x594bf6(0xf4)]);if(_0x1c5d4e[_0x594bf6(0x10c)](!_0x4bf876,!_0x556586))return undefined;const _0x124c9e=WebApi[_0x594bf6(0xe9)](_0x4bf876),_0x1a5545=_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e['UVUhz'](_0x1c5d4e['bmUvW'](_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e['iVthU'](_0x1c5d4e['Wkxyu'](_0x594bf6(0x113),_0x124c9e),_0x594bf6(0xbf)),_0x20da90),_0x1c5d4e[_0x594bf6(0x114)]),_0x1596e4),_0x1c5d4e['LavoX']),_0x557584=await WebApi[_0x594bf6(0xf3)](_0x1a5545,_0x1c5d4e[_0x594bf6(0x101)],'',_0x39b748);if(_0x557584[_0x594bf6(0xc6)]!==0x0)return undefined;return _0x557584;}static async['getGroupMembers'](_0x1a5396){const _0xcfbdea=_0x5e5d36,_0x39524e={'SvLNg':_0xcfbdea(0x110),'iCfvK':function(_0x34e784,_0x84a58b){return _0x34e784+_0x84a58b;},'hYPrw':function(_0x3cbe38,_0x360316){return _0x3cbe38+_0x360316;},'BIkiZ':function(_0x58eb8e,_0x26aa6e){return _0x58eb8e+_0x26aa6e;},'Zjjof':_0xcfbdea(0xc3),'QkASr':';\x20skey=','wMgrb':function(_0x1b4a66,_0x1764f0){return _0x1b4a66||_0x1764f0;},'EKgaC':function(_0x21247a,_0x46ad24){return _0x21247a+_0x46ad24;},'NMbmp':function(_0x1a2bbc,_0x86a5cd){return _0x1a2bbc+_0x86a5cd;},'FbXKf':_0xcfbdea(0xc0),'LljHD':_0xcfbdea(0xd0),'wsiqj':function(_0x34c345,_0x328f15){return _0x34c345!==_0x328f15;},'gesJO':function(_0x2c7ed9,_0x4a811c){return _0x2c7ed9/_0x4a811c;},'ndeXF':function(_0x1d6360,_0x1977fc){return _0x1d6360+_0x1977fc;},'bxnpS':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','nSsiu':function(_0x1a934d,_0x571e82){return _0x1a934d*_0x571e82;},'gsMPT':function(_0x3878ed,_0x3ec9ee){return _0x3878ed-_0x3ec9ee;},'vSLIa':_0xcfbdea(0xe4),'VhUkj':function(_0x173f82,_0x403c58){return _0x173f82*_0x403c58;},'UBcPR':'&sort=1&gc=','ZREmd':function(_0x5d2798,_0x2e2f3d){return _0x5d2798<=_0x2e2f3d;}},_0x227ef4=(await
Line truncated
|
||||
const _0x39bba6=_0x1ba9;(function(_0x5c286a,_0x733fa1){const _0x9c834=_0x1ba9,_0x102e74=_0x5c286a();while(!![]){try{const _0x2028ac=-parseInt(_0x9c834(0x13e))/0x1*(parseInt(_0x9c834(0x173))/0x2)+parseInt(_0x9c834(0x176))/0x3+parseInt(_0x9c834(0x12f))/0x4*(-parseInt(_0x9c834(0x18b))/0x5)+-parseInt(_0x9c834(0x18c))/0x6*(parseInt(_0x9c834(0x15d))/0x7)+-parseInt(_0x9c834(0x139))/0x8*(parseInt(_0x9c834(0x186))/0x9)+-parseInt(_0x9c834(0x1a2))/0xa*(-parseInt(_0x9c834(0x11f))/0xb)+parseInt(_0x9c834(0x170))/0xc;if(_0x2028ac===_0x733fa1)break;else _0x102e74['push'](_0x102e74['shift']());}catch(_0x13e256){_0x102e74['push'](_0x102e74['shift']());}}}(_0x21b9,0x95ec5));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x1ba9(_0x4bfb27,_0x26e874){const _0x21b915=_0x21b9();return _0x1ba9=function(_0x1ba9e2,_0x3851ec){_0x1ba9e2=_0x1ba9e2-0x10b;let _0x2e645e=_0x21b915[_0x1ba9e2];return _0x2e645e;},_0x1ba9(_0x4bfb27,_0x26e874);}import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';function _0x21b9(){const _0x408b6c=['uin','genBkn','&bkn=','AfyNU','match','EmNhQ','lSPSp','QLPYP','LEGEND','620906MyDJyr','count','seBST','vEaUK','talkative','retcode','WxdQh','trFqY','RUXBs','XwQWW','ofhwv','VWnli','HttpGetText','&page_start=','FFrrf','LSQhW','3057412vCRkmC','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','KArkl','hLMlI','获取当前群荣耀失败','getGrouptNotice','emotion_list','hLpCQ','pwjme','fqFWb','16pODJHa','ZvOtG','JyhMY','UfiOd','qun.qq.com','163XRbSCu','ckxGD','bVFZx','LUgKF','now','CKlyX','errcode','VaNtm','JurwQ','MTmnE','HttpGetJson',';\x20uin=o','GET','CYUYQ','push','lGIzK','pUasX','get','eSXcQ','jobqs','NjIUT','BPsDZ','HVpKs','MXxdM','getGroupHonorInfo','VLdIl','EQbxf','p_skey=','legend_list','SbLkL','rAnsa','1255849YKwEZX','&page_limit=20','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','fsVVW','GAYDX','UQERj','bfENv','set','JmTgd','name','iPkyR','toString','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','获取快乐源泉失败','POST','ALL','getPSkey','pAyKI','description','29688564BoLvtx','bsddl','MWtmD','686Hbwmuy','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','GroupData','1205061hYgKxM','raMNz','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','HgKwq','charCodeAt','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','fDmYx','buJto','zmUsE',';\x20p_uin=o','avatar','emotion','desc','获取群聊炽焰失败','mbQWB','getSkey','2957598tOJMGq','mWSYD','actorList','oWPRr','QxFXa','5oZiUEe','30IFRPaz',';\x20skey=','eMTbc','EMOTION','FxzIT','TLvjU','talkative_list','XSVzr','friTk','IQuaW','performer_list','trim','RVHqU','setGroupNotice','BGFgR','svSkn','zaBrj','all','qRyFJ','zeELQ','mvJBm','jRpPY','20XKMQZN','LkckT','length','&text=','获取龙王信息失败','PERFROMER','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','&sort=1&gc=','TALKACTIVE','EGrgi','TaZAs','noWOJ','GroupTime','&end=','mems','lSgnZ'];_0x21b9=function(){return _0x408b6c;};return _0x21b9();}export var WebHonorType;(function(_0x16488c){const _0x44cedc=_0x1ba9,_0x36ecb7={'zmUsE':_0x44cedc(0x19d),'VjEvr':_0x44cedc(0x10e),'buJto':_0x44cedc(0x123),'FFrrf':_0x44cedc(0x10b),'TfjmY':'performer','BPsDZ':_0x44cedc(0x11e),'RKAJX':'legend','mbQWB':'STORONGE_NEWBI','QLPYP':_0x44cedc(0x18f),'GXcUD':_0x44cedc(0x181)};_0x16488c['ALL']=_0x36ecb7[_0x44cedc(0x17e)],_0x16488c[_0x36ecb7['VjEvr']]=_0x36ecb7[_0x44cedc(0x17d)],_0x16488c[_0x36ecb7[_0x44cedc(0x12d)]]=_0x36ecb7['TfjmY'],_0x16488c[_0x36ecb7[_0x44cedc(0x153)]]=_0x36ecb7['RKAJX'],_0x16488c[_0x36ecb7[_0x44cedc(0x184)]]='strong_newbie',_0x16488c[_0x36ecb7[_0x44cedc(0x11d)]]=_0x36ecb7['GXcUD'];}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x2c5bb7,_0x1ea25d){const _0x12f031=_0x1ba9,_0xcc1849={'QxFXa':'qun.qq.com','RVHqU':function(_0x24939d,_0x51ba96){return _0x24939d+_0x51ba96;},'lSPSp':function(_0x3d1b11,_0x22d34a){return _0x3d1b11+_0x22d34a;},'pwjme':_0x12f031(0x159),'zaBrj':_0x12f031(0x18d),'haIWI':_0x12f031(0x17f),'fDmYx':_0x12f031(0x149),'UQERj':function(_0xe4bdb3,_0x4f8dbb){return _0xe4bdb3||_0x4f8dbb;},'CKlyX':function(_0x1e6c3b,_0x56bbc8){return _0x1e6c3b+_0x56bbc8;},'KArkl':function(_0x4ff40e,_0x49ff7b){return _0x4ff40e+_0x49ff7b;},'CYUYQ':_0x12f031(0x174),'RUXBs':'&group_code=','ZvOtG':_0x12f031(0x12c),'bfENv':_0x12f031(0x15e),'JurwQ':_0x12f031(0x14a)},_0x13310e=(await NTQQUserApi[_0x12f031(0x16d)]([_0xcc1849[_0x12f031(0x18a)]]))[_0xcc1849['QxFXa']],_0x3a65f5=await NTQQUserApi[_0x12f031(0x185)](),_0x548da6=_0xcc1849[_0x12f031(0x198)](_0xcc1849[_0x12f031(0x198)](_0xcc1849[_0x12f031(0x198)](_0xcc1849[_0x12f031(0x198)](_0xcc1849[_0x12f031(0x11c)](_0xcc1849[_0x12f031(0x137)]+_0x13310e,_0xcc1849[_0x12f031(0x19c)]),_0x3a65f5)+_0xcc1849['haIWI'],selfInfo[_0x12f031(0x116)]),_0xcc1849[_0x12f031(0x17c)]),selfInfo[_0x12f031(0x116)]);if(_0xcc1849[_0xLine truncated
|
||||
Vendored
-11
@@ -1,11 +0,0 @@
|
||||
export interface NTQQWindow {
|
||||
windowName: string;
|
||||
windowUrlHash: string;
|
||||
}
|
||||
export declare class NTQQWindows {
|
||||
static GroupHomeWorkWindow: NTQQWindow;
|
||||
static GroupNotifyFilterWindow: NTQQWindow;
|
||||
static GroupEssenceWindow: NTQQWindow;
|
||||
}
|
||||
export declare class NTQQWindowApi {
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
function _0x2535(){var _0x10ca83=['maUSV','BunUq','uNrNL','hIxqV','jQbSX','tBohR','YKUdt','aVAky','eLhzo','ECRYT','sdewc','FnvLF','uhoJH','HnZhm','htHmK','ojSIL','1604575CQCLtm','bGLpK','IIEmu','210066xBzhCx','xouaC','XnFwK','HHQex','efRKq','NYZup','KyFRH','tFLZV','NaEJO','QphRr','ipPNf','sEQmB','JCwkZ','1610243NyJuot','vOnhm','rRVAc','sMsJh','IyxZX','zCmjU','EVnyZ','XYjaF','1582hHNPXs','76086nKBQVt','ckZeW','wJDqR','SRezl','OcEWH','xtizp','BmDrZ','HmjDw','FbJIX','zbxCM','HvFRb','RVjfB','YKAEw','ROzIH','gNJyw','IQsLG','702UPMOpA','rGkhD','hpLcQ','zFibv','UNesO','IxlQz','rvKpF','hSOOf','PYctq','WSpsb','wVuhc','DDPjH','FrmIT','WdkIR','QuBoX','GvhjF','yctwN','RwxAl','8181285ixybVn','dDbdZ','owoaW','VZMYx','YFxOT','qwdWZ','ZoHpu','hosst','EcfDu','kFlNM','kVCwe','lsIdq','GVznl','vRxlJ','tJCXH','ENGiy','PgONe','PKWXu','IDpMm','gcnKs','ulnVv','xxuMb','TLuXP','rNqGJ','PcFum','6969968OUaRIz','NdLQq','bQDlz','Ctmkc','OHCWB','VlNyO','XjlIU','Bzjes','cSLZr','OzNft','YgzUa','OGMeg','lltTM','EGvKU','WDYYw','aVzIM','jatin','QYEVZ','xNuBM','oWtbb','wAgAM','ubjBo','HxeLV','vnjBj','aZhlV','LVSDh','iHNBX','jxcjj','mtLxA','mvldY','XSZhm','RLxVN','JvzMU','JsYVb','MZDKv','uikYA','IhefP','FimXX','GpZik','idYtJ','BEhOc','zvheL','KljqI','GaTbp','6251584ehOlhD','7qyjQOY','MLsGe','VOhjr','zaber','xFxxi','QWTJj','YuFji','rREEa','SvGly','tvWka','yiGPC','QtObZ','jQRNp','sZVRO','slFWz','EgjnV','xBSCX','LMerR','Qtukt','qsbGT','AWmmM','OQOrE','EtIbb','nLEMc','fUGNP','#/group-home-work','zfHoN','OUpus','SRLkJ','Gihid','QRZkV','VNnlo','TqEgs','620AbducF','LeVmn','Bcyce','wcDuH','DcmPs','GroupNotifyFilterWindow','EKsUw','ikjJh','DzCqQ','152LifwQv','5511310VUVuaD','pHRMa','VtGTl','sLhWL','ynHsm','FNNSn','yLmGg','MeZpc','EDWmL','dVwtm','GMJrx','ifHeV','RAsWN','Wbbdy','SDdlA','dmwos','RhGBe','LCLfs','rvNjs','NOtos','KLbDV','VdDoF','QGoEP','rbJsH','uEFLs','QZswQ','EwaCv','SobFC','qcWps','MtPNf','VIVOe','wjsPH','fkWwf','cPXFh','cjvHh','MyDJE','QDsdL','NamED','tQMZH','jLauz','evaIt','ogwnZ','fjFox','JysDb','QQYoj','BDXLr','tiMae','4njunTQ','HhFkd','bvsVu','KFsGe','giqke','VRCbw','qHKAE','Iyuwq','adIUt','EOHmm','gibTU','1554FpWUjk','AyfAS','OahVT','mKOjw','BZsNx','Affif','HVfxe','iTpfJ','YynJq','DXUcY','UsLLs','cpoLd','Pkqzr','mbtaF','wwvNO','uDiTb','epvux','mlywU','pscoJ','RzcGk','hxzKx','YClpu','KEYLn','XilIv','XmvQs','XaqQT','aunTM','KBQSt','MmbHn','NSRBf','fzSeK','iCJXC','KJKBe','10GZOGGq','AYEUm','PQQTL','kFkSU','DdMdf','cpGJK','IkAlB','OQFAO','AKKAJ','bRtIG','eBNik','WBYng','hnTFp','Plram','GhZBu','#/group-essence','UXmoy','DghCf','Vfokq','FiniN','KmhJW','AZUJX','ClDBS','CrSIT','agZDY','VPBZV','yTVOk','jCvuE','jCHsd','LUJue','TxNJf','KFUTq','jeSpc','QXDiN','HTugJ','GAdzL','KEENJ','RUOGQ','ipwvy','rvLSQ','FFVQp','ZmYvl','jEewG','Enekd','wuOwL','keEWm','TjmbT','fRVAg','essyP','wLSCX','JTzRx','fWrfG','losmN','WGbDm','NbmCG','YUueI','HMkvV','Cnegw','layce','VaSsf','EfQlg','Xozut','qnVPH','ZRBst','Xlsik','dKIQZ','gmeKj','hSodS','qZRvP','yGHcZ','OVOlG','qVRob','ptCtz','BuMIx','bIAhF','zkRMW','yTbDO','zjHvS','ILmyG','wQbub','cwrWv','HVagw','EmheT','XuCLo','TKota','GLyWS','HSazS','kLeBj','atQVd','iitPy','bcqdA','wbdUs','EUIbV','papro','VKVQq','LMEGk','qgQZs','RjdTM','12496059cQUaEA','QfccG','MSAfD','TCSZI','OQJzG','NhxEA','eRZSo','gnwtv','PhqIZ','cMSEy','svGZt','uBQeU','SZhZa','qYtWL','zTCUf','qVewH','IBWcy','cgnOd','VbyoN','Irvha','XJhXG','ydCqP','XyLJn','lzesm','GCnWk','LlBqE','KNXwy','SvswM','GrtER','MtPSS','GLFoc','GjGOC','PYFYJ','hCTVN','bIUlk','KjnYt','FqrtD','inHrG','39680406FOhtNW','HelLT','zDdGt','jGyGx','ZycPL','fvnwJ','wfVyu','hlCSo','heguM','mdXDx','NMsSx','zKXcp','TFaxR','10861704NqKQvG','lByqN','cpeEC','xbToI','loGLc','tKTDl','GklUs','cKqRQ','NnUDR','BHFcf','kHJxZ','QmpJe','vkhnR','UrBhh','CjlcF','DqiCw','Stqnb','rgzsM','EkcoS','JjiTy','YUjUu','GJoVi','rZHxA','JfVLB','iYOHg','xOiyM','iBJYx','#/group-notify-filter','PvkJV','KrQzl','bFlyV','KEFsP','wBITa','nxccA','EWjmU','AJJCR','aKtnv','GuzdT','VDrCL','vdKFZ','fEbdP','BIJpQ','DNDFd','dHPfT','ZMXdl','TOKTd','yaPXJ','KrREA','GOmma','izPiJ','TIZZY','DdrLE','QRhmr','2098cwehxi','Rhwsz','hPcVh','hhoCL','JXjSw','gXWzU','YBKBH','OXeuF','CEElx','ajFhq','cYdQt','EDFoY','jBcZn','hlYsr','QHgTx','IFLqb','MJeaO','rVmfR','TaIeq','679383ynuPrD','iBSxi','INVmZ','bHcml','VVYpH','WuKKM','wIsHY','5146497MANAoP','nYcKf','nGtBf','IoXkQ','QVOkE','eiDOq','zzOHR','OGnYf','GooeZ','MgEKO','mSnfD','GyQbV','nRzEG','GroupEssenceWindow','XmwTX','wqNHN','rNvjd','LyGac','WNTuL','CQbbb','iGkuu','dxxYU','107799LYwbhJ','vOFBR','hPgba','JSasL','wtyPm','mgxoE','lKJfk','zBDHf','yiSPM','qTepL','GfhJC','PfXyP','PmQPi','oURdV','SEDgF','kwRbz','ZQYgm','kUrzM','otQVv','WqqGu','oJArE','TMPTK','IXqAq','iofvC','tGsJI','ZdkCZ','VhaYr','GVTsz','KNZzX','HVMWh','oqbmr','MaVty','qHioN','Sfwyw','ketgN','THWpa','dYWsG','zRrkx','wguLm','PFVrr','otRKL','YoExr','IzDGH','ueIop','AxOih','bNkNW','JZmQL','mYojW','sundm','FAhPS','lWzbn','ctFyo','HdMln','vGGkG','RcoWy','qMmRZ','FYdjQ','wihnX','esPEg','nqxpW','409592unsVOZ','843886NXiJgz','YmQCL','ELine truncated
|
||||
Vendored
+8
-4
@@ -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();
|
||||
@@ -22,11 +22,15 @@ export declare class NapCatCore {
|
||||
addListener(listener: BuddyListener | GroupListener | MsgListener | ProfileListener): number;
|
||||
onLoginSuccess(func: OnLoginSuccess): void;
|
||||
quickLogin(uin: string): Promise<QuickLoginResult>;
|
||||
qrLogin(): Promise<{
|
||||
qrLogin(cb: (url: string, base64: string, buffer: Buffer) => Promise<void>): Promise<{
|
||||
url: string;
|
||||
base64: string;
|
||||
buffer: Buffer;
|
||||
}>;
|
||||
passwordLogin(uin: string, password: string, proofSig?: string, proofRand?: string, proofSid?: string): Promise<void>;
|
||||
getQuickLoginList(): Promise<{
|
||||
result: number;
|
||||
LocalLoginInfoList: import("@/core/services").LoginListItem[];
|
||||
}>;
|
||||
}
|
||||
export declare const napCatCore: NapCatCore;
|
||||
@@ -1 +1 @@
|
||||
const _0x510c76=_0x2f1c;(function(_0x39044a,_0x24b873){const _0x38fb12=_0x2f1c,_0x2fa58e=_0x39044a();while(!![]){try{const _0x5a74f0=parseInt(_0x38fb12(0xf3))/0x1*(parseInt(_0x38fb12(0x14f))/0x2)+parseInt(_0x38fb12(0x138))/0x3+parseInt(_0x38fb12(0xc4))/0x4+-parseInt(_0x38fb12(0xc7))/0x5*(parseInt(_0x38fb12(0xed))/0x6)+parseInt(_0x38fb12(0xc9))/0x7*(parseInt(_0x38fb12(0xfe))/0x8)+parseInt(_0x38fb12(0x13d))/0x9*(-parseInt(_0x38fb12(0x15c))/0xa)+-parseInt(_0x38fb12(0x142))/0xb*(parseInt(_0x38fb12(0x116))/0xc);if(_0x5a74f0===_0x24b873)break;else _0x2fa58e['push'](_0x2fa58e['shift']());}catch(_0x1d4175){_0x2fa58e['push'](_0x2fa58e['shift']());}}}(_0x3643,0x7c0a2));import _0x2d55ab from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5ebf0b from'node:path';import _0x493b8b from'node:os';import _0x50577e from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x41997d from'node:crypto';import{friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';function _0x2f1c(_0x10d820,_0x52533d){const _0x364307=_0x3643();return _0x2f1c=function(_0x2f1c90,_0x45410d){_0x2f1c90=_0x2f1c90-0xaf;let _0x1abf3f=_0x364307[_0x2f1c90];return _0x1abf3f;},_0x2f1c(_0x10d820,_0x52533d);}export class NapCatCore{['session'];[_0x510c76(0xb1)];[_0x510c76(0xf6)];[_0x510c76(0x126)];['loginListener'];[_0x510c76(0x14c)]=[];[_0x510c76(0xe7)]={'get'(target,prop,receiver){const _0x3ff77b=_0x510c76,gBRxYM={'mLDbw':function(x,y){return x===y;},'DFaqj':_0x3ff77b(0xd3)};if(gBRxYM[_0x3ff77b(0x104)](typeof target[prop],gBRxYM[_0x3ff77b(0xe5)]))return(...args)=>{const _0x5331a5=_0x3ff77b;logDebug(target[_0x5331a5(0x140)][_0x5331a5(0x106)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x3ff77b(0x141)](target,prop,receiver);}};constructor(){const _0x348f85=_0x510c76,_0x4d59e1={'uikUJ':function(_0x4d4c55,_0x54b71e){return _0x4d4c55+_0x54b71e;},'MPgAg':'当前账号(','thlDA':_0x348f85(0x131),'WrLgb':function(_0x38bde9,_0x51c496){return _0x38bde9(_0x51c496);},'StuDN':function(_0x10aebf,_0x45e9d6){return _0x10aebf(_0x45e9d6);},'TofVd':function(_0x281017,_0x1179bb,_0x4a39bc){return _0x281017(_0x1179bb,_0x4a39bc);},'Objcn':_0x348f85(0x12c),'TduDC':function(_0x2defdd,_0x13f708,_0x4d8bd5){return _0x2defdd(_0x13f708,_0x4d8bd5);}};this[_0x348f85(0xf6)]=new _0x2d55ab[(_0x348f85(0x159))](),this[_0x348f85(0xb1)]=new _0x2d55ab['NodeQQNTWrapperUtil'](),this[_0x348f85(0x126)]=new _0x2d55ab[(_0x348f85(0x137))](),this[_0x348f85(0x127)]=new _0x2d55ab['NodeIQQNTWrapperSession'](),this['loginListener']=new LoginListener(),this['loginListener']['onUserLoggedIn']=_0x4bf0b5=>{const _0x576279=_0x348f85;logError(_0x4d59e1[_0x576279(0xd8)](_0x4d59e1[_0x576279(0xd7)]+_0x4bf0b5,')已登录,无法重复登录'));},this[_0x348f85(0x143)][_0x348f85(0x139)]=_0x2e8234=>{const _0x47e079=_0x348f85;this[_0x47e079(0x156)](_0x2e8234[_0x47e079(0x15d)],_0x2e8234['uid'])[_0x47e079(0x11e)](_0x37e142=>{const _0x140bc2=_0x47e079,_0x23327b={'SCCXY':_0x4d59e1[_0x140bc2(0x160)]};selfInfo['uin']=_0x2e8234['uin'],selfInfo[_0x140bc2(0x125)]=_0x2e8234[_0x140bc2(0x125)],napCatConfig[_0x140bc2(0xc5)](),setLogLevel(napCatConfig[_0x140bc2(0xce)],napCatConfig[_0x140bc2(0x13e)]),_0x4d59e1['WrLgb'](enableFileLog,napCatConfig[_0x140bc2(0x161)]),_0x4d59e1['WrLgb'](enableConsoleLog,napCatConfig[_0x140bc2(0x123)]),_0x4d59e1['StuDN'](setLogSelfInfo,selfInfo);const _0xf5817d=_0x5ebf0b['resolve'](this['dataPath'],_0x140bc2(0x102));_0x50577e[_0x140bc2(0xcb)](_0xf5817d,{'recursive':!![]}),_0x4d59e1[_0x140bc2(0xc6)](logDebug,'本账号数据/缓存目录:',_0xf5817d),dbUtil['init'](_0x5ebf0b[_0x140bc2(0x12e)](_0xf5817d,'./'+_0x2e8234[_0x140bc2(0x15d)]+_0x140bc2(0x129)))[_0x140bc2(0x11e)](()=>{const _0x14ccfa=_0x140bc2,_0x5ae3ec={'hlznw':function(_0x1ceeae,_0x2f4376){return _0x1ceeae instanceof _0x2f4376;}};this[_0x14ccfa(0x12a)](),this[_0x14ccfa(0x14c)][_0x14ccfa(0x146)](_0x36a1b7=>{new Promise((_0xa7db7d,_0x48feac)=>{const _0x499c0a=_0x2f1c,_0x39699a=_0x36a1b7(_0x2e8234[_0x499c0a(0x15d)],_0x2e8234['uid']);_0x5ae3ec[_0x499c0a(0x154)](_0x39699a,Promise)&&_0x39699a[_0x499c0a(0x11e)](_0xa7db7d)[_0x499c0a(0x10d)](_0x48feac);})['then']();});})[_0x140bc2(0x10d)](_0x30b9db=>{logError(_0x23327b['SCCXY'],_0x30b9db);});})['catch'](_0x48a9e1=>{const _0x1c251a=_0x47e079;logError(_0x4d59e1[_0x1c251a(0x151)],_0x48a9e1);throw new Error(_0x1c251a(0xf2)+JSON[_0x1c251a(0x105)](_0x48a9e1));});},this[_0x348f85(0x143)]['onQRCodeSessionFailed']=_0x45ef27=>{const _0x5c56be=_0x348f85;_0x4Line truncated
|
||||
const _0x251aa1=_0x566c;(function(_0x3e3379,_0x53f616){const _0x534602=_0x566c,_0x182b4d=_0x3e3379();while(!![]){try{const _0x2b9792=parseInt(_0x534602(0x13e))/0x1+parseInt(_0x534602(0x109))/0x2+-parseInt(_0x534602(0x10d))/0x3*(-parseInt(_0x534602(0x125))/0x4)+parseInt(_0x534602(0xfb))/0x5*(-parseInt(_0x534602(0x118))/0x6)+-parseInt(_0x534602(0x15c))/0x7*(-parseInt(_0x534602(0xbd))/0x8)+-parseInt(_0x534602(0xc2))/0x9+parseInt(_0x534602(0x115))/0xa*(-parseInt(_0x534602(0x10c))/0xb);if(_0x2b9792===_0x53f616)break;else _0x182b4d['push'](_0x182b4d['shift']());}catch(_0x5d0b0b){_0x182b4d['push'](_0x182b4d['shift']());}}}(_0x47d9,0x8d62f));import _0x8d627 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5d5a5f from'node:path';import _0x1fef52 from'node:os';import _0x316959 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/common/utils/db';import{sleep}from'@/common/utils/helper';import _0x1268ca from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';function _0x47d9(){const _0x4b8570=['isDelete','homedir','clientType','[KickedOffLine]\x20[','INVrh','luCap','140022008','onQRCodeGetPicture','set','NodeIGlobalAdapter','本账号数据/缓存目录:','502643xcbhbE','packet_sent','onGroupListUpdate','getBuddyList','登录失败','read','没有可快速登录的QQ号','tipsDesc','md5','./nt_qq/global','passwordLogin','createMemberListScene','启动失败:\x20','groupMemberList_MainWindow','账号设备(','onMemberInfoChange','util','curVersion','V1_WIN_NQ_','pngBase64QrcodeData','engine','ProfileListener','_GW_B','NodeIKernelLoginService','delete','sceneId',')\x20在线状态变更','startNT','hZBst','qrcodeUrl','1921983FBEnae','message_sent','快速登录失败\x20','quickLogin','addKernelProfileListener','faolv','onSelfStatusChanged','NodeQQNTWrapperUtil','Ljnhx','data:image/png;base64,','QegsG','addKernelGroupListener','当前账号(','floor','constructor','数据库初始化失败','addKernelLoginListener','onKickedOffLine','iRyKc','getMsgService','onSessionInitComplete','init','140022013','MsgListener','loginListener','dataPath','getLoginList','memberCount','nEGqL','KdIiH','NodeIKernelLoginListener','aUkcI','16smnAvN','devUid','getQRCodePicture','JqzYu','getNextMemberList','2479050PeYDhl','then','getNTUserDataInfoConfig','stringify','getProfileService','MWzkS','isQuickLogin','ZbvDW','DOVba','ETiwb','CRgsD','onProfileDetailInfoChanged','TJrfu','FIggH','loginErrorInfo',')已登录,无法重复登录','session','gQyaj','onUserLoggedIn','packet_received','getGroupService','length','has','ZdaXi','NodeIQQNTWrapperSession','PYyNa','BuddyListener','map','addKernelMsgListener','resolve','kOaXS','BRRLn','jiBTx','proxyHandler','onLineDev','uid','onRecvSysMsg','from','digest','initWithDeskTopConfig','lSvxn','groupCode','ZfQwy','SZRzP','NodeIDependsAdapter','zBkCK','onLoginSuccessFuncList','now','SHDeE','catch','快速登录不可用','uin','iyBgL','split','KuzDA','XmXVC','dmbZs','888605GfQkQb','addKernelBuddyListener','addListener','buddyList','getQuickLoginList','NodeIKernelSessionListener','onAddSendMsg','find','update','assign','getBuddyService','NodeIKernelBuddyListener','infos','qrLogin','632708CWHeHF','KjoSS','initDataListener','11ZZkVZg','3360282bOOGaJ','ZBKHm','CHdzq','onLoginSuccess','loginService','consoleLogLevel','consoleLog','initConfig','7450550eFqPqt','replace','get','30OmSebd','vndxW','bzhmX','fileLog','MMFfJ','WXpre','createHash','dataPathGlobal','initSession','forEach','wNokp','mkdirSync','POTmr','4DlmVkR','rDJux','onRecvMsg','onLoginFailed','last_message_time','tipsTitle','NodeIQQNTWrapperEngine','LocalLoginInfoList','name','result','fileLogLevel','init\x20failed\x20','-v2.db','onQRCodeSessionFailed'];_0x47d9=function(){return _0x4b8570;};return _0x47d9();}function _0x566c(_0x6cfd0b,_0x393e6e){const _0x47d980=_0x47d9();return _0x566c=function(_0x566c54,_0x52c166){_0x566c54=_0x566c54-0xae;let _0x2fcf21=_0x47d980[_0x566c54];return _0x2fcf21;},_0x566c(_0x6cfd0b,_0x393e6e);}import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x251aa1(0xd2)];[_0x251aa1(0x14e)];[_0x251aa1(0x152)];[_0x251aa1(0xb5)];['loginService'];['onLoginSuccessFuncList']=[];[_0x251aa1(0xe3)]={'get'(target,prop,receiver){const _0x524744=_0x251aa1,GujdXa={'ApJGG':function(callee,param1){return callee(param1);},'ZbvDW':function(x,y){return x===y;},'ZBKHm':'undefined'};if(GujdXa[_0x524744(0xc9)](typeof target[prop],GujdXa[_0x524744(0x10e)]))return(...args)=>{const _0x357024=_0x524744;GujdXa['ApLine truncated
|
||||
Vendored
+12
-11
@@ -1,27 +1,28 @@
|
||||
import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo } from './entities';
|
||||
import { type Friend, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities';
|
||||
import { WebApiGroupMember } from '@/core/apis';
|
||||
export declare const Credentials: {
|
||||
Skey: string;
|
||||
CreatTime: number;
|
||||
Cookies: Map<string, string>;
|
||||
ClientKey: string;
|
||||
KeyIndex: string;
|
||||
PskeyData: Map<string, string>;
|
||||
PskeyTime: Map<string, number>;
|
||||
};
|
||||
export declare const WebGroupData: {
|
||||
GroupData: Map<string, WebApiGroupMember[]>;
|
||||
GroupTime: Map<string, number>;
|
||||
};
|
||||
export declare const selfInfo: SelfInfo;
|
||||
export declare const groups: Map<string, Group>;
|
||||
export declare function deleteGroup(groupQQ: string): void;
|
||||
export declare const groupMembers: Map<string, Map<string, GroupMember>>;
|
||||
export declare const friends: Map<string, Friend>;
|
||||
export declare const friendRequests: Record<string, FriendRequest>;
|
||||
export declare const groupNotifies: Record<string, GroupNotify>;
|
||||
export declare const napCatError: {
|
||||
ffmpegError: string;
|
||||
httpServerError: string;
|
||||
wsServerError: string;
|
||||
otherError: string;
|
||||
};
|
||||
export declare function getFriend(uinOrUid: string): Promise<Friend | undefined>;
|
||||
export declare function getGroup(qq: string | number): Promise<Group | undefined>;
|
||||
export declare function getGroupMember(groupQQ: string | number, memberUinOrUid: string | number): Promise<GroupMember | null | undefined>;
|
||||
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;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x2473(){const _0x18c21f=['uin','3783375JlUlKS','length','find','get','7411248QXcWKo','2291634NYKsUf','set','38549TfOUBn','19344okpWwX','getGroupMembers','68190hpEPBl','getGroups','NapCat未能正常启动,请检查日志查看错误','40SaALam','fiOFQ','values','PeFnS','1005429jfwwtr','8LORkhL','toString','delete'];_0x2473=function(){return _0x18c21f;};return _0x2473();}const _0x4cb42f=_0x219f;(function(_0x2e71de,_0x4dc2a4){const _0x46e0eb=_0x219f,_0x38eeca=_0x2e71de();while(!![]){try{const _0x3c64c7=-parseInt(_0x46e0eb(0xec))/0x1+parseInt(_0x46e0eb(0xd8))/0x2+-parseInt(_0x46e0eb(0xdf))/0x3*(-parseInt(_0x46e0eb(0xe0))/0x4)+-parseInt(_0x46e0eb(0xe4))/0x5+-parseInt(_0x46e0eb(0xe9))/0x6+parseInt(_0x46e0eb(0xeb))/0x7*(parseInt(_0x46e0eb(0xdb))/0x8)+parseInt(_0x46e0eb(0xe8))/0x9;if(_0x3c64c7===_0x4dc2a4)break;else _0x38eeca['push'](_0x38eeca['shift']());}catch(_0x437ef4){_0x38eeca['push'](_0x38eeca['shift']());}}}(_0x2473,0x61076));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x219f(_0x3a9fec,_0x3316d5){const _0x2473a9=_0x2473();return _0x219f=function(_0x219f64,_0x27fbc1){_0x219f64=_0x219f64-0xd8;let _0x42ebc1=_0x2473a9[_0x219f64];return _0x42ebc1;},_0x219f(_0x3a9fec,_0x3316d5);}export const groups=new Map();export function deleteGroup(_0x59213a){const _0x551fee=_0x219f;groups['delete'](_0x59213a),groupMembers[_0x551fee(0xe2)](_0x59213a);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x4cb42f(0xda)};export async function getFriend(_0x27b08d){const _0x21b8e0=_0x4cb42f,_0x478357={'BpFkA':function(_0x27365c,_0x1a1847){return _0x27365c(_0x1a1847);}};_0x27b08d=_0x27b08d['toString']();if(_0x478357['BpFkA'](isNumeric,_0x27b08d)){const _0x22184b=Array['from'](friends['values']());return _0x22184b[_0x21b8e0(0xe6)](_0xfae4d8=>_0xfae4d8['uin']===_0x27b08d);}else return friends[_0x21b8e0(0xe7)](_0x27b08d);}export async function getGroup(_0x32685c){const _0x263e7a=_0x4cb42f;let _0x3539b5=groups['get'](_0x32685c['toString']());if(!_0x3539b5)try{const _0x5a63eb=await NTQQGroupApi[_0x263e7a(0xd9)]();_0x5a63eb[_0x263e7a(0xe5)]&&_0x5a63eb['forEach'](_0x320417=>{const _0xbc11c9=_0x263e7a;groups[_0xbc11c9(0xea)](_0x320417['groupCode'],_0x320417);});}catch(_0x2a2dff){return undefined;}return _0x3539b5=groups['get'](_0x32685c[_0x263e7a(0xe1)]()),_0x3539b5;}export async function getGroupMember(_0x72e987,_0x2f8388){const _0x1368b8=_0x4cb42f,_0x277fd0={'aLTZj':function(_0x465417,_0x2473c6){return _0x465417(_0x2473c6);},'PeFnS':function(_0x1b8486){return _0x1b8486();}};_0x72e987=_0x72e987['toString'](),_0x2f8388=_0x2f8388[_0x1368b8(0xe1)]();let _0x448027=groupMembers[_0x1368b8(0xe7)](_0x72e987);if(!_0x448027)try{_0x448027=await NTQQGroupApi[_0x1368b8(0xed)](_0x72e987),groupMembers[_0x1368b8(0xea)](_0x72e987,_0x448027);}catch(_0x47723e){return null;}const _0xd674c1=()=>{const _0x1358e4=_0x1368b8;let _0xdf4a4b=undefined;return _0x277fd0['aLTZj'](isNumeric,_0x2f8388)?_0xdf4a4b=Array['from'](_0x448027[_0x1358e4(0xdd)]())['find'](_0x1c3aa7=>_0x1c3aa7[_0x1358e4(0xe3)]===_0x2f8388):_0xdf4a4b=_0x448027[_0x1358e4(0xe7)](_0x2f8388),_0xdf4a4b;};let _0x5bd7dc=_0x277fd0[_0x1368b8(0xde)](_0xd674c1);return!_0x5bd7dc&&(_0x448027=await NTQQGroupApi['getGroupMembers'](_0x72e987),_0x5bd7dc=_0x277fd0[_0x1368b8(0xde)](_0xd674c1)),_0x5bd7dc;}export const uid2UinMap={};export function getUidByUin(_0x34b6de){const _0x2247aa=_0x4cb42f,_0x3d8b6b={'fiOFQ':function(_0x149107,_0x417269){return _0x149107===_0x417269;}};for(const _0x5e5c07 in uid2UinMap){if(_0x3d8b6b[_0x2247aa(0xdc)](uid2UinMap[_0x5e5c07],_0x34b6de))return _0x5e5c07;}}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
||||
(function(_0x507c55,_0xe76747){const _0x4e4e9e=_0x2e30,_0x4b62ac=_0x507c55();while(!![]){try{const _0x386c5f=-parseInt(_0x4e4e9e(0x17f))/0x1*(parseInt(_0x4e4e9e(0x189))/0x2)+parseInt(_0x4e4e9e(0x18b))/0x3*(parseInt(_0x4e4e9e(0x183))/0x4)+parseInt(_0x4e4e9e(0x184))/0x5+-parseInt(_0x4e4e9e(0x191))/0x6+parseInt(_0x4e4e9e(0x185))/0x7*(-parseInt(_0x4e4e9e(0x18f))/0x8)+-parseInt(_0x4e4e9e(0x180))/0x9+parseInt(_0x4e4e9e(0x192))/0xa;if(_0x386c5f===_0xe76747)break;else _0x4b62ac['push'](_0x4b62ac['shift']());}catch(_0x254d56){_0x4b62ac['push'](_0x4b62ac['shift']());}}}(_0x1961,0x4906a));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};function _0x2e30(_0x3bed39,_0x5b4501){const _0x1961d0=_0x1961();return _0x2e30=function(_0x2e30f1,_0x15de76){_0x2e30f1=_0x2e30f1-0x17e;let _0x310a9f=_0x1961d0[_0x2e30f1];return _0x310a9f;},_0x2e30(_0x3bed39,_0x5b4501);}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x37e81e){const _0x30124f=_0x2e30;groups[_0x30124f(0x187)](_0x37e81e),groupMembers['delete'](_0x37e81e);}export const groupMembers=new Map();export const friends=new Map();export const groupNotifies={};export async function getGroup(_0x467c99){const _0x23a892=_0x2e30;let _0x36554b=groups['get'](_0x467c99[_0x23a892(0x188)]());if(!_0x36554b)try{const _0x31841e=await NTQQGroupApi[_0x23a892(0x17e)]();_0x31841e[_0x23a892(0x190)]&&_0x31841e[_0x23a892(0x18d)](_0x163452=>{const _0x35cc3b=_0x23a892;groups['set'](_0x163452[_0x35cc3b(0x182)],_0x163452);});}catch(_0x404582){return undefined;}return _0x36554b=groups['get'](_0x467c99[_0x23a892(0x188)]()),_0x36554b;}export async function getGroupMember(_0x431789,_0x1ee32c){const _0x6ce565=_0x2e30,_0x5b8518={'dhdHT':function(_0x212e55){return _0x212e55();}};_0x431789=_0x431789[_0x6ce565(0x188)](),_0x1ee32c=_0x1ee32c[_0x6ce565(0x188)]();let _0x3189b5=groupMembers[_0x6ce565(0x181)](_0x431789);if(!_0x3189b5)try{_0x3189b5=await NTQQGroupApi[_0x6ce565(0x18e)](_0x431789),groupMembers[_0x6ce565(0x18c)](_0x431789,_0x3189b5);}catch(_0xe7c056){return null;}const _0x58b980=()=>{const _0x623f3c=_0x6ce565;let _0x30c57c=undefined;return isNumeric(_0x1ee32c)?_0x30c57c=Array[_0x623f3c(0x186)](_0x3189b5[_0x623f3c(0x193)]())['find'](_0xefd20f=>_0xefd20f['uin']===_0x1ee32c):_0x30c57c=_0x3189b5[_0x623f3c(0x181)](_0x1ee32c),_0x30c57c;};let _0x646ab1=_0x5b8518[_0x6ce565(0x18a)](_0x58b980);return!_0x646ab1&&(_0x3189b5=await NTQQGroupApi[_0x6ce565(0x18e)](_0x431789),_0x646ab1=_0x58b980()),_0x646ab1;}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};function _0x1961(){const _0x131a36=['4KMlbfN','dhdHT','249HgUmyg','set','forEach','getGroupMembers','8IIghPA','length','492744JRBlUl','10601600sCtxlA','values','getGroups','133906asyCis','4975263mosbVX','get','groupCode','11668XcxsSc','576015bFXbfL','1509319ZecXRM','from','delete','toString'];_0x1961=function(){return _0x131a36;};return _0x1961();}
|
||||
@@ -1 +1 @@
|
||||
function _0xb790(_0x1d7a46,_0x78c48d){var _0x54178c=_0x5417();return _0xb790=function(_0xb7901c,_0x1a8c60){_0xb7901c=_0xb7901c-0x113;var _0x461f28=_0x54178c[_0xb7901c];return _0x461f28;},_0xb790(_0x1d7a46,_0x78c48d);}(function(_0x5ee3fc,_0x301352){var _0x1c92be=_0xb790,_0x54b9e3=_0x5ee3fc();while(!![]){try{var _0x5c06b3=-parseInt(_0x1c92be(0x122))/0x1*(-parseInt(_0x1c92be(0x11a))/0x2)+-parseInt(_0x1c92be(0x116))/0x3*(parseInt(_0x1c92be(0x126))/0x4)+-parseInt(_0x1c92be(0x119))/0x5+-parseInt(_0x1c92be(0x123))/0x6*(-parseInt(_0x1c92be(0x114))/0x7)+parseInt(_0x1c92be(0x11c))/0x8+-parseInt(_0x1c92be(0x113))/0x9*(-parseInt(_0x1c92be(0x124))/0xa)+parseInt(_0x1c92be(0x11f))/0xb*(-parseInt(_0x1c92be(0x117))/0xc);if(_0x5c06b3===_0x301352)break;else _0x54b9e3['push'](_0x54b9e3['shift']());}catch(_0x44b08d){_0x54b9e3['push'](_0x54b9e3['shift']());}}}(_0x5417,0x4d253));export var CacheFileType;(function(_0x47b42f){var _0x5b1841=_0xb790,_0x4c58ad={'MjjMg':_0x5b1841(0x127),'TApWt':_0x5b1841(0x11d),'kFhYU':_0x5b1841(0x121),'psbuV':_0x5b1841(0x118),'evwWp':_0x5b1841(0x11b)};_0x47b42f[_0x47b42f[_0x5b1841(0x127)]=0x0]=_0x4c58ad['MjjMg'],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x120)]]=0x1]=_0x4c58ad[_0x5b1841(0x120)],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x125)]]=0x2]=_0x4c58ad[_0x5b1841(0x125)],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x11e)]]=0x3]=_0x4c58ad[_0x5b1841(0x11e)],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x115)]]=0x4]=_0x4c58ad[_0x5b1841(0x115)];}(CacheFileType||(CacheFileType={})));function _0x5417(){var _0x576b99=['3131220NqBWIp','DOCUMENT','2411965XLWaRE','122MQINLg','OTHER','3107216XGToQO','VIDEO','psbuV','11wqXaJy','TApWt','AUDIO','6467exvmlg','162jfVGGF','382890MgLHqe','kFhYU','12RfRxxt','IMAGE','27fItuIN','43785AJGBQC','evwWp','7326ofsmmp'];_0x5417=function(){return _0x576b99;};return _0x5417();}
|
||||
(function(_0x3f1f62,_0x2ee11c){var _0x4f4168=_0x1a36,_0x13f90b=_0x3f1f62();while(!![]){try{var _0x2671fe=-parseInt(_0x4f4168(0x18f))/0x1+-parseInt(_0x4f4168(0x19b))/0x2+parseInt(_0x4f4168(0x191))/0x3*(-parseInt(_0x4f4168(0x195))/0x4)+parseInt(_0x4f4168(0x190))/0x5*(-parseInt(_0x4f4168(0x19d))/0x6)+-parseInt(_0x4f4168(0x18d))/0x7*(parseInt(_0x4f4168(0x197))/0x8)+parseInt(_0x4f4168(0x196))/0x9+parseInt(_0x4f4168(0x18e))/0xa;if(_0x2671fe===_0x2ee11c)break;else _0x13f90b['push'](_0x13f90b['shift']());}catch(_0x3dff2d){_0x13f90b['push'](_0x13f90b['shift']());}}}(_0x1645,0x957be));function _0x1645(){var _0x474b8a=['5769VVKndC','4|2|3|1|0','BgcgY','IMAGE','1652VUUNFo','9129204TwgQGp','264200vEySjN','split','vUSKZ','GltZX','441688MlxfaN','VIDEO','66dXPnvb','AUDIO','OTHER','119YQvYnT','21765840vhRuVh','696529ktOaZd','138935zZMdZa'];_0x1645=function(){return _0x474b8a;};return _0x1645();};export var CacheFileType;function _0x1a36(_0x50e87d,_0x5dac65){var _0x164580=_0x1645();return _0x1a36=function(_0x1a3616,_0x3ccc21){_0x1a3616=_0x1a3616-0x18c;var _0x54aac9=_0x164580[_0x1a3616];return _0x54aac9;},_0x1a36(_0x50e87d,_0x5dac65);}(function(_0x1145cd){var _0x820379=_0x1a36,_0x25420a={'ANFeE':_0x820379(0x192),'BgcgY':'DOCUMENT','vUSKZ':_0x820379(0x19e),'GltZX':_0x820379(0x194)},_0x3fc4af=_0x25420a['ANFeE'][_0x820379(0x198)]('|'),_0x257f09=0x0;while(!![]){switch(_0x3fc4af[_0x257f09++]){case'0':_0x1145cd[_0x1145cd[_0x820379(0x18c)]=0x4]=_0x820379(0x18c);continue;case'1':_0x1145cd[_0x1145cd['DOCUMENT']=0x3]=_0x25420a[_0x820379(0x193)];continue;case'2':_0x1145cd[_0x1145cd[_0x820379(0x19c)]=0x1]=_0x820379(0x19c);continue;case'3':_0x1145cd[_0x1145cd[_0x25420a[_0x820379(0x199)]]=0x2]=_0x25420a['vUSKZ'];continue;case'4':_0x1145cd[_0x1145cd[_0x25420a[_0x820379(0x19a)]]=0x0]=_0x820379(0x194);continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
+2
-1
@@ -5,7 +5,7 @@ export declare class SendMsgElementConstructor {
|
||||
static at(atUid: string, atNtUid: string, atType: AtType, atName: string): SendTextElement;
|
||||
static reply(msgSeq: string, msgId: string, senderUin: string, senderUinStr: string): SendReplyElement;
|
||||
static pic(picPath: string, summary?: string, subType?: 0 | 1): Promise<SendPicElement>;
|
||||
static file(filePath: string, fileName?: string): Promise<SendFileElement>;
|
||||
static file(filePath: string, fileName?: string, folderId?: string): Promise<SendFileElement>;
|
||||
static video(filePath: string, fileName?: string, diyThumbPath?: string): Promise<SendVideoElement>;
|
||||
static ptt(pttPath: string): Promise<SendPttElement>;
|
||||
static face(faceId: number): SendFaceElement;
|
||||
@@ -14,4 +14,5 @@ export declare class SendMsgElementConstructor {
|
||||
static rps(resultId: number | null): SendFaceElement;
|
||||
static ark(data: any): SendArkElement;
|
||||
static markdown(content: string): SendMarkdownElement;
|
||||
static miniapp(): Promise<SendArkElement>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0xb11d16=_0x640e;(function(_0x113280,_0x58a337){const _0x5631de=_0x640e,_0x288134=_0x113280();while(!![]){try{const _0x27fbce=parseInt(_0x5631de(0x1f7))/0x1*(parseInt(_0x5631de(0x1f0))/0x2)+parseInt(_0x5631de(0x1fe))/0x3*(parseInt(_0x5631de(0x1f1))/0x4)+parseInt(_0x5631de(0x1c7))/0x5*(-parseInt(_0x5631de(0x1ba))/0x6)+parseInt(_0x5631de(0x1e4))/0x7+-parseInt(_0x5631de(0x1e6))/0x8*(parseInt(_0x5631de(0x1dc))/0x9)+parseInt(_0x5631de(0x1b5))/0xa+parseInt(_0x5631de(0x1e5))/0xb;if(_0x27fbce===_0x58a337)break;else _0x288134['push'](_0x288134['shift']());}catch(_0x591691){_0x288134['push'](_0x288134['shift']());}}}(_0x5245,0x8fd40));function _0x5245(){const _0x5ad301=['PNAdv','MARKDOWN','stat','9Fzivnx','zQgpr','_0.png','AUadT','MFACE','video','eBnjZ','PuVYd','replace','cOIxk','LElhO','height','XPcGD','screenshots','pimel','1033700xUpcSA','BLtzc','unlink','ptt','size','18piXWlw','fdRqv','FACE','PMMYH','rQDRV','Thumb','jpg','stringify','文件异常,大小为0','PTT','TEXT','fQWzu','przxm','1209515NKULRI','VIDEO','toString','writeFile','REPLY','pic','width','reply','getImageSize','file','text','whjLW','Zekam','Ori','RPS','copyFile','dirname','XqYGo','gif','get','DAead','9AJtfDG','end','string','then','[商城表情]','face','BGAmf','rps','3934161RkKWbt','3602379gavydY','2528152zdwIrK','WSEqU','ARK','join','ark','FILE','mp4','uploadFile','PIC','UtwoX','10iMNFKc','177028LaeGYx','[包剪锤]','catch','markdown','UocmR','dice','101039JGxnUu','mface','sep','jTbJr'];_0x5245=function(){return _0x5ad301;};return _0x5245();}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x640e(_0x2486eb,_0x3d5190){const _0x524539=_0x5245();return _0x640e=function(_0x640e72,_0x30ac26){_0x640e72=_0x640e72-0x1ac;let _0xad0fa7=_0x524539[_0x640e72];return _0xad0fa7;},_0x640e(_0x2486eb,_0x3d5190);}import{promises as _0x4c6e13}from'node:fs';import _0x3f3ed5 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0xb11d16(0x1d1)](_0x54a4bf){const _0x542431=_0xb11d16;return{'elementType':ElementType[_0x542431(0x1c4)],'elementId':'','textElement':{'content':_0x54a4bf,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x4ffcfc,_0x31f487,_0x2dfc9a,_0x2c5dd4){const _0x3b6c13=_0xb11d16;return{'elementType':ElementType[_0x3b6c13(0x1c4)],'elementId':'','textElement':{'content':'@'+_0x2c5dd4,'atType':_0x2dfc9a,'atUid':_0x4ffcfc,'atTinyId':'','atNtUid':_0x31f487}};}static[_0xb11d16(0x1ce)](_0x3fc200,_0x3b7c00,_0x5acb33,_0x4faae5){const _0x474737=_0xb11d16;return{'elementType':ElementType[_0x474737(0x1cb)],'elementId':'','replyElement':{'replayMsgSeq':_0x3fc200,'replayMsgId':_0x3b7c00,'senderUin':_0x5acb33,'senderUinStr':_0x4faae5}};}static async[_0xb11d16(0x1cc)](_0x1e0f1c,_0x53e994='',_0x4bbd5d=0x0){const _0x3f4036=_0xb11d16,_0x1eed64={'rfEJf':function(_0xc79344,_0x2f8fd7){return _0xc79344===_0x2f8fd7;},'AUadT':_0x3f4036(0x1c2),'WSEqU':function(_0x5740e6,_0x21bc77,_0x305c09){return _0x5740e6(_0x21bc77,_0x305c09);},'XPcGD':'图片信息'},{md5:_0x472516,fileName:_0x2442a0,path:_0x98a04e,fileSize:_0x5c6980}=await NTQQFileApi[_0x3f4036(0x1ed)](_0x1e0f1c,ElementType[_0x3f4036(0x1ee)],_0x4bbd5d);if(_0x1eed64['rfEJf'](_0x5c6980,0x0))throw _0x1eed64[_0x3f4036(0x201)];const _0x6219af=await NTQQFileApi[_0x3f4036(0x1cf)](_0x1e0f1c),_0x51614a={'md5HexStr':_0x472516,'fileSize':_0x5c6980[_0x3f4036(0x1c9)](),'picWidth':_0x6219af?.['width'],'picHeight':_0x6219af?.[_0x3f4036(0x1b1)],'fileName':_0x2442a0,'sourcePath':_0x98a04e,'original':!![],'picType':isGIF(_0x1e0f1c)?PicType[_0x3f4036(0x1d9)]:PicType[_0x3f4036(0x1c0)],'picSubType':_0x4bbd5d,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x53e994};return _0x1eed64[_0x3f4036(0x1e7)](logDebug,_0x1eed64[_0x3f4036(0x1b2)],_0x51614a),{'elementType':ElementType[_0x3f4036(0x1ee)],'elementId':'','picElement':_0x51614a};}static async[_0xb11d16(0x1d0)](_0x455b46,_0x5e7c97=''){const _0x53b889=_0xb11d16,_0x558ca9={'PMMYH':_0x53b889(0x1c2),'LElhO':function(_0x4d0278,_0x2646de){return _0x4d0278||_0x2646de;}},{md5:_0x5aa6de,fileName:_0x210c66,path:_0x74e18e,fileSize:_0x47483d}=await NTQQFileApi[_0x53b889(0x1ed)](_0x455b46,ElementType['FILE']);if(_0x47483d===0x0)throw _0x558ca9[_0x53b889(0x1bd)];const _0x5c4203={'elementType':ElementType[_0x53b889(0x1eb)],'elementId':'','fileElement':{'fileName':_0x558ca9[_0x53b889(0x1b0)](_0x5e7c97,_0x210c66),'filePath':_0x74e18e,'fileSize':_0x47483d[_0x53b889(0x1c9)]()}};return _0x5c4203;}static async[_0xb11d16(0x203)](_0x2f046d,_0x1bcbac='',_0x4ab8d9=''){const _0xf8a337=_0xb11d16,_0x9e9dd7={'UtwoX':function(_0x2bf161,_0x3b74c1,_0x181971){return _0x2bf161(_0x3b74c1,_0x181971);},'Zekam':'获取视频封面失败,使用默认Line truncated
|
||||
const _0xd174d8=_0x4e40;(function(_0x277964,_0x4c41f0){const _0x19a8a3=_0x4e40,_0x3e276e=_0x277964();while(!![]){try{const _0x5dcef0=parseInt(_0x19a8a3(0xe1))/0x1+-parseInt(_0x19a8a3(0xbf))/0x2*(parseInt(_0x19a8a3(0xdd))/0x3)+-parseInt(_0x19a8a3(0xa6))/0x4*(-parseInt(_0x19a8a3(0xcc))/0x5)+-parseInt(_0x19a8a3(0xbd))/0x6+parseInt(_0x19a8a3(0xbe))/0x7*(parseInt(_0x19a8a3(0xbc))/0x8)+-parseInt(_0x19a8a3(0xa9))/0x9+-parseInt(_0x19a8a3(0xb7))/0xa*(parseInt(_0x19a8a3(0xe7))/0xb);if(_0x5dcef0===_0x4c41f0)break;else _0x3e276e['push'](_0x3e276e['shift']());}catch(_0x397427){_0x3e276e['push'](_0x3e276e['shift']());}}}(_0xdea5,0x1ae17));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x2b7b8e}from'node:fs';import _0x347e from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';import _0x30f932 from'./face_config.json';import*as _0x369c11 from'node:path';import{SignMiniApp}from'../apis';export const mFaceCache=new Map();function _0x4e40(_0x7d696e,_0x29be40){const _0xdea56d=_0xdea5();return _0x4e40=function(_0x4e40c8,_0x2e01f1){_0x4e40c8=_0x4e40c8-0x93;let _0x3fe188=_0xdea56d[_0x4e40c8];return _0x3fe188;},_0x4e40(_0x7d696e,_0x29be40);}function _0xdea5(){const _0x495cd5=['BsLhv','lkoMT','dMmfP','stat','https://www.bilibili.com/','文件异常,大小为0','_0.png','unlink','time','pic','mp4','scdRq','获取视频信息失败','end','[骰子]','sep','toString','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','copyFile','catch','rps','ptt','icOhU','TpGmq','236jziHmH','AniStickerType','string','1800639sKxqDc','HAYda','uhMGi','[包剪锤]','Ori','wadqh','McnIl','Bot\x20Test','gWnYY','join','euLyh','find','QkIea','QDes','100990XWqdvh','fUZBv','UijEp','jNAPk','PzgnR','8ERhKTF','747972DBkWGg','1351014bksFXs','4ckCLtH','uploadFile','RPS','QxPPc','file','lSzDJ','MFACE','text','FILE','replace','size','FLIRH','BdHRe','9610kUGcLI','iOGUy','getImageSize','set','notAt','sxcxq','emoji','QSid','Thumb','width','REPLY','hwRFC','mface','tgrpX','VJpCq','dice','TBBvE','52407gJYOTt','FACE','then','stringify','173473DJWcHP','KUTeF','AniStickerId','height','[商城表情]','CqIHU','11GDpPFe','reply','PIC','gif','error','screenshots'];_0xdea5=function(){return _0x495cd5;};return _0xdea5();}export class SendMsgElementConstructor{static[_0xd174d8(0xc6)](_0x293de2){const _0x1ae10a=_0xd174d8;return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x293de2,'atType':AtType[_0x1ae10a(0xd0)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x15dfe6,_0x474f02,_0x3ecfbe,_0x8382b7){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x8382b7,'atType':_0x3ecfbe,'atUid':_0x15dfe6,'atTinyId':'','atNtUid':_0x474f02}};}static[_0xd174d8(0xe8)](_0x1c7df9,_0x4b67b4,_0x4fb57a,_0x4a32eb){const _0x4c7d0a=_0xd174d8;return{'elementType':ElementType[_0x4c7d0a(0xd6)],'elementId':'','replyElement':{'replayMsgSeq':_0x1c7df9,'replayMsgId':_0x4b67b4,'senderUin':_0x4fb57a,'senderUinStr':_0x4a32eb}};}static async[_0xd174d8(0x97)](_0xfda9,_0x509d03='',_0x41f01d=0x0){const _0x247b80=_0xd174d8,_0x424798={'QxPPc':function(_0x3609d2,_0x1869b9){return _0x3609d2===_0x1869b9;},'sxcxq':_0x247b80(0x93),'PzgnR':function(_0x2a8f97,_0x74cf09){return _0x2a8f97(_0x74cf09);}},{md5:_0x206807,fileName:_0x482ebb,path:_0x1b3cf5,fileSize:_0x127005}=await NTQQFileApi[_0x247b80(0xc0)](_0xfda9,ElementType['PIC'],_0x41f01d);if(_0x424798[_0x247b80(0xc2)](_0x127005,0x0))throw _0x424798[_0x247b80(0xd1)];const _0x454102=await NTQQFileApi[_0x247b80(0xce)](_0xfda9),_0x215938={'md5HexStr':_0x206807,'fileSize':_0x127005[_0x247b80(0x9e)](),'picWidth':_0x454102?.[_0x247b80(0xd5)],'picHeight':_0x454102?.[_0x247b80(0xe4)],'fileName':_0x482ebb,'sourcePath':_0x1b3cf5,'original':!![],'picType':_0x424798[_0x247b80(0xbb)](isGIF,_0xfda9)?PicType[_0x247b80(0xea)]:PicType['jpg'],'picSubType':_0x41f01d,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x509d03};return{'elementType':ElementType[_0x247b80(0xe9)],'elementId':'','picElement':_0x215938};}static async[_0xd174d8(0xc3)](_0x85881d,_0xcc591f='',_0x8959be=''){const _0x315735=_0xd174d8,_0x202ca4={'rtWud':_0x315735(0x93)},{md5:_0x321eed,fileName:_0x112db5,path:_0x23ad12,fileSize:_0x3ce084}=await NTQQFileApi[_0x315735(0xc0)](_0x85881d,ElementType[_0x315735(0xc7)]);if(_0x3ce084===0x0)throw _0x202ca4['rtWud'];const _0x5b1506={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0xcc591f||_0x112db5,'folderId':_0x8959be,'filePath':_0x23ad12,'fileSize':_0x3ce084['toString']()}};return _0x5b1506;}static async['video'](_0x37f1ec,_0x50ceb6='',_0xc0cab2=''){const _0x4d7e3b=_0xd174d8,_0xd1330b={'KUTeF':function(_0x2fef6e,_0x1fc126){return _0x2fef6e(_0x1fc126);},'QkIea':'获取视频封面Line truncated
|
||||
File diff suppressed because it is too large.
Load diff
Vendored
+3
-3
@@ -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 {
|
||||
|
||||
@@ -1 +1 @@
|
||||
(function(_0x47f2cd,_0x49b496){var _0x34b1c1=_0x30b0,_0x4b5f84=_0x47f2cd();while(!![]){try{var _0x1b076f=-parseInt(_0x34b1c1(0xa9))/0x1+-parseInt(_0x34b1c1(0xa6))/0x2*(parseInt(_0x34b1c1(0xa2))/0x3)+parseInt(_0x34b1c1(0xa3))/0x4+-parseInt(_0x34b1c1(0xa5))/0x5+parseInt(_0x34b1c1(0xa7))/0x6+parseInt(_0x34b1c1(0xa1))/0x7+-parseInt(_0x34b1c1(0xaa))/0x8;if(_0x1b076f===_0x49b496)break;else _0x4b5f84['push'](_0x4b5f84['shift']());}catch(_0x2cb483){_0x4b5f84['push'](_0x4b5f84['shift']());}}}(_0x3ab3,0xcff5d));function _0x30b0(_0x5e6c92,_0x403687){var _0x3ab307=_0x3ab3();return _0x30b0=function(_0x30b0b1,_0x343eda){_0x30b0b1=_0x30b0b1-0xa1;var _0x1810fe=_0x3ab307[_0x30b0b1];return _0x1810fe;},_0x30b0(_0x5e6c92,_0x403687);}export var GroupMemberRole;(function(_0x1dc42d){var _0xd67d1=_0x30b0,_0x3ae4e8={'hAAOs':'normal','uCYgN':'admin','NlkzU':'owner'};_0x1dc42d[_0x1dc42d[_0x3ae4e8[_0xd67d1(0xa8)]]=0x2]=_0x3ae4e8[_0xd67d1(0xa8)],_0x1dc42d[_0x1dc42d[_0x3ae4e8['uCYgN']]=0x3]=_0x3ae4e8[_0xd67d1(0xa4)],_0x1dc42d[_0x1dc42d[_0x3ae4e8['NlkzU']]=0x4]=_0x3ae4e8['NlkzU'];}(GroupMemberRole||(GroupMemberRole={})));function _0x3ab3(){var _0x45f512=['9737124BUkBaH','hAAOs','554138DjivcZ','3278968jcwWDm','10218229ngbsOW','150030ofEZFa','2616656bKvQUH','uCYgN','5603955ljoTeA','32wSgMeU'];_0x3ab3=function(){return _0x45f512;};return _0x3ab3();}
|
||||
function _0x4fa9(_0x1b8aa4,_0xe764b9){var _0x574dc5=_0x574d();return _0x4fa9=function(_0x4fa96d,_0xa41fd1){_0x4fa96d=_0x4fa96d-0x18d;var _0x1e1e67=_0x574dc5[_0x4fa96d];return _0x1e1e67;},_0x4fa9(_0x1b8aa4,_0xe764b9);}(function(_0x27cc84,_0x27d8d5){var _0x42e11a=_0x4fa9,_0x310382=_0x27cc84();while(!![]){try{var _0x1ebcec=-parseInt(_0x42e11a(0x192))/0x1*(-parseInt(_0x42e11a(0x198))/0x2)+-parseInt(_0x42e11a(0x191))/0x3+parseInt(_0x42e11a(0x19a))/0x4*(parseInt(_0x42e11a(0x18e))/0x5)+parseInt(_0x42e11a(0x18f))/0x6+-parseInt(_0x42e11a(0x197))/0x7+parseInt(_0x42e11a(0x18d))/0x8+parseInt(_0x42e11a(0x193))/0x9;if(_0x1ebcec===_0x27d8d5)break;else _0x310382['push'](_0x310382['shift']());}catch(_0x222867){_0x310382['push'](_0x310382['shift']());}}}(_0x574d,0x74020));export var GroupMemberRole;(function(_0x437fbe){var _0x3fd34e=_0x4fa9,_0x419352={'qinqD':_0x3fd34e(0x199),'TRIDz':_0x3fd34e(0x190),'fjWzM':_0x3fd34e(0x19b)};_0x437fbe[_0x437fbe[_0x419352[_0x3fd34e(0x194)]]=0x2]=_0x419352[_0x3fd34e(0x194)],_0x437fbe[_0x437fbe[_0x419352[_0x3fd34e(0x195)]]=0x3]=_0x419352[_0x3fd34e(0x195)],_0x437fbe[_0x437fbe['owner']=0x4]=_0x419352[_0x3fd34e(0x196)];}(GroupMemberRole||(GroupMemberRole={})));function _0x574d(){var _0x5ab7f4=['1277586OHOfft','admin','2027889ZIVNBv','19993BIGMwG','2169621YDVhPi','qinqD','TRIDz','fjWzM','3525746GeiZUe','44VqhrQR','normal','1802172GkXOoH','owner','2483360aEVIHp','5ttzTHk'];_0x574d=function(){return _0x5ab7f4;};return _0x574d();}
|
||||
Loaded 100 of 292 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user