Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 |
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
@@ -4,8 +4,8 @@ package-lock.json
|
||||
pnpm-lock.yaml
|
||||
out/
|
||||
dist/
|
||||
src/core.lib/common/
|
||||
test
|
||||
/src/core.lib/common/
|
||||
/localdebug/
|
||||
|
||||
# Editor
|
||||
.vscode/*
|
||||
@@ -14,4 +14,4 @@ test
|
||||
|
||||
# Build
|
||||
*.db
|
||||
checkVersion.sh
|
||||
checkVersion.sh
|
||||
@@ -1,4 +1,4 @@
|
||||
# v1.3.5
|
||||
# v1.3.3
|
||||
|
||||
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
|
||||
@@ -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)
|
||||
|
||||
+66
-65
@@ -1,65 +1,66 @@
|
||||
{
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.3.2",
|
||||
"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",
|
||||
"@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.4.5",
|
||||
"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",
|
||||
"@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",
|
||||
"@protobuf-ts/plugin": "^2.9.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^8.13.0",
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
"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": "^9.0.1",
|
||||
"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) {
|
||||
@@ -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,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,165 @@
|
||||
import { NodeIKernelMsgListener } from "@/core";
|
||||
import { NodeIQQNTWrapperSession } from "@/core/wrapper";
|
||||
|
||||
import { randomUUID } from "crypto";
|
||||
|
||||
interface Internal_MapKey {
|
||||
timeout: number,
|
||||
createtime: number,
|
||||
func: Function
|
||||
}
|
||||
|
||||
export class ListenerClassBase {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export class NTEventWrapper {
|
||||
private ListenerMap: Map<string, typeof ListenerClassBase> | undefined;//ListenerName-Unique -> Listener构造函数
|
||||
private WrapperSession: NodeIQQNTWrapperSession | undefined;//WrapperSession
|
||||
private ListenerManger: Map<string, ListenerClassBase> = new Map<string, ListenerClassBase>(); //ListenerName-Unique -> Listener实例
|
||||
private EventTask: Map<string, Map<string, Internal_MapKey>> = new Map<string, Map<string, Internal_MapKey>>();//tasks ListenerName -> uuid -> {timeout,createtime,func}
|
||||
private ListenerInit: Map<string, boolean> = new Map<string, boolean>();
|
||||
constructor() {
|
||||
|
||||
}
|
||||
init({ ListenerMap, WrapperSession }: { ListenerMap: Map<string, typeof ListenerClassBase>, WrapperSession: NodeIQQNTWrapperSession }) {
|
||||
this.ListenerMap = ListenerMap;
|
||||
this.WrapperSession = WrapperSession;
|
||||
}
|
||||
CreatEventFunction<T extends (...args: any) => any>(eventName: string): T | undefined {
|
||||
let eventNameArr = eventName.split('/');
|
||||
type eventType = {
|
||||
[key: string]: () => { [key: string]: (...params: Parameters<T>) => Promise<ReturnType<T>> }
|
||||
}
|
||||
if (eventNameArr.length > 1) {
|
||||
let serviceName = 'get' + eventNameArr[0].replace('NodeIKernel', '');
|
||||
let eventName = eventNameArr[1];
|
||||
let 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;
|
||||
}
|
||||
|
||||
}
|
||||
// 获取某个Listener 存在返回 不存在创建
|
||||
CreatListenerFunction<T>(listenerName: string, uniqueCode: string = ""): T {
|
||||
let ListenerType = this.ListenerMap!.get(listenerName);
|
||||
let Listener = this.ListenerManger.get(listenerName + uniqueCode);
|
||||
if (!Listener && ListenerType) {
|
||||
Listener = new ListenerType();
|
||||
let ServiceSubName = listenerName.match(/^NodeIKernel(.*?)Listener$/);
|
||||
let Service = "NodeIKernel" + ServiceSubName + "Service/addKernel" + ServiceSubName + "Listener";
|
||||
let addfunc = this.CreatEventFunction<(listener: T) => number>(Service);
|
||||
addfunc!(Listener as T);
|
||||
this.ListenerManger.set(listenerName + uniqueCode, Listener);
|
||||
}
|
||||
return Listener as T;
|
||||
}
|
||||
// 如果存在覆盖注册 不存在则创建Listener
|
||||
RigisterListener<T extends { [key: string]: (...args: any) => any }>(listenerName: string, uniqueCode: string = "NTEvent", cb: (...args: any) => any) {
|
||||
let ListenerNameList = listenerName.split('/');
|
||||
let ListenerMain = ListenerNameList[0];
|
||||
let ListenerMethod = ListenerNameList[1];
|
||||
let Listener = this.CreatListenerFunction<T>(ListenerMain, uniqueCode); //uniqueCode NTEvent
|
||||
(Listener[ListenerMethod] as any) = cb;
|
||||
}
|
||||
//初始化Listener回调
|
||||
initNTListener(ListenerName: string) {
|
||||
if (this.ListenerInit.get(ListenerName)) {
|
||||
return;
|
||||
}
|
||||
this.RigisterListener(ListenerName, "NTEvent", (...args) => {
|
||||
console.log('wait... DispatcherListener');
|
||||
this.DispatcherListener(ListenerName, ...args).then().catch();
|
||||
})
|
||||
this.ListenerInit.set(ListenerName, true);
|
||||
}
|
||||
//统一回调清理事件
|
||||
async DispatcherListener(ListenerName: string, ...args: any[]) {
|
||||
this.EventTask.get(ListenerName)?.forEach((task, uuid) => {
|
||||
if (task.createtime + task.timeout > Date.now()) {
|
||||
this.EventTask.get(ListenerName)?.delete(uuid);
|
||||
return;
|
||||
}
|
||||
task.func(...args);
|
||||
})
|
||||
}
|
||||
async CallNoListenerEvent<EventType extends (...args: any[]) => Promise<any>,>(EventName = '', timeout: number = 3000, ...args: Parameters<EventType>) {
|
||||
return new Promise<ReturnType<EventType>>(async (resolve, reject) => {
|
||||
let EventFunc = this.CreatEventFunction<EventType>(EventName);
|
||||
let complete = false;
|
||||
let Timeouter = setTimeout(() => {
|
||||
if (!complete) {
|
||||
reject(new Error('NTEvent EventName:' + EventName + ' timeout'));
|
||||
}
|
||||
}, timeout);
|
||||
let 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<ArrayLike<Parameters<ListenerType>>>(async (resolve, reject) => {
|
||||
const id = randomUUID();
|
||||
let complete = 0;
|
||||
let retData: ArrayLike<Parameters<ListenerType>> | undefined = undefined;
|
||||
let databack = () => {
|
||||
if (complete < waitTimes) {
|
||||
reject(new Error('NTEvent EventName:' + EventName + ' ListenerName:' + ListenerName + ' timeout'));
|
||||
} else {
|
||||
resolve(retData as ArrayLike<Parameters<ListenerType>>);
|
||||
}
|
||||
}
|
||||
this.initNTListener(ListenerName);
|
||||
let Timeouter = setTimeout(databack, timeout);
|
||||
let ListenerNameList = ListenerName.split('/');
|
||||
let ListenerMain = ListenerNameList[0];
|
||||
let ListenerMethod = ListenerNameList[1];
|
||||
|
||||
this.EventTask.get(ListenerMain)?.set(id, {
|
||||
timeout: timeout,
|
||||
createtime: Date.now(),
|
||||
func: (...args: any[]) => {
|
||||
complete++;
|
||||
retData = args as ArrayLike<Parameters<ListenerType>>;
|
||||
if (complete == waitTimes) {
|
||||
clearTimeout(Timeouter);
|
||||
databack();
|
||||
}
|
||||
}
|
||||
});
|
||||
let EventFunc = this.CreatEventFunction<EventType>(EventName);
|
||||
await EventFunc!(...args);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
// 示例代码 快速创建事件
|
||||
//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;
|
||||
@@ -55,7 +55,7 @@ if (fs.existsSync(configVersionInfoPath)) {
|
||||
|
||||
export const qqVersionConfigInfo: QQVersionConfigInfo = _qqVersionConfigInfo;
|
||||
|
||||
export const qqPkgInfo: QQPkgInfo = require(pkgInfoPath);
|
||||
export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toString());
|
||||
// platform_type: 3,
|
||||
// app_type: 4,
|
||||
// app_version: '9.9.9-23159',
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
import * as os from 'os';
|
||||
import path from 'node:path';
|
||||
import fs from 'fs';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
export function getModuleWithArchName(moduleName: string) {
|
||||
const systemPlatform = os.platform();
|
||||
const cpuArch = os.arch();
|
||||
@@ -14,6 +19,6 @@ export function cpModule(moduleName: string) {
|
||||
try {
|
||||
fs.copyFileSync(path.join(currentDir, fileName), path.join(currentDir, `${moduleName}.node`));
|
||||
} catch (e) {
|
||||
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,509 @@
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
||||
// 接收到的临时会话消息uid
|
||||
const createTempUinTableSQL = `
|
||||
CREATE TABLE IF NOT EXISTS temp_uins (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
uid TEXT,
|
||||
uin TEXT
|
||||
)`;
|
||||
this.db!.run(createTempUinTableSQL, function (err) {
|
||||
if (err) {
|
||||
logError('Could not create table temp_uins', 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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 被动收到的临时会话消息uin->uid
|
||||
async getReceivedTempUinMap() {
|
||||
const stmt = 'SELECT * FROM temp_uins';
|
||||
return new Promise<Record<string, string>>((resolve, reject) => {
|
||||
this.db!.all(stmt, (err, rows: { uin: string, uid: string }[]) => {
|
||||
if (err) {
|
||||
logError('db could not get temp uin map', err);
|
||||
reject(err);
|
||||
}
|
||||
const map: Record<string, string> = {};
|
||||
rows.forEach(row => {
|
||||
map[row.uin] = row.uid;
|
||||
});
|
||||
resolve(map);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 通过uin获取临时会话消息uid
|
||||
async getUidByTempUin(uid: string) {
|
||||
const stmt = 'SELECT * FROM temp_uins WHERE uin = ?';
|
||||
return new Promise<string>((resolve, reject) => {
|
||||
this.db!.get(stmt, [uid], (err, row: { uin: string, uid: string }) => {
|
||||
if (err) {
|
||||
logError('db could not get temp uin map', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(row?.uid);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async addTempUin(uin: string, uid: string) {
|
||||
const existUid = await this.getUidByTempUin(uin);
|
||||
if (!existUid) {
|
||||
const stmt = this.db!.prepare('INSERT INTO temp_uins (uin, uid) VALUES (?, ?)');
|
||||
return new Promise((resolve, reject) => {
|
||||
stmt.run(uin, uid, function (err: any) {
|
||||
if (err) {
|
||||
logError('db could not add temp uin', 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(),
|
||||
console.log("插入入群时间失败", userId, groupId);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export const dbUtil = new DBUtil();
|
||||
@@ -4,7 +4,7 @@ import crypto from 'crypto';
|
||||
import util from 'util';
|
||||
import path from 'node:path';
|
||||
import { log } from './log';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import * as fileType from 'file-type';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { napCatCore } from '@/core';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -2,6 +2,12 @@ import log4js, { Configuration } from 'log4js';
|
||||
import { truncateString } from '@/common/utils/helper';
|
||||
import path from 'node:path';
|
||||
import { SelfInfo } from '@/core';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
export enum LogLevel {
|
||||
DEBUG = 'debug',
|
||||
|
||||
+37
-23
@@ -1,30 +1,44 @@
|
||||
import { exit } from "process";
|
||||
import { resolve } from "path";
|
||||
import { spawn } from "node:child_process";
|
||||
import { sleep } from "./helper";
|
||||
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) {
|
||||
let batScript = resolve(__dirname, './napcat.bat');
|
||||
let batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
let bashScript = resolve(__dirname, './napcat.sh');
|
||||
if (process.platform === 'win32') {
|
||||
let subProcess = spawn(`start ${batUtf8Script} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore'});
|
||||
subProcess.unref();
|
||||
} else if (process.platform === 'linux') {
|
||||
let subProcess = spawn(`${bashScript} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
subProcess.unref();
|
||||
}
|
||||
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() {
|
||||
let batScript = resolve(__dirname, './napcat.bat');
|
||||
let batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
let bashScript = resolve(__dirname, './napcat.sh');
|
||||
if (process.platform === 'win32') {
|
||||
spawn(`start ${batUtf8Script}`, { detached: true, windowsHide: false, env: process.env, shell: true });
|
||||
} else if (process.platform === 'linux') {
|
||||
spawn(`${bashScript}`, { detached: true, windowsHide: false, env: process.env, shell: true });
|
||||
}
|
||||
await sleep(500);
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -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.3.2',
|
||||
'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);
|
||||
}
|
||||
|
||||
+1
-1
Submodule src/core updated: ca47eb4754...300270c2f7.
@@ -1 +1 @@
|
||||
var _0x4a2dd5=_0x12f4;function _0x12f4(_0x4f7dce,_0x480131){var _0x547d83=_0x547d();return _0x12f4=function(_0x12f42f,_0x334fdd){_0x12f42f=_0x12f42f-0x1cb;var _0x3310f6=_0x547d83[_0x12f42f];return _0x3310f6;},_0x12f4(_0x4f7dce,_0x480131);}(function(_0x9627ef,_0x2bdc4c){var _0x3f5c0b=_0x12f4,_0x5bc9a4=_0x9627ef();while(!![]){try{var _0x556f14=parseInt(_0x3f5c0b(0x1d4))/0x1*(-parseInt(_0x3f5c0b(0x1d3))/0x2)+parseInt(_0x3f5c0b(0x1d2))/0x3*(parseInt(_0x3f5c0b(0x1d7))/0x4)+-parseInt(_0x3f5c0b(0x1cc))/0x5*(-parseInt(_0x3f5c0b(0x1d1))/0x6)+parseInt(_0x3f5c0b(0x1d0))/0x7+-parseInt(_0x3f5c0b(0x1d5))/0x8*(parseInt(_0x3f5c0b(0x1cd))/0x9)+-parseInt(_0x3f5c0b(0x1d9))/0xa*(-parseInt(_0x3f5c0b(0x1ce))/0xb)+-parseInt(_0x3f5c0b(0x1d8))/0xc;if(_0x556f14===_0x2bdc4c)break;else _0x5bc9a4['push'](_0x5bc9a4['shift']());}catch(_0x559019){_0x5bc9a4['push'](_0x5bc9a4['shift']());}}}(_0x547d,0x4b59c));export class DependsAdapter{[_0x4a2dd5(0x1d6)](_0x2e3fe8,_0x39c8a2){}[_0x4a2dd5(0x1cf)](_0x34d16e){}[_0x4a2dd5(0x1cb)](_0x104a00){}}function _0x547d(){var _0x4e70b8=['15198348kbkZdd','4618720hiFSGe','getGroupCode','10RIIEqo','963hJDrHe','11cuwaTr','onMSFSsoError','1973643mhShYL','1295832JrGnte','67674WuMgex','20992AJscdr','16mTDfYR','3120SgHmrF','onMSFStatusChange','108mHyias'];_0x547d=function(){return _0x4e70b8;};return _0x547d();}
|
||||
var _0x4f8b54=_0x4f34;function _0x4f34(_0xbaed04,_0x4b53ad){var _0x4cc022=_0x4cc0();return _0x4f34=function(_0x4f349c,_0x9083e2){_0x4f349c=_0x4f349c-0x131;var _0x33410f=_0x4cc022[_0x4f349c];return _0x33410f;},_0x4f34(_0xbaed04,_0x4b53ad);}function _0x4cc0(){var _0x1d4b13=['477EyYLON','54UTQVQP','6vywxEB','326856HoPiQr','1859ZKXyOj','onMSFSsoError','250QjfjnE','139784xWKKzW','onMSFStatusChange','60qLkvMG','442211Jauitq','194770TWLKuK','97079vRHCFb','getGroupCode'];_0x4cc0=function(){return _0x1d4b13;};return _0x4cc0();}(function(_0x38fc1a,_0x101f93){var _0xb96e1c=_0x4f34,_0x35d74e=_0x38fc1a();while(!![]){try{var _0x468126=parseInt(_0xb96e1c(0x134))/0x1+-parseInt(_0xb96e1c(0x13c))/0x2*(-parseInt(_0xb96e1c(0x136))/0x3)+parseInt(_0xb96e1c(0x139))/0x4+-parseInt(_0xb96e1c(0x133))/0x5+-parseInt(_0xb96e1c(0x138))/0x6*(-parseInt(_0xb96e1c(0x132))/0x7)+parseInt(_0xb96e1c(0x13d))/0x8*(-parseInt(_0xb96e1c(0x137))/0x9)+-parseInt(_0xb96e1c(0x131))/0xa*(-parseInt(_0xb96e1c(0x13a))/0xb);if(_0x468126===_0x101f93)break;else _0x35d74e['push'](_0x35d74e['shift']());}catch(_0x46afc8){_0x35d74e['push'](_0x35d74e['shift']());}}}(_0x4cc0,0x1d117));export class DependsAdapter{[_0x4f8b54(0x13e)](_0x375bc6,_0x4931a2){}[_0x4f8b54(0x13b)](_0xdb7883){}[_0x4f8b54(0x135)](_0x4f0da6){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x407b46=_0x1833;(function(_0x516f63,_0x1b3b0a){var _0x381bfc=_0x1833,_0x409fe0=_0x516f63();while(!![]){try{var _0x2be90d=-parseInt(_0x381bfc(0x100))/0x1+parseInt(_0x381bfc(0x10a))/0x2+parseInt(_0x381bfc(0x101))/0x3+-parseInt(_0x381bfc(0x109))/0x4*(parseInt(_0x381bfc(0x107))/0x5)+-parseInt(_0x381bfc(0x10b))/0x6*(-parseInt(_0x381bfc(0x106))/0x7)+-parseInt(_0x381bfc(0x102))/0x8*(-parseInt(_0x381bfc(0x104))/0x9)+parseInt(_0x381bfc(0x108))/0xa;if(_0x2be90d===_0x1b3b0a)break;else _0x409fe0['push'](_0x409fe0['shift']());}catch(_0x183fce){_0x409fe0['push'](_0x409fe0['shift']());}}}(_0x178b,0xc80ab));function _0x1833(_0x5c0970,_0xcbb3e5){var _0x178b71=_0x178b();return _0x1833=function(_0x1833c5,_0x16a140){_0x1833c5=_0x1833c5-0x100;var _0x5532ca=_0x178b71[_0x1833c5];return _0x5532ca;},_0x1833(_0x5c0970,_0xcbb3e5);}function _0x178b(){var _0x41b0ba=['2419212dHjiqm','10220fMGzmm','5351982NsIIKA','616177BJJVgt','3230223FFvyuy','16ugrmhE','dispatchRequest','420291ULsxBx','dispatchCall','7NlPUBY','10csQijM','5779080KhWrhV'];_0x178b=function(){return _0x41b0ba;};return _0x178b();}export class DispatcherAdapter{[_0x407b46(0x103)](_0x4c3547){}[_0x407b46(0x105)](_0x3b0236){}['dispatchCallWithJson'](_0x52049a){}}
|
||||
function _0x1311(){var _0x21c10c=['759EwMYVJ','7649917vyYsAY','18AJNhUO','19844rnwfOz','7LYYXWh','2850560Hdzetk','855832KOoAHx','6094430aJQOfM','1188106kodgkd','1243134TqstUS','dispatchCall','dispatchRequest','3YGNuNP'];_0x1311=function(){return _0x21c10c;};return _0x1311();}function _0x9613(_0x124e1f,_0x5ca3b2){var _0x13111e=_0x1311();return _0x9613=function(_0x961396,_0x45cbb4){_0x961396=_0x961396-0x19f;var _0x589d0b=_0x13111e[_0x961396];return _0x589d0b;},_0x9613(_0x124e1f,_0x5ca3b2);}var _0x1cf984=_0x9613;(function(_0x424440,_0x3ba584){var _0x5949c9=_0x9613,_0x43e09f=_0x424440();while(!![]){try{var _0x4162c0=-parseInt(_0x5949c9(0x1a1))/0x1*(parseInt(_0x5949c9(0x1aa))/0x2)+parseInt(_0x5949c9(0x1a2))/0x3*(parseInt(_0x5949c9(0x1a5))/0x4)+-parseInt(_0x5949c9(0x1a7))/0x5+parseInt(_0x5949c9(0x1ab))/0x6+parseInt(_0x5949c9(0x1a6))/0x7*(-parseInt(_0x5949c9(0x1a8))/0x8)+parseInt(_0x5949c9(0x1a4))/0x9*(parseInt(_0x5949c9(0x1a9))/0xa)+parseInt(_0x5949c9(0x1a3))/0xb;if(_0x4162c0===_0x3ba584)break;else _0x43e09f['push'](_0x43e09f['shift']());}catch(_0x5a2141){_0x43e09f['push'](_0x43e09f['shift']());}}}(_0x1311,0xdff9d));export class DispatcherAdapter{[_0x1cf984(0x1a0)](_0x4e9185){}[_0x1cf984(0x19f)](_0xed1775){}['dispatchCallWithJson'](_0x4ff1ee){}}
|
||||
@@ -1 +1 @@
|
||||
var _0xfcd9c0=_0x55ff;(function(_0x4fa3a3,_0x26d853){var _0x246b07=_0x55ff,_0x1637cf=_0x4fa3a3();while(!![]){try{var _0x2c5d32=-parseInt(_0x246b07(0xd1))/0x1*(parseInt(_0x246b07(0xc4))/0x2)+parseInt(_0x246b07(0xc6))/0x3*(parseInt(_0x246b07(0xd0))/0x4)+-parseInt(_0x246b07(0xce))/0x5*(-parseInt(_0x246b07(0xcb))/0x6)+-parseInt(_0x246b07(0xd2))/0x7*(-parseInt(_0x246b07(0xd3))/0x8)+-parseInt(_0x246b07(0xcf))/0x9+parseInt(_0x246b07(0xc9))/0xa+parseInt(_0x246b07(0xcd))/0xb*(-parseInt(_0x246b07(0xc5))/0xc);if(_0x2c5d32===_0x26d853)break;else _0x1637cf['push'](_0x1637cf['shift']());}catch(_0x23e1d2){_0x1637cf['push'](_0x1637cf['shift']());}}}(_0x2d86,0xab51c));function _0x2d86(){var _0xfb555e=['onInstallFinished','76350KYwdri','getAppSetting','3747271gJKCYE','365ScOdzT','3235986YqSKlS','4703528ovkWAy','11wVzoHr','5782bYsaKI','4432UYllEK','onGetOfflineMsg','onShowErrUITips','137686eYpvEa','48LqOcgW','3EsWAlU','onLog','onGetSrvCalTime','6187840yCjsae'];_0x2d86=function(){return _0xfb555e;};return _0x2d86();}function _0x55ff(_0x21415e,_0x43e0b1){var _0x2d8653=_0x2d86();return _0x55ff=function(_0x55ff6e,_0x376a11){_0x55ff6e=_0x55ff6e-0xc4;var _0x4f9ca5=_0x2d8653[_0x55ff6e];return _0x4f9ca5;},_0x55ff(_0x21415e,_0x43e0b1);}export class GlobalAdapter{[_0xfcd9c0(0xc7)](..._0x36c923){}[_0xfcd9c0(0xc8)](..._0xcf3bb8){}[_0xfcd9c0(0xd5)](..._0x36f13f){}['fixPicImgType'](..._0xfbf752){}[_0xfcd9c0(0xcc)](..._0x1b9ed1){}[_0xfcd9c0(0xca)](..._0x3b5364){}['onUpdateGeneralFlag'](..._0x3a52ef){}[_0xfcd9c0(0xd4)](..._0x3634cf){}}
|
||||
function _0x29b3(){var _0x50a1ac=['227dappVx','onLog','3ezeneX','82146BRNYZc','onGetOfflineMsg','13966LCzWGd','onGetSrvCalTime','4190520tddJqr','12542238Ejzuyc','42214070tGrJfU','fixPicImgType','497Rwzcci','1773784nMIZhG','4684616Ljokuo'];_0x29b3=function(){return _0x50a1ac;};return _0x29b3();}function _0x26ad(_0x210152,_0xd58e76){var _0x29b3c2=_0x29b3();return _0x26ad=function(_0x26ad07,_0xc58895){_0x26ad07=_0x26ad07-0x1b9;var _0x36b970=_0x29b3c2[_0x26ad07];return _0x36b970;},_0x26ad(_0x210152,_0xd58e76);}var _0x1738d3=_0x26ad;(function(_0x20c8f1,_0x517180){var _0x244916=_0x26ad,_0x32b58e=_0x20c8f1();while(!![]){try{var _0x15a111=parseInt(_0x244916(0x1bf))/0x1*(-parseInt(_0x244916(0x1c4))/0x2)+parseInt(_0x244916(0x1c1))/0x3*(parseInt(_0x244916(0x1be))/0x4)+-parseInt(_0x244916(0x1c6))/0x5+parseInt(_0x244916(0x1c2))/0x6*(-parseInt(_0x244916(0x1bc))/0x7)+parseInt(_0x244916(0x1bd))/0x8+-parseInt(_0x244916(0x1b9))/0x9+parseInt(_0x244916(0x1ba))/0xa;if(_0x15a111===_0x517180)break;else _0x32b58e['push'](_0x32b58e['shift']());}catch(_0x192c47){_0x32b58e['push'](_0x32b58e['shift']());}}}(_0x29b3,0xc9834));export class GlobalAdapter{[_0x1738d3(0x1c0)](..._0x3d1936){}[_0x1738d3(0x1c5)](..._0x4c8dae){}['onShowErrUITips'](..._0x5bf5a2){}[_0x1738d3(0x1bb)](..._0x2ef0dd){}['getAppSetting'](..._0x5b6467){}['onInstallFinished'](..._0x11433e){}['onUpdateGeneralFlag'](..._0x36e7ff){}[_0x1738d3(0x1c3)](..._0x302955){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x8bc2(){var _0x53c92a=['3186430WGLUJl','18VlHADW','771252uuZVeE','15389100uoHgNn','2902053QrIwPp','4089380CmuSYG','21424QKMQuj','8vJYlYG','2800602WzZXQp'];_0x8bc2=function(){return _0x53c92a;};return _0x8bc2();}(function(_0x131c04,_0x20ec2c){var _0x2d59c5=_0x2e3b,_0x37fcfd=_0x131c04();while(!![]){try{var _0xc05e61=parseInt(_0x2d59c5(0x179))/0x1*(parseInt(_0x2d59c5(0x174))/0x2)+parseInt(_0x2d59c5(0x175))/0x3+-parseInt(_0x2d59c5(0x178))/0x4+-parseInt(_0x2d59c5(0x17c))/0x5+parseInt(_0x2d59c5(0x17b))/0x6+-parseInt(_0x2d59c5(0x177))/0x7*(parseInt(_0x2d59c5(0x17a))/0x8)+parseInt(_0x2d59c5(0x176))/0x9;if(_0xc05e61===_0x20ec2c)break;else _0x37fcfd['push'](_0x37fcfd['shift']());}catch(_0x1ccbe8){_0x37fcfd['push'](_0x37fcfd['shift']());}}}(_0x8bc2,0x86da5));export*from'./NodeIDependsAdapter';function _0x2e3b(_0x20303a,_0x1c8b13){var _0x8bc2b0=_0x8bc2();return _0x2e3b=function(_0x2e3b91,_0x4a970d){_0x2e3b91=_0x2e3b91-0x174;var _0x44181a=_0x8bc2b0[_0x2e3b91];return _0x44181a;},_0x2e3b(_0x20303a,_0x1c8b13);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
||||
(function(_0x3bdc0a,_0x2b28d2){var _0x4f262f=_0x5807,_0x2cdc54=_0x3bdc0a();while(!![]){try{var _0x24155b=parseInt(_0x4f262f(0xf2))/0x1*(-parseInt(_0x4f262f(0xf3))/0x2)+-parseInt(_0x4f262f(0xf1))/0x3+-parseInt(_0x4f262f(0xf5))/0x4*(parseInt(_0x4f262f(0xf8))/0x5)+-parseInt(_0x4f262f(0xf4))/0x6+-parseInt(_0x4f262f(0xf7))/0x7*(-parseInt(_0x4f262f(0xf6))/0x8)+parseInt(_0x4f262f(0xf9))/0x9+-parseInt(_0x4f262f(0xef))/0xa*(-parseInt(_0x4f262f(0xf0))/0xb);if(_0x24155b===_0x2b28d2)break;else _0x2cdc54['push'](_0x2cdc54['shift']());}catch(_0x3e3eaf){_0x2cdc54['push'](_0x2cdc54['shift']());}}}(_0x40f5,0x1dc0b));function _0x5807(_0x1a67af,_0x167d9c){var _0x40f51e=_0x40f5();return _0x5807=function(_0x580701,_0xa71bda){_0x580701=_0x580701-0xef;var _0x8b501a=_0x40f51e[_0x580701];return _0x8b501a;},_0x5807(_0x1a67af,_0x167d9c);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x40f5(){var _0x516c0a=['20XtOAIT','2219195TpiCHh','432918TfuxVG','166613tJaCyR','2uEjykt','1290828cCTXnB','7348QUxezJ','1336PUrnLr','7147WruUXt','160AGXJYr','1194399FtRLXu'];_0x40f5=function(){return _0x516c0a;};return _0x40f5();}export*from'./NodeIGlobalAdapter';
|
||||
@@ -1 +1 @@
|
||||
const _0x49c3d3=_0x330f;(function(_0x479592,_0x3447cc){const _0x3c49a2=_0x330f,_0x3db9a4=_0x479592();while(!![]){try{const _0x515868=parseInt(_0x3c49a2(0x1d2))/0x1+-parseInt(_0x3c49a2(0x1b4))/0x2*(parseInt(_0x3c49a2(0x1ad))/0x3)+-parseInt(_0x3c49a2(0x1bc))/0x4+-parseInt(_0x3c49a2(0x1c2))/0x5*(parseInt(_0x3c49a2(0x1b9))/0x6)+parseInt(_0x3c49a2(0x19a))/0x7*(parseInt(_0x3c49a2(0x1ae))/0x8)+-parseInt(_0x3c49a2(0x193))/0x9*(parseInt(_0x3c49a2(0x1ca))/0xa)+parseInt(_0x3c49a2(0x1b5))/0xb;if(_0x515868===_0x3447cc)break;else _0x3db9a4['push'](_0x3db9a4['shift']());}catch(_0x742bad){_0x3db9a4['push'](_0x3db9a4['shift']());}}}(_0x55f1,0x6568e));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0x55f1(){const _0x262769=['util','XbgRf','xtaNN','iroZe','getCacheSessionPathList','fShIj','getRichMediaFilePathForGuild','addListener','copyFile','basename','group_rkey','getFileType','sWTOZ','getFileCacheInfo','existsSync','/gchatpic_new/0/0-0-','includes','EBWeh','3LAUwED','336520KutzHw','getHotUpdateCachePath','getImageSize','getStorageCleanService','clearCacheDataByKeys','xynvC','1230838SRBqyI','6715676lPXwbZ','toUpperCase','downloadRichMedia','dFZEJ','42CMFkkv','addCacheScannedPaths','xAXpD','616440HwsTOK','wFBcF','getFileSize','PIC','md5HexStr','private_rkey','460495yBHFXA','join','HhvSw','addCacheScanedPaths','defaultFileDownloadPath','startsWith','getMsgService','ext','30rPkPcR','GQLcX','FxpAZ','getChatCacheInfo','KIqfm','hotUpdate','onLoginSuccess','DNJwL','790348jKajXS','originImageUrl','uploadFile','start\x20downloadMedia','downloadPath','下载超时','fileTypeFromFile','session','receive\x20downloadMedia\x20task','clearChatCache','set','DbelI','354339ITduoP','clearChatCacheInfo','clearCache','delete','NMrUn','getDesktopTmpPath','unlink','91Oomaij'];_0x55f1=function(){return _0x262769;};return _0x55f1();}import _0x43590d from'path';import _0x52a175 from'fs';import _0x23065d from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x22be0b from'file-type';import{MsgListener}from'@/core/listeners';import _0x407272 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x216038=>{const _0x3478f2=_0x330f,_0x2b842a={'EBWeh':function(_0x362798,_0x5d917b){return _0x362798(_0x5d917b);}};for(const [_0x31ee23,_0x3e89cb]of downloadMediaTasks){_0x2b842a[_0x3478f2(0x1ac)](_0x3e89cb,_0x216038),downloadMediaTasks[_0x3478f2(0x196)](_0x31ee23);}},setTimeout(()=>{const _0x25266a=_0x330f;napCatCore[_0x25266a(0x1d0)](()=>{const _0x29080d=_0x25266a;napCatCore[_0x29080d(0x1a2)](downloadMediaListener);});},0x64);function _0x330f(_0x567c59,_0x3c17c2){const _0x55f180=_0x55f1();return _0x330f=function(_0x330f11,_0x21d465){_0x330f11=_0x330f11-0x18f;let _0x4e721a=_0x55f180[_0x330f11];return _0x4e721a;},_0x330f(_0x567c59,_0x3c17c2);}export class NTQQFileApi{static async['getFileType'](_0x11c961){const _0x96e708=_0x330f;return _0x22be0b[_0x96e708(0x1d8)](_0x11c961);}static async[_0x49c3d3(0x1a3)](_0x31ea96,_0x4e85c0){const _0x15f476=_0x49c3d3;await napCatCore['util'][_0x15f476(0x1a3)](_0x31ea96,_0x4e85c0);}static async[_0x49c3d3(0x1be)](_0x31248c){const _0x2bf17d=_0x49c3d3;return await napCatCore[_0x2bf17d(0x19b)][_0x2bf17d(0x1be)](_0x31248c);}static async[_0x49c3d3(0x1d4)](_0x5bee9f,_0x18a334=ElementType[_0x49c3d3(0x1bf)],_0x4085d6=0x0){const _0x321773=_0x49c3d3,_0x102b15={'XbgRf':function(_0x2bac23,_0x388347){return _0x2bac23(_0x388347);},'bVCVw':function(_0xf60068,_0x2ca9b5){return _0xf60068+_0x2ca9b5;},'xynvC':function(_0x313b5e,_0x5a1bf3){return _0x313b5e===_0x5a1bf3;}},_0x3c5fb3=await _0x102b15[_0x321773(0x19c)](calculateFileMD5,_0x5bee9f);let _0x582919=(await NTQQFileApi[_0x321773(0x1a6)](_0x5bee9f))?.[_0x321773(0x1c9)]||'';_0x582919&&(_0x582919=_0x102b15['bVCVw']('.',_0x582919));let _0x3a120d=''+_0x43590d[_0x321773(0x1a4)](_0x5bee9f);_0x102b15[_0x321773(0x1b3)](_0x3a120d['indexOf']('.'),-0x1)&&(_0x3a120d+=_0x582919);const _0x5dc9ac=napCatCore['session']['getMsgService']()[_0x321773(0x1a1)]({'md5HexStr':_0x3c5fb3,'fileName':_0x3a120d,'elementType':_0x18a334,'elementSubType':_0x4085d6,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x321773(0x1a3)](_0x5bee9f,_0x5dc9ac);const _0x4ed8d4=await NTQQFileApi['getFileSize'](_0x5bee9f);return{'md5':_0x3c5fb3,'fileName':_0x3a120d,'path':_0x5dc9ac,'fileSize':_0x4ed8d4,'ext':_0x582919};}static async['downloadMedia'](_0x57300d,_0x11c77b,_0x7f12de,_0x4ceea7,_0x5ba6e1,_0x31136d,_0x452bfb=0x3e8*0x3c*0x2,_0x12ca44=![]){const _0x18ac36=_0x49c3d3,_0x44ff85={'dFZEJ':'downloadMedia\x20complete','sWTOZ':function(_0x3bcb8e,_0x3ca2a0,_0x59a553){return _0x3Line truncated
|
||||
const _0xefb9f=_0x9cdc;function _0x3e5b(){const _0x52ce17=['PIC','20845MmwoBo','getImageSize','clearCacheDataByKeys','setCacheSilentScan','7XpqCSM','getChatCacheInfo','indexOf','rqcoZ','uploadFile','delete','60woxOvD','copyFile','BWLXw','/gchatpic_new/0/0-0-','defaultFileDownloadPath','scanCache','unlink','util','getRichMediaFilePathForGuild','getFileType','getStorageCleanService','1107504qmeIPZ','hotUpdate','getFileCacheInfo','filePath','private_rkey','onLoginSuccess','toUpperCase','addCacheScannedPaths','fileUuid','basename','9434800yRXyKk','&rkey=','downloadRichMedia','51444RPzWvE','ext','5955uAtONj','startsWith','set','5246329QwdPcb','zCFGk','addCacheScanedPaths','WUxwF','/download','getCacheSessionPathList','onRichMediaDownloadComplete','jnwqk','wdwze','RTfJu','408FDqeil','getDesktopTmpPath','6996RVlTSM','downloadMedia','图片url获取失败','tmp','zQFaH','getChatCacheList','includes','originImageUrl','clearChatCacheInfo','fileTypeFromFile','clearCache','msgId','addListener','getFileSize','getMsgService','existsSync','174WrvKFC','下载超时','session'];_0x3e5b=function(){return _0x52ce17;};return _0x3e5b();}(function(_0x2dcd5a,_0x12e06d){const _0x597f5b=_0x9cdc,_0x259a55=_0x2dcd5a();while(!![]){try{const _0x1d7969=-parseInt(_0x597f5b(0x110))/0x1*(parseInt(_0x597f5b(0xe7))/0x2)+-parseInt(_0x597f5b(0x101))/0x3*(parseInt(_0x597f5b(0x10e))/0x4)+parseInt(_0x597f5b(0xdd))/0x5*(-parseInt(_0x597f5b(0xd9))/0x6)+parseInt(_0x597f5b(0xe1))/0x7*(-parseInt(_0x597f5b(0xf2))/0x8)+-parseInt(_0x597f5b(0xff))/0x9+parseInt(_0x597f5b(0xfc))/0xa+parseInt(_0x597f5b(0x104))/0xb;if(_0x1d7969===_0x12e06d)break;else _0x259a55['push'](_0x259a55['shift']());}catch(_0x236163){_0x259a55['push'](_0x259a55['shift']());}}}(_0x3e5b,0xb5666));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1a379c from'path';import _0x21feb7 from'fs';import _0x5e0fb7 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';function _0x9cdc(_0x170654,_0x5e5e81){const _0x3e5b47=_0x3e5b();return _0x9cdc=function(_0x9cdc25,_0x3258b5){_0x9cdc25=_0x9cdc25-0xcd;let _0x5d98dc=_0x3e5b47[_0x9cdc25];return _0x5d98dc;},_0x9cdc(_0x170654,_0x5e5e81);}import*as _0x3e18c4 from'file-type';import{MsgListener}from'@/core/listeners';import _0x1b62e3 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0xefb9f(0x10a)]=_0x841eef=>{const _0x47a8ca=_0xefb9f,_0x5d3baf={'fdaWP':function(_0x5516d2,_0x548842){return _0x5516d2(_0x548842);}};for(const [_0x5f1f18,_0x6b0f7d]of downloadMediaTasks){_0x5d3baf['fdaWP'](_0x6b0f7d,_0x841eef),downloadMediaTasks[_0x47a8ca(0xe6)](_0x5f1f18);}},setTimeout(()=>{const _0x3eb4e2=_0xefb9f;napCatCore[_0x3eb4e2(0xf7)](()=>{const _0x148e6b=_0x3eb4e2;napCatCore[_0x148e6b(0xd5)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0xefb9f(0xf0)](_0x576661){const _0x364338=_0xefb9f;return _0x3e18c4[_0x364338(0xd2)](_0x576661);}static async[_0xefb9f(0xe8)](_0xf621ac,_0x22cbac){const _0xafa5c3=_0xefb9f;await napCatCore[_0xafa5c3(0xee)][_0xafa5c3(0xe8)](_0xf621ac,_0x22cbac);}static async[_0xefb9f(0xd6)](_0x32b751){const _0x5b8f95=_0xefb9f;return await napCatCore[_0x5b8f95(0xee)][_0x5b8f95(0xd6)](_0x32b751);}static async[_0xefb9f(0xe5)](_0x21c523,_0x57151f=ElementType[_0xefb9f(0xdc)],_0x48ab6f=0x0){const _0x233faf=_0xefb9f,_0x1e97a5={'zQFaH':function(_0x1ae054,_0x43bbf8){return _0x1ae054+_0x43bbf8;},'UVhjE':function(_0x480245,_0x561078){return _0x480245===_0x561078;}},_0x55f518=await calculateFileMD5(_0x21c523);let _0x2e767c=(await NTQQFileApi[_0x233faf(0xf0)](_0x21c523))?.[_0x233faf(0x100)]||'';_0x2e767c&&(_0x2e767c=_0x1e97a5[_0x233faf(0xcd)]('.',_0x2e767c));let _0x5af73a=''+_0x1a379c[_0x233faf(0xfb)](_0x21c523);_0x1e97a5['UVhjE'](_0x5af73a[_0x233faf(0xe3)]('.'),-0x1)&&(_0x5af73a+=_0x2e767c);const _0x1a8521=napCatCore[_0x233faf(0xdb)][_0x233faf(0xd7)]()[_0x233faf(0xef)]({'md5HexStr':_0x55f518,'fileName':_0x5af73a,'elementType':_0x57151f,'elementSubType':_0x48ab6f,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x233faf(0xe8)](_0x21c523,_0x1a8521);const _0x239c4d=await NTQQFileApi[_0x233faf(0xd6)](_0x21c523);return{'md5':_0x55f518,'fileName':_0x5af73a,'path':_0x1a8521,'fileSize':_0x239c4d,'ext':_0x2e767c};}static async[_0xefb9f(0x111)](_0x2e8345,_0x1fdc92,_0x31b4dd,_0x95e704,_0x49bf69,_0x4dc626,_0x4d37eb=0x3e8*0x3c*0x2,_0x314460=![]){const _0x55e7e4=_0xefb9f,_0x29426b={'cZfUC':function(_0x71238e,_0x2777f3){return _0x71238e===_0x2777f3;},'WUxwF':function(_0x135636,_0x1edb61){return _0x135636(_0x1edb61);},'jsRqB':_0x55e7e4(0xda)};if(_0x4dc626&&_0x21feb7[_0x55e7e4(0xd8)](_0x4dc626)){if(_0x314460)try{await _0x5e0fb7[_0x55Line truncated
|
||||
@@ -1 +1 @@
|
||||
function _0xab17(_0x2212de,_0x173b19){const _0x229d70=_0x229d();return _0xab17=function(_0xab172a,_0x35cc2f){_0xab172a=_0xab172a-0x66;let _0x24e0fb=_0x229d70[_0xab172a];return _0x24e0fb;},_0xab17(_0x2212de,_0x173b19);}const _0x168a9c=_0xab17;(function(_0x598df1,_0x464238){const _0x50d53b=_0xab17,_0x141802=_0x598df1();while(!![]){try{const _0x4a5cd6=parseInt(_0x50d53b(0x67))/0x1+parseInt(_0x50d53b(0x80))/0x2+-parseInt(_0x50d53b(0x75))/0x3*(parseInt(_0x50d53b(0x85))/0x4)+parseInt(_0x50d53b(0x81))/0x5*(-parseInt(_0x50d53b(0x76))/0x6)+parseInt(_0x50d53b(0x78))/0x7*(parseInt(_0x50d53b(0x6a))/0x8)+-parseInt(_0x50d53b(0x86))/0x9*(parseInt(_0x50d53b(0x88))/0xa)+-parseInt(_0x50d53b(0x84))/0xb*(-parseInt(_0x50d53b(0x66))/0xc);if(_0x4a5cd6===_0x464238)break;else _0x141802['push'](_0x141802['shift']());}catch(_0x2acd54){_0x141802['push'](_0x141802['shift']());}}}(_0x229d,0xcbab6));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x229d(){const _0x337268=['18TgiXAM','1245558eXHaRH','CMVhG','315IGwpvb','handleFriendRequest','then','mAGsp','session','getBuddyService','getBuddyList','onLoginSuccess','1127390loNPqz','35YBNgGr','qXarM','set','1441pczlVr','260516hmyMhS','153kuhDLH','onBuddyListChange','671430hjznuo','approvalFriendRequest','219588QXVdRY','574457JcxNqC','获取好友列表完成','XRCQA','50536qSAcMV','push','getFriends','获取好友列表超时','buddyList','tqFIc','reqTime','开始获取好友列表','uid','delete','addListener'];_0x229d=function(){return _0x337268;};return _0x229d();}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x168a9c(0x87)]=_0x33462a=>{const _0x2ee1d3=_0x168a9c,_0x20fe3c={'mOMAT':function(_0x418ef9,_0x37552d){return _0x418ef9(_0x37552d);}};for(const [_0x1143bf,_0x37b48f]of buddyChangeTasks){_0x20fe3c['mOMAT'](_0x37b48f,_0x33462a),buddyChangeTasks[_0x2ee1d3(0x73)](_0x1143bf);}},setTimeout(()=>{const _0x548ece=_0x168a9c;napCatCore[_0x548ece(0x7f)](()=>{const _0x240073=_0x548ece;napCatCore[_0x240073(0x74)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x168a9c(0x6c)](_0x2c4aac=![]){const _0x3a804c=_0x168a9c,_0x2feb23={'qXarM':function(_0x4f6251,_0x3ff1fa){return _0x4f6251(_0x3ff1fa);},'mAGsp':_0x3a804c(0x6d),'XRCQA':function(_0x315e01,_0x38f88d,_0x291d2c){return _0x315e01(_0x38f88d,_0x291d2c);},'CMVhG':function(_0xf40c1e){return _0xf40c1e();}};return new Promise((_0x243638,_0x1a63ab)=>{const _0x36bd1b=_0x3a804c,_0x5c8541={'tqFIc':function(_0x397bdf,_0xa9faf4,_0x1f6a10){return _0x397bdf(_0xa9faf4,_0x1f6a10);}};let _0x3aebd5=![];_0x2feb23[_0x36bd1b(0x69)](setTimeout,()=>{const _0x49b4eb=_0x36bd1b;!_0x3aebd5&&(_0x2feb23[_0x49b4eb(0x82)](logDebug,_0x2feb23[_0x49b4eb(0x7b)]),_0x2feb23[_0x49b4eb(0x82)](_0x1a63ab,_0x49b4eb(0x6d)));},0x1388);const _0x26cb1e=[],_0xdb413=_0x29f352=>{const _0x10ab32=_0x36bd1b;for(const _0x21b16f of _0x29f352){for(const _0x24769a of _0x21b16f[_0x10ab32(0x6e)]){_0x26cb1e[_0x10ab32(0x6b)](_0x24769a),uid2UinMap[_0x24769a[_0x10ab32(0x72)]]=_0x24769a['uin'];}}_0x3aebd5=!![],_0x5c8541[_0x10ab32(0x6f)](logDebug,_0x10ab32(0x68),_0x26cb1e),_0x243638(_0x26cb1e);};buddyChangeTasks[_0x36bd1b(0x83)](_0x2feb23[_0x36bd1b(0x77)](randomUUID),_0xdb413),napCatCore[_0x36bd1b(0x7c)]['getBuddyService']()[_0x36bd1b(0x7e)](_0x2c4aac)[_0x36bd1b(0x7a)](_0x1fc47b=>{const _0x2009ae=_0x36bd1b;_0x2feb23['XRCQA'](logDebug,_0x2009ae(0x71),_0x1fc47b);});});}static async[_0x168a9c(0x79)](_0x1bbb82,_0x178918){const _0x31ca0b=_0x168a9c;napCatCore[_0x31ca0b(0x7c)][_0x31ca0b(0x7d)]()?.[_0x31ca0b(0x89)]({'friendUid':_0x1bbb82['friendUid'],'reqTime':_0x1bbb82[_0x31ca0b(0x70)],'accept':_0x178918});}}
|
||||
const _0x3757d1=_0x17b2;(function(_0x2f62ad,_0x5963b4){const _0x5f29cb=_0x17b2,_0x543a5b=_0x2f62ad();while(!![]){try{const _0x3aa014=-parseInt(_0x5f29cb(0x206))/0x1*(-parseInt(_0x5f29cb(0x1f4))/0x2)+parseInt(_0x5f29cb(0x208))/0x3*(parseInt(_0x5f29cb(0x200))/0x4)+-parseInt(_0x5f29cb(0x207))/0x5+parseInt(_0x5f29cb(0x201))/0x6*(parseInt(_0x5f29cb(0x1fc))/0x7)+parseInt(_0x5f29cb(0x205))/0x8*(-parseInt(_0x5f29cb(0x1f5))/0x9)+parseInt(_0x5f29cb(0x1fd))/0xa+-parseInt(_0x5f29cb(0x1f7))/0xb*(parseInt(_0x5f29cb(0x1f9))/0xc);if(_0x3aa014===_0x5963b4)break;else _0x543a5b['push'](_0x543a5b['shift']());}catch(_0x1b0839){_0x543a5b['push'](_0x543a5b['shift']());}}}(_0x1b8f,0xbb9ab));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x17b2(_0x43434d,_0x30087a){const _0x1b8f1b=_0x1b8f();return _0x17b2=function(_0x17b27d,_0x34d322){_0x17b27d=_0x17b27d-0x1ee;let _0x432272=_0x1b8f1b[_0x17b27d];return _0x432272;},_0x17b2(_0x43434d,_0x30087a);}buddyListener['onBuddyListChange']=_0x25d05e=>{const _0x25cb4a=_0x17b2,_0x19c9d1={'qxpAE':function(_0x28d79a,_0x38af37){return _0x28d79a(_0x38af37);}};for(const [_0x3051c4,_0x348caa]of buddyChangeTasks){_0x19c9d1['qxpAE'](_0x348caa,_0x25d05e),buddyChangeTasks[_0x25cb4a(0x1f8)](_0x3051c4);}},setTimeout(()=>{const _0x17a999=_0x17b2;napCatCore[_0x17a999(0x203)](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x3757d1(0x1f2)](_0x305132=![]){const _0x5e7a03=_0x3757d1,_0x55ec4f={'NXjGr':function(_0x3e934d,_0x93a49f,_0x144231){return _0x3e934d(_0x93a49f,_0x144231);},'DOMfK':_0x5e7a03(0x1f3),'pKUBU':function(_0xee9953,_0x2699d3){return _0xee9953(_0x2699d3);},'cdXPY':function(_0x2b95b8){return _0x2b95b8();}};return new Promise((_0x206f8e,_0x3d0ad9)=>{const _0x55c62f=_0x5e7a03,_0x31fed7={'wsrxw':_0x55c62f(0x1fb),'biKTl':function(_0x13b8de,_0x1600d2){const _0x3dda39=_0x55c62f;return _0x55ec4f[_0x3dda39(0x204)](_0x13b8de,_0x1600d2);}};let _0x50930b=![];_0x55ec4f[_0x55c62f(0x1f1)](setTimeout,()=>{const _0x29e19a=_0x55c62f;!_0x50930b&&(logDebug(_0x31fed7[_0x29e19a(0x1f0)]),_0x31fed7['biKTl'](_0x3d0ad9,'获取好友列表超时'));},0x1388);const _0x48e6f9=[],_0x3ef8a3=_0x6a8c50=>{const _0x2f25c0=_0x55c62f;for(const _0x103d42 of _0x6a8c50){for(const _0x71e37d of _0x103d42['buddyList']){_0x48e6f9['push'](_0x71e37d),uid2UinMap[_0x71e37d[_0x2f25c0(0x1fe)]]=_0x71e37d[_0x2f25c0(0x1fa)];}}_0x50930b=!![],_0x206f8e(_0x48e6f9);};buddyChangeTasks['set'](_0x55ec4f[_0x55c62f(0x20b)](randomUUID),_0x3ef8a3),napCatCore[_0x55c62f(0x209)][_0x55c62f(0x1ef)]()[_0x55c62f(0x20a)](_0x305132)[_0x55c62f(0x1ee)](_0xd52f69=>{const _0x4815f5=_0x55c62f;_0x55ec4f[_0x4815f5(0x1f1)](logDebug,_0x55ec4f['DOMfK'],_0xd52f69);});});}static async[_0x3757d1(0x1f6)](_0x44c874,_0x1011f3){const _0x480210=_0x3757d1;napCatCore[_0x480210(0x209)][_0x480210(0x1ef)]()?.['approvalFriendRequest']({'friendUid':_0x44c874[_0x480210(0x1ff)],'reqTime':_0x44c874[_0x480210(0x202)],'accept':_0x1011f3});}}function _0x1b8f(){const _0x287fa9=['2515681RzhBmA','11916620TZDGtc','uid','friendUid','68GAznyh','6bgSrBX','reqTime','onLoginSuccess','pKUBU','16LLgVDZ','4073mrGVbD','2275770jHpktY','170229pUvcbe','session','getBuddyList','cdXPY','then','getBuddyService','wsrxw','NXjGr','getFriends','开始获取好友列表','428jkhBfD','343377JzsWJk','handleFriendRequest','21241MJZZLX','delete','12972VCGNYp','uin','获取好友列表超时'];_0x1b8f=function(){return _0x287fa9;};return _0x1b8f();}
|
||||
Vendored
+25
@@ -1,8 +1,33 @@
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
|
||||
export declare class NTQQGroupApi {
|
||||
static getGroups(forced?: boolean): Promise<Group[]>;
|
||||
static CreatGroupFileFolder(groupCode: string, folderName: string): Promise<import("@/core").GeneralCallResult & {
|
||||
resultWithGroupItem: {
|
||||
result: any;
|
||||
groupItem: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFile(groupCode: string, files: string[]): Promise<import("@/core").GeneralCallResult & {
|
||||
transGroupFileResult: {
|
||||
result: any;
|
||||
successFileIdList: any[];
|
||||
failFileIdList: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFileFolder(groupCode: string, folderId: string): Promise<import("@/core").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<import("@/core").GeneralCallResult & {
|
||||
groupCodes: string[];
|
||||
groupFileCounts: number[];
|
||||
}>;
|
||||
static getGroupIgnoreNotifies(): Promise<void>;
|
||||
static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise<import("@/core").GeneralCallResult & {
|
||||
errCode: number;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x3370(_0x322fcc,_0x5112cd){const _0x115f76=_0x115f();return _0x3370=function(_0x3370ed,_0x4b8d85){_0x3370ed=_0x3370ed-0xeb;let _0x25b5f9=_0x115f76[_0x3370ed];return _0x25b5f9;},_0x3370(_0x322fcc,_0x5112cd);}const _0x4e2a76=_0x3370;function _0x115f(){const _0x7c138e=['result','setMemberCard','forEach','addListener','modifyMemberCardName','KcnMK','uin','setGroupTitle','WxDnK','groupMemberList_MainWindow','createMemberListScene','seq','setGroupName','301ZTFvLc','34QRwuxS','EzGpZ','errMsg','errCode','gelDR','getGroupMembers','npyXG','delete','获取群列表完成','quitGroup','banMember','24018080UUKsSf','58033qyPrAh','BLVCu','infos','6019902GWVCFW','10VgKDaK','publishGroupBulletin','85254VGFeaU','onGroupListUpdate','setMemberShutUp','type','handleGroupRequest','1815944CxNVHG','zpYwJ','getGroupIgnoreNotifies','operateSysNotify','kickMember','getGroups','pfzFO','group','modifyMemberRole','1328064MjbXYE','banGroup','getPSkey','set','session','finish','getGroupNotifies','获取群成员列表出错,','onLoginSuccess','PWSCH','WaBcS','getGroupService','lUczI','LPQBk','uploadGroupBulletinPic','qun.qq.com','then','163098bmFFwg','获取群列表超时'];_0x115f=function(){return _0x7c138e;};return _0x115f();}(function(_0x3c96f6,_0x24ed1c){const _0x10fc2f=_0x3370,_0x114fab=_0x3c96f6();while(!![]){try{const _0x12ff81=-parseInt(_0x10fc2f(0xed))/0x1*(parseInt(_0x10fc2f(0x122))/0x2)+-parseInt(_0x10fc2f(0x112))/0x3+-parseInt(_0x10fc2f(0x101))/0x4*(parseInt(_0x10fc2f(0xf1))/0x5)+parseInt(_0x10fc2f(0xf3))/0x6*(parseInt(_0x10fc2f(0x121))/0x7)+parseInt(_0x10fc2f(0xf8))/0x8+-parseInt(_0x10fc2f(0xf0))/0x9+parseInt(_0x10fc2f(0xec))/0xa;if(_0x12ff81===_0x24ed1c)break;else _0x114fab['push'](_0x114fab['shift']());}catch(_0x48098c){_0x114fab['push'](_0x114fab['shift']());}}}(_0x115f,0xd369f));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x4e2a76(0xf4)]=(_0x4d744b,_0x4296a7)=>{const _0x30c18d=_0x4e2a76,_0x1772ae={'zpYwJ':function(_0x791e8a,_0x2dea87,_0x4c0ca5){return _0x791e8a(_0x2dea87,_0x4c0ca5);}};for(const [_0x19f032,_0x262410]of groupMemberTasks){_0x1772ae[_0x30c18d(0xf9)](_0x262410,_0x4d744b,_0x4296a7),groupMemberTasks[_0x30c18d(0x129)](_0x19f032);}},setTimeout(()=>{const _0x2b93e4=_0x4e2a76;napCatCore[_0x2b93e4(0x109)](()=>{const _0x1b08e2=_0x2b93e4;napCatCore[_0x1b08e2(0x117)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x4e2a76(0xfd)](_0x4dc3c2=![]){const _0x2545d0=_0x4e2a76,_0x33b533={'ufSQy':function(_0x3af4a1,_0x424d26){return _0x3af4a1(_0x424d26);},'mmFPv':function(_0x344ce8,_0x243c78,_0xe5ae5){return _0x344ce8(_0x243c78,_0xe5ae5);},'PMnBd':_0x2545d0(0x12a),'BLVCu':function(_0x5abb61,_0x22977e,_0x5ca011){return _0x5abb61(_0x22977e,_0x5ca011);},'WxDnK':function(_0x5ea26d){return _0x5ea26d();}};let _0x53232e=![];return new Promise((_0x559d0a,_0x547bec)=>{const _0x3c26c9=_0x2545d0,_0x143f48={'LPQBk':function(_0x2b508a,_0x4794f6){return _0x33b533['ufSQy'](_0x2b508a,_0x4794f6);},'gelDR':'获取群列表超时','JJurp':function(_0x4fc985,_0x139389,_0x381e70){return _0x33b533['mmFPv'](_0x4fc985,_0x139389,_0x381e70);},'PWSCH':_0x33b533['PMnBd']};_0x33b533[_0x3c26c9(0xee)](setTimeout,()=>{const _0x3e6db4=_0x3c26c9;!_0x53232e&&(_0x143f48[_0x3e6db4(0x10e)](logDebug,_0x143f48[_0x3e6db4(0x126)]),_0x143f48[_0x3e6db4(0x10e)](_0x547bec,_0x3e6db4(0x113)));},0x1388);const _0x39f3af=(_0x81df1,_0xcaeae8)=>{const _0x115a31=_0x3c26c9;_0x53232e=!![],_0x143f48['JJurp'](logDebug,_0x143f48[_0x115a31(0x10a)],_0xcaeae8),_0x143f48[_0x115a31(0x10e)](_0x559d0a,_0xcaeae8);};groupMemberTasks[_0x3c26c9(0x104)](_0x33b533[_0x3c26c9(0x11c)](randomUUID),_0x39f3af),napCatCore[_0x3c26c9(0x105)][_0x3c26c9(0x10c)]()['getGroupList'](_0x4dc3c2)[_0x3c26c9(0x111)]();});}static async[_0x4e2a76(0x127)](_0x4866cf,_0x7c8e9f=0xbb8){const _0x57790c=_0x4e2a76,_0x3225c0={'npyXG':_0x57790c(0x11d),'VPOXh':function(_0x522b6a,_0x54e7ed){return _0x522b6a!==_0x54e7ed;},'wJMVQ':function(_0x31952d,_0x3ad6c8){return _0x31952d+_0x3ad6c8;},'EzGpZ':_0x57790c(0x108),'KcnMK':function(_0xf515f6,_0x5ecf39,_0x356f8d){return _0xf515f6(_0x5ecf39,_0x356f8d);}},_0x7b57a9=napCatCore[_0x57790c(0x105)][_0x57790c(0x10c)](),_0x495df4=_0x7b57a9[_0x57790c(0x11e)](_0x4866cf,_0x3225c0[_0x57790c(0x128)]),_0x239f85=await _0x7b57a9['getNextMemberList'](_0x495df4,undefined,_0x7c8e9f);if(_0x3225c0['VPOXh'](_0x239f85[_0x57790c(0x125)],0x0))throw _0x3225c0['wJMVQ'](_0x3225c0[_0x57790c(0x123)],_0x239f85[_0x57790c(0x124)]);return _0x3225c0[_0x57790c(0x119)](logDebug,'获取群('+_0x4866cf+')成员列表结果:','finish:\x20'+_0x239f85[_0x57790c(0x114)][_0x57790c(0x106)]),_0x239f85[_0x57790c(0x114)][_0x57790c(0xef)][_0x57790c(0x116)](_0x4ab05c=>{const _0x186cbe=_0x57790c;uid2UinMap[_0x4ab05c['uid']]=_0x4ab05c[_0x186cbe(0x11a)];}),_0x239f85[_0x57790c(0x114)]Line truncated
|
||||
const _0x47e5c3=_0x7ef6;(function(_0x72e723,_0x5ea688){const _0x45e9c1=_0x7ef6,_0x5b8626=_0x72e723();while(!![]){try{const _0x531163=parseInt(_0x45e9c1(0x14d))/0x1+parseInt(_0x45e9c1(0x121))/0x2+parseInt(_0x45e9c1(0x12f))/0x3*(parseInt(_0x45e9c1(0x127))/0x4)+parseInt(_0x45e9c1(0x118))/0x5*(parseInt(_0x45e9c1(0x140))/0x6)+-parseInt(_0x45e9c1(0x147))/0x7+-parseInt(_0x45e9c1(0x119))/0x8*(parseInt(_0x45e9c1(0x11a))/0x9)+parseInt(_0x45e9c1(0x113))/0xa*(-parseInt(_0x45e9c1(0x108))/0xb);if(_0x531163===_0x5ea688)break;else _0x5b8626['push'](_0x5b8626['shift']());}catch(_0x16f83c){_0x5b8626['push'](_0x5b8626['shift']());}}}(_0x19c0,0x95009));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';function _0x19c0(){const _0x407571=['5022GNDLuo','nLneA','setGroupName','setMemberShutUp','getPSkey','getNextMemberList','infos','3387272hTGlQz','GetGroupFileCount','getGroupService','addListener','WToIk','type','758349ayrIHC','LQsrR','ZiKxo','errMsg','CreatGroupFileFolder','tpzpI','uFjbt','groupCode','qun.qq.com','setMemberRole','DelGroupFile','set','124058kbvaUf','nNPOp','kickMember','sfuJD','onGroupListUpdate','获取群列表超时','cpuCR','neOgu','IXsYZ','createGroupFolder','iTYda','1420eujfjn','group','DAwsP','qeNGV','seq','5905hDPiTw','15176joQKsY','3537SdcyHP','result','then','saycZ','setGroupTitle','handleGroupRequest','getRichMediaService','1993496EXpvhE','getGroupList','forEach','groupMemberList_MainWindow','getGroupNotifies','publishGroupBulletin','82072DNzpDa','getGroupMembers','getGroupIgnoreNotifies','uploadGroupBulletinPic','modifyGroupName','UPRPd','oFuWY','获取群列表完成','102yRdfJJ','获取群成员列表出错,','getSingleScreenNotifies','uin','LQYGn','getGroups','quitGroup','Kwmlm','onLoginSuccess','setGroupShutUp','operateSysNotify','modifyMemberRole','session','createMemberListScene','delete','errCode','batchGetGroupFileCount'];_0x19c0=function(){return _0x407571;};return _0x19c0();}import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),SingleScreenNotifiesTasks=new Map(),groupListener=new GroupListener();groupListener['onGroupSingleScreenNotifies']=(_0x48d51e,_0x1996c4,_0x432150)=>{const _0x2dfa4e=_0x7ef6,_0x330b01={'saycZ':function(_0x47161f,_0x26c2e0,_0x138f11,_0x55aa7a){return _0x47161f(_0x26c2e0,_0x138f11,_0x55aa7a);}};for(const [_0xfc2823,_0x22f9d5]of SingleScreenNotifiesTasks){_0x330b01[_0x2dfa4e(0x11d)](_0x22f9d5,_0x48d51e,_0x1996c4,_0x432150),SingleScreenNotifiesTasks[_0x2dfa4e(0x13d)](_0xfc2823);}},groupListener[_0x47e5c3(0x10c)]=(_0x1c2907,_0x9f93cf)=>{const _0xc5729c=_0x47e5c3,_0x17d214={'LQYGn':function(_0x4bc309,_0x594f27,_0x6cddf8){return _0x4bc309(_0x594f27,_0x6cddf8);}};for(const [_0x5f02e9,_0x43bbad]of groupMemberTasks){_0x17d214[_0xc5729c(0x133)](_0x43bbad,_0x1c2907,_0x9f93cf),groupMemberTasks[_0xc5729c(0x13d)](_0x5f02e9);}},setTimeout(()=>{const _0x5295a4=_0x47e5c3;napCatCore[_0x5295a4(0x137)](()=>{const _0x4b6900=_0x5295a4;napCatCore[_0x4b6900(0x14a)](groupListener);});},0x64);function _0x7ef6(_0x3f0a2d,_0x3b0f21){const _0x19c095=_0x19c0();return _0x7ef6=function(_0x7ef611,_0x475df8){_0x7ef611=_0x7ef611-0x105;let _0x1538f6=_0x19c095[_0x7ef611];return _0x1538f6;},_0x7ef6(_0x3f0a2d,_0x3b0f21);}export class NTQQGroupApi{static async[_0x47e5c3(0x134)](_0x349299=![]){const _0x338271=_0x47e5c3,_0x33f736={'UPRPd':function(_0xb791f3,_0x55b43a){return _0xb791f3(_0x55b43a);},'WToIk':_0x338271(0x10d),'sfuJD':function(_0x538b4e,_0x5ecae8,_0x120743){return _0x538b4e(_0x5ecae8,_0x120743);},'IXsYZ':function(_0x40953f,_0x2532ab,_0x1c117d){return _0x40953f(_0x2532ab,_0x1c117d);},'iTYda':function(_0x42139d){return _0x42139d();}};let _0x1734e5=![];return new Promise((_0x59ca24,_0x1812ac)=>{const _0x2afb88=_0x338271,_0x2c1986={'LQsrR':function(_0x5e8e0c,_0x33d593,_0xe4a6c3){const _0x5a79dc=_0x7ef6;return _0x33f736[_0x5a79dc(0x10b)](_0x5e8e0c,_0x33d593,_0xe4a6c3);}};_0x33f736[_0x2afb88(0x110)](setTimeout,()=>{const _0x8ac336=_0x2afb88;!_0x1734e5&&(_0x33f736[_0x8ac336(0x12c)](logDebug,_0x8ac336(0x10d)),_0x1812ac(_0x33f736[_0x8ac336(0x14b)]));},0x1388);const _0x40750b=(_0x3b5434,_0x36d121)=>{const _0x234f0d=_0x2afb88;_0x1734e5=!![],_0x2c1986[_0x234f0d(0x14e)](logDebug,_0x234f0d(0x12e),_0x36d121),_0x59ca24(_0x36d121);};groupMemberTasks[_0x2afb88(0x107)](_0x33f736[_0x2afb88(0x112)](randomUUID),_0x40750b),napCatCore[_0x2afb88(0x13b)][_0x2afb88(0x149)]()[_0x2afb88(0x122)](_0x349299)[_0x2afb88(0x11c)]();});}static async[_0x47e5c3(0x151)](_0x289ac4,_0x34f79f){const _0x543b2c=_0x47e5c3;return napCatCore[_0x543b2c(0x13b)][_0x543b2c(0x120)]()[_0x543b2c(0x111)](_0x289ac4,_0x34f79f);}static async[_0x47e5c3(0x106)](_0x3a503b,_0xa8e212){const _0x18f9f0=_0x47e5c3;return napCatCore[_0x18f9f0(0x13b)]['getRichMediaService']()['deleteGroupFile'](_0x3a503b,[0x66],_0xa8e212);}static async['DelGroupFileFolder'](_0x1da29b,_0x59ab28){const _0x4c753b=_0x47e5c3;return napCatCore[_0x4c753b(0x13b)][_0x4c753b(0Line 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 _0x22d0(){var _0x1445b9=['307926vJmoHw','1097362BTGKol','32czznKE','1649109GReZUx','5116712pwRzhs','7569025QAvwsy','8420713scLUeU','7334838jrQYqp','6VcMAjv'];_0x22d0=function(){return _0x1445b9;};return _0x22d0();}(function(_0x43a7a3,_0x3f0ab9){var _0x16ef72=_0x4c75,_0x220955=_0x43a7a3();while(!![]){try{var _0xc92a2d=parseInt(_0x16ef72(0x18c))/0x1+-parseInt(_0x16ef72(0x18a))/0x2*(parseInt(_0x16ef72(0x188))/0x3)+-parseInt(_0x16ef72(0x184))/0x4+parseInt(_0x16ef72(0x185))/0x5+-parseInt(_0x16ef72(0x187))/0x6+parseInt(_0x16ef72(0x186))/0x7+-parseInt(_0x16ef72(0x18b))/0x8*(-parseInt(_0x16ef72(0x189))/0x9);if(_0xc92a2d===_0x3f0ab9)break;else _0x220955['push'](_0x220955['shift']());}catch(_0x34c0f9){_0x220955['push'](_0x220955['shift']());}}}(_0x22d0,0xdca24));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x4c75(_0x33a7cd,_0x559070){var _0x22d0fd=_0x22d0();return _0x4c75=function(_0x4c7513,_0x4ae264){_0x4c7513=_0x4c7513-0x184;var _0x36952c=_0x22d0fd[_0x4c7513];return _0x36952c;},_0x4c75(_0x33a7cd,_0x559070);}export*from'./user';export*from'./webapi';
|
||||
(function(_0x2b9964,_0x4eba63){var _0x4caa76=_0x2542,_0x3940bf=_0x2b9964();while(!![]){try{var _0x1f0dca=-parseInt(_0x4caa76(0x121))/0x1+parseInt(_0x4caa76(0x124))/0x2*(parseInt(_0x4caa76(0x125))/0x3)+-parseInt(_0x4caa76(0x122))/0x4*(parseInt(_0x4caa76(0x11f))/0x5)+-parseInt(_0x4caa76(0x11c))/0x6+-parseInt(_0x4caa76(0x120))/0x7+-parseInt(_0x4caa76(0x123))/0x8*(parseInt(_0x4caa76(0x11d))/0x9)+parseInt(_0x4caa76(0x11e))/0xa;if(_0x1f0dca===_0x4eba63)break;else _0x3940bf['push'](_0x3940bf['shift']());}catch(_0x593be0){_0x3940bf['push'](_0x3940bf['shift']());}}}(_0x10d0,0x77b98));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x10d0(){var _0x5c19c9=['2688byUJPe','24fNPKLC','1850920DilIYg','3SoExQj','2440320iyYTIh','2246337HtHaCZ','23950550BvRgcD','2175obSxxW','4141102TAvKfE','790718yJjEha'];_0x10d0=function(){return _0x5c19c9;};return _0x10d0();}export*from'./user';export*from'./webapi';export*from'./sign';function _0x2542(_0x1a1a6b,_0x335d30){var _0x10d077=_0x10d0();return _0x2542=function(_0x25429d,_0x6243a6){_0x25429d=_0x25429d-0x11c;var _0x25d3af=_0x10d077[_0x25429d];return _0x25d3af;},_0x2542(_0x1a1a6b,_0x335d30);}export*from'./system';
|
||||
Vendored
+2
-1
@@ -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>;
|
||||
@@ -14,6 +14,7 @@ export declare class NTQQMsgApi {
|
||||
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 @@
|
||||
const _0x28088f=_0x4c2a;(function(_0x38df56,_0x37cace){const _0x3c765e=_0x4c2a,_0x541f1f=_0x38df56();while(!![]){try{const _0x56608d=-parseInt(_0x3c765e(0xd3))/0x1+-parseInt(_0x3c765e(0xc3))/0x2*(-parseInt(_0x3c765e(0xcd))/0x3)+parseInt(_0x3c765e(0xd1))/0x4+-parseInt(_0x3c765e(0xf4))/0x5+-parseInt(_0x3c765e(0xe8))/0x6+parseInt(_0x3c765e(0xe3))/0x7+parseInt(_0x3c765e(0xdb))/0x8;if(_0x56608d===_0x37cace)break;else _0x541f1f['push'](_0x541f1f['shift']());}catch(_0x2a29cb){_0x541f1f['push'](_0x541f1f['shift']());}}}(_0x1dc7,0x6dbf1));import{selfInfo}from'@/core/data';function _0x4c2a(_0x5e4d96,_0x2ab739){const _0x1dc710=_0x1dc7();return _0x4c2a=function(_0x4c2a5b,_0x4148fa){_0x4c2a5b=_0x4c2a5b-0xba;let _0x3a3438=_0x1dc710[_0x4c2a5b];return _0x3a3438;},_0x4c2a(_0x5e4d96,_0x2ab739);}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';function _0x1dc7(){const _0xb9f5b7=['uid','orafD','1643764CVCtJW','izIgK','452085kBbmow','activateChatAndGetHistory','map','set','senderUid','recallMsg','delete','bytesData','7454568tMoISA','QbXcU','multiForwardMsg','KpRvP','setMsgEmojiLikes','getMsgsByMsgId','IecNL','yyOir','5229651mDUsxf','ecwGt','length','Lnulc','onAddSendMsg','3024906mDTikS','catch','toString','转发消息超时','yxqmh','sendMsg','nick','app','msgId','getMsgsBySeqAndCount','addListener','发送超时','4435655ZysyRn','setEmojiLike','arkElement','find','getMsgService','BQPXk','sendStatus','QExaZ','fetchRecentContact','ihSTU','xNJce','WllcE','then','2JrGsqZ','getMultiMsg','session','getMsgsIncludeSelf','peerUid','parse','XzuYS','setMsgRead','onMsgInfoListUpdate','getMsgHistory','609099CqxfMX','com.tencent.multimsg'];_0x1dc7=function(){return _0xb9f5b7;};return _0x1dc7();}const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x28088f(0xe7)]=_0xc2727c=>{const _0x98a46=_0x28088f,_0x9f0a32={'BQPXk':function(_0x2bcfa7,_0x32be68){return _0x2bcfa7 instanceof _0x32be68;}};for(const [_0x12ecbf,_0xae78a5]of sentMsgTasks){_0xae78a5(_0xc2727c),sentMsgTasks[_0x98a46(0xd9)](_0x12ecbf);}if(sendMessagePool[_0xc2727c['peerUid']]){const _0x416a91=sendMessagePool[_0xc2727c[_0x98a46(0xc7)]]?.(_0xc2727c);_0x9f0a32[_0x98a46(0xbb)](_0x416a91,Promise)&&_0x416a91[_0x98a46(0xc2)]()[_0x98a46(0xe9)](logError);}},msgListener[_0x28088f(0xcb)]=_0x17d6cb=>{const _0xf8a723={'yxqmh':function(_0x5add81,_0x57ceb4){return _0x5add81 instanceof _0x57ceb4;},'FfwNJ':function(_0xabb2b,_0x3b92ea){return _0xabb2b(_0x3b92ea);}};_0x17d6cb['forEach'](_0x24a43b=>{const _0xc9da2e=_0x4c2a;new Promise((_0x492a9d,_0xcafcca)=>{const _0xd3a7b7=_0x4c2a;for(const _0x129494 in sendSuccessCBMap){const _0x35dcc4=sendSuccessCBMap[_0x129494],_0x27fa6b=_0x35dcc4(_0x24a43b),_0x61c65c=_0x4de50c=>{_0x4de50c&&delete sendSuccessCBMap[_0x129494];};_0xf8a723[_0xd3a7b7(0xec)](_0x27fa6b,Promise)?_0x27fa6b[_0xd3a7b7(0xc2)](_0x61c65c):_0xf8a723['FfwNJ'](_0x61c65c,_0x27fa6b);}})[_0xc9da2e(0xc2)]()['catch'](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x3bfe65=_0x4c2a;napCatCore[_0x3bfe65(0xf2)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x28088f(0xf5)](_0x5c657c,_0x3dc8d5,_0x4f4f12,_0x1f3a41=!![]){const _0x2500c7=_0x28088f,_0x26ed9f={'wXRcW':function(_0x1560c2,_0x2123ea){return _0x1560c2>_0x2123ea;}};return _0x4f4f12=_0x4f4f12[_0x2500c7(0xea)](),napCatCore[_0x2500c7(0xc5)][_0x2500c7(0xba)]()[_0x2500c7(0xdf)](_0x5c657c,_0x3dc8d5,_0x4f4f12,_0x26ed9f['wXRcW'](_0x4f4f12[_0x2500c7(0xe5)],0x3)?'2':'1',_0x1f3a41);}static async[_0x28088f(0xc4)](_0x2f034c,_0x5920c5,_0x2a3abc){const _0x3a98be=_0x28088f;return napCatCore['session'][_0x3a98be(0xba)]()[_0x3a98be(0xc4)](_0x2f034c,_0x5920c5,_0x2a3abc);}static async[_0x28088f(0xe0)](_0x231505,_0x515302){const _0x2ac6c0=_0x28088f;return await napCatCore[_0x2ac6c0(0xc5)][_0x2ac6c0(0xba)]()[_0x2ac6c0(0xe0)](_0x231505,_0x515302);}static async[_0x28088f(0xf1)](_0x5a6625,_0x473403,_0x16306a,_0x43f176,_0x391b6d){const _0x41d213=_0x28088f;return await napCatCore['session'][_0x41d213(0xba)]()[_0x41d213(0xf1)](_0x5a6625,_0x473403,_0x16306a,_0x43f176,_0x391b6d);}static async['activateChat'](_0x64ca7){}static async[_0x28088f(0xd4)](_0x4ce236){}static async[_0x28088f(0xca)](_0x4acb9c){const _0x9287cd=_0x28088f;return napCatCore[_0x9287cd(0xc5)][_0x9287cd(0xba)]()[_0x9287cd(0xca)](_0x4acb9c);}static async[_0x28088f(0xcc)](_0x1449d7,_0x2f605e,_0x32c623){const _0x488a2a=_0x28088f;return napCatCore['session'][_0x488a2a(0xba)]()[_0x488a2a(0xc6)](_0x1449d7,_0x2f605e,_0x32c623,!![]);}static async[_0x28088f(0xbe)](){}static async[_0x28088f(0xd8)](_0x16e909,_0x50e238){const _0x2f35a2=_0x28088f;await napCatCore[_0x2f35a2(0xc5)]['getMsgService']()[_0x2f35a2(0xd8)]({'chatType':_0x16e909['chatType'],'peerUid':_0x16e909[_0x2f35a2(0xc7)]},_0x50e238);}static async[_0x28088f(0xed)](_0x249589,_0x390685,_0x513bb2=!![],_0x7c3416=0x2710){const _0x1892bLine truncated
|
||||
function _0x5cbf(_0x479eb1,_0x230623){const _0xf9fb1c=_0xf9fb();return _0x5cbf=function(_0x5cbf82,_0x8c450a){_0x5cbf82=_0x5cbf82-0x101;let _0x243436=_0xf9fb1c[_0x5cbf82];return _0x243436;},_0x5cbf(_0x479eb1,_0x230623);}const _0xed01a1=_0x5cbf;(function(_0x58aa53,_0x154c0d){const _0x268b1e=_0x5cbf,_0x1f9c40=_0x58aa53();while(!![]){try{const _0x7872ee=-parseInt(_0x268b1e(0x116))/0x1*(-parseInt(_0x268b1e(0x14b))/0x2)+parseInt(_0x268b1e(0x14f))/0x3*(-parseInt(_0x268b1e(0x147))/0x4)+parseInt(_0x268b1e(0x134))/0x5+parseInt(_0x268b1e(0x105))/0x6*(-parseInt(_0x268b1e(0x12e))/0x7)+parseInt(_0x268b1e(0x10e))/0x8+parseInt(_0x268b1e(0x141))/0x9+-parseInt(_0x268b1e(0x120))/0xa;if(_0x7872ee===_0x154c0d)break;else _0x1f9c40['push'](_0x1f9c40['shift']());}catch(_0x44871a){_0x1f9c40['push'](_0x1f9c40['shift']());}}}(_0xf9fb,0x1915f));import{selfInfo}from'@/core/data';function _0xf9fb(){const _0x44fdfb=['nick','280184dlryPH','catch','dxtzW','setMsgRead','msgId','peerUid','find','recallMsg','37duofnw','rnjZM','addListener','gjuKD','KFSMe','BmPSa','multiForwardMsg','app','getMsgsIncludeSelf','arkElement','951780UyKYcM','onMsgInfoListUpdate','ZBwRB','set','转发消息超时','uJweG','bytesData','UbrCp','setMsgEmojiLikes','getMsgService','map','qpTxN','DRndN','tMRWN','10871VEkDEO','MPLop','onGroupFileInfoUpdate','chatType','QVyVb','getMsgsBySeqAndCount','789305mMJuJw','activateChatAndGetHistory','jtodx','toString','yqWxw','item','getRichMediaService','elements','xECzv','fetchRecentContact','getMsgHistory','aNtcs','nNliq','1136142SxLXEn','com.tencent.multimsg','RWWuy','wQeIP','session','then','1316vshAlm','getMsgsByMsgId','forEach','activateChat','4574OzHukg','getMultiMsg','sendMsg','sendStatus','1551iqRerL','delete','hXtGO','forwardMsg','ioKKv','setEmojiLike','138jAjWaI','onAddSendMsg','ysVKI','onLoginSuccess','multiForwardMsgWithComment','XeuhO','tTvDb','getGroupFileList'];_0xf9fb=function(){return _0x44fdfb;};return _0xf9fb();}import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},GroupFileInfoUpdateTasks=new Map(),sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0xed01a1(0x130)]=_0x47fa6b=>{const _0xfbe6c0=_0xed01a1,_0x58336a={'MPLop':function(_0x371ad1,_0x4a803d){return _0x371ad1(_0x4a803d);}};for(const [_0x2c1218,_0x4a40d2]of GroupFileInfoUpdateTasks){_0x58336a[_0xfbe6c0(0x12f)](_0x4a40d2,_0x47fa6b),GroupFileInfoUpdateTasks[_0xfbe6c0(0x150)](_0x2c1218);}},msgListener[_0xed01a1(0x106)]=_0x3c2f94=>{const _0x10cc58=_0xed01a1,_0x356857={'BmPSa':function(_0x453d9c,_0x30855f){return _0x453d9c(_0x30855f);},'aNtcs':function(_0x11688e,_0x43de08){return _0x11688e instanceof _0x43de08;}};for(const [_0x38d2ea,_0x11aa32]of sentMsgTasks){_0x356857[_0x10cc58(0x11b)](_0x11aa32,_0x3c2f94),sentMsgTasks[_0x10cc58(0x150)](_0x38d2ea);}if(sendMessagePool[_0x3c2f94[_0x10cc58(0x113)]]){const _0x23a12a=sendMessagePool[_0x3c2f94[_0x10cc58(0x113)]]?.(_0x3c2f94);_0x356857[_0x10cc58(0x13f)](_0x23a12a,Promise)&&_0x23a12a[_0x10cc58(0x146)]()[_0x10cc58(0x10f)](logError);}},msgListener[_0xed01a1(0x121)]=_0x1552b3=>{const _0x534f01=_0xed01a1,_0x5e2c42={'xEyQS':function(_0x261cd1,_0xc0c62f){return _0x261cd1(_0xc0c62f);},'zLIoA':function(_0x4768a5,_0x464a1c){return _0x4768a5 instanceof _0x464a1c;}};_0x1552b3[_0x534f01(0x149)](_0x5cd26a=>{const _0x29ac8a=_0x534f01,_0x27ffcc={'tMRWN':function(_0xaa8654,_0x1e0322){return _0x5e2c42['xEyQS'](_0xaa8654,_0x1e0322);},'KFSMe':function(_0x498491,_0x135ceb){return _0x5e2c42['zLIoA'](_0x498491,_0x135ceb);}};new Promise((_0x386a06,_0x3fc9f2)=>{const _0x3359b1=_0x5cbf;for(const _0x281946 in sendSuccessCBMap){const _0x395bae=sendSuccessCBMap[_0x281946],_0x3833a4=_0x27ffcc[_0x3359b1(0x12d)](_0x395bae,_0x5cd26a),_0x43e208=_0x52a774=>{_0x52a774&&delete sendSuccessCBMap[_0x281946];};_0x27ffcc[_0x3359b1(0x11a)](_0x3833a4,Promise)?_0x3833a4[_0x3359b1(0x146)](_0x43e208):_0x43e208(_0x3833a4);}})[_0x29ac8a(0x146)]()[_0x29ac8a(0x10f)](log);});},setTimeout(()=>{const _0x31f950=_0xed01a1;napCatCore[_0x31f950(0x108)](()=>{const _0x4b2aa4=_0x31f950;napCatCore[_0x4b2aa4(0x118)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0xed01a1(0x104)](_0x59bc46,_0x3cc9cc,_0x395001,_0x4773a0=!![]){const _0x34826e=_0xed01a1,_0x45682f={'rnjZM':function(_0x20034b,_0x4798a5){return _0x20034b>_0x4798a5;}};return _0x395001=_0x395001[_0x34826e(0x137)](),napCatCore['session'][_0x34826e(0x129)]()[_0x34826e(0x128)](_0x59bc46,_0x3cc9cc,_0x395001,_0x45682f[_0x34826e(0x117)](_0x395001['length'],0x3)?'2':'1',_0x4773a0);}static async[_0xed01a1(0x14c)](_0x493def,_0x57e6d7,_0x3ce4fe){const _0x3276ce=_0xed01a1;return napCatCore[_0x3276ce(0x145)]['getMsgService']()[_0x3276ce(0x14c)](_0x493def,_0x57e6d7,_0x3ce4fe);}static async[_0xed01a1(0x148)](_0x526956,_0x2367d0){const _0x246b36=_0xed01a1;return await napCatCore['session'][_0x246b36(0x129)]()['getMsgsByMsgILine 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 _0x5a41(_0x246fad,_0x5417e2){var _0x1820ef=_0x1820();return _0x5a41=function(_0x5a41f8,_0x8b9441){_0x5a41f8=_0x5a41f8-0x66;var _0x17ed61=_0x1820ef[_0x5a41f8];return _0x17ed61;},_0x5a41(_0x246fad,_0x5417e2);}var _0xc2f38=_0x5a41;(function(_0x95e857,_0xca6257){var _0x1a2899=_0x5a41,_0x692df5=_0x95e857();while(!![]){try{var _0x10143a=-parseInt(_0x1a2899(0x6e))/0x1+parseInt(_0x1a2899(0x71))/0x2*(parseInt(_0x1a2899(0x6d))/0x3)+-parseInt(_0x1a2899(0x72))/0x4*(-parseInt(_0x1a2899(0x6b))/0x5)+-parseInt(_0x1a2899(0x70))/0x6+-parseInt(_0x1a2899(0x78))/0x7+-parseInt(_0x1a2899(0x73))/0x8*(parseInt(_0x1a2899(0x77))/0x9)+parseInt(_0x1a2899(0x66))/0xa;if(_0x10143a===_0xca6257)break;else _0x692df5['push'](_0x692df5['shift']());}catch(_0xd7ede0){_0x692df5['push'](_0x692df5['shift']());}}}(_0x1820,0x7fc06));function _0x1820(){var _0x48bdaa=['6200551qlArNF','stringify','8101070yEdFfV','lKtzS','rULNN','POST','sTMdt','372095vrUjZN','url','2723289TyFfwc','619508luVjPC','json','1403568RvuGbJ','2flaKBx','40KzHeHv','8raKwmX','sign','statusText','then','1796049eKaknI'];_0x1820=function(){return _0x48bdaa;};return _0x1820();}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0xc2f38(0x6c)];constructor(_0x36d076){var _0xbd21c2=_0xc2f38;this[_0xbd21c2(0x6c)]=_0x36d076;}[_0xc2f38(0x74)](_0x56975a){var _0xff447a={'xvGoU':function(_0x51b1f2,_0x277839){return _0x51b1f2(_0x277839);},'kVaxb':function(_0x39677e,_0x178994){return _0x39677e(_0x178994);},'sTMdt':function(_0x22568c,_0x3c9828,_0x381fd2){return _0x22568c(_0x3c9828,_0x381fd2);},'lKtzS':'application/json'};return new Promise((_0x471528,_0x125214)=>{var _0x562100=_0x5a41,_0x73ea19={'rULNN':function(_0x4ce833,_0x101488){return _0xff447a['kVaxb'](_0x4ce833,_0x101488);},'jDoac':function(_0x120574,_0x2ba0c6,_0x47769f){return _0xff447a['sTMdt'](_0x120574,_0x2ba0c6,_0x47769f);}};_0xff447a[_0x562100(0x6a)](fetch,this['url'],{'method':_0x562100(0x69),'headers':{'Content-Type':_0xff447a[_0x562100(0x67)]},'body':JSON[_0x562100(0x79)](_0x56975a)})[_0x562100(0x76)](_0x2b32a2=>{var _0x27d099=_0x562100;return!_0x2b32a2['ok']&&_0x73ea19[_0x27d099(0x68)](_0x125214,_0x2b32a2[_0x27d099(0x75)]),_0x2b32a2[_0x27d099(0x6f)]();})[_0x562100(0x76)](_0x5a6843=>{_0x73ea19['jDoac'](logDebug,'音乐消息生成成功',_0x5a6843),_0x73ea19['rULNN'](_0x471528,_0x5a6843);})['catch'](_0x490a7b=>{_0xff447a['xvGoU'](_0x125214,_0x490a7b);});});}}
|
||||
(function(_0xf184e2,_0x353f05){const _0x360916=_0x1217,_0x51f1aa=_0xf184e2();while(!![]){try{const _0x1fa391=-parseInt(_0x360916(0x1ae))/0x1*(parseInt(_0x360916(0x1c7))/0x2)+-parseInt(_0x360916(0x1bd))/0x3+parseInt(_0x360916(0x1b4))/0x4+-parseInt(_0x360916(0x1cd))/0x5+-parseInt(_0x360916(0x1a9))/0x6+parseInt(_0x360916(0x1b5))/0x7+parseInt(_0x360916(0x1c9))/0x8*(parseInt(_0x360916(0x1bc))/0x9);if(_0x1fa391===_0x353f05)break;else _0x51f1aa['push'](_0x51f1aa['shift']());}catch(_0x2fb135){_0x51f1aa['push'](_0x51f1aa['shift']());}}}(_0x519b,0xbd901));function _0x1217(_0x243e37,_0x14eece){const _0x519bce=_0x519b();return _0x1217=function(_0x121770,_0x218f39){_0x121770=_0x121770-0x1a2;let _0x1c676b=_0x519bce[_0x121770];return _0x1c676b;},_0x1217(_0x243e37,_0x14eece);}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';function _0x519b(){const _0x3acfe0=['https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','p_skey','stringify','Fbwln','HttpGetJson','preview','9ohhiLg','572484WVnrNG','hykEb','signed_ark','Etwnn','replace',';\x20uin=o','cWDOP','tIoVo','tianxuan.imgJumpArk','tag','1082FCzudd',';\x20skey=','4267680nAfGHu','trInk','miniapp','MiniApp\x20JSON\x20消息生成失败','2060540eLrksV',';\x20p_uin=o','\x5c/\x5c/','tagIcon','com.tencent.miniapp.lua','rlerq','p_skey=','skey','2568414VIIckq','getQzoneCookies','IFxkW','jumpUrl','uin','1483bLAqSf','iovEi','data','normal','prompt','GET','3147876iymtOz','9025296wVgeQQ'];_0x519b=function(){return _0x3acfe0;};return _0x519b();}export async function SignMiniApp(_0x2e61d0){const _0x5cdd20=_0x1217,_0x3ec84b={'rlerq':_0x5cdd20(0x1cb),'IFxkW':_0x5cdd20(0x1b1),'Fbwln':'\x5c/\x5c/','qthrA':function(_0x38a6e8,_0x141303){return _0x38a6e8+_0x141303;},'Etwnn':function(_0x5b92aa,_0x213e63){return _0x5b92aa+_0x213e63;},'cWDOP':function(_0x1d0dc9,_0x5a06c0){return _0x1d0dc9+_0x5a06c0;},'trInk':_0x5cdd20(0x1a7),'hykEb':_0x5cdd20(0x1c8),'tIoVo':_0x5cdd20(0x1a2),'iovEi':_0x5cdd20(0x1c2),'PvXyV':function(_0x2d534b,_0x441eed){return _0x2d534b+_0x441eed;}};let _0x275de2={'app':_0x5cdd20(0x1a5),'bizsrc':_0x5cdd20(0x1c5),'view':_0x3ec84b[_0x5cdd20(0x1a6)],'prompt':_0x2e61d0[_0x5cdd20(0x1b2)],'config':{'type':_0x3ec84b[_0x5cdd20(0x1ab)],'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x2e61d0['title'],'preview':_0x2e61d0[_0x5cdd20(0x1bb)]['replace'](/\\/g,_0x5cdd20(0x1a3)),'jumpUrl':_0x2e61d0[_0x5cdd20(0x1ac)]['replace'](/\\/g,_0x3ec84b[_0x5cdd20(0x1b9)]),'tag':_0x2e61d0[_0x5cdd20(0x1c6)],'tagIcon':_0x2e61d0[_0x5cdd20(0x1a4)][_0x5cdd20(0x1c1)](/\\/g,_0x3ec84b[_0x5cdd20(0x1b9)]),'source':_0x2e61d0['source'],'sourcelogo':_0x2e61d0['sourcelogo'][_0x5cdd20(0x1c1)](/\\/g,_0x3ec84b['Fbwln'])}}};const _0x590261=await NTQQUserApi['getSkey']();let _0x3697ae=await NTQQUserApi[_0x5cdd20(0x1aa)]();const _0x20bcb8=WebApi['genBkn'](_0x3697ae[_0x5cdd20(0x1b7)]),_0x8c35b5=_0x3ec84b['qthrA'](_0x3ec84b[_0x5cdd20(0x1c0)](_0x3ec84b['cWDOP'](_0x3ec84b[_0x5cdd20(0x1c3)](_0x3ec84b[_0x5cdd20(0x1c0)](_0x3ec84b[_0x5cdd20(0x1ca)],_0x3697ae[_0x5cdd20(0x1b7)])+_0x3ec84b[_0x5cdd20(0x1be)],_0x3697ae[_0x5cdd20(0x1a8)])+_0x3ec84b[_0x5cdd20(0x1c4)],selfInfo[_0x5cdd20(0x1ad)]),_0x3ec84b[_0x5cdd20(0x1af)]),selfInfo[_0x5cdd20(0x1ad)]);let _0x3bbda1=_0x3ec84b['PvXyV'](_0x3ec84b[_0x5cdd20(0x1c0)](_0x3ec84b[_0x5cdd20(0x1c3)](_0x5cdd20(0x1b6),_0x20bcb8),'&ark='),encodeURIComponent(JSON[_0x5cdd20(0x1b8)](_0x275de2))),_0x35a841='';try{let _0x100935=await RequestUtil[_0x5cdd20(0x1ba)](_0x3bbda1,_0x5cdd20(0x1b3),undefined,{'Cookie':_0x8c35b5});_0x35a841=_0x100935[_0x5cdd20(0x1b0)][_0x5cdd20(0x1bf)];}catch(_0x3c6532){logDebug(_0x5cdd20(0x1cc),_0x3c6532);}return _0x35a841;}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
export declare class NTQQSystemApi {
|
||||
static hasOtherRunningQQProcess(): Promise<boolean>;
|
||||
static ORCImage(filePath: string): Promise<import("@/core").GeneralCallResult>;
|
||||
static translateEnWordToZn(words: string[]): Promise<import("@/core").GeneralCallResult & {
|
||||
words: string[];
|
||||
}>;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
var _0x58874f=_0x499f;function _0x5bf6(){var _0x338222=['getRichMediaService','hasOtherRunningQQProcess','translateEnWordToZn','7812650SpaTIF','5IdOQKP','197463EOJGfS','getNodeMiscService','292KwunWF','24707826yYbHNa','1bDqocx','9245007XIPlWy','1503434WQmtZG','819GtruOw','wantWinScreenOCR','96fYPIaM','4578870IcAIKN','ORCImage'];_0x5bf6=function(){return _0x338222;};return _0x5bf6();}(function(_0x3c1b48,_0x4d0fc0){var _0x179f54=_0x499f,_0x240c82=_0x3c1b48();while(!![]){try{var _0x2dcffb=parseInt(_0x179f54(0xed))/0x1*(-parseInt(_0x179f54(0xef))/0x2)+-parseInt(_0x179f54(0xf0))/0x3*(-parseInt(_0x179f54(0xeb))/0x4)+-parseInt(_0x179f54(0xe8))/0x5*(parseInt(_0x179f54(0xf3))/0x6)+-parseInt(_0x179f54(0xe9))/0x7*(parseInt(_0x179f54(0xf2))/0x8)+parseInt(_0x179f54(0xee))/0x9+-parseInt(_0x179f54(0xe7))/0xa+parseInt(_0x179f54(0xec))/0xb;if(_0x2dcffb===_0x4d0fc0)break;else _0x240c82['push'](_0x240c82['shift']());}catch(_0x1ce6ea){_0x240c82['push'](_0x240c82['shift']());}}}(_0x5bf6,0xa0cfb));import{napCatCore}from'@/core';function _0x499f(_0x40b4d5,_0x1dd6b5){var _0x5bf6d3=_0x5bf6();return _0x499f=function(_0x499f35,_0x359f9a){_0x499f35=_0x499f35-0xe6;var _0x210e1c=_0x5bf6d3[_0x499f35];return _0x210e1c;},_0x499f(_0x40b4d5,_0x1dd6b5);}export class NTQQSystemApi{static async[_0x58874f(0xf6)](){var _0x2d3916=_0x58874f;return napCatCore['util'][_0x2d3916(0xf6)]();}static async[_0x58874f(0xf4)](_0x20b49c){var _0x20ca46=_0x58874f;return napCatCore['session'][_0x20ca46(0xea)]()[_0x20ca46(0xf1)](_0x20b49c);}static async['translateEnWordToZn'](_0x441891){var _0x815a7e=_0x58874f;return napCatCore['session'][_0x815a7e(0xf5)]()[_0x815a7e(0xe6)](_0x441891);}}
|
||||
Vendored
+6
-1
@@ -14,7 +14,12 @@ export declare class NTQQUserApi {
|
||||
static getSelfInfo(): Promise<void>;
|
||||
static getUserInfo(uid: string): Promise<void>;
|
||||
static getUserDetailInfo(uid: string): Promise<User>;
|
||||
static getPSkey(domainList: string[], cached?: boolean): Promise<any>;
|
||||
static getPSkey(domainList: string[], cached?: boolean): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getRobotUinRange(): Promise<Array<any>>;
|
||||
static getQzoneCookies(): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getSkey(cached?: boolean): Promise<string | undefined>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x2dfefb=_0x20aa;(function(_0x1feae4,_0x298518){const _0x2794d3=_0x20aa,_0x301cf3=_0x1feae4();while(!![]){try{const _0x539ba4=parseInt(_0x2794d3(0x1e0))/0x1*(-parseInt(_0x2794d3(0x1d5))/0x2)+parseInt(_0x2794d3(0x1dd))/0x3+-parseInt(_0x2794d3(0x1bd))/0x4+parseInt(_0x2794d3(0x1d8))/0x5*(-parseInt(_0x2794d3(0x1c9))/0x6)+-parseInt(_0x2794d3(0x1de))/0x7+-parseInt(_0x2794d3(0x1eb))/0x8*(-parseInt(_0x2794d3(0x1e9))/0x9)+parseInt(_0x2794d3(0x1f0))/0xa;if(_0x539ba4===_0x298518)break;else _0x301cf3['push'](_0x301cf3['shift']());}catch(_0x5a6888){_0x301cf3['push'](_0x301cf3['shift']());}}}(_0xca08,0xeeee2));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0xca08(){const _0x4dff8d=['raBeE','clientKey','4229346bsJGVF','947541uteOdS','getUserInfo','481bZuOrn','getPSkey','onProfileDetailInfoChanged','getUserDetailInfoWithBizInfo','LKnHq','like','forEach','addListener','ialdw','28494LRAEqi','AitQD','24DnIbAJ','cxfNg','getSkey','getMsgService','JtmLW','37932920JJBnmO','now','rfxaU','setStatus','keyIndex','push','CreatTime','Skey','setQQAvatar','getProfileLikeService','domainPskeyMap','6042180qCxcsI','bMjWy','getRobotUinRange','length','PskeyData','lNWAL','setBuddyProfileLike','uid','&clientkey=','result','entries','get','30JAdUMA','getTipOffService','CBVEX','setSelfOnlineStatus','set','fromEntries','skey','getProfileService','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','session','delete','vIEYZ','7432yCUxpM','ZHUlz','onLoginSuccess','800610kwTTxe','获取Pskey失败','robotUinRanges'];_0xca08=function(){return _0x4dff8d;};return _0xca08();}profileListener[_0x2dfefb(0x1e2)]=_0x3a4fd0=>{const _0x42768b=_0x2dfefb;userInfoCache[_0x3a4fd0[_0x42768b(0x1c4)]]=_0x3a4fd0,userDetailHandlers[_0x42768b(0x1e6)](_0x1da167=>_0x1da167(_0x3a4fd0));},setTimeout(()=>{const _0x3de60f=_0x2dfefb;napCatCore[_0x3de60f(0x1d7)](()=>{const _0x528bd9=_0x3de60f;napCatCore[_0x528bd9(0x1e7)](profileListener);});},0x64);function _0x20aa(_0x2262db,_0x2aad88){const _0xca08b4=_0xca08();return _0x20aa=function(_0x20aa8d,_0x457782){_0x20aa8d=_0x20aa8d-0x1b5;let _0x2f22a4=_0xca08b4[_0x20aa8d];return _0x2f22a4;},_0x20aa(_0x2262db,_0x2aad88);}export class NTQQUserApi{static async[_0x2dfefb(0x1cc)](_0x2ffdc9,_0x2fd87a,_0x1f39c3){const _0x2f3bf8=_0x2dfefb;return napCatCore[_0x2f3bf8(0x1d2)][_0x2f3bf8(0x1ee)]()[_0x2f3bf8(0x1b5)]({'status':_0x2ffdc9,'extStatus':_0x2fd87a,'batteryStatus':_0x1f39c3});}static async[_0x2dfefb(0x1e5)](_0x4fe478,_0x220b9e=0x1){const _0x2212c6=_0x2dfefb;return napCatCore['session'][_0x2212c6(0x1bb)]()[_0x2212c6(0x1c3)]({'friendUid':_0x4fe478,'sourceId':0x47,'doLikeCount':_0x220b9e,'doLikeTollCount':0x0});}static async[_0x2dfefb(0x1ba)](_0x4e7f3f){const _0x162c7c=_0x2dfefb,_0x5453ec=napCatCore[_0x162c7c(0x1d2)][_0x162c7c(0x1d0)]()['setHeader'](_0x4e7f3f);return{'result':_0x5453ec?.[_0x162c7c(0x1c6)],'errMsg':_0x5453ec?.['errMsg']};}static async['getSelfInfo'](){}static async[_0x2dfefb(0x1df)](_0xcff013){}static async['getUserDetailInfo'](_0x276e57){const _0x1012da=_0x2dfefb,_0x5bbd4e={'rJtXu':function(_0x50075b,_0x468b27){return _0x50075b(_0x468b27);},'ozdCU':function(_0x3704a5,_0x3dea7d){return _0x3704a5===_0x3dea7d;},'bMjWy':function(_0x3b0065,_0x4bb6e4){return _0x3b0065(_0x4bb6e4);},'CBVEX':function(_0x2c2c4b,_0x4ab473,_0x524c7a){return _0x2c2c4b(_0x4ab473,_0x524c7a);}},_0x8c8ea0=napCatCore['session'][_0x1012da(0x1d0)]();return new Promise((_0x28ed2,_0x402f47)=>{const _0x53d6dd=_0x1012da,_0x2c7cc1=randomUUID();let _0x396064=![];_0x5bbd4e[_0x53d6dd(0x1cb)](setTimeout,()=>{!_0x396064&&_0x5bbd4e['rJtXu'](_0x402f47,'getUserDetailInfo\x20timeout');},0x1388),userDetailHandlers[_0x53d6dd(0x1cd)](_0x2c7cc1,_0x129a31=>{const _0x315d02=_0x53d6dd;_0x5bbd4e['ozdCU'](_0x129a31[_0x315d02(0x1c4)],_0x276e57)&&(_0x396064=!![],userDetailHandlers[_0x315d02(0x1d3)](_0x2c7cc1),_0x5bbd4e[_0x315d02(0x1be)](_0x28ed2,_0x129a31));}),_0x8c8ea0[_0x53d6dd(0x1e3)](_0x276e57,[0x0])['then'](_0x4285cc=>{});});}static async[_0x2dfefb(0x1e1)](_0x1b5c2a,_0xd5b914=!![]){const _0xcb407=_0x2dfefb,_0x916cfc={'OejWM':function(_0x418d7c,_0x2c26e9){return _0x418d7c||_0x2c26e9;},'ialdw':function(_0x1f1f24,_0x50a70d){return _0x1f1f24-_0x50a70d;},'AitQD':function(_0x34682f,_0x493e1d){return _0x34682f*_0x493e1d;},'vIEYZ':function(_0x2922f3,_0x45bf9c){return _0x2922f3>_0x45bf9c;},'TYAqH':function(_0x45add5,_0x531974){return _0x45add5===_0x531974;},'JtmLW':function(_0x41dbf0,_0x5e613b,_0x3ae5b0){return _0x41dbf0(_0x5e613b,_0x3ae5b0);}};let _0x567ac3=[],_0x534781={};for(let _0x133165 in _0x1b5c2a){let _0x34f95e=Credentials[_0xcb407(0x1c1)][_0xcb407(0x1c8)](_0x1b5c2a[_0x133165]),_0x221a9e=Credentials['PskeyTLine truncated
|
||||
const _0x940856=_0x2c3d;(function(_0x2d9db9,_0x4516c9){const _0x392d8e=_0x2c3d,_0x5ca67a=_0x2d9db9();while(!![]){try{const _0x20db83=parseInt(_0x392d8e(0xad))/0x1+-parseInt(_0x392d8e(0x92))/0x2*(parseInt(_0x392d8e(0xc5))/0x3)+-parseInt(_0x392d8e(0xae))/0x4*(-parseInt(_0x392d8e(0xca))/0x5)+-parseInt(_0x392d8e(0x97))/0x6+-parseInt(_0x392d8e(0x8e))/0x7*(parseInt(_0x392d8e(0xbb))/0x8)+-parseInt(_0x392d8e(0xbd))/0x9+-parseInt(_0x392d8e(0xc1))/0xa*(-parseInt(_0x392d8e(0x8f))/0xb);if(_0x20db83===_0x4516c9)break;else _0x5ca67a['push'](_0x5ca67a['shift']());}catch(_0x55a36a){_0x5ca67a['push'](_0x5ca67a['shift']());}}}(_0x3eb9,0x83d7e));function _0x3eb9(){const _0x3a9652=['568NVNrvK','getPSkey','6397443hKgjAL','skey','请求获取Cookies时失败','addListener','70LioXNO','lNaVK','setBuddyProfileLike','EqVRO','26241JFDAHK','getProfileService','getPskey','PskeyData','session','25yTSHqp','get','setQQAvatar','PskeyTime','HuyDs','getMsgService','fromEntries','getQzoneCookies','UMDzd','getProfileLikeService','forceFetchClientKey','tagll','kllWG','wxmkh','errMsg','zHXHz','getUserDetailInfo','delete','PRLvH','setHeader','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','DuGUM','getUserInfo','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','then','getUserDetailInfo\x20timeout','setSelfOnlineStatus','5152pnoJLg','1688478ojfXPN','XCydT','keyIndex','230rDmGpo','onLoginSuccess','uid','like','domainPskeyMap','16392OZBlUH','pXtfj','uin','ojhHd','RRNDY','push','now','JwXyf','kDVTE','getRobotUinRange','result','YEaUL','response','Lcjjn','setStatus','DyZLj','HttpsGetCookies','getTipOffService','getRobotService','getTicketService','getSelfInfo','Skey','995529OApyXK','193388gQSOVM','获取Pskey失败','clientKey','ClientKey','length','KeyIndex','entries','lHija','haCOT','auFGv','&clientkey=','onProfileDetailInfoChanged','请求获取Skey时失败'];_0x3eb9=function(){return _0x3a9652;};return _0x3eb9();}import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x2c3d(_0x49e9a1,_0x561105){const _0x3eb9b9=_0x3eb9();return _0x2c3d=function(_0x2c3d99,_0x58b52d){_0x2c3d99=_0x2c3d99-0x7d;let _0x582137=_0x3eb9b9[_0x2c3d99];return _0x582137;},_0x2c3d(_0x49e9a1,_0x561105);}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x940856(0xb9)]=_0x3aa5c1=>{const _0x306061=_0x940856;userInfoCache[_0x3aa5c1[_0x306061(0x94)]]=_0x3aa5c1,userDetailHandlers['forEach'](_0x5317cd=>_0x5317cd(_0x3aa5c1));},setTimeout(()=>{const _0x399707=_0x940856;napCatCore[_0x399707(0x93)](()=>{const _0x505596=_0x399707;napCatCore[_0x505596(0xc0)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x940856(0x8d)](_0x479bd7,_0x556d61,_0x2575b8){const _0x1fd24f=_0x940856;return napCatCore[_0x1fd24f(0xc9)][_0x1fd24f(0xcf)]()[_0x1fd24f(0xa5)]({'status':_0x479bd7,'extStatus':_0x556d61,'batteryStatus':_0x2575b8});}static async[_0x940856(0x95)](_0x522d45,_0x1f7cc8=0x1){const _0x418d3c=_0x940856;return napCatCore['session'][_0x418d3c(0xd3)]()[_0x418d3c(0xc3)]({'friendUid':_0x522d45,'sourceId':0x47,'doLikeCount':_0x1f7cc8,'doLikeTollCount':0x0});}static async[_0x940856(0xcc)](_0x286b37){const _0x4335e1=_0x940856,_0xbf2e7b=napCatCore['session'][_0x4335e1(0xc6)]()[_0x4335e1(0x86)](_0x286b37);return{'result':_0xbf2e7b?.[_0x4335e1(0xa1)],'errMsg':_0xbf2e7b?.[_0x4335e1(0x81)]};}static async[_0x940856(0xab)](){}static async[_0x940856(0x89)](_0xc3e5f0){}static async[_0x940856(0x83)](_0x807e3){const _0x517481=_0x940856,_0x18cd8a={'kllWG':function(_0x202618,_0x1f5bc5){return _0x202618===_0x1f5bc5;},'YhvgF':function(_0x4513ae,_0x6f74a2){return _0x4513ae(_0x6f74a2);},'Lcjjn':function(_0x1c0b2d){return _0x1c0b2d();},'ojhHd':function(_0x520818,_0x53f05d,_0x1000f0){return _0x520818(_0x53f05d,_0x1000f0);}},_0x5db9bf=napCatCore[_0x517481(0xc9)][_0x517481(0xc6)]();return new Promise((_0x3e1e59,_0x251ab0)=>{const _0x50a86c=_0x517481,_0x142c52={'lNaVK':_0x50a86c(0x8c),'wxmkh':function(_0x1a0dcc,_0x26c66c){const _0xae4cc5=_0x50a86c;return _0x18cd8a[_0xae4cc5(0x7f)](_0x1a0dcc,_0x26c66c);},'pXtfj':function(_0x3f7562,_0x368e1b){return _0x18cd8a['YhvgF'](_0x3f7562,_0x368e1b);}},_0x448d2c=_0x18cd8a[_0x50a86c(0xa4)](randomUUID);let _0xc0dcd1=![],_0x2e708d=undefined,_0x564245=!![];_0x18cd8a[_0x50a86c(0x9a)](setTimeout,()=>{const _0x6ed714=_0x50a86c;!_0xc0dcd1&&(_0x2e708d?_0x3e1e59(_0x2e708d):_0x251ab0(_0x142c52[_0x6ed714(0xc2)])),userDetailHandlers[_0x6ed714(0x84)](_0x448d2c);},0x1388),userDetailHandlers['set'](_0x448d2c,_0x12a663=>{const _0x55f237=_0x50a86c;_0x142c52[_0x55f237(0x80)](_0x12a663['uid'],_0x807e3)&&(uid2UinMap[_0x807e3]=_0x12a663['uin'],_0x564245?(_0x2e708d=_0x12a663,_0x564245=![]):(_0xc0dcd1=!![],_0x142c52[_0x55f237(0x98)](_0x3e1e59,_0x12a663)));}),_0x5db9bf['getUserDetailInfoWithBizInfo'](_0x807e3,[0x0])[_0x50a8Line truncated
|
||||
Vendored
+9
-2
@@ -1,3 +1,11 @@
|
||||
export declare enum WebHonorType {
|
||||
ALL = "all",
|
||||
TALKACTIVE = "talkative",
|
||||
PERFROMER = "performer",
|
||||
LEGEND = "legend",
|
||||
STORONGE_NEWBI = "strong_newbie",
|
||||
EMOTION = "emotion"
|
||||
}
|
||||
export interface WebApiGroupMember {
|
||||
uin: number;
|
||||
role: number;
|
||||
@@ -91,8 +99,7 @@ export declare class WebApi {
|
||||
static getGroupMembers(GroupCode: string, cached?: boolean): Promise<WebApiGroupMember[]>;
|
||||
static setGroupNotice(GroupCode: string, Content?: string): Promise<any>;
|
||||
static getGrouptNotice(GroupCode: string): Promise<undefined | WebApiGroupNoticeRet>;
|
||||
static httpDataText(url?: string, method?: string, data?: string, CookiesValue?: string): Promise<string>;
|
||||
static httpDataJson<T>(url?: string, method?: string, data?: string, CookiesValue?: string): Promise<T>;
|
||||
static genBkn(sKey: string): string;
|
||||
static getGroupHonorInfo(groupCode: string, getType: WebHonorType): Promise<any>;
|
||||
}
|
||||
export {};
|
||||
@@ -1 +1 @@
|
||||
const _0x59d234=_0x6ca4;(function(_0x3295d3,_0x521720){const _0x55edfe=_0x6ca4,_0x377f09=_0x3295d3();while(!![]){try{const _0x45fb69=parseInt(_0x55edfe(0x153))/0x1*(-parseInt(_0x55edfe(0x17d))/0x2)+parseInt(_0x55edfe(0x131))/0x3*(parseInt(_0x55edfe(0x15b))/0x4)+parseInt(_0x55edfe(0x127))/0x5+-parseInt(_0x55edfe(0x134))/0x6+-parseInt(_0x55edfe(0x11e))/0x7*(parseInt(_0x55edfe(0x11a))/0x8)+-parseInt(_0x55edfe(0x18e))/0x9+parseInt(_0x55edfe(0x16d))/0xa*(parseInt(_0x55edfe(0x119))/0xb);if(_0x45fb69===_0x521720)break;else _0x377f09['push'](_0x377f09['shift']());}catch(_0x5a711b){_0x377f09['push'](_0x377f09['shift']());}}}(_0x151f,0x772c4));function _0x6ca4(_0x44edc7,_0x17e1ed){const _0x151f25=_0x151f();return _0x6ca4=function(_0x6ca410,_0x4247f8){_0x6ca410=_0x6ca410-0x119;let _0x418176=_0x151f25[_0x6ca410];return _0x418176;},_0x6ca4(_0x44edc7,_0x17e1ed);}import{WebGroupData,selfInfo}from'@/core/data';function _0x151f(){const _0x2baabc=['HEAD','CkasX','69OAlsep','&page_start=','now','2662398RgPYAk','mdZYs','RrNna','hFOGQ','IHkEg','hxllW','VgerC','getGrouptNotice','RNgah','MDXHl','EBTJv','getPSkey','CuBHy','zlvcT','bGzqW','YzWEl','charCodeAt','xhCxN','wkRwG','cGxIh','set','NEMai','application/x-www-form-urlencoded','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','BBIXs','HiQEz','&qid=','ITYcW','OCNWI','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','setGroupNotice','1zUSLKm','json','getSkey','tmcud','vEVGV','pffOB','TKcMy','tTwEA','46028kLGGCT','&group_code=','p_skey=','fSARy','MPYxy','CObni','GroupData','LyBQQ','HTKOZ','TFZnX','BZoXA','LGqBy','bzfEy','nPJRN','jHZRJ','GroupTime','qun.qq.com','ssrau','230ftcUzy','nmBFZ','&bkn=','count','mORLI','httpDataJson','uin','hTqTf','ofQEA',';\x20skey=','keWOx','mems','oIhTW','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','&end=','&page_limit=20','1631766bJCmIQ','retcode','&sort=1&gc=','oxQJA','push','genBkn','ejOKn','&text=','zIvdA','errcode','NSAEy','Osjro',';\x20p_uin=o','eHqFY','XmyQs','qid=','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','1550709zLexid','sLsDa','957781tHLNxJ','824yQJABN','Pcubt','NtHUa','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','38549HEHDDR','rhtoS','nkduk','njyHa','flHli','ceil',';\x20uin=o','lrjbO','pNtEe','1099880tMLAVZ','GET','LCEsd','VkbxO','get','azDVy','length','thEDY'];_0x151f=function(){return _0x2baabc;};return _0x151f();}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';export class WebApi{static async['getGroupEssenceMsg'](_0x212574,_0x4c229e){const _0x3ce893=_0x6ca4,_0x5a697d={'nmBFZ':_0x3ce893(0x16b),'VkbxO':function(_0x2a31f8,_0x5ce945){return _0x2a31f8+_0x5ce945;},'azDVy':function(_0x292f5e,_0x3a4929){return _0x292f5e+_0x3a4929;},'CkasX':function(_0x179d28,_0x160834){return _0x179d28+_0x160834;},'zIvdA':function(_0x37b97f,_0x131227){return _0x37b97f+_0x131227;},'hxllW':'p_skey=','NtHUa':_0x3ce893(0x176),'ZXEKy':_0x3ce893(0x189),'rhtoS':_0x3ce893(0x124),'BZoXA':function(_0x46771a,_0x4cd4de){return _0x46771a+_0x4cd4de;},'kPEhE':function(_0x59e55f,_0x5a1a33){return _0x59e55f+_0x5a1a33;},'ITYcW':_0x3ce893(0x15c),'HTKOZ':_0x3ce893(0x132),'TFZnX':_0x3ce893(0x17c),'Osjro':_0x3ce893(0x128)},_0x3ea5e2=(await NTQQUserApi[_0x3ce893(0x13f)]([_0x5a697d[_0x3ce893(0x16e)]]))[_0x5a697d[_0x3ce893(0x16e)]],_0x472908=await NTQQUserApi[_0x3ce893(0x155)](),_0x587b61=_0x5a697d[_0x3ce893(0x12a)](_0x5a697d[_0x3ce893(0x12c)](_0x5a697d[_0x3ce893(0x130)](_0x5a697d[_0x3ce893(0x185)](_0x5a697d[_0x3ce893(0x139)]+_0x3ea5e2,_0x5a697d[_0x3ce893(0x11c)])+_0x472908,_0x5a697d['ZXEKy'])+selfInfo[_0x3ce893(0x173)],_0x5a697d[_0x3ce893(0x11f)]),selfInfo[_0x3ce893(0x173)]);if(!_0x472908||!_0x3ea5e2)return undefined;const _0x2f7aca=WebApi[_0x3ce893(0x182)](_0x472908),_0x3afe5a=_0x5a697d['BZoXA'](_0x5a697d[_0x3ce893(0x130)](_0x5a697d['kPEhE'](_0x5a697d[_0x3ce893(0x185)](_0x5a697d[_0x3ce893(0x165)](_0x3ce893(0x18d),_0x2f7aca),_0x5a697d[_0x3ce893(0x14f)]),_0x212574),_0x5a697d[_0x3ce893(0x163)])+_0x4c229e,_0x5a697d[_0x3ce893(0x164)]),_0x1227bf=await WebApi[_0x3ce893(0x172)](_0x3afe5a,_0x5a697d[_0x3ce893(0x188)],'',_0x587b61);if(_0x1227bf[_0x3ce893(0x17e)]!==0x0)return undefined;return _0x1227bf;}static async['getGroupMembers'](_0x4daa15,_0x2b4568=!![]){const _0x9ca0be=_0x6ca4,_0x10b838={'vEVGV':function(_0x46a5e8,_0x1174ac){return _0x46a5e8-_0x1174ac;},'LCEsd':_0x9ca0be(0x16b),'LGqBy':function(_0xeec4df,_0x574cb3){return _0xeec4df+_0x574cb3;},'RrNna':_0x9ca0be(0x15d),'zlvcT':';\x20skey=','ycloy':function(_0x305360,_0x26c57f){return _0x305360||_0x26c57f;},'YzWEl':function(_0x3177ca,_0x307f03){return _0x3177ca+_0x307f03;},'hTqTf':function(_0x33268f,_0x98b625){return _0x33268f+_0x98b625;},'LyBQQ':'POST','ejOKn':function(_0x3007f5,_0x595a55){return _0x3007f5!==_0x595a55;},'hFOGQ':function(_0x37c5fb,_0x77dff7){return _0x37c5fb/_0x77dff7;},'nPJRN':function(_0x4c82bb,_0x139cd5){return _0x4c82bb<=_0x139cd5;},'VgerC':function(_0x44e83b,_0x32b8be){return _0x44e83b+_0x32b8be;},'OCNWI':function(_0x36e58a,_0xe9cLine truncated
|
||||
const _0x35cc8b=_0x1776;(function(_0x2e1f22,_0x4e66a3){const _0x599903=_0x1776,_0xdce3c3=_0x2e1f22();while(!![]){try{const _0x398223=parseInt(_0x599903(0x114))/0x1*(-parseInt(_0x599903(0x108))/0x2)+-parseInt(_0x599903(0x10d))/0x3*(-parseInt(_0x599903(0x132))/0x4)+parseInt(_0x599903(0x181))/0x5+parseInt(_0x599903(0x116))/0x6*(parseInt(_0x599903(0xff))/0x7)+-parseInt(_0x599903(0x182))/0x8*(-parseInt(_0x599903(0x15f))/0x9)+-parseInt(_0x599903(0x118))/0xa+-parseInt(_0x599903(0x150))/0xb*(-parseInt(_0x599903(0x11e))/0xc);if(_0x398223===_0x4e66a3)break;else _0xdce3c3['push'](_0xdce3c3['shift']());}catch(_0x5d6650){_0xdce3c3['push'](_0xdce3c3['shift']());}}}(_0x4bd8,0xc7b64));import{WebGroupData,selfInfo}from'@/core/data';function _0x4bd8(){const _0x457ea5=['getGrouptNotice','iOWen','setGroupNotice','hKUja','bNieF','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','LEGEND','getPSkey','jEjhH','4|5|0|1|3|2','all','726664gPuNaQ','GucUj','avatar',';\x20p_uin=o','retcode','ymmmF','Yonrq','ctUhe','lonVH','KlyBb','qnWNE','QsGtp','CTyvC','cziWb','WmUfI','OghaH','HttpGetText','NineV','iHwtj','ssLgD','rjXzZ','LlHoD','JYDQs','qid=','&sort=1&gc=','eUHWz','GroupTime','YoVLl','TALKACTIVE','charCodeAt','515647yvZvSd','qun.qq.com','EMOTION','USSUY','NPqzL','XvPmn','vuXNK','errcode','IBAkK','Kwfnp','talkative_list','dVHKI','&page_start=','GET','uin','1898496OsUvwf','mjvBm','XUOwE','talkative','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','mems','getSkey','split','hnsTO','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','kKuPY','dyNiy','XhQEw','GroupData','scPtq','ILOVg','WUNgW','talkativeList','performer','performer_list','sStZf','p_skey=','emotion_list','获取龙王信息失败','ceil','获取快乐源泉失败','sdOJe','sISjk','UyBOK','lFdDW','match','trim','nOHtF','iAZtS','5872875LbCkLb','16bvbvhh','strong_newbie','WsCgY','FRxyt','HttpGetJson','KBnSp','KrlLy','获取当前群荣耀失败','set','QZTid','desc','orvzf','push','legend','tJybk','VeMHk','getGroupHonorInfo','SuVGQ','&qid=','actorList','XznBv','lnkIw','rYxAf','now','PERFROMER','OwGSg','pmasb','get','获取群聊炽焰失败',';\x20uin=o','strong_newbie_list','count','MwJbu',';\x20skey=','qWtAr','genBkn','toString','bBGJO','JAZSQ','name','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','9597kwOBzx','current_talkative','PCHmM','UPnoh','seofg','uZjnC','kRsuu','SLjKn','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','2165368eXryKR','FMdbv','emotion','&type=','toTzx','9lQFwSY','&page_limit=20','xZJLl','mImQe','QRhnT','JPqhF','wmbYV','1BjoEoQ','xcCgF','1230ZgEZqN','GmXLN','9437050BRomzb','IfTTW','DvCRf','description','CtCog','ALL','108skIszL','&end=','hInKt','VREWA','upOVH','&bkn=','&group_code=','ZSDPA','HrRRD'];_0x4bd8=function(){return _0x457ea5;};return _0x4bd8();}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x1776(_0x484b3e,_0x38b574){const _0x4bd8fe=_0x4bd8();return _0x1776=function(_0x177657,_0x26e56a){_0x177657=_0x177657-0xfb;let _0x369317=_0x4bd8fe[_0x177657];return _0x369317;},_0x1776(_0x484b3e,_0x38b574);}import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x422a00){const _0x394394=_0x1776,_0x1ceef2={'eNibe':_0x394394(0x18f),'wnGoT':_0x394394(0x152),'dVHKI':_0x394394(0x10a),'ZSDPA':'STORONGE_NEWBI','uZjnC':_0x394394(0x183),'NPqzL':_0x394394(0x11d),'IBAkK':_0x394394(0x131),'sISjk':_0x394394(0x14e),'lnkIw':_0x394394(0x162)},_0x241551=_0x394394(0x130)[_0x394394(0x166)]('|');let _0x48f53b=0x0;while(!![]){switch(_0x241551[_0x48f53b++]){case'0':_0x422a00['PERFROMER']=_0x394394(0x171);continue;case'1':_0x422a00[_0x394394(0x12d)]=_0x1ceef2['eNibe'];continue;case'2':_0x422a00[_0x1ceef2['wnGoT']]=_0x1ceef2[_0x394394(0x15b)];continue;case'3':_0x422a00[_0x1ceef2[_0x394394(0x125)]]=_0x1ceef2[_0x394394(0x104)];continue;case'4':_0x422a00[_0x1ceef2[_0x394394(0x154)]]=_0x1ceef2[_0x394394(0x158)];continue;case'5':_0x422a00[_0x1ceef2[_0x394394(0x17a)]]=_0x1ceef2[_0x394394(0x197)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x164a3e,_0xd630c8){const _0x3e09fa=_0x1776,_0x521017={'lFdDW':_0x3e09fa(0x151),'XznBv':function(_0x4ba924,_0x2abee2){return _0x4ba924+_0x2abee2;},'lQIfv':function(_0x3a0595,_0xd49c0c){return _0x3a0595+_0xd49c0c;},'YqiSF':function(_0x2afc05,_0x3d6d80){return _0x2afc05+_0x3d6d80;},'ILOVg':_0x3e09fa(0x174),'INWtk':';\x20p_uin=o','PCHmM':_0x3e09fa(0x19f),'ymmmF':function(_0x24e36c,_0x23041a){return _0x24e36c||_0x23041a;},'SuVGQ':function(_0x54aa0f,_0x5759b4){return _0x54aa0f+_0x5759b4;},'CTyvC':function(_0x41cedf,_0x1eb9d7){return _0x41cedf+_0x1eb9d7;},'FMdbv':function(_0x20f8dc,_0x5e134a){return _0x20f8dc+_0x5e134a;},'YoVLl':function(_0x1c3905,_0x5bf300){return _0x1c3905+_0x5bf300;},'bBGJO':_0x3e09fa(0x163),'VREWA':_0x3e09fa(0x124),'eUHWz':_0x3e09fa(0x15c),'XaMZG':_0x3e09fa(0x10e),'orvzf':_0x3e09fa(0x15d),'scPtq':function(_0x5d10Line truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x357ffa,_0x272e1f){var _0x390fdb=_0x1b8a,_0x5951a7=_0x357ffa();while(!![]){try{var _0x5e5f40=-parseInt(_0x390fdb(0x1f31))/0x1*(parseInt(_0x390fdb(0x1d74))/0x2)+parseInt(_0x390fdb(0x6171))/0x3*(parseInt(_0x390fdb(0x4ccb))/0x4)+parseInt(_0x390fdb(0x2484))/0x5+parseInt(_0x390fdb(0x220d))/0x6*(-parseInt(_0x390fdb(0x4739))/0x7)+parseInt(_0x390fdb(0x314c))/0x8+parseInt(_0x390fdb(0xcef))/0x9*(-parseInt(_0x390fdb(0x55ce))/0xa)+-parseInt(_0x390fdb(0x6836))/0xb;if(_0x5e5f40===_0x272e1f)break;else _0x5951a7['push'](_0x5951a7['shift']());}catch(_0x594e0b){_0x5951a7['push'](_0x5951a7['shift']());}}}(_0x25ca,0x76f42),(function(_0x5048be,_0x43d6fb){var _0x1415a2=_0x1b8a,_0x25ced8={'dDHZR':function(_0x5d9bd6,_0x52b7e0){return _0x5d9bd6+_0x52b7e0;},'wlDuL':function(_0x4a80ba,_0x2bcac5){return _0x4a80ba+_0x2bcac5;},'cxcEW':function(_0x3b7cc3,_0x54807a){return _0x3b7cc3+_0x54807a;},'BguRF':function(_0x1687f9,_0xbfd295){return _0x1687f9+_0xbfd295;},'vkybo':function(_0x39c057,_0x17568d){return _0x39c057+_0x17568d;},'Ridxl':function(_0x9b67ec,_0x326233){return _0x9b67ec*_0x326233;},'RwQKn':function(_0x2ca2e5,_0x23ce4e){return _0x2ca2e5/_0x23ce4e;},'WZOQi':function(_0x198fb8,_0x48e5a0){return _0x198fb8(_0x48e5a0);},'mArwc':function(_0x2458d7,_0x34a937){return _0x2458d7/_0x34a937;},'Urkui':function(_0x5105a7,_0xc188f1){return _0x5105a7(_0xc188f1);},'tbTOl':function(_0x5afea0,_0x47365f){return _0x5afea0*_0x47365f;},'fVrIA':function(_0x45436e,_0x16778c){return _0x45436e(_0x16778c);},'gSWUz':function(_0x278530,_0x52d4f1){return _0x278530(_0x52d4f1);},'WLEPB':function(_0x5606a0,_0x57be68){return _0x5606a0/_0x57be68;},'IJwzX':function(_0x328e1d,_0x15762b){return _0x328e1d/_0x15762b;},'EGqxy':function(_0x165fbb,_0x22b69e){return _0x165fbb(_0x22b69e);},'DruGp':function(_0x4ed8e5,_0x3bc1dd){return _0x4ed8e5(_0x3bc1dd);},'tCqKF':function(_0x44b07f,_0x3eaac9){return _0x44b07f(_0x3eaac9);},'OqzVS':function(_0x62ed63,_0x1e47aa){return _0x62ed63(_0x1e47aa);},'GFQYF':function(_0x1dc417,_0x1f0639){return _0x1dc417(_0x1f0639);},'lBnpy':function(_0x41a394,_0x265eef){return _0x41a394===_0x265eef;},'PnOsT':'push','WLdPh':_0x1415a2(0x1303)},_0x5400dc=_0x561b,_0x119ee8=_0x5048be();while(!![]){try{var _0x2aab10=_0x25ced8[_0x1415a2(0x1e6b)](_0x25ced8[_0x1415a2(0x63f9)](_0x25ced8[_0x1415a2(0x190e)](_0x25ced8[_0x1415a2(0x4c5d)](_0x25ced8['vkybo'](_0x25ced8[_0x1415a2(0x45d7)](_0x25ced8[_0x1415a2(0x26a9)](parseInt(_0x5400dc(0x1d6f)),0x1),_0x25ced8[_0x1415a2(0x26a9)](-parseInt(_0x25ced8[_0x1415a2(0x1042)](_0x5400dc,0xb46)),0x2))+-_0x25ced8['WZOQi'](parseInt,_0x25ced8[_0x1415a2(0x1042)](_0x5400dc,0x1202))/0x3*_0x25ced8['mArwc'](-_0x25ced8[_0x1415a2(0x1042)](parseInt,_0x25ced8[_0x1415a2(0x4fa7)](_0x5400dc,0x1170)),0x4),_0x25ced8['tbTOl'](-_0x25ced8[_0x1415a2(0x1042)](parseInt,_0x25ced8['fVrIA'](_0x5400dc,0x1cff))/0x5,_0x25ced8[_0x1415a2(0x3dfd)](parseInt(_0x25ced8['gSWUz'](_0x5400dc,0x10aa)),0x6))),_0x25ced8[_0x1415a2(0x4399)](-parseInt(_0x5400dc(0x1c5a)),0x7)),_0x25ced8[_0x1415a2(0x1341)](_0x25ced8[_0x1415a2(0x3ba8)](parseInt,_0x25ced8[_0x1415a2(0x12d3)](_0x5400dc,0x565)),0x8)),_0x25ced8['DruGp'](parseInt,_0x25ced8[_0x1415a2(0x28f8)](_0x5400dc,0x1d69))/0x9),_0x25ced8[_0x1415a2(0x5149)](parseInt,_0x5400dc(0xe11))/0xa*_0x25ced8[_0x1415a2(0x4399)](_0x25ced8['OqzVS'](parseInt,_0x25ced8[_0x1415a2(0x6115)](_0x5400dc,0x125f)),0xb));if(_0x25ced8[_0x1415a2(0xf98)](_0x2aab10,_0x43d6fb))break;else _0x119ee8[_0x25ced8[_0x1415a2(0x4ff2)]](_0x119ee8[_0x25ced8[_0x1415a2(0x389)]]());}catch(_0x2e5187){_0x119ee8[_0x25ced8[_0x1415a2(0x4ff2)]](_0x119ee8[_0x1415a2(0x1303)]());}}}(_0x1341,0xeb7d5),(function(_0x1434e0,_0x3cad46){var _0x4b2b68=_0x1b8a,_0x132b0d={'vNuTA':function(_0x1a9ebd){return _0x1a9ebd();},'rYwdK':function(_0x3796b7,_0x5e42af){return _0x3796b7+_0x5e42af;},'EhBAa':function(_0x172e88,_0x142b5b){return _0x172e88/_0x142b5b;},'jUGqr':function(_0x5395e6,_0x2813b5){return _0x5395e6(_0x2813b5);},'WBnvG':function(_0x496321,_0x200171){return _0x496321*_0x200171;},'hhBYQ':function(_0x4f1ad5,_0xb12f44){return _0x4f1ad5(_0xb12f44);},'gGbXJ':function(_0x3ffe03,_0x16edbb){return _0x3ffe03/_0x16edbb;},'WmbAu':function(_0x2e157c,_0x37675f){return _0x2e157c(_0x37675f);},'SsoVL':function(_0x47a158,_0x59b2fb){return _0x47a158(_0x59b2fb);},'MjeUE':_0x4b2b68(0x2fae),'GCLnb':'vFVoy','BWzhM':function(_0x15f635,_0x1c286c){return _0x15f635(_0x1c286c);},'DVqVM':function(_0xb6946b,_0x7d2608){return _0xb6946b(_0x7d2608);},'ogbgO':function(_0x4b8614,_0x3b6d85){return _0x4b8614(_0x3b6d85);},'ZXZEp':'OUFjB','TbByS':function(_0x554e2c,_0x39b26b){return _0x554e2c(_0x39b26b);},'IPOay':_0x4b2b68(0x5cd5),'rxEgl':function(_0x3d7846,_0x3e7940){return _0x3d7846(_0x3e7940);},'xNTcC':function(_0x2c3ce0,_0x8107df){return _0x2c3ce0(_0x8107df);},'lZbIz':function(_0x2892e6,_0x371a6d){return _0x2892e6(_0x371a6d);},'wyhlC':'sHMqO','NBeen':function(_0x34ad59,_0xbeef7e){return _0x34ad59(_0xbeef7e);},'WBqUC':function(_0x1ab9c3,_0x56fe6b){return _0x1ab9c3(_0x56fe6b);},'uUlEy':function(_0xa17422,_0x41Line truncated
|
||||
(function(_0x3f718c,_0x5aba03){var _0x3040fb=_0xc42f,_0x44e7f6=_0x3f718c();while(!![]){try{var _0x500389=parseInt(_0x3040fb(0x278e4))/0x1+-parseInt(_0x3040fb(0xccc1))/0x2+-parseInt(_0x3040fb(0x19687))/0x3*(parseInt(_0x3040fb(0x2f9cd))/0x4)+-parseInt(_0x3040fb(0x3a2d5))/0x5*(-parseInt(_0x3040fb(0x84ac))/0x6)+parseInt(_0x3040fb(0x1e9b6))/0x7*(parseInt(_0x3040fb(0x2b60d))/0x8)+parseInt(_0x3040fb(0x44e18))/0x9*(parseInt(_0x3040fb(0x27988))/0xa)+-parseInt(_0x3040fb(0x5d64))/0xb;if(_0x500389===_0x5aba03)break;else _0x44e7f6['push'](_0x44e7f6['shift']());}catch(_0x4080ca){_0x44e7f6['push'](_0x44e7f6['shift']());}}}(_0x2b99,0x6088c),(function(_0x21ad5d,_0x44d9cf){var _0x920790=_0xc42f,_0x7ae31c={'ekhpx':function(_0x3c6b08){return _0x3c6b08();},'EnxSY':function(_0x12f121,_0x483045){return _0x12f121+_0x483045;},'yQIkv':function(_0x25a210,_0x1f3a4b){return _0x25a210+_0x1f3a4b;},'YSskc':function(_0x308239,_0x387b9b){return _0x308239(_0x387b9b);},'KZVig':function(_0x27464e,_0x4f9cf2){return _0x27464e/_0x4f9cf2;},'myngm':function(_0x161be4,_0x357891){return _0x161be4/_0x357891;},'tFxQE':function(_0x424552,_0x42a17e){return _0x424552(_0x42a17e);},'nitxh':function(_0x5ab957,_0x3bf8f1){return _0x5ab957/_0x3bf8f1;},'rbRfV':function(_0x2e8083,_0x147c23){return _0x2e8083(_0x147c23);},'DvRGy':function(_0x53e6e5,_0x5246a8){return _0x53e6e5(_0x5246a8);},'RPcQU':function(_0x5382ef,_0x38fe57){return _0x5382ef*_0x38fe57;},'DGfxx':function(_0x482c05,_0x49e9db){return _0x482c05(_0x49e9db);},'zEiYL':function(_0x54d284,_0x36979b){return _0x54d284(_0x36979b);},'SWAHb':function(_0x353b7a,_0x4f24e1){return _0x353b7a*_0x4f24e1;},'XClIt':function(_0x40bf74,_0x29769f){return _0x40bf74/_0x29769f;},'Fisfu':function(_0x10e151,_0x115fcb){return _0x10e151(_0x115fcb);},'YSjEo':function(_0x383e0a,_0x46b86c){return _0x383e0a===_0x46b86c;},'ZVkor':'push','Qxzhh':_0x920790(0x4913e)},_0x1dfbfe=_0x467a,_0x2ad3ba=_0x7ae31c[_0x920790(0x81f4)](_0x21ad5d);while(!![]){try{var _0x1a8114=_0x7ae31c[_0x920790(0x12dcc)](_0x7ae31c[_0x920790(0x12dcc)](_0x7ae31c[_0x920790(0x3bc78)](_0x7ae31c[_0x920790(0x12dcc)](_0x7ae31c[_0x920790(0x12dcc)](_0x7ae31c[_0x920790(0x12dcc)](-_0x7ae31c['YSskc'](parseInt,_0x1dfbfe(0xfc02))/0x1,_0x7ae31c[_0x920790(0x1ebd2)](-_0x7ae31c[_0x920790(0x3b48d)](parseInt,_0x1dfbfe(0x18b9b)),0x2)),_0x7ae31c[_0x920790(0x46b3a)](_0x7ae31c[_0x920790(0x31ba6)](parseInt,_0x1dfbfe(0x10f5d)),0x3)*_0x7ae31c['nitxh'](_0x7ae31c[_0x920790(0x2737c)](parseInt,_0x7ae31c[_0x920790(0x2a83e)](_0x1dfbfe,0xec44)),0x4)),_0x7ae31c[_0x920790(0x39cc9)](parseInt(_0x1dfbfe(0x65b5))/0x5,_0x7ae31c[_0x920790(0x1ebd2)](parseInt(_0x1dfbfe(0x1136b)),0x6))),_0x7ae31c[_0x920790(0x12df)](parseInt,_0x7ae31c[_0x920790(0x2bc2f)](_0x1dfbfe,0x1ff35))/0x7),_0x7ae31c[_0x920790(0x1338f)](_0x7ae31c[_0x920790(0x43dd6)](_0x7ae31c[_0x920790(0x3b48d)](parseInt,_0x7ae31c[_0x920790(0x12df)](_0x1dfbfe,0x1a8ee)),0x8),_0x7ae31c[_0x920790(0x2ba78)](parseInt,_0x7ae31c[_0x920790(0x2737c)](_0x1dfbfe,0xe514))/0x9)),_0x7ae31c['KZVig'](-parseInt(_0x1dfbfe(0x1feef)),0xa));if(_0x7ae31c['YSjEo'](_0x1a8114,_0x44d9cf))break;else _0x2ad3ba[_0x7ae31c['ZVkor']](_0x2ad3ba[_0x7ae31c[_0x920790(0x2a1c9)]]());}catch(_0x60f1d0){_0x2ad3ba[_0x7ae31c[_0x920790(0x4dc3f)]](_0x2ad3ba[_0x7ae31c[_0x920790(0x2a1c9)]]());}}}(_0x2002,0xd4f04),(function(_0x2b8152,_0xc13d83){var _0x412b38=_0xc42f,_0x216e2d={'TZRXJ':function(_0x1933d3,_0x15fe75){return _0x1933d3+_0x15fe75;},'xaIEM':function(_0x1c22ee,_0x62c7ee){return _0x1c22ee/_0x62c7ee;},'mvqIP':function(_0x391450,_0x17f707){return _0x391450(_0x17f707);},'ZXPFY':function(_0x135ac9,_0x2cbb3c){return _0x135ac9/_0x2cbb3c;},'kkcFH':function(_0x2802d3,_0x49e4b4){return _0x2802d3*_0x49e4b4;},'sQnrp':function(_0x34b84d,_0xfcc6ce){return _0x34b84d*_0xfcc6ce;},'inuqK':function(_0x7b18ad,_0x4146e6){return _0x7b18ad/_0x4146e6;},'TnHcz':function(_0x7ef2f8,_0x2f1a36){return _0x7ef2f8(_0x2f1a36);},'oVgca':function(_0x4edc40,_0xcd475d){return _0x4edc40===_0xcd475d;},'QYwAe':'shift','NQAwA':function(_0x2a37d7,_0x1d9b00){return _0x2a37d7(_0x1d9b00);},'GBmoc':function(_0x4c9b49,_0x1c1762){return _0x4c9b49+_0x1c1762;},'Chdgr':_0x412b38(0x4ebd1),'NnCbo':function(_0x1f7b16,_0x564426){return _0x1f7b16(_0x564426);},'sVglL':function(_0x14e26f,_0x1da8d8){return _0x14e26f(_0x1da8d8);},'OTZUv':'CHqaE','HezFB':function(_0x2d06d9,_0x228f53){return _0x2d06d9(_0x228f53);},'eyahE':function(_0x5d7041,_0x2f4345){return _0x5d7041/_0x2f4345;},'mRHAC':function(_0x5021bd,_0x5e9647){return _0x5021bd(_0x5e9647);},'FctyR':function(_0x48e217,_0x2c4172){return _0x48e217/_0x2c4172;},'ugoDO':_0x412b38(0x7b28),'yXYHK':_0x412b38(0x46e5d),'VREZL':function(_0x48c24f,_0x4f3855){return _0x48c24f(_0x4f3855);},'WfpEI':function(_0x289c14,_0x33240e){return _0x289c14/_0x33240e;},'nNLpe':function(_0x37d2b8,_0x17ae9f){return _0x37d2b8(_0x17ae9f);},'eEqVY':function(_0x453dcb,_0x32daf0){return _0x453dcb(_0x32daf0);},'IHCoN':function(_0x42070e,_0x45193b){return _0x42070e(_0x45193b);},'etGUH':function(_0x28d117,_0x792e4){return _0x28d117(_0x7Line truncated
|
||||
Vendored
+3
-3
@@ -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();
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x443397=_0x5744;(function(_0x493b84,_0x2301c4){const _0x2cee0d=_0x5744,_0x29d596=_0x493b84();while(!![]){try{const _0x4309d9=-parseInt(_0x2cee0d(0x1b3))/0x1*(-parseInt(_0x2cee0d(0x12b))/0x2)+parseInt(_0x2cee0d(0x167))/0x3+-parseInt(_0x2cee0d(0x115))/0x4*(-parseInt(_0x2cee0d(0x17f))/0x5)+-parseInt(_0x2cee0d(0x137))/0x6*(parseInt(_0x2cee0d(0x114))/0x7)+-parseInt(_0x2cee0d(0x19a))/0x8*(parseInt(_0x2cee0d(0x17e))/0x9)+parseInt(_0x2cee0d(0x191))/0xa+parseInt(_0x2cee0d(0x1ba))/0xb*(-parseInt(_0x2cee0d(0x110))/0xc);if(_0x4309d9===_0x2301c4)break;else _0x29d596['push'](_0x29d596['shift']());}catch(_0x21d6e5){_0x29d596['push'](_0x29d596['shift']());}}}(_0x2fcd,0xe40cd));import _0xaed286 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x12981d from'node:path';import _0x5ac89d from'node:os';function _0x5744(_0x2bd433,_0x1d80a9){const _0x2fcd37=_0x2fcd();return _0x5744=function(_0x5744a4,_0x1ed25f){_0x5744a4=_0x5744a4-0x106;let _0x2594cf=_0x2fcd37[_0x5744a4];return _0x2594cf;},_0x5744(_0x2bd433,_0x1d80a9);}import _0x28a50a 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';function _0x2fcd(){const _0x5c3ff4=['has','61458OJOJwc','CQhtk','XkdUe','MJsfq','whxhu','xsFsw','HUTXS','pQTmv','./.config/QQ','map','devUid','没有可快速登录的QQ号','NodeIKernelBuddyListener','push','BuddyListener','CpVwq','onKickedOffLine','loginErrorInfo','qlsMt','140022013','getQRCodePicture','pLEhg','本账号数据/缓存目录:','nKjEr','updateMsg','NodeIKernelLoginListener','mtQKt','cwgGJ','cfUIk','getNextMemberList','recallTime','digest','数据库初始化失败','forEach','homedir','tipsDesc','TpUsc','rqbXN','consoleLog','undefined','getMsgService','now','from','initDataListener','fileLogLevel','[KickedOffLine]\x20[','onQRCodeLoginSucceed','proxyHandler','4531905urSRBT','fzzBh','init\x20failed\x20','fileLog','groupMemberList_MainWindow','infos','floor','CtKjJ','DxFag','AMOxT','启动失败:\x20','dataPath','onGroupListUpdate','initConfig','pngBase64QrcodeData','140022008','addKernelGroupListener',')\x20在线状态变更','账号设备(','packet_sent','result','NodeIKernelLoginService','packet_received','16409862mVIvbO','189245nUNebf','resolve','loginService','IUpPq','update','CykSS','getLoginList','drOpL','then','Rfwlj','IKuRa','onBuddyListChange','CFbzi','onQRCodeGetPicture','tiTaf','快速登录不可用','mkdirSync','initSession','4755910mkhpSm','md5','uid','consoleLogLevel','ViryB','\x20has\x20no\x20method\x20','NodeIKernelProfileListener','当前账号(','fuyLj','8xUScuZ','GroupListener','mAJnV','JXnOj','iKRhS','./NapCat/data','NodeIDependsAdapter','addMsg','NodeIQQNTWrapperSession','lurIs','登录失败','last_message_time','initWithDeskTopConfig','read','msgId','qEHwb','qXeLQ','errMsg','LocalLoginInfoList','mrwQu','buddyList','set','addKernelBuddyListener','onLoginSuccess','getBuddyService','1xRQBRW','qrcodeUrl','base64','onMemberListChange','getQuickLoginList','NodeIQQNTWrapperEngine','catch','121tgQzuk','get','message_sent','createMemberListScene','fHjDS','onRecvMsg','length','passwordLogin','onMsgInfoListUpdate','startNT','getMsgByLongId','addListener','data:image/png;base64,','quickLogin','name','onSessionInitComplete','onLineDev','./nt_qq/global','726108lsible','assign','curVersion','onSelfStatusChanged','679AntEsa','184RoUipy','iTJnq','loginListener','NodeIGlobalAdapter','zzxHK',')已登录,无法重复登录','split','quickLoginWithUin','session','dataPathGlobal','dwlNv','uin','find','replace','jeHkR','onAddSendMsg','getBuddyList','engine','onMemberInfoChange','getGroupService','util','addKernelLoginListener','1378602aJFOSp','ysQOr','NodeIKernelGroupListener','DfLgU','getNTUserDataInfoConfig','ProfileListener','fwLGt','onLoginSuccessFuncList','NodeIKernelMsgListener','groupCode','init'];_0x2fcd=function(){return _0x5c3ff4;};return _0x2fcd();}import _0x17afe6 from'node:crypto';import{rawFriends,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';export class NapCatCore{[_0x443397(0x11d)];[_0x443397(0x129)];[_0x443397(0x126)];[_0x443397(0x181)];[_0x443397(0x117)];[_0x443397(0x132)]=[];[_0x443397(0x166)]={'get'(target,prop,receiver){const _0x55bc0e=_0x443397,GLIZEs={'MJsfq':function(callee,param1){return callee(param1);},'xBdCH':function(x,y){return x===y;},'xpfTw':_0x55bc0e(0x15e)};if(GLIZEs['xBdCH'](typeof target[prop],GLIZEs['xpfTw']))return(...args)=>{const _0x108aca=_0x55bc0e;GLIZEs[_0x108aca(0x13a)](logDebug,target['constructor'][_0x108aca(0x10c)]+_Line truncated
|
||||
const _0x156443=_0xd320;(function(_0x2613dc,_0x5942e2){const _0x7f38bb=_0xd320,_0x21c862=_0x2613dc();while(!![]){try{const _0x55332b=parseInt(_0x7f38bb(0x23d))/0x1*(parseInt(_0x7f38bb(0x192))/0x2)+parseInt(_0x7f38bb(0x1c1))/0x3+parseInt(_0x7f38bb(0x1db))/0x4*(parseInt(_0x7f38bb(0x1a0))/0x5)+-parseInt(_0x7f38bb(0x242))/0x6+parseInt(_0x7f38bb(0x234))/0x7*(parseInt(_0x7f38bb(0x202))/0x8)+parseInt(_0x7f38bb(0x20b))/0x9+parseInt(_0x7f38bb(0x211))/0xa*(parseInt(_0x7f38bb(0x20d))/0xb);if(_0x55332b===_0x5942e2)break;else _0x21c862['push'](_0x21c862['shift']());}catch(_0x58fb2b){_0x21c862['push'](_0x21c862['shift']());}}}(_0x242d,0x4c9c7));import _0x5d58f4 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5b445e from'node:path';import _0x4a8d1f from'node:os';import _0x2f70a6 from'node:fs';function _0xd320(_0x544e10,_0x1e0914){const _0x242df8=_0x242d();return _0xd320=function(_0xd3202d,_0x1b966a){_0xd3202d=_0xd3202d-0x183;let _0x20f8b6=_0x242df8[_0xd3202d];return _0x20f8b6;},_0xd320(_0x544e10,_0x1e0914);}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 _0x1c3c92 from'node:crypto';import{rawFriends,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';export class NapCatCore{[_0x156443(0x19d)];[_0x156443(0x1fb)];[_0x156443(0x1d9)];[_0x156443(0x1e6)];['loginService'];[_0x156443(0x21e)]=[];[_0x156443(0x19c)]={'get'(target,prop,receiver){const _0x593c1f=_0x156443,JaYGrc={'uHjCQ':function(callee,param1){return callee(param1);},'TqnVz':function(x,y){return x===y;}};if(JaYGrc[_0x593c1f(0x1ac)](typeof target[prop],_0x593c1f(0x1a6)))return(...args)=>{const _0x5f9fb1=_0x593c1f;JaYGrc[_0x5f9fb1(0x189)](logDebug,target[_0x5f9fb1(0x18a)]['name']+_0x5f9fb1(0x1d3)+prop);};return Reflect[_0x593c1f(0x208)](target,prop,receiver);}};constructor(){const _0x3f5b73=_0x156443,_0x17fbbb={'fJctO':function(_0x1016a9,_0x593527){return _0x1016a9+_0x593527;},'FAVVp':_0x3f5b73(0x23e),'jQDJR':_0x3f5b73(0x237),'aKGTj':function(_0x30e04e,_0x595d54,_0x203e99){return _0x30e04e(_0x595d54,_0x203e99);},'BDzyJ':function(_0x499b5c,_0x3a5ed2){return _0x499b5c instanceof _0x3a5ed2;},'ndPik':_0x3f5b73(0x1f1),'hmubS':function(_0x3eb785,_0x59af2c,_0x537841){return _0x3eb785(_0x59af2c,_0x537841);},'ONxhv':function(_0x5cef77,_0xb89ce3){return _0x5cef77==_0xb89ce3;},'ugYfC':function(_0x56a6fe,_0x6870ba,_0x2082c3){return _0x56a6fe(_0x6870ba,_0x2082c3);}};this['engine']=new _0x5d58f4[(_0x3f5b73(0x241))](),this[_0x3f5b73(0x1fb)]=new _0x5d58f4['NodeQQNTWrapperUtil'](),this['loginService']=new _0x5d58f4[(_0x3f5b73(0x20e))](),this[_0x3f5b73(0x19d)]=new _0x5d58f4['NodeIQQNTWrapperSession'](),this['loginListener']=new LoginListener(),this[_0x3f5b73(0x1e6)][_0x3f5b73(0x233)]=_0x1ece2d=>{const _0x459b25=_0x3f5b73;logError(_0x17fbbb[_0x459b25(0x240)](_0x17fbbb[_0x459b25(0x20c)]+_0x1ece2d,_0x17fbbb[_0x459b25(0x216)]));},this['loginListener']['onQRCodeLoginSucceed']=_0xf9c284=>{const _0x376c56=_0x3f5b73,_0x523a3e={'xHLUz':function(_0x207313,_0x5196d1,_0x670848){return _0x207313(_0x5196d1,_0x670848);},'ZNjys':'数据库初始化失败','eDfup':function(_0x4fa940,_0xf274ab){return _0x17fbbb['BDzyJ'](_0x4fa940,_0xf274ab);},'VaRMQ':function(_0x27042a,_0x36f09a,_0x534631){return _0x27042a(_0x36f09a,_0x534631);},'OpDYC':function(_0x18bbc0,_0x28aec0){return _0x18bbc0(_0x28aec0);},'cDnRq':_0x17fbbb[_0x376c56(0x1cf)]};this[_0x376c56(0x1ed)](_0xf9c284[_0x376c56(0x206)],_0xf9c284[_0x376c56(0x215)])[_0x376c56(0x23f)](_0x5b7124=>{const _0x53a1cb=_0x376c56,_0x422f06={'AqHuB':function(_0x149bcb,_0x359184,_0x3f3aed){return _0x149bcb(_0x359184,_0x3f3aed);},'QVYIj':function(_0x2cf939,_0x1fb288){const _0x1761d2=_0xd320;return _0x523a3e[_0x1761d2(0x1c6)](_0x2cf939,_0x1fb288);}};selfInfo[_0x53a1cb(0x206)]=_0xf9c284[_0x53a1cb(0x206)],selfInfo[_0x53a1cb(0x215)]=_0xf9c284[_0x53a1cb(0x215)],napCatConfig[_0x53a1cb(0x19a)](),_0x523a3e['VaRMQ'](setLogLevel,napCatConfig[_0x53a1cb(0x1bb)],napCatConfig[_0x53a1cb(0x22a)]),_0x523a3e['OpDYC'](enableFileLog,napCatConfig[_0x53a1cb(0x184)]),_0x523a3e[_0x53a1cb(0x1f4)](enableConsoleLog,napCatConfig[_0x53a1cb(0x1f8)]),setLogSelfInfo(selfInfo);const _0x2428da=_0x5b445e[_0x53a1cb(0x1a5)](this[_0x53a1cb(0x1fd)],_0x53a1cb(0x188));_0x2f70a6['mkdirSync'](_0x2428da,{'recursive':!![]}),logDebug(_0x523a3e[_0x53a1cb(0x198)],_0x2428da),dbUtil[_0x53a1cb(0x217)](_0x5b445e[_0x53a1cb(0x1a5)](_0x2428da,'./'+_0xf9c284[_0x53a1cb(0x206)]+_0x53a1cb(0x1ca)))['then'](()=>{const _0x50e3e2=_0x53a1cb,_0x118ef3={'rgNTJ':function(_0x2ab78c,_Line truncated
|
||||
Vendored
+3
@@ -3,6 +3,9 @@ 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>;
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x158803=_0x2020;(function(_0x573c97,_0x55d53a){const _0x133834=_0x2020,_0x172728=_0x573c97();while(!![]){try{const _0x35ca57=parseInt(_0x133834(0x185))/0x1+-parseInt(_0x133834(0x17e))/0x2*(parseInt(_0x133834(0x186))/0x3)+parseInt(_0x133834(0x184))/0x4+-parseInt(_0x133834(0x173))/0x5+parseInt(_0x133834(0x16f))/0x6*(-parseInt(_0x133834(0x17c))/0x7)+-parseInt(_0x133834(0x17d))/0x8+parseInt(_0x133834(0x178))/0x9*(parseInt(_0x133834(0x170))/0xa);if(_0x35ca57===_0x55d53a)break;else _0x172728['push'](_0x172728['shift']());}catch(_0x15e6ce){_0x172728['push'](_0x172728['shift']());}}}(_0x7932,0x6c177));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1e3a7e){const _0x21a00e=_0x2020;groups['delete'](_0x1e3a7e),groupMembers[_0x21a00e(0x18a)](_0x1e3a7e);}export const groupMembers=new Map();function _0x2020(_0x163bda,_0x29ea77){const _0x793229=_0x7932();return _0x2020=function(_0x2020b7,_0x4f0555){_0x2020b7=_0x2020b7-0x16f;let _0xd1f694=_0x793229[_0x2020b7];return _0xd1f694;},_0x2020(_0x163bda,_0x29ea77);}export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x158803(0x177)};export async function getFriend(_0x25e2b0){const _0x4282bd=_0x158803,_0x4f1fe4={'LcTqV':function(_0x4872d4,_0x1f5038){return _0x4872d4(_0x1f5038);}};_0x25e2b0=_0x25e2b0[_0x4282bd(0x187)]();if(_0x4f1fe4[_0x4282bd(0x176)](isNumeric,_0x25e2b0)){const _0x38eb03=Array[_0x4282bd(0x183)](friends[_0x4282bd(0x174)]());return _0x38eb03[_0x4282bd(0x175)](_0x1ac20e=>_0x1ac20e['uin']===_0x25e2b0);}else return friends[_0x4282bd(0x181)](_0x25e2b0);}function _0x7932(){const _0x235186=['getGroupMembers','kfCAH','get','NZZPT','from','1755376itPKTH','607822kekxoa','3lkFlff','toString','groupCode','ILVVP','delete','8436ommBln','10ErzDvF','forEach','uin','3261160YhydNT','values','find','LcTqV','NapCat未能正常启动,请检查日志查看错误','10267056ePYQBp','getGroups','length','set','2324ckbTNq','1400248VKmyYD','901304RVjPzs'];_0x7932=function(){return _0x235186;};return _0x7932();}export async function getGroup(_0x5689c8){const _0x2e31bc=_0x158803;let _0x2513e4=groups[_0x2e31bc(0x181)](_0x5689c8['toString']());if(!_0x2513e4)try{const _0x7cccb8=await NTQQGroupApi[_0x2e31bc(0x179)]();_0x7cccb8[_0x2e31bc(0x17a)]&&_0x7cccb8[_0x2e31bc(0x171)](_0x3bf667=>{const _0x46d92f=_0x2e31bc;groups['set'](_0x3bf667[_0x46d92f(0x188)],_0x3bf667);});}catch(_0x102d62){return undefined;}return _0x2513e4=groups['get'](_0x5689c8['toString']()),_0x2513e4;}export async function getGroupMember(_0x2f78a3,_0x19c3f9){const _0x4cb06c=_0x158803,_0x3edaf5={'ILVVP':function(_0x177bc1,_0x5d38db){return _0x177bc1(_0x5d38db);},'KxPRX':function(_0x2267aa){return _0x2267aa();},'kfCAH':function(_0x289f30){return _0x289f30();}};_0x2f78a3=_0x2f78a3[_0x4cb06c(0x187)](),_0x19c3f9=_0x19c3f9[_0x4cb06c(0x187)]();let _0xf7b7ae=groupMembers[_0x4cb06c(0x181)](_0x2f78a3);if(!_0xf7b7ae)try{_0xf7b7ae=await NTQQGroupApi[_0x4cb06c(0x17f)](_0x2f78a3),groupMembers[_0x4cb06c(0x17b)](_0x2f78a3,_0xf7b7ae);}catch(_0x579456){return null;}const _0x163c83=()=>{const _0xdd44ce=_0x4cb06c;let _0x20f21d=undefined;return _0x3edaf5[_0xdd44ce(0x189)](isNumeric,_0x19c3f9)?_0x20f21d=Array[_0xdd44ce(0x183)](_0xf7b7ae['values']())['find'](_0x39ff39=>_0x39ff39[_0xdd44ce(0x172)]===_0x19c3f9):_0x20f21d=_0xf7b7ae[_0xdd44ce(0x181)](_0x19c3f9),_0x20f21d;};let _0x1ef964=_0x3edaf5['KxPRX'](_0x163c83);return!_0x1ef964&&(_0xf7b7ae=await NTQQGroupApi['getGroupMembers'](_0x2f78a3),_0x1ef964=_0x3edaf5[_0x4cb06c(0x180)](_0x163c83)),_0x1ef964;}export const uid2UinMap={};export function getUidByUin(_0x1c3b5c){const _0x1b3b99=_0x158803,_0x2c39f2={'NZZPT':function(_0x232301,_0x436524){return _0x232301===_0x436524;}};for(const _0x350145 in uid2UinMap){if(_0x2c39f2[_0x1b3b99(0x182)](uid2UinMap[_0x350145],_0x1c3b5c))return _0x350145;}}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};
|
||||
const _0x2f143c=_0x4db3;(function(_0x6dcd91,_0x29429b){const _0x4a8a26=_0x4db3,_0x4fb3fa=_0x6dcd91();while(!![]){try{const _0x464690=parseInt(_0x4a8a26(0x180))/0x1*(-parseInt(_0x4a8a26(0x17f))/0x2)+parseInt(_0x4a8a26(0x18f))/0x3+-parseInt(_0x4a8a26(0x196))/0x4+parseInt(_0x4a8a26(0x184))/0x5*(-parseInt(_0x4a8a26(0x19a))/0x6)+-parseInt(_0x4a8a26(0x18d))/0x7+-parseInt(_0x4a8a26(0x190))/0x8*(-parseInt(_0x4a8a26(0x188))/0x9)+parseInt(_0x4a8a26(0x18b))/0xa*(parseInt(_0x4a8a26(0x187))/0xb);if(_0x464690===_0x29429b)break;else _0x4fb3fa['push'](_0x4fb3fa['shift']());}catch(_0x337e37){_0x4fb3fa['push'](_0x4fb3fa['shift']());}}}(_0x5784,0x5eba8));import{isNumeric}from'@/common/utils/helper';function _0x4db3(_0x48cfa0,_0x3a59e5){const _0x578412=_0x5784();return _0x4db3=function(_0x4db31f,_0x27eebd){_0x4db31f=_0x4db31f-0x17f;let _0x4f003c=_0x578412[_0x4db31f];return _0x4f003c;},_0x4db3(_0x48cfa0,_0x3a59e5);}import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x5784(){const _0x42541c=['getGroups','groupCode','set','15765qlBhPu','get','delete','418RUuFVk','2107962BErqQv','forEach','length','459870rTLZoE','RJZnh','5085563AexJrI','uin','1060161rqBOtm','16ARissP','NapCat未能正常启动,请检查日志查看错误','from','zdmFc','getGroupMembers','find','2468796ZDIKVR','values','BqMqQ','gEpWX','846MopRqQ','toString','9248sSCRwC','85WiAhpP'];_0x5784=function(){return _0x42541c;};return _0x5784();}export const groups=new Map();export function deleteGroup(_0x429f1e){const _0x4ef735=_0x4db3;groups['delete'](_0x429f1e),groupMembers[_0x4ef735(0x186)](_0x429f1e);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x2f143c(0x191)};export async function getFriend(_0x2b2ada){const _0x568b3d=_0x2f143c,_0x376f2c={'BqMqQ':function(_0x29fa15,_0x4472a5){return _0x29fa15(_0x4472a5);}};_0x2b2ada=_0x2b2ada['toString']();if(_0x376f2c[_0x568b3d(0x198)](isNumeric,_0x2b2ada)){const _0x1614c3=Array[_0x568b3d(0x192)](friends[_0x568b3d(0x197)]());return _0x1614c3[_0x568b3d(0x195)](_0x372792=>_0x372792[_0x568b3d(0x18e)]===_0x2b2ada);}else return friends[_0x568b3d(0x185)](_0x2b2ada);}export async function getGroup(_0x308df6){const _0xb82bdc=_0x2f143c;let _0x482e6e=groups[_0xb82bdc(0x185)](_0x308df6[_0xb82bdc(0x19b)]());if(!_0x482e6e)try{const _0x3de901=await NTQQGroupApi[_0xb82bdc(0x181)]();_0x3de901[_0xb82bdc(0x18a)]&&_0x3de901[_0xb82bdc(0x189)](_0x3e0e1c=>{const _0x3933f4=_0xb82bdc;groups[_0x3933f4(0x183)](_0x3e0e1c[_0x3933f4(0x182)],_0x3e0e1c);});}catch(_0x52729b){return undefined;}return _0x482e6e=groups['get'](_0x308df6[_0xb82bdc(0x19b)]()),_0x482e6e;}export async function getGroupMember(_0x5dab24,_0x158535){const _0x33cfc0=_0x2f143c,_0x922ff7={'RJZnh':function(_0x3db2aa,_0x38db5b){return _0x3db2aa(_0x38db5b);},'zdmFc':function(_0x4a96cd){return _0x4a96cd();}};_0x5dab24=_0x5dab24['toString'](),_0x158535=_0x158535[_0x33cfc0(0x19b)]();let _0x34f961=groupMembers[_0x33cfc0(0x185)](_0x5dab24);if(!_0x34f961)try{_0x34f961=await NTQQGroupApi[_0x33cfc0(0x194)](_0x5dab24),groupMembers[_0x33cfc0(0x183)](_0x5dab24,_0x34f961);}catch(_0x4bd608){return null;}const _0x42a152=()=>{const _0x3790ee=_0x33cfc0;let _0x33f1de=undefined;return _0x922ff7[_0x3790ee(0x18c)](isNumeric,_0x158535)?_0x33f1de=Array[_0x3790ee(0x192)](_0x34f961[_0x3790ee(0x197)]())['find'](_0x91b924=>_0x91b924[_0x3790ee(0x18e)]===_0x158535):_0x33f1de=_0x34f961[_0x3790ee(0x185)](_0x158535),_0x33f1de;};let _0x5d9468=_0x42a152();return!_0x5d9468&&(_0x34f961=await NTQQGroupApi['getGroupMembers'](_0x5dab24),_0x5d9468=_0x922ff7[_0x33cfc0(0x193)](_0x42a152)),_0x5d9468;}export const uid2UinMap={};export function getUidByUin(_0x27ee8c){const _0x5cc43c=_0x2f143c,_0x1d3f59={'gEpWX':function(_0x3ceb76,_0xb8a37a){return _0x3ceb76===_0xb8a37a;}};for(const _0x1d348e in uid2UinMap){if(_0x1d3f59[_0x5cc43c(0x199)](uid2UinMap[_0x1d348e],_0x27ee8c))return _0x1d348e;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
||||
@@ -1 +1 @@
|
||||
function _0x16d2(_0x29dbd5,_0x56077c){var _0x56f8f3=_0x56f8();return _0x16d2=function(_0x16d251,_0x39ff6e){_0x16d251=_0x16d251-0x138;var _0x18f6b9=_0x56f8f3[_0x16d251];return _0x18f6b9;},_0x16d2(_0x29dbd5,_0x56077c);}(function(_0x18d6b9,_0x137ea5){var _0x4989e9=_0x16d2,_0x156406=_0x18d6b9();while(!![]){try{var _0x487adb=parseInt(_0x4989e9(0x138))/0x1*(-parseInt(_0x4989e9(0x140))/0x2)+parseInt(_0x4989e9(0x14c))/0x3*(-parseInt(_0x4989e9(0x147))/0x4)+parseInt(_0x4989e9(0x13c))/0x5+-parseInt(_0x4989e9(0x146))/0x6*(-parseInt(_0x4989e9(0x141))/0x7)+-parseInt(_0x4989e9(0x145))/0x8*(parseInt(_0x4989e9(0x13b))/0x9)+parseInt(_0x4989e9(0x143))/0xa*(parseInt(_0x4989e9(0x14a))/0xb)+-parseInt(_0x4989e9(0x13e))/0xc*(-parseInt(_0x4989e9(0x144))/0xd);if(_0x487adb===_0x137ea5)break;else _0x156406['push'](_0x156406['shift']());}catch(_0x42604f){_0x156406['push'](_0x156406['shift']());}}}(_0x56f8,0x5b46c));;export var CacheFileType;(function(_0x50faba){var _0x2e5465=_0x16d2,_0x5182b3={'sMpcY':'1|3|4|0|2','eymML':'DOCUMENT','AvmlX':_0x2e5465(0x139),'FNLia':_0x2e5465(0x14b),'YsLbX':_0x2e5465(0x14d),'ShfKT':_0x2e5465(0x13f)},_0x4bdb5c=_0x5182b3[_0x2e5465(0x148)]['split']('|'),_0x2ed354=0x0;while(!![]){switch(_0x4bdb5c[_0x2ed354++]){case'0':_0x50faba[_0x50faba['DOCUMENT']=0x3]=_0x5182b3[_0x2e5465(0x13d)];continue;case'1':_0x50faba[_0x50faba[_0x5182b3[_0x2e5465(0x149)]]=0x0]=_0x5182b3[_0x2e5465(0x149)];continue;case'2':_0x50faba[_0x50faba[_0x5182b3['FNLia']]=0x4]=_0x5182b3['FNLia'];continue;case'3':_0x50faba[_0x50faba[_0x5182b3[_0x2e5465(0x142)]]=0x1]=_0x5182b3[_0x2e5465(0x142)];continue;case'4':_0x50faba[_0x50faba[_0x5182b3[_0x2e5465(0x13a)]]=0x2]=_0x5182b3[_0x2e5465(0x13a)];continue;}break;}}(CacheFileType||(CacheFileType={})));function _0x56f8(){var _0x2ef13d=['81452DpXBlN','sMpcY','AvmlX','965613mygByh','OTHER','57cknZSg','VIDEO','409YheRAU','IMAGE','ShfKT','108YVShHn','2476590WJkNBR','eymML','204RliLuW','AUDIO','1098ilkOfx','4736543wSxWWo','YsLbX','20JVNTFG','268645xYaFFb','475688ZzFdCz','6vvMJfU'];_0x56f8=function(){return _0x2ef13d;};return _0x56f8();}
|
||||
(function(_0x4b175e,_0x452713){var _0x404486=_0x35b6,_0x4481cc=_0x4b175e();while(!![]){try{var _0x40b0ac=parseInt(_0x404486(0x1c9))/0x1+-parseInt(_0x404486(0x1ce))/0x2*(parseInt(_0x404486(0x1cb))/0x3)+-parseInt(_0x404486(0x1c5))/0x4+parseInt(_0x404486(0x1c3))/0x5*(parseInt(_0x404486(0x1ca))/0x6)+parseInt(_0x404486(0x1c7))/0x7*(parseInt(_0x404486(0x1bf))/0x8)+parseInt(_0x404486(0x1bb))/0x9*(-parseInt(_0x404486(0x1cf))/0xa)+parseInt(_0x404486(0x1bd))/0xb*(parseInt(_0x404486(0x1cd))/0xc);if(_0x40b0ac===_0x452713)break;else _0x4481cc['push'](_0x4481cc['shift']());}catch(_0x1e1964){_0x4481cc['push'](_0x4481cc['shift']());}}}(_0x1730,0x4cfc6));;function _0x1730(){var _0x386f4a=['27hhgRWY','sITvM','967087wLIDnb','split','8Auensn','qfLgq','AUDIO','VIDEO','10MCZkne','IMAGE','1574844WDzRid','DOCUMENT','349937NbFSsB','OTHER','386302HKiqRN','838368fymGmy','3fwpTnC','RjXbr','132AufSvg','737076fvznmL','2017510uDaNMA'];_0x1730=function(){return _0x386f4a;};return _0x1730();}function _0x35b6(_0x377741,_0x6f7eb5){var _0x1730f1=_0x1730();return _0x35b6=function(_0x35b67e,_0x23361f){_0x35b67e=_0x35b67e-0x1bb;var _0x427dc3=_0x1730f1[_0x35b67e];return _0x427dc3;},_0x35b6(_0x377741,_0x6f7eb5);}export var CacheFileType;(function(_0x4459eb){var _0xc5079e=_0x35b6,_0x1e9f17={'RjXbr':'1|2|4|3|0','qfLgq':_0xc5079e(0x1c8),'VHPiP':_0xc5079e(0x1c4),'sITvM':_0xc5079e(0x1c2),'ioWiG':_0xc5079e(0x1c6),'ytjzY':_0xc5079e(0x1c1)},_0x2549df=_0x1e9f17[_0xc5079e(0x1cc)][_0xc5079e(0x1be)]('|'),_0x5eedeb=0x0;while(!![]){switch(_0x2549df[_0x5eedeb++]){case'0':_0x4459eb[_0x4459eb[_0x1e9f17[_0xc5079e(0x1c0)]]=0x4]=_0x1e9f17['qfLgq'];continue;case'1':_0x4459eb[_0x4459eb[_0xc5079e(0x1c4)]=0x0]=_0x1e9f17['VHPiP'];continue;case'2':_0x4459eb[_0x4459eb[_0x1e9f17[_0xc5079e(0x1bc)]]=0x1]=_0x1e9f17[_0xc5079e(0x1bc)];continue;case'3':_0x4459eb[_0x4459eb[_0x1e9f17['ioWiG']]=0x3]=_0xc5079e(0x1c6);continue;case'4':_0x4459eb[_0x4459eb[_0x1e9f17['ytjzY']]=0x2]=_0x1e9f17['ytjzY'];continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
+1
@@ -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 _0x403a4b=_0x6cee;function _0x6cee(_0x4805bc,_0x405ff7){const _0x4e5f7d=_0x4e5f();return _0x6cee=function(_0x6ceedf,_0x55fae9){_0x6ceedf=_0x6ceedf-0x89;let _0x4d9905=_0x4e5f7d[_0x6ceedf];return _0x4d9905;},_0x6cee(_0x4805bc,_0x405ff7);}(function(_0x1a0407,_0x5a0542){const _0x5c7fe5=_0x6cee,_0x2c4016=_0x1a0407();while(!![]){try{const _0x4bbb9b=parseInt(_0x5c7fe5(0x8f))/0x1+-parseInt(_0x5c7fe5(0xa7))/0x2*(parseInt(_0x5c7fe5(0xb5))/0x3)+parseInt(_0x5c7fe5(0xd5))/0x4+-parseInt(_0x5c7fe5(0xc1))/0x5*(parseInt(_0x5c7fe5(0x8d))/0x6)+parseInt(_0x5c7fe5(0x98))/0x7+parseInt(_0x5c7fe5(0x91))/0x8+-parseInt(_0x5c7fe5(0xd1))/0x9;if(_0x4bbb9b===_0x5a0542)break;else _0x2c4016['push'](_0x2c4016['shift']());}catch(_0xb90ae8){_0x2c4016['push'](_0x2c4016['shift']());}}}(_0x4e5f,0xc59ca));function _0x4e5f(){const _0x34f07f=['face','oqjOK','bxrcq','ark','then','TzmQn','6996206PzEvIV','get','FACE','VlrFR','writeFile','stat','width','fgCJB','YijdE','mp4','视频信息','JDXfz','time','[骰子]','text','2610268fcwVBj','getImageSize','oPJKV','awBph','vKufx','sgjbb','nlTcH','cwFJU','zZjNt','Thumb','wxXlZ','EjfnV','copyFile','rRSIp','3AFUWcM','PkEEF','PIC','string','sep','gKRJF','ptt','set','normal2','unlink','markdown','_0.png','15uBmzeP','MARKDOWN','Ori','toString','ARK','获取视频信息失败','ERWSm','RPS','replace','height','notAt','uploadFile','stringify','DUvzK','gif','screenshots','12513348ilZZTz','图片信息','语音转换失败,\x20请检查语音文件是否正常','jpg','6197744KYaIDu','[商城表情]','dice','size','VIDEO','bHzxN','EidRh','MKoGB','PTT','catch','2220198vQNglp','TEXT','1016303kBahYj','文件异常,大小为0','8398608iTJxef'];_0x4e5f=function(){return _0x34f07f;};return _0x4e5f();}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x4755ee}from'node:fs';import _0x5ef4ff 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[_0x403a4b(0xa6)](_0xfe11a7){const _0x206902=_0x403a4b;return{'elementType':ElementType[_0x206902(0x8e)],'elementId':'','textElement':{'content':_0xfe11a7,'atType':AtType[_0x206902(0xcb)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0xac4130,_0x369b81,_0x3b431b,_0x36bcc2){const _0x4669c5=_0x403a4b;return{'elementType':ElementType[_0x4669c5(0x8e)],'elementId':'','textElement':{'content':'@'+_0x36bcc2,'atType':_0x3b431b,'atUid':_0xac4130,'atTinyId':'','atNtUid':_0x369b81}};}static['reply'](_0xe90a81,_0x3c525d,_0x416e4f,_0x790fa){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0xe90a81,'replayMsgId':_0x3c525d,'senderUin':_0x416e4f,'senderUinStr':_0x790fa}};}static async['pic'](_0x5c75ad,_0x5bf1fb='',_0x447ecb=0x0){const _0x5763e1=_0x403a4b,_0x53af61={'EjfnV':function(_0x5df065,_0x4d6c99){return _0x5df065===_0x4d6c99;},'nlTcH':_0x5763e1(0x90),'SioSm':function(_0x118cb6,_0xeaf03){return _0x118cb6(_0xeaf03);},'uWGhc':function(_0x1b8d98,_0x11749e,_0x2dd813){return _0x1b8d98(_0x11749e,_0x2dd813);}},{md5:_0x54a86a,fileName:_0x5c7043,path:_0x549cdd,fileSize:_0x5b9670}=await NTQQFileApi[_0x5763e1(0xcc)](_0x5c75ad,ElementType[_0x5763e1(0xb7)],_0x447ecb);if(_0x53af61[_0x5763e1(0xb2)](_0x5b9670,0x0))throw _0x53af61[_0x5763e1(0xad)];const _0xd59df4=await NTQQFileApi[_0x5763e1(0xa8)](_0x5c75ad),_0x559323={'md5HexStr':_0x54a86a,'fileSize':_0x5b9670[_0x5763e1(0xc4)](),'picWidth':_0xd59df4?.[_0x5763e1(0x9e)],'picHeight':_0xd59df4?.['height'],'fileName':_0x5c7043,'sourcePath':_0x549cdd,'original':!![],'picType':_0x53af61['SioSm'](isGIF,_0x5c75ad)?PicType[_0x5763e1(0xcf)]:PicType[_0x5763e1(0xd4)],'picSubType':_0x447ecb,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x5bf1fb};return _0x53af61['uWGhc'](logDebug,_0x5763e1(0xd2),_0x559323),{'elementType':ElementType[_0x5763e1(0xb7)],'elementId':'','picElement':_0x559323};}static async['file'](_0x235b53,_0x4f6abb=''){const _0x1282a5=_0x403a4b,_0x4d32e9={'YijdE':function(_0x5dba7a,_0x15d6df){return _0x5dba7a===_0x15d6df;},'QXBWy':function(_0x6edfea,_0x957179){return _0x6edfea||_0x957179;}},{md5:_0x4c3195,fileName:_0x557377,path:_0x258d07,fileSize:_0x26dcb3}=await NTQQFileApi[_0x1282a5(0xcc)](_0x235b53,ElementType['FILE']);if(_0x4d32e9[_0x1282a5(0xa0)](_0x26dcb3,0x0))throw _0x1282a5(0x90);const _0x94e23d={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x4d32e9['QXBWy'](_0x4f6abb,_0x557377),'filePath':_0x258d07,'fileSize':_0x26dcb3[_0x1282a5(0xc4)]()}};return _0x94e23d;}static async['video'](_0x5414df,_0x53aaf1='',_0x17064b=''){const _0x5ce81a=_0x403a4b,_0x1528e9={'iWFqO':function(_0xbb362c,_0x584785,_0xb3b9f3){return _0xbb362c(_0x584785,_0xb3b9f3);},'awBph':'获取视频封面失败,使用默认封面','fgCJB':function(_0x2eb67Line truncated
|
||||
const _0x46ff16=_0x2671;(function(_0x31d478,_0x522965){const _0x5a53c8=_0x2671,_0xed52ed=_0x31d478();while(!![]){try{const _0x431ea1=parseInt(_0x5a53c8(0x11b))/0x1*(parseInt(_0x5a53c8(0x12d))/0x2)+-parseInt(_0x5a53c8(0x100))/0x3+parseInt(_0x5a53c8(0x138))/0x4*(-parseInt(_0x5a53c8(0x11a))/0x5)+parseInt(_0x5a53c8(0x10b))/0x6+parseInt(_0x5a53c8(0x137))/0x7+-parseInt(_0x5a53c8(0x11f))/0x8+parseInt(_0x5a53c8(0x127))/0x9*(parseInt(_0x5a53c8(0x114))/0xa);if(_0x431ea1===_0x522965)break;else _0xed52ed['push'](_0xed52ed['shift']());}catch(_0x2d4c14){_0xed52ed['push'](_0xed52ed['shift']());}}}(_0x28df,0xe807c));function _0x28df(){const _0x15ec3b=['BouOr','FILE','108ehwnHl','FNrGc','Bot\x20Test','Bsava','video','WbbHK','find','yHvgb','reply','[包剪锤]','110320adlmbn','688072Qzigfv','NTnZf','then','_0.png','PTT','copyFile','TEXT','Rehpb','AniStickerId','catch','dirname','YplsR','toString','writeFile','语音转换失败,\x20请检查语音文件是否正常','ZQRiQ','uploadFile','height','miniapp','end','notAt','HeXkE','biWsV','YFKrC','KXYyo','yxWka','getImageSize','isFYn','time','replace','YIFBh','BQfpQ','ARK','screenshots','get','unlink','msliI','sep','rps','Thumb','AAMUG','XFjyU','ptt','2866584zgObTR','join','获取视频封面失败,使用默认封面','width','mUWjC','text','获取视频信息失败','mp4','sysface','MFACE','stat','5400030XfdJkt','ark','eHfYm','string','MARKDOWN','PUOwz','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','stringify','error','33510LigUJb','AniStickerPackId','UORvq','RPS','[骰子]','gif','5ZaHvfV','15848zLnVCD','AGhRg','dice','https://www.bilibili.com/','2937328cTYsNK','AniStickerType','QSid','[商城表情]','VIDEO','文件异常,大小为0','PIC','FACE','1809vAdCET','REPLY','face','Ori'];_0x28df=function(){return _0x15ec3b;};return _0x28df();}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x5dbce6}from'node:fs';import _0x5f2e1f 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';function _0x2671(_0x429833,_0x3e0a25){const _0x28df77=_0x28df();return _0x2671=function(_0x2671c7,_0x38449d){_0x2671c7=_0x2671c7-0xf5;let _0x44cb1f=_0x28df77[_0x2671c7];return _0x44cb1f;},_0x2671(_0x429833,_0x3e0a25);}import _0x16b793 from'./face_config.json';import*as _0x4606ba from'node:path';import{SignMiniApp}from'../apis';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x46ff16(0x105)](_0xa14a03){const _0x5a59e7=_0x46ff16;return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0xa14a03,'atType':AtType[_0x5a59e7(0x14c)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x2887d9,_0x1a32c6,_0xa8580,_0x49d824){const _0x13213d=_0x46ff16;return{'elementType':ElementType[_0x13213d(0x13e)],'elementId':'','textElement':{'content':'@'+_0x49d824,'atType':_0xa8580,'atUid':_0x2887d9,'atTinyId':'','atNtUid':_0x1a32c6}};}static[_0x46ff16(0x135)](_0x2049dc,_0x19ca34,_0x21aced,_0x416ea7){const _0x2448ba=_0x46ff16;return{'elementType':ElementType[_0x2448ba(0x128)],'elementId':'','replyElement':{'replayMsgSeq':_0x2049dc,'replayMsgId':_0x19ca34,'senderUin':_0x21aced,'senderUinStr':_0x416ea7}};}static async['pic'](_0x5310a3,_0x1985f9='',_0x30fbf0=0x0){const _0x60e3b=_0x46ff16,_0x3c0e16={'mUWjC':function(_0x4c21b6,_0x201825){return _0x4c21b6===_0x201825;},'AAMUG':_0x60e3b(0x124),'NTnZf':function(_0x33aa33,_0x24a928){return _0x33aa33(_0x24a928);}},{md5:_0x5bb2bf,fileName:_0x1759e2,path:_0x490b91,fileSize:_0x1173b6}=await NTQQFileApi[_0x60e3b(0x148)](_0x5310a3,ElementType[_0x60e3b(0x125)],_0x30fbf0);if(_0x3c0e16[_0x60e3b(0x104)](_0x1173b6,0x0))throw _0x3c0e16[_0x60e3b(0xfd)];const _0x557036=await NTQQFileApi[_0x60e3b(0x152)](_0x5310a3),_0x232de9={'md5HexStr':_0x5bb2bf,'fileSize':_0x1173b6[_0x60e3b(0x144)](),'picWidth':_0x557036?.[_0x60e3b(0x103)],'picHeight':_0x557036?.[_0x60e3b(0x149)],'fileName':_0x1759e2,'sourcePath':_0x490b91,'original':!![],'picType':_0x3c0e16[_0x60e3b(0x139)](isGIF,_0x5310a3)?PicType[_0x60e3b(0x119)]:PicType['jpg'],'picSubType':_0x30fbf0,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x1985f9};return{'elementType':ElementType[_0x60e3b(0x125)],'elementId':'','picElement':_0x232de9};}static async['file'](_0x3dffaf,_0x18cbdf=''){const _0x38f7c7=_0x46ff16,_0x25241e={'HVAzc':function(_0x2ce91c,_0x1230d2){return _0x2ce91c===_0x1230d2;},'FNrGc':'文件异常,大小为0','BouOr':function(_0x495e17,_0x5b14f7){return _0x495e17||_0x5b14f7;}},{md5:_0x1f65c7,fileName:_0x48988b,path:_0x5e2def,fileSize:_0x3a4529}=await NTQQFileApi['uploadFile'](_0x3dffaf,ElementType[_0x38f7c7(0x12c)]);if(_0x25241e['HVAzc'](_0x3a4529,0x0))throw _0x25241e[_0x38f7c7(0x12e)];const _0x2089f1={'elementType':ElementType[_0x38f7c7(0x12c)],'elementId':'','fileEleLine truncated
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1 +1 @@
|
||||
(function(_0x44164a,_0x3126be){var _0x352529=_0x2e53,_0x3aaeee=_0x44164a();while(!![]){try{var _0x35b155=-parseInt(_0x352529(0x174))/0x1+parseInt(_0x352529(0x169))/0x2+-parseInt(_0x352529(0x170))/0x3+parseInt(_0x352529(0x171))/0x4+-parseInt(_0x352529(0x16b))/0x5+-parseInt(_0x352529(0x16f))/0x6*(parseInt(_0x352529(0x168))/0x7)+parseInt(_0x352529(0x16e))/0x8*(parseInt(_0x352529(0x167))/0x9);if(_0x35b155===_0x3126be)break;else _0x3aaeee['push'](_0x3aaeee['shift']());}catch(_0x32f5d2){_0x3aaeee['push'](_0x3aaeee['shift']());}}}(_0x48e1,0x7d68d));function _0x2e53(_0x5734f1,_0x471b48){var _0x48e17f=_0x48e1();return _0x2e53=function(_0x2e530a,_0x31e3cc){_0x2e530a=_0x2e530a-0x167;var _0x4c34d7=_0x48e17f[_0x2e530a];return _0x4c34d7;},_0x2e53(_0x5734f1,_0x471b48);}function _0x48e1(){var _0x22b627=['2342445fqUcxR','3146844oXzVgd','eKcka','normal','942491xnSDtr','36JkgrEP','38311garolA','1946564fiKdkT','hVtFE','3805595kHLCfp','deBdb','admin','3253384ZGbNfW','426ryDuCa'];_0x48e1=function(){return _0x22b627;};return _0x48e1();}export var GroupMemberRole;(function(_0x476aa){var _0x282fe6=_0x2e53,_0x106762={'eKcka':_0x282fe6(0x173),'deBdb':_0x282fe6(0x16d),'hVtFE':'owner'};_0x476aa[_0x476aa[_0x106762[_0x282fe6(0x172)]]=0x2]=_0x106762[_0x282fe6(0x172)],_0x476aa[_0x476aa[_0x106762[_0x282fe6(0x16c)]]=0x3]=_0x282fe6(0x16d),_0x476aa[_0x476aa[_0x106762[_0x282fe6(0x16a)]]=0x4]=_0x106762[_0x282fe6(0x16a)];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
(function(_0x2629d1,_0x1746d3){var _0x181451=_0x20bc,_0x108b02=_0x2629d1();while(!![]){try{var _0x1681bc=parseInt(_0x181451(0x7f))/0x1*(parseInt(_0x181451(0x85))/0x2)+-parseInt(_0x181451(0x80))/0x3+-parseInt(_0x181451(0x83))/0x4+parseInt(_0x181451(0x7a))/0x5+-parseInt(_0x181451(0x7e))/0x6+parseInt(_0x181451(0x81))/0x7*(parseInt(_0x181451(0x82))/0x8)+parseInt(_0x181451(0x7d))/0x9;if(_0x1681bc===_0x1746d3)break;else _0x108b02['push'](_0x108b02['shift']());}catch(_0x26cca1){_0x108b02['push'](_0x108b02['shift']());}}}(_0x73c7,0x29b06));export var GroupMemberRole;function _0x73c7(){var _0x41f620=['4655214RMHLAw','749034NyxcBU','1zXuUYy','998340vAazLm','28LhXqGW','431272UOyzjL','1123168iPPRvo','owner','6398sMMcyX','wRNWM','eUskL','normal','865440STWwdT','admin','kvlaV'];_0x73c7=function(){return _0x41f620;};return _0x73c7();}function _0x20bc(_0x46f0ba,_0x5d6a8d){var _0x73c76f=_0x73c7();return _0x20bc=function(_0x20bc9f,_0x39efe7){_0x20bc9f=_0x20bc9f-0x79;var _0x385b90=_0x73c76f[_0x20bc9f];return _0x385b90;},_0x20bc(_0x46f0ba,_0x5d6a8d);}(function(_0x1bdbef){var _0x32a4a3=_0x20bc,_0xff7650={'kvlaV':_0x32a4a3(0x79),'wRNWM':'admin','eUskL':_0x32a4a3(0x84)};_0x1bdbef[_0x1bdbef[_0x32a4a3(0x79)]=0x2]=_0xff7650[_0x32a4a3(0x7c)],_0x1bdbef[_0x1bdbef[_0x32a4a3(0x7b)]=0x3]=_0xff7650[_0x32a4a3(0x86)],_0x1bdbef[_0x1bdbef[_0x32a4a3(0x84)]=0x4]=_0xff7650[_0x32a4a3(0x87)];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
@@ -1 +1 @@
|
||||
(function(_0xe531b7,_0x51a052){var _0x4d04bd=_0x2efd,_0x449c2b=_0xe531b7();while(!![]){try{var _0x250d75=-parseInt(_0x4d04bd(0x1bc))/0x1+parseInt(_0x4d04bd(0x1b9))/0x2+-parseInt(_0x4d04bd(0x1bd))/0x3*(parseInt(_0x4d04bd(0x1be))/0x4)+parseInt(_0x4d04bd(0x1b6))/0x5*(-parseInt(_0x4d04bd(0x1bf))/0x6)+parseInt(_0x4d04bd(0x1ba))/0x7*(-parseInt(_0x4d04bd(0x1bb))/0x8)+parseInt(_0x4d04bd(0x1b8))/0x9+parseInt(_0x4d04bd(0x1b5))/0xa*(parseInt(_0x4d04bd(0x1b7))/0xb);if(_0x250d75===_0x51a052)break;else _0x449c2b['push'](_0x449c2b['shift']());}catch(_0x368d19){_0x449c2b['push'](_0x449c2b['shift']());}}}(_0x1453,0x43771));export*from'./user';function _0x2efd(_0x3e6f75,_0x261fd0){var _0x145393=_0x1453();return _0x2efd=function(_0x2efd19,_0x2d10f1){_0x2efd19=_0x2efd19-0x1b5;var _0x3d2ac7=_0x145393[_0x2efd19];return _0x3d2ac7;},_0x2efd(_0x3e6f75,_0x261fd0);}export*from'./group';export*from'./msg';function _0x1453(){var _0x18fa2e=['99xlMxzq','3827664TeaRAp','633160yxtzHB','97482IHsqkZ','288cJpOdZ','89177hlyfKI','625542lHtcZK','4JPiIDY','6JVIktx','459590EkewcY','400715CJOplD'];_0x1453=function(){return _0x18fa2e;};return _0x1453();}export*from'./notify';export*from'./cache';export*from'./constructor';
|
||||
(function(_0x3eeb70,_0x20726b){var _0x4e0a62=_0x45ed,_0x5d24d3=_0x3eeb70();while(!![]){try{var _0x24a9a9=-parseInt(_0x4e0a62(0x1d1))/0x1*(-parseInt(_0x4e0a62(0x1d2))/0x2)+parseInt(_0x4e0a62(0x1d8))/0x3*(parseInt(_0x4e0a62(0x1d0))/0x4)+-parseInt(_0x4e0a62(0x1d5))/0x5+parseInt(_0x4e0a62(0x1d3))/0x6+-parseInt(_0x4e0a62(0x1cf))/0x7+-parseInt(_0x4e0a62(0x1d4))/0x8+parseInt(_0x4e0a62(0x1d6))/0x9*(-parseInt(_0x4e0a62(0x1d7))/0xa);if(_0x24a9a9===_0x20726b)break;else _0x5d24d3['push'](_0x5d24d3['shift']());}catch(_0x26adba){_0x5d24d3['push'](_0x5d24d3['shift']());}}}(_0x3535,0x2535d));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x3535(){var _0x205547=['1mmqEBQ','344224jhMupL','629478JzYVFn','1819312lOyRbI','339535cdzRkR','478917sgjIAV','10SSmTVa','15ZmGVnF','116291sPfHbC','192428Gfzgwg'];_0x3535=function(){return _0x205547;};return _0x3535();}export*from'./cache';function _0x45ed(_0xd044b6,_0x188143){var _0x3535da=_0x3535();return _0x45ed=function(_0x45ed5d,_0x3ad035){_0x45ed5d=_0x45ed5d-0x1cf;var _0x1a9f0b=_0x3535da[_0x45ed5d];return _0x1a9f0b;},_0x45ed(_0xd044b6,_0x188143);}export*from'./constructor';
|
||||
Vendored
+16
@@ -4,6 +4,22 @@ export interface Peer {
|
||||
peerUid: string;
|
||||
guildId?: string;
|
||||
}
|
||||
export interface KickedOffLineInfo {
|
||||
appId: number;
|
||||
instanceId: number;
|
||||
sameDevice: boolean;
|
||||
tipsDesc: string;
|
||||
tipsTitle: string;
|
||||
kickedType: number;
|
||||
securityKickedType: number;
|
||||
}
|
||||
export interface GetFileListParam {
|
||||
sortType: number;
|
||||
fileCount: number;
|
||||
startIndex: number;
|
||||
sortOrder: number;
|
||||
showOnlinedocFolder: number;
|
||||
}
|
||||
export declare enum ElementType {
|
||||
TEXT = 1,
|
||||
PIC = 2,
|
||||
|
||||
@@ -1 +1 @@
|
||||
var _0x436531=_0x10ab;function _0x3bcf(){var _0x14f378=['normal2','FILE','PTT','6eXUhmD','OLoeM','QLvdW','cJPVe','RPS','TEXT','103030SMnWyp','notAt','LKbAX','2259032PbDnCT','temp','18soxnbR','NipbQ','https://multimedia.nt.qq.com.cn','FSdWh','normal','AQOKW','Avfuj','https://gchat.qpic.cn','abCHW','atUser','MARKDOWN','wgZTO','jwLNf','group','CfkhU','MEMBER_NEW_TITLE','1423212levkGC','3137145TnHCcN','3PSyEUg','hVRhc','YmWNF','ARK','PIC','chatDevice','134394AwDOhk','ban','kicked','XGvzT','pgDqE','pMAmc','kmMAb','memberIncrease','dice','856331ssjjXJ','QuqZt','TiOkf','REPLY','CrNWb','MaJlX','INVITE_NEW_MEMBER','DhVuF','VIDEO','1352422sxeDeV','atAll','IqTgM'];_0x3bcf=function(){return _0x14f378;};return _0x3bcf();}(function(_0x2cfea1,_0x5d555b){var _0xca11c=_0x10ab,_0x24e875=_0x2cfea1();while(!![]){try{var _0x305c40=-parseInt(_0xca11c(0x1c7))/0x1+parseInt(_0xca11c(0x19e))/0x2*(parseInt(_0xca11c(0x1c1))/0x3)+-parseInt(_0xca11c(0x1bf))/0x4+parseInt(_0xca11c(0x1c0))/0x5+parseInt(_0xca11c(0x1a4))/0x6*(parseInt(_0xca11c(0x195))/0x7)+parseInt(_0xca11c(0x1ad))/0x8*(-parseInt(_0xca11c(0x1af))/0x9)+-parseInt(_0xca11c(0x1aa))/0xa;if(_0x305c40===_0x5d555b)break;else _0x24e875['push'](_0x24e875['shift']());}catch(_0x1dee82){_0x24e875['push'](_0x24e875['shift']());}}}(_0x3bcf,0x5810b));export var ElementType;(function(_0x56dc3b){var _0x349afd=_0x10ab,_0x145246={'FSdWh':'5|1|0|3|4|2|8|9|6|7','LKbAX':_0x349afd(0x1a2),'OLoeM':_0x349afd(0x1c5),'CfkhU':'FACE','QuqZt':'PTT','AQOKW':_0x349afd(0x19d),'OMvcC':_0x349afd(0x1a9),'jwLNf':'MFACE','NipbQ':_0x349afd(0x1b9),'wgZTO':_0x349afd(0x198),'sONUH':_0x349afd(0x1c4)},_0x4ee8d9=_0x145246[_0x349afd(0x1b2)]['split']('|'),_0x1ab1b2=0x0;while(!![]){switch(_0x4ee8d9[_0x1ab1b2++]){case'0':_0x56dc3b[_0x56dc3b[_0x145246[_0x349afd(0x1ac)]]=0x3]=_0x349afd(0x1a2);continue;case'1':_0x56dc3b[_0x56dc3b[_0x349afd(0x1c5)]=0x2]=_0x145246[_0x349afd(0x1a5)];continue;case'2':_0x56dc3b[_0x56dc3b[_0x145246[_0x349afd(0x1bd)]]=0x6]=_0x145246[_0x349afd(0x1bd)];continue;case'3':_0x56dc3b[_0x56dc3b[_0x145246[_0x349afd(0x196)]]=0x4]=_0x349afd(0x1a3);continue;case'4':_0x56dc3b[_0x56dc3b[_0x349afd(0x19d)]=0x5]=_0x145246[_0x349afd(0x1b4)];continue;case'5':_0x56dc3b[_0x56dc3b[_0x145246['OMvcC']]=0x1]=_0x349afd(0x1a9);continue;case'6':_0x56dc3b[_0x56dc3b[_0x145246[_0x349afd(0x1bb)]]=0xb]=_0x145246[_0x349afd(0x1bb)];continue;case'7':_0x56dc3b[_0x56dc3b[_0x145246['NipbQ']]=0xe]=_0x145246[_0x349afd(0x1b0)];continue;case'8':_0x56dc3b[_0x56dc3b[_0x145246[_0x349afd(0x1ba)]]=0x7]=_0x145246[_0x349afd(0x1ba)];continue;case'9':_0x56dc3b[_0x56dc3b['ARK']=0xa]=_0x145246['sONUH'];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x3463ef){var _0x19ccfe={'ffZpN':'gif'};_0x3463ef[_0x3463ef[_0x19ccfe['ffZpN']]=0x7d0]=_0x19ccfe['ffZpN'],_0x3463ef[_0x3463ef['jpg']=0x3e8]='jpg';}(PicType||(PicType={})));export var PicSubType;(function(_0x272dfd){var _0x4a30cd=_0x10ab,_0x3d90af={'cJPVe':_0x4a30cd(0x1b3),'DhVuF':'face'};_0x272dfd[_0x272dfd[_0x4a30cd(0x1b3)]=0x0]=_0x3d90af[_0x4a30cd(0x1a7)],_0x272dfd[_0x272dfd[_0x3d90af[_0x4a30cd(0x19c)]]=0x1]=_0x3d90af[_0x4a30cd(0x19c)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x385177){var _0x2a09f2=_0x10ab,_0x371c31={'abCHW':_0x2a09f2(0x1ab),'Avfuj':_0x2a09f2(0x19f),'IqTgM':_0x2a09f2(0x1b8)};_0x385177[_0x385177[_0x371c31[_0x2a09f2(0x1b7)]]=0x0]=_0x371c31[_0x2a09f2(0x1b7)],_0x385177[_0x385177[_0x371c31['Avfuj']]=0x1]=_0x371c31[_0x2a09f2(0x1b5)],_0x385177[_0x385177[_0x371c31[_0x2a09f2(0x1a0)]]=0x2]=_0x371c31[_0x2a09f2(0x1a0)];}(AtType||(AtType={})));export var ChatType;(function(_0x396b6c){var _0x50214e=_0x10ab,_0xd9de53={'TiOkf':'friend','QLvdW':_0x50214e(0x1bc),'cnEoR':_0x50214e(0x1c6),'NtqEg':_0x50214e(0x1ae)};_0x396b6c[_0x396b6c[_0xd9de53[_0x50214e(0x197)]]=0x1]=_0xd9de53[_0x50214e(0x197)],_0x396b6c[_0x396b6c[_0xd9de53[_0x50214e(0x1a6)]]=0x2]=_0xd9de53[_0x50214e(0x1a6)],_0x396b6c[_0x396b6c[_0xd9de53['cnEoR']]=0x8]=_0x50214e(0x1c6),_0x396b6c[_0x396b6c[_0xd9de53['NtqEg']]=0x64]=_0x50214e(0x1ae);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x436531(0x1b6);export const IMAGE_HTTP_HOST_NT=_0x436531(0x1b1);export var GrayTipElementSubType;(function(_0xe179d6){var _0x496847=_0x436531,_0xf9d233={'YmWNF':_0x496847(0x19b),'XGvzT':_0x496847(0x1be)};_0xe179d6[_0xe179d6[_0xf9d233[_0x496847(0x1c3)]]=0xc]=_0xf9d233['YmWNF'],_0xe179d6[_0xe179d6[_0x496847(0x1be)]=0x11]=_0xf9d233[_0x496847(0x1ca)];}(GrayTipElementSubType||(GrayTipElementSubType={})));function _0x10ab(_0xa3d15b,_0x1388ce){var _0x3bcf4=_0x3bcf();return _0x10ab=function(_0x10abac,_0x2c2424){_0x10abac=_0x10abac-0x193;var _0x6cbb7c=_0x3bcf4[_0x10abac];return _0x6cbb7c;},_0x10ab(_0xa3d15b,_0x1388ce);}export var FaceType;(function(_0x48897a){var _0x51d38a=_0x436531,_0x271c44={'pgDqE':_0x51d38a(0x1b3),'hVRhc':_0x51d38a(0x1a1),'TTKAR':'dice'};_0x48897a[_0x48897a[_0x51d38a(0x1b3)]=0x1]=_0x271c44[_0x51d38a(0x1cb)],_0x48897a[_0x48897a[_0x271c44[_0x51d38a(0x1c2)]]=0x2]=_0x271c44[_0x51d38a(0x1c2)],_0x48Line truncated
|
||||
var _0x4ff6c3=_0x113b;(function(_0x42b02f,_0xa4b1a){var _0x79d6f=_0x113b,_0x5e2f51=_0x42b02f();while(!![]){try{var _0x532c04=-parseInt(_0x79d6f(0x159))/0x1*(-parseInt(_0x79d6f(0x131))/0x2)+parseInt(_0x79d6f(0x13f))/0x3*(-parseInt(_0x79d6f(0x14c))/0x4)+parseInt(_0x79d6f(0x147))/0x5*(-parseInt(_0x79d6f(0x155))/0x6)+parseInt(_0x79d6f(0x12f))/0x7+parseInt(_0x79d6f(0x151))/0x8*(parseInt(_0x79d6f(0x15f))/0x9)+-parseInt(_0x79d6f(0x12a))/0xa*(parseInt(_0x79d6f(0x13a))/0xb)+parseInt(_0x79d6f(0x13d))/0xc*(parseInt(_0x79d6f(0x14d))/0xd);if(_0x532c04===_0xa4b1a)break;else _0x5e2f51['push'](_0x5e2f51['shift']());}catch(_0x1bb94f){_0x5e2f51['push'](_0x5e2f51['shift']());}}}(_0x2d14,0x43907));export var ElementType;(function(_0x3e9d36){var _0x2ff201=_0x113b,_0x173153={'sIkYv':_0x2ff201(0x129),'Fvaeq':'MFACE','iRUUS':_0x2ff201(0x14a),'NFXrV':_0x2ff201(0x139),'XwjJw':'FACE','OJkBs':_0x2ff201(0x12d),'IeqhQ':_0x2ff201(0x142),'GTbvs':_0x2ff201(0x123),'kibDa':_0x2ff201(0x130),'DKoVA':_0x2ff201(0x137)},_0x37efa0=_0x173153['sIkYv']['split']('|'),_0x4c8c97=0x0;while(!![]){switch(_0x37efa0[_0x4c8c97++]){case'0':_0x3e9d36[_0x3e9d36[_0x173153[_0x2ff201(0x124)]]=0xb]=_0x173153[_0x2ff201(0x124)];continue;case'1':_0x3e9d36[_0x3e9d36[_0x173153[_0x2ff201(0x149)]]=0x1]=_0x173153[_0x2ff201(0x149)];continue;case'2':_0x3e9d36[_0x3e9d36[_0x2ff201(0x140)]=0xe]=_0x2ff201(0x140);continue;case'3':_0x3e9d36[_0x3e9d36[_0x173153[_0x2ff201(0x14b)]]=0x4]=_0x173153[_0x2ff201(0x14b)];continue;case'4':_0x3e9d36[_0x3e9d36[_0x173153['XwjJw']]=0x6]=_0x2ff201(0x144);continue;case'5':_0x3e9d36[_0x3e9d36[_0x173153['OJkBs']]=0x7]=_0x173153['OJkBs'];continue;case'6':_0x3e9d36[_0x3e9d36[_0x173153['IeqhQ']]=0x5]=_0x173153[_0x2ff201(0x160)];continue;case'7':_0x3e9d36[_0x3e9d36['ARK']=0xa]=_0x173153[_0x2ff201(0x161)];continue;case'8':_0x3e9d36[_0x3e9d36[_0x2ff201(0x130)]=0x2]=_0x173153['kibDa'];continue;case'9':_0x3e9d36[_0x3e9d36[_0x173153[_0x2ff201(0x15e)]]=0x3]=_0x173153[_0x2ff201(0x15e)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x7708f1){var _0x2aaea9=_0x113b,_0x17977a={'NYeNQ':_0x2aaea9(0x15d),'aMnGw':'jpg'};_0x7708f1[_0x7708f1[_0x2aaea9(0x15d)]=0x7d0]=_0x17977a[_0x2aaea9(0x156)],_0x7708f1[_0x7708f1[_0x17977a[_0x2aaea9(0x157)]]=0x3e8]=_0x17977a['aMnGw'];}(PicType||(PicType={})));export var PicSubType;(function(_0x340a06){var _0x478607=_0x113b,_0x35c6d1={'xmFrt':_0x478607(0x135),'VuxWB':_0x478607(0x153)};_0x340a06[_0x340a06[_0x478607(0x135)]=0x0]=_0x35c6d1[_0x478607(0x138)],_0x340a06[_0x340a06['face']=0x1]=_0x35c6d1[_0x478607(0x141)];}(PicSubType||(PicSubType={})));export var AtType;function _0x2d14(){var _0x9f3805=['5316JSlpEU','NYeNQ','aMnGw','kMrPA','252863EASyQq','mUAVJ','CSOno','INVITE_NEW_MEMBER','gif','DKoVA','18XjrboN','IeqhQ','GTbvs','https://gchat.qpic.cn','KaLmH','Ulxsy','MEMBER_NEW_TITLE','dice','ARK','Fvaeq','YQWJF','memberIncrease','temp','YYYhe','1|8|9|3|6|4|5|7|0|2','3109270OiDqgk','ThLgb','atAll','REPLY','normal2','948346WLbgLV','PIC','2Zrmxvq','dOIsf','ban','chatDevice','normal','CarxX','FILE','xmFrt','PTT','11azYqyh','coHLO','GyUlX','4944432ciXKYN','atUser','3ARooDo','MARKDOWN','VuxWB','VIDEO','oprJo','FACE','jMfkZ','RPS','255UVSZJF','friend','iRUUS','TEXT','NFXrV','1076724fuDAnW','13UeyEyu','kicked','hwmzg','https://multimedia.nt.qq.com.cn','406640fTCZnB','notAt','face','ZBenp'];_0x2d14=function(){return _0x9f3805;};return _0x2d14();}(function(_0x58fcaf){var _0x32522a=_0x113b,_0x4eefb1={'jMfkZ':_0x32522a(0x152),'hwmzg':_0x32522a(0x12c),'ZBenp':_0x32522a(0x13e)};_0x58fcaf[_0x58fcaf['notAt']=0x0]=_0x4eefb1[_0x32522a(0x145)],_0x58fcaf[_0x58fcaf[_0x4eefb1[_0x32522a(0x14f)]]=0x1]=_0x4eefb1['hwmzg'],_0x58fcaf[_0x58fcaf[_0x4eefb1[_0x32522a(0x154)]]=0x2]=_0x4eefb1['ZBenp'];}(AtType||(AtType={})));export var ChatType;(function(_0x118bd2){var _0x26a00b=_0x113b,_0xb3a74={'CSOno':'friend','oprJo':'group','dOIsf':_0x26a00b(0x134),'CarxX':_0x26a00b(0x127)};_0x118bd2[_0x118bd2[_0xb3a74[_0x26a00b(0x15b)]]=0x1]=_0x26a00b(0x148),_0x118bd2[_0x118bd2[_0xb3a74['oprJo']]=0x2]=_0xb3a74[_0x26a00b(0x143)],_0x118bd2[_0x118bd2[_0xb3a74[_0x26a00b(0x132)]]=0x8]=_0xb3a74[_0x26a00b(0x132)],_0x118bd2[_0x118bd2['temp']=0x64]=_0xb3a74[_0x26a00b(0x136)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x4ff6c3(0x162);export const IMAGE_HTTP_HOST_NT=_0x4ff6c3(0x150);export var GrayTipElementSubType;(function(_0x169045){var _0x12fdec=_0x4ff6c3,_0x3bebba={'GyUlX':_0x12fdec(0x15c),'ThLgb':_0x12fdec(0x121)};_0x169045[_0x169045[_0x3bebba[_0x12fdec(0x13c)]]=0xc]=_0x3bebba[_0x12fdec(0x13c)],_0x169045[_0x169045[_0x3bebba[_0x12fdec(0x12b)]]=0x11]=_0x3bebba['ThLgb'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;function _0x113b(_0x4a60e1,_0x2408d7){var _0x2d1434=_0x2d14();return _0x113b=function(_0x113b7c,_0x505255){_0x113b7c=_0x113b7c-0x11f;var _0x2f29f4=_0x2d1434[_0x113b7c];return _0x2f29f4;},_0x113b(_0x4a60e1,_0x2408d7);}(function(_0x55379d){var _0x598720=_0x4ff6c3,_0x3e2663={'Ulxsy':_0x598720(0x135),'YQWJF':Line truncated
|
||||
@@ -1 +1 @@
|
||||
function _0x5272(_0x350aef,_0x3920b3){var _0x34b0fd=_0x34b0();return _0x5272=function(_0x527269,_0x7ff4d){_0x527269=_0x527269-0xd2;var _0x28e1a9=_0x34b0fd[_0x527269];return _0x28e1a9;},_0x5272(_0x350aef,_0x3920b3);}(function(_0x496da9,_0x6f223e){var _0x26ff8a=_0x5272,_0x39c89b=_0x496da9();while(!![]){try{var _0x40bfd1=parseInt(_0x26ff8a(0xf0))/0x1+parseInt(_0x26ff8a(0xe3))/0x2+-parseInt(_0x26ff8a(0xd4))/0x3+parseInt(_0x26ff8a(0xe5))/0x4*(parseInt(_0x26ff8a(0xdb))/0x5)+-parseInt(_0x26ff8a(0xe0))/0x6+parseInt(_0x26ff8a(0xe1))/0x7*(-parseInt(_0x26ff8a(0xd9))/0x8)+-parseInt(_0x26ff8a(0xd6))/0x9*(-parseInt(_0x26ff8a(0xe7))/0xa);if(_0x40bfd1===_0x6f223e)break;else _0x39c89b['push'](_0x39c89b['shift']());}catch(_0xa8d27c){_0x39c89b['push'](_0x39c89b['shift']());}}}(_0x34b0,0x5c45c));export var GroupNotifyTypes;(function(_0x71c7fa){var _0xec0c8c=_0x5272,_0x4b503d={'pMdsp':_0xec0c8c(0xd2),'KfBWP':'INVITED_JOIN','YPRBv':_0xec0c8c(0xed),'elPnr':_0xec0c8c(0xef),'GiWbJ':_0xec0c8c(0xf2),'oaJbb':'MEMBER_EXIT','roCpK':_0xec0c8c(0xda),'stzNa':'ADMIN_UNSET_OTHER'};_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xe8)]]=0x1]=_0xec0c8c(0xd2),_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xd7)]]=0x4]=_0x4b503d['KfBWP'],_0x71c7fa[_0x71c7fa[_0x4b503d['YPRBv']]=0x7]=_0x4b503d[_0xec0c8c(0xe9)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xd8)]]=0x8]=_0x4b503d[_0xec0c8c(0xd8)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xd3)]]=0x9]=_0x4b503d[_0xec0c8c(0xd3)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xe2)]]=0xb]=_0x4b503d[_0xec0c8c(0xe2)],_0x71c7fa[_0x71c7fa[_0x4b503d['roCpK']]=0xc]=_0x4b503d[_0xec0c8c(0xdf)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xee)]]=0xd]=_0x4b503d['stzNa'];}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x15b1b9){var _0x174ac9=_0x5272,_0x18ff93={'ortpO':_0x174ac9(0xd5),'BWfdw':_0x174ac9(0xf1),'ZUjAw':_0x174ac9(0xde),'JeNTc':'REJECT'};_0x15b1b9[_0x15b1b9['IGNORE']=0x0]=_0x18ff93[_0x174ac9(0xea)],_0x15b1b9[_0x15b1b9[_0x18ff93[_0x174ac9(0xdd)]]=0x1]=_0x18ff93[_0x174ac9(0xdd)],_0x15b1b9[_0x15b1b9[_0x18ff93[_0x174ac9(0xe6)]]=0x2]=_0x18ff93[_0x174ac9(0xe6)],_0x15b1b9[_0x15b1b9[_0x174ac9(0xeb)]=0x3]=_0x18ff93['JeNTc'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x29ec7e){var _0x151c67=_0x5272,_0x2c4f45={'TsdQk':'approve','wNrVF':_0x151c67(0xec)};_0x29ec7e[_0x29ec7e[_0x2c4f45[_0x151c67(0xe4)]]=0x1]=_0x2c4f45[_0x151c67(0xe4)],_0x29ec7e[_0x29ec7e[_0x2c4f45[_0x151c67(0xdc)]]=0x2]=_0x151c67(0xec);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x34b0(){var _0x4c55c5=['70UtDMMi','pMdsp','YPRBv','ortpO','REJECT','reject','JOIN_REQUEST','stzNa','ADMIN_SET','737185AqXtFr','WAIT_HANDLE','KICK_MEMBER','INVITE_ME','GiWbJ','579345iYIUhp','IGNORE','717075ySNMYn','KfBWP','elPnr','3003992IrdDBc','ADMIN_UNSET','29615YEwIkQ','wNrVF','BWfdw','APPROVE','roCpK','3155958bLumJc','14tCHYMF','oaJbb','407374lCvNai','TsdQk','236ooSnNu','ZUjAw'];_0x34b0=function(){return _0x4c55c5;};return _0x34b0();}
|
||||
(function(_0x50fc83,_0xa9b6e){var _0x3e9640=_0x5823,_0x4ab2e7=_0x50fc83();while(!![]){try{var _0x34a23a=parseInt(_0x3e9640(0x1fb))/0x1+-parseInt(_0x3e9640(0x1dc))/0x2*(parseInt(_0x3e9640(0x1e8))/0x3)+-parseInt(_0x3e9640(0x1ee))/0x4+-parseInt(_0x3e9640(0x1f6))/0x5*(-parseInt(_0x3e9640(0x1f9))/0x6)+-parseInt(_0x3e9640(0x1f1))/0x7*(parseInt(_0x3e9640(0x1df))/0x8)+-parseInt(_0x3e9640(0x1e0))/0x9*(parseInt(_0x3e9640(0x1f4))/0xa)+parseInt(_0x3e9640(0x1f8))/0xb;if(_0x34a23a===_0xa9b6e)break;else _0x4ab2e7['push'](_0x4ab2e7['shift']());}catch(_0x5f1083){_0x4ab2e7['push'](_0x4ab2e7['shift']());}}}(_0x2b2a,0xf2426));export var GroupNotifyTypes;(function(_0x1bee10){var _0x4d190f=_0x5823,_0x32dacf={'mqfNe':'INVITE_ME','hrtTj':_0x4d190f(0x1eb),'iVCds':_0x4d190f(0x1d9),'Wqqgr':_0x4d190f(0x1e4),'mhFnM':_0x4d190f(0x1ed),'Ohadp':_0x4d190f(0x1f2),'DcOFc':_0x4d190f(0x1e1)};_0x1bee10[_0x1bee10[_0x4d190f(0x1d8)]=0x1]=_0x32dacf['mqfNe'],_0x1bee10[_0x1bee10[_0x32dacf[_0x4d190f(0x1e9)]]=0x4]=_0x4d190f(0x1eb),_0x1bee10[_0x1bee10[_0x4d190f(0x1ef)]=0x7]=_0x4d190f(0x1ef),_0x1bee10[_0x1bee10[_0x32dacf[_0x4d190f(0x1da)]]=0x8]='ADMIN_SET',_0x1bee10[_0x1bee10[_0x32dacf[_0x4d190f(0x1ea)]]=0x9]=_0x32dacf[_0x4d190f(0x1ea)],_0x1bee10[_0x1bee10[_0x32dacf['mhFnM']]=0xb]=_0x32dacf[_0x4d190f(0x1db)],_0x1bee10[_0x1bee10[_0x32dacf[_0x4d190f(0x1dd)]]=0xc]=_0x32dacf[_0x4d190f(0x1dd)],_0x1bee10[_0x1bee10[_0x32dacf[_0x4d190f(0x1e3)]]=0xd]=_0x32dacf[_0x4d190f(0x1e3)];}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x2b2a(){var _0x3fafab=['mhFnM','4KaQOAO','Ohadp','iKXWS','120KEGoua','5112yEsyum','ADMIN_UNSET_OTHER','WAIT_HANDLE','DcOFc','KICK_MEMBER','REJECT','rMYNO','ORPnf','1507299mNkRyh','hrtTj','Wqqgr','INVITED_JOIN','qOHib','MEMBER_EXIT','2982496DEDNKZ','JOIN_REQUEST','reject','714602kJWEbL','ADMIN_UNSET','approve','21290SOJJGb','WyOZC','5WZHJAI','IGNORE','30060778shJLGT','9564666OkUmOc','TjHiN','1156437LWpZrN','APPROVE','INVITE_ME','ADMIN_SET','iVCds'];_0x2b2a=function(){return _0x3fafab;};return _0x2b2a();}(function(_0x53562f){var _0x5962a2=_0x5823,_0x31bb04={'iKXWS':_0x5962a2(0x1f7),'ORPnf':_0x5962a2(0x1e2),'WyOZC':_0x5962a2(0x1d7),'rMYNO':_0x5962a2(0x1e5)};_0x53562f[_0x53562f[_0x5962a2(0x1f7)]=0x0]=_0x31bb04[_0x5962a2(0x1de)],_0x53562f[_0x53562f[_0x31bb04[_0x5962a2(0x1e7)]]=0x1]=_0x31bb04['ORPnf'],_0x53562f[_0x53562f[_0x31bb04[_0x5962a2(0x1f5)]]=0x2]='APPROVE',_0x53562f[_0x53562f[_0x31bb04[_0x5962a2(0x1e6)]]=0x3]=_0x31bb04[_0x5962a2(0x1e6)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x5823(_0x8c74bf,_0x107880){var _0x2b2a6b=_0x2b2a();return _0x5823=function(_0x582356,_0x1df26a){_0x582356=_0x582356-0x1d7;var _0x337fab=_0x2b2a6b[_0x582356];return _0x337fab;},_0x5823(_0x8c74bf,_0x107880);}(function(_0x46e652){var _0x1f7680=_0x5823,_0x15fe34={'TjHiN':_0x1f7680(0x1f3),'qOHib':_0x1f7680(0x1f0)};_0x46e652[_0x46e652[_0x15fe34[_0x1f7680(0x1fa)]]=0x1]='approve',_0x46e652[_0x46e652[_0x15fe34['qOHib']]=0x2]=_0x15fe34[_0x1f7680(0x1ec)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
||||
@@ -1 +1 @@
|
||||
(function(_0x3280a,_0x31ff92){var _0x134a05=_0x4e1e,_0x2bb004=_0x3280a();while(!![]){try{var _0x4dad6b=-parseInt(_0x134a05(0xb5))/0x1+-parseInt(_0x134a05(0xaf))/0x2*(parseInt(_0x134a05(0xb3))/0x3)+-parseInt(_0x134a05(0xb7))/0x4*(-parseInt(_0x134a05(0xb4))/0x5)+-parseInt(_0x134a05(0xb1))/0x6*(parseInt(_0x134a05(0xb6))/0x7)+parseInt(_0x134a05(0xbb))/0x8+-parseInt(_0x134a05(0xb0))/0x9+-parseInt(_0x134a05(0xba))/0xa*(-parseInt(_0x134a05(0xbc))/0xb);if(_0x4dad6b===_0x31ff92)break;else _0x2bb004['push'](_0x2bb004['shift']());}catch(_0x2778f5){_0x2bb004['push'](_0x2bb004['shift']());}}}(_0x4304,0x62c6e));function _0x4e1e(_0x91c316,_0xf4d96){var _0x430490=_0x4304();return _0x4e1e=function(_0x4e1e5d,_0x3faaaa){_0x4e1e5d=_0x4e1e5d-0xaf;var _0x5cf116=_0x430490[_0x4e1e5d];return _0x5cf116;},_0x4e1e(_0x91c316,_0xf4d96);}function _0x4304(){var _0x350a8d=['male','18CipHad','125aMNjeo','66413NvXFfL','14PSeYPD','105100BCWNiC','MkibG','UtMHF','10134270DaVRtl','6280848utMQVo','11lPNmHf','MnbWd','228166QAMZlT','5726079GnNBZL','1991028easFoz'];_0x4304=function(){return _0x350a8d;};return _0x4304();}export var Sex;(function(_0x440107){var _0x296e4a=_0x4e1e,_0x4d5d49={'MkibG':_0x296e4a(0xb2),'MnbWd':'female','UtMHF':'unknown'};_0x440107[_0x440107[_0x4d5d49['MkibG']]=0x1]=_0x4d5d49[_0x296e4a(0xb8)],_0x440107[_0x440107[_0x4d5d49[_0x296e4a(0xbd)]]=0x2]=_0x4d5d49['MnbWd'],_0x440107[_0x440107[_0x4d5d49[_0x296e4a(0xb9)]]=0xff]=_0x4d5d49[_0x296e4a(0xb9)];}(Sex||(Sex={})));
|
||||
(function(_0x4f031d,_0x410210){var _0x43b4ee=_0x4444,_0x29e1a1=_0x4f031d();while(!![]){try{var _0x5ed45e=parseInt(_0x43b4ee(0xd8))/0x1+parseInt(_0x43b4ee(0xd0))/0x2+parseInt(_0x43b4ee(0xd7))/0x3*(parseInt(_0x43b4ee(0xd1))/0x4)+-parseInt(_0x43b4ee(0xda))/0x5+-parseInt(_0x43b4ee(0xd2))/0x6+parseInt(_0x43b4ee(0xdb))/0x7+parseInt(_0x43b4ee(0xd3))/0x8;if(_0x5ed45e===_0x410210)break;else _0x29e1a1['push'](_0x29e1a1['shift']());}catch(_0x958326){_0x29e1a1['push'](_0x29e1a1['shift']());}}}(_0x400d,0x2b8b3));export var Sex;function _0x4444(_0x7b19c0,_0x172564){var _0x400d85=_0x400d();return _0x4444=function(_0x4444e3,_0x15f9fe){_0x4444e3=_0x4444e3-0xd0;var _0xcb12d2=_0x400d85[_0x4444e3];return _0xcb12d2;},_0x4444(_0x7b19c0,_0x172564);}function _0x400d(){var _0x57a345=['385120dWHWxt','4gekAvI','2099052IEomQh','290712JqydLj','female','VbKQY','male','1009293TZqjns','205863Gxinbe','syKOq','1681840aGoUWU','653604wBMfBz'];_0x400d=function(){return _0x57a345;};return _0x400d();}(function(_0x3effcf){var _0x5a950e=_0x4444,_0xb8a219={'VbKQY':_0x5a950e(0xd6),'mDCFp':'female','syKOq':'unknown'};_0x3effcf[_0x3effcf[_0xb8a219[_0x5a950e(0xd5)]]=0x1]=_0xb8a219['VbKQY'],_0x3effcf[_0x3effcf[_0x5a950e(0xd4)]=0x2]=_0xb8a219['mDCFp'],_0x3effcf[_0x3effcf['unknown']=0xff]=_0xb8a219[_0x5a950e(0xd9)];}(Sex||(Sex={})));
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
const _0x3a05cc=_0x27d4;(function(_0x31fea6,_0x47861a){const _0x32383f=_0x27d4,_0x37ef87=_0x31fea6();while(!![]){try{const _0x54011b=-parseInt(_0x32383f(0x13d))/0x1*(parseInt(_0x32383f(0x136))/0x2)+parseInt(_0x32383f(0x147))/0x3*(parseInt(_0x32383f(0x139))/0x4)+-parseInt(_0x32383f(0x143))/0x5*(-parseInt(_0x32383f(0x13c))/0x6)+parseInt(_0x32383f(0x146))/0x7*(-parseInt(_0x32383f(0x142))/0x8)+parseInt(_0x32383f(0x137))/0x9+-parseInt(_0x32383f(0x13f))/0xa+parseInt(_0x32383f(0x13b))/0xb;if(_0x54011b===_0x47861a)break;else _0x37ef87['push'](_0x37ef87['shift']());}catch(_0x11baeb){_0x37ef87['push'](_0x37ef87['shift']());}}}(_0x5a33,0x89a5e));function _0x27d4(_0x3f525a,_0x11f5de){const _0x5a33a0=_0x5a33();return _0x27d4=function(_0x27d4b8,_0x18b0f3){_0x27d4b8=_0x27d4b8-0x135;let _0x951670=_0x5a33a0[_0x27d4b8];return _0x951670;},_0x27d4(_0x3f525a,_0x11f5de);}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';function _0x5a33(){const _0x3f519a=['HWSXd','5657060mvrljl','moeHook','RcJyT','137608xtgWUz','2115635ScNrKF','version','GetRkey','217oSGugk','3imFOJj','isAvailable','qsSHB','HookRkey','MoeHoo','344506AZrnht','8950887AgcdAn','加载\x20moehoo\x20失败','2082804wQWgOd','getRKey','757658yUEFZM','6ZqhHxd','2eXrUGl'];_0x5a33=function(){return _0x3f519a;};return _0x5a33();}class HookApi{[_0x3a05cc(0x140)]=null;constructor(){const _0x556fd6=_0x3a05cc,_0x2124ee={'HWSXd':function(_0xd52f27,_0x53e328){return _0xd52f27(_0x53e328);},'qsSHB':_0x556fd6(0x135),'MmmGm':'./MoeHoo.node','RcJyT':function(_0xdb6f6a,_0x326c00,_0x2f1085){return _0xdb6f6a(_0x326c00,_0x2f1085);}};try{_0x2124ee['HWSXd'](cpModule,_0x2124ee[_0x556fd6(0x149)]),this['moeHook']=_0x2124ee[_0x556fd6(0x13e)](require,_0x2124ee['MmmGm']),this['moeHook'][_0x556fd6(0x14a)](qqPkgInfo[_0x556fd6(0x144)]);}catch(_0x26bb38){_0x2124ee[_0x556fd6(0x141)](logError,_0x556fd6(0x138),_0x26bb38);}}[_0x3a05cc(0x13a)](){const _0x458fb9=_0x3a05cc;return this[_0x458fb9(0x140)]?.[_0x458fb9(0x145)]()||'';}[_0x3a05cc(0x148)](){const _0x307b44=_0x3a05cc;return!!this[_0x307b44(0x140)];}}export const hookApi=new HookApi();
|
||||
(function(_0xecc14b,_0x3eaadd){const _0x450571=_0x31cb,_0x46704d=_0xecc14b();while(!![]){try{const _0x2da692=-parseInt(_0x450571(0xf853))/0x1*(parseInt(_0x450571(0xf0bb))/0x2)+parseInt(_0x450571(0xdd64))/0x3+parseInt(_0x450571(0x8a6b))/0x4+parseInt(_0x450571(0x9d5c))/0x5*(parseInt(_0x450571(0x64c3))/0x6)+-parseInt(_0x450571(0xcc5d))/0x7+-parseInt(_0x450571(0x124d5))/0x8*(parseInt(_0x450571(0x7f2c))/0x9)+-parseInt(_0x450571(0xc601))/0xa*(parseInt(_0x450571(0xb33a))/0xb);if(_0x2da692===_0x3eaadd)break;else _0x46704d['push'](_0x46704d['shift']());}catch(_0x5c25b3){_0x46704d['push'](_0x46704d['shift']());}}}(_0x2854,0x51567),(function(_0x2f3480,_0x3fb59a){const _0x58a096=_0x31cb,_0x12e9a8={'cnhiJ':function(_0x1f37fd,_0x5af66e){return _0x1f37fd+_0x5af66e;},'PnoIu':function(_0x335c1d,_0x51a508){return _0x335c1d/_0x51a508;},'Kscii':function(_0x3b4d79,_0x4919fa){return _0x3b4d79(_0x4919fa);},'JWRaU':function(_0x29db1c,_0x2fd84e){return _0x29db1c(_0x2fd84e);},'XBzVb':function(_0x42ff41,_0xa2cf09){return _0x42ff41*_0xa2cf09;},'jujCR':function(_0xad690d,_0x3d33c5){return _0xad690d(_0x3d33c5);},'MbBYy':function(_0x34c31a,_0x31f30f){return _0x34c31a(_0x31f30f);},'RNvTY':function(_0x4fc1b2,_0x2477ce){return _0x4fc1b2(_0x2477ce);},'ePucJ':function(_0x5e5881,_0x82239e){return _0x5e5881/_0x82239e;},'rWacQ':function(_0x412b60,_0x3b5a4d){return _0x412b60(_0x3b5a4d);},'hKPaR':function(_0xd247c0,_0x4af46c){return _0xd247c0(_0x4af46c);},'fHvHb':function(_0x2296ba,_0xff4cc){return _0x2296ba(_0xff4cc);},'tWwUo':function(_0x5d7068,_0x4d5129){return _0x5d7068(_0x4d5129);},'ZBkXK':function(_0x35f30b,_0x4096fe){return _0x35f30b===_0x4096fe;},'UsQXy':_0x58a096(0xca69),'DpVIi':_0x58a096(0x58bc)},_0x106fb8=_0x3685,_0x53c231=_0x2f3480();while(!![]){try{const _0x3c6447=_0x12e9a8[_0x58a096(0x3aca)](_0x12e9a8[_0x58a096(0x3aca)](_0x12e9a8[_0x58a096(0x3aca)](_0x12e9a8[_0x58a096(0x4cdd)](-_0x12e9a8[_0x58a096(0xddff)](parseInt,_0x12e9a8['JWRaU'](_0x106fb8,0x2fc3)),0x1),_0x12e9a8[_0x58a096(0x104d1)](-_0x12e9a8[_0x58a096(0xddff)](parseInt,_0x12e9a8['JWRaU'](_0x106fb8,0x34b5))/0x2,_0x12e9a8[_0x58a096(0x4cdd)](-_0x12e9a8[_0x58a096(0xddff)](parseInt,_0x106fb8(0x4135)),0x3)))+_0x12e9a8[_0x58a096(0x4cdd)](-parseInt(_0x12e9a8['jujCR'](_0x106fb8,0x35f0)),0x4)+_0x12e9a8[_0x58a096(0x4cdd)](-_0x12e9a8[_0x58a096(0x2883)](parseInt,_0x12e9a8['RNvTY'](_0x106fb8,0x5e4)),0x5),_0x12e9a8[_0x58a096(0x104d1)](_0x12e9a8['ePucJ'](-parseInt(_0x12e9a8[_0x58a096(0x8e08)](_0x106fb8,0x2aa6)),0x6),-parseInt(_0x12e9a8[_0x58a096(0xe9da)](_0x106fb8,0x5d68))/0x7)),_0x12e9a8['ePucJ'](-_0x12e9a8[_0x58a096(0x53f)](parseInt,_0x106fb8(0x2ab4)),0x8))+_0x12e9a8[_0x58a096(0x104d1)](_0x12e9a8[_0x58a096(0x53f)](parseInt,_0x12e9a8[_0x58a096(0x7160)](_0x106fb8,0x178c))/0x9,_0x12e9a8[_0x58a096(0x4cdd)](_0x12e9a8[_0x58a096(0x3b92)](parseInt,_0x12e9a8[_0x58a096(0x3b92)](_0x106fb8,0x5425)),0xa));if(_0x12e9a8['ZBkXK'](_0x3c6447,_0x3fb59a))break;else _0x53c231['push'](_0x53c231[_0x12e9a8[_0x58a096(0x1900)]]());}catch(_0x1b20d3){_0x53c231[_0x12e9a8['DpVIi']](_0x53c231[_0x12e9a8[_0x58a096(0x1900)]]());}}}(_0x221b,0x5ab78),(function(_0x3f4964,_0x2a5e07){const _0x272551=_0x31cb,_0x54942d={'fIewB':function(_0x3f10e9){return _0x3f10e9();},'cRzao':function(_0x83ebf3,_0x45e63c){return _0x83ebf3+_0x45e63c;},'dNuaN':function(_0x4e9e17,_0x5ebe2c){return _0x4e9e17(_0x5ebe2c);},'IqPWT':function(_0x101ab3,_0x1d5fe6){return _0x101ab3/_0x1d5fe6;},'NsaRb':function(_0x357af9,_0x389866){return _0x357af9*_0x389866;},'NAHGp':function(_0x22ad8a,_0x2f61c6){return _0x22ad8a===_0x2f61c6;},'jGHDO':_0x272551(0x58bc),'nQXFK':_0x272551(0xca69),'XDtAK':function(_0x429657,_0x5ec6c5){return _0x429657(_0x5ec6c5);},'bDADF':function(_0xa331e5,_0xd543b3){return _0xa331e5(_0xd543b3);},'ouGSv':function(_0x3f803c,_0x4d8a3f){return _0x3f803c(_0x4d8a3f);},'yDGFc':function(_0x17d559,_0x4770d5){return _0x17d559/_0x4770d5;},'UlSEW':_0x272551(0xe959),'uIDIs':function(_0x562179,_0x1f4c4f){return _0x562179(_0x1f4c4f);},'MTYnx':function(_0x3c297c,_0x768e29){return _0x3c297c(_0x768e29);},'pqnhE':'RNBBn','qoxNS':function(_0x384c0b,_0x13fcd0){return _0x384c0b(_0x13fcd0);},'dBpiV':function(_0x36929b,_0x16a4f9){return _0x36929b(_0x16a4f9);},'wfpfp':function(_0x273dd5,_0x494379){return _0x273dd5(_0x494379);},'XFxnQ':function(_0x3ff21e,_0x50fa3b){return _0x3ff21e(_0x50fa3b);},'SHetw':'PQeDS','UHOOG':function(_0x388737,_0x4b3fb5){return _0x388737(_0x4b3fb5);},'pkHXk':function(_0x1f9ead,_0x3f26c5){return _0x1f9ead(_0x3f26c5);},'VbIaw':function(_0x39be6e,_0x509397){return _0x39be6e(_0x509397);},'sMOsR':function(_0xdc0321,_0x2cf6a0){return _0xdc0321(_0x2cf6a0);},'kmPxr':function(_0x3c6c5a,_0x2d0054){return _0x3c6c5a(_0x2d0054);}},_0x8508f7=_0x3685,_0xea5aa7={'aWimB':function(_0x36f5e7){const _0x51e0ba=_0x272551;return _0x54942d[_0x51e0ba(0xa081)](_0x36f5e7);},'HWMxo':function(_0xb95006,_0x215c7c){return _0xb95006+_0x215c7c;},'jlBap':function(_0x1ea0c8,_0x417a30){return _0x54942d['cRzao'](_0x1ea0c8,_0x417a30);},'OlAja':function(_0x267541,_0x34dc63){returLine truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x1b70cb,_0x45fb83){var _0x4fa32e=_0x1c40,_0x520afa=_0x1b70cb();while(!![]){try{var _0x17f243=parseInt(_0x4fa32e(0x164))/0x1*(parseInt(_0x4fa32e(0x166))/0x2)+parseInt(_0x4fa32e(0x161))/0x3*(-parseInt(_0x4fa32e(0x15d))/0x4)+parseInt(_0x4fa32e(0x165))/0x5+parseInt(_0x4fa32e(0x160))/0x6*(parseInt(_0x4fa32e(0x15f))/0x7)+-parseInt(_0x4fa32e(0x163))/0x8+-parseInt(_0x4fa32e(0x15e))/0x9*(-parseInt(_0x4fa32e(0x167))/0xa)+-parseInt(_0x4fa32e(0x162))/0xb;if(_0x17f243===_0x45fb83)break;else _0x520afa['push'](_0x520afa['shift']());}catch(_0x377d96){_0x520afa['push'](_0x520afa['shift']());}}}(_0x10a9,0xebdf9));import _0x6adb3a from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x1c40(_0x5d9ea4,_0x4d0c51){var _0x10a9e7=_0x10a9();return _0x1c40=function(_0x1c4037,_0x4524bd){_0x1c4037=_0x1c4037-0x15d;var _0xcdc415=_0x10a9e7[_0x1c4037];return _0xcdc415;},_0x1c40(_0x5d9ea4,_0x4d0c51);}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x6adb3a as Wrapper};export*as WrapperInterface from'./wrapper';function _0x10a9(){var _0x5609d3=['977583sxNCAL','16726105wbEbFh','2579432fYLtuT','23VEqxwc','8742760MIYBtM','133096SmKByg','60Ocvowi','12PcazSE','50868ecXFNE','28kyQmhE','710454wRNMbW'];_0x10a9=function(){return _0x5609d3;};return _0x10a9();}export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
(function(_0x4d124c,_0x474f33){var _0x4c62e6=_0x5e05,_0x1eeba3=_0x4d124c();while(!![]){try{var _0x29af9c=parseInt(_0x4c62e6(0x190))/0x1*(-parseInt(_0x4c62e6(0x191))/0x2)+-parseInt(_0x4c62e6(0x199))/0x3+parseInt(_0x4c62e6(0x198))/0x4*(parseInt(_0x4c62e6(0x193))/0x5)+-parseInt(_0x4c62e6(0x196))/0x6+-parseInt(_0x4c62e6(0x194))/0x7+parseInt(_0x4c62e6(0x195))/0x8*(parseInt(_0x4c62e6(0x197))/0x9)+parseInt(_0x4c62e6(0x192))/0xa;if(_0x29af9c===_0x474f33)break;else _0x1eeba3['push'](_0x1eeba3['shift']());}catch(_0x190ba3){_0x1eeba3['push'](_0x1eeba3['shift']());}}}(_0xda19,0x7850c));import _0xfd6550 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';function _0xda19(){var _0x18b492=['1981728UEGHyb','1NoPsPG','514190NPMpxt','20522330LvRRCk','105ljKZlR','2270555EKZSMR','8IMMUsj','4368558LXyEtB','883863ZRQPYH','59524DSYIKB'];_0xda19=function(){return _0x18b492;};return _0xda19();}export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x5e05(_0xb3d80d,_0x260eac){var _0xda1981=_0xda19();return _0x5e05=function(_0x5e056c,_0x3c5518){_0x5e056c=_0x5e056c-0x190;var _0x2fd7f5=_0xda1981[_0x5e056c];return _0x2fd7f5;},_0x5e05(_0xb3d80d,_0x260eac);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0xfd6550 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
@@ -1 +1 @@
|
||||
var _0x505646=_0x3d52;(function(_0x140272,_0x2fce8d){var _0x119dea=_0x3d52,_0x4b0f1a=_0x140272();while(!![]){try{var _0x52a294=parseInt(_0x119dea(0x12e))/0x1*(parseInt(_0x119dea(0x12a))/0x2)+parseInt(_0x119dea(0x11c))/0x3*(parseInt(_0x119dea(0x11b))/0x4)+parseInt(_0x119dea(0x118))/0x5*(-parseInt(_0x119dea(0x12d))/0x6)+-parseInt(_0x119dea(0x129))/0x7*(parseInt(_0x119dea(0x121))/0x8)+parseInt(_0x119dea(0x122))/0x9*(parseInt(_0x119dea(0x11a))/0xa)+-parseInt(_0x119dea(0x126))/0xb*(parseInt(_0x119dea(0x116))/0xc)+parseInt(_0x119dea(0x11f))/0xd;if(_0x52a294===_0x2fce8d)break;else _0x4b0f1a['push'](_0x4b0f1a['shift']());}catch(_0x26a136){_0x4b0f1a['push'](_0x4b0f1a['shift']());}}}(_0x2d1a,0x7ba96));function _0x3d52(_0x1744c1,_0x81411b){var _0x2d1a44=_0x2d1a();return _0x3d52=function(_0x3d5260,_0x2ea068){_0x3d5260=_0x3d5260-0x115;var _0x65cb5=_0x2d1a44[_0x3d5260];return _0x65cb5;},_0x3d52(_0x1744c1,_0x81411b);}function _0x2d1a(){var _0x22a92e=['9FJDSlf','onAddBuddyNeedVerify','onBuddyReqChange','onNickUpdated','44gICzft','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','69146RvTFjC','2HRvfLF','onSpacePermissionInfos','onBuddyDetailInfoChange','114HrPAOh','187067WOAQqR','onDelBatchBuddyInfos','54624VnWncI','onDoubtBuddyReqChange','174350ypjBKL','onAvatarUrlUpdated','1455800kuQZlQ','124940oIeRYk','69ZYYthk','onBlockChanged','onSmartInfos','5751486mxIikq','onBuddyInfoChange','248hXlxeU'];_0x2d1a=function(){return _0x22a92e;};return _0x2d1a();}export class BuddyListener{[_0x505646(0x123)](_0x3f377c){}['onAddMeSettingChanged'](_0x58db3f){}[_0x505646(0x119)](_0x557640){}[_0x505646(0x11d)](_0x187eec){}[_0x505646(0x12c)](_0x916d29){}[_0x505646(0x120)](_0x4effad){}['onBuddyListChange'](_0x2afd00){}['onBuddyRemarkUpdated'](_0x5e1996){}[_0x505646(0x124)](_0x1c60fa){}['onBuddyReqUnreadCntChange'](_0x5316ee){}[_0x505646(0x128)](_0xba21b4){}[_0x505646(0x115)](_0x3d63ac){}[_0x505646(0x117)](_0x3dc115){}[_0x505646(0x127)](_0x1a83fe){}[_0x505646(0x125)](_0x4d966c){}[_0x505646(0x11e)](_0x3aaef9){}[_0x505646(0x12b)](_0x5ca3d2){}}
|
||||
function _0x53de(){var _0x5ac79e=['18297PSxiEG','onAddBuddyNeedVerify','onSmartInfos','onBuddyReqUnreadCntChange','onAvatarUrlUpdated','onDoubtBuddyReqUnreadNumChange','2546412FKcrRD','539235CLVuEp','onCheckBuddySettingResult','onDoubtBuddyReqChange','onBuddyDetailInfoChange','6368WCQDyn','469eGHfJe','25086LuRHEu','2488244InAoQq','4814028bSQLxE','onBuddyReqChange','7119820KauiLh','5EtDBSf','onBlockChanged','onDelBatchBuddyInfos'];_0x53de=function(){return _0x5ac79e;};return _0x53de();}var _0x52f379=_0x4b9d;(function(_0xba55a5,_0x13a47f){var _0x5e3cda=_0x4b9d,_0x3394f0=_0xba55a5();while(!![]){try{var _0x267e6f=parseInt(_0x5e3cda(0x1f2))/0x1+parseInt(_0x5e3cda(0x1f9))/0x2+-parseInt(_0x5e3cda(0x1f1))/0x3+-parseInt(_0x5e3cda(0x1fa))/0x4*(parseInt(_0x5e3cda(0x1fd))/0x5)+-parseInt(_0x5e3cda(0x1f8))/0x6*(-parseInt(_0x5e3cda(0x1f7))/0x7)+-parseInt(_0x5e3cda(0x1f6))/0x8*(-parseInt(_0x5e3cda(0x200))/0x9)+-parseInt(_0x5e3cda(0x1fc))/0xa;if(_0x267e6f===_0x13a47f)break;else _0x3394f0['push'](_0x3394f0['shift']());}catch(_0x391563){_0x3394f0['push'](_0x3394f0['shift']());}}}(_0x53de,0xdffd3));function _0x4b9d(_0x56f43d,_0x2ac6ce){var _0x53dec2=_0x53de();return _0x4b9d=function(_0x4b9d44,_0x12993a){_0x4b9d44=_0x4b9d44-0x1ee;var _0x335aa7=_0x53dec2[_0x4b9d44];return _0x335aa7;},_0x4b9d(_0x56f43d,_0x2ac6ce);}export class BuddyListener{[_0x52f379(0x201)](_0x556e4c){}['onAddMeSettingChanged'](_0x20b0b0){}[_0x52f379(0x1ef)](_0x36f5d6){}[_0x52f379(0x1fe)](_0x8942ad){}[_0x52f379(0x1f5)](_0x33ceb4){}['onBuddyInfoChange'](_0xde1189){}['onBuddyListChange'](_0x3e022d){}['onBuddyRemarkUpdated'](_0xfd0f31){}[_0x52f379(0x1fb)](_0x5a5c6e){}[_0x52f379(0x1ee)](_0x38020a){}[_0x52f379(0x1f3)](_0x2da935){}[_0x52f379(0x1ff)](_0x4c02ff){}[_0x52f379(0x1f4)](_0x29e9b7){}[_0x52f379(0x1f0)](_0x117df9){}['onNickUpdated'](_0x1a779d){}[_0x52f379(0x202)](_0x4d0b8e){}['onSpacePermissionInfos'](_0x6a0a33){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x242f(_0x78fa10,_0x418086){var _0x16caf3=_0x16ca();return _0x242f=function(_0x242fb7,_0x971733){_0x242fb7=_0x242fb7-0xeb;var _0x5db70b=_0x16caf3[_0x242fb7];return _0x5db70b;},_0x242f(_0x78fa10,_0x418086);}var _0x1c47ce=_0x242f;(function(_0x2c6f6b,_0x595586){var _0x1cace0=_0x242f,_0x399f3a=_0x2c6f6b();while(!![]){try{var _0x5d6257=-parseInt(_0x1cace0(0xec))/0x1+-parseInt(_0x1cace0(0xf2))/0x2+parseInt(_0x1cace0(0xf0))/0x3+parseInt(_0x1cace0(0xeb))/0x4+parseInt(_0x1cace0(0xf3))/0x5+-parseInt(_0x1cace0(0xf1))/0x6*(parseInt(_0x1cace0(0xf6))/0x7)+parseInt(_0x1cace0(0xf7))/0x8;if(_0x5d6257===_0x595586)break;else _0x399f3a['push'](_0x399f3a['shift']());}catch(_0x231534){_0x399f3a['push'](_0x399f3a['shift']());}}}(_0x16ca,0x748b8));function _0x16ca(){var _0x47d952=['7728992YgAvHq','1963716cfZQVU','645598sdAHTY','onFileSearch','onSessionListChanged','onSessionChanged','539487tHCMaX','12ryyaaI','385774wrMSKy','1493625AeRPMd','onFileStatusChanged','onFileListChanged','2169139HPkAKH'];_0x16ca=function(){return _0x47d952;};return _0x16ca();}export class KernelFileAssistantListener{[_0x1c47ce(0xf4)](..._0x3ff262){}[_0x1c47ce(0xee)](..._0x2d9f34){}[_0x1c47ce(0xef)](..._0x1e0913){}[_0x1c47ce(0xf5)](..._0x1900d2){}[_0x1c47ce(0xed)](..._0x7b9684){}}
|
||||
function _0x2cfa(_0x440451,_0x195768){var _0x50cd1c=_0x50cd();return _0x2cfa=function(_0x2cfa36,_0x5cb074){_0x2cfa36=_0x2cfa36-0xc8;var _0x293bb5=_0x50cd1c[_0x2cfa36];return _0x293bb5;},_0x2cfa(_0x440451,_0x195768);}var _0x5721de=_0x2cfa;(function(_0x648cbb,_0x2a8a80){var _0x36f25e=_0x2cfa,_0x1333a0=_0x648cbb();while(!![]){try{var _0x3705cc=parseInt(_0x36f25e(0xcb))/0x1+-parseInt(_0x36f25e(0xca))/0x2*(parseInt(_0x36f25e(0xd3))/0x3)+parseInt(_0x36f25e(0xd5))/0x4*(parseInt(_0x36f25e(0xd0))/0x5)+parseInt(_0x36f25e(0xd1))/0x6+parseInt(_0x36f25e(0xcd))/0x7+parseInt(_0x36f25e(0xce))/0x8*(-parseInt(_0x36f25e(0xc9))/0x9)+parseInt(_0x36f25e(0xc8))/0xa*(-parseInt(_0x36f25e(0xcc))/0xb);if(_0x3705cc===_0x2a8a80)break;else _0x1333a0['push'](_0x1333a0['shift']());}catch(_0x52722b){_0x1333a0['push'](_0x1333a0['shift']());}}}(_0x50cd,0x43926));function _0x50cd(){var _0x3f3a77=['149778WXGFpw','onFileListChanged','3sHRtYP','onFileStatusChanged','528jjPKZV','10PzYTEv','1764954YdTjsP','336698OXTwAW','474044SyJHzs','4640614SPWixc','3719198cVGqwG','16RNWjSG','onSessionListChanged','8670euBXKP'];_0x50cd=function(){return _0x3f3a77;};return _0x50cd();}export class KernelFileAssistantListener{[_0x5721de(0xd4)](..._0x177aa8){}[_0x5721de(0xcf)](..._0x5116e5){}['onSessionChanged'](..._0xc58567){}[_0x5721de(0xd2)](..._0x5ea1d8){}['onFileSearch'](..._0x3f8388){}}
|
||||
@@ -2,7 +2,7 @@ import { Group, GroupMember, GroupNotify } from '@/core/entities';
|
||||
interface IGroupListener {
|
||||
onGroupListUpdate(updateType: number, groupList: Group[]): void;
|
||||
onGroupExtListUpdate(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
|
||||
onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void;
|
||||
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
|
||||
onGroupDetailInfoChange(...args: unknown[]): void;
|
||||
@@ -50,7 +50,7 @@ export declare class GroupListener implements IGroupListener {
|
||||
onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void;
|
||||
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
|
||||
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
|
||||
onGroupsMsgMaskResult(...args: unknown[]): void;
|
||||
onGroupStatisticInfoChange(...args: unknown[]): void;
|
||||
onJoinGroupNotify(...args: unknown[]): void;
|
||||
@@ -82,7 +82,7 @@ export declare class DebugGroupListener implements IGroupListener {
|
||||
onGroupNotifiesUpdated(...args: unknown[]): void;
|
||||
onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void;
|
||||
onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(...args: unknown[]): void;
|
||||
onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void;
|
||||
onGroupsMsgMaskResult(...args: unknown[]): void;
|
||||
onGroupStatisticInfoChange(...args: unknown[]): void;
|
||||
onJoinGroupNotify(...args: unknown[]): void;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x2f95(_0x13192c,_0x476af3){var _0x4f1e83=_0x4f1e();return _0x2f95=function(_0x2f9511,_0x58c4cd){_0x2f9511=_0x2f9511-0x1b1;var _0x5d1b2b=_0x4f1e83[_0x2f9511];return _0x5d1b2b;},_0x2f95(_0x13192c,_0x476af3);}var _0x2fac47=_0x2f95;function _0x4f1e(){var _0x4f3b83=['onGroupsMsgMaskResult','azWnb','onGroupBulletinRemindNotify','2060112IHZdkl','onGroupMemberLevelInfoChange','onGroupBulletinRichMediaProgressUpdate:','onGroupAllInfoChange:','onGroupSingleScreenNotifies','onGroupBulletinRichMediaDownloadComplete','cNWyf','onGroupDetailInfoChange','onShutUpMemberListChanged','onGroupArkInviteStateResult:','onGroupFirstBulletinNotify','onGroupSingleScreenNotifies:','onGroupConfMemberChange:','312ojejZl','gMTWP','onGroupDetailInfoChange:','eBDRI','RtMsq','onGroupBulletinRemindNotify:','onGetGroupBulletinListResult','onMemberListChange:','onGroupNotifiesUpdated','2615499FUDvcU','onGroupExtListUpdate','onGroupMemberLevelInfoChange:','moPRk','onGroupStatisticInfoChange','uhfNz','49240kdPtXj','onSearchMemberChange','log','BbvCT','5221265ZbsaER','dvjgC','1111335YvRWCl','onGroupBulletinChange:','onGroupNotifiesUnreadCountUpdated','onGroupConfMemberChange','onGetGroupBulletinListResult:','onGroupArkInviteStateResult','onSearchMemberChange:','onGroupNotifiesUpdated:','onJoinGroupNotify','onJoinGroupNoVerifyFlag','onGroupExtListUpdate:','onMemberInfoChange','2895816oqbGVB','onGroupListUpdate','onGroupsMsgMaskResult:','dUmuo','onGroupAllInfoChange','onGroupBulletinRichMediaProgressUpdate','296638uRZHZc','2UfPUqW'];_0x4f1e=function(){return _0x4f3b83;};return _0x4f1e();}(function(_0x34b493,_0x2e4468){var _0x5dfced=_0x2f95,_0x4efc02=_0x34b493();while(!![]){try{var _0x10efba=-parseInt(_0x5dfced(0x1e4))/0x1*(-parseInt(_0x5dfced(0x1e5))/0x2)+-parseInt(_0x5dfced(0x1d2))/0x3+parseInt(_0x5dfced(0x1bd))/0x4*(parseInt(_0x5dfced(0x1cc))/0x5)+parseInt(_0x5dfced(0x1de))/0x6+-parseInt(_0x5dfced(0x1d0))/0x7+parseInt(_0x5dfced(0x1e9))/0x8+-parseInt(_0x5dfced(0x1c6))/0x9;if(_0x10efba===_0x2e4468)break;else _0x4efc02['push'](_0x4efc02['shift']());}catch(_0x4082dc){_0x4efc02['push'](_0x4efc02['shift']());}}}(_0x4f1e,0x6129d));export class GroupListener{[_0x2fac47(0x1b1)](..._0x435870){}['onGetGroupBulletinListResult'](..._0x29adb7){}[_0x2fac47(0x1e2)](..._0x5bd6fc){}['onGroupBulletinChange'](..._0x58dbd0){}[_0x2fac47(0x1e8)](..._0x50cded){}[_0x2fac47(0x1d7)](..._0x4a9400){}[_0x2fac47(0x1b5)](..._0x4d956c){}[_0x2fac47(0x1d5)](..._0x235bb6){}[_0x2fac47(0x1b7)](..._0x202a60){}[_0x2fac47(0x1c7)](..._0x1032b9){}[_0x2fac47(0x1ba)](..._0x6be38f){}[_0x2fac47(0x1df)](_0x5a2a98,_0xd00f18){}[_0x2fac47(0x1c5)](_0x1c9319,_0x2c8240){}[_0x2fac47(0x1e3)](..._0x326e11){}[_0x2fac47(0x1d4)](..._0x2d6f53){}['onGroupSingleScreenNotifies'](..._0x33c40f){}[_0x2fac47(0x1e6)](..._0x325a5b){}['onGroupStatisticInfoChange'](..._0x1a47d5){}['onJoinGroupNotify'](..._0x272908){}[_0x2fac47(0x1db)](..._0x53e997){}[_0x2fac47(0x1dd)](_0x3bcb7e,_0x8754db,_0x512102){}['onMemberListChange'](_0x91a3b3){}[_0x2fac47(0x1cd)](..._0x21a44e){}[_0x2fac47(0x1b8)](..._0x227ce9){}}export class DebugGroupListener{[_0x2fac47(0x1b1)](..._0x503cb3){var _0x2c925f=_0x2fac47,_0x7e0cf1={'azWnb':_0x2c925f(0x1c8)};console['log'](_0x7e0cf1[_0x2c925f(0x1e7)],..._0x503cb3);}[_0x2fac47(0x1c3)](..._0x4e5ebe){var _0x54de4a=_0x2fac47,_0x379fa3={'gMTWP':_0x54de4a(0x1d6)};console[_0x54de4a(0x1ce)](_0x379fa3[_0x54de4a(0x1be)],..._0x4e5ebe);}[_0x2fac47(0x1e2)](..._0x51a247){var _0x54d6a6=_0x2fac47,_0x3b0f31={'BbvCT':_0x54d6a6(0x1b3)};console[_0x54d6a6(0x1ce)](_0x3b0f31[_0x54d6a6(0x1cf)],..._0x51a247);}['onGroupBulletinChange'](..._0x50605d){var _0x3660b9=_0x2fac47,_0x2f3d2d={'IseAk':_0x3660b9(0x1d3)};console[_0x3660b9(0x1ce)](_0x2f3d2d['IseAk'],..._0x50605d);}['onGroupBulletinRemindNotify'](..._0x42b8fd){var _0xf0c5e9=_0x2fac47,_0x2c045b={'RtMsq':_0xf0c5e9(0x1c2)};console[_0xf0c5e9(0x1ce)](_0x2c045b[_0xf0c5e9(0x1c1)],..._0x42b8fd);}[_0x2fac47(0x1d7)](..._0x2f39cf){var _0x2bc09b=_0x2fac47;console[_0x2bc09b(0x1ce)](_0x2bc09b(0x1b9),..._0x2f39cf);}[_0x2fac47(0x1b5)](..._0x50de0a){console['log']('onGroupBulletinRichMediaDownloadComplete:',..._0x50de0a);}[_0x2fac47(0x1d5)](..._0x3335b6){var _0xf76584=_0x2fac47,_0x1cf03a={'dvjgC':_0xf76584(0x1bc)};console[_0xf76584(0x1ce)](_0x1cf03a[_0xf76584(0x1d1)],..._0x3335b6);}[_0x2fac47(0x1b7)](..._0x228bf9){var _0x3fe2b5=_0x2fac47,_0x230dba={'NJGKq':_0x3fe2b5(0x1bf)};console[_0x3fe2b5(0x1ce)](_0x230dba['NJGKq'],..._0x228bf9);}['onGroupExtListUpdate'](..._0x2d3337){var _0x21e578=_0x2fac47,_0x47ba34={'eBDRI':_0x21e578(0x1dc)};console[_0x21e578(0x1ce)](_0x47ba34[_0x21e578(0x1c0)],..._0x2d3337);}[_0x2fac47(0x1ba)](..._0x58db16){var _0x180cea=_0x2fac47;console[_0x180cea(0x1ce)]('onGroupFirstBulletinNotify:',..._0x58db16);}[_0x2fac47(0x1df)](..._0x36d2d4){var _0x31cbb7=_0x2fac47,_0x570c45={'dUmuo':'onGroupListUpdate:'};console['log'](_0x570c45[_0x31cbb7(0x1e1)],..._0x36d2d4);}['onGroupNotifiesUpdated'](..._0x370b0e){var _0x53bde3=_0x2fac47,_0x4e9b07={'uhfNz':_0x53bde3(0x1d9)}Line truncated
|
||||
var _0x273db9=_0x39a3;function _0x82b3(){var _0x38b03a=['FwVEd','onGroupMemberLevelInfoChange','onGroupListUpdate:','onGroupAllInfoChange','onGroupNotifiesUpdated:','onGroupBulletinRichMediaDownloadComplete:','onGroupBulletinRemindNotify:','onGroupSingleScreenNotifies','TOPrC','onSearchMemberChange','onGroupExtListUpdate','ddIaD','KRrSs','SRuJh','onGroupNotifiesUnreadCountUpdated:','onGroupStatisticInfoChange:','onGroupBulletinChange:','DaOjL','onGroupBulletinRichMediaProgressUpdate','onJoinGroupNoVerifyFlag','onGroupAllInfoChange:','onSearchMemberChange:','blgjW','onGroupDetailInfoChange:','UeBmC','onGroupDetailInfoChange','onJoinGroupNotify','13773159ZhbIEK','onGroupExtListUpdate:','onMemberListChange:','onJoinGroupNotify:','onGroupNotifiesUpdated','8oCRgeo','UuslW','VCBvW','log','onGroupsMsgMaskResult:','EUfdN','EOnMM','onGroupNotifiesUnreadCountUpdated','onGroupMemberLevelInfoChange:','SpGMX','CilPk','krxUU','onGetGroupBulletinListResult:','onGroupConfMemberChange','4629843NKIiQq','4668PJAXUo','onGetGroupBulletinListResult','onGroupBulletinRichMediaProgressUpdate:','onGroupFirstBulletinNotify','onGroupArkInviteStateResult','2798314NcOpQs','onGroupStatisticInfoChange','3146985HPgGcX','588667zccFpu','onMemberInfoChange','10556HHEbYC','onGroupBulletinRichMediaDownloadComplete','onShutUpMemberListChanged','onGroupArkInviteStateResult:','onMemberListChange','onGroupsMsgMaskResult','onGroupSingleScreenNotifies:','1888240nQNeDc','vCRRg','onGroupBulletinRemindNotify','YSvRr','onGroupConfMemberChange:'];_0x82b3=function(){return _0x38b03a;};return _0x82b3();}(function(_0x2b841c,_0x22d5b8){var _0x6ad337=_0x39a3,_0x12100d=_0x2b841c();while(!![]){try{var _0x1db8e6=parseInt(_0x6ad337(0x121))/0x1+parseInt(_0x6ad337(0x11e))/0x2+parseInt(_0x6ad337(0x118))/0x3+-parseInt(_0x6ad337(0xe5))/0x4+parseInt(_0x6ad337(0x120))/0x5+parseInt(_0x6ad337(0x119))/0x6*(-parseInt(_0x6ad337(0x123))/0x7)+-parseInt(_0x6ad337(0x10a))/0x8*(parseInt(_0x6ad337(0x105))/0x9);if(_0x1db8e6===_0x22d5b8)break;else _0x12100d['push'](_0x12100d['shift']());}catch(_0x2e313b){_0x12100d['push'](_0x12100d['shift']());}}}(_0x82b3,0xf0723));function _0x39a3(_0x589b91,_0x1a47f8){var _0x82b36a=_0x82b3();return _0x39a3=function(_0x39a353,_0x2615ca){_0x39a353=_0x39a353-0xe0;var _0xf53b94=_0x82b36a[_0x39a353];return _0xf53b94;},_0x39a3(_0x589b91,_0x1a47f8);}export class GroupListener{[_0x273db9(0xeb)](..._0x53be05){}[_0x273db9(0x11a)](..._0x2f9ceb){}[_0x273db9(0xed)](..._0x2ecac1){}['onGroupBulletinChange'](..._0x227a6f){}[_0x273db9(0xe7)](..._0x14349e){}[_0x273db9(0x11d)](..._0x621fc2){}[_0x273db9(0x124)](..._0x2c86d0){}[_0x273db9(0x117)](..._0x3ffb35){}['onGroupDetailInfoChange'](..._0x4cfc1d){}[_0x273db9(0xf4)](..._0xbb5965){}[_0x273db9(0x11c)](..._0x1dcd78){}['onGroupListUpdate'](_0x19ed09,_0x206d4e){}[_0x273db9(0x109)](_0xe89f80,_0x3ed293){}[_0x273db9(0xfc)](..._0x22a63f){}['onGroupNotifiesUnreadCountUpdated'](..._0x1c616f){}['onGroupSingleScreenNotifies'](_0x14ca91,_0x1a11f8,_0x1a8ab7){}['onGroupsMsgMaskResult'](..._0x2ffb51){}[_0x273db9(0x11f)](..._0x3fe840){}['onJoinGroupNotify'](..._0x3bef96){}['onJoinGroupNoVerifyFlag'](..._0x14140f){}[_0x273db9(0x122)](_0x4b2a75,_0x495d75,_0x122ad1){}[_0x273db9(0xe2)](_0x321906){}[_0x273db9(0xf3)](..._0x2579f0){}[_0x273db9(0xe0)](..._0x359484){}}export class DebugGroupListener{[_0x273db9(0xeb)](..._0x3fbccf){var _0x54b871=_0x273db9,_0x36a1bb={'CilPk':_0x54b871(0x112)};console['log'](_0x36a1bb[_0x54b871(0x114)],..._0x3fbccf);}['onGetGroupBulletinListResult'](..._0x4b3b75){var _0x5dfc89=_0x273db9;console[_0x5dfc89(0x10d)](_0x5dfc89(0x116),..._0x4b3b75);}[_0x273db9(0xed)](..._0x3a4fd4){var _0x599177=_0x273db9,_0x29fecd={'ddIaD':_0x599177(0xfe)};console[_0x599177(0x10d)](_0x29fecd[_0x599177(0xf5)],..._0x3a4fd4);}['onGroupBulletinChange'](..._0x54c3a9){var _0x419556=_0x273db9,_0x43b8a0={'TOPrC':_0x419556(0xfa)};console['log'](_0x43b8a0[_0x419556(0xf2)],..._0x54c3a9);}['onGroupBulletinRemindNotify'](..._0x5e281b){var _0x45c6ae=_0x273db9,_0x404f28={'EUfdN':_0x45c6ae(0xf0)};console['log'](_0x404f28[_0x45c6ae(0x10f)],..._0x5e281b);}['onGroupArkInviteStateResult'](..._0x32b74f){var _0x51bdc5=_0x273db9,_0x23848b={'DaOjL':_0x51bdc5(0xe1)};console[_0x51bdc5(0x10d)](_0x23848b[_0x51bdc5(0xfb)],..._0x32b74f);}[_0x273db9(0x124)](..._0x4950c3){var _0x268383=_0x273db9,_0x416977={'FwVEd':_0x268383(0xef)};console[_0x268383(0x10d)](_0x416977[_0x268383(0xea)],..._0x4950c3);}[_0x273db9(0x117)](..._0x590f9c){var _0x439f5f=_0x273db9,_0x25cf4a={'SRuJh':_0x439f5f(0xe9)};console[_0x439f5f(0x10d)](_0x25cf4a[_0x439f5f(0xf7)],..._0x590f9c);}[_0x273db9(0x103)](..._0xa76411){var _0x37cde0=_0x273db9,_0x19d4fa={'VCBvW':_0x37cde0(0x101)};console[_0x37cde0(0x10d)](_0x19d4fa[_0x37cde0(0x10c)],..._0xa76411);}['onGroupExtListUpdate'](..._0x2c5793){var _0x25b643=_0x273db9,_0x58dee7={'UuslW':_0x25b643(0x106)};console[_0x25b643(0x10d)](_0x58dee7[_0x25b643(0x10b)],..._0x2c5793);}[_0x273db9(0x11c)](..._0x3148c7){var _0x264c3d=_0x273db9;console[_0x264c3d(0x10d)]('oLine truncated
|
||||
@@ -1 +1 @@
|
||||
function _0x2f62(_0x400ced,_0x53f347){var _0x1b90ce=_0x1b90();return _0x2f62=function(_0x2f6246,_0x40961b){_0x2f6246=_0x2f6246-0x15d;var _0x3c2fc7=_0x1b90ce[_0x2f6246];return _0x3c2fc7;},_0x2f62(_0x400ced,_0x53f347);}var _0x472096=_0x2f62;function _0x1b90(){var _0x36a1ee=['2166170xewyJs','860065XAWyeY','onLogoutFailed','onQRCodeSessionFailed','onUserLoggedIn','260604vISAzA','onLoginConnecting','89455wtaiPU','onLoginState','4UEnQTq','onLoginDisConnected','48YIVLuj','onPasswordLoginFailed','onLoginConnected','110hAIuIh','12738lzOlTy','onQQLoginNumLimited','1372jByAxy','onQRCodeLoginSucceed','82122kaqrUA','405818pKZCfq','onLogoutSucceed','onQRCodeSessionUserScaned'];_0x1b90=function(){return _0x36a1ee;};return _0x1b90();}(function(_0x366ee2,_0x12a3aa){var _0x2fee7c=_0x2f62,_0x1f45cd=_0x366ee2();while(!![]){try{var _0x41c781=-parseInt(_0x2fee7c(0x164))/0x1+-parseInt(_0x2fee7c(0x160))/0x2+parseInt(_0x2fee7c(0x15f))/0x3*(-parseInt(_0x2fee7c(0x16c))/0x4)+-parseInt(_0x2fee7c(0x16a))/0x5+-parseInt(_0x2fee7c(0x172))/0x6*(parseInt(_0x2fee7c(0x15d))/0x7)+parseInt(_0x2fee7c(0x16e))/0x8*(-parseInt(_0x2fee7c(0x168))/0x9)+parseInt(_0x2fee7c(0x163))/0xa*(parseInt(_0x2fee7c(0x171))/0xb);if(_0x41c781===_0x12a3aa)break;else _0x1f45cd['push'](_0x1f45cd['shift']());}catch(_0x106e75){_0x1f45cd['push'](_0x1f45cd['shift']());}}}(_0x1b90,0x72477));export class LoginListener{[_0x472096(0x170)](..._0x5951ac){}[_0x472096(0x16d)](..._0x7e59b0){}[_0x472096(0x169)](..._0x3bd450){}['onQRCodeGetPicture'](_0x870a08){}['onQRCodeLoginPollingStarted'](..._0x2512bb){}[_0x472096(0x162)](..._0x34a5f3){}[_0x472096(0x15e)](_0x432748){}[_0x472096(0x166)](..._0x40723a){}['onLoginFailed'](..._0x2e3717){}[_0x472096(0x161)](..._0x57ac99){}[_0x472096(0x165)](..._0x2d25fb){}[_0x472096(0x167)](..._0x12ee99){}['onQRCodeSessionQuickLoginFailed'](..._0x36bc89){}[_0x472096(0x16f)](..._0x4e6509){}['OnConfirmUnusualDeviceFailed'](..._0x384d7c){}[_0x472096(0x173)](..._0x5b0c5c){}[_0x472096(0x16b)](..._0x2213d4){}}
|
||||
var _0x4a6d81=_0x53ff;(function(_0x5f3fa2,_0x17c26e){var _0x296af6=_0x53ff,_0x31a5dd=_0x5f3fa2();while(!![]){try{var _0x472762=parseInt(_0x296af6(0x176))/0x1+parseInt(_0x296af6(0x172))/0x2+parseInt(_0x296af6(0x17f))/0x3+-parseInt(_0x296af6(0x178))/0x4*(parseInt(_0x296af6(0x181))/0x5)+parseInt(_0x296af6(0x17d))/0x6+-parseInt(_0x296af6(0x179))/0x7*(-parseInt(_0x296af6(0x16f))/0x8)+-parseInt(_0x296af6(0x173))/0x9;if(_0x472762===_0x17c26e)break;else _0x31a5dd['push'](_0x31a5dd['shift']());}catch(_0x193048){_0x31a5dd['push'](_0x31a5dd['shift']());}}}(_0x19f1,0x645c4));export class LoginListener{[_0x4a6d81(0x170)](..._0x3f44b3){}[_0x4a6d81(0x183)](..._0x45ae18){}[_0x4a6d81(0x185)](..._0x37b15b){}[_0x4a6d81(0x17a)](_0x102a6f){}[_0x4a6d81(0x17b)](..._0x1d5ca5){}[_0x4a6d81(0x174)](..._0x3100fc){}['onQRCodeLoginSucceed'](_0x13b91b){}['onQRCodeSessionFailed'](..._0x63f2a4){}[_0x4a6d81(0x182)](..._0x270c99){}['onLogoutSucceed'](..._0x4598d2){}[_0x4a6d81(0x177)](..._0x1cfddc){}[_0x4a6d81(0x17c)](..._0x294e61){}[_0x4a6d81(0x17e)](..._0x14afc6){}[_0x4a6d81(0x180)](..._0x43c0bd){}[_0x4a6d81(0x175)](..._0x3d672e){}[_0x4a6d81(0x171)](..._0x4af210){}[_0x4a6d81(0x184)](..._0x117afe){}}function _0x53ff(_0x4e82aa,_0x3a80d0){var _0x19f1d8=_0x19f1();return _0x53ff=function(_0x53ff33,_0x46858a){_0x53ff33=_0x53ff33-0x16f;var _0x18ea07=_0x19f1d8[_0x53ff33];return _0x18ea07;},_0x53ff(_0x4e82aa,_0x3a80d0);}function _0x19f1(){var _0x218494=['296877lyfeXc','onQRCodeGetPicture','onQRCodeLoginPollingStarted','onUserLoggedIn','3705726EhwFoW','onQRCodeSessionQuickLoginFailed','2330652HlrcEk','onPasswordLoginFailed','295dddrcI','onLoginFailed','onLoginDisConnected','onLoginState','onLoginConnecting','56IOZfTf','onLoginConnected','onQQLoginNumLimited','1322630EVpCww','16745184ZBMBwp','onQRCodeSessionUserScaned','OnConfirmUnusualDeviceFailed','684421utFiEo','onLogoutFailed','51896PSGELL'];_0x19f1=function(){return _0x218494;};return _0x19f1();}
|
||||
+12
-2
@@ -21,6 +21,16 @@ export interface OnRichMediaDownloadCompleteParams {
|
||||
userTotalSpacePerDay: unknown | null;
|
||||
userUsedSpacePerDay: unknown | null;
|
||||
}
|
||||
export interface onGroupFileInfoUpdateParamType {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
isEnd: boolean;
|
||||
item: Array<any>;
|
||||
allFileCount: string;
|
||||
nextIndex: string;
|
||||
reqId: string;
|
||||
}
|
||||
export interface IKernelMsgListener {
|
||||
onAddSendMsg(msgRecord: RawMessage): void;
|
||||
onBroadcastHelperDownloadComplete(broadcastHelperTransNotifyInfo: unknown): void;
|
||||
@@ -37,7 +47,7 @@ export interface IKernelMsgListener {
|
||||
onFirstViewGroupGuildMapping(arrayList: unknown): void;
|
||||
onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void;
|
||||
onGroupFileInfoAdd(groupItem: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void;
|
||||
onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void;
|
||||
onGroupTransferInfoAdd(groupItem: unknown): void;
|
||||
onGroupTransferInfoUpdate(groupFileListResult: unknown): void;
|
||||
@@ -111,7 +121,7 @@ export declare class MsgListener implements IKernelMsgListener {
|
||||
onFirstViewGroupGuildMapping(arrayList: unknown): void;
|
||||
onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void;
|
||||
onGroupFileInfoAdd(groupItem: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void;
|
||||
onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void;
|
||||
onGroupTransferInfoAdd(groupItem: unknown): void;
|
||||
onGroupTransferInfoUpdate(groupFileListResult: unknown): void;
|
||||
|
||||
@@ -1 +1 @@
|
||||
var _0x532ad0=_0x42b5;(function(_0x27e107,_0x244977){var _0x315824=_0x42b5,_0x1f57df=_0x27e107();while(!![]){try{var _0x1361fc=parseInt(_0x315824(0x133))/0x1+parseInt(_0x315824(0x136))/0x2+-parseInt(_0x315824(0x143))/0x3*(-parseInt(_0x315824(0x145))/0x4)+-parseInt(_0x315824(0x14d))/0x5*(-parseInt(_0x315824(0x14c))/0x6)+parseInt(_0x315824(0x125))/0x7+parseInt(_0x315824(0x13f))/0x8+-parseInt(_0x315824(0x129))/0x9;if(_0x1361fc===_0x244977)break;else _0x1f57df['push'](_0x1f57df['shift']());}catch(_0x5a2c16){_0x1f57df['push'](_0x1f57df['shift']());}}}(_0x11fb,0x5386e));function _0x42b5(_0x24f12a,_0x42260b){var _0x11fbb4=_0x11fb();return _0x42b5=function(_0x42b52c,_0x402f03){_0x42b52c=_0x42b52c-0x11a;var _0x488bd1=_0x11fbb4[_0x42b52c];return _0x488bd1;},_0x42b5(_0x24f12a,_0x42260b);}function _0x11fb(){var _0x1d1abe=['12092391GWyniR','onSearchGroupFileInfoUpdate','onKickedOffLine','onCustomWithdrawConfigUpdate','onContactUnreadCntUpdate','onNtMsgSyncStart','onFirstViewDirectMsgUpdate','onFeedEventUpdate','onBroadcastHelperProgerssUpdate','onRichMediaUploadComplete','208177tnYpku','onImportOldDbProgressUpdate','onMsgDelete','1184800EqPuHp','onBroadcastHelperProgressUpdate','onReadFeedEventUpdate','onUnreadCntUpdate','onHitEmojiKeywordResult','onDraftUpdate','onMsgEventListUpdate','onUnreadCntAfterFirstView','onUserChannelTabStatusChanged','1039248KhIfJQ','onTempChatInfoUpdate','onEmojiResourceUpdate','onLineDev','368247FMsNuJ','onRecvMsg','4Pjrlqv','onUserOnlineStatusChanged','onLogLevelChanged','onMsgSecurityNotify','onGroupFileInfoAdd','onMsgSettingUpdate','onGuildInteractiveUpdate','602358TwCRHB','5EGewSO','onMsgInfoListUpdate','onGroupTransferInfoAdd','onGrabPasswordRedBag','onUserSecQualityChanged','onlineStatusBigIconDownloadPush','onGroupGuildUpdate','onRecvMsgSvrRspTransInfo','onRecvS2CMsg','onGuildMsgAbFlagChanged','onFirstViewGroupGuildMapping','onMsgQRCodeStatusChanged','onGroupFileInfoUpdate','onGroupTransferInfoUpdate','onMsgWithRichLinkInfoUpdate','onHitCsRelatedEmojiResult','onRecvSysMsg','onRedTouchChanged','onBroadcastHelperDownloadComplete','onSysMsgNotification','onChannelFreqLimitInfoUpdate','onRichMediaDownloadComplete','3724700vkWbhw','onMsgAbstractUpdate','onRichMediaProgerssUpdate','onMsgBoxChanged'];_0x11fb=function(){return _0x1d1abe;};return _0x11fb();}export class MsgListener{['onAddSendMsg'](_0x1d7722){}[_0x532ad0(0x121)](_0x35a6ae){}[_0x532ad0(0x137)](_0x5985c6){}[_0x532ad0(0x123)](_0x12866e,_0x4d4730,_0x5a21ff){}[_0x532ad0(0x12d)](_0x58ebf2){}[_0x532ad0(0x12c)](_0x380242){}[_0x532ad0(0x13b)](_0x1b6eaa,_0xa9b230,_0x46d5ef){}['onEmojiDownloadComplete'](_0x94843){}[_0x532ad0(0x141)](_0x544686){}[_0x532ad0(0x130)](_0x1d5268){}['onFileMsgCome'](_0x5d5041){}[_0x532ad0(0x12f)](_0x5cba19){}[_0x532ad0(0x157)](_0x26a72d){}[_0x532ad0(0x150)](_0x3d8f1e,_0xaa6ac1,_0x29d1a9,_0x5360bd,_0x470762){}[_0x532ad0(0x149)](_0x5ec763){}[_0x532ad0(0x11b)](_0x3ae61e){}[_0x532ad0(0x153)](_0x33eebc){}[_0x532ad0(0x14f)](_0x46e3b1){}[_0x532ad0(0x11c)](_0x46454d){}[_0x532ad0(0x14b)](_0x35ba8f){}[_0x532ad0(0x156)](_0x166d80){}['onGuildNotificationAbstractUpdate'](_0x4b9664){}[_0x532ad0(0x11e)](_0x3bccdb){}[_0x532ad0(0x13a)](_0xfa8e6e){}['onHitRelatedEmojiResult'](_0x39b86f){}[_0x532ad0(0x134)](_0x2a5e8b){}['onInputStatusPush'](_0x57143b){}[_0x532ad0(0x12b)](_0x4f40ff){}[_0x532ad0(0x142)](_0x33eb4a){}[_0x532ad0(0x147)](_0xe84669){}[_0x532ad0(0x126)](_0xf8a9ee){}[_0x532ad0(0x128)](_0x55a7fd){}[_0x532ad0(0x135)](_0xfd70c8,_0x56b6ba){}[_0x532ad0(0x13c)](_0x3b3298){}['onMsgInfoListAdd'](_0x279357){}[_0x532ad0(0x14e)](_0x242edb){}[_0x532ad0(0x11a)](_0x29083e){}['onMsgRecall'](_0x1ecb16,_0xf376f1,_0x2d6fba){}[_0x532ad0(0x148)](_0xed9df9){}[_0x532ad0(0x14a)](_0x4c72ec){}['onNtFirstViewMsgSyncEnd'](){}['onNtMsgSyncEnd'](){}[_0x532ad0(0x12e)](){}[_0x532ad0(0x138)](_0x209546){}['onRecvGroupGuildFlag'](_0xf37bd5){}[_0x532ad0(0x144)](_0x53ff67){}[_0x532ad0(0x154)](_0x3c41d2,_0x29e0b3,_0x52aae4,_0x58dfda,_0x2940c1,_0x16fbef){}['onRecvOnlineFileMsg'](_0x2818ea){}[_0x532ad0(0x155)](_0x81111a){}[_0x532ad0(0x11f)](_0x4ccd77){}['onRecvUDCFlag'](_0x1da039){}[_0x532ad0(0x124)](_0x1a9fb3){}[_0x532ad0(0x127)](_0x1fa6e1){}[_0x532ad0(0x132)](_0x24ffed){}[_0x532ad0(0x12a)](_0x216217){}['onSendMsgError'](_0x207686,_0x1e8e89,_0x10f811,_0x449dd5){}[_0x532ad0(0x122)](_0x4b61a3,_0xbcbba8,_0x5f4b39,_0x779f26){}[_0x532ad0(0x140)](_0x55d678){}[_0x532ad0(0x13d)](_0x2df247){}[_0x532ad0(0x139)](_0x468e39){}[_0x532ad0(0x13e)](_0x245c1c){}[_0x532ad0(0x146)](_0x2b1d77){}['onUserTabStatusChanged'](_0x3d8917){}[_0x532ad0(0x152)](_0x19901f,_0x4b2ee1,_0x16a61b){}['onlineStatusSmallIconDownloadPush'](_0x2b1877,_0x1391a8,_0x3cf3ab){}[_0x532ad0(0x151)](..._0x5b2c41){}[_0x532ad0(0x11d)](..._0x4eb457){}[_0x532ad0(0x120)](..._0x2a3775){}[_0x532ad0(0x131)](..._0x4fc839){}}
|
||||
var _0x11d257=_0x3ff2;function _0x3ff2(_0x2a0543,_0x40b984){var _0x1cec99=_0x1cec();return _0x3ff2=function(_0x3ff20e,_0x254840){_0x3ff20e=_0x3ff20e-0x183;var _0x337f0a=_0x1cec99[_0x3ff20e];return _0x337f0a;},_0x3ff2(_0x2a0543,_0x40b984);}(function(_0x508255,_0x216a83){var _0x20c36b=_0x3ff2,_0x4f947d=_0x508255();while(!![]){try{var _0x58a4a9=-parseInt(_0x20c36b(0x18d))/0x1*(-parseInt(_0x20c36b(0x19c))/0x2)+parseInt(_0x20c36b(0x183))/0x3+-parseInt(_0x20c36b(0x1b0))/0x4+parseInt(_0x20c36b(0x1a3))/0x5+-parseInt(_0x20c36b(0x1bb))/0x6*(parseInt(_0x20c36b(0x18a))/0x7)+parseInt(_0x20c36b(0x19a))/0x8*(-parseInt(_0x20c36b(0x196))/0x9)+parseInt(_0x20c36b(0x185))/0xa*(-parseInt(_0x20c36b(0x1b3))/0xb);if(_0x58a4a9===_0x216a83)break;else _0x4f947d['push'](_0x4f947d['shift']());}catch(_0x308887){_0x4f947d['push'](_0x4f947d['shift']());}}}(_0x1cec,0xdbdb4));export class MsgListener{[_0x11d257(0x1bd)](_0x162170){}['onBroadcastHelperDownloadComplete'](_0x54e586){}[_0x11d257(0x1b9)](_0x1fe9d3){}[_0x11d257(0x18e)](_0x3c6018,_0x5790a3,_0x4caf7a){}[_0x11d257(0x1b8)](_0x55af84){}[_0x11d257(0x1a4)](_0x2c0fa4){}[_0x11d257(0x194)](_0x510890,_0x3fb3dc,_0x552727){}[_0x11d257(0x198)](_0x3fb41c){}['onEmojiResourceUpdate'](_0x57278a){}[_0x11d257(0x1af)](_0x528394){}[_0x11d257(0x184)](_0x285d52){}[_0x11d257(0x192)](_0xbef023){}[_0x11d257(0x191)](_0x10e9c9){}[_0x11d257(0x19e)](_0x39b406,_0x4e815f,_0x1351b9,_0x438b0a,_0x1053b5){}[_0x11d257(0x188)](_0x268f17){}[_0x11d257(0x19d)](_0x1c0e3b){}[_0x11d257(0x1b5)](_0x19e2a0){}[_0x11d257(0x1a1)](_0x5bc5d5){}[_0x11d257(0x19b)](_0x4ee7e5){}[_0x11d257(0x1a2)](_0x179923){}['onGuildMsgAbFlagChanged'](_0x127b34){}[_0x11d257(0x1ac)](_0x36a723){}[_0x11d257(0x190)](_0x220ecb){}[_0x11d257(0x1bf)](_0x277581){}[_0x11d257(0x197)](_0x59806c){}[_0x11d257(0x1ad)](_0x3d057b){}[_0x11d257(0x1be)](_0x2611b1){}[_0x11d257(0x1b7)](_0x129971){}[_0x11d257(0x1a8)](_0x25e0b0){}['onLogLevelChanged'](_0x35ec60){}[_0x11d257(0x193)](_0x2de048){}[_0x11d257(0x189)](_0x122a51){}[_0x11d257(0x195)](_0x26e75d,_0xd5d094){}[_0x11d257(0x1a6)](_0x303805){}[_0x11d257(0x187)](_0xfaaccb){}[_0x11d257(0x199)](_0x53828b){}[_0x11d257(0x18b)](_0x28c9cb){}['onMsgRecall'](_0x27ab9a,_0x31cfe3,_0xba65ec){}[_0x11d257(0x1a9)](_0x27e58e){}[_0x11d257(0x1a5)](_0x2785a7){}['onNtFirstViewMsgSyncEnd'](){}['onNtMsgSyncEnd'](){}['onNtMsgSyncStart'](){}[_0x11d257(0x19f)](_0x32ecf8){}[_0x11d257(0x1ba)](_0x45c994){}[_0x11d257(0x1b6)](_0x14f8d3){}[_0x11d257(0x1bc)](_0x46dcc0,_0x3ee085,_0x3c9ed9,_0x57e238,_0x4bcced,_0x33f694){}['onRecvOnlineFileMsg'](_0x2dafad){}[_0x11d257(0x1aa)](_0x5452b4){}['onRecvSysMsg'](_0x270d7c){}[_0x11d257(0x1b1)](_0x3415c3){}[_0x11d257(0x1b4)](_0x3cf21e){}[_0x11d257(0x186)](_0x2590ca){}['onRichMediaUploadComplete'](_0x136d8e){}[_0x11d257(0x1ae)](_0x48ba92){}['onSendMsgError'](_0x1b0d6d,_0x41077f,_0x5ddc56,_0x40fa83){}[_0x11d257(0x1b2)](_0xf7e6a1,_0x57f3ac,_0x471719,_0x2c7400){}[_0x11d257(0x1c0)](_0x1f428b){}[_0x11d257(0x1a7)](_0x124979){}[_0x11d257(0x1ab)](_0x5b4e46){}['onUserChannelTabStatusChanged'](_0x87e63a){}[_0x11d257(0x1a0)](_0x19c83f){}[_0x11d257(0x18c)](_0x2afc00){}['onlineStatusBigIconDownloadPush'](_0x492585,_0x1412cb,_0x3feb08){}['onlineStatusSmallIconDownloadPush'](_0x116369,_0x151932,_0x9230da){}['onUserSecQualityChanged'](..._0x42bd45){}['onMsgWithRichLinkInfoUpdate'](..._0x5b4cfb){}[_0x11d257(0x18f)](..._0x2df90c){}[_0x11d257(0x1c1)](..._0x4b26c0){}}function _0x1cec(){var _0x4532c3=['onReadFeedEventUpdate','onUserOnlineStatusChanged','onGroupTransferInfoAdd','onGuildInteractiveUpdate','6858340zMXhen','onCustomWithdrawConfigUpdate','onMsgSettingUpdate','onMsgEventListUpdate','onUnreadCntAfterFirstView','onLineDev','onMsgSecurityNotify','onRecvS2CMsg','onUnreadCntUpdate','onGuildNotificationAbstractUpdate','onImportOldDbProgressUpdate','onSearchGroupFileInfoUpdate','onFeedEventUpdate','1211060HeTzCz','onRecvUDCFlag','onSysMsgNotification','22wOwmos','onRichMediaDownloadComplete','onGroupGuildUpdate','onRecvMsg','onKickedOffLine','onContactUnreadCntUpdate','onBroadcastHelperProgressUpdate','onRecvGroupGuildFlag','6162690BWSKqb','onRecvMsgSvrRspTransInfo','onAddSendMsg','onInputStatusPush','onHitEmojiKeywordResult','onTempChatInfoUpdate','onBroadcastHelperProgerssUpdate','3729801pDgGuz','onFileMsgCome','313070KpMyCm','onRichMediaProgerssUpdate','onMsgInfoListAdd','onGroupFileInfoAdd','onMsgBoxChanged','7baiUgC','onMsgQRCodeStatusChanged','onUserTabStatusChanged','1282663UdckHK','onChannelFreqLimitInfoUpdate','onRedTouchChanged','onHitCsRelatedEmojiResult','onFirstViewGroupGuildMapping','onFirstViewDirectMsgUpdate','onMsgAbstractUpdate','onDraftUpdate','onMsgDelete','9rLsqDd','onHitRelatedEmojiResult','onEmojiDownloadComplete','onMsgInfoListUpdate','12836576RdZOkZ','onGroupTransferInfoUpdate','2fzLhqR','onGroupFileInfoUpdate','onGrabPasswordRedBag'];_0x1cec=function(){return _0x4532c3;};return _0x1cec();}
|
||||
@@ -1 +1 @@
|
||||
var _0x251038=_0x32e9;(function(_0x230a9e,_0x3d87b9){var _0x4dee39=_0x32e9,_0x2c8bbe=_0x230a9e();while(!![]){try{var _0x197e84=-parseInt(_0x4dee39(0x1d6))/0x1*(-parseInt(_0x4dee39(0x1cf))/0x2)+parseInt(_0x4dee39(0x1ce))/0x3+-parseInt(_0x4dee39(0x1cc))/0x4*(parseInt(_0x4dee39(0x1c7))/0x5)+parseInt(_0x4dee39(0x1c8))/0x6+-parseInt(_0x4dee39(0x1d5))/0x7*(parseInt(_0x4dee39(0x1c9))/0x8)+-parseInt(_0x4dee39(0x1d1))/0x9*(parseInt(_0x4dee39(0x1d4))/0xa)+-parseInt(_0x4dee39(0x1cb))/0xb*(-parseInt(_0x4dee39(0x1d2))/0xc);if(_0x197e84===_0x3d87b9)break;else _0x2c8bbe['push'](_0x2c8bbe['shift']());}catch(_0x504427){_0x2c8bbe['push'](_0x2c8bbe['shift']());}}}(_0x34e7,0xc5d2d));function _0x32e9(_0x400c42,_0x3d2349){var _0x34e77b=_0x34e7();return _0x32e9=function(_0x32e982,_0x4593dc){_0x32e982=_0x32e982-0x1c7;var _0xbb217c=_0x34e77b[_0x32e982];return _0xbb217c;},_0x32e9(_0x400c42,_0x3d2349);}function _0x34e7(){var _0x2d51f6=['5131368xrYPfD','4376VzoPkZ','onProfileSimpleChanged','6677eZRRli','5434068oeLqah','onStrangerRemarkChanged','3828573brTBek','36RkYyRp','onProfileDetailInfoChanged','9RoJyyY','28524tyJIjK','onSelfStatusChanged','14646890YQLBfp','13055DhIBaB','59966AjDEtA','5SyHAgD'];_0x34e7=function(){return _0x2d51f6;};return _0x34e7();}export class ProfileListener{[_0x251038(0x1ca)](..._0x1553d1){}[_0x251038(0x1d0)](_0xc3f91b){}['onStatusUpdate'](..._0x530924){}[_0x251038(0x1d3)](..._0x2cb1fc){}[_0x251038(0x1cd)](..._0x1d4f91){}}
|
||||
var _0x386969=_0x56cd;(function(_0x3320f2,_0x5405c9){var _0x42313c=_0x56cd,_0x13a9e5=_0x3320f2();while(!![]){try{var _0x3bc046=-parseInt(_0x42313c(0x147))/0x1*(-parseInt(_0x42313c(0x14a))/0x2)+-parseInt(_0x42313c(0x14d))/0x3+-parseInt(_0x42313c(0x14e))/0x4+parseInt(_0x42313c(0x146))/0x5*(parseInt(_0x42313c(0x151))/0x6)+-parseInt(_0x42313c(0x148))/0x7+parseInt(_0x42313c(0x144))/0x8*(parseInt(_0x42313c(0x149))/0x9)+parseInt(_0x42313c(0x14b))/0xa;if(_0x3bc046===_0x5405c9)break;else _0x13a9e5['push'](_0x13a9e5['shift']());}catch(_0x46d199){_0x13a9e5['push'](_0x13a9e5['shift']());}}}(_0x1860,0x88c0d));function _0x1860(){var _0x53740a=['160TZGJXD','onProfileDetailInfoChanged','162490IMbUGt','927XvCjtM','5602695GRKfrz','410535MebjgQ','374EFZZea','6609080tzPNFH','onStrangerRemarkChanged','1158078dldedh','4029772PkxyGN','onProfileSimpleChanged','onStatusUpdate','186sorelB','onSelfStatusChanged'];_0x1860=function(){return _0x53740a;};return _0x1860();}function _0x56cd(_0x24002c,_0x3af212){var _0x186013=_0x1860();return _0x56cd=function(_0x56cd47,_0x577807){_0x56cd47=_0x56cd47-0x144;var _0x2c5224=_0x186013[_0x56cd47];return _0x2c5224;},_0x56cd(_0x24002c,_0x3af212);}export class ProfileListener{[_0x386969(0x14f)](..._0x1a8a2f){}[_0x386969(0x145)](_0x472002){}[_0x386969(0x150)](..._0x49185f){}[_0x386969(0x152)](..._0x2b3c3d){}[_0x386969(0x14c)](..._0x2e4b4a){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x121e78=_0x27c6;function _0x371b(){var _0x5b0fd3=['4UDjqIq','1086080yLPtLg','onRobotFriendListChanged','2723798cboUdQ','onRobotListChanged','8464236utHbYv','2568291dqWikN','10235133SaLixm','976077eWhAaw','1647736ajCmJY','28xFVxKs'];_0x371b=function(){return _0x5b0fd3;};return _0x371b();}(function(_0xcc90e1,_0xf0e62a){var _0x1cc121=_0x27c6,_0x278161=_0xcc90e1();while(!![]){try{var _0x87eda8=parseInt(_0x1cc121(0xa3))/0x1+parseInt(_0x1cc121(0x9e))/0x2+-parseInt(_0x1cc121(0xa1))/0x3+parseInt(_0x1cc121(0xa6))/0x4*(-parseInt(_0x1cc121(0xa7))/0x5)+parseInt(_0x1cc121(0xa0))/0x6+-parseInt(_0x1cc121(0xa5))/0x7*(parseInt(_0x1cc121(0xa4))/0x8)+-parseInt(_0x1cc121(0xa2))/0x9;if(_0x87eda8===_0xf0e62a)break;else _0x278161['push'](_0x278161['shift']());}catch(_0x33fb82){_0x278161['push'](_0x278161['shift']());}}}(_0x371b,0xae618));function _0x27c6(_0x27d278,_0x4b2189){var _0x371b68=_0x371b();return _0x27c6=function(_0x27c655,_0x15ce67){_0x27c655=_0x27c655-0x9d;var _0x47737b=_0x371b68[_0x27c655];return _0x47737b;},_0x27c6(_0x27d278,_0x4b2189);}export class KernelRobotListener{[_0x121e78(0x9d)](..._0x2732d1){}[_0x121e78(0x9f)](..._0x1fceff){}['onRobotProfileChanged'](..._0x307080){}}
|
||||
function _0x36d8(){var _0xaf6eef=['656664paCuKr','22eORkel','786074mdvFng','4VDwgRN','onRobotProfileChanged','203760zCMGKU','54JLYibQ','6262662nqbKFc','6216928yOMidO','1369850SLprlK','onRobotFriendListChanged','7QFsADe','6528972Bcdfkr','2XYwWrd'];_0x36d8=function(){return _0xaf6eef;};return _0x36d8();}var _0x2b6505=_0x344d;function _0x344d(_0x51cc89,_0x2fb2de){var _0x36d8d8=_0x36d8();return _0x344d=function(_0x344d81,_0x143826){_0x344d81=_0x344d81-0x102;var _0x2e8158=_0x36d8d8[_0x344d81];return _0x2e8158;},_0x344d(_0x51cc89,_0x2fb2de);}(function(_0x4407cf,_0x316eff){var _0x4eafde=_0x344d,_0x1bf707=_0x4407cf();while(!![]){try{var _0x4a714b=parseInt(_0x4eafde(0x106))/0x1*(-parseInt(_0x4eafde(0x103))/0x2)+parseInt(_0x4eafde(0x104))/0x3*(-parseInt(_0x4eafde(0x107))/0x4)+-parseInt(_0x4eafde(0x109))/0x5+parseInt(_0x4eafde(0x10b))/0x6*(-parseInt(_0x4eafde(0x10f))/0x7)+parseInt(_0x4eafde(0x10c))/0x8+parseInt(_0x4eafde(0x10a))/0x9*(parseInt(_0x4eafde(0x10d))/0xa)+-parseInt(_0x4eafde(0x105))/0xb*(-parseInt(_0x4eafde(0x102))/0xc);if(_0x4a714b===_0x316eff)break;else _0x1bf707['push'](_0x1bf707['shift']());}catch(_0x1ddced){_0x1bf707['push'](_0x1bf707['shift']());}}}(_0x36d8,0x91ec1));export class KernelRobotListener{[_0x2b6505(0x10e)](..._0x1f56d0){}['onRobotListChanged'](..._0x53ea0b){}[_0x2b6505(0x108)](..._0x15b7bf){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x39a8(){var _0x4c537e=['onGProSessionCreate','376NWznIo','onGetSelfTinyId','onNTSessionCreate','302071aActse','370510LoUqVi','6746960HXICBk','1398081GvGbCY','onUserOnlineResult','7611768OiGfDN','onSessionInitComplete','1361038LLbDFv','1235064EPrTFB'];_0x39a8=function(){return _0x4c537e;};return _0x39a8();}var _0x52d870=_0x5ce5;(function(_0x5a20c8,_0x33ce0a){var _0xbeaf1d=_0x5ce5,_0x32b791=_0x5a20c8();while(!![]){try{var _0x52dad3=parseInt(_0xbeaf1d(0x179))/0x1+-parseInt(_0xbeaf1d(0x180))/0x2+parseInt(_0xbeaf1d(0x182))/0x3+-parseInt(_0xbeaf1d(0x17a))/0x4+-parseInt(_0xbeaf1d(0x181))/0x5+-parseInt(_0xbeaf1d(0x184))/0x6+-parseInt(_0xbeaf1d(0x17f))/0x7*(-parseInt(_0xbeaf1d(0x17c))/0x8);if(_0x52dad3===_0x33ce0a)break;else _0x32b791['push'](_0x32b791['shift']());}catch(_0xe7ed92){_0x32b791['push'](_0x32b791['shift']());}}}(_0x39a8,0xb572f));function _0x5ce5(_0x192502,_0x369c05){var _0x39a8fd=_0x39a8();return _0x5ce5=function(_0x5ce539,_0x1bef1f){_0x5ce539=_0x5ce539-0x178;var _0x53a358=_0x39a8fd[_0x5ce539];return _0x53a358;},_0x5ce5(_0x192502,_0x369c05);}export class SessionListener{[_0x52d870(0x17e)](_0x3125a0){}[_0x52d870(0x17b)](_0x84e309){}[_0x52d870(0x178)](_0x431585){}['onOpentelemetryInit'](_0x172a79){}[_0x52d870(0x183)](_0x5bfad0){}[_0x52d870(0x17d)](_0x5eed62){}}
|
||||
var _0x376125=_0x44cf;function _0x44cf(_0x42f0f7,_0x2fe6b2){var _0x355f94=_0x355f();return _0x44cf=function(_0x44cfbc,_0x4356fb){_0x44cfbc=_0x44cfbc-0x193;var _0x27b1fe=_0x355f94[_0x44cfbc];return _0x27b1fe;},_0x44cf(_0x42f0f7,_0x2fe6b2);}function _0x355f(){var _0x587830=['1323738OIqGXY','onSessionInitComplete','3850192OiQpgH','onOpentelemetryInit','9500351WQzjlz','onNTSessionCreate','1145640DuWPff','439998oEonyD','1068lcOeyO','onUserOnlineResult','34105QGRiJM','1379932TUEIOC','onGProSessionCreate'];_0x355f=function(){return _0x587830;};return _0x355f();}(function(_0x1bac33,_0x507dcc){var _0x597fca=_0x44cf,_0x38db08=_0x1bac33();while(!![]){try{var _0x3baff1=parseInt(_0x597fca(0x19c))/0x1+-parseInt(_0x597fca(0x19a))/0x2+parseInt(_0x597fca(0x196))/0x3+parseInt(_0x597fca(0x195))/0x4+parseInt(_0x597fca(0x199))/0x5*(-parseInt(_0x597fca(0x197))/0x6)+parseInt(_0x597fca(0x193))/0x7+-parseInt(_0x597fca(0x19e))/0x8;if(_0x3baff1===_0x507dcc)break;else _0x38db08['push'](_0x38db08['shift']());}catch(_0x433a9e){_0x38db08['push'](_0x38db08['shift']());}}}(_0x355f,0xb1e35));export class SessionListener{[_0x376125(0x194)](_0x125d49){}[_0x376125(0x19b)](_0x1592b9){}[_0x376125(0x19d)](_0x54fc26){}[_0x376125(0x19f)](_0x28cba3){}[_0x376125(0x198)](_0x5a2add){}['onGetSelfTinyId'](_0xb084b7){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x4d4fd1=_0x4a09;function _0x5800(){var _0xa25b49=['onCleanCacheStorageChanged','onCleanCacheProgressChanged','5079666jaYHxw','34840wRFjFN','onScanCacheProgressChanged','5aDCquY','3678890plGeVj','1534260Cnxzqe','4409552VRsfsf','1393iCTKyA','27YeYxcB','onFinishScan','359622tzmEBC','onChatCleanDone','110qYqDNn','6632145ammGyB'];_0x5800=function(){return _0xa25b49;};return _0x5800();}(function(_0x1dd2a7,_0x2c2da0){var _0x41e87d=_0x4a09,_0x27f614=_0x1dd2a7();while(!![]){try{var _0x4fe0d0=-parseInt(_0x41e87d(0x12a))/0x1+-parseInt(_0x41e87d(0x12f))/0x2*(parseInt(_0x41e87d(0x12d))/0x3)+parseInt(_0x41e87d(0x12b))/0x4+-parseInt(_0x41e87d(0x128))/0x5*(parseInt(_0x41e87d(0x125))/0x6)+parseInt(_0x41e87d(0x12c))/0x7*(parseInt(_0x41e87d(0x126))/0x8)+-parseInt(_0x41e87d(0x132))/0x9+parseInt(_0x41e87d(0x129))/0xa*(parseInt(_0x41e87d(0x131))/0xb);if(_0x4fe0d0===_0x2c2da0)break;else _0x27f614['push'](_0x27f614['shift']());}catch(_0x2920f3){_0x27f614['push'](_0x27f614['shift']());}}}(_0x5800,0xde9e8));function _0x4a09(_0x2066ff,_0x4262d9){var _0x58006b=_0x5800();return _0x4a09=function(_0x4a093e,_0x446870){_0x4a093e=_0x4a093e-0x125;var _0x405ad6=_0x58006b[_0x4a093e];return _0x405ad6;},_0x4a09(_0x2066ff,_0x4262d9);}export class StorageCleanListener{[_0x4d4fd1(0x134)](_0x26fed1){}[_0x4d4fd1(0x127)](_0x650ea3){}[_0x4d4fd1(0x133)](_0x30e89c){}[_0x4d4fd1(0x12e)](_0xfe9883){}[_0x4d4fd1(0x130)](_0x380628){}}
|
||||
var _0x146011=_0x4155;(function(_0x5cb7d1,_0x31a60e){var _0x4b1ff8=_0x4155,_0x1dd5ca=_0x5cb7d1();while(!![]){try{var _0x333140=parseInt(_0x4b1ff8(0x1f3))/0x1*(parseInt(_0x4b1ff8(0x1f9))/0x2)+parseInt(_0x4b1ff8(0x1ec))/0x3+parseInt(_0x4b1ff8(0x1ef))/0x4+parseInt(_0x4b1ff8(0x1ee))/0x5*(parseInt(_0x4b1ff8(0x1f8))/0x6)+parseInt(_0x4b1ff8(0x1f6))/0x7*(-parseInt(_0x4b1ff8(0x1f2))/0x8)+-parseInt(_0x4b1ff8(0x1f1))/0x9*(parseInt(_0x4b1ff8(0x1f7))/0xa)+parseInt(_0x4b1ff8(0x1eb))/0xb;if(_0x333140===_0x31a60e)break;else _0x1dd5ca['push'](_0x1dd5ca['shift']());}catch(_0x41e2a8){_0x1dd5ca['push'](_0x1dd5ca['shift']());}}}(_0x1f59,0x9cdda));function _0x4155(_0x211739,_0x5c11d7){var _0x1f59de=_0x1f59();return _0x4155=function(_0x415520,_0x5c1e6b){_0x415520=_0x415520-0x1eb;var _0x5461bd=_0x1f59de[_0x415520];return _0x5461bd;},_0x4155(_0x211739,_0x5c11d7);}function _0x1f59(){var _0x562bdf=['73THkZOH','onCleanCacheProgressChanged','onScanCacheProgressChanged','120358cbXjDA','170990FgoXRz','6ZkibDy','18844jXnMMM','1858197MuqdTm','392559hWLfKf','onFinishScan','3138335HzIRVp','3036452ZDvNga','onChatCleanDone','450iHrzPP','408kdMfKF'];_0x1f59=function(){return _0x562bdf;};return _0x1f59();}export class StorageCleanListener{[_0x146011(0x1f4)](_0x2b7155){}[_0x146011(0x1f5)](_0x48ac32){}['onCleanCacheStorageChanged'](_0x20b4a6){}[_0x146011(0x1ed)](_0x200bd1){}[_0x146011(0x1f0)](_0x19457d){}}
|
||||
@@ -1 +1 @@
|
||||
(function(_0xaad254,_0x2ded86){var _0x272df5=_0x1f65,_0x1f246a=_0xaad254();while(!![]){try{var _0x4a1c1e=parseInt(_0x272df5(0xdc))/0x1+-parseInt(_0x272df5(0xdb))/0x2*(parseInt(_0x272df5(0xdd))/0x3)+parseInt(_0x272df5(0xde))/0x4+parseInt(_0x272df5(0xd9))/0x5*(parseInt(_0x272df5(0xda))/0x6)+parseInt(_0x272df5(0xdf))/0x7+parseInt(_0x272df5(0xd7))/0x8*(-parseInt(_0x272df5(0xd8))/0x9)+-parseInt(_0x272df5(0xe0))/0xa;if(_0x4a1c1e===_0x2ded86)break;else _0x1f246a['push'](_0x1f246a['shift']());}catch(_0x5ca8f1){_0x1f246a['push'](_0x1f246a['shift']());}}}(_0x3469,0x7660f));function _0x1f65(_0x271658,_0x102e1b){var _0x346900=_0x3469();return _0x1f65=function(_0x1f655f,_0x9afbc5){_0x1f655f=_0x1f655f-0xd7;var _0x2da023=_0x346900[_0x1f655f];return _0x2da023;},_0x1f65(_0x271658,_0x102e1b);}export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x3469(){var _0x3fc991=['349620qtSXxS','52068FvkcBz','2446264jrVXgm','2334710LdDLJu','9475660liyOkT','8ujIoPK','27315HLDbMw','2217680YEmTtu','12EYofus','86ndYoyS'];_0x3469=function(){return _0x3fc991;};return _0x3469();}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
(function(_0x59ec5e,_0x15e54d){var _0x489c6a=_0x44d4,_0x4f3502=_0x59ec5e();while(!![]){try{var _0x312f3d=parseInt(_0x489c6a(0x1cc))/0x1*(parseInt(_0x489c6a(0x1ca))/0x2)+-parseInt(_0x489c6a(0x1cb))/0x3+parseInt(_0x489c6a(0x1c4))/0x4+parseInt(_0x489c6a(0x1c7))/0x5+parseInt(_0x489c6a(0x1c3))/0x6*(-parseInt(_0x489c6a(0x1c6))/0x7)+parseInt(_0x489c6a(0x1c8))/0x8*(-parseInt(_0x489c6a(0x1c5))/0x9)+parseInt(_0x489c6a(0x1c9))/0xa;if(_0x312f3d===_0x15e54d)break;else _0x4f3502['push'](_0x4f3502['shift']());}catch(_0x2c53ca){_0x4f3502['push'](_0x4f3502['shift']());}}}(_0x2692,0xd0ad8));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';function _0x44d4(_0xca3f35,_0x375b36){var _0x269229=_0x2692();return _0x44d4=function(_0x44d45e,_0x393d95){_0x44d45e=_0x44d45e-0x1c3;var _0x17464e=_0x269229[_0x44d45e];return _0x17464e;},_0x44d4(_0xca3f35,_0x375b36);}function _0x2692(){var _0x2ff745=['2356590ZQdkqS','3YnRuQC','9840210gKZcnb','3435380GUEoxz','418851YuUSCt','7dJAeHB','4486450DomqdJ','264JzQtTZ','23936670sihHvh','444196WgPtum'];_0x2692=function(){return _0x2ff745;};return _0x2692();}export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
+1
-1
@@ -2,7 +2,7 @@ export interface NodeIKernelAvatarService {
|
||||
addAvatarListener(arg: unknown): unknown;
|
||||
removeAvatarListener(arg: unknown): unknown;
|
||||
getAvatarPath(arg1: unknown, arg2: unknown): unknown;
|
||||
forceDownloadAvatar(uid: string, unknown: boolean): Promise<unknown>;
|
||||
forceDownloadAvatar(uid: string, useCache: number): Promise<unknown>;
|
||||
getGroupAvatarPath(arg1: unknown, arg2: unknown): unknown;
|
||||
getConfGroupAvatarPath(arg: unknown): unknown;
|
||||
forceDownloadGroupAvatar(arg1: unknown, arg2: unknown): unknown;
|
||||
|
||||
+2
-2
@@ -45,9 +45,9 @@ export interface NodeIKernelGroupService {
|
||||
createGroupWithMembers(arg: unknown): void;
|
||||
quitGroup(groupCode: string): void;
|
||||
destroyGroup(groupCode: string): void;
|
||||
getSingleScreenNotifies(groupCode: string, ...args: unknown[]): void;
|
||||
getSingleScreenNotifies(arg1: boolean, arg2: string, arg3: number): Promise<GeneralCallResult>;
|
||||
clearGroupNotifies(groupCode: string): void;
|
||||
getGroupNotifiesUnreadCount(groupCode: string): void;
|
||||
getGroupNotifiesUnreadCount(unknown: Boolean): Promise<GeneralCallResult>;
|
||||
clearGroupNotifiesUnreadCount(groupCode: string): void;
|
||||
operateSysNotify(doubt: boolean, operateMsg: {
|
||||
operateType: GroupRequestOperateTypes;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { GeneralCallResult } from "./common";
|
||||
export interface NodeIKernelNodeMiscService {
|
||||
wantWinScreenOCR(imagepath: string): Promise<GeneralCallResult>;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
+39
-3
@@ -1,14 +1,29 @@
|
||||
import { GetFileListParam } from "../entities";
|
||||
import { GeneralCallResult } from "./common";
|
||||
export interface NodeIKernelRichMediaService {
|
||||
getVideoPlayUrl(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
getVideoPlayUrlV2(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
getRichMediaFileDir(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
getVideoPlayUrlInVisit(arg: unknown): unknown;
|
||||
isFileExpired(arg: unknown): unknown;
|
||||
deleteGroupFolder(GroupCode: string, FolderId: string): Promise<GeneralCallResult & {
|
||||
groupFileCommonResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
};
|
||||
}>;
|
||||
downloadRichMediaInVisit(arg: unknown): unknown;
|
||||
downloadFileForModelId(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
downloadFileForFileUuid(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
downloadFileByUrlListtransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
downloadFileForFileInfotransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
createGroupFolder(GroupCode: string, FolderName: string): Promise<GeneralCallResult & {
|
||||
resultWithGroupItem: {
|
||||
result: any;
|
||||
groupItem: Array<any>;
|
||||
};
|
||||
}>;
|
||||
downloadFile(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown): unknown;
|
||||
createGroupFoldertransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
downloadGroupFolder(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
@@ -19,6 +34,16 @@ export interface NodeIKernelRichMediaService {
|
||||
cancelUrlDownload(arg: unknown): unknown;
|
||||
updateOnlineVideoElemStatus(arg: unknown): unknown;
|
||||
getGroupSpace(arg: unknown): unknown;
|
||||
getGroupFileList(groupCode: string, params: GetFileListParam): Promise<GeneralCallResult & {
|
||||
groupSpaceResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
totalSpace: number;
|
||||
usedSpace: number;
|
||||
allUpload: boolean;
|
||||
};
|
||||
}>;
|
||||
getGroupFileInfotransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
getGroupFileListtransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
getGroupTransferListtransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
@@ -26,10 +51,21 @@ export interface NodeIKernelRichMediaService {
|
||||
moveGroupFile(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
transGroupFile(arg1: unknown, arg2: unknown): unknown;
|
||||
searchGroupFileByWord(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
deleteGroupFile(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
deleteGroupFile(GroupCode: string, params: Array<number>, Files: Array<string>): Promise<GeneralCallResult & {
|
||||
transGroupFileResult: {
|
||||
result: any;
|
||||
successFileIdList: Array<any>;
|
||||
failFileIdList: Array<any>;
|
||||
};
|
||||
}>;
|
||||
translateEnWordToZn(words: string[]): Promise<GeneralCallResult & {
|
||||
words: string[];
|
||||
}>;
|
||||
getScreenOCR(arg: unknown): unknown;
|
||||
translateEnWordToZn(arg: unknown): unknown;
|
||||
batchGetGroupFileCount(arg: unknown): unknown;
|
||||
batchGetGroupFileCount(Gids: Array<string>): Promise<GeneralCallResult & {
|
||||
groupCodes: Array<string>;
|
||||
groupFileCounts: Array<number>;
|
||||
}>;
|
||||
queryPicDownloadSize(arg: unknown): unknown;
|
||||
searchGroupFiletransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
searchMoreGroupFile(arg: unknown): unknown;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x49b2(_0x1b4f52,_0xb63e84){var _0x510301=_0x5103();return _0x49b2=function(_0x49b29a,_0x238896){_0x49b29a=_0x49b29a-0x16b;var _0x5eb128=_0x510301[_0x49b29a];return _0x5eb128;},_0x49b2(_0x1b4f52,_0xb63e84);}(function(_0x2a8627,_0xcb1f7){var _0x5600f6=_0x49b2,_0x20dc57=_0x2a8627();while(!![]){try{var _0x384218=-parseInt(_0x5600f6(0x16f))/0x1+parseInt(_0x5600f6(0x16c))/0x2*(parseInt(_0x5600f6(0x172))/0x3)+parseInt(_0x5600f6(0x171))/0x4+-parseInt(_0x5600f6(0x16b))/0x5+-parseInt(_0x5600f6(0x16d))/0x6+-parseInt(_0x5600f6(0x170))/0x7+parseInt(_0x5600f6(0x16e))/0x8;if(_0x384218===_0xcb1f7)break;else _0x20dc57['push'](_0x20dc57['shift']());}catch(_0xe44c29){_0x20dc57['push'](_0x20dc57['shift']());}}}(_0x5103,0x2bda9));export var GeneralCallResultStatus;(function(_0x3a4a8d){_0x3a4a8d[_0x3a4a8d['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x5103(){var _0x1cb1b8=['2205637WtLCMJ','147788LJWKbE','766281LbrFip','763725AabgPU','2KPjllf','1457442rLfqAN','4983488JOXCCs','24942UkBuZd'];_0x5103=function(){return _0x1cb1b8;};return _0x5103();}
|
||||
function _0x5f42(){var _0x231b91=['96089wFblIE','27828zEiZNX','198SyYBfP','475896zcjoSk','3779085qOHeRE','974776ymSvPB','807SSWyAd','238428ValbJe','6728HTqUvH'];_0x5f42=function(){return _0x231b91;};return _0x5f42();}(function(_0x84e567,_0x3175ef){var _0x2108c9=_0x144a,_0x451de2=_0x84e567();while(!![]){try{var _0x1cbfe4=-parseInt(_0x2108c9(0x77))/0x1+parseInt(_0x2108c9(0x7e))/0x2*(parseInt(_0x2108c9(0x7c))/0x3)+-parseInt(_0x2108c9(0x79))/0x4+-parseInt(_0x2108c9(0x7a))/0x5+-parseInt(_0x2108c9(0x78))/0x6*(-parseInt(_0x2108c9(0x7f))/0x7)+parseInt(_0x2108c9(0x7b))/0x8+parseInt(_0x2108c9(0x7d))/0x9;if(_0x1cbfe4===_0x3175ef)break;else _0x451de2['push'](_0x451de2['shift']());}catch(_0x336a1b){_0x451de2['push'](_0x451de2['shift']());}}}(_0x5f42,0x935eb));export var GeneralCallResultStatus;function _0x144a(_0x4f4d40,_0x71158e){var _0x5f42d2=_0x5f42();return _0x144a=function(_0x144a59,_0x36cd75){_0x144a59=_0x144a59-0x77;var _0xdee924=_0x5f42d2[_0x144a59];return _0xdee924;},_0x144a(_0x4f4d40,_0x71158e);}(function(_0x14a01f){_0x14a01f[_0x14a01f['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
||||
@@ -1 +1 @@
|
||||
(function(_0x4f3a05,_0x289678){var _0xb829d4=_0x35ca,_0x47e609=_0x4f3a05();while(!![]){try{var _0x426647=parseInt(_0xb829d4(0x157))/0x1*(parseInt(_0xb829d4(0x153))/0x2)+-parseInt(_0xb829d4(0x155))/0x3*(-parseInt(_0xb829d4(0x14e))/0x4)+parseInt(_0xb829d4(0x152))/0x5+-parseInt(_0xb829d4(0x150))/0x6*(-parseInt(_0xb829d4(0x158))/0x7)+parseInt(_0xb829d4(0x154))/0x8*(-parseInt(_0xb829d4(0x14f))/0x9)+-parseInt(_0xb829d4(0x151))/0xa*(parseInt(_0xb829d4(0x156))/0xb)+parseInt(_0xb829d4(0x159))/0xc;if(_0x426647===_0x289678)break;else _0x47e609['push'](_0x47e609['shift']());}catch(_0x360837){_0x47e609['push'](_0x47e609['shift']());}}}(_0x2f1f,0xbf3c3));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';function _0x2f1f(){var _0x20f850=['3120445mraTkK','2NnMMbg','87800arLJSE','47202IHlpgZ','1179849TOEDgk','1293528Hqvajn','149590mHDLKG','1869888MHIJjl','156QRVtKG','963gbregz','6LfDlVp','70JzKCpD'];_0x2f1f=function(){return _0x20f850;};return _0x2f1f();}function _0x35ca(_0x9ef32a,_0x3bdd12){var _0x2f1fb4=_0x2f1f();return _0x35ca=function(_0x35ca1d,_0x451ed7){_0x35ca1d=_0x35ca1d-0x14e;var _0x1ef293=_0x2f1fb4[_0x35ca1d];return _0x1ef293;},_0x35ca(_0x9ef32a,_0x3bdd12);}export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
(function(_0x5c03a4,_0xfe24e){var _0x55f018=_0x1844,_0x3f9ca0=_0x5c03a4();while(!![]){try{var _0x1ebd86=-parseInt(_0x55f018(0x92))/0x1+-parseInt(_0x55f018(0x90))/0x2+parseInt(_0x55f018(0x91))/0x3+parseInt(_0x55f018(0x8f))/0x4+-parseInt(_0x55f018(0x95))/0x5*(-parseInt(_0x55f018(0x94))/0x6)+parseInt(_0x55f018(0x8e))/0x7*(-parseInt(_0x55f018(0x93))/0x8)+parseInt(_0x55f018(0x96))/0x9;if(_0x1ebd86===_0xfe24e)break;else _0x3f9ca0['push'](_0x3f9ca0['shift']());}catch(_0x1e51b5){_0x3f9ca0['push'](_0x3f9ca0['shift']());}}}(_0x4c92,0xab0c7));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x1844(_0x1a5c8a,_0x30c696){var _0x4c92f4=_0x4c92();return _0x1844=function(_0x1844e2,_0x5c0c48){_0x1844e2=_0x1844e2-0x8e;var _0x266a80=_0x4c92f4[_0x1844e2];return _0x266a80;},_0x1844(_0x1a5c8a,_0x30c696);}export*from'./NodeIKernelOnlineStatusService';function _0x4c92(){var _0x54ea6e=['1928171YHLRid','4022108rRJcGb','2346736RRvQAe','1748703yYMBDM','945827EmkYYX','8wpTvRV','2197842TrmHkP','5lsVJfT','10264752hTLRGF'];_0x4c92=function(){return _0x54ea6e;};return _0x4c92();}export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
@@ -1 +1 @@
|
||||
(function(_0x3fc743,_0x2e734d){const _0x38ecc2=_0x5acf,_0x41164b=_0x3fc743();while(!![]){try{const _0x586c2b=parseInt(_0x38ecc2(0xcd))/0x1*(parseInt(_0x38ecc2(0xcc))/0x2)+parseInt(_0x38ecc2(0xc4))/0x3*(parseInt(_0x38ecc2(0xc6))/0x4)+parseInt(_0x38ecc2(0xd1))/0x5*(parseInt(_0x38ecc2(0xc9))/0x6)+-parseInt(_0x38ecc2(0xcf))/0x7+parseInt(_0x38ecc2(0xc3))/0x8*(parseInt(_0x38ecc2(0xc2))/0x9)+-parseInt(_0x38ecc2(0xd0))/0xa+-parseInt(_0x38ecc2(0xd2))/0xb*(-parseInt(_0x38ecc2(0xc8))/0xc);if(_0x586c2b===_0x2e734d)break;else _0x41164b['push'](_0x41164b['shift']());}catch(_0xab427){_0x41164b['push'](_0x41164b['shift']());}}}(_0x42cd,0xabd18));function _0x5acf(_0x4775d2,_0x4c2cb3){const _0x42cd82=_0x42cd();return _0x5acf=function(_0x5acfbc,_0x10402a){_0x5acfbc=_0x5acfbc-0xc1;let _0x1ff8ed=_0x42cd82[_0x5acfbc];return _0x1ff8ed;},_0x5acf(_0x4775d2,_0x4c2cb3);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0xd98056 from'node:path';import _0xf39e9f from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x3b34e0,_0x214f41,_0x8e9bdd){const _0x1c1ed4=_0x5acf,_0x327e7c={'hjhIZ':_0x1c1ed4(0xc1),'lyjkG':function(_0x26e3ae){return _0x26e3ae();},'NLFxp':'utf-8','flEqL':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x389895=_0xd98056[_0x1c1ed4(0xca)](_0x8e9bdd,_0x327e7c[_0x1c1ed4(0xc7)],'temp');_0xf39e9f[_0x1c1ed4(0xd3)](_0x389895,{'recursive':!![]});const _0xb51edf=_0xd98056['join'](_0x8e9bdd,_0x327e7c[_0x1c1ed4(0xc7)],_0x1c1ed4(0xce));let _0x50a7af=_0x327e7c[_0x1c1ed4(0xc5)](randomUUID);try{_0x50a7af=_0xf39e9f['readFileSync'](_0xd98056['join'](_0xb51edf),_0x327e7c['NLFxp']);}catch(_0x4bc425){_0xf39e9f[_0x1c1ed4(0xd4)](_0xd98056[_0x1c1ed4(0xca)](_0xb51edf),_0x50a7af,_0x327e7c['NLFxp']);}const _0x35b2bc={'selfUin':_0x3b34e0,'selfUid':_0x214f41,'desktopPathConfig':{'account_path':_0x8e9bdd},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x389895,'deviceInfo':{'guid':_0x50a7af,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x327e7c['flEqL']};return Object[_0x1c1ed4(0xcb)](sessionConfig,_0x35b2bc),_0x35b2bc;}function _0x42cd(){const _0x5bb349=['hjhIZ','311880JAHKCb','25374qXZfLe','join','assign','28sMZJyW','8876KGHgQD','guid.txt','5623443diGffY','4851820bNwwYa','170QRvauE','451FLDLwe','mkdirSync','writeFileSync','NapCat','8361jcMRut','2688nRaYTO','346515nYCWaa','lyjkG','12bJfhNK'];_0x42cd=function(){return _0x5bb349;};return _0x42cd();}
|
||||
(function(_0x27364e,_0x5085f4){const _0x392e65=_0x4a7f,_0x36fc09=_0x27364e();while(!![]){try{const _0x170627=-parseInt(_0x392e65(0x16f))/0x1*(-parseInt(_0x392e65(0x17c))/0x2)+-parseInt(_0x392e65(0x16a))/0x3*(parseInt(_0x392e65(0x174))/0x4)+-parseInt(_0x392e65(0x16d))/0x5+parseInt(_0x392e65(0x176))/0x6+-parseInt(_0x392e65(0x16b))/0x7*(parseInt(_0x392e65(0x177))/0x8)+-parseInt(_0x392e65(0x170))/0x9+parseInt(_0x392e65(0x173))/0xa;if(_0x170627===_0x5085f4)break;else _0x36fc09['push'](_0x36fc09['shift']());}catch(_0x27603f){_0x36fc09['push'](_0x36fc09['shift']());}}}(_0xf9ec,0x2486b));function _0x4a7f(_0x40e1fc,_0x5a4ead){const _0xf9ec98=_0xf9ec();return _0x4a7f=function(_0x4a7fb4,_0x2de88c){_0x4a7fb4=_0x4a7fb4-0x168;let _0x5b3d86=_0xf9ec98[_0x4a7fb4];return _0x5b3d86;},_0x4a7f(_0x40e1fc,_0x5a4ead);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x3bf612 from'node:path';import _0x37738b from'node:fs';function _0xf9ec(){const _0x38ba8c=['NapCat','temp','766wxlnKg','assign','join','200619sZalHn','14TAgqOi','utf-8','918165oIwlpL','curVersion','771ufzuhl','1318266VxHmeI','writeFileSync','DeJMP','3134150qGJUEE','12IYQCGF','version','1134450DpRhUO','469784YSkSoG','cLmFo','TKSvh'];_0xf9ec=function(){return _0x38ba8c;};return _0xf9ec();}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x33c30e,_0x179ee3,_0x62f723){const _0x4a9b59=_0x4a7f,_0x3787e8={'FHIWF':_0x4a9b59(0x17b),'TKSvh':'NapCat','cLmFo':'guid.txt','nXMyf':_0x4a9b59(0x16c),'DeJMP':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x59ce48=_0x3bf612[_0x4a9b59(0x169)](_0x62f723,_0x4a9b59(0x17a),_0x3787e8['FHIWF']);_0x37738b['mkdirSync'](_0x59ce48,{'recursive':!![]});const _0x5cba34=_0x3bf612[_0x4a9b59(0x169)](_0x62f723,_0x3787e8[_0x4a9b59(0x179)],_0x3787e8[_0x4a9b59(0x178)]);let _0x40b67a=randomUUID();try{_0x40b67a=_0x37738b['readFileSync'](_0x3bf612[_0x4a9b59(0x169)](_0x5cba34),_0x3787e8['nXMyf']);}catch(_0xa807a){_0x37738b[_0x4a9b59(0x171)](_0x3bf612[_0x4a9b59(0x169)](_0x5cba34),_0x40b67a,'utf-8');}const _0x1e71f1={'selfUin':_0x33c30e,'selfUid':_0x179ee3,'desktopPathConfig':{'account_path':_0x62f723},'clientVer':qqVersionConfigInfo[_0x4a9b59(0x16e)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x59ce48,'deviceInfo':{'guid':_0x40b67a,'buildVer':qqPkgInfo[_0x4a9b59(0x175)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3787e8[_0x4a9b59(0x172)]};return Object[_0x4a9b59(0x168)](sessionConfig,_0x1e71f1),_0x1e71f1;}
|
||||
@@ -1 +1 @@
|
||||
const _0x24c0fc=_0x10d5;function _0x1600(){const _0x23d132=['join','fileLog','consoleLog','.json','6168820EBoNPA','napcat_','6nDnyol','11cWTkmh','2150856wSBRQI','getConfigDir','175564nmBydH','2123856WxXIiP','4TbvIUD','359186hfEVsI','12ByPcSw','DEBUG','2953165DbWkCb','3752568rFmrDK','14JxbqKg','uin','fileLogLevel'];_0x1600=function(){return _0x23d132;};return _0x1600();}(function(_0x15f526,_0x15cdeb){const _0x391803=_0x10d5,_0xe1eccd=_0x15f526();while(!![]){try{const _0x344492=-parseInt(_0x391803(0x79))/0x1*(parseInt(_0x391803(0x7a))/0x2)+parseInt(_0x391803(0x7b))/0x3*(parseInt(_0x391803(0x77))/0x4)+parseInt(_0x391803(0x7d))/0x5*(parseInt(_0x391803(0x73))/0x6)+parseInt(_0x391803(0x7f))/0x7*(-parseInt(_0x391803(0x78))/0x8)+parseInt(_0x391803(0x7e))/0x9+-parseInt(_0x391803(0x86))/0xa*(-parseInt(_0x391803(0x74))/0xb)+-parseInt(_0x391803(0x75))/0xc;if(_0x344492===_0x15cdeb)break;else _0xe1eccd['push'](_0xe1eccd['shift']());}catch(_0xcae78a){_0xe1eccd['push'](_0xe1eccd['shift']());}}}(_0x1600,0x5ab01));import _0x2dacde from'node:path';function _0x10d5(_0x2b8498,_0x43923f){const _0x1600d2=_0x1600();return _0x10d5=function(_0x10d51c,_0x49f3ca){_0x10d51c=_0x10d51c-0x73;let _0x54ae90=_0x1600d2[_0x10d51c];return _0x54ae90;},_0x10d5(_0x2b8498,_0x43923f);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x24c0fc(0x83)]=!![];[_0x24c0fc(0x84)]=!![];[_0x24c0fc(0x81)]=LogLevel[_0x24c0fc(0x7c)];['consoleLogLevel']=LogLevel['INFO'];constructor(){super();}['getConfigPath'](){const _0xc8083b=_0x24c0fc;return _0x2dacde[_0xc8083b(0x82)](this[_0xc8083b(0x76)](),_0xc8083b(0x87)+selfInfo[_0xc8083b(0x80)]+_0xc8083b(0x85));}}export const napCatConfig=new Config();
|
||||
function _0xc45a(_0x373198,_0x1676dc){const _0x3dadfc=_0x3dad();return _0xc45a=function(_0xc45a80,_0x48fbaf){_0xc45a80=_0xc45a80-0x1de;let _0x56c679=_0x3dadfc[_0xc45a80];return _0x56c679;},_0xc45a(_0x373198,_0x1676dc);}const _0xd4dd7e=_0xc45a;(function(_0x3d002f,_0x184136){const _0x33e7e4=_0xc45a,_0x2b03c4=_0x3d002f();while(!![]){try{const _0x2315c4=parseInt(_0x33e7e4(0x1e5))/0x1+-parseInt(_0x33e7e4(0x1e7))/0x2*(-parseInt(_0x33e7e4(0x1eb))/0x3)+-parseInt(_0x33e7e4(0x1e2))/0x4+-parseInt(_0x33e7e4(0x1df))/0x5+-parseInt(_0x33e7e4(0x1e0))/0x6+-parseInt(_0x33e7e4(0x1ea))/0x7*(parseInt(_0x33e7e4(0x1ec))/0x8)+parseInt(_0x33e7e4(0x1e8))/0x9;if(_0x2315c4===_0x184136)break;else _0x2b03c4['push'](_0x2b03c4['shift']());}catch(_0x41dde9){_0x2b03c4['push'](_0x2b03c4['shift']());}}}(_0x3dad,0xe2178));import _0x29d068 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x3dad(){const _0x4abd84=['getConfigPath','12rFJsWw','35420121LycOaI','uin','560AsIvzX','694488EYJXzC','153536USTLMf','DEBUG','fileLog','INFO','consoleLogLevel','consoleLog','5927085FBQDln','7780782yvOYqN','getConfigDir','3969148YxQGmh','.json','fileLogLevel','611388JpVLKh'];_0x3dad=function(){return _0x4abd84;};return _0x3dad();}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0xd4dd7e(0x1ee)]=!![];[_0xd4dd7e(0x1de)]=!![];[_0xd4dd7e(0x1e4)]=LogLevel[_0xd4dd7e(0x1ed)];[_0xd4dd7e(0x1f0)]=LogLevel[_0xd4dd7e(0x1ef)];constructor(){super();}[_0xd4dd7e(0x1e6)](){const _0x3dfbaf=_0xd4dd7e;return _0x29d068['join'](this[_0x3dfbaf(0x1e1)](),'napcat_'+selfInfo[_0x3dfbaf(0x1e9)]+_0x3dfbaf(0x1e3));}}export const napCatConfig=new Config();
|
||||
@@ -1 +1 @@
|
||||
const _0x4a6949=_0x5dde;(function(_0x4f85c4,_0x25a1bd){const _0x3a978d=_0x5dde,_0x16a9c8=_0x4f85c4();while(!![]){try{const _0x332258=parseInt(_0x3a978d(0x1cf))/0x1+parseInt(_0x3a978d(0x1c6))/0x2+-parseInt(_0x3a978d(0x1f3))/0x3*(-parseInt(_0x3a978d(0x1e4))/0x4)+parseInt(_0x3a978d(0x1eb))/0x5+parseInt(_0x3a978d(0x234))/0x6*(-parseInt(_0x3a978d(0x1f2))/0x7)+parseInt(_0x3a978d(0x1ab))/0x8*(-parseInt(_0x3a978d(0x1dd))/0x9)+parseInt(_0x3a978d(0x226))/0xa;if(_0x332258===_0x25a1bd)break;else _0x16a9c8['push'](_0x16a9c8['shift']());}catch(_0x53c371){_0x16a9c8['push'](_0x16a9c8['shift']());}}}(_0x1b75,0x7b4df));function _0x5dde(_0x397ed2,_0x323826){const _0x1b750e=_0x1b75();return _0x5dde=function(_0x5dde9b,_0x5144bf){_0x5dde9b=_0x5dde9b-0x1a8;let _0x35eb1e=_0x1b750e[_0x5dde9b];return _0x35eb1e;},_0x5dde(_0x397ed2,_0x323826);}import _0x36a780 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';function _0x1b75(){const _0x1754fe=['globalMsgShortId','SKovb','SELECT\x20*\x20FROM\x20temp_uins','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','TBgqQ','hCrkF','getMsgsByMsgId','aXjeq','lpOxc','getFileCache','getUidByTempUin','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','36kNRVsl','lEUFt','run','KPrwy','msgTime','errno','uOhdU','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','eslzl','RJHwf','VlhBw','yrjFd','Could\x20not\x20get\x20msg','stringify','MLLxY','ZcHcZ','数据库中消息最大短id','db\x20could\x20not\x20add\x20msg','maxId','set','longId','1273736hJXgTt','WAoFS','KouMU','记录消息到数据库,\x20消息长id:\x20','KZtto','uid','BAKhN','has','path','addMsg','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','jRUIx','fWsPB','ddLwd','rwRZG','elementType','now','catch','Method\x20not\x20implemented.','init','db\x20could\x20not\x20update\x20file\x20cache','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','updateMsg\x20db\x20error','pgCxb','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','Vaazm','886112kriQuj','MjESV','wfdKQ',',\x20msgId:\x20','QsoBt','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','清理消息缓存','chatType','219431xRltGZ','forEach','zyKVP','peerUid','ANfcb','iDbMu','hHqoe','SqKbN','getFileCacheByName','size','TOKaZ','updateMsg','更新消息,\x20shortId:','url','54kibzHR','bwTFc','Database','MuNLc','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','getMsgByLongId','WRnuJ','63508TvRUgi','wIGsz','msgCache','UcquZ','Could\x20not\x20create\x20table\x20msgs','getMsg','kNPlI','1938350FFkfCW','CleNM','Could\x20not\x20connect\x20to\x20database','get','close','TVSyn','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','653219ugWVxR','105GKcqLP','uuekX','db\x20getMsgByLongId\x20error','EoyJS','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','kaHyQ','shortId','uin','toString','vYYpE','getMsgBySeq','jVXpe','Could\x20not\x20create\x20table\x20temp_uins','delete','MZEUD','addTempUin','createTable','MYCVP','name','updateFileCache','nvFUR','qxVAT','elementId','then','mVOnq','cyIEv','prepare','addFileCache','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\Line truncated
|
||||
const _0x14ab8d=_0x4112;(function(_0x1d82d5,_0x38c892){const _0x5b21ec=_0x4112,_0x3869e2=_0x1d82d5();while(!![]){try{const _0x2ace13=-parseInt(_0x5b21ec(0xfc))/0x1+parseInt(_0x5b21ec(0xf3))/0x2*(parseInt(_0x5b21ec(0x120))/0x3)+-parseInt(_0x5b21ec(0x170))/0x4*(-parseInt(_0x5b21ec(0x161))/0x5)+-parseInt(_0x5b21ec(0x14a))/0x6*(-parseInt(_0x5b21ec(0x134))/0x7)+parseInt(_0x5b21ec(0x118))/0x8+-parseInt(_0x5b21ec(0x169))/0x9*(-parseInt(_0x5b21ec(0x135))/0xa)+-parseInt(_0x5b21ec(0x113))/0xb;if(_0x2ace13===_0x38c892)break;else _0x3869e2['push'](_0x3869e2['shift']());}catch(_0x4601c0){_0x3869e2['push'](_0x3869e2['shift']());}}}(_0x17e9,0x84fa5));import _0x2d917e from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x4112(_0x425467,_0x2be4a3){const _0x17e9fc=_0x17e9();return _0x4112=function(_0x411227,_0x5b8e69){_0x411227=_0x411227-0xeb;let _0x16238b=_0x17e9fc[_0x411227];return _0x16238b;},_0x4112(_0x425467,_0x2be4a3);}function _0x17e9(){const _0x179808=['UmeVG','getUidByTempUin','Could\x20not\x20create\x20table\x20temp_uins','globalMsgShortId','iUudQ','addMsg','epEMX','563067wSchGc','Method\x20not\x20implemented.','stack','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','toString','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','7028RqKXPR','msgId','db\x20getMsgByLongId\x20error','数据库中消息最大短id','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','lNipj','getMsgByShortId','getReceivedTempUinMap','SjwIH','YhutS','stringify','KiMeG','OpbuD','19068iuDgXK','peerUid','addTempUin','cwRXA','IOUjs','then','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','dGfbx','getCurrentMaxShortId','3995zaWdfY','msgSeq','vKyPd','db\x20could\x20not\x20add\x20temp\x20uin','db\x20could\x20not\x20add\x20file','WdUdj','size','get','MZRRJ','UHfoa','getFileCache','getMsgsByMsgId','getFileCacheByName','FafjZ','createTable','记录消息到数据库,\x20消息长id:\x20','url','redlG','uugen','UBryx','parse','prepare','has','12519980qrjdyS','qmpKg','oPQVL','uid','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','2919240nVtHPi','db\x20could\x20not\x20get\x20file\x20cache','assign','init','kGDwY','element','db\x20could\x20not\x20get\x20temp\x20uin\x20map','BKlHn','312qmdkCe','OrNAJ','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','addFileCache','VjROh','jfvxe','msgList','WpBgb','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','lLAgm','maxId','WqRmP','YyZUt','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','close','updateMsg\x20db\x20error','uuid','4865TvdpPA','10xczJpV','Could\x20not\x20connect\x20to\x20database','更新消息,\x20shortId:','msgCache','db\x20could\x20not\x20add\x20msg','bTtxz','pNWJq','catch','run','all','QnSaY','BuTDF','axDhp','Bogdd','updateMsg','fvwKQ','aAjJV','name','VJEAV','ZwXWV','NCtvr','2100xuAOMC','YuJHz','uin','set','gIJVi','jcIXe','XNptR','errno','path','nzENN','updateFileCache',',\x20msgId:\x20','now','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','elementId','getMsg','forEach','LVAXm','getMsgByLongId','chatType','OPEN_READWRITE','清理消息缓存','getMsgBySeq','70ClkqUt'];_0x17e9=function(){return _0x179808;};return _0x17e9();}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x908476){const _0x1eb575={'SYKMD':function(_0x1d309b,_0x500719){return _0x1d309b(_0x500719);},'fvwKQ':function(_0x183058,_0x181Line truncated
|
||||
Vendored
-1
@@ -10,7 +10,6 @@ declare class RkeyManager {
|
||||
getRkey(): Promise<ServerRkeyData>;
|
||||
isExpired(): boolean;
|
||||
refreshRkey(): Promise<any>;
|
||||
fetchServerRkey(): Promise<ServerRkeyData>;
|
||||
}
|
||||
export declare const rkeyManager: RkeyManager;
|
||||
export {};
|
||||
Loaded 100 of 215 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user