Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68af73970e | ||
|
|
b6ed8d4975 | ||
|
|
d07d3645ce | ||
|
|
123759ab17 | ||
|
|
f2f1f893d8 | ||
|
|
db93a8eed2 | ||
|
|
12ab6d4a7d | ||
|
|
add759e889 | ||
|
|
f315f7977d | ||
|
|
f2f6701ebd | ||
|
|
1a92794d33 | ||
|
|
7640deb798 | ||
|
|
f1e8ef1cf6 | ||
|
|
5e5ac0162e | ||
|
|
0c013820f0 | ||
|
|
4b3a9e5847 | ||
|
|
e4982256a4 | ||
|
|
babc4927a8 | ||
|
|
6dd84cf469 | ||
|
|
a8800e3899 | ||
|
|
5f03496046 | ||
|
|
41500c17a2 | ||
|
|
2dcfde8b9a | ||
|
|
5c3305d8fa | ||
|
|
0d1fe99f53 | ||
|
|
4c03ffeec7 | ||
|
|
8101d17482 | ||
|
|
bc7b4dcc2a | ||
|
|
3db8b9078d | ||
|
|
943dbbefd3 | ||
|
|
480abcb853 | ||
|
|
60aaaff58e | ||
|
|
e3b889bbe8 | ||
|
|
ac5506a43b | ||
|
|
b29f533a3b | ||
|
|
a8ee86b09e | ||
|
|
0238c53302 | ||
|
|
665e3c806f | ||
|
|
8c96838441 | ||
|
|
4a722daec6 | ||
|
|
4e0cdbcb91 | ||
|
|
08976624cd | ||
|
|
fdeba94653 | ||
|
|
d3b100b7e5 | ||
|
|
1de3e18b08 | ||
|
|
d5c3c95682 | ||
|
|
dabe1e29ed | ||
|
|
203d1c0cfc | ||
|
|
7edd8601be | ||
|
|
a4423247f4 | ||
|
|
4834b203a0 | ||
|
|
bbabb32d13 | ||
|
|
95112d6bdf | ||
|
|
36cdca5a3e | ||
|
|
6980a9f3fc | ||
|
|
7b09479cd2 | ||
|
|
5825fd6f36 | ||
|
|
2d5b45dd82 | ||
|
|
52dda1d1fe | ||
|
|
420624bee4 | ||
|
|
8abde7b7d0 | ||
|
|
9e5b1ba28e | ||
|
|
b9c7d3c18e | ||
|
|
10aeccbbe5 | ||
|
|
15d351ebc2 | ||
|
|
7194f31cb6 | ||
|
|
84b7e82446 | ||
|
|
8264423b1a | ||
|
|
37f897f3bf | ||
|
|
fe3efac145 | ||
|
|
9773aebefc | ||
|
|
06f2b8c371 | ||
|
|
e8f0bb8350 | ||
|
|
9bfa6b827b | ||
|
|
b21bc17a58 | ||
|
|
f4d5d417d0 | ||
|
|
91fc83621e | ||
|
|
461feca0ca | ||
|
|
5e9afab3f7 | ||
|
|
2599ca6450 | ||
|
|
fc99ad3a39 | ||
|
|
10e1c3e72c | ||
|
|
af5dedd4d4 | ||
|
|
3b986c1076 | ||
|
|
72f77e8b7c | ||
|
|
e893bf676f | ||
|
|
80eb34f611 | ||
|
|
5d01947552 | ||
|
|
d3a025ef7b | ||
|
|
c466df841e | ||
|
|
b3c6e2a0f3 | ||
|
|
076c9cfed7 | ||
|
|
c3f3d12f83 | ||
|
|
44974034ec | ||
|
|
d6175acd38 | ||
|
|
62eee5f05c | ||
|
|
d4e5201913 | ||
|
|
f4d584765a | ||
|
|
26e224f852 | ||
|
|
252358ed66 | ||
|
|
475afeb7c8 | ||
|
|
7cbbb846eb | ||
|
|
25f947968c | ||
|
|
cad824dcbc | ||
|
|
e506f50b00 | ||
|
|
96ec149a98 | ||
|
|
8c913512f6 | ||
|
|
4cc307299d | ||
|
|
407c6b4c5f | ||
|
|
8f87070434 | ||
|
|
4a63996ee2 | ||
|
|
0358fe7620 | ||
|
|
55e64395ed | ||
|
|
ff5fb18e14 | ||
|
|
52dd960857 | ||
|
|
430221c2de | ||
|
|
217bdf8f92 | ||
|
|
38c6c869bf | ||
|
|
84d46da67e | ||
|
|
eb9d6240d7 | ||
|
|
2d44a871b0 | ||
|
|
3f89f350ff | ||
|
|
1a8407a782 | ||
|
|
cf288a3f73 | ||
|
|
f1f37fb180 | ||
|
|
fb0dd079fd | ||
|
|
a6c584c85c | ||
|
|
77adf35a30 | ||
|
|
dc6951c2a9 | ||
|
|
d14ba3f0f7 | ||
|
|
78ddf36e35 | ||
|
|
d42734624d | ||
|
|
b5dbd9d59b | ||
|
|
bed3e1289b | ||
|
|
b11ca4e60e | ||
|
|
4fcf3aa2bd | ||
|
|
dc39da8ca5 | ||
|
|
c10c87d28e | ||
|
|
c6fe6f1cc5 | ||
|
|
1c2bbeb26d | ||
|
|
17ed3692d0 | ||
|
|
966a00f41e | ||
|
|
fd8d8f89aa | ||
|
|
305bb74072 | ||
|
|
7f4dcdd134 | ||
|
|
aac37dcce1 | ||
|
|
f539c662a5 | ||
|
|
c82f346dd0 | ||
|
|
21b4a87837 | ||
|
|
ae73bcf24b | ||
|
|
2a3b56bde1 | ||
|
|
b8ebededd8 | ||
|
|
227c4c422c | ||
|
|
652bfb93cc | ||
|
|
c2278e3536 | ||
|
|
caa2fca4e8 | ||
|
|
745cb0175c | ||
|
|
e5165a780f | ||
|
|
b4b91af02b | ||
|
|
5649ff9c2e | ||
|
|
5b4bf6c62a | ||
|
|
93cb662282 | ||
|
|
00a8715e58 | ||
|
|
7ecd479b3e | ||
|
|
8fe7d3aaec | ||
|
|
f32a693393 | ||
|
|
17ebc01597 | ||
|
|
827fb698e1 | ||
|
|
32bdf10fd2 | ||
|
|
b795e6c3d2 | ||
|
|
42ba524e4e | ||
|
|
317c6d96e3 | ||
|
|
3692d1499f | ||
|
|
b21fbad8a3 | ||
|
|
743334a68a | ||
|
|
951413eb38 | ||
|
|
32dcdef853 | ||
|
|
34c9254d4a | ||
|
|
14012a4668 | ||
|
|
575debca63 | ||
|
|
763cac8532 | ||
|
|
43faacd7a7 | ||
|
|
1d4e307e96 | ||
|
|
7f8933b0de | ||
|
|
81608ff025 | ||
|
|
db63675b8e | ||
|
|
f74a83bc46 | ||
|
|
bc1deba3e4 | ||
|
|
d6113a8f0a | ||
|
|
2062cd48ea | ||
|
|
1c965ef515 | ||
|
|
58291b7156 | ||
|
|
afd1648d80 | ||
|
|
21814ffa9a | ||
|
|
9d3522da54 | ||
|
|
e07a76755e | ||
|
|
ba46bcdeae | ||
|
|
8d7e44314c | ||
|
|
35a67498c7 | ||
|
|
90dd934f95 | ||
|
|
4087045542 | ||
|
|
d11cef5907 | ||
|
|
76c91d226c | ||
|
|
c2b4dd2afd | ||
|
|
25b39cb39a | ||
|
|
35dcb7b88b | ||
|
|
e5f7e7c26e | ||
|
|
c5c11fd6a6 | ||
|
|
8134083419 | ||
|
|
a87e624198 | ||
|
|
e4c62d20b4 | ||
|
|
fa195d9e55 | ||
|
|
5ef5773d23 | ||
|
|
6eea52afdf | ||
|
|
80e64af30f | ||
|
|
563b6ddc36 | ||
|
|
c051ab9dc4 | ||
|
|
87737a8bdb | ||
|
|
94273d80b0 | ||
|
|
a08ec2a4bd | ||
|
|
d246c556f4 | ||
|
|
65aa365e38 | ||
|
|
eeeae449b4 | ||
|
|
17c10a7ba2 | ||
|
|
69f4383678 | ||
|
|
07852a7295 | ||
|
|
20b7e9b6b5 | ||
|
|
75f43ccea4 | ||
|
|
59e5785e93 | ||
|
|
b38f52dba9 | ||
|
|
2a6b17a48e | ||
|
|
a6c056a894 | ||
|
|
5c3442a71f | ||
|
|
390253242f | ||
|
|
9ab80fe1ac | ||
|
|
91fdd09e7a | ||
|
|
db5bd5c8a4 | ||
|
|
ef94c2fe7c | ||
|
|
72a25ed8e1 | ||
|
|
eb065e218f | ||
|
|
33426736fc | ||
|
|
896658d5ce | ||
|
|
b14135ed72 | ||
|
|
a1baf2e32d | ||
|
|
f9aa2d3bce | ||
|
|
c95d0e0696 | ||
|
|
ad4b84d446 | ||
|
|
3e27d5fcb0 | ||
|
|
48a100f49a | ||
|
|
698649f981 | ||
|
|
780078c3aa | ||
|
|
4c25e4ddee | ||
|
|
c0a5ac2ac5 | ||
|
|
0435409870 | ||
|
|
c521269409 | ||
|
|
1e252b7e4c | ||
|
|
d72b1edc48 | ||
|
|
f7307e8e01 | ||
|
|
127905f04b | ||
|
|
261c6dabd5 | ||
|
|
cae84bbf02 | ||
|
|
cdb2bc52fa | ||
|
|
cd2972eee0 | ||
|
|
4036aa8d0e |
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
-2
@@ -1,10 +1,11 @@
|
||||
# Develop
|
||||
node_modules/
|
||||
package-lock.json
|
||||
pnpm-lock.yaml
|
||||
out/
|
||||
dist/
|
||||
src/core.lib/common/
|
||||
test
|
||||
/src/core.lib/common/
|
||||
/localdebug/
|
||||
|
||||
# Editor
|
||||
.vscode/*
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
# v1.3.0
|
||||
|
||||
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复了一个导致每个图片都自动下载的 bug
|
||||
* 再一次修复图片URL,支持 Win/Linux X64 获取Rkey,暂时不支持arm64
|
||||
* 修复了设置消息群聊与私聊已读接口
|
||||
* 修复无法获取进群申请人员信息
|
||||
## 新增与调整
|
||||
* 再一次对获取Cookies与获取群成员优化,分别添加30/60/120分钟缓存
|
||||
* 新增 WebUi 支持远程配置设置 详细参考官方教程
|
||||
* 新增二维码过期自动刷新功能
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,17 @@
|
||||
# v1.3.3
|
||||
|
||||
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 尝试修复多开崩溃问题
|
||||
* 修复群列表更新问题
|
||||
* 修复兼容性问题支持Win7
|
||||
* 修复下载 http 资源缺少UA
|
||||
* 优化少量消息合并转发速度
|
||||
* 修复加载群通知时出现 getUserDetailInfo timeout 导致程序崩溃
|
||||
|
||||
## 新增与调整
|
||||
* 新增设置群公告 Api: /_send_group_notice
|
||||
* 新增重启实现 包括重启快速登录/普通重启 副作用: 原进程 无法清理
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,18 @@
|
||||
# v1.3.5
|
||||
|
||||
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 优化启动脚本
|
||||
* 修复非管理时群成员减少事件上报 **无法获取操作者与操作类型**
|
||||
* 修复快速重启进程清理问题
|
||||
* 优化配置文件格式 支持自动更新配置 但仍然建议 **备份配置**
|
||||
* 修复正向反向ws多个客户端周期多次心跳问题
|
||||
|
||||
## 新增与调整
|
||||
* 支持WebUi热重载
|
||||
* 新增启动输出WEBUI秘钥
|
||||
* 新增群荣誉信息 /get_group_honor_info
|
||||
* 支持获取群系统消息 /get_group_system_msg
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.3.6
|
||||
|
||||
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复戳一戳多次上报问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,15 @@
|
||||
# v1.3.8
|
||||
|
||||
QQ Version: Windows 9.9.9-23873 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 优化打包后体积问题
|
||||
* 修复QQ等级获取
|
||||
* 兼容 9.7.x 版本换行符 统一为 \n
|
||||
* 修复处理加群请求 字段异常情况
|
||||
* 修复退群通知问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.3.9
|
||||
|
||||
QQ Version: Windows 9.9.10-23873 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复QQ等级获取与兼容性问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.0
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
|
||||
## 新增与调整
|
||||
* 支持空间Cookies获取
|
||||
* 支持获取在线设备 API /get_online_clients
|
||||
* 支持图片OCR API: /.ocr_image /ocr_image
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
+5
-4
@@ -2,7 +2,7 @@
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.0",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
@@ -19,7 +19,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@log4js-node/log4js-api": "^1.0.2",
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@types/cors": "^2.8.17",
|
||||
@@ -37,7 +36,6 @@
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"i": "^0.3.7",
|
||||
"javascript-obfuscator": "^4.1.0",
|
||||
"protobufjs-cli": "^1.1.2",
|
||||
"rollup": "^4.13.2",
|
||||
"rollup-plugin-dts": "^6.1.0",
|
||||
"rollup-plugin-obfuscator": "^1.1.0",
|
||||
@@ -45,9 +43,11 @@
|
||||
"vite": "^5.2.6",
|
||||
"vite-plugin-cp": "^4.0.8",
|
||||
"vite-plugin-dts": "^3.8.2",
|
||||
"vite-tsconfig-paths": "^4.3.2"
|
||||
"vite-tsconfig-paths": "^4.3.2",
|
||||
"@protobuf-ts/plugin": "^2.9.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^8.13.0",
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
@@ -55,6 +55,7 @@
|
||||
"file-type": "^19.0.0",
|
||||
"fluent-ffmpeg": "^2.1.2",
|
||||
"image-size": "^1.1.1",
|
||||
"json-schema-to-ts": "^3.1.0",
|
||||
"log4js": "^6.9.1",
|
||||
"qrcode-terminal": "^0.12.0",
|
||||
"silk-wasm": "^3.3.4",
|
||||
|
||||
+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" "$@"
|
||||
@@ -61,12 +61,12 @@ export abstract class HttpServerBase {
|
||||
this.listen(port, host);
|
||||
} catch (e: any) {
|
||||
logError('HTTP服务启动失败', e.toString());
|
||||
// llonebotError.httpServerError = "HTTP服务启动失败, " + e.toString()
|
||||
// httpServerError = "HTTP服务启动失败, " + e.toString()
|
||||
}
|
||||
}
|
||||
|
||||
stop() {
|
||||
// llonebotError.httpServerError = ""
|
||||
// httpServerError = ""
|
||||
if (this.server) {
|
||||
this.server.close();
|
||||
this.server = null;
|
||||
@@ -114,8 +114,10 @@ export abstract class HttpServerBase {
|
||||
this.server = this.expressAPP.listen(port, host, () => {
|
||||
const info = `${this.name} started ${host}:${port}`;
|
||||
log(info);
|
||||
}).on('error', (err) => {
|
||||
logError('HTTP服务启动失败', err.toString());
|
||||
});
|
||||
}catch (e: any) {
|
||||
} catch (e: any) {
|
||||
logError('HTTP服务启动失败, 请检查监听的ip地址和端口', e.stack.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,10 @@ export class WebsocketServerBase {
|
||||
start(port: number, host: string = '') {
|
||||
try {
|
||||
this.ws = new WebSocketServer({
|
||||
port ,
|
||||
port,
|
||||
host: '',
|
||||
maxPayload: 1024 * 1024 * 1024
|
||||
}).on('error', () => {
|
||||
});
|
||||
log(`ws服务启动成功, ${host}:${port}`);
|
||||
} catch (e: any) {
|
||||
|
||||
@@ -1,6 +1,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 });
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -125,7 +125,7 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi
|
||||
}
|
||||
}
|
||||
}
|
||||
const fetchRes = await fetch(url, headers);
|
||||
const fetchRes = await fetch(url, { headers });
|
||||
if (!fetchRes.ok) throw new Error(`下载文件失败: ${fetchRes.statusText}`);
|
||||
|
||||
const blob = await fetchRes.blob();
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
import crypto from 'node:crypto';
|
||||
import path from 'node:path';
|
||||
import fs from 'fs/promises';
|
||||
import { log, logDebug } from './log';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
export function sleep(ms: number): Promise<void> {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
@@ -35,3 +43,137 @@ export function truncateString(obj: any, maxLength = 500) {
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 函数缓存装饰器,根据方法名、参数、自定义key生成缓存键,在一定时间内返回缓存结果
|
||||
* @param ttl 超时时间,单位毫秒
|
||||
* @param customKey 自定义缓存键前缀,可为空,防止方法名参数名一致时导致缓存键冲突
|
||||
* @returns 处理后缓存或调用原方法的结果
|
||||
*/
|
||||
export function cacheFunc(ttl: number, customKey: string = '') {
|
||||
const cache = new Map<string, { expiry: number; value: any }>();
|
||||
|
||||
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor {
|
||||
const originalMethod = descriptor.value;
|
||||
const className = target.constructor.name; // 获取类名
|
||||
const methodName = propertyKey; // 获取方法名
|
||||
descriptor.value = async function (...args: any[]) {
|
||||
const cacheKey = `${customKey}${className}.${methodName}:${JSON.stringify(args)}`;
|
||||
const cached = cache.get(cacheKey);
|
||||
if (cached && cached.expiry > Date.now()) {
|
||||
return cached.value;
|
||||
} else {
|
||||
const result = await originalMethod.apply(this, args);
|
||||
cache.set(cacheKey, { value: result, expiry: Date.now() + ttl });
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
return descriptor;
|
||||
};
|
||||
}
|
||||
export function isValidOldConfig(config: any) {
|
||||
if (typeof config !== 'object') {
|
||||
return false;
|
||||
}
|
||||
const requiredKeys = [
|
||||
'httpHost', 'httpPort', 'httpPostUrls', 'httpSecret',
|
||||
'wsHost', 'wsPort', 'wsReverseUrls', 'enableHttp',
|
||||
'enableHttpHeart', 'enableHttpPost', 'enableWs', 'enableWsReverse',
|
||||
'messagePostFormat', 'reportSelfMessage', 'enableLocalFile2Url',
|
||||
'debug', 'heartInterval', 'token', 'musicSignUrl'
|
||||
];
|
||||
for (const key of requiredKeys) {
|
||||
if (!(key in config)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!Array.isArray(config.httpPostUrls) || !Array.isArray(config.wsReverseUrls)) {
|
||||
return false;
|
||||
}
|
||||
if (config.httpPostUrls.some((url: any) => typeof url !== 'string')) {
|
||||
return false;
|
||||
}
|
||||
if (config.wsReverseUrls.some((url: any) => typeof url !== 'string')) {
|
||||
return false;
|
||||
}
|
||||
if (typeof config.httpPort !== 'number' || typeof config.wsPort !== 'number' || typeof config.heartInterval !== 'number') {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
typeof config.enableHttp !== 'boolean' ||
|
||||
typeof config.enableHttpHeart !== 'boolean' ||
|
||||
typeof config.enableHttpPost !== 'boolean' ||
|
||||
typeof config.enableWs !== 'boolean' ||
|
||||
typeof config.enableWsReverse !== 'boolean' ||
|
||||
typeof config.enableLocalFile2Url !== 'boolean' ||
|
||||
typeof config.reportSelfMessage !== 'boolean'
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
if (config.messagePostFormat !== 'array' && config.messagePostFormat !== 'string') {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
export function migrateConfig(oldConfig: any) {
|
||||
const newConfig = {
|
||||
http: {
|
||||
enable: oldConfig.enableHttp,
|
||||
host: oldConfig.httpHost,
|
||||
port: oldConfig.httpPort,
|
||||
secret: oldConfig.httpSecret,
|
||||
enableHeart: oldConfig.enableHttpHeart,
|
||||
enablePost: oldConfig.enableHttpPost,
|
||||
postUrls: oldConfig.httpPostUrls,
|
||||
},
|
||||
ws: {
|
||||
enable: oldConfig.enableWs,
|
||||
host: oldConfig.wsHost,
|
||||
port: oldConfig.wsPort,
|
||||
},
|
||||
reverseWs: {
|
||||
enable: oldConfig.enableWsReverse,
|
||||
urls: oldConfig.wsReverseUrls,
|
||||
},
|
||||
debug: oldConfig.debug,
|
||||
heartInterval: oldConfig.heartInterval,
|
||||
messagePostFormat: oldConfig.messagePostFormat,
|
||||
enableLocalFile2Url: oldConfig.enableLocalFile2Url,
|
||||
musicSignUrl: oldConfig.musicSignUrl,
|
||||
reportSelfMessage: oldConfig.reportSelfMessage,
|
||||
token: oldConfig.token,
|
||||
};
|
||||
return newConfig;
|
||||
}
|
||||
// 升级旧的配置到新的
|
||||
export async function UpdateConfig() {
|
||||
const configFiles = await fs.readdir(path.join(__dirname, 'config'));
|
||||
for (const file of configFiles) {
|
||||
if (file.match(/^onebot11_\d+.json$/)) {
|
||||
const CurrentConfig = JSON.parse(await fs.readFile(path.join(__dirname, 'config', file), 'utf8'));
|
||||
if (isValidOldConfig(CurrentConfig)) {
|
||||
log('正在迁移旧配置到新配置 File:', file);
|
||||
const NewConfig = migrateConfig(CurrentConfig);
|
||||
await fs.writeFile(path.join(__dirname, 'config', file), JSON.stringify(NewConfig, null, 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export function isEqual(obj1: any, obj2: any) {
|
||||
if (obj1 === obj2) return true;
|
||||
if (obj1 == null || obj2 == null) return false;
|
||||
if (typeof obj1 !== 'object' || typeof obj2 !== 'object') return obj1 === obj2;
|
||||
|
||||
const keys1 = Object.keys(obj1);
|
||||
const keys2 = Object.keys(obj2);
|
||||
|
||||
if (keys1.length !== keys2.length) return false;
|
||||
|
||||
for (const key of keys1) {
|
||||
if (!isEqual(obj1[key], obj2[key])) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -2,6 +2,12 @@ import log4js, { Configuration } from 'log4js';
|
||||
import { truncateString } from '@/common/utils/helper';
|
||||
import path from 'node:path';
|
||||
import { SelfInfo } from '@/core';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
export enum LogLevel {
|
||||
DEBUG = 'debug',
|
||||
@@ -21,7 +27,8 @@ function getFormattedTimestamp() {
|
||||
const hours = now.getHours().toString().padStart(2, '0');
|
||||
const minutes = now.getMinutes().toString().padStart(2, '0');
|
||||
const seconds = now.getSeconds().toString().padStart(2, '0');
|
||||
return `${year}-${month}-${day}_${hours}-${minutes}-${seconds}`;
|
||||
const milliseconds = now.getMilliseconds().toString().padStart(3, '0');
|
||||
return `${year}-${month}-${day}_${hours}-${minutes}-${seconds}.${milliseconds}`;
|
||||
}
|
||||
|
||||
const filename = `${getFormattedTimestamp()}.log`;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// QQ等级换算
|
||||
import { QQLevel } from '../../core/src/entities';
|
||||
import { QQLevel } from '@/core/entities';
|
||||
|
||||
export function calcQQLevel(level: QQLevel) {
|
||||
const { crownNum, sunNum, moonNum, starNum } = level;
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
import { resolve } from 'node:path';
|
||||
import { spawn } from 'node:child_process';
|
||||
import { pid, ppid, exit } from 'node:process';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
export async function rebootWithQuickLogin(uin: string) {
|
||||
const batScript = resolve(__dirname, './napcat.bat');
|
||||
const batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
const bashScript = resolve(__dirname, './napcat.sh');
|
||||
if (process.platform === 'win32') {
|
||||
const subProcess = spawn(`start ${batUtf8Script} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
subProcess.unref();
|
||||
// 子父进程一起送走 有点效果
|
||||
spawn('cmd /c taskkill /t /f /pid ' + pid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
spawn('cmd /c taskkill /t /f /pid ' + ppid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
} else if (process.platform === 'linux') {
|
||||
const subProcess = spawn(`${bashScript} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
//还没兼容
|
||||
subProcess.unref();
|
||||
exit(0);
|
||||
}
|
||||
//exit(0);
|
||||
}
|
||||
export async function rebootWithNormolLogin() {
|
||||
const batScript = resolve(__dirname, './napcat.bat');
|
||||
const batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
const bashScript = resolve(__dirname, './napcat.sh');
|
||||
if (process.platform === 'win32') {
|
||||
const subProcess = spawn(`start ${batUtf8Script} `, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
subProcess.unref();
|
||||
// 子父进程一起送走 有点效果
|
||||
spawn('cmd /c taskkill /t /f /pid ' + pid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
spawn('cmd /c taskkill /t /f /pid ' + ppid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
} else if (process.platform === 'linux') {
|
||||
const subProcess = spawn(`${bashScript}`, { detached: true, windowsHide: false, env: process.env, shell: true });
|
||||
subProcess.unref();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
+97
-48
@@ -1,57 +1,106 @@
|
||||
const https = require('node:https');
|
||||
export async function HttpGetCookies(url: string): Promise<Map<string, string>> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const result: Map<string, string> = new Map<string, string>();
|
||||
const req = https.get(url, (res: any) => {
|
||||
res.on('data', (data: any) => {
|
||||
});
|
||||
res.on('end', () => {
|
||||
try {
|
||||
const responseCookies = res.headers['set-cookie'];
|
||||
for (const line of responseCookies) {
|
||||
const parts = line.split(';');
|
||||
const [key, value] = parts[0].split('=');
|
||||
result.set(key, value);
|
||||
import https from 'node:https';
|
||||
import http from 'node:http';
|
||||
|
||||
export class RequestUtil {
|
||||
// 适用于获取服务器下发cookies时获取,仅GET
|
||||
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
|
||||
const client = url.startsWith('https') ? https : http;
|
||||
return new Promise((resolve, reject) => {
|
||||
client.get(url, (res) => {
|
||||
let cookies: { [key: string]: string } = {};
|
||||
const handleRedirect = (res: http.IncomingMessage) => {
|
||||
//console.log(res.headers.location);
|
||||
if (res.statusCode === 301 || res.statusCode === 302) {
|
||||
if (res.headers.location) {
|
||||
const redirectUrl = new URL(res.headers.location, url);
|
||||
RequestUtil.HttpsGetCookies(redirectUrl.href).then((redirectCookies) => {
|
||||
// 合并重定向过程中的cookies
|
||||
cookies = { ...cookies, ...redirectCookies };
|
||||
resolve(cookies);
|
||||
});
|
||||
} else {
|
||||
resolve(cookies);
|
||||
}
|
||||
} else {
|
||||
resolve(cookies);
|
||||
}
|
||||
} catch (e) {
|
||||
};
|
||||
res.on('data', () => { }); // Necessary to consume the stream
|
||||
res.on('end', () => {
|
||||
handleRedirect(res);
|
||||
});
|
||||
if (res.headers['set-cookie']) {
|
||||
//console.log(res.headers['set-cookie']);
|
||||
res.headers['set-cookie'].forEach((cookie) => {
|
||||
const parts = cookie.split(';')[0].split('=');
|
||||
const key = parts[0];
|
||||
const value = parts[1];
|
||||
if (key && value && key.length > 0 && value.length > 0) {
|
||||
cookies[key] = value;
|
||||
}
|
||||
});
|
||||
}
|
||||
resolve(result);
|
||||
|
||||
}).on('error', (err) => {
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
req.on('error', (error: any) => {
|
||||
resolve(result);
|
||||
// console.log(error)
|
||||
});
|
||||
req.end();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
export async function HttpPostCookies(url: string): Promise<Map<string, string>> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const result: Map<string, string> = new Map<string, string>();
|
||||
const req = https.get(url, (res: any) => {
|
||||
res.on('data', (data: any) => {
|
||||
});
|
||||
res.on('end', () => {
|
||||
try {
|
||||
const responseCookies = res.headers['set-cookie'];
|
||||
for (const line of responseCookies) {
|
||||
const parts = line.split(';');
|
||||
const [key, value] = parts[0].split('=');
|
||||
result.set(key, value);
|
||||
|
||||
|
||||
// 请求和回复都是JSON data传原始内容 自动编码json
|
||||
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
|
||||
const option = new URL(url);
|
||||
const protocol = url.startsWith('https://') ? https : http;
|
||||
const options = {
|
||||
hostname: option.hostname,
|
||||
port: option.port,
|
||||
path: option.href,
|
||||
method: method,
|
||||
headers: headers
|
||||
};
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = protocol.request(options, (res: any) => {
|
||||
let responseBody = '';
|
||||
res.on('data', (chunk: string | Buffer) => {
|
||||
responseBody += chunk.toString();
|
||||
});
|
||||
|
||||
res.on('end', () => {
|
||||
try {
|
||||
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
||||
if (isJsonRet) {
|
||||
const responseJson = JSON.parse(responseBody);
|
||||
resolve(responseJson as T);
|
||||
} else {
|
||||
resolve(responseBody as T);
|
||||
}
|
||||
} else {
|
||||
reject(new Error(`Unexpected status code: ${res.statusCode}`));
|
||||
}
|
||||
} catch (parseError) {
|
||||
reject(parseError);
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
resolve(result);
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
req.on('error', (error: any) => {
|
||||
resolve(result);
|
||||
// console.log(error)
|
||||
});
|
||||
req.end();
|
||||
});
|
||||
|
||||
req.on('error', (error: any) => {
|
||||
reject(error);
|
||||
});
|
||||
if (method === 'POST' || method === 'PUT' || method === 'PATCH') {
|
||||
if (isArgJson) {
|
||||
req.write(JSON.stringify(data));
|
||||
} else {
|
||||
req.write(data);
|
||||
}
|
||||
|
||||
}
|
||||
req.end();
|
||||
});
|
||||
}
|
||||
|
||||
// 请求返回都是原始内容
|
||||
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}) {
|
||||
return this.HttpGetJson<string>(url, method, data, headers, false, false);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,17 @@
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
|
||||
// 缓解Win7设备兼容性问题
|
||||
let osName: string;
|
||||
try {
|
||||
osName = os.hostname();
|
||||
} catch (e) {
|
||||
osName = 'NapCat'; // + crypto.randomUUID().substring(0, 4);
|
||||
}
|
||||
export const systemPlatform = os.platform();
|
||||
export const cpuArch = os.arch();
|
||||
export const systemVersion = os.release();
|
||||
export const hostname = os.hostname();
|
||||
export const hostname = osName;
|
||||
const homeDir = os.homedir();
|
||||
export const downloadsPath = path.join(homeDir, 'Downloads');
|
||||
export const systemName = os.type();
|
||||
@@ -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.0',
|
||||
'referrer': 'https://napcat.demo.cn/login?type=onebot11'
|
||||
}
|
||||
};
|
||||
req.write(JSON.stringify(StatesData));
|
||||
|
||||
req.end();
|
||||
}
|
||||
+14
-33
@@ -1,40 +1,21 @@
|
||||
import { get as httpsGet } from 'node:https';
|
||||
function requestMirror(url: string): Promise<string | undefined> {
|
||||
return new Promise((resolve, reject) => {
|
||||
httpsGet(url, (response) => {
|
||||
let data = '';
|
||||
response.on('data', (chunk) => {
|
||||
data += chunk;
|
||||
});
|
||||
|
||||
response.on('end', () => {
|
||||
try {
|
||||
const parsedData = JSON.parse(data);
|
||||
const version = parsedData.version;
|
||||
resolve(version);
|
||||
} catch (error) {
|
||||
// 解析失败或无法访问域名,跳过
|
||||
resolve(undefined);
|
||||
}
|
||||
});
|
||||
}).on('error', (error) => {
|
||||
// 请求失败,跳过
|
||||
resolve(undefined);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
import { logDebug } from './log';
|
||||
import { RequestUtil } from './request';
|
||||
export async function checkVersion(): Promise<string> {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const MirrorList =
|
||||
[
|
||||
'https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://cdn.jsdelivr.us/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json'
|
||||
];
|
||||
[
|
||||
'https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://cdn.jsdelivr.us/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json'
|
||||
];
|
||||
let version = undefined;
|
||||
for (const url of MirrorList) {
|
||||
const version = await requestMirror(url);
|
||||
try {
|
||||
version = (await RequestUtil.HttpGetJson<{ version: string }>(url)).version;
|
||||
} catch (e) {
|
||||
logDebug(e);
|
||||
}
|
||||
if (version) {
|
||||
resolve(version);
|
||||
}
|
||||
|
||||
+1
-1
Submodule src/core updated: b506d4cbdd...d7677362d1.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
var _0x20f3a3=_0xab98;function _0x199d(){var _0x242524=['867835orpyol','4820904NfmEhM','1317316mJNiBq','getGroupCode','450140cGAuXI','20613waHIrp','8oFAhmM','onMSFSsoError','204bbaYtT','4929841hhAgzJ','40438130xxOPUR','onMSFStatusChange','30YvLOjS'];_0x199d=function(){return _0x242524;};return _0x199d();}(function(_0x5cd7da,_0x2c9531){var _0x5a5abb=_0xab98,_0x5e2994=_0x5cd7da();while(!![]){try{var _0x25997b=-parseInt(_0x5a5abb(0x7f))/0x1+parseInt(_0x5a5abb(0x7a))/0x2*(-parseInt(_0x5a5abb(0x77))/0x3)+-parseInt(_0x5a5abb(0x81))/0x4+parseInt(_0x5a5abb(0x83))/0x5*(-parseInt(_0x5a5abb(0x7e))/0x6)+-parseInt(_0x5a5abb(0x7b))/0x7+parseInt(_0x5a5abb(0x78))/0x8*(-parseInt(_0x5a5abb(0x80))/0x9)+parseInt(_0x5a5abb(0x7c))/0xa;if(_0x25997b===_0x2c9531)break;else _0x5e2994['push'](_0x5e2994['shift']());}catch(_0x3ba8b5){_0x5e2994['push'](_0x5e2994['shift']());}}}(_0x199d,0x6f444));function _0xab98(_0x1f2e57,_0x4954bf){var _0x199dc8=_0x199d();return _0xab98=function(_0xab9882,_0x1ff8bb){_0xab9882=_0xab9882-0x77;var _0x3c4334=_0x199dc8[_0xab9882];return _0x3c4334;},_0xab98(_0x1f2e57,_0x4954bf);}export class DependsAdapter{[_0x20f3a3(0x7d)](_0x488b05,_0x25a4d5){}[_0x20f3a3(0x79)](_0x22e500){}[_0x20f3a3(0x82)](_0x35a823){}}
|
||||
var _0x2f9bbf=_0x8fe9;(function(_0x240c15,_0x13a1b9){var _0x44d52a=_0x8fe9,_0x48175b=_0x240c15();while(!![]){try{var _0x43e10a=-parseInt(_0x44d52a(0xd2))/0x1+-parseInt(_0x44d52a(0xca))/0x2*(parseInt(_0x44d52a(0xce))/0x3)+parseInt(_0x44d52a(0xcc))/0x4*(parseInt(_0x44d52a(0xcf))/0x5)+parseInt(_0x44d52a(0xd0))/0x6+parseInt(_0x44d52a(0xd4))/0x7+-parseInt(_0x44d52a(0xcd))/0x8+parseInt(_0x44d52a(0xcb))/0x9;if(_0x43e10a===_0x13a1b9)break;else _0x48175b['push'](_0x48175b['shift']());}catch(_0x212c5e){_0x48175b['push'](_0x48175b['shift']());}}}(_0x573b,0x4e014));export class DependsAdapter{[_0x2f9bbf(0xd1)](_0x571d8c,_0x2da53b){}['onMSFSsoError'](_0xeb8504){}[_0x2f9bbf(0xd3)](_0xc5cb23){}}function _0x8fe9(_0x18a1a4,_0xb679b){var _0x573b03=_0x573b();return _0x8fe9=function(_0x8fe947,_0x355420){_0x8fe947=_0x8fe947-0xca;var _0x14c474=_0x573b03[_0x8fe947];return _0x14c474;},_0x8fe9(_0x18a1a4,_0xb679b);}function _0x573b(){var _0x2f3e16=['onMSFStatusChange','178221cLXANj','getGroupCode','2825634SxDvBt','18NYwNJJ','3815829fEQwgG','3524MpzAYl','2522312mBhRkw','137181gBuRKZ','1655noChHQ','631842JoCFyL'];_0x573b=function(){return _0x2f3e16;};return _0x573b();}
|
||||
@@ -1 +1 @@
|
||||
var _0x3a826a=_0x50c0;(function(_0x58209d,_0x457985){var _0x4e7f7f=_0x50c0,_0x6c4dd4=_0x58209d();while(!![]){try{var _0x4cd98f=parseInt(_0x4e7f7f(0xb4))/0x1+parseInt(_0x4e7f7f(0xbe))/0x2*(parseInt(_0x4e7f7f(0xb6))/0x3)+parseInt(_0x4e7f7f(0xb8))/0x4+-parseInt(_0x4e7f7f(0xb7))/0x5*(-parseInt(_0x4e7f7f(0xbf))/0x6)+parseInt(_0x4e7f7f(0xb5))/0x7*(parseInt(_0x4e7f7f(0xbd))/0x8)+-parseInt(_0x4e7f7f(0xc0))/0x9+parseInt(_0x4e7f7f(0xbc))/0xa*(-parseInt(_0x4e7f7f(0xbb))/0xb);if(_0x4cd98f===_0x457985)break;else _0x6c4dd4['push'](_0x6c4dd4['shift']());}catch(_0x554e0f){_0x6c4dd4['push'](_0x6c4dd4['shift']());}}}(_0x5bbf,0x2ebf4));export class DispatcherAdapter{[_0x3a826a(0xb9)](_0x3985c1){}['dispatchCall'](_0x54a892){}[_0x3a826a(0xba)](_0x14b0dc){}}function _0x50c0(_0x165ac0,_0x11c111){var _0x5bbf85=_0x5bbf();return _0x50c0=function(_0x50c011,_0x2b2384){_0x50c011=_0x50c011-0xb4;var _0x466d72=_0x5bbf85[_0x50c011];return _0x466d72;},_0x50c0(_0x165ac0,_0x11c111);}function _0x5bbf(){var _0x52ff37=['1491652WULToR','dispatchRequest','dispatchCallWithJson','2235827oVrwUv','30KzTwbU','136WfIqPO','18IwgFaa','16722NvbGSt','3430728zqiFyT','75305fnfONu','131222lMZVkq','124578SapZzq','75GkdEQt'];_0x5bbf=function(){return _0x52ff37;};return _0x5bbf();}
|
||||
function _0x3ac0(_0xcb3d4b,_0x45f6cb){var _0x2b332b=_0x2b33();return _0x3ac0=function(_0x3ac014,_0x31f067){_0x3ac014=_0x3ac014-0x99;var _0x2afe55=_0x2b332b[_0x3ac014];return _0x2afe55;},_0x3ac0(_0xcb3d4b,_0x45f6cb);}var _0x280cdc=_0x3ac0;(function(_0x588061,_0x26dac4){var _0x15d572=_0x3ac0,_0x4587ee=_0x588061();while(!![]){try{var _0x254bd5=parseInt(_0x15d572(0x9c))/0x1*(parseInt(_0x15d572(0x9e))/0x2)+-parseInt(_0x15d572(0x9a))/0x3+parseInt(_0x15d572(0x9f))/0x4+-parseInt(_0x15d572(0xa2))/0x5*(-parseInt(_0x15d572(0x99))/0x6)+parseInt(_0x15d572(0xa3))/0x7+-parseInt(_0x15d572(0xa1))/0x8+-parseInt(_0x15d572(0xa0))/0x9;if(_0x254bd5===_0x26dac4)break;else _0x4587ee['push'](_0x4587ee['shift']());}catch(_0x56648a){_0x4587ee['push'](_0x4587ee['shift']());}}}(_0x2b33,0xf1277));function _0x2b33(){var _0xc7fab1=['1825kjRMcS','5841192YmjWIa','16560eAuaMG','3835482QHUUkd','dispatchCall','1946334JCCcaL','dispatchCallWithJson','2zkkgjJ','150988uHQIIQ','4671639vENctH','8324840uivMEo'];_0x2b33=function(){return _0xc7fab1;};return _0x2b33();}export class DispatcherAdapter{['dispatchRequest'](_0x248d19){}[_0x280cdc(0x9b)](_0x3add8e){}[_0x280cdc(0x9d)](_0x5c5ae9){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x1594(_0x58c29b,_0x44acfd){var _0x4d164b=_0x4d16();return _0x1594=function(_0x1594d5,_0x1525fc){_0x1594d5=_0x1594d5-0x198;var _0x1c1815=_0x4d164b[_0x1594d5];return _0x1c1815;},_0x1594(_0x58c29b,_0x44acfd);}var _0x175dc0=_0x1594;(function(_0x1b3e3d,_0x5116e4){var _0x17fe4f=_0x1594,_0x36c543=_0x1b3e3d();while(!![]){try{var _0x6b9ab7=parseInt(_0x17fe4f(0x19f))/0x1*(-parseInt(_0x17fe4f(0x19d))/0x2)+parseInt(_0x17fe4f(0x1a4))/0x3+-parseInt(_0x17fe4f(0x19b))/0x4+parseInt(_0x17fe4f(0x1a6))/0x5*(-parseInt(_0x17fe4f(0x19a))/0x6)+parseInt(_0x17fe4f(0x1a8))/0x7+-parseInt(_0x17fe4f(0x1a2))/0x8*(-parseInt(_0x17fe4f(0x1a3))/0x9)+parseInt(_0x17fe4f(0x1a0))/0xa*(parseInt(_0x17fe4f(0x19c))/0xb);if(_0x6b9ab7===_0x5116e4)break;else _0x36c543['push'](_0x36c543['shift']());}catch(_0x42cd0b){_0x36c543['push'](_0x36c543['shift']());}}}(_0x4d16,0x2199c));function _0x4d16(){var _0x2d8922=['1419546mxJbdk','446484HoiEEq','44yRWgfw','2XpkqmL','onUpdateGeneralFlag','185044fHAWUd','749790oMOrHe','onShowErrUITips','149672nKQepV','18zczhAP','504006SYbXob','onInstallFinished','5OkkvYy','onGetSrvCalTime','1158836BJpeXd','onGetOfflineMsg','onLog'];_0x4d16=function(){return _0x2d8922;};return _0x4d16();}export class GlobalAdapter{[_0x175dc0(0x199)](..._0x3e4b79){}[_0x175dc0(0x1a7)](..._0x987740){}[_0x175dc0(0x1a1)](..._0x292841){}['fixPicImgType'](..._0x415237){}['getAppSetting'](..._0x3934ab){}[_0x175dc0(0x1a5)](..._0x486c90){}[_0x175dc0(0x19e)](..._0x1b54fe){}[_0x175dc0(0x198)](..._0x466ac8){}}
|
||||
function _0x1df5(_0x27abc9,_0x3c7ef2){var _0xc3f8d0=_0xc3f8();return _0x1df5=function(_0x1df5c8,_0x58406f){_0x1df5c8=_0x1df5c8-0xc1;var _0x38a336=_0xc3f8d0[_0x1df5c8];return _0x38a336;},_0x1df5(_0x27abc9,_0x3c7ef2);}var _0xf13a48=_0x1df5;function _0xc3f8(){var _0x515c7b=['onUpdateGeneralFlag','onInstallFinished','35oJkVEv','18689GsIXsr','6288639DoJhBd','16DRWxYZ','onGetOfflineMsg','46532ntLefW','214PFXCeb','onShowErrUITips','155508VNpANx','getAppSetting','onLog','fixPicImgType','5277gYNKnY','12124404nWZHLJ','5790JCJBEK','956112FsBkcc'];_0xc3f8=function(){return _0x515c7b;};return _0xc3f8();}(function(_0x19fe3e,_0x12ef0c){var _0x48c992=_0x1df5,_0x2282fb=_0x19fe3e();while(!![]){try{var _0x5c171b=-parseInt(_0x48c992(0xc8))/0x1+parseInt(_0x48c992(0xd1))/0x2*(-parseInt(_0x48c992(0xc5))/0x3)+-parseInt(_0x48c992(0xd0))/0x4*(parseInt(_0x48c992(0xcb))/0x5)+parseInt(_0x48c992(0xc1))/0x6+parseInt(_0x48c992(0xcd))/0x7*(parseInt(_0x48c992(0xce))/0x8)+parseInt(_0x48c992(0xc6))/0x9+parseInt(_0x48c992(0xc7))/0xa*(-parseInt(_0x48c992(0xcc))/0xb);if(_0x5c171b===_0x12ef0c)break;else _0x2282fb['push'](_0x2282fb['shift']());}catch(_0x14c6f7){_0x2282fb['push'](_0x2282fb['shift']());}}}(_0xc3f8,0xea75f));export class GlobalAdapter{[_0xf13a48(0xc3)](..._0x4af3af){}['onGetSrvCalTime'](..._0x3c2bc9){}[_0xf13a48(0xd2)](..._0x38db4e){}[_0xf13a48(0xc4)](..._0x5d1a18){}[_0xf13a48(0xc2)](..._0x43369d){}[_0xf13a48(0xca)](..._0x3eb3c8){}[_0xf13a48(0xc9)](..._0x190a92){}[_0xf13a48(0xcf)](..._0x314054){}}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x58f3c0,_0x4da555){var _0x533787=_0x47f5,_0x20e107=_0x58f3c0();while(!![]){try{var _0x1ecc8a=parseInt(_0x533787(0xa8))/0x1+parseInt(_0x533787(0xa5))/0x2+parseInt(_0x533787(0xaa))/0x3+-parseInt(_0x533787(0xab))/0x4+-parseInt(_0x533787(0xa7))/0x5+parseInt(_0x533787(0xa6))/0x6+-parseInt(_0x533787(0xa9))/0x7;if(_0x1ecc8a===_0x4da555)break;else _0x20e107['push'](_0x20e107['shift']());}catch(_0x45e3c2){_0x20e107['push'](_0x20e107['shift']());}}}(_0x4522,0xd51f1));export*from'./NodeIDependsAdapter';function _0x4522(){var _0x35130d=['1885660uvyoQv','2176134RkNlVH','10342008dNTcpR','1718020vzZflV','591401KlIhxJ','12755001GAlbSX','320913ocIGre'];_0x4522=function(){return _0x35130d;};return _0x4522();}export*from'./NodeIDispatcherAdapter';function _0x47f5(_0x5209cd,_0x119af6){var _0x4522f9=_0x4522();return _0x47f5=function(_0x47f51e,_0x4a3f72){_0x47f51e=_0x47f51e-0xa5;var _0x5460ce=_0x4522f9[_0x47f51e];return _0x5460ce;},_0x47f5(_0x5209cd,_0x119af6);}export*from'./NodeIGlobalAdapter';
|
||||
(function(_0x1e35d8,_0x2d4ab1){var _0x52ccd1=_0x5571,_0x5ac369=_0x1e35d8();while(!![]){try{var _0x265d1f=-parseInt(_0x52ccd1(0x177))/0x1*(-parseInt(_0x52ccd1(0x16f))/0x2)+parseInt(_0x52ccd1(0x171))/0x3*(-parseInt(_0x52ccd1(0x178))/0x4)+parseInt(_0x52ccd1(0x179))/0x5*(parseInt(_0x52ccd1(0x17a))/0x6)+-parseInt(_0x52ccd1(0x173))/0x7*(-parseInt(_0x52ccd1(0x172))/0x8)+-parseInt(_0x52ccd1(0x170))/0x9+parseInt(_0x52ccd1(0x175))/0xa*(-parseInt(_0x52ccd1(0x176))/0xb)+parseInt(_0x52ccd1(0x174))/0xc;if(_0x265d1f===_0x2d4ab1)break;else _0x5ac369['push'](_0x5ac369['shift']());}catch(_0x344123){_0x5ac369['push'](_0x5ac369['shift']());}}}(_0x31a0,0x51157));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x5571(_0x2be41d,_0x9c2cf9){var _0x31a000=_0x31a0();return _0x5571=function(_0x5571ba,_0x70885c){_0x5571ba=_0x5571ba-0x16f;var _0x577c36=_0x31a000[_0x5571ba];return _0x577c36;},_0x5571(_0x2be41d,_0x9c2cf9);}function _0x31a0(){var _0x461736=['5345516eltSrV','25698oFpTAR','998288reazkd','20gnlqAE','69558qrUQAA','30aOeudC','3161007DhEdsG','6YQeRYL','1761088XheHBV','21jaMejO','6914304rjdkKR','10MSgoCn'];_0x31a0=function(){return _0x461736;};return _0x31a0();}export*from'./NodeIGlobalAdapter';
|
||||
Vendored
+6
-2
@@ -1,4 +1,4 @@
|
||||
import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType, RawMessage } from '@/core/entities';
|
||||
import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core';
|
||||
import * as fileType from 'file-type';
|
||||
import { ISizeCalculationResult } from 'image-size/dist/types/interface';
|
||||
@@ -15,7 +15,11 @@ export declare class NTQQFileApi {
|
||||
}>;
|
||||
static downloadMedia(msgId: string, chatType: ChatType, peerUid: string, elementId: string, thumbPath: string, sourcePath: string, timeout?: number, force?: boolean): Promise<string>;
|
||||
static getImageSize(filePath: string): Promise<ISizeCalculationResult | undefined>;
|
||||
static getImageUrl(msg: RawMessage): Promise<string>;
|
||||
static getImageUrl(element: {
|
||||
originImageUrl: any;
|
||||
md5HexStr?: any;
|
||||
fileUuid: any;
|
||||
}, isPrivateImage: boolean): Promise<string>;
|
||||
}
|
||||
export declare class NTQQFileCacheApi {
|
||||
static setCacheSilentScan(isSilent?: boolean): Promise<string>;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x8c558e=_0x48ab;function _0x48ab(_0x1a09a5,_0x430727){const _0x533390=_0x5333();return _0x48ab=function(_0x48abf0,_0x54426f){_0x48abf0=_0x48abf0-0x168;let _0x7af6da=_0x533390[_0x48abf0];return _0x7af6da;},_0x48ab(_0x1a09a5,_0x430727);}function _0x5333(){const _0x3f3177=['addListener','开始调用moeHook获取rkey','/gchatpic_new/0/0-0-','rkey过期或着未获取,\x20url:','basename','getMsgService','TTRFz','FsikE','获取图片rkey...','jhqJZ','wKDFg','SQVQq','util','getFileType','md5HexStr','msgId','copyFile','BLETk','getRKey','BwvVq','statusCode','473LNGywf','iAQZb','CPAbr','689460yKhrtL','now','getImageSize','sourcePath','filePath','fukoG','clearCache','picElement','图片rkey有效','euSeL','getFileSize','AsHVI',',\x20rkey:','addTask','start\x20downloadMedia','JIsAz','toUpperCase','检查rkey是否有效','getFileCacheInfo','733624QLjdVv','VQwqC','2TeoQSq','onRichMediaDownloadComplete','chatType','dCKri','scanCache','isAvailable','catch','PIC','downloadPath','CyVyh','getRichMediaFilePathForGuild','jyxFd','downloadMedia\x20complete','QeQXO','gDiGH','YAkhB','delete','Fykec','3852stlBry','getChatCacheInfo','35NkiNdj','then','clearCacheDataByKeys','lzBbo','join','onLoginSuccess','DFtKj','ISGtk','getStorageCleanService','PzewY','error','tTCMz','图片rkey有误','fileUuid','jFnyY','defaultFileDownloadPath','4115976HtUIxB','JPXcz','tkQXN','receive\x20downloadMedia\x20task','unlink','originImageUrl','hookApi\x20is\x20not\x20available','getImageUrl','xTUHF','set','MHylG','jkIyZ','Uuleo','existsSync','&rkey=','下载超时','Swjez','elements','图片rkey获取失败','3470eDbFSm','uploadFile','XNrlE','EOLHs','3717882mQNlxE','2476ygerOr','peerUid','session','downloadRichMedia','getCacheSessionPathList','DPtOo','43522VPexNN','get','fmlLw','addCacheScannedPaths','setCacheSilentScan','fileTypeFromFile','7510RDIOqE'];_0x5333=function(){return _0x3f3177;};return _0x5333();}(function(_0x389eee,_0x20a1e4){const _0x952542=_0x48ab,_0x5bb17f=_0x389eee();while(!![]){try{const _0x193b9d=-parseInt(_0x952542(0x195))/0x1*(-parseInt(_0x952542(0x1d7))/0x2)+-parseInt(_0x952542(0x1b9))/0x3+-parseInt(_0x952542(0x1d1))/0x4*(-parseInt(_0x952542(0x1dd))/0x5)+-parseInt(_0x952542(0x1d0))/0x6+-parseInt(_0x952542(0x1a9))/0x7*(parseInt(_0x952542(0x193))/0x8)+parseInt(_0x952542(0x1a7))/0x9*(-parseInt(_0x952542(0x1cc))/0xa)+-parseInt(_0x952542(0x17d))/0xb*(-parseInt(_0x952542(0x180))/0xc);if(_0x193b9d===_0x20a1e4)break;else _0x5bb17f['push'](_0x5bb17f['shift']());}catch(_0x3bd9a5){_0x5bb17f['push'](_0x5bb17f['shift']());}}}(_0x5333,0xce563));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x39c108 from'path';import _0x2cd04b from'fs';import _0x4e0d18 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x10830d from'file-type';import{MsgListener}from'@/core/listeners';import _0x5a1fbb from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0x1f6dcf from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x8c558e(0x196)]=_0x5d8266=>{const _0x33e24d=_0x8c558e,_0x9171b={'iiRsb':function(_0x4a9ea7,_0x4a9ff3){return _0x4a9ea7(_0x4a9ff3);}};for(const [_0x2c7f14,_0x5214ae]of downloadMediaTasks){_0x9171b['iiRsb'](_0x5214ae,_0x5d8266),downloadMediaTasks[_0x33e24d(0x1a5)](_0x2c7f14);}},setTimeout(()=>{const _0x4c3c2c=_0x8c558e;napCatCore[_0x4c3c2c(0x1ae)](()=>{const _0x5dd5e7=_0x4c3c2c;napCatCore[_0x5dd5e7(0x168)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x8c558e(0x175)](_0x4f4409){const _0x5b0869=_0x8c558e;return _0x10830d[_0x5b0869(0x1dc)](_0x4f4409);}static async['copyFile'](_0x25bf8b,_0x19dbe6){const _0x7f3c55=_0x8c558e;await napCatCore[_0x7f3c55(0x174)][_0x7f3c55(0x178)](_0x25bf8b,_0x19dbe6);}static async['getFileSize'](_0x1d9a58){const _0x19fd0e=_0x8c558e;return await napCatCore['util'][_0x19fd0e(0x18a)](_0x1d9a58);}static async[_0x8c558e(0x1cd)](_0x42cdef,_0x514ab1=ElementType[_0x8c558e(0x19c)],_0x252770=0x0){const _0x5cebac=_0x8c558e,_0x3a1ed6={'tkQXN':function(_0xbda7e1,_0x3605a9){return _0xbda7e1(_0x3605a9);},'BwvVq':function(_0x58b616,_0x19be07){return _0x58b616===_0x19be07;}},_0x1c3724=await _0x3a1ed6[_0x5cebac(0x1bb)](calculateFileMD5,_0x42cdef);let _0x1ff65e=(await NTQQFileApi['getFileType'](_0x42cdef))?.['ext']||'';_0x1ff65e&&(_0x1ff65e='.'+_0x1ff65e);let _0x2f985b=''+_0x39c108[_0x5cebac(0x16c)](_0x42cdef);_0x3a1ed6[_0x5cebac(0x17b)](_0x2f985b['indexOf']('.'),-0x1)&&(_0x2f985b+=_0x1ff65e);const _0x2b661a=napCatCore[_0x5cebac(0x1d3)]['getMsgService']()[_0x5cebaLine truncated
|
||||
const _0x56e080=_0x1d7b;(function(_0x408399,_0x26f80d){const _0xc4a18a=_0x1d7b,_0x520ad8=_0x408399();while(!![]){try{const _0xd14ccb=parseInt(_0xc4a18a(0x120))/0x1+-parseInt(_0xc4a18a(0x110))/0x2*(parseInt(_0xc4a18a(0x102))/0x3)+parseInt(_0xc4a18a(0xf2))/0x4+parseInt(_0xc4a18a(0x135))/0x5*(-parseInt(_0xc4a18a(0x106))/0x6)+-parseInt(_0xc4a18a(0x137))/0x7*(parseInt(_0xc4a18a(0xee))/0x8)+-parseInt(_0xc4a18a(0x136))/0x9*(parseInt(_0xc4a18a(0x113))/0xa)+-parseInt(_0xc4a18a(0x10a))/0xb*(-parseInt(_0xc4a18a(0xfd))/0xc);if(_0xd14ccb===_0x26f80d)break;else _0x520ad8['push'](_0x520ad8['shift']());}catch(_0x3efebf){_0x520ad8['push'](_0x520ad8['shift']());}}}(_0x1712,0x2abee));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x11ce3f from'path';import _0x4e37dd from'fs';function _0x1d7b(_0xe4c278,_0x402c37){const _0x171203=_0x1712();return _0x1d7b=function(_0x1d7b08,_0x2f210a){_0x1d7b08=_0x1d7b08-0xe9;let _0x27b45c=_0x171203[_0x1d7b08];return _0x27b45c;},_0x1d7b(_0xe4c278,_0x402c37);}import _0x202f75 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x2f6c3e from'file-type';import{MsgListener}from'@/core/listeners';import _0x2d784c from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';function _0x1712(){const _0x51c942=['hotUpdate','GWGxu','downloadRichMedia','set','util','onLoginSuccess','fiNtG','getRichMediaFilePathForGuild','clearCacheDataByKeys','getFileCacheInfo','pNPcB','LZdwE','图片url获取失败','18904hCtUML','XDZBe','md5HexStr','downloadMedia','1393076VUzukb','copyFile','szaMH','addCacheScannedPaths','startsWith','group_rkey','getStorageCleanService','getHotUpdateCachePath','PIC','tmp','getRkey','3816bsUIBO','onRichMediaDownloadComplete','/gchatpic_new/0/0-0-','slzwG','jbKBh','21VyRrWU','getImageUrl','session','getChatCacheInfo','10350QfgAod','uploadFile','fileUuid','defaultFileDownloadPath','11143hsBtqy','ext','getFileType','LjprO','uIqpO','nazyL','71944KvFEvf','getImageSize','BhrsT','50dfqfgB','downloadPath','fileTypeFromFile','aggaR','oaBbW','includes','filePath','basename','下载超时','nJMgW','cFZrw','&rkey=','delete','315946FiotTK','Wneag','originImageUrl','scanCache','join','ZBqYJ','downloadMedia\x20complete','private_rkey','WBZtT','receive\x20downloadMedia\x20task','unlink','clearChatCacheInfo','yoIcB','/download','indexOf','getMsgService','QAmFE','toUpperCase','ZvzXb','getFileSize','XhDtV','865HIXqZK','31761qrWylX','721bEwIXD','clearCache','msgId'];_0x1712=function(){return _0x51c942;};return _0x1712();}import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x56e080(0xfe)]=_0x5b3aaf=>{const _0xdbbc96=_0x56e080;for(const [_0x3a71f0,_0x55f9a5]of downloadMediaTasks){_0x55f9a5(_0x5b3aaf),downloadMediaTasks[_0xdbbc96(0x11f)](_0x3a71f0);}},setTimeout(()=>{const _0x48ddd6=_0x56e080;napCatCore[_0x48ddd6(0x13f)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x56e080(0x10c)](_0x3a0b7d){const _0x1e5b4b=_0x56e080;return _0x2f6c3e[_0x1e5b4b(0x115)](_0x3a0b7d);}static async[_0x56e080(0xf3)](_0x24b426,_0x428aa0){const _0x278810=_0x56e080;await napCatCore['util'][_0x278810(0xf3)](_0x24b426,_0x428aa0);}static async[_0x56e080(0x133)](_0xdf93fc){const _0x22e783=_0x56e080;return await napCatCore[_0x22e783(0x13e)][_0x22e783(0x133)](_0xdf93fc);}static async[_0x56e080(0x107)](_0x3fdca9,_0x5ca4e6=ElementType[_0x56e080(0xfa)],_0x2a8c76=0x0){const _0x2827db=_0x56e080,_0x5d1eb5={'XhDtV':function(_0x2b82f8,_0x447ee1){return _0x2b82f8(_0x447ee1);},'LjprO':function(_0x4511b2,_0x4016bd){return _0x4511b2+_0x4016bd;},'XDZBe':function(_0x5be371,_0x2fc2d6){return _0x5be371===_0x2fc2d6;}},_0x5b5a82=await _0x5d1eb5[_0x2827db(0x134)](calculateFileMD5,_0x3fdca9);let _0x2d21f1=(await NTQQFileApi[_0x2827db(0x10c)](_0x3fdca9))?.[_0x2827db(0x10b)]||'';_0x2d21f1&&(_0x2d21f1=_0x5d1eb5[_0x2827db(0x10d)]('.',_0x2d21f1));let _0x38ce54=''+_0x11ce3f[_0x2827db(0x11a)](_0x3fdca9);_0x5d1eb5[_0x2827db(0xef)](_0x38ce54[_0x2827db(0x12e)]('.'),-0x1)&&(_0x38ce54+=_0x2d21f1);const _0x12cddc=napCatCore['session'][_0x2827db(0x12f)]()[_0x2827db(0x141)]({'md5HexStr':_0x5b5a82,'fileName':_0x38ce54,'elementType':_0x5ca4e6,'elementSubType':_0x2a8c76,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x2827db(0xf3)](_0x3fdca9,_0x12cddc);const _0x960dc3=await NTQQFileApi[_0x2827db(0x133)](_0x3fdca9);return{'md5':_0x5b5a82,'fileName':_0x38ce54,'path':_0x12cddc,'fileSize':_0x960dc3,'ext':_0x2d21f1};}static async[_0x56e080(0xf1)](_0x24291f,_0xb7f8c9,_0x699113,_0x14a0f5,_0x40aecb,_0x195bc4,_0x10b1f4=0x3e8*0x3c*0x2,_0x2ced63=![]){const _0x110fa2=_0x56e080,_0x4c84a0={'cFZrw':function(_0x54d28d,_0x3b6070,_0x2c93db,_0x1df284){return _0x5Line truncated
|
||||
@@ -1 +1 @@
|
||||
const _0x5d90db=_0x6e1f;(function(_0x24d76c,_0x417026){const _0x3934dc=_0x6e1f,_0x409f34=_0x24d76c();while(!![]){try{const _0x4cfa41=parseInt(_0x3934dc(0xed))/0x1*(-parseInt(_0x3934dc(0xef))/0x2)+parseInt(_0x3934dc(0x104))/0x3+parseInt(_0x3934dc(0x10a))/0x4*(parseInt(_0x3934dc(0x101))/0x5)+-parseInt(_0x3934dc(0xf8))/0x6+-parseInt(_0x3934dc(0xf2))/0x7*(-parseInt(_0x3934dc(0x10e))/0x8)+parseInt(_0x3934dc(0xf6))/0x9+-parseInt(_0x3934dc(0xf0))/0xa;if(_0x4cfa41===_0x417026)break;else _0x409f34['push'](_0x409f34['shift']());}catch(_0x4a3355){_0x409f34['push'](_0x409f34['shift']());}}}(_0x14c8,0x57274));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x14c8(){const _0x10b5d5=['184UFZlkf','friendUid','jkeAr','getFriends','开始获取好友列表','获取好友列表超时','613921sxNnsp','push','2ebyoMa','4830650gKakYu','sSrfY','81284CyEMsa','approvalFriendRequest','getBuddyService','nbjed','4085010bxbJes','getBuddyList','2314320zqoTdO','set','session','onBuddyListChange','mYCGi','LrPsD','bdKyy','rHmbs','bMJFx','91380bYbqII','reqTime','onLoginSuccess','2095116ctrGGY','QjJIv','handleFriendRequest','uid','获取好友列表完成','Kyync','92OSXxDD','buddyList','uin','addListener'];_0x14c8=function(){return _0x10b5d5;};return _0x14c8();}function _0x6e1f(_0xcd1082,_0x5d4c43){const _0x14c83d=_0x14c8();return _0x6e1f=function(_0x6e1ff1,_0x4f413c){_0x6e1ff1=_0x6e1ff1-0xea;let _0x4f990d=_0x14c83d[_0x6e1ff1];return _0x4f990d;},_0x6e1f(_0xcd1082,_0x5d4c43);}buddyListener[_0x5d90db(0xfb)]=_0x5744b0=>{const _0x82bd68=_0x5d90db,_0x227be2={'sSrfY':function(_0x431ad6,_0x5c27df){return _0x431ad6(_0x5c27df);}};for(const [_0x1d1533,_0xec0bdc]of buddyChangeTasks){_0x227be2[_0x82bd68(0xf1)](_0xec0bdc,_0x5744b0),buddyChangeTasks['delete'](_0x1d1533);}},setTimeout(()=>{const _0x2ed984=_0x5d90db;napCatCore[_0x2ed984(0x103)](()=>{const _0x44d31e=_0x2ed984;napCatCore[_0x44d31e(0x10d)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x5d90db(0xea)](_0x32de31=![]){const _0x48b08d=_0x5d90db,_0x288b91={'LrPsD':function(_0x442fab,_0x49808e){return _0x442fab(_0x49808e);},'bdKyy':_0x48b08d(0xec),'mYCGi':_0x48b08d(0x108),'rHmbs':_0x48b08d(0xeb),'QjJIv':function(_0x47ec31,_0x89c564,_0x200124){return _0x47ec31(_0x89c564,_0x200124);},'NvRGy':function(_0xc59d70){return _0xc59d70();}};return new Promise((_0x32f1e2,_0x331e5f)=>{const _0x1ad213=_0x48b08d,_0x4f7658={'nbjed':_0x288b91[_0x1ad213(0xfc)],'bMJFx':function(_0x13d235,_0x51359a){const _0x1e3247=_0x1ad213;return _0x288b91[_0x1e3247(0xfd)](_0x13d235,_0x51359a);},'Kyync':function(_0x527c70,_0x555e27,_0x4d031a){return _0x527c70(_0x555e27,_0x4d031a);},'jkeAr':_0x288b91[_0x1ad213(0xff)]};let _0x1317c0=![];_0x288b91[_0x1ad213(0x105)](setTimeout,()=>{const _0x2a78fe=_0x1ad213;!_0x1317c0&&(_0x288b91[_0x2a78fe(0xfd)](logDebug,_0x288b91[_0x2a78fe(0xfe)]),_0x331e5f('获取好友列表超时'));},0x1388);const _0x254032=[],_0x321bb8=_0x304f26=>{const _0x7f8575=_0x1ad213;for(const _0x440f1c of _0x304f26){for(const _0x40aae7 of _0x440f1c[_0x7f8575(0x10b)]){_0x254032[_0x7f8575(0xee)](_0x40aae7),uid2UinMap[_0x40aae7[_0x7f8575(0x107)]]=_0x40aae7[_0x7f8575(0x10c)];}}_0x1317c0=!![],logDebug(_0x4f7658[_0x7f8575(0xf5)],_0x254032),_0x4f7658[_0x7f8575(0x100)](_0x32f1e2,_0x254032);};buddyChangeTasks[_0x1ad213(0xf9)](_0x288b91['NvRGy'](randomUUID),_0x321bb8),napCatCore[_0x1ad213(0xfa)][_0x1ad213(0xf4)]()[_0x1ad213(0xf7)](_0x32de31)['then'](_0x1e963c=>{const _0x1bea4b=_0x1ad213;_0x4f7658[_0x1bea4b(0x109)](logDebug,_0x4f7658[_0x1bea4b(0x110)],_0x1e963c);});});}static async[_0x5d90db(0x106)](_0x15a498,_0x30ed3c){const _0x4a1120=_0x5d90db;napCatCore[_0x4a1120(0xfa)][_0x4a1120(0xf4)]()?.[_0x4a1120(0xf3)]({'friendUid':_0x15a498[_0x4a1120(0x10f)],'reqTime':_0x15a498[_0x4a1120(0x102)],'accept':_0x30ed3c});}}
|
||||
const _0x2ed956=_0x421d;function _0x2e4e(){const _0x123d55=['获取好友列表完成','session','获取好友列表超时','KsVTJ','uid','mxcLN','onBuddyListChange','5449785eMbbTo','friendUid','199630ZNKrZP','sWUMo','KNlxN','77886OYKNGA','945MLgudi','hndDF','9242160cqEUGz','delete','开始获取好友列表','nQOiZ','addListener','buddyList','handleFriendRequest','reqTime','qlSML','push','iNegf','onLoginSuccess','getBuddyList','getBuddyService','RzsbV','1584wuMIgG','175MDKQvQ','80700fQLKSR','set','1626505osZtZM','getFriends','1829492wWzSkt'];_0x2e4e=function(){return _0x123d55;};return _0x2e4e();}(function(_0x3cdc52,_0x36e151){const _0x2fa9d0=_0x421d,_0x191342=_0x3cdc52();while(!![]){try{const _0x590ead=parseInt(_0x2fa9d0(0x159))/0x1+parseInt(_0x2fa9d0(0x15b))/0x2+parseInt(_0x2fa9d0(0x13e))/0x3+-parseInt(_0x2fa9d0(0x157))/0x4*(-parseInt(_0x2fa9d0(0x156))/0x5)+parseInt(_0x2fa9d0(0x143))/0x6*(-parseInt(_0x2fa9d0(0x144))/0x7)+parseInt(_0x2fa9d0(0x146))/0x8+-parseInt(_0x2fa9d0(0x155))/0x9*(parseInt(_0x2fa9d0(0x140))/0xa);if(_0x590ead===_0x36e151)break;else _0x191342['push'](_0x191342['shift']());}catch(_0x5df9b3){_0x191342['push'](_0x191342['shift']());}}}(_0x2e4e,0xe8be6));import{BuddyListener,napCatCore}from'@/core';function _0x421d(_0x42f14a,_0x4b9075){const _0x2e4e6f=_0x2e4e();return _0x421d=function(_0x421d8d,_0x2b8c6e){_0x421d8d=_0x421d8d-0x137;let _0x424382=_0x2e4e6f[_0x421d8d];return _0x424382;},_0x421d(_0x42f14a,_0x4b9075);}import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x2ed956(0x13d)]=_0xb1448a=>{const _0x14c0c1=_0x2ed956,_0x5b9209={'iNegf':function(_0x5bf7e2,_0x443837){return _0x5bf7e2(_0x443837);}};for(const [_0x482ad4,_0x415ef8]of buddyChangeTasks){_0x5b9209[_0x14c0c1(0x150)](_0x415ef8,_0xb1448a),buddyChangeTasks[_0x14c0c1(0x147)](_0x482ad4);}},setTimeout(()=>{const _0xd10f6d=_0x2ed956;napCatCore[_0xd10f6d(0x151)](()=>{const _0x2e9ec9=_0xd10f6d;napCatCore[_0x2e9ec9(0x14a)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x2ed956(0x15a)](_0xf51c05=![]){const _0xbb2276=_0x2ed956,_0x35b699={'KNlxN':function(_0x193b35,_0x3b2c8b){return _0x193b35(_0x3b2c8b);},'RzsbV':_0xbb2276(0x137),'KsVTJ':function(_0x436b57,_0x252bc3){return _0x436b57(_0x252bc3);},'qlSML':_0xbb2276(0x148),'NxWCG':function(_0x53ad1b,_0x28cc05,_0x593b3d){return _0x53ad1b(_0x28cc05,_0x593b3d);},'hndDF':function(_0x2a74ce){return _0x2a74ce();}};return new Promise((_0x576cc4,_0x1f9a43)=>{const _0x3548fd=_0xbb2276,_0x525b6c={'nQOiZ':function(_0x2d5abe,_0x627498){const _0x523923=_0x421d;return _0x35b699[_0x523923(0x142)](_0x2d5abe,_0x627498);},'gVQlA':_0x3548fd(0x139),'PwBlA':function(_0x4d7c6a,_0x394884,_0x313fb1){return _0x4d7c6a(_0x394884,_0x313fb1);},'sWUMo':_0x35b699[_0x3548fd(0x154)],'mxcLN':function(_0x3a1111,_0x58f325){const _0x3d7c07=_0x3548fd;return _0x35b699[_0x3d7c07(0x13a)](_0x3a1111,_0x58f325);},'zdFHf':_0x35b699[_0x3548fd(0x14e)]};let _0x322f36=![];_0x35b699['NxWCG'](setTimeout,()=>{const _0x9f18af=_0x3548fd;!_0x322f36&&(_0x525b6c[_0x9f18af(0x149)](logDebug,_0x525b6c['gVQlA']),_0x525b6c[_0x9f18af(0x149)](_0x1f9a43,_0x525b6c['gVQlA']));},0x1388);const _0x14ed9e=[],_0x5d100a=_0x5edab4=>{const _0x188442=_0x3548fd;for(const _0xd2e480 of _0x5edab4){for(const _0x18d2f1 of _0xd2e480[_0x188442(0x14b)]){_0x14ed9e[_0x188442(0x14f)](_0x18d2f1),uid2UinMap[_0x18d2f1[_0x188442(0x13b)]]=_0x18d2f1['uin'];}}_0x322f36=!![],_0x525b6c['PwBlA'](logDebug,_0x525b6c[_0x188442(0x141)],_0x14ed9e),_0x525b6c[_0x188442(0x13c)](_0x576cc4,_0x14ed9e);};buddyChangeTasks[_0x3548fd(0x158)](_0x35b699[_0x3548fd(0x145)](randomUUID),_0x5d100a),napCatCore[_0x3548fd(0x138)][_0x3548fd(0x153)]()[_0x3548fd(0x152)](_0xf51c05)['then'](_0x4ad51f=>{_0x525b6c['PwBlA'](logDebug,_0x525b6c['zdFHf'],_0x4ad51f);});});}static async[_0x2ed956(0x14c)](_0x14396f,_0x336373){const _0x17477a=_0x2ed956;napCatCore[_0x17477a(0x138)][_0x17477a(0x153)]()?.['approvalFriendRequest']({'friendUid':_0x14396f[_0x17477a(0x13f)],'reqTime':_0x14396f[_0x17477a(0x14d)],'accept':_0x336373});}}
|
||||
Vendored
+14
-1
@@ -1,9 +1,18 @@
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
|
||||
export declare class NTQQGroupApi {
|
||||
static getGroups(forced?: boolean): Promise<Group[]>;
|
||||
static getSingleScreenNotifies(num: number): Promise<GroupNotify[]>;
|
||||
static getGroupMembers(groupQQ: string, num?: number): Promise<Map<string, GroupMember>>;
|
||||
static getGroupNotifies(): Promise<void>;
|
||||
static getGroupIgnoreNotifies(): Promise<void>;
|
||||
static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise<import("@/core").GeneralCallResult & {
|
||||
errCode: number;
|
||||
picInfo?: {
|
||||
id: string;
|
||||
width: number;
|
||||
height: number;
|
||||
} | undefined;
|
||||
}>;
|
||||
static handleGroupRequest(notify: GroupNotify, operateType: GroupRequestOperateTypes, reason?: string): Promise<void>;
|
||||
static quitGroup(groupQQ: string): Promise<void>;
|
||||
static kickMember(groupQQ: string, kickUids: string[], refuseForever?: boolean, kickReason?: string): Promise<void>;
|
||||
@@ -16,5 +25,9 @@ export declare class NTQQGroupApi {
|
||||
static setMemberRole(groupQQ: string, memberUid: string, role: GroupMemberRole): Promise<void>;
|
||||
static setGroupName(groupQQ: string, groupName: string): Promise<void>;
|
||||
static setGroupTitle(groupQQ: string, uid: string, title: string): Promise<void>;
|
||||
static publishGroupBulletin(groupQQ: string, title: string, content: string): void;
|
||||
static publishGroupBulletin(groupQQ: string, content: string, picInfo?: {
|
||||
id: string;
|
||||
width: number;
|
||||
height: number;
|
||||
} | undefined, pinned?: number, confirmRequired?: number): Promise<import("@/core").GeneralCallResult>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x159c5f=_0x5dd8;(function(_0x3d8d3d,_0x40c5c1){const _0x2d45cd=_0x5dd8,_0x471bff=_0x3d8d3d();while(!![]){try{const _0x3a896e=parseInt(_0x2d45cd(0x1cb))/0x1*(-parseInt(_0x2d45cd(0x1c4))/0x2)+parseInt(_0x2d45cd(0x1af))/0x3+parseInt(_0x2d45cd(0x1a0))/0x4+parseInt(_0x2d45cd(0x1cc))/0x5+parseInt(_0x2d45cd(0x19c))/0x6*(-parseInt(_0x2d45cd(0x1b9))/0x7)+-parseInt(_0x2d45cd(0x1b0))/0x8+parseInt(_0x2d45cd(0x1c6))/0x9*(parseInt(_0x2d45cd(0x1b8))/0xa);if(_0x3a896e===_0x40c5c1)break;else _0x471bff['push'](_0x471bff['shift']());}catch(_0xdbb0f7){_0x471bff['push'](_0x471bff['shift']());}}}(_0x5327,0xb0e04));function _0x5327(){const _0x95beac=['getGroups','quitGroup','getGroupService','modifyMemberCardName','MJNsk','获取群(','aSijW','setGroupTitle','modifyGroupName','handleGroupRequest','getGroupMembers','onGroupListUpdate','3080334fUQZeL','4641816qfODUu','createMemberListScene','GuCmT','finish','banGroup','kickMember','getNextMemberList','cfuyC','10GCLyIV','6230161kUxZIT','infos','set','getGroupIgnoreNotifies','errMsg','setGroupShutUp','banMember','finish:\x20','BhYig','errCode','operateSysNotify','1497214reRtzw','bBKzj','4129857xAJGgp','setGroupName','setMemberRole','group','uid','1lmUuJF','1100935kplXyT','forEach','woXaq','addListener','then','type','getGroupNotifies','result','获取群列表超时','6uVobPE','获取群成员列表出错,','session','modifyMemberRole','4950012mXxRPZ',')成员列表结果:','seq'];_0x5327=function(){return _0x95beac;};return _0x5327();}import{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[_0x159c5f(0x1ae)]=(_0x37c1d1,_0x1ab1f4)=>{const _0x3b9750={'DhpAu':function(_0x1843a8,_0x195e75,_0x6c996e){return _0x1843a8(_0x195e75,_0x6c996e);}};for(const [_0x3abcab,_0x556dbd]of groupMemberTasks){_0x3b9750['DhpAu'](_0x556dbd,_0x37c1d1,_0x1ab1f4),groupMemberTasks['delete'](_0x3abcab);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x245746=_0x5dd8;napCatCore[_0x245746(0x196)](groupListener);});},0x64);function _0x5dd8(_0x4f0306,_0x5f2b2d){const _0x53276c=_0x5327();return _0x5dd8=function(_0x5dd834,_0x29179b){_0x5dd834=_0x5dd834-0x194;let _0x21ff93=_0x53276c[_0x5dd834];return _0x21ff93;},_0x5dd8(_0x4f0306,_0x5f2b2d);}export class NTQQGroupApi{static async[_0x159c5f(0x1a3)](_0x3acf11=![]){const _0x7d3036={'MJNsk':function(_0xd47759,_0x214c09){return _0xd47759(_0x214c09);},'aSijW':function(_0x24d197,_0x32e201,_0x3dec70){return _0x24d197(_0x32e201,_0x3dec70);}};let _0x27b0a8=![];return new Promise((_0x5bfc43,_0x3d77c2)=>{const _0x217dba=_0x5dd8,_0x22231a={'GuCmT':function(_0x37e080,_0x38bb49){const _0x4085d8=_0x5dd8;return _0x7d3036[_0x4085d8(0x1a7)](_0x37e080,_0x38bb49);},'bBKzj':_0x217dba(0x19b)};_0x7d3036[_0x217dba(0x1a9)](setTimeout,()=>{const _0x8f29af=_0x217dba;!_0x27b0a8&&(_0x22231a[_0x8f29af(0x1b2)](logDebug,_0x8f29af(0x19b)),_0x3d77c2(_0x22231a[_0x8f29af(0x1c5)]));},0x1388);const _0x5ec3a6=(_0x54ed69,_0x209c81)=>{_0x27b0a8=!![],logDebug('获取群列表完成',_0x209c81),_0x22231a['GuCmT'](_0x5bfc43,_0x209c81);};groupMemberTasks[_0x217dba(0x1bb)](randomUUID(),_0x5ec3a6),napCatCore['session']['getGroupService']()['getGroupList'](_0x3acf11)[_0x217dba(0x197)]();});}static async[_0x159c5f(0x1ad)](_0x5db916,_0x54c8b1=0xbb8){const _0x57a1ab=_0x159c5f,_0x266bbb={'woXaq':function(_0x2adb51,_0x350ff7){return _0x2adb51!==_0x350ff7;},'zAaQL':_0x57a1ab(0x19d),'cfuyC':function(_0x360e16,_0x7eb49a,_0x253ad8){return _0x360e16(_0x7eb49a,_0x253ad8);}},_0xe58d14=napCatCore[_0x57a1ab(0x19e)]['getGroupService'](),_0x4e7337=_0xe58d14[_0x57a1ab(0x1b1)](_0x5db916,'groupMemberList_MainWindow'),_0x43a966=await _0xe58d14[_0x57a1ab(0x1b6)](_0x4e7337,undefined,_0x54c8b1);if(_0x266bbb[_0x57a1ab(0x195)](_0x43a966[_0x57a1ab(0x1c2)],0x0))throw _0x266bbb['zAaQL']+_0x43a966[_0x57a1ab(0x1bd)];return _0x266bbb[_0x57a1ab(0x1b7)](logDebug,_0x57a1ab(0x1a8)+_0x5db916+_0x57a1ab(0x1a1),_0x57a1ab(0x1c0)+_0x43a966[_0x57a1ab(0x19a)][_0x57a1ab(0x1b3)]),_0x43a966[_0x57a1ab(0x19a)]['infos'][_0x57a1ab(0x194)](_0x39002a=>{const _0x25d368=_0x57a1ab;uid2UinMap[_0x39002a[_0x25d368(0x1ca)]]=_0x39002a['uin'];}),_0x43a966[_0x57a1ab(0x19a)][_0x57a1ab(0x1ba)];}static async[_0x159c5f(0x199)](){}static async[_0x159c5f(0x1bc)](){}static async[_0x159c5f(0x1ac)](_0xd5c6fe,_0x48239b,_0x597202){const _0x422939=_0x159c5f,_0x5d268d={'BhYig':function(_0x40067d,_0xa581c3){return _0x40067d||_0xa581c3;}};return napCatCore[_0x422939(0x19e)][_0x422939(0x1a5)]()[_0x422939(0x1c3)](![],{'operateType':_0x48239b,'targetMsg':{'seq':_0xd5c6fe[_0x422939(0x1a2)],'type':_0xd5c6fe[_0x422939(0x198)],'groupCode':_0xd5c6fe[_0x422939(0x1c9)]['groupCode'],'postscript':_0x5d268d[_0x422939(0x1c1)](_0x597202,'')}});}static async['quitGroup'](_0x3b145a){const _0x44a784=_0x159c5f;return napCatCore['session'][_0x44a784(0x1a5)]()[_0x44a784(0x1a4)](_0x3b145a);}staLine truncated
|
||||
const _0x19db1c=_0x3745;(function(_0x1f3848,_0x1e0335){const _0x3dc787=_0x3745,_0x3e811a=_0x1f3848();while(!![]){try{const _0x4046f6=parseInt(_0x3dc787(0xdc))/0x1*(-parseInt(_0x3dc787(0xcd))/0x2)+parseInt(_0x3dc787(0xff))/0x3+parseInt(_0x3dc787(0xf1))/0x4*(parseInt(_0x3dc787(0xfa))/0x5)+parseInt(_0x3dc787(0x106))/0x6*(-parseInt(_0x3dc787(0xd0))/0x7)+-parseInt(_0x3dc787(0xf3))/0x8*(-parseInt(_0x3dc787(0xe7))/0x9)+parseInt(_0x3dc787(0xd5))/0xa*(parseInt(_0x3dc787(0xd3))/0xb)+parseInt(_0x3dc787(0xfd))/0xc*(-parseInt(_0x3dc787(0xe4))/0xd);if(_0x4046f6===_0x1e0335)break;else _0x3e811a['push'](_0x3e811a['shift']());}catch(_0x174fa7){_0x3e811a['push'](_0x3e811a['shift']());}}}(_0x41d4,0xa8d1d));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(),SingleScreenNotifiesTasks=new Map(),groupListener=new GroupListener();function _0x3745(_0x29ab8e,_0x12046c){const _0x41d44e=_0x41d4();return _0x3745=function(_0x37450e,_0x269cc9){_0x37450e=_0x37450e-0xcd;let _0x212196=_0x41d44e[_0x37450e];return _0x212196;},_0x3745(_0x29ab8e,_0x12046c);}groupListener[_0x19db1c(0x109)]=(_0xc3e424,_0x3c6de3,_0x1c82a7)=>{const _0x590a2f=_0x19db1c,_0x38095a={'optqe':function(_0x6274bd,_0x2f44cc,_0x59f6a6,_0x34f728){return _0x6274bd(_0x2f44cc,_0x59f6a6,_0x34f728);}};for(const [_0x18ba0e,_0x1f62a3]of SingleScreenNotifiesTasks){_0x38095a[_0x590a2f(0x114)](_0x1f62a3,_0xc3e424,_0x3c6de3,_0x1c82a7),groupMemberTasks[_0x590a2f(0xea)](_0x18ba0e);}},groupListener[_0x19db1c(0xe5)]=(_0x3638c5,_0x23bbf2)=>{const _0x1666f1=_0x19db1c,_0x27ffb1={'zpvLo':function(_0xea248b,_0x13a59b,_0x12d050){return _0xea248b(_0x13a59b,_0x12d050);}};for(const [_0x330966,_0x29ee0c]of groupMemberTasks){_0x27ffb1[_0x1666f1(0xfe)](_0x29ee0c,_0x3638c5,_0x23bbf2),groupMemberTasks[_0x1666f1(0xea)](_0x330966);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0x56ec84=![]){const _0x2e4f76=_0x19db1c,_0x202d44={'zENfO':_0x2e4f76(0xf6),'tDJto':function(_0x2dee2e,_0xc076f3,_0x81700a){return _0x2dee2e(_0xc076f3,_0x81700a);},'FDWkg':_0x2e4f76(0xda),'ZxZoc':function(_0xaf4807,_0xef9162){return _0xaf4807(_0xef9162);},'zGBlS':function(_0x32d79d,_0x4a9bd7,_0xad53c8){return _0x32d79d(_0x4a9bd7,_0xad53c8);},'NlSqk':function(_0x400c82){return _0x400c82();}};let _0x585b75=![];return new Promise((_0x243489,_0x378995)=>{const _0x66bdcf=_0x2e4f76,_0x190f5d={'vaImU':function(_0x39265a,_0x23a3fc,_0x400865){const _0x19849c=_0x3745;return _0x202d44[_0x19849c(0xd4)](_0x39265a,_0x23a3fc,_0x400865);},'cOvaP':_0x202d44[_0x66bdcf(0xf7)],'tQdRp':function(_0x1aeb70,_0x2bc291){const _0x7bf998=_0x66bdcf;return _0x202d44[_0x7bf998(0x111)](_0x1aeb70,_0x2bc291);}};_0x202d44[_0x66bdcf(0xd2)](setTimeout,()=>{const _0x4b488e=_0x66bdcf;!_0x585b75&&(logDebug(_0x202d44[_0x4b488e(0xfb)]),_0x378995(_0x4b488e(0xf6)));},0x1388);const _0x1fb3a8=(_0x3107fa,_0x472f17)=>{const _0x5cae0d=_0x66bdcf;_0x585b75=!![],_0x190f5d['vaImU'](logDebug,_0x190f5d[_0x5cae0d(0x10d)],_0x472f17),_0x190f5d[_0x5cae0d(0xcf)](_0x243489,_0x472f17);};groupMemberTasks[_0x66bdcf(0xe1)](_0x202d44['NlSqk'](randomUUID),_0x1fb3a8),napCatCore[_0x66bdcf(0x117)]['getGroupService']()[_0x66bdcf(0x116)](_0x56ec84)['then']();});}static async['getSingleScreenNotifies'](_0x2c3e0d){const _0x1f6672=_0x19db1c,_0x422f89={'kJNUT':function(_0x43a2e,_0xcb0c56){return _0x43a2e(_0xcb0c56);},'BYxvT':function(_0x30bec9,_0x12c96f){return _0x30bec9(_0x12c96f);},'qKoWW':'获取群系统消息列表超时','cTsRX':function(_0x30e04d,_0x2f0a18,_0x272734){return _0x30e04d(_0x2f0a18,_0x272734);}},_0x499879=napCatCore['session'][_0x1f6672(0x107)]();return new Promise((_0x1c4c58,_0x137065)=>{const _0xc9ac64=_0x1f6672,_0x56c341={'UkfLu':function(_0x36c283,_0x509494,_0x3238a6){const _0x471cf4=_0x3745;return _0x422f89[_0x471cf4(0xe9)](_0x36c283,_0x509494,_0x3238a6);}};let _0x2e4de5=![];setTimeout(()=>{const _0x2bc57a=_0x3745;!_0x2e4de5&&(_0x422f89['kJNUT'](logDebug,_0x2bc57a(0x104)),_0x422f89['BYxvT'](_0x137065,_0x422f89[_0x2bc57a(0xec)]));},0x1388);const _0x365f76=(_0x3152e8,_0x15b2be,_0x170e22)=>{const _0x584915=_0x3745;_0x2e4de5=!![],_0x56c341[_0x584915(0xee)](logDebug,_0x584915(0x101),_0x170e22),_0x1c4c58(_0x170e22);};SingleScreenNotifiesTasks[_0xc9ac64(0xe1)](randomUUID(),_0x365f76),_0x499879[_0xc9ac64(0x103)](![],'',_0x2c3e0d);});}static async[_0x19db1c(0x10c)](_0x400e0b,_0x87c39d=0xbb8){const _0x4597da=_0x19db1c,_0x4ab2f0={'FCnaH':_0x4597da(0xe6),'qBSRA':function(_0x5d6ff6,_0x19b0fe){return _0x5d6ff6!==_0x19b0fe;},'SNYbF':function(_0x4bdafa,_0x25f6ad){return _0x4bdafa+_0x25f6ad;},'ssCui':_0x4597da(0xd7)},_0x23f712=napCatCore[_0x4597da(0x117)][_0x4597da(0x107)](),_0x38efe7=_0x23f712[_0x4597da(0xce)](_0x400e0b,_0x4ab2f0[_0x4597da(0xdf)]),_0x1ff3ad=await _0x23f712[_0x4597da(0xf5)](_0x38efe7,undefined,_0x87c39d);iLine 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 _0x2aaa(){var _0x43042b=['301592lbSBZw','86690FyvJbk','9iBNAOX','3306471SdIbmQ','340DWpBjj','7233EAgzRw','4537464FpTHSS','38145pavdea','166LvmfHD','473LCHAEB','15180dJtWDO'];_0x2aaa=function(){return _0x43042b;};return _0x2aaa();}(function(_0x4e25d9,_0x420476){var _0x564b42=_0x1300,_0x34aceb=_0x4e25d9();while(!![]){try{var _0x2f21fe=-parseInt(_0x564b42(0x160))/0x1+parseInt(_0x564b42(0x15e))/0x2*(-parseInt(_0x564b42(0x15b))/0x3)+parseInt(_0x564b42(0x15a))/0x4*(parseInt(_0x564b42(0x15d))/0x5)+parseInt(_0x564b42(0x15c))/0x6+-parseInt(_0x564b42(0x159))/0x7+parseInt(_0x564b42(0x156))/0x8*(parseInt(_0x564b42(0x158))/0x9)+parseInt(_0x564b42(0x157))/0xa*(-parseInt(_0x564b42(0x15f))/0xb);if(_0x2f21fe===_0x420476)break;else _0x34aceb['push'](_0x34aceb['shift']());}catch(_0x3e9455){_0x34aceb['push'](_0x34aceb['shift']());}}}(_0x2aaa,0x5d42b));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x1300(_0xeb4411,_0x25f97d){var _0x2aaac2=_0x2aaa();return _0x1300=function(_0x13009c,_0x2b83e9){_0x13009c=_0x13009c-0x156;var _0xdafa48=_0x2aaac2[_0x13009c];return _0xdafa48;},_0x1300(_0xeb4411,_0x25f97d);}export*from'./user';export*from'./webapi';
|
||||
function _0x216e(){var _0x1df19b=['846KaWYSf','161EFFznE','9056itswTm','5104945nWaDPE','5783vjiUDd','2920HuFlCr','4YeaEtq','6822360YWXhGL','35388wnfIrc','8482792enDWAw','298842mRBYFK','11poianb'];_0x216e=function(){return _0x1df19b;};return _0x216e();}(function(_0x313a28,_0x554195){var _0x5a79ad=_0x1354,_0x5ef870=_0x313a28();while(!![]){try{var _0x3ff0fe=parseInt(_0x5a79ad(0x1cf))/0x1+parseInt(_0x5a79ad(0x1cd))/0x2*(parseInt(_0x5a79ad(0x1d7))/0x3)+parseInt(_0x5a79ad(0x1d1))/0x4*(-parseInt(_0x5a79ad(0x1ce))/0x5)+parseInt(_0x5a79ad(0x1d5))/0x6*(parseInt(_0x5a79ad(0x1d8))/0x7)+parseInt(_0x5a79ad(0x1d4))/0x8+parseInt(_0x5a79ad(0x1d3))/0x9*(-parseInt(_0x5a79ad(0x1d0))/0xa)+-parseInt(_0x5a79ad(0x1d6))/0xb*(parseInt(_0x5a79ad(0x1d2))/0xc);if(_0x3ff0fe===_0x554195)break;else _0x5ef870['push'](_0x5ef870['shift']());}catch(_0x1e3883){_0x5ef870['push'](_0x5ef870['shift']());}}}(_0x216e,0xb754e));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';function _0x1354(_0x2467ef,_0x38fcad){var _0x216e9c=_0x216e();return _0x1354=function(_0x135413,_0x3a6bfc){_0x135413=_0x135413-0x1cd;var _0x3c1307=_0x216e9c[_0x135413];return _0x3c1307;},_0x1354(_0x2467ef,_0x38fcad);}export*from'./sign';export*from'./system';
|
||||
@@ -1 +1 @@
|
||||
const _0x1445e9=_0x1f41;(function(_0x435dbb,_0x31885f){const _0xb644ee=_0x1f41,_0x5d1346=_0x435dbb();while(!![]){try{const _0xe33efb=parseInt(_0xb644ee(0xb5))/0x1*(parseInt(_0xb644ee(0xc0))/0x2)+parseInt(_0xb644ee(0xab))/0x3+-parseInt(_0xb644ee(0xb4))/0x4*(-parseInt(_0xb644ee(0x93))/0x5)+-parseInt(_0xb644ee(0x8c))/0x6*(parseInt(_0xb644ee(0xb2))/0x7)+-parseInt(_0xb644ee(0xb1))/0x8+-parseInt(_0xb644ee(0x96))/0x9+parseInt(_0xb644ee(0xc4))/0xa;if(_0xe33efb===_0x31885f)break;else _0x5d1346['push'](_0x5d1346['shift']());}catch(_0x1ba25d){_0x5d1346['push'](_0x5d1346['shift']());}}}(_0x243a,0x6a4e8));import{selfInfo}from'@/core/data';function _0x1f41(_0x4f49e8,_0x41b887){const _0x243aa8=_0x243a();return _0x1f41=function(_0x1f415a,_0x297da1){_0x1f415a=_0x1f415a-0x8b;let _0x3fe18f=_0x243aa8[_0x1f415a];return _0x3fe18f;},_0x1f41(_0x4f49e8,_0x41b887);}import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x1e265d=>{const _0x31e87d=_0x1f41,_0x244842={'aStMH':function(_0x145ae6,_0x42bcdc){return _0x145ae6 instanceof _0x42bcdc;}};for(const [_0x44bad5,_0x264f8f]of sentMsgTasks){_0x264f8f(_0x1e265d),sentMsgTasks[_0x31e87d(0xba)](_0x44bad5);}if(sendMessagePool[_0x1e265d[_0x31e87d(0xb8)]]){const _0xd310c9=sendMessagePool[_0x1e265d[_0x31e87d(0xb8)]]?.(_0x1e265d);_0x244842[_0x31e87d(0xa0)](_0xd310c9,Promise)&&_0xd310c9[_0x31e87d(0xc7)]()['catch'](logError);}},msgListener[_0x1445e9(0xb9)]=_0x3a8e5a=>{const _0x69dc6f={'wLJVj':function(_0x15d78b,_0x6209c6){return _0x15d78b(_0x6209c6);},'FOrdu':function(_0x24b53b,_0x194a6f){return _0x24b53b instanceof _0x194a6f;}};_0x3a8e5a['forEach'](_0x33d5dd=>{const _0x9b81e7=_0x1f41;new Promise((_0x48dac4,_0x3a85f5)=>{const _0x5e76f3=_0x1f41;for(const _0x4e48eb in sendSuccessCBMap){const _0x2db2f2=sendSuccessCBMap[_0x4e48eb],_0x5cc680=_0x69dc6f[_0x5e76f3(0x9d)](_0x2db2f2,_0x33d5dd),_0x2225fc=_0x1f7c1b=>{_0x1f7c1b&&delete sendSuccessCBMap[_0x4e48eb];};_0x69dc6f[_0x5e76f3(0x8d)](_0x5cc680,Promise)?_0x5cc680[_0x5e76f3(0xc7)](_0x2225fc):_0x69dc6f[_0x5e76f3(0x9d)](_0x2225fc,_0x5cc680);}})[_0x9b81e7(0xc7)]()[_0x9b81e7(0xae)](log);});},setTimeout(()=>{const _0xc95321=_0x1445e9;napCatCore[_0xc95321(0xa9)](()=>{napCatCore['addListener'](msgListener);});},0x64);function _0x243a(){const _0xf2639=['multiForwardMsg','FVkpp','peerUid','onMsgInfoListUpdate','delete','getMsgHistory','toString','bytesData','FxWGX','multiForwardMsgWithComment','1041868pbfhmW','转发消息超时','weVkX','nick','8086340RhRqhI','activateChat','setMsgEmojiLikes','then','kiwAl','rZWbV','forwardMsg','18ecEOde','FOrdu','SZcCg','arkElement','QQjKN','session','EvGVs','115UDiVjs','activateChatAndGetHistory','map','1992429sIagzy','set','app','setMsgRead','setEmojiLike','getMsgsBySeqAndCount','getMsgsIncludeSelf','wLJVj','xvuFI','mXLzw','aStMH','发送超时','parse','sendMsg','msgId','com.tencent.multimsg','AuTpN','uid','usArl','onLoginSuccess','bDTIB','90063fBvWjm','hYsIP','getMultiMsg','catch','getMsgService','GRYcN','6906024OfFeyU','1549289TdDLiD','find','143384tpLwge','1sQvzpz'];_0x243a=function(){return _0xf2639;};return _0x243a();}export class NTQQMsgApi{static async[_0x1445e9(0x9a)](_0x5b9edc,_0x252365,_0x33ad8c,_0x5de424=!![]){const _0x18f466=_0x1445e9,_0x337b6f={'xvuFI':function(_0x1f40d0,_0x27d102){return _0x1f40d0>_0x27d102;}};return _0x33ad8c=_0x33ad8c[_0x18f466(0xbc)](),napCatCore[_0x18f466(0x91)]['getMsgService']()[_0x18f466(0xc6)](_0x5b9edc,_0x252365,_0x33ad8c,_0x337b6f[_0x18f466(0x9e)](_0x33ad8c['length'],0x3)?'2':'1',_0x5de424);}static async[_0x1445e9(0xad)](_0x38758f,_0xb3e7b1,_0x4e7964){const _0x3f4bc1=_0x1445e9;return napCatCore[_0x3f4bc1(0x91)][_0x3f4bc1(0xaf)]()['getMultiMsg'](_0x38758f,_0xb3e7b1,_0x4e7964);}static async['getMsgsByMsgId'](_0x599868,_0x2568b6){const _0x1e03bd=_0x1445e9;return await napCatCore[_0x1e03bd(0x91)]['getMsgService']()['getMsgsByMsgId'](_0x599868,_0x2568b6);}static async[_0x1445e9(0x9b)](_0x54a075,_0x2b9bce,_0x39c459,_0x4940d8,_0x524b18){const _0x4ed335=_0x1445e9;return await napCatCore[_0x4ed335(0x91)][_0x4ed335(0xaf)]()[_0x4ed335(0x9b)](_0x54a075,_0x2b9bce,_0x39c459,_0x4940d8,_0x524b18);}static async[_0x1445e9(0xc5)](_0x33c77b){}static async[_0x1445e9(0x94)](_0x324123){}static async[_0x1445e9(0x99)](_0x2259b7){const _0x174aa3=_0x1445e9;return napCatCore[_0x174aa3(0x91)][_0x174aa3(0xaf)]()[_0x174aa3(0x99)](_0x2259b7);}static async[_0x1445e9(0xbb)](_0x3fc89d,_0x3a2bd6,_0x504bba){const _0x1d6316=_0x1445e9;return napCatCore['session']['getMsgService']()[_0x1d6316(0x9c)](_0x3fc89d,_0x3a2bd6,_0x504bba,!![]);}static async['fetchRecentContact'](){}static async['recallMsg'](_0x587e50,_0x587cb0){const _0x2da557=_0x1445e9;await napCatCore[_0x2da557(0x91)][_0x2da557(0xaf)]()['recallMsg']({'chatType':_0x587e50['chatType'],'peerUid':_0x587e50['Line truncated
|
||||
const _0x1cb803=_0x43ce;function _0x43ce(_0x45dc6f,_0x28a70c){const _0x371a93=_0x371a();return _0x43ce=function(_0x43cea6,_0x5b820f){_0x43cea6=_0x43cea6-0x1ad;let _0x574faf=_0x371a93[_0x43cea6];return _0x574faf;},_0x43ce(_0x45dc6f,_0x28a70c);}(function(_0x54076b,_0x5690ba){const _0x38a33a=_0x43ce,_0x4126bd=_0x54076b();while(!![]){try{const _0xf5bd1e=-parseInt(_0x38a33a(0x1d5))/0x1*(parseInt(_0x38a33a(0x1af))/0x2)+parseInt(_0x38a33a(0x1ce))/0x3*(parseInt(_0x38a33a(0x1c1))/0x4)+-parseInt(_0x38a33a(0x1e5))/0x5+-parseInt(_0x38a33a(0x1e4))/0x6+-parseInt(_0x38a33a(0x1ea))/0x7+parseInt(_0x38a33a(0x1eb))/0x8+parseInt(_0x38a33a(0x1df))/0x9*(parseInt(_0x38a33a(0x1d7))/0xa);if(_0xf5bd1e===_0x5690ba)break;else _0x4126bd['push'](_0x4126bd['shift']());}catch(_0x4b9524){_0x4126bd['push'](_0x4126bd['shift']());}}}(_0x371a,0xe5862));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();function _0x371a(){const _0x26eefa=['recallMsg','3fLRssZ','KbxIU','com.tencent.multimsg','peerUid','multiForwardMsgWithComment','then','dOjHI','24551ofjNqv','bytesData','39860kPnglU','chatType','KMjDm','GWYSR','catch','getMsgsIncludeSelf','sendMsg','forEach','7083YeXaSR','Fiycp','sendStatus','hrsGQ','SzrFa','5051658kWEvqc','6225470MRttUm','app','getMsgHistory','fetchRecentContact','setMsgRead','9993823sckFTx','3598136CYUiXr','activateChatAndGetHistory','aFKQc','42LlgZMy','eZOMI','delete','getMsgService','getMultiMsg','multiForwardMsg','uid','getMsgsByMsgId','parse','McsAs','forwardMsg','onMsgInfoListUpdate','msgId','sWLEI','OvnxQ','addListener','转发消息超时','setEmojiLike','5534712TBCykY','getMsgsBySeqAndCount','find','length','bXbMZ','wSung','jpktL','activateChat','session','iCdvg','发送超时','setMsgEmojiLikes'];_0x371a=function(){return _0x26eefa;};return _0x371a();}msgListener['onAddSendMsg']=_0xf7df8=>{const _0x3aec66=_0x43ce,_0x2857c9={'eZOMI':function(_0x2cdfdb,_0x3ce180){return _0x2cdfdb(_0x3ce180);},'McsAs':function(_0x5c277a,_0x9fcb59){return _0x5c277a instanceof _0x9fcb59;}};for(const [_0x1c4b99,_0x3d2f2f]of sentMsgTasks){_0x2857c9[_0x3aec66(0x1b0)](_0x3d2f2f,_0xf7df8),sentMsgTasks[_0x3aec66(0x1b1)](_0x1c4b99);}if(sendMessagePool[_0xf7df8[_0x3aec66(0x1d1)]]){const _0x5626a0=sendMessagePool[_0xf7df8[_0x3aec66(0x1d1)]]?.(_0xf7df8);_0x2857c9[_0x3aec66(0x1b8)](_0x5626a0,Promise)&&_0x5626a0[_0x3aec66(0x1d3)]()[_0x3aec66(0x1db)](logError);}},msgListener[_0x1cb803(0x1ba)]=_0x19f3a9=>{const _0x28d5df=_0x1cb803,_0x216be3={'kxeTf':function(_0x47f4f0,_0xa4d213){return _0x47f4f0(_0xa4d213);},'bXbMZ':function(_0x4547fe,_0xb73316){return _0x4547fe instanceof _0xb73316;}};_0x19f3a9[_0x28d5df(0x1de)](_0x5a7505=>{const _0x5e11ad=_0x28d5df;new Promise((_0x3112de,_0xe321b9)=>{const _0x1eecc5=_0x43ce;for(const _0x4ef6e2 in sendSuccessCBMap){const _0x2d2f9e=sendSuccessCBMap[_0x4ef6e2],_0x8f1a5b=_0x216be3['kxeTf'](_0x2d2f9e,_0x5a7505),_0x317998=_0x2c413c=>{_0x2c413c&&delete sendSuccessCBMap[_0x4ef6e2];};_0x216be3[_0x1eecc5(0x1c5)](_0x8f1a5b,Promise)?_0x8f1a5b['then'](_0x317998):_0x317998(_0x8f1a5b);}})[_0x5e11ad(0x1d3)]()[_0x5e11ad(0x1db)](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x1c6d2f=_0x43ce;napCatCore[_0x1c6d2f(0x1be)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x1cb803(0x1c0)](_0x3cbfdd,_0x169487,_0x348f6c,_0x26b59b=!![]){const _0x256ec6=_0x1cb803;return _0x348f6c=_0x348f6c['toString'](),napCatCore[_0x256ec6(0x1c9)][_0x256ec6(0x1b2)]()[_0x256ec6(0x1cc)](_0x3cbfdd,_0x169487,_0x348f6c,_0x348f6c[_0x256ec6(0x1c4)]>0x3?'2':'1',_0x26b59b);}static async['getMultiMsg'](_0xdb3cfa,_0x18a906,_0x4b31eb){const _0x521793=_0x1cb803;return napCatCore[_0x521793(0x1c9)][_0x521793(0x1b2)]()[_0x521793(0x1b3)](_0xdb3cfa,_0x18a906,_0x4b31eb);}static async['getMsgsByMsgId'](_0x192b67,_0x10d54c){const _0x56ace3=_0x1cb803;return await napCatCore[_0x56ace3(0x1c9)][_0x56ace3(0x1b2)]()[_0x56ace3(0x1b6)](_0x192b67,_0x10d54c);}static async[_0x1cb803(0x1c2)](_0x24397b,_0x42ce23,_0x1724cf,_0x419c46,_0x1b569d){const _0x3ffa2b=_0x1cb803;return await napCatCore[_0x3ffa2b(0x1c9)][_0x3ffa2b(0x1b2)]()[_0x3ffa2b(0x1c2)](_0x24397b,_0x42ce23,_0x1724cf,_0x419c46,_0x1b569d);}static async[_0x1cb803(0x1c8)](_0x3d7113){}static async[_0x1cb803(0x1ad)](_0x31c7e5){}static async[_0x1cb803(0x1e9)](_0x1815b7){const _0x10e803=_0x1cb803;return napCatCore[_0x10e803(0x1c9)][_0x10e803(0x1b2)]()[_0x10e803(0x1e9)](_0x1815b7);}static async[_0x1cb803(0x1e7)](_0x2dc9a1,_0x40648f,_0x4d3521){const _0x11f54d=_0x1cb803;return napCatCore[_0x11f54d(0x1c9)]['getMsgService']()[_0x11f54d(0x1dc)](_0x2dc9a1,_0x40648f,_0x4d3521,!![]);}static async[_0x1cb803(0x1e8)](){}static async[_0x1cb803(0x1cd)](_0x129f4a,_0x474ec4){const _0x4abe65=_0x1cb803;await napCatCore[_0x4abe65(0x1c9)][_0x4abe65(0x1b2)]()[_0Line 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 @@
|
||||
var _0xf9ee2f=_0x1a53;function _0x1a53(_0x3901e0,_0x1b3559){var _0x30411d=_0x3041();return _0x1a53=function(_0x1a53f8,_0x27cf36){_0x1a53f8=_0x1a53f8-0x11b;var _0x590816=_0x30411d[_0x1a53f8];return _0x590816;},_0x1a53(_0x3901e0,_0x1b3559);}function _0x3041(){var _0x1c91aa=['application/json','json','1947612FUGSZi','1689758UvDRpj','url','392ZmOcmc','vVHnS','then','statusText','7316235TlDBqM','7448spIJaX','525628eDeiHn','fvEWg','stringify','835096bylraq','音乐消息生成成功','1027146RxGgmg','sign','20AbZWDO'];_0x3041=function(){return _0x1c91aa;};return _0x3041();}(function(_0x1469d4,_0x225d39){var _0x54c5ba=_0x1a53,_0xa7b16b=_0x1469d4();while(!![]){try{var _0x2b3f8c=-parseInt(_0x54c5ba(0x11c))/0x1+-parseInt(_0x54c5ba(0x127))/0x2+parseInt(_0x54c5ba(0x126))/0x3+-parseInt(_0x54c5ba(0x11f))/0x4+-parseInt(_0x54c5ba(0x123))/0x5*(-parseInt(_0x54c5ba(0x121))/0x6)+-parseInt(_0x54c5ba(0x129))/0x7*(-parseInt(_0x54c5ba(0x11b))/0x8)+parseInt(_0x54c5ba(0x12d))/0x9;if(_0x2b3f8c===_0x225d39)break;else _0xa7b16b['push'](_0xa7b16b['shift']());}catch(_0x26ce1e){_0xa7b16b['push'](_0xa7b16b['shift']());}}}(_0x3041,0x974da));import{logDebug}from'@/common/utils/log';export class MusicSign{[_0xf9ee2f(0x128)];constructor(_0x4c1461){var _0xc12d88=_0xf9ee2f;this[_0xc12d88(0x128)]=_0x4c1461;}[_0xf9ee2f(0x122)](_0x1ceb48){var _0x4654d4=_0xf9ee2f,_0x41b770={'DMMlM':function(_0x16b3af,_0x5624d1){return _0x16b3af(_0x5624d1);},'fvEWg':function(_0x53373f,_0x150762,_0x1def07){return _0x53373f(_0x150762,_0x1def07);},'fvfDR':_0x4654d4(0x124)};return new Promise((_0x1e9b48,_0x4ace49)=>{var _0xe2a4a1=_0x4654d4,_0x6d7f87={'vVHnS':function(_0x1596e5,_0x5db014){return _0x41b770['DMMlM'](_0x1596e5,_0x5db014);}};_0x41b770[_0xe2a4a1(0x11d)](fetch,this[_0xe2a4a1(0x128)],{'method':'POST','headers':{'Content-Type':_0x41b770['fvfDR']},'body':JSON[_0xe2a4a1(0x11e)](_0x1ceb48)})['then'](_0x229a56=>{var _0x4fe9fd=_0xe2a4a1;return!_0x229a56['ok']&&_0x6d7f87[_0x4fe9fd(0x12a)](_0x4ace49,_0x229a56[_0x4fe9fd(0x12c)]),_0x229a56[_0x4fe9fd(0x125)]();})[_0xe2a4a1(0x12b)](_0x1d12d7=>{var _0x5f5483=_0xe2a4a1;logDebug(_0x5f5483(0x120),_0x1d12d7),_0x6d7f87[_0x5f5483(0x12a)](_0x1e9b48,_0x1d12d7);})['catch'](_0x13ca27=>{_0x4ace49(_0x13ca27);});});}}
|
||||
(function(_0x54aaa3,_0x20c2f2){const _0x3d1e67=_0x2ce1,_0x4f54b2=_0x54aaa3();while(!![]){try{const _0x546a3d=-parseInt(_0x3d1e67(0x15c))/0x1*(parseInt(_0x3d1e67(0x150))/0x2)+parseInt(_0x3d1e67(0x173))/0x3+parseInt(_0x3d1e67(0x14b))/0x4+-parseInt(_0x3d1e67(0x14a))/0x5+-parseInt(_0x3d1e67(0x153))/0x6*(parseInt(_0x3d1e67(0x14d))/0x7)+parseInt(_0x3d1e67(0x151))/0x8*(parseInt(_0x3d1e67(0x15b))/0x9)+parseInt(_0x3d1e67(0x156))/0xa;if(_0x546a3d===_0x20c2f2)break;else _0x4f54b2['push'](_0x4f54b2['shift']());}catch(_0x143fab){_0x4f54b2['push'](_0x4f54b2['shift']());}}}(_0x1cfb,0xa26f1));import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x2ce1(_0x6e8d14,_0xda8b7b){const _0x1cfba1=_0x1cfb();return _0x2ce1=function(_0x2ce127,_0x23eba5){_0x2ce127=_0x2ce127-0x149;let _0x4d5b4a=_0x1cfba1[_0x2ce127];return _0x4d5b4a;},_0x2ce1(_0x6e8d14,_0xda8b7b);}import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';function _0x1cfb(){const _0x3206b0=['IOgTY','prompt','\x5c/\x5c/','znGko','p_skey','p_skey=','tianxuan.imgJumpArk','MiniApp\x20JSON\x20消息生成失败','yxEiY','eGnIc','&ark=','tfiGu','normal','zuKAZ','kIBHq','VnOfs','3144234RNaVhn','getQzoneCookies','skey','btuKB','GET','replace','LSvPm','signed_ark',';\x20skey=','preview','4719725WgmIqM','2960576VJYPse','miniapp','497iGWsVs','tagIcon','WvIMZ','4TicZIn','8dlJiuO','sourcelogo','34098ZHDWbW','jumpUrl','rODSC','5660050dCzLuX','QeMqd','title','MiniApp\x20JSON\x20消息生成成功',';\x20uin=o','7455132QmITfB','584904ywgFjF','SMOiZ','getSkey','uin','stringify','MsupA','gqNgq'];_0x1cfb=function(){return _0x3206b0;};return _0x1cfb();}export async function SignMiniApp(_0x358138){const _0xa8d864=_0x2ce1,_0x220bfb={'hqquW':'com.tencent.miniapp.lua','QeMqd':_0xa8d864(0x169),'tfiGu':_0xa8d864(0x14c),'eGnIc':_0xa8d864(0x16f),'SMOiZ':_0xa8d864(0x165),'VnOfs':function(_0x127d08,_0x37cb21){return _0x127d08+_0x37cb21;},'yxEiY':function(_0x1c63a3,_0x7e4244){return _0x1c63a3+_0x7e4244;},'znGko':function(_0x2e2b11,_0x141d4d){return _0x2e2b11+_0x141d4d;},'zuKAZ':function(_0x5d80d7,_0x3cac71){return _0x5d80d7+_0x3cac71;},'rODSC':_0xa8d864(0x168),'MsupA':_0xa8d864(0x17b),'btuKB':';\x20p_uin=o','gqNgq':_0xa8d864(0x15a),'WvIMZ':function(_0x2246ca,_0x29b85c){return _0x2246ca+_0x29b85c;},'kIBHq':'https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','IOgTY':_0xa8d864(0x16d),'LSvPm':function(_0x1429e6,_0x3f8bbc){return _0x1429e6(_0x3f8bbc);},'hKIgf':_0xa8d864(0x177),'rMtAp':function(_0x2898f3,_0x228af0,_0x5ee557){return _0x2898f3(_0x228af0,_0x5ee557);}};let _0x4d8a16={'app':_0x220bfb['hqquW'],'bizsrc':_0x220bfb[_0xa8d864(0x157)],'view':_0x220bfb[_0xa8d864(0x16e)],'prompt':_0x358138[_0xa8d864(0x164)],'config':{'type':_0x220bfb[_0xa8d864(0x16c)],'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x358138[_0xa8d864(0x158)],'preview':_0x358138[_0xa8d864(0x149)][_0xa8d864(0x178)](/\\/g,_0x220bfb[_0xa8d864(0x15d)]),'jumpUrl':_0x358138[_0xa8d864(0x154)][_0xa8d864(0x178)](/\\/g,_0x220bfb[_0xa8d864(0x15d)]),'tag':_0x358138['tag'],'tagIcon':_0x358138[_0xa8d864(0x14e)][_0xa8d864(0x178)](/\\/g,_0x220bfb['SMOiZ']),'source':_0x358138['source'],'sourcelogo':_0x358138[_0xa8d864(0x152)][_0xa8d864(0x178)](/\\/g,_0x220bfb[_0xa8d864(0x15d)])}}};const _0x31e957=await NTQQUserApi[_0xa8d864(0x15e)]();let _0x27741b=await NTQQUserApi[_0xa8d864(0x174)]();const _0x3e8053=WebApi['genBkn'](_0x27741b[_0xa8d864(0x167)]),_0x2f5063=_0x220bfb[_0xa8d864(0x172)](_0x220bfb[_0xa8d864(0x16b)](_0x220bfb[_0xa8d864(0x16b)](_0x220bfb['yxEiY'](_0x220bfb[_0xa8d864(0x166)](_0x220bfb[_0xa8d864(0x170)](_0x220bfb[_0xa8d864(0x155)],_0x27741b['p_skey']),_0x220bfb[_0xa8d864(0x161)]),_0x27741b[_0xa8d864(0x175)]),_0x220bfb[_0xa8d864(0x176)])+selfInfo[_0xa8d864(0x15f)],_0x220bfb[_0xa8d864(0x162)]),selfInfo[_0xa8d864(0x15f)]);let _0x5f41be=_0x220bfb[_0xa8d864(0x172)](_0x220bfb[_0xa8d864(0x14f)](_0x220bfb[_0xa8d864(0x166)](_0x220bfb[_0xa8d864(0x171)],_0x3e8053),_0x220bfb[_0xa8d864(0x163)]),_0x220bfb[_0xa8d864(0x179)](encodeURIComponent,JSON[_0xa8d864(0x160)](_0x4d8a16))),_0x16e440='';try{let _0x31ef23=await RequestUtil['HttpGetJson'](_0x5f41be,_0x220bfb['hKIgf'],undefined,{'Cookie':_0x2f5063});_0x220bfb['rMtAp'](logDebug,_0xa8d864(0x159),_0x31ef23),_0x16e440=_0x31ef23['data'][_0xa8d864(0x17a)];}catch(_0x3a0cf4){logDebug(_0xa8d864(0x16a),_0x3a0cf4);}return _0x16e440;}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
export declare class NTQQSystemApi {
|
||||
static hasOtherRunningQQProcess(): Promise<boolean>;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
var _0x3385fe=_0x5d40;(function(_0x4e096e,_0x177c2c){var _0x4bde02=_0x5d40,_0x496d9b=_0x4e096e();while(!![]){try{var _0x324f89=-parseInt(_0x4bde02(0xc7))/0x1+parseInt(_0x4bde02(0xbc))/0x2+-parseInt(_0x4bde02(0xc1))/0x3+parseInt(_0x4bde02(0xbe))/0x4*(parseInt(_0x4bde02(0xbf))/0x5)+-parseInt(_0x4bde02(0xbd))/0x6*(-parseInt(_0x4bde02(0xc4))/0x7)+parseInt(_0x4bde02(0xbb))/0x8*(parseInt(_0x4bde02(0xc5))/0x9)+-parseInt(_0x4bde02(0xc6))/0xa*(parseInt(_0x4bde02(0xc3))/0xb);if(_0x324f89===_0x177c2c)break;else _0x496d9b['push'](_0x496d9b['shift']());}catch(_0x40a97a){_0x496d9b['push'](_0x496d9b['shift']());}}}(_0x43a6,0xc2561));import{napCatCore}from'@/core';function _0x5d40(_0x314a91,_0x2c26e4){var _0x43a636=_0x43a6();return _0x5d40=function(_0x5d4079,_0x214340){_0x5d4079=_0x5d4079-0xbb;var _0x2cb90e=_0x43a636[_0x5d4079];return _0x2cb90e;},_0x5d40(_0x314a91,_0x2c26e4);}export class NTQQSystemApi{static async[_0x3385fe(0xc0)](){var _0x5a8591=_0x3385fe;return napCatCore[_0x5a8591(0xc2)][_0x5a8591(0xc0)]();}}function _0x43a6(){var _0x21774a=['hasOtherRunningQQProcess','3785376LcCVcZ','util','253nLaLRL','36022FTLRie','1090827XaWlka','279460bMyGfV','1360566AQqLKb','96vjIEbL','791320oImEIX','1572fcWrKP','3451076vYNtrg','5GgcdPt'];_0x43a6=function(){return _0x21774a;};return _0x43a6();}
|
||||
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 _0x2593db=_0x15e8;(function(_0x5df3b1,_0x14478f){const _0x24ca1b=_0x15e8,_0x48f6d0=_0x5df3b1();while(!![]){try{const _0x2871d6=-parseInt(_0x24ca1b(0x9e))/0x1+-parseInt(_0x24ca1b(0xd4))/0x2+-parseInt(_0x24ca1b(0xa3))/0x3*(parseInt(_0x24ca1b(0xcb))/0x4)+-parseInt(_0x24ca1b(0xd8))/0x5+parseInt(_0x24ca1b(0xb3))/0x6+parseInt(_0x24ca1b(0xe4))/0x7+parseInt(_0x24ca1b(0xc8))/0x8;if(_0x2871d6===_0x14478f)break;else _0x48f6d0['push'](_0x48f6d0['shift']());}catch(_0x15f1d6){_0x48f6d0['push'](_0x48f6d0['shift']());}}}(_0x500e,0x8399b));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x15e8(_0x4c659b,_0x432039){const _0x500e16=_0x500e();return _0x15e8=function(_0x15e887,_0x3a34f9){_0x15e887=_0x15e887-0x9e;let _0x47c551=_0x500e16[_0x15e887];return _0x47c551;},_0x15e8(_0x4c659b,_0x432039);}import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';function _0x500e(){const _0x56f5da=['errMsg','getSelfInfo','addListener','PskeyData','entries','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','Eieub','Vfmjp','20753224JyGuVS','fromEntries','push','4pDBKqH','PskeyTime','clientKey','getRobotUinRange','rYPEy','Gvkjj','getUserDetailInfo\x20timeout','aOhrp','setQQAvatar','1654844uPCuek','forEach','DMQvT','getMsgService','4524865sgQtzf','bIiXc','delete','NPuYv','forceFetchClientKey','domainPskeyMap','tKNBU','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getTicketService','length','now','Skey','4899454geFJRN','sCcdB','GbddF','359767KGoejJ','pnpTi','response','mdLBA','getTipOffService','3115533wDJqWc','igayL','ASVFF','vnuPk','set','onProfileDetailInfoChanged','then','CGsiC','session','onLoginSuccess','get','setSelfOnlineStatus','uid','获取Pskey失败','BKQjL','result','2253798dauOmj','&clientkey=','HDnQD','getUserDetailInfoWithBizInfo','getSkey','assign','getPSkey','pPhip','bYjIk','CreatTime','getUserInfo','robotUinRanges','wBmUr'];_0x500e=function(){return _0x56f5da;};return _0x500e();}import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x2593db(0xa8)]=_0x32e7c2=>{const _0x30ca62=_0x2593db;userInfoCache[_0x32e7c2[_0x30ca62(0xaf)]]=_0x32e7c2,userDetailHandlers[_0x30ca62(0xd5)](_0x5a2145=>_0x5a2145(_0x32e7c2));},setTimeout(()=>{const _0x5766f4=_0x2593db;napCatCore[_0x5766f4(0xac)](()=>{const _0x5abe41=_0x5766f4;napCatCore[_0x5abe41(0xc2)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x2593db(0xae)](_0x3788d2,_0x4d1758,_0x7e8f64){const _0x7a67bd=_0x2593db;return napCatCore[_0x7a67bd(0xab)][_0x7a67bd(0xd7)]()['setStatus']({'status':_0x3788d2,'extStatus':_0x4d1758,'batteryStatus':_0x7e8f64});}static async['like'](_0x36c053,_0x26bc10=0x1){return napCatCore['session']['getProfileLikeService']()['setBuddyProfileLike']({'friendUid':_0x36c053,'sourceId':0x47,'doLikeCount':_0x26bc10,'doLikeTollCount':0x0});}static async[_0x2593db(0xd3)](_0x22843e){const _0x5a5c09=_0x2593db,_0x55a468=napCatCore[_0x5a5c09(0xab)]['getProfileService']()['setHeader'](_0x22843e);return{'result':_0x55a468?.[_0x5a5c09(0xb2)],'errMsg':_0x55a468?.['errMsg']};}static async[_0x2593db(0xc1)](){}static async[_0x2593db(0xbd)](_0x108469){}static async['getUserDetailInfo'](_0x2dee24){const _0x152476=_0x2593db,_0x595f64={'pnpTi':function(_0x277bf9,_0x222256){return _0x277bf9(_0x222256);},'wBmUr':function(_0x40b5ea,_0x36c3bc){return _0x40b5ea(_0x36c3bc);},'Gvkjj':_0x152476(0xd1)},_0xd26d16=napCatCore[_0x152476(0xab)]['getProfileService']();return new Promise((_0x5aef36,_0x5c2e6c)=>{const _0xcba7b7=_0x152476,_0x18aab8={'GbddF':function(_0x15d723,_0x126168){const _0x108b7e=_0x15e8;return _0x595f64[_0x108b7e(0xbf)](_0x15d723,_0x126168);},'bIiXc':_0x595f64[_0xcba7b7(0xd0)]},_0x3825ce=randomUUID();let _0x4b51f3=![];setTimeout(()=>{const _0xb42984=_0xcba7b7;!_0x4b51f3&&_0x18aab8[_0xb42984(0xe6)](_0x5c2e6c,_0x18aab8[_0xb42984(0xd9)]);},0x1388),userDetailHandlers[_0xcba7b7(0xa7)](_0x3825ce,_0x29eac0=>{const _0x201175=_0xcba7b7;_0x29eac0[_0x201175(0xaf)]===_0x2dee24&&(_0x4b51f3=!![],userDetailHandlers[_0x201175(0xda)](_0x3825ce),_0x595f64[_0x201175(0x9f)](_0x5aef36,_0x29eac0));}),_0xd26d16[_0xcba7b7(0xb6)](_0x2dee24,[0x0])[_0xcba7b7(0xa9)](_0x2ee159=>{});});}static async[_0x2593db(0xb9)](_0x5a5e17,_0x514481=!![]){const _0x1690cd=_0x2593db,_0x3ffe92={'mdLBA':function(_0x476a8e,_0x55d4c2){return _0x476a8e||_0x55d4c2;},'CGsiC':function(_0x57019c,_0xb987dd){return _0x57019c>_0xb987dd;},'wevta':function(_0x1cfba8,_0x3b6d0d){return _0x1cfba8-_0x3b6d0d;},'ASVFF':function(_0x5d826f,_0x4c71a8){return _0x5d826f*_0x4c71a8;},'DMQvT':function(_0x1e132b,_0x4320c9){return _0x1e132b===_0x4320c9;},'vnuPk':function(_0x3af4b0,_0x3a5d1d,_0x32e902){return _0x3af4b0(_0x3a5d1d,_0x32e902);},'rYPEy':_0x1690cd(0xb0)};let _0x1f8867=[],_0x2baa2d={};for(let _0x4bd98d in _0x5a5e17){let _0x9ee510=CreLine truncated
|
||||
const _0x48d1fa=_0x204b;function _0x45b9(){const _0x5c7922=['CreatTime','4293849QCnpTJ','push','NtDXp','beBGu','assign','response','like','PklFW','dKlNo','getSkey','qzlBc','skey','uid','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','Ybwoz','session','setStatus','result','vTBln','getUserDetailInfo\x20timeout','32020vwWfhm','GkZLZ','getTicketService','154105ItouQc','tdJWQ','&clientkey=','cHacO','TKCTP','getRobotService','PskeyData','now','getUserDetailInfoWithBizInfo','emHXq','getProfileLikeService','QvwVk','HttpsGetCookies','get','fromEntries','entries','Skey','ZEJol','getRobotUinRange','setQQAvatar','setHeader','tnNlw','136RlFWBy','uin','qvRLm','YwfDf','onLoginSuccess','HXzRi','632880bHhSZc','forEach','JOSiu','then','获取Pskey失败','5361402pbooYe','clientKey','keyIndex','delete','BltlH','HGnjI','LgzHf','请求获取Skey时失败','getMsgService','3ZtDgqp','693iPnJMz','917712JLwFWJ','58613880gHmYOP','%2Finfocenter&keyindex=19%27','tCuZg','KeyIndex','length','forceFetchClientKey','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getProfileService','pdoVY','errMsg','getSelfInfo','addListener','setSelfOnlineStatus','ClientKey','getTipOffService','oxZlb','setBuddyProfileLike','domainPskeyMap','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','CSthU','8RCkiFa','set','11xEtqGK','QbzoY','PskeyTime'];_0x45b9=function(){return _0x5c7922;};return _0x45b9();}(function(_0x2ba81b,_0x1a1dd6){const _0x17db47=_0x204b,_0x4f74c1=_0x2ba81b();while(!![]){try{const _0x1d26e3=-parseInt(_0x17db47(0x1ed))/0x1+-parseInt(_0x17db47(0x1fd))/0x2*(parseInt(_0x17db47(0x1fb))/0x3)+parseInt(_0x17db47(0x1e7))/0x4*(-parseInt(_0x17db47(0x1d1))/0x5)+-parseInt(_0x17db47(0x1f2))/0x6+parseInt(_0x17db47(0x218))/0x7*(-parseInt(_0x17db47(0x212))/0x8)+parseInt(_0x17db47(0x1fc))/0x9*(-parseInt(_0x17db47(0x1ce))/0xa)+-parseInt(_0x17db47(0x214))/0xb*(-parseInt(_0x17db47(0x1fe))/0xc);if(_0x1d26e3===_0x1a1dd6)break;else _0x4f74c1['push'](_0x4f74c1['shift']());}catch(_0xd6a386){_0x4f74c1['push'](_0x4f74c1['shift']());}}}(_0x45b9,0xf2050));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';function _0x204b(_0x52f877,_0x21f5e0){const _0x45b976=_0x45b9();return _0x204b=function(_0x204b88,_0x25a762){_0x204b88=_0x204b88-0x1c5;let _0x335b5b=_0x45b976[_0x204b88];return _0x335b5b;},_0x204b(_0x52f877,_0x21f5e0);}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener['onProfileDetailInfoChanged']=_0x3297b5=>{const _0x522c7f=_0x204b;userInfoCache[_0x3297b5[_0x522c7f(0x1c6)]]=_0x3297b5,userDetailHandlers[_0x522c7f(0x1ee)](_0x1242f8=>_0x1242f8(_0x3297b5));},setTimeout(()=>{const _0x1e4936=_0x204b;napCatCore[_0x1e4936(0x1eb)](()=>{const _0x20e62c=_0x1e4936;napCatCore[_0x20e62c(0x209)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x48d1fa(0x20a)](_0x135afa,_0x19ebd6,_0x14a60f){const _0x58063f=_0x48d1fa;return napCatCore[_0x58063f(0x1c9)][_0x58063f(0x1fa)]()[_0x58063f(0x1ca)]({'status':_0x135afa,'extStatus':_0x19ebd6,'batteryStatus':_0x14a60f});}static async[_0x48d1fa(0x21e)](_0xecc396,_0x145de9=0x1){const _0x22d117=_0x48d1fa;return napCatCore['session'][_0x22d117(0x1db)]()[_0x22d117(0x20e)]({'friendUid':_0xecc396,'sourceId':0x47,'doLikeCount':_0x145de9,'doLikeTollCount':0x0});}static async[_0x48d1fa(0x1e4)](_0x15e00d){const _0x2cfe20=_0x48d1fa,_0x4beea0=napCatCore[_0x2cfe20(0x1c9)][_0x2cfe20(0x205)]()[_0x2cfe20(0x1e5)](_0x15e00d);return{'result':_0x4beea0?.[_0x2cfe20(0x1cb)],'errMsg':_0x4beea0?.[_0x2cfe20(0x207)]};}static async[_0x48d1fa(0x208)](){}static async['getUserInfo'](_0x45dbc0){}static async['getUserDetailInfo'](_0xd8fe73){const _0x2b1a3c=_0x48d1fa,_0xb4a987={'CSthU':function(_0x172a8b,_0x318708){return _0x172a8b(_0x318708);},'tCuZg':function(_0x1b8efe,_0x5376b3){return _0x1b8efe===_0x5376b3;},'NtDXp':function(_0x3ce1c6,_0x49acd6,_0x57c8a0){return _0x3ce1c6(_0x49acd6,_0x57c8a0);}},_0x436e39=napCatCore[_0x2b1a3c(0x1c9)][_0x2b1a3c(0x205)]();return new Promise((_0x503438,_0x480c11)=>{const _0x32bc5d=_0x2b1a3c,_0x38c7ed={'JOSiu':function(_0x110f61,_0x5ed9d8){const _0x41fd86=_0x204b;return _0xb4a987[_0x41fd86(0x200)](_0x110f61,_0x5ed9d8);}},_0x3a3e8d=randomUUID();let _0x4e2377=![],_0x5ba908=undefined,_0x52b43e=!![];_0xb4a987[_0x32bc5d(0x21a)](setTimeout,()=>{const _0xe6ae4a=_0x32bc5d;!_0x4e2377&&(_0x5ba908?_0xb4a987[_0xe6ae4a(0x211)](_0x503438,_0x5ba908):_0xb4a987[_0xe6ae4a(0x211)](_0x480c11,_0xe6ae4a(0x1cd))),userDetailHandlers[_0xe6ae4a(0x1f5)](_0x3a3e8d);},0x1388),userDetailHandlers[_0x32bc5d(0x213)](_0x3a3e8d,_0x225fd5=>{const _0xaf1b97=_0x32bc5d;_0x38c7ed[_0xaf1b97(0x1ef)](_0x225fd5['uid'],_0xd8fe73)&&(uid2UinMap[_0xd8fe73]=_0x225fd5['uin'],_0x52b43e?(_0x5ba908=_0x225fd5,_0x52b43e=![]):(_0x4e2377=!![],_0x5Line 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 _0x4d7dcf=_0x3caf;function _0x3caf(_0x5b37ef,_0x5b80a9){const _0x43e9f2=_0x43e9();return _0x3caf=function(_0x3caf9f,_0x373e9e){_0x3caf9f=_0x3caf9f-0x15a;let _0x5b8ffc=_0x43e9f2[_0x3caf9f];return _0x5b8ffc;},_0x3caf(_0x5b37ef,_0x5b80a9);}function _0x43e9(){const _0x57be82=['KTlNt','qOflm','wesly','wGHwh','&qid=','FUPxg','bNrjC','BwBTz','qun.qq.com','uyBgw','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','toString','p_skey=','iZFFb','GroupTime','3297906KTBevT','283716RsVXIa','lWLLH','GroupData','LXESh','KvJoG','errcode','bsZKh','UbOAl','PweZz','ceil','LtIQo','tDRcl','getPSkey','hIKTc','2vFhNsv','sqcNA','genBkn',';\x20p_uin=o','wkDiA','ZUTMD','HEAD','application/x-www-form-urlencoded','PodZK',';\x20skey=','&page_start=','&bkn=','setGroupNotice','set','webapi\x20获取群成员','TlFbA','retcode','&page_limit=20','swEza','JRMTz','1293203rAhDdX','jTbeU','count','push','fGpQD','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','urOYT','1986864nxGJxh','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','get','now','beutw','cVykq','KiGIK','&end=','getGrouptNotice','jpbms','getGroupMembers','IJsrE','HEMQC','RULii','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','wJxNu','length','IgNkd','acIQQ','httpDataJson','WDgeV','psMMy','LNiZO','vkyyp','uin','31815sDXykx','fBSaO','irKSL','zcYPI','eUTmv','getGroupEssenceMsg','text','oLCeq','UiKCd','mems','23266251bhCAGy','EQHme','DeeiB','fMwlc','YQCVB','XSVLr','getSkey','IZwNg','POST','GdMoA','YMJqD','2312UyzKRd','8061925qoSkxI','&group_code=','IFFrA','GET','mwFfZ'];_0x43e9=function(){return _0x57be82;};return _0x43e9();}(function(_0x5e2096,_0x2c5483){const _0x18939e=_0x3caf,_0x1770b3=_0x5e2096();while(!![]){try{const _0x21097f=parseInt(_0x18939e(0x173))/0x1*(-parseInt(_0x18939e(0x15f))/0x2)+-parseInt(_0x18939e(0x1be))/0x3+-parseInt(_0x18939e(0x17a))/0x4+-parseInt(_0x18939e(0x1a9))/0x5+parseInt(_0x18939e(0x1bd))/0x6+-parseInt(_0x18939e(0x193))/0x7*(-parseInt(_0x18939e(0x1a8))/0x8)+parseInt(_0x18939e(0x19d))/0x9;if(_0x21097f===_0x2c5483)break;else _0x1770b3['push'](_0x1770b3['shift']());}catch(_0x4bbdc6){_0x1770b3['push'](_0x1770b3['shift']());}}}(_0x43e9,0xe847b));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x4d7dcf(0x198)](_0x18bc8f,_0x24ea7b){const _0x57e81f=_0x4d7dcf,_0x27cc33={'swEza':_0x57e81f(0x1b6),'jpbms':function(_0x5ac32a,_0x2b15e3){return _0x5ac32a+_0x2b15e3;},'cVykq':function(_0x4b58d5,_0x21a5f9){return _0x4b58d5+_0x21a5f9;},'WDgeV':_0x57e81f(0x1ba),'CmAHP':_0x57e81f(0x162),'sqcNA':function(_0x296796,_0x40ec37){return _0x296796||_0x40ec37;},'XSVLr':function(_0x3d3564,_0x5c613b){return _0x3d3564+_0x5c613b;},'PVNcf':function(_0x33cfde,_0x339465){return _0x33cfde+_0x339465;},'beutw':function(_0x2ac0c5,_0x552636){return _0x2ac0c5+_0x552636;},'FUPxg':function(_0x2afc39,_0x21580f){return _0x2afc39+_0x21580f;},'LNiZO':function(_0x53372f,_0x277323){return _0x53372f+_0x277323;},'AJPnE':_0x57e81f(0x1b8),'JRMTz':_0x57e81f(0x1aa),'wesly':_0x57e81f(0x169),'mwFfZ':_0x57e81f(0x170)},_0x49b1b7=(await NTQQUserApi[_0x57e81f(0x15d)]([_0x27cc33['swEza']]))[_0x27cc33[_0x57e81f(0x171)]],_0x54a85e=await NTQQUserApi[_0x57e81f(0x1a3)](),_0x3dbf19=_0x27cc33[_0x57e81f(0x183)](_0x27cc33[_0x57e81f(0x183)](_0x27cc33[_0x57e81f(0x17f)](_0x27cc33[_0x57e81f(0x18e)]+_0x49b1b7+_0x57e81f(0x168),_0x54a85e)+_0x27cc33['CmAHP']+selfInfo[_0x57e81f(0x192)],';\x20uin=o'),selfInfo[_0x57e81f(0x192)]);if(_0x27cc33[_0x57e81f(0x160)](!_0x54a85e,!_0x49b1b7))return undefined;const _0x2e608f=WebApi[_0x57e81f(0x161)](_0x54a85e),_0x25f3ec=_0x27cc33[_0x57e81f(0x1a2)](_0x27cc33['PVNcf'](_0x27cc33[_0x57e81f(0x17e)](_0x27cc33[_0x57e81f(0x1b3)](_0x27cc33[_0x57e81f(0x190)](_0x27cc33[_0x57e81f(0x17f)](_0x27cc33['AJPnE'],_0x2e608f),_0x27cc33[_0x57e81f(0x172)]),_0x18bc8f),_0x27cc33[_0x57e81f(0x1b0)]),_0x24ea7b),_0x27cc33[_0x57e81f(0x1ad)]),_0x3d3668=await WebApi[_0x57e81f(0x18d)](_0x25f3ec,_0x57e81f(0x1ac),'',_0x3dbf19);if(_0x3d3668[_0x57e81f(0x16f)]!==0x0)return undefined;return _0x3d3668;}static async[_0x4d7dcf(0x184)](_0x58fd99,_0xd7db8=!![]){const _0x1db187=_0x4d7dcf,_0x251d07={'NhPDT':function(_0x19c619,_0x3ca47a,_0x2d4fbc){return _0x19c619(_0x3ca47a,_0x2d4fbc);},'LtIQo':_0x1db187(0x16d),'wkJFU':function(_0x3ea7d7,_0x4d58e7){return _0x3ea7d7>_0x4d58e7;},'jLZHg':function(_0x55a89a,_0x1e905d){return _0x55a89a-_0x1e905d;},'VxxVl':function(_0x4e2804,_0x4df142){return _0x4e2804*_0x4df142;},'TlFbA':function(_0x51be81,_0x13f6a5){return _0x51be81+_0x13f6a5;},'KvJoG':function(_0x4b1486,_0x22ec3d){return _0x4b1486+_0x22ec3d;},'aFuOs':_0x1db187(0x168),'HEMQC':';\x20p_uin=o','ZUTMD':function(_0x244aaa,_0x2cd222){return _0x244aaa||_0x2cd222;},'uyBgw':function(_0x1c8bd0,_0x1e915c){return _0x1c8bd0+_0x1e915c;},'GzEUs':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','LXESh':function(_0x4d64f7,_0x2d152a){Line truncated
|
||||
const _0x189648=_0x31e1;(function(_0x2ee1ef,_0x3d2ab7){const _0x26eeed=_0x31e1,_0x802e66=_0x2ee1ef();while(!![]){try{const _0x37b1d8=-parseInt(_0x26eeed(0x229))/0x1*(-parseInt(_0x26eeed(0x23b))/0x2)+-parseInt(_0x26eeed(0x1c4))/0x3+-parseInt(_0x26eeed(0x1ca))/0x4+parseInt(_0x26eeed(0x1f1))/0x5*(-parseInt(_0x26eeed(0x1b6))/0x6)+-parseInt(_0x26eeed(0x1a9))/0x7+-parseInt(_0x26eeed(0x1fd))/0x8*(-parseInt(_0x26eeed(0x22a))/0x9)+parseInt(_0x26eeed(0x1ec))/0xa*(parseInt(_0x26eeed(0x1ea))/0xb);if(_0x37b1d8===_0x3d2ab7)break;else _0x802e66['push'](_0x802e66['shift']());}catch(_0x15d812){_0x802e66['push'](_0x802e66['shift']());}}}(_0x488e,0xe051e));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x31e1(_0x49627a,_0x5884b4){const _0x488ef7=_0x488e();return _0x31e1=function(_0x31e136,_0x1df322){_0x31e136=_0x31e136-0x1a3;let _0x115336=_0x488ef7[_0x31e136];return _0x115336;},_0x31e1(_0x49627a,_0x5884b4);}import{RequestUtil}from'@/common/utils/request';export var WebHonorType;function _0x488e(){const _0x4fb87f=['ctEdF','uin','YRwHz','&group_code=','description','STORONGE_NEWBI','DtpHL','HttpGetJson','parse','strong_newbie','TALKACTIVE',';\x20uin=o','emotion','3587749THDsia','&bkn=','40yLNrGs','setGroupNotice','SWqiz','getGrouptNotice','vwbRJ','1645bMhBdU','legend','alydf','p_skey=','nwgnJ','yFYwW','CJeMz','mixdN','mems','NDzGl','IsmTp','yNZXD','97960skYlaO','sMkAa','rvGsV','lJPuZ','EMOTION','MJXSL','iPhKm','EmVEz','jioYP','LLYqp','KoAbL','DdMnI','JwNDU','RiXkw','KKADu','qDYVL','GNMMs','&page_limit=20','genBkn','KQVDJ','BmHeL','performer_list','errcode','JIZtg','vmGSQ','获取快乐源泉失败','now','charCodeAt','UUaDM','UaOUv','get','获取当前群荣耀失败','qPdLW','mYFmp','talkative_list','&end=','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','liAVQ','LsvLi','ALL','talkativeList','获取龙王信息失败','PERFROMER','GroupData','760618vTjFeC','585gCCqKq','JJNJb','&page_start=','getGroupHonorInfo','YgNxQ','Kdmoz','emotion_list','YKtwG','getGroupMembers','vmVKH','ImNfw','mobfg','OdLHL','strong_newbie_list','set','fhIrY','getGroupEssenceMsg','4EgOGzH','muRfT','uIHXF','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','eNZUb','bYcDf','Alwxu','AFkyG','whEkI','name','push','cHUSs','VFmcl','EeDNn','vnPtC','current_talkative','webapi\x20获取群成员','qyKtM','gjOcV','1139110qqDDXQ','UZzzP','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','split','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','legend_list','qun.qq.com','RuYGa','GET','JdDXb','HikSS','GroupTime','1806XmjYVO',';\x20skey=','jpFvf','length','jckdL','dXukE','count','lLCzn','actorList','desc','toString','getSkey','ADkfC','getPSkey','3340341rlWqHf','utAec','vstPa','HttpGetText','esEPq','tNGPv','5311108ghlhYl',';\x20p_uin=o','zEWTO','WeyXY','talkative','https://qun.qq.com/interactive/honorlist?gc=','XXuOS','Ohnxk','1|0|5|4|2|3','mHBkO','&text=','PVwaL','avatar','PXBkZ','&qid=','trim','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','qYyEU','HhjTm'];_0x488e=function(){return _0x4fb87f;};return _0x488e();}(function(_0x532d5f){const _0x3cd6dd=_0x31e1,_0x5e51ae={'CJeMz':_0x3cd6dd(0x1d2),'KQVDJ':_0x3cd6dd(0x1e7),'OTaqe':_0x3cd6dd(0x1ce),'BmHeL':_0x3cd6dd(0x224),'whEkI':'all','DtpHL':_0x3cd6dd(0x1e2),'tNGPv':_0x3cd6dd(0x201),'JIZtg':'LEGEND','BJNGt':_0x3cd6dd(0x1f2),'jckdL':'performer'},_0x1fbf42=_0x5e51ae[_0x3cd6dd(0x1f7)][_0x3cd6dd(0x1ac)]('|');let _0x207527=0x0;while(!![]){switch(_0x1fbf42[_0x207527++]){case'0':_0x532d5f[_0x5e51ae[_0x3cd6dd(0x210)]]=_0x5e51ae['OTaqe'];continue;case'1':_0x532d5f[_0x5e51ae[_0x3cd6dd(0x211)]]=_0x5e51ae[_0x3cd6dd(0x243)];continue;case'2':_0x532d5f[_0x5e51ae[_0x3cd6dd(0x1e3)]]=_0x3cd6dd(0x1e6);continue;case'3':_0x532d5f[_0x5e51ae[_0x3cd6dd(0x1c9)]]=_0x3cd6dd(0x1e9);continue;case'4':_0x532d5f[_0x5e51ae[_0x3cd6dd(0x214)]]=_0x5e51ae['BJNGt'];continue;case'5':_0x532d5f[_0x3cd6dd(0x227)]=_0x5e51ae[_0x3cd6dd(0x1ba)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x189648(0x23a)](_0x76cdbf,_0x39ed0c){const _0x1c6538=_0x189648,_0x24f7d2={'GNMMs':function(_0x56f71d,_0x4ab0b7){return _0x56f71d+_0x4ab0b7;},'mYFmp':function(_0x192d91,_0x41d362){return _0x192d91+_0x41d362;},'lLCzn':'p_skey=','rvGsV':_0x1c6538(0x1b7),'vmVKH':_0x1c6538(0x1cb),'EeDNn':_0x1c6538(0x1e8),'YKtwG':function(_0x3a3f90,_0x140b12){return _0x3a3f90||_0x140b12;},'vmGSQ':function(_0x33add7,_0xe15261){return _0x33add7+_0xe15261;},'bYcDf':function(_0x167752,_0x195966){return _0x167752+_0x195966;},'yFYwW':function(_0x471693,_0x82aa4c){return _0x471693+_0x82aa4c;},'esEPq':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','NDzGl':_0x1c6538(0x1e0),'LWgTI':_0x1c6538(0x22c),'CJcBR':_0x1c6538(0x20e),'jioYP':_0x1c6538(0x1b2),'Kdmoz':function(_0xff3b26,_0x52c761){return _0xff3b26Line truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x1cdb74,_0x12b210){var _0x24d875=_0x3ca4,_0x54e040=_0x1cdb74();while(!![]){try{var _0x171562=-parseInt(_0x24d875(0x287))/0x1*(parseInt(_0x24d875(0x1cd))/0x2)+-parseInt(_0x24d875(0xa1))/0x3*(-parseInt(_0x24d875(0x242))/0x4)+-parseInt(_0x24d875(0x361))/0x5*(-parseInt(_0x24d875(0x2bd))/0x6)+-parseInt(_0x24d875(0x35e))/0x7+-parseInt(_0x24d875(0x33e))/0x8*(parseInt(_0x24d875(0x3fd))/0x9)+parseInt(_0x24d875(0x296))/0xa*(parseInt(_0x24d875(0x9a))/0xb)+parseInt(_0x24d875(0xd8))/0xc;if(_0x171562===_0x12b210)break;else _0x54e040['push'](_0x54e040['shift']());}catch(_0x24914a){_0x54e040['push'](_0x54e040['shift']());}}}(_0x539d,0x290be),function(_0x365f77,_0x204cc5){var _0x488e50=_0x3ca4,_0x21c7f3={'umAMr':function(_0x513e5a){return _0x513e5a();},'bxvux':function(_0x4a17ec,_0x12b5ed){return _0x4a17ec+_0x12b5ed;},'vYHwu':function(_0x27021b,_0x4450dc){return _0x27021b+_0x4450dc;},'XAwyF':function(_0x4293d3,_0x14ca46){return _0x4293d3+_0x14ca46;},'zKgIe':function(_0x1a8b02,_0x9f8a07){return _0x1a8b02/_0x9f8a07;},'fUuwc':function(_0xb170c0,_0x9c5197){return _0xb170c0(_0x9c5197);},'GQwBV':function(_0x31844e,_0x4d7321){return _0x31844e*_0x4d7321;},'smggZ':function(_0x5a8faa,_0x2156ad){return _0x5a8faa/_0x2156ad;},'IAgdP':function(_0xc53455,_0x570d3d){return _0xc53455(_0x570d3d);},'Idsgw':function(_0x28edf2,_0x1ca15a){return _0x28edf2/_0x1ca15a;},'zgyoA':function(_0x2003f2,_0x1d4000){return _0x2003f2/_0x1d4000;},'FeLnx':function(_0xa0a7c5,_0x214548){return _0xa0a7c5/_0x214548;},'COetT':function(_0x14e117,_0x147ede){return _0x14e117(_0x147ede);},'IHlhK':function(_0x2ddcaa,_0x40582e){return _0x2ddcaa*_0x40582e;},'LtelG':function(_0x3dae08,_0x173b82){return _0x3dae08(_0x173b82);},'QnreX':function(_0x115ee4,_0x1000f9){return _0x115ee4(_0x1000f9);},'fboDN':function(_0x36237d,_0x54e95b){return _0x36237d/_0x54e95b;},'jhDai':function(_0x58cb7a,_0x1e65f4){return _0x58cb7a(_0x1e65f4);},'iRRPW':function(_0x423f6f,_0x182557){return _0x423f6f/_0x182557;},'uuvdl':function(_0x2f7c1f,_0x212b11){return _0x2f7c1f(_0x212b11);},'VasLK':function(_0x221735,_0x390eef){return _0x221735(_0x390eef);},'MrPQr':function(_0x5b067c,_0x3d327a){return _0x5b067c/_0x3d327a;},'PXgMp':function(_0x48a947,_0x11dce6){return _0x48a947(_0x11dce6);},'IjxmS':_0x488e50(0x1a3)},_0x3a1f12=_0x42f4,_0x71a89=_0x21c7f3[_0x488e50(0xb7)](_0x365f77);while(!![]){try{var _0x43309b=_0x21c7f3[_0x488e50(0x36f)](_0x21c7f3['bxvux'](_0x21c7f3[_0x488e50(0x36f)](_0x21c7f3[_0x488e50(0x11b)](_0x21c7f3[_0x488e50(0x2d5)](_0x21c7f3[_0x488e50(0x23c)](_0x21c7f3[_0x488e50(0xcf)](parseInt,_0x21c7f3[_0x488e50(0xcf)](_0x3a1f12,0x215)),0x1),_0x21c7f3[_0x488e50(0x206)](_0x21c7f3[_0x488e50(0x13a)](parseInt(_0x21c7f3['IAgdP'](_0x3a1f12,0x296)),0x2),_0x21c7f3[_0x488e50(0x2d7)](-parseInt(_0x21c7f3['IAgdP'](_0x3a1f12,0x138)),0x3))),_0x21c7f3['GQwBV'](_0x21c7f3[_0x488e50(0x3f6)](-_0x21c7f3['IAgdP'](parseInt,_0x3a1f12(0x26b)),0x4),_0x21c7f3[_0x488e50(0xbf)](-_0x21c7f3[_0x488e50(0x101)](parseInt,_0x3a1f12(0x20a)),0x5))),_0x21c7f3[_0x488e50(0x13b)](_0x21c7f3[_0x488e50(0x101)](parseInt,_0x3a1f12(0x1d8))/0x6,_0x21c7f3[_0x488e50(0x23c)](parseInt(_0x21c7f3[_0x488e50(0x318)](_0x3a1f12,0x256)),0x7))),_0x21c7f3['zgyoA'](-_0x21c7f3[_0x488e50(0x31a)](parseInt,_0x21c7f3[_0x488e50(0x418)](_0x3a1f12,0x1df)),0x8))+_0x21c7f3[_0x488e50(0x3cb)](-_0x21c7f3['jhDai'](parseInt,_0x3a1f12(0x150)),0x9),_0x21c7f3[_0x488e50(0xd9)](_0x21c7f3['uuvdl'](parseInt,_0x21c7f3[_0x488e50(0x23f)](_0x3a1f12,0x1c8)),0xa)*_0x21c7f3[_0x488e50(0x297)](parseInt(_0x21c7f3['PXgMp'](_0x3a1f12,0x16b)),0xb));if(_0x43309b===_0x204cc5)break;else _0x71a89[_0x488e50(0x1af)](_0x71a89[_0x21c7f3[_0x488e50(0x236)]]());}catch(_0x3aa2c4){_0x71a89[_0x488e50(0x1af)](_0x71a89[_0x21c7f3['IjxmS']]());}}}(_0x526e,0x6f4d4));var _0x165ea7=_0x2ac8;function _0x3ca4(_0x593635,_0x293190){var _0x539d1d=_0x539d();return _0x3ca4=function(_0x3ca49b,_0x27ef52){_0x3ca49b=_0x3ca49b-0x8d;var _0x23d302=_0x539d1d[_0x3ca49b];return _0x23d302;},_0x3ca4(_0x593635,_0x293190);}(function(_0x4cc4f8,_0x4c7519){var _0x1f5295=_0x3ca4,_0x55a697={'OyyfA':function(_0x2434d7){return _0x2434d7();},'JfYQo':function(_0x2c9c11,_0x468a71){return _0x2c9c11+_0x468a71;},'EHenB':function(_0x2033dd,_0xdeeaf8){return _0x2033dd(_0xdeeaf8);},'WOCPB':function(_0x4ce1a9,_0x64129c){return _0x4ce1a9*_0x64129c;},'ECEGC':function(_0x1e3e6e,_0x222ada){return _0x1e3e6e/_0x222ada;},'bAlZo':function(_0x19fdfe,_0x577821){return _0x19fdfe(_0x577821);},'IiNgo':function(_0x1c4550,_0x4abf8a){return _0x1c4550(_0x4abf8a);},'hOXxI':function(_0x16d70a,_0x4524cd){return _0x16d70a/_0x4524cd;},'DbCUP':function(_0x735da2,_0x543408){return _0x735da2(_0x543408);},'KMMvu':_0x1f5295(0x1af),'fIcqr':function(_0x199524,_0x2ba4c7){return _0x199524(_0x2ba4c7);},'oIDss':'sGnsE','HWpHP':function(_0x3e1588,_0x365e06){return _0x3e1588(_0x365e06);},'pkizD':function(_0x5136b0,_0x1927ab){return _0x5136b0(_0x1927ab);},'umhBL':_0x1f5295(0x437),'BFOGt':function(_0x499959,_0x261905){return _0x499959*_0x261905;},'WcgMI':function(_0x7ec306,_0x9Line 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 _0x3a0416=_0x15f8;(function(_0x54563a,_0x12635b){const _0xb54c8a=_0x15f8,_0x248288=_0x54563a();while(!![]){try{const _0x27d77a=parseInt(_0xb54c8a(0x17a))/0x1*(-parseInt(_0xb54c8a(0x1b3))/0x2)+-parseInt(_0xb54c8a(0x1a4))/0x3+-parseInt(_0xb54c8a(0x197))/0x4+-parseInt(_0xb54c8a(0x183))/0x5*(-parseInt(_0xb54c8a(0x170))/0x6)+parseInt(_0xb54c8a(0x181))/0x7*(-parseInt(_0xb54c8a(0x1db))/0x8)+parseInt(_0xb54c8a(0x196))/0x9+parseInt(_0xb54c8a(0x18e))/0xa;if(_0x27d77a===_0x12635b)break;else _0x248288['push'](_0x248288['shift']());}catch(_0x58e7bd){_0x248288['push'](_0x248288['shift']());}}}(_0x3715,0xdaad9));import _0x17cdfa from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';function _0x15f8(_0x421e60,_0x39ec0f){const _0x3715d0=_0x3715();return _0x15f8=function(_0x15f80c,_0x340d39){_0x15f80c=_0x15f80c-0x14a;let _0x17e916=_0x3715d0[_0x15f80c];return _0x17e916;},_0x15f8(_0x421e60,_0x39ec0f);}import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x2f1663 from'node:path';import _0x403b1d from'node:os';import _0x3196cc from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x3111ba from'node:crypto';import{friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x3a0416(0x192)];[_0x3a0416(0x18f)];[_0x3a0416(0x1e0)];[_0x3a0416(0x19b)];['loginListener'];['onLoginSuccessFuncList']=[];['proxyHandler']={'get'(target,prop,receiver){const _0x438d8c=_0x3a0416,rsiQYA={'qwZTa':function(x,y){return x===y;},'JvCUo':_0x438d8c(0x16f)};if(rsiQYA['qwZTa'](typeof target[prop],rsiQYA[_0x438d8c(0x16d)]))return(...args)=>{const _0x7f6600=_0x438d8c;logDebug(target[_0x7f6600(0x1bc)][_0x7f6600(0x1b4)]+_0x7f6600(0x178)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x500b90=_0x3a0416,_0x1ded99={'qQMcb':function(_0x466e67,_0x4b79b8){return _0x466e67(_0x4b79b8);},'YBYox':function(_0x3b223a,_0x301491){return _0x3b223a+_0x301491;},'SRGyq':_0x500b90(0x1f9),'NDoQJ':_0x500b90(0x1a7),'yKUJv':function(_0x3eed72,_0x500e6f,_0x469cdf){return _0x3eed72(_0x500e6f,_0x469cdf);},'gESPa':function(_0x1d70b8,_0x29d879,_0x902f6a){return _0x1d70b8(_0x29d879,_0x902f6a);},'ZJMQS':function(_0x2da8bc,_0x28f7c5,_0x26c2e2){return _0x2da8bc(_0x28f7c5,_0x26c2e2);},'zkRhz':_0x500b90(0x175),'XeXxY':function(_0x13b63d,_0x59c371,_0x35f8de){return _0x13b63d(_0x59c371,_0x35f8de);},'BQRYg':'登录失败','xfIKr':function(_0x2fd679,_0x4db37d){return _0x2fd679==_0x4db37d;}};this[_0x500b90(0x1e0)]=new _0x17cdfa['NodeIQQNTWrapperEngine'](),this[_0x500b90(0x18f)]=new _0x17cdfa['NodeQQNTWrapperUtil'](),this[_0x500b90(0x19b)]=new _0x17cdfa[(_0x500b90(0x193))](),this[_0x500b90(0x192)]=new _0x17cdfa['NodeIQQNTWrapperSession'](),this[_0x500b90(0x14d)]=new LoginListener(),this['loginListener'][_0x500b90(0x1a2)]=_0x1d61bd=>{const _0x46b20b=_0x500b90;_0x1ded99[_0x46b20b(0x15f)](logError,_0x1ded99['YBYox'](_0x1ded99[_0x46b20b(0x172)](_0x1ded99[_0x46b20b(0x184)],_0x1d61bd),_0x1ded99[_0x46b20b(0x157)]));},this[_0x500b90(0x14d)]['onQRCodeLoginSucceed']=_0xc092cd=>{const _0xa6af38=_0x500b90,_0x53c15a={'VUtAL':function(_0x442b82,_0xd8b05b,_0x10446d){const _0x52a103=_0x15f8;return _0x1ded99[_0x52a103(0x1c7)](_0x442b82,_0xd8b05b,_0x10446d);},'zXLNX':function(_0x5f2a9c,_0xe87998){const _0x19bebb=_0x15f8;return _0x1ded99[_0x19bebb(0x15f)](_0x5f2a9c,_0xe87998);},'EesiQ':function(_0x44c78d,_0x4e7f67){return _0x1ded99['qQMcb'](_0x44c78d,_0x4e7f67);},'tNbKE':function(_0x14dcb9,_0x2b2fc9,_0x2788da){const _0x46efef=_0x15f8;return _0x1ded99[_0x46efef(0x14b)](_0x14dcb9,_0x2b2fc9,_0x2788da);},'JjvqO':_0x1ded99[_0xa6af38(0x1f1)]};this[_0xa6af38(0x1f6)](_0xc092cd[_0xa6af38(0x17b)],_0xc092cd[_0xa6af38(0x1de)])[_0xa6af38(0x15c)](_0x4323d6=>{const _0x240b74=_0xa6af38;selfInfo[_0x240b74(0x17b)]=_0xc092cd[_0x240b74(0x17b)],selfInfo[_0x240b74(0x1de)]=_0xc092cd[_0x240b74(0x1de)],napCatConfig[_0x240b74(0x14c)](),_0x53c15a[_0x240b74(0x14e)](setLogLevel,napCatConfig[_0x240b74(0x176)],napCatConfig[_0x240b74(0x156)]),_0x53c15a['zXLNX'](enableFileLog,napCatConfig['fileLog']),_0x53c15a['zXLNX'](enableConsoleLog,napCatConfig[_0x240b74(0x167)]),_0x53c15a[_0x240b74(0x1b8)](setLogSelfInfo,selfInfo);const _0x31369e=_0x2f1663['resolve'](this[_0x240b74(0x1c4)],_0x240b74(0x1ba));_0x3196cc[_0x240b74(0x17f)](_0x31369e,{'recursive':!![]}),_0x53c15a[_0x240b74(0x1d0)](logDebug,_0x53c15a[_0x240b74(0x1a1)],_0x31369e),dbUtil['init'](_0x2f1663[_0x240b74(0x1d9)](_0x31369e,'./'+_0xc092cd['uin']+_0x240b74(0x16c)))[_0x240b74(0x15c)](()=>{const _0x64caa5=_0x240b74;this[_0x64caa5(0x1fb)](),thiLine truncated
|
||||
const _0x18ed85=_0x5b96;(function(_0x33e707,_0x15884e){const _0x1beff6=_0x5b96,_0x2dba40=_0x33e707();while(!![]){try{const _0x11c8ce=-parseInt(_0x1beff6(0xe6))/0x1+parseInt(_0x1beff6(0xc3))/0x2*(parseInt(_0x1beff6(0xc0))/0x3)+parseInt(_0x1beff6(0xd6))/0x4+-parseInt(_0x1beff6(0x11b))/0x5+parseInt(_0x1beff6(0x9e))/0x6*(parseInt(_0x1beff6(0xfe))/0x7)+parseInt(_0x1beff6(0xaf))/0x8*(parseInt(_0x1beff6(0xe7))/0x9)+parseInt(_0x1beff6(0x10f))/0xa*(-parseInt(_0x1beff6(0xce))/0xb);if(_0x11c8ce===_0x15884e)break;else _0x2dba40['push'](_0x2dba40['shift']());}catch(_0x1fa91c){_0x2dba40['push'](_0x2dba40['shift']());}}}(_0x56da,0x59cab));import _0x200fa5 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x12f589 from'node:path';import _0xe4a279 from'node:os';import _0x2c10c1 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x2e6b13 from'node:crypto';function _0x5b96(_0x4352ec,_0x145b50){const _0x56dae9=_0x56da();return _0x5b96=function(_0x5b9614,_0x31d007){_0x5b9614=_0x5b9614-0x78;let _0xd66b60=_0x56dae9[_0x5b9614];return _0xd66b60;},_0x5b96(_0x4352ec,_0x145b50);}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{['session'];[_0x18ed85(0x94)];[_0x18ed85(0x7d)];[_0x18ed85(0x132)];[_0x18ed85(0xd9)];[_0x18ed85(0x78)]=[];[_0x18ed85(0x82)]={'get'(target,prop,receiver){const _0x45af1c=_0x18ed85,MLpJfr={'vQkRA':function(callee,param1){return callee(param1);},'nEvDq':function(x,y){return x===y;},'PxYSe':'undefined'};if(MLpJfr[_0x45af1c(0x130)](typeof target[prop],MLpJfr[_0x45af1c(0x128)]))return(...args)=>{const _0x454c7a=_0x45af1c;MLpJfr[_0x454c7a(0x7a)](logDebug,target[_0x454c7a(0x99)][_0x454c7a(0x108)]+_0x454c7a(0xe5)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x4e0dee=_0x18ed85,_0x1dd8e5={'YkOpP':function(_0xdb7f6f,_0x1d0e5d){return _0xdb7f6f(_0x1d0e5d);},'WrOBX':function(_0x5f4be9,_0x40d329){return _0x5f4be9+_0x40d329;},'vvEQC':'当前账号(','Jsand':_0x4e0dee(0x91),'GPUpl':function(_0x1225ca,_0x41714d){return _0x1225ca(_0x41714d);},'eQMPQ':_0x4e0dee(0x105),'oGaVU':function(_0x16bf3a,_0x4f339c,_0x3177d1){return _0x16bf3a(_0x4f339c,_0x3177d1);},'lzsPX':_0x4e0dee(0xed),'YcrAQ':'initSession\x20failed','bmhTJ':function(_0x2435cc,_0x27997c,_0x3dd129){return _0x2435cc(_0x27997c,_0x3dd129);},'LWLfM':_0x4e0dee(0x9c)};this[_0x4e0dee(0x7d)]=new _0x200fa5[(_0x4e0dee(0x8e))](),this[_0x4e0dee(0x94)]=new _0x200fa5['NodeQQNTWrapperUtil'](),this[_0x4e0dee(0xd9)]=new _0x200fa5[(_0x4e0dee(0x11c))](),this[_0x4e0dee(0xc2)]=new _0x200fa5['NodeIQQNTWrapperSession'](),this[_0x4e0dee(0x132)]=new LoginListener(),this[_0x4e0dee(0x132)]['onUserLoggedIn']=_0x1697ba=>{const _0x632f6b=_0x4e0dee;_0x1dd8e5['YkOpP'](logError,_0x1dd8e5[_0x632f6b(0xcc)](_0x1dd8e5[_0x632f6b(0x129)]+_0x1697ba,_0x632f6b(0xf7)));},this['loginListener'][_0x4e0dee(0x86)]=_0x1121d7=>{const _0x57d2d6=_0x4e0dee,_0x419141={'PEERq':function(_0x12b9a8,_0x230e4c,_0x39cfbb){const _0x5c475d=_0x5b96;return _0x1dd8e5[_0x5c475d(0xd7)](_0x12b9a8,_0x230e4c,_0x39cfbb);},'fgajw':_0x1dd8e5[_0x57d2d6(0x131)]};this[_0x57d2d6(0xd2)](_0x1121d7[_0x57d2d6(0x12d)],_0x1121d7['uid'])['then'](_0x223893=>{const _0x33bbfb=_0x57d2d6,_0xfd75c3={'egoiO':_0x1dd8e5[_0x33bbfb(0xde)]};selfInfo['uin']=_0x1121d7[_0x33bbfb(0x12d)],selfInfo[_0x33bbfb(0x120)]=_0x1121d7[_0x33bbfb(0x120)],napCatConfig[_0x33bbfb(0x98)](),setLogLevel(napCatConfig[_0x33bbfb(0x127)],napCatConfig[_0x33bbfb(0xa7)]),_0x1dd8e5['GPUpl'](enableFileLog,napCatConfig[_0x33bbfb(0xaa)]),enableConsoleLog(napCatConfig[_0x33bbfb(0x8d)]),setLogSelfInfo(selfInfo);const _0x18ab5d=_0x12f589['resolve'](this['dataPath'],_0x1dd8e5[_0x33bbfb(0x133)]);_0x2c10c1[_0x33bbfb(0xcb)](_0x18ab5d,{'recursive':!![]}),_0x1dd8e5[_0x33bbfb(0xd7)](logDebug,_0x1dd8e5['lzsPX'],_0x18ab5d),dbUtil[_0x33bbfb(0x7b)](_0x12f589[_0x33bbfb(0xad)](_0x18ab5d,'./'+_0x1121d7[_0x33bbfb(0x12d)]+_0x33bbfb(0xf5)))[_0x33bbfb(0x97)](()=>{const _0x154b81=_0x33bbfb,_0x447170={'xuJJs':function(_0x233f96,_0x2f7b4d,_0x507c9a){return _0x233f96(_0x2f7b4d,_0x507c9a);}};this['initDataListener'](),this[_0x154b81(0x78)]['map'](_0x8c4632=>{const _0x3d4ae7={'sUutm':function(_0x14520a,_0x11c905,_0x506c37){return _0x447170['xuJJs'](_0x14520a,_0x11c905,_0x506c37);}};new Promise((_0x3be730,_0x4cc309)=>{const _0x1b2e36=_0x5b96,_0x181cc1=_0x3d4ae7[_0x1b2e36(0xd3)](_0x8c4632,_0x1121d7[_0x1b2e36(0x12d)],_0x1121d7[_0x1b2e36(0x120)]);_0x181cc1 instanceof Promise&&_0x181cc1[_0x1b2e36(0Line truncated
|
||||
Vendored
+5
-1
@@ -1,8 +1,11 @@
|
||||
import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo } from './entities';
|
||||
import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities';
|
||||
import { WebApiGroupMember } from '@/core/apis';
|
||||
export declare const Credentials: {
|
||||
Skey: string;
|
||||
CreatTime: number;
|
||||
Cookies: Map<string, string>;
|
||||
ClientKey: string;
|
||||
KeyIndex: string;
|
||||
PskeyData: Map<string, string>;
|
||||
PskeyTime: Map<string, number>;
|
||||
};
|
||||
@@ -29,6 +32,7 @@ export declare function getGroupMember(groupQQ: string | number, memberUinOrUid:
|
||||
export declare const uid2UinMap: Record<string, string>;
|
||||
export declare function getUidByUin(uin: string): string | undefined;
|
||||
export declare const tempGroupCodeMap: Record<string, string>;
|
||||
export declare const rawFriends: Array<BuddyCategoryType>;
|
||||
export declare const stat: {
|
||||
packet_received: number;
|
||||
packet_sent: number;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x474d1f=_0x3cc6;(function(_0x484c3c,_0x3e08b9){const _0x55a41e=_0x3cc6,_0x4b3d93=_0x484c3c();while(!![]){try{const _0x5db001=parseInt(_0x55a41e(0xaa))/0x1+-parseInt(_0x55a41e(0xab))/0x2+-parseInt(_0x55a41e(0xb4))/0x3+parseInt(_0x55a41e(0xb6))/0x4*(parseInt(_0x55a41e(0xb3))/0x5)+-parseInt(_0x55a41e(0xa9))/0x6*(parseInt(_0x55a41e(0xb5))/0x7)+-parseInt(_0x55a41e(0xb9))/0x8*(-parseInt(_0x55a41e(0xa8))/0x9)+parseInt(_0x55a41e(0xa2))/0xa;if(_0x5db001===_0x3e08b9)break;else _0x4b3d93['push'](_0x4b3d93['shift']());}catch(_0x2c3753){_0x4b3d93['push'](_0x4b3d93['shift']());}}}(_0x3cac,0x859f6));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';function _0x3cc6(_0x40c26d,_0x17c8ba){const _0x3cacdc=_0x3cac();return _0x3cc6=function(_0x3cc6f9,_0x4e9b5c){_0x3cc6f9=_0x3cc6f9-0xa2;let _0x17935a=_0x3cacdc[_0x3cc6f9];return _0x17935a;},_0x3cc6(_0x40c26d,_0x17c8ba);}export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x273c3d){const _0x262587=_0x3cc6;groups[_0x262587(0xa6)](_0x273c3d),groupMembers[_0x262587(0xa6)](_0x273c3d);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};function _0x3cac(){const _0x28ba2e=['27698720UhRqZu','forEach','getGroupMembers','find','delete','from','4392hXvAvr','2139378TPffZD','400267IDbVTT','2125254VKBPkE','set','toString','NapCat未能正常启动,请检查日志查看错误','get','length','groupCode','getGroups','35iVIBKX','2873178OfRMfZ','21cfQpIN','80428MJJroX','values','kwcyn','5352PtfEqM','jUXHE'];_0x3cac=function(){return _0x28ba2e;};return _0x3cac();}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x474d1f(0xae)};export async function getFriend(_0x2cb391){const _0x35c43a=_0x474d1f,_0x33d6c5={'jUXHE':function(_0x202486,_0x16f9c7){return _0x202486(_0x16f9c7);}};_0x2cb391=_0x2cb391['toString']();if(_0x33d6c5[_0x35c43a(0xba)](isNumeric,_0x2cb391)){const _0x20d36d=Array[_0x35c43a(0xa7)](friends[_0x35c43a(0xb7)]());return _0x20d36d['find'](_0x36c139=>_0x36c139['uin']===_0x2cb391);}else return friends[_0x35c43a(0xaf)](_0x2cb391);}export async function getGroup(_0x403de7){const _0x42ebdd=_0x474d1f;let _0x49ba4d=groups[_0x42ebdd(0xaf)](_0x403de7[_0x42ebdd(0xad)]());if(!_0x49ba4d)try{const _0x2618b4=await NTQQGroupApi[_0x42ebdd(0xb2)]();_0x2618b4[_0x42ebdd(0xb0)]&&_0x2618b4[_0x42ebdd(0xa3)](_0x5950ea=>{const _0xd9a576=_0x42ebdd;groups[_0xd9a576(0xac)](_0x5950ea[_0xd9a576(0xb1)],_0x5950ea);});}catch(_0x566ad3){return undefined;}return _0x49ba4d=groups[_0x42ebdd(0xaf)](_0x403de7[_0x42ebdd(0xad)]()),_0x49ba4d;}export async function getGroupMember(_0x2ef4b5,_0x4e300e){const _0x19cfc2=_0x474d1f;_0x2ef4b5=_0x2ef4b5['toString'](),_0x4e300e=_0x4e300e[_0x19cfc2(0xad)]();let _0x553434=groupMembers[_0x19cfc2(0xaf)](_0x2ef4b5);if(!_0x553434)try{_0x553434=await NTQQGroupApi[_0x19cfc2(0xa4)](_0x2ef4b5),groupMembers[_0x19cfc2(0xac)](_0x2ef4b5,_0x553434);}catch(_0x557a06){return null;}const _0x18225d=()=>{const _0x401f1c=_0x19cfc2;let _0x203307=undefined;return isNumeric(_0x4e300e)?_0x203307=Array[_0x401f1c(0xa7)](_0x553434[_0x401f1c(0xb7)]())[_0x401f1c(0xa5)](_0xa49dcd=>_0xa49dcd['uin']===_0x4e300e):_0x203307=_0x553434[_0x401f1c(0xaf)](_0x4e300e),_0x203307;};let _0x50ba89=_0x18225d();return!_0x50ba89&&(_0x553434=await NTQQGroupApi[_0x19cfc2(0xa4)](_0x2ef4b5),_0x50ba89=_0x18225d()),_0x50ba89;}export const uid2UinMap={};export function getUidByUin(_0x1a604f){const _0xedf8ca=_0x474d1f,_0x4961e3={'kwcyn':function(_0x14a7b4,_0x3c4d98){return _0x14a7b4===_0x3c4d98;}};for(const _0x4b3e9b in uid2UinMap){if(_0x4961e3[_0xedf8ca(0xb8)](uid2UinMap[_0x4b3e9b],_0x1a604f))return _0x4b3e9b;}}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
||||
function _0x1642(_0x1a8662,_0x1d40c7){const _0x66d13f=_0x66d1();return _0x1642=function(_0x164216,_0x1ad570){_0x164216=_0x164216-0xe3;let _0x380bd3=_0x66d13f[_0x164216];return _0x380bd3;},_0x1642(_0x1a8662,_0x1d40c7);}(function(_0x1866c3,_0xe707af){const _0x7fb1e8=_0x1642,_0x3fac90=_0x1866c3();while(!![]){try{const _0x13d3e7=parseInt(_0x7fb1e8(0xea))/0x1*(-parseInt(_0x7fb1e8(0xe4))/0x2)+-parseInt(_0x7fb1e8(0xeb))/0x3+-parseInt(_0x7fb1e8(0xf8))/0x4+-parseInt(_0x7fb1e8(0xf1))/0x5+-parseInt(_0x7fb1e8(0xe7))/0x6+parseInt(_0x7fb1e8(0xf0))/0x7*(-parseInt(_0x7fb1e8(0xf4))/0x8)+-parseInt(_0x7fb1e8(0xf7))/0x9*(-parseInt(_0x7fb1e8(0xe8))/0xa);if(_0x13d3e7===_0xe707af)break;else _0x3fac90['push'](_0x3fac90['shift']());}catch(_0x549291){_0x3fac90['push'](_0x3fac90['shift']());}}}(_0x66d1,0x34954));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x15a7a6){const _0x2c5d9f=_0x1642;groups[_0x2c5d9f(0xec)](_0x15a7a6),groupMembers[_0x2c5d9f(0xec)](_0x15a7a6);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x36c81b){const _0x5070e1=_0x1642;_0x36c81b=_0x36c81b['toString']();if(isNumeric(_0x36c81b)){const _0x2acf8c=Array[_0x5070e1(0xf9)](friends[_0x5070e1(0xed)]());return _0x2acf8c[_0x5070e1(0xe3)](_0xfe1ef7=>_0xfe1ef7[_0x5070e1(0xf5)]===_0x36c81b);}else return friends['get'](_0x36c81b);}export async function getGroup(_0x265c3d){const _0x21d54d=_0x1642;let _0x4b47b8=groups[_0x21d54d(0xe9)](_0x265c3d[_0x21d54d(0xe5)]());if(!_0x4b47b8)try{const _0x3ace3c=await NTQQGroupApi[_0x21d54d(0xfa)]();_0x3ace3c[_0x21d54d(0xf3)]&&_0x3ace3c['forEach'](_0x19263b=>{const _0x248465=_0x21d54d;groups[_0x248465(0xee)](_0x19263b[_0x248465(0xef)],_0x19263b);});}catch(_0x93e832){return undefined;}return _0x4b47b8=groups['get'](_0x265c3d[_0x21d54d(0xe5)]()),_0x4b47b8;}export async function getGroupMember(_0x4c9dde,_0x2a836c){const _0x3c843c=_0x1642,_0x2552a3={'NPAsI':function(_0x423608,_0x3928c7){return _0x423608(_0x3928c7);},'csHUm':function(_0x4dfaa8){return _0x4dfaa8();},'fQDEe':function(_0xe63e3d){return _0xe63e3d();}};_0x4c9dde=_0x4c9dde[_0x3c843c(0xe5)](),_0x2a836c=_0x2a836c[_0x3c843c(0xe5)]();let _0x2f424f=groupMembers[_0x3c843c(0xe9)](_0x4c9dde);if(!_0x2f424f)try{_0x2f424f=await NTQQGroupApi['getGroupMembers'](_0x4c9dde),groupMembers[_0x3c843c(0xee)](_0x4c9dde,_0x2f424f);}catch(_0x121aa6){return null;}const _0x467aab=()=>{const _0x5ba92b=_0x3c843c;let _0x3ae4b1=undefined;return _0x2552a3['NPAsI'](isNumeric,_0x2a836c)?_0x3ae4b1=Array[_0x5ba92b(0xf9)](_0x2f424f['values']())['find'](_0x3f9f4f=>_0x3f9f4f['uin']===_0x2a836c):_0x3ae4b1=_0x2f424f[_0x5ba92b(0xe9)](_0x2a836c),_0x3ae4b1;};let _0x234020=_0x2552a3[_0x3c843c(0xf6)](_0x467aab);return!_0x234020&&(_0x2f424f=await NTQQGroupApi[_0x3c843c(0xe6)](_0x4c9dde),_0x234020=_0x2552a3[_0x3c843c(0xf2)](_0x467aab)),_0x234020;}export const uid2UinMap={};export function getUidByUin(_0x3cc9c2){for(const _0x37ff82 in uid2UinMap){if(uid2UinMap[_0x37ff82]===_0x3cc9c2)return _0x37ff82;}}function _0x66d1(){const _0x1aafc1=['delete','values','set','groupCode','35NkYjYP','1666025YLVJIM','fQDEe','length','445448ZUKZQK','uin','csHUm','13268628HwALlt','214108scqLKw','from','getGroups','find','2rzzIQy','toString','getGroupMembers','827250mHLyYZ','10HaeqNQ','get','236069tAfqDV','659493muGXei'];_0x66d1=function(){return _0x1aafc1;};return _0x66d1();}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 _0x4a73(_0x176af7,_0x1a4144){var _0x108d09=_0x108d();return _0x4a73=function(_0x4a731e,_0xf80ae7){_0x4a731e=_0x4a731e-0x115;var _0x3ff7ad=_0x108d09[_0x4a731e];return _0x3ff7ad;},_0x4a73(_0x176af7,_0x1a4144);}(function(_0x20bae8,_0x51024a){var _0x4d4b24=_0x4a73,_0x1df5f2=_0x20bae8();while(!![]){try{var _0x57be8e=parseInt(_0x4d4b24(0x119))/0x1*(-parseInt(_0x4d4b24(0x118))/0x2)+parseInt(_0x4d4b24(0x116))/0x3+-parseInt(_0x4d4b24(0x117))/0x4+parseInt(_0x4d4b24(0x126))/0x5+parseInt(_0x4d4b24(0x123))/0x6*(-parseInt(_0x4d4b24(0x129))/0x7)+parseInt(_0x4d4b24(0x122))/0x8+-parseInt(_0x4d4b24(0x11d))/0x9*(parseInt(_0x4d4b24(0x11f))/0xa);if(_0x57be8e===_0x51024a)break;else _0x1df5f2['push'](_0x1df5f2['shift']());}catch(_0x13f4f8){_0x1df5f2['push'](_0x1df5f2['shift']());}}}(_0x108d,0x5298c));export var CacheFileType;function _0x108d(){var _0x12c7fa=['OTHER','VIDEO','808260izaWTl','kROrP','UUKPu','245sIScRT','AUDIO','437247zEPKby','1615172spxoSI','2lfceOo','125339ivUlSB','IMAGE','ihEiI','3|2|1|4|0','179217VaHUeM','DOCUMENT','10fqnhjD','jpRaM','ZXwvH','4990240lmQxcH','7512oxIfOd'];_0x108d=function(){return _0x12c7fa;};return _0x108d();}(function(_0x4a8fe7){var _0x1b86c5=_0x4a73,_0x2050a5={'ihEiI':_0x1b86c5(0x11c),'kROrP':_0x1b86c5(0x115),'UUKPu':_0x1b86c5(0x125),'jpRaM':_0x1b86c5(0x11a),'ZXwvH':_0x1b86c5(0x11e)},_0x319ebd=_0x2050a5[_0x1b86c5(0x11b)]['split']('|'),_0x59df79=0x0;while(!![]){switch(_0x319ebd[_0x59df79++]){case'0':_0x4a8fe7[_0x4a8fe7[_0x1b86c5(0x124)]=0x4]=_0x1b86c5(0x124);continue;case'1':_0x4a8fe7[_0x4a8fe7[_0x2050a5['kROrP']]=0x2]=_0x2050a5[_0x1b86c5(0x127)];continue;case'2':_0x4a8fe7[_0x4a8fe7[_0x2050a5[_0x1b86c5(0x128)]]=0x1]=_0x2050a5[_0x1b86c5(0x128)];continue;case'3':_0x4a8fe7[_0x4a8fe7[_0x2050a5[_0x1b86c5(0x120)]]=0x0]='IMAGE';continue;case'4':_0x4a8fe7[_0x4a8fe7[_0x2050a5[_0x1b86c5(0x121)]]=0x3]=_0x1b86c5(0x11e);continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
function _0x545d(_0x3ef9dc,_0xe5aa36){var _0x101f48=_0x101f();return _0x545d=function(_0x545d67,_0x27e419){_0x545d67=_0x545d67-0xb3;var _0x3ad04c=_0x101f48[_0x545d67];return _0x3ad04c;},_0x545d(_0x3ef9dc,_0xe5aa36);}function _0x101f(){var _0x3f338c=['14ndscRH','YYofk','2953002rmxilI','DOCUMENT','split','xKGzN','20pHxTRb','KxFxV','2740150DbzUDW','231PWAyjZ','ADNkV','AUDIO','IMAGE','9428TgPFRW','OTHER','44912uQZHKJ','0|3|1|2|4','kSBJM','190912UmDJUy','2072727NugLUo','1637336vEufIL'];_0x101f=function(){return _0x3f338c;};return _0x101f();}(function(_0x4a11ea,_0x38ba70){var _0x496e86=_0x545d,_0x20b4e3=_0x4a11ea();while(!![]){try{var _0xbe8e11=parseInt(_0x496e86(0xc1))/0x1+parseInt(_0x496e86(0xbe))/0x2+-parseInt(_0x496e86(0xb8))/0x3*(-parseInt(_0x496e86(0xbc))/0x4)+-parseInt(_0x496e86(0xb7))/0x5+parseInt(_0x496e86(0xc6))/0x6+parseInt(_0x496e86(0xc4))/0x7*(parseInt(_0x496e86(0xc3))/0x8)+-parseInt(_0x496e86(0xc2))/0x9*(parseInt(_0x496e86(0xb5))/0xa);if(_0xbe8e11===_0x38ba70)break;else _0x20b4e3['push'](_0x20b4e3['shift']());}catch(_0x5752e8){_0x20b4e3['push'](_0x20b4e3['shift']());}}}(_0x101f,0x463ea));;export var CacheFileType;(function(_0x5328bf){var _0x83c8ad=_0x545d,_0x26642b={'kSBJM':_0x83c8ad(0xbf),'KxFxV':_0x83c8ad(0xbb),'xKGzN':'AUDIO','ADNkV':_0x83c8ad(0xc7),'YYofk':'VIDEO','LBNan':_0x83c8ad(0xbd)},_0x4ecba1=_0x26642b[_0x83c8ad(0xc0)][_0x83c8ad(0xb3)]('|'),_0x5403d6=0x0;while(!![]){switch(_0x4ecba1[_0x5403d6++]){case'0':_0x5328bf[_0x5328bf[_0x26642b[_0x83c8ad(0xb6)]]=0x0]=_0x26642b[_0x83c8ad(0xb6)];continue;case'1':_0x5328bf[_0x5328bf[_0x26642b[_0x83c8ad(0xb4)]]=0x2]=_0x83c8ad(0xba);continue;case'2':_0x5328bf[_0x5328bf[_0x26642b[_0x83c8ad(0xb9)]]=0x3]=_0x83c8ad(0xc7);continue;case'3':_0x5328bf[_0x5328bf[_0x26642b[_0x83c8ad(0xc5)]]=0x1]=_0x26642b[_0x83c8ad(0xc5)];continue;case'4':_0x5328bf[_0x5328bf[_0x26642b['LBNan']]=0x4]=_0x26642b['LBNan'];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 @@
|
||||
function _0x2eca(){const _0xdce127=['bMQOi','3733870FXsBaj','XikXT','error','pic','Ori','FILE','[包剪锤]','MNYgI','end','iYxSh','6846zTgDBv','text','Thumb','normal2','iXrQY','ZivTO','gif','XLkTR','markdown','meJkK','JMfgs','FMXgY','_0.png','gHVGi','1435014CdfNxm','LwFBc','mp4','RyXoc','TEXT','视频信息','dirname','6368454rTjLan','uploadFile','PIC','rps','wOYMC','screenshots','get','2893233gqtjIU','TAvXb','289412IgJlKD','then','811036eTBnFo','VSBhU','unlink','文件异常,大小为0','PTT','2GbaeJO','size','dice','JKLRw','aBwUQ','replace','RPS','NAlOq','REPLY','VIDEO','string','toString','FACE','stat','notAt','Usxaj','video','获取视频信息失败','face','sep','normal','图片信息','ptt','语音转换失败,\x20请检查语音文件是否正常','file','path','1805gMhwNr','reply','height','8Aabnsj','chMCj'];_0x2eca=function(){return _0xdce127;};return _0x2eca();}const _0x4f5b30=_0x2a0f;(function(_0x3f8678,_0x54a6c6){const _0x13a5c6=_0x2a0f,_0x1ccddb=_0x3f8678();while(!![]){try{const _0x797477=-parseInt(_0x13a5c6(0x16c))/0x1*(-parseInt(_0x13a5c6(0x167))/0x2)+-parseInt(_0x13a5c6(0x1a4))/0x3+-parseInt(_0x13a5c6(0x165))/0x4+-parseInt(_0x13a5c6(0x186))/0x5*(parseInt(_0x13a5c6(0x196))/0x6)+parseInt(_0x13a5c6(0x163))/0x7*(-parseInt(_0x13a5c6(0x189))/0x8)+parseInt(_0x13a5c6(0x1ab))/0x9+parseInt(_0x13a5c6(0x18c))/0xa;if(_0x797477===_0x54a6c6)break;else _0x1ccddb['push'](_0x1ccddb['shift']());}catch(_0x415b7a){_0x1ccddb['push'](_0x1ccddb['shift']());}}}(_0x2eca,0x7e016));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x40f80a}from'node:fs';import _0x2b4df0 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 _0x2a0f(_0x5dbc81,_0x186b55){const _0x2ecaf9=_0x2eca();return _0x2a0f=function(_0x2a0f8d,_0x1fea81){_0x2a0f8d=_0x2a0f8d-0x15f;let _0x44b033=_0x2ecaf9[_0x2a0f8d];return _0x44b033;},_0x2a0f(_0x5dbc81,_0x186b55);}export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x4f5b30(0x197)](_0x27c574){const _0x35ecac=_0x4f5b30;return{'elementType':ElementType[_0x35ecac(0x1a8)],'elementId':'','textElement':{'content':_0x27c574,'atType':AtType[_0x35ecac(0x17a)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x498a0d,_0x1ccdad,_0x1c4a51,_0x2aa40b){const _0x215f36=_0x4f5b30;return{'elementType':ElementType[_0x215f36(0x1a8)],'elementId':'','textElement':{'content':'@'+_0x2aa40b,'atType':_0x1c4a51,'atUid':_0x498a0d,'atTinyId':'','atNtUid':_0x1ccdad}};}static[_0x4f5b30(0x187)](_0x4ec685,_0x151e78,_0x124fcc,_0x4a9ac7){const _0x1ab198=_0x4f5b30;return{'elementType':ElementType[_0x1ab198(0x174)],'elementId':'','replyElement':{'replayMsgSeq':_0x4ec685,'replayMsgId':_0x151e78,'senderUin':_0x124fcc,'senderUinStr':_0x4a9ac7}};}static async[_0x4f5b30(0x18f)](_0x4ae897,_0x3d92c3='',_0x22022c=0x0){const _0x4ed145=_0x4f5b30,_0x596172={'LYPmk':function(_0x48a5c1,_0x3ff0c2){return _0x48a5c1===_0x3ff0c2;},'ytvQv':function(_0xcd95d,_0x24d5dc){return _0xcd95d(_0x24d5dc);},'VSBhU':function(_0x3bdd8a,_0x124fb2,_0x3363ef){return _0x3bdd8a(_0x124fb2,_0x3363ef);}},{md5:_0x3886b3,fileName:_0x4a77b8,path:_0x320d3b,fileSize:_0x3110bc}=await NTQQFileApi[_0x4ed145(0x1ac)](_0x4ae897,ElementType['PIC'],_0x22022c);if(_0x596172['LYPmk'](_0x3110bc,0x0))throw _0x4ed145(0x16a);const _0x26b64d=await NTQQFileApi['getImageSize'](_0x4ae897),_0x40c3b4={'md5HexStr':_0x3886b3,'fileSize':_0x3110bc[_0x4ed145(0x177)](),'picWidth':_0x26b64d?.['width'],'picHeight':_0x26b64d?.[_0x4ed145(0x188)],'fileName':_0x4a77b8,'sourcePath':_0x320d3b,'original':!![],'picType':_0x596172['ytvQv'](isGIF,_0x4ae897)?PicType[_0x4ed145(0x19c)]:PicType['jpg'],'picSubType':_0x22022c,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x3d92c3};return _0x596172[_0x4ed145(0x168)](logDebug,_0x4ed145(0x181),_0x40c3b4),{'elementType':ElementType[_0x4ed145(0x1ad)],'elementId':'','picElement':_0x40c3b4};}static async[_0x4f5b30(0x184)](_0x49a9aa,_0x18b520=''){const _0xb11667=_0x4f5b30,_0x34ce3d={'meJkK':function(_0x33bd5e,_0x295f02){return _0x33bd5e===_0x295f02;},'GGnbD':_0xb11667(0x16a),'Usxaj':function(_0xdc989d,_0x20cf5a){return _0xdc989d||_0x20cf5a;}},{md5:_0x1f2b88,fileName:_0x3299e1,path:_0x2d8f87,fileSize:_0x15b6d3}=await NTQQFileApi[_0xb11667(0x1ac)](_0x49a9aa,ElementType[_0xb11667(0x191)]);if(_0x34ce3d[_0xb11667(0x19f)](_0x15b6d3,0x0))throw _0x34ce3d['GGnbD'];const _0x5a037d={'elementType':ElementType[_0xb11667(0x191)],'elementId':'','fileElement':{'fileName':_0x34ce3d[_0xb11667(0x17b)](_0x18b520,_0x3299e1),'filePath':_0x2d8f87,'fileSize':_0x15b6d3[_0xb11667(0x177)]()}};return _0x5a037d;}static async[_0x4f5b30(0x17c)](_0x4593f0,_0x35ac7c='',_0x5828ea=''){const _0x3ac0c5=_0x4f5b30,_0x1572f5={'sgnyY':'获取视频封面失败,使用默认封面','FMXgY':function(_0x5b54e1Line truncated
|
||||
const _0x7fe54c=_0x3bdd;(function(_0x4e26f8,_0x5e81ef){const _0x1b92ad=_0x3bdd,_0x511ba9=_0x4e26f8();while(!![]){try{const _0x45fdfb=-parseInt(_0x1b92ad(0x129))/0x1+parseInt(_0x1b92ad(0x150))/0x2+parseInt(_0x1b92ad(0x13b))/0x3+parseInt(_0x1b92ad(0x123))/0x4*(parseInt(_0x1b92ad(0x15b))/0x5)+-parseInt(_0x1b92ad(0x143))/0x6*(-parseInt(_0x1b92ad(0x16f))/0x7)+parseInt(_0x1b92ad(0x112))/0x8+-parseInt(_0x1b92ad(0x124))/0x9;if(_0x45fdfb===_0x5e81ef)break;else _0x511ba9['push'](_0x511ba9['shift']());}catch(_0x5440ad){_0x511ba9['push'](_0x511ba9['shift']());}}}(_0x2820,0x98496));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x5d59cd}from'node:fs';import _0x311865 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';function _0x2820(){const _0x3fe2e1=['https://www.bilibili.com/','catch','zBDoq','screenshots','height','aeItS','stringify','2754864qsWDQv','LlXxG','AniStickerType','ptt','writeFile','emFsC','dice','uaDOZ','markdown','error','getImageSize','join','replace','face','ark','视频信息','sysface','433084mdbHng','19986606ngsaSH','BGvwS','https://tianquan.gtimg.cn/qqAIAgent/item/7/square.png','sep','[商城表情]','160500CiJGyF','unlink','get','itioF','TEXT','lTAaw','AniStickerPackId','VIDEO','emoji','PTT','text','mp4','图片信息','MFACE','set','RibEF','QeJhL','WdJHn','1934247qtshzf','语音转换失败,\x20请检查语音文件是否正常','GXeCZ','Krnip','QDes','REPLY','RPS','NODuN','79470vjtByp','bkxSr','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','[骰子]','LmyCd','haJqk','stat','miniapp','MARKDOWN','width','find','brdjw','uploadFile','1411414LibjMK','ARK','reply','PIC','dirname','mvVyW','AniStickerId','FILE','FACE','获取视频信息失败','jUOez','55AQHWGu','zipNU','文件异常,大小为0','Bot\x20Test','video','获取视频封面失败,使用默认封面','string','toString','lvePc','dzzRH','pPlSV','mface','mtTda','BqagP','end','lNQJs','then','Ori','QSid','ylllf','63alwzwH'];_0x2820=function(){return _0x3fe2e1;};return _0x2820();}import{encodeSilk}from'@/common/utils/audio';import _0x1b03eb from'./face_config.json';import*as _0x21c2a5 from'node:path';import{SignMiniApp}from'../apis';export const mFaceCache=new Map();function _0x3bdd(_0x1c464a,_0x321391){const _0x2820c2=_0x2820();return _0x3bdd=function(_0x3bddbf,_0x4d486a){_0x3bddbf=_0x3bddbf-0x10f;let _0x5f16f8=_0x2820c2[_0x3bddbf];return _0x5f16f8;},_0x3bdd(_0x1c464a,_0x321391);}export class SendMsgElementConstructor{static[_0x7fe54c(0x133)](_0x6c2c4d){const _0x5d34ec=_0x7fe54c;return{'elementType':ElementType[_0x5d34ec(0x12d)],'elementId':'','textElement':{'content':_0x6c2c4d,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0xd075d2,_0x51f87b,_0x331d2b,_0x2ffb26){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x2ffb26,'atType':_0x331d2b,'atUid':_0xd075d2,'atTinyId':'','atNtUid':_0x51f87b}};}static[_0x7fe54c(0x152)](_0x31bebf,_0x92854f,_0x1562bc,_0x2e49b3){const _0x2ce197=_0x7fe54c;return{'elementType':ElementType[_0x2ce197(0x140)],'elementId':'','replyElement':{'replayMsgSeq':_0x31bebf,'replayMsgId':_0x92854f,'senderUin':_0x1562bc,'senderUinStr':_0x2e49b3}};}static async['pic'](_0x3b06f2,_0x34f839='',_0x3a7300=0x0){const _0x5b8945=_0x7fe54c,_0x369e8f={'KLoeW':function(_0x55ba7d,_0x74ccfc){return _0x55ba7d(_0x74ccfc);},'emFsC':function(_0xe373da,_0x3f7c55,_0x3a8941){return _0xe373da(_0x3f7c55,_0x3a8941);},'jUOez':_0x5b8945(0x135)},{md5:_0x160ddd,fileName:_0xaf078f,path:_0x596f2e,fileSize:_0x28693a}=await NTQQFileApi[_0x5b8945(0x14f)](_0x3b06f2,ElementType[_0x5b8945(0x153)],_0x3a7300);if(_0x28693a===0x0)throw'文件异常,大小为0';const _0x19214f=await NTQQFileApi[_0x5b8945(0x11c)](_0x3b06f2),_0x31c3c7={'md5HexStr':_0x160ddd,'fileSize':_0x28693a[_0x5b8945(0x162)](),'picWidth':_0x19214f?.[_0x5b8945(0x14c)],'picHeight':_0x19214f?.[_0x5b8945(0x10f)],'fileName':_0xaf078f,'sourcePath':_0x596f2e,'original':!![],'picType':_0x369e8f['KLoeW'](isGIF,_0x3b06f2)?PicType['gif']:PicType['jpg'],'picSubType':_0x3a7300,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x34f839};return _0x369e8f[_0x5b8945(0x117)](logDebug,_0x369e8f[_0x5b8945(0x15a)],_0x31c3c7),{'elementType':ElementType[_0x5b8945(0x153)],'elementId':'','picElement':_0x31c3c7};}static async['file'](_0x4d6143,_0x2a3314=''){const _0x8b1d68=_0x7fe54c,_0x29cde9={'dzzRH':function(_0xba2519,_0x1ea60){return _0xba2519===_0x1ea60;},'haJqk':_0x8b1d68(0x15d),'zBDoq':function(_0x12d407,_0x3d7f85){return _0x12d407||_0x3d7f85;}},{md5:_0x270f5d,fileName:_0x369c04,path:_0x1d97ff,fileSize:_0x47d398}=await NTQQFileApi[_0x8b1d68(0x14f)](_0x4d6143,ElementType[_0x8b1d68(0x157)]);if(_0x29cde9[_0x8b1d68(0x164)](_0x47d398,0x0))throw _0x29cde9[_0x8b1d68(0x148)];const _0x4bf1c9Line truncated
|
||||
File diff suppressed because it is too large.
Load diff
Vendored
+3
-3
@@ -7,7 +7,7 @@ export interface Group {
|
||||
groupStatus: 0;
|
||||
memberRole: 2;
|
||||
isTop: boolean;
|
||||
toppedTimestamp: '0';
|
||||
toppedTimestamp: string;
|
||||
privilegeFlag: number;
|
||||
isConf: boolean;
|
||||
hasModifyConfGroupFace: boolean;
|
||||
@@ -24,8 +24,8 @@ export interface Group {
|
||||
groupCreditLevel: number;
|
||||
groupFlagExt3: number;
|
||||
groupOwnerId: {
|
||||
'memberUin': string;
|
||||
'memberUid': string;
|
||||
memberUin: string;
|
||||
memberUid: string;
|
||||
};
|
||||
}
|
||||
export declare enum GroupMemberRole {
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x204c(){var _0x1f7faf=['9wxEkQY','10353eAemMy','owner','219812fhrapW','2345wZzuzb','704008ursPKF','6812090OxESOL','UGBDc','1868VUaSoi','7yZhRZE','eomue','admin','164892ebLTvu','104690iTJmah','Rojuj'];_0x204c=function(){return _0x1f7faf;};return _0x204c();}(function(_0x1cc54f,_0x113489){var _0x49a02c=_0x24c6,_0x49e700=_0x1cc54f();while(!![]){try{var _0x48199e=-parseInt(_0x49a02c(0xc7))/0x1+-parseInt(_0x49a02c(0xcc))/0x2+-parseInt(_0x49a02c(0xca))/0x3+-parseInt(_0x49a02c(0xc2))/0x4*(parseInt(_0x49a02c(0xcd))/0x5)+-parseInt(_0x49a02c(0xc6))/0x6+parseInt(_0x49a02c(0xc3))/0x7*(-parseInt(_0x49a02c(0xce))/0x8)+-parseInt(_0x49a02c(0xc9))/0x9*(-parseInt(_0x49a02c(0xc0))/0xa);if(_0x48199e===_0x113489)break;else _0x49e700['push'](_0x49e700['shift']());}catch(_0x2df5de){_0x49e700['push'](_0x49e700['shift']());}}}(_0x204c,0x1f690));export var GroupMemberRole;function _0x24c6(_0x295792,_0xc820a){var _0x204c3b=_0x204c();return _0x24c6=function(_0x24c63d,_0x3dc32a){_0x24c63d=_0x24c63d-0xc0;var _0x57e55b=_0x204c3b[_0x24c63d];return _0x57e55b;},_0x24c6(_0x295792,_0xc820a);}(function(_0x1feeb7){var _0xec8b18=_0x24c6,_0x14b84c={'UGBDc':'normal','Rojuj':_0xec8b18(0xc5),'eomue':_0xec8b18(0xcb)};_0x1feeb7[_0x1feeb7[_0x14b84c[_0xec8b18(0xc1)]]=0x2]=_0x14b84c[_0xec8b18(0xc1)],_0x1feeb7[_0x1feeb7[_0x14b84c[_0xec8b18(0xc8)]]=0x3]=_0x14b84c[_0xec8b18(0xc8)],_0x1feeb7[_0x1feeb7[_0x14b84c[_0xec8b18(0xc4)]]=0x4]=_0x14b84c[_0xec8b18(0xc4)];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
function _0x4da7(_0x2dece6,_0x3de6ef){var _0x4b161f=_0x4b16();return _0x4da7=function(_0x4da794,_0x2abd8a){_0x4da794=_0x4da794-0x161;var _0xf1e548=_0x4b161f[_0x4da794];return _0xf1e548;},_0x4da7(_0x2dece6,_0x3de6ef);}(function(_0x18d2b9,_0x1230ef){var _0x2e2a86=_0x4da7,_0x40e364=_0x18d2b9();while(!![]){try{var _0x468e31=parseInt(_0x2e2a86(0x162))/0x1+-parseInt(_0x2e2a86(0x16a))/0x2*(-parseInt(_0x2e2a86(0x164))/0x3)+-parseInt(_0x2e2a86(0x161))/0x4+parseInt(_0x2e2a86(0x167))/0x5*(parseInt(_0x2e2a86(0x168))/0x6)+-parseInt(_0x2e2a86(0x166))/0x7+-parseInt(_0x2e2a86(0x16d))/0x8+-parseInt(_0x2e2a86(0x169))/0x9*(-parseInt(_0x2e2a86(0x165))/0xa);if(_0x468e31===_0x1230ef)break;else _0x40e364['push'](_0x40e364['shift']());}catch(_0x128320){_0x40e364['push'](_0x40e364['shift']());}}}(_0x4b16,0xd59db));function _0x4b16(){var _0x36957f=['9dJaKky','9242NzUVsB','tWQaC','owner','6172288NkVpxF','admin','5560288sHiXxY','646660zLAmzA','yjOxv','963UIXEXG','6511530UkDoaQ','3984414bAfjss','77795OqnHHX','318pMgnEg'];_0x4b16=function(){return _0x36957f;};return _0x4b16();}export var GroupMemberRole;(function(_0x248e7c){var _0x5e4454=_0x4da7,_0x4da84f={'tWQaC':'normal','yjOxv':_0x5e4454(0x16e),'mVDrM':'owner'};_0x248e7c[_0x248e7c[_0x4da84f['tWQaC']]=0x2]=_0x4da84f[_0x5e4454(0x16b)],_0x248e7c[_0x248e7c[_0x4da84f[_0x5e4454(0x163)]]=0x3]=_0x4da84f['yjOxv'],_0x248e7c[_0x248e7c[_0x5e4454(0x16c)]=0x4]=_0x4da84f['mVDrM'];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
@@ -1 +1 @@
|
||||
(function(_0x39bbc9,_0x3e6ba0){var _0x56e959=_0x3b83,_0x1df56f=_0x39bbc9();while(!![]){try{var _0xfc26b5=parseInt(_0x56e959(0x12d))/0x1*(parseInt(_0x56e959(0x128))/0x2)+parseInt(_0x56e959(0x124))/0x3*(parseInt(_0x56e959(0x123))/0x4)+parseInt(_0x56e959(0x125))/0x5+-parseInt(_0x56e959(0x127))/0x6*(-parseInt(_0x56e959(0x12e))/0x7)+-parseInt(_0x56e959(0x126))/0x8*(-parseInt(_0x56e959(0x12b))/0x9)+parseInt(_0x56e959(0x12a))/0xa*(parseInt(_0x56e959(0x122))/0xb)+parseInt(_0x56e959(0x12c))/0xc*(-parseInt(_0x56e959(0x129))/0xd);if(_0xfc26b5===_0x3e6ba0)break;else _0x1df56f['push'](_0x1df56f['shift']());}catch(_0x4cc5c1){_0x1df56f['push'](_0x1df56f['shift']());}}}(_0x5b0a,0x9d183));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';function _0x3b83(_0x42aa80,_0x8dd778){var _0x5b0a5b=_0x5b0a();return _0x3b83=function(_0x3b83a2,_0x12202f){_0x3b83a2=_0x3b83a2-0x122;var _0x315591=_0x5b0a5b[_0x3b83a2];return _0x315591;},_0x3b83(_0x42aa80,_0x8dd778);}function _0x5b0a(){var _0x1c4b84=['5048950aCiqrm','55400RqVfLv','1914feBawE','14iUfhDF','962LuiHBa','1090vtOYwC','1386qhVdFS','458244rarPMn','44284UdiKYZ','266PMaXEB','75713igBErl','641400zIcqBZ','6vbIaSR'];_0x5b0a=function(){return _0x1c4b84;};return _0x5b0a();}
|
||||
(function(_0x3f0194,_0x3a6f4a){var _0x539a8f=_0x4f70,_0x2067a5=_0x3f0194();while(!![]){try{var _0x499e86=-parseInt(_0x539a8f(0x171))/0x1*(-parseInt(_0x539a8f(0x174))/0x2)+parseInt(_0x539a8f(0x177))/0x3*(parseInt(_0x539a8f(0x16f))/0x4)+-parseInt(_0x539a8f(0x173))/0x5+parseInt(_0x539a8f(0x16e))/0x6*(-parseInt(_0x539a8f(0x176))/0x7)+parseInt(_0x539a8f(0x172))/0x8+-parseInt(_0x539a8f(0x170))/0x9+parseInt(_0x539a8f(0x175))/0xa;if(_0x499e86===_0x3a6f4a)break;else _0x2067a5['push'](_0x2067a5['shift']());}catch(_0x41555b){_0x2067a5['push'](_0x2067a5['shift']());}}}(_0x1b61,0x2d476));function _0x4f70(_0x34f5ce,_0x20f4ba){var _0x1b6107=_0x1b61();return _0x4f70=function(_0x4f701e,_0x3ef028){_0x4f701e=_0x4f701e-0x16e;var _0x3b02d3=_0x1b6107[_0x4f701e];return _0x3b02d3;},_0x4f70(_0x34f5ce,_0x20f4ba);}export*from'./user';function _0x1b61(){var _0x4958f7=['863225NcNNqZ','2ixShrg','4260810wFoYio','287ZKlKQo','441843JsnoPO','18108dnDIdy','4CSgZUz','1764612mSDzJh','70654UcFolu','271176ONTsbw'];_0x1b61=function(){return _0x4958f7;};return _0x1b61();}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';
|
||||
Vendored
+103
-93
@@ -2,7 +2,16 @@ import { GroupMemberRole } from './group';
|
||||
export interface Peer {
|
||||
chatType: ChatType;
|
||||
peerUid: string;
|
||||
guildId?: '';
|
||||
guildId?: string;
|
||||
}
|
||||
export interface KickedOffLineInfo {
|
||||
appId: number;
|
||||
instanceId: number;
|
||||
sameDevice: boolean;
|
||||
tipsDesc: string;
|
||||
tipsTitle: string;
|
||||
kickedType: number;
|
||||
securityKickedType: number;
|
||||
}
|
||||
export declare enum ElementType {
|
||||
TEXT = 1,
|
||||
@@ -18,7 +27,7 @@ export declare enum ElementType {
|
||||
}
|
||||
export interface SendTextElement {
|
||||
elementType: ElementType.TEXT;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
textElement: {
|
||||
content: string;
|
||||
atType: number;
|
||||
@@ -29,7 +38,7 @@ export interface SendTextElement {
|
||||
}
|
||||
export interface SendPttElement {
|
||||
elementType: ElementType.PTT;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
pttElement: {
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
@@ -41,7 +50,7 @@ export interface SendPttElement {
|
||||
voiceChangeType: number;
|
||||
canConvert2Text: boolean;
|
||||
waveAmplitudes: number[];
|
||||
fileSubId: '';
|
||||
fileSubId: string;
|
||||
playState: number;
|
||||
autoConvertText: number;
|
||||
};
|
||||
@@ -56,7 +65,7 @@ export declare enum PicSubType {
|
||||
}
|
||||
export interface SendPicElement {
|
||||
elementType: ElementType.PIC;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
picElement: {
|
||||
md5HexStr: string;
|
||||
fileSize: number | string;
|
||||
@@ -75,7 +84,7 @@ export interface SendPicElement {
|
||||
}
|
||||
export interface SendReplyElement {
|
||||
elementType: ElementType.REPLY;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
replyElement: {
|
||||
replayMsgSeq: string;
|
||||
replayMsgId: string;
|
||||
@@ -85,7 +94,7 @@ export interface SendReplyElement {
|
||||
}
|
||||
export interface SendFaceElement {
|
||||
elementType: ElementType.FACE;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
faceElement: FaceElement;
|
||||
}
|
||||
export interface SendMarketFaceElement {
|
||||
@@ -93,39 +102,39 @@ export interface SendMarketFaceElement {
|
||||
marketFaceElement: MarketFaceElement;
|
||||
}
|
||||
export interface FileElement {
|
||||
'fileMd5'?: '';
|
||||
'fileName': string;
|
||||
'filePath': string;
|
||||
fileMd5?: string;
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
fileSize: string;
|
||||
'picHeight'?: number;
|
||||
'picWidth'?: number;
|
||||
'picThumbPath'?: Map<number, string>;
|
||||
'file10MMd5'?: '';
|
||||
'fileSha'?: '';
|
||||
'fileSha3'?: '';
|
||||
'fileUuid'?: '';
|
||||
'fileSubId'?: '';
|
||||
'thumbFileSize'?: number;
|
||||
picHeight?: number;
|
||||
picWidth?: number;
|
||||
picThumbPath?: Map<number, string>;
|
||||
file10MMd5?: string;
|
||||
fileSha?: string;
|
||||
fileSha3?: string;
|
||||
fileUuid?: string;
|
||||
fileSubId?: string;
|
||||
thumbFileSize?: number;
|
||||
fileBizId?: number;
|
||||
}
|
||||
export interface SendFileElement {
|
||||
elementType: ElementType.FILE;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
fileElement: FileElement;
|
||||
}
|
||||
export interface SendVideoElement {
|
||||
elementType: ElementType.VIDEO;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
videoElement: VideoElement;
|
||||
}
|
||||
export interface SendArkElement {
|
||||
elementType: ElementType.ARK;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
arkElement: ArkElement;
|
||||
}
|
||||
export interface SendMarkdownElement {
|
||||
elementType: ElementType.MARKDOWN;
|
||||
elementId: '';
|
||||
elementId: string;
|
||||
markdownElement: MarkdownElement;
|
||||
}
|
||||
export type SendMessageElement = SendTextElement | SendPttElement | SendPicElement | SendReplyElement | SendFaceElement | SendMarketFaceElement | SendFileElement | SendVideoElement | SendArkElement | SendMarkdownElement;
|
||||
@@ -137,6 +146,7 @@ export declare enum AtType {
|
||||
export declare enum ChatType {
|
||||
friend = 1,
|
||||
group = 2,
|
||||
chatDevice = 8,//移动设备?
|
||||
temp = 100
|
||||
}
|
||||
export interface PttElement {
|
||||
@@ -232,49 +242,49 @@ export interface MarketFaceElement {
|
||||
key: string;
|
||||
}
|
||||
export interface VideoElement {
|
||||
'filePath': string;
|
||||
'fileName': string;
|
||||
'videoMd5'?: string;
|
||||
'thumbMd5'?: string;
|
||||
'fileTime'?: number;
|
||||
'thumbSize'?: number;
|
||||
'fileFormat'?: number;
|
||||
'fileSize'?: string;
|
||||
'thumbWidth'?: number;
|
||||
'thumbHeight'?: number;
|
||||
'busiType'?: 0;
|
||||
'subBusiType'?: 0;
|
||||
'thumbPath'?: Map<number, any>;
|
||||
'transferStatus'?: 0;
|
||||
'progress'?: 0;
|
||||
'invalidState'?: 0;
|
||||
'fileUuid'?: string;
|
||||
'fileSubId'?: '';
|
||||
'fileBizId'?: null;
|
||||
'originVideoMd5'?: '';
|
||||
'import_rich_media_context'?: null;
|
||||
'sourceVideoCodecFormat'?: number;
|
||||
filePath: string;
|
||||
fileName: string;
|
||||
videoMd5?: string;
|
||||
thumbMd5?: string;
|
||||
fileTime?: number;
|
||||
thumbSize?: number;
|
||||
fileFormat?: number;
|
||||
fileSize?: string;
|
||||
thumbWidth?: number;
|
||||
thumbHeight?: number;
|
||||
busiType?: 0;
|
||||
subBusiType?: 0;
|
||||
thumbPath?: Map<number, any>;
|
||||
transferStatus?: 0;
|
||||
progress?: 0;
|
||||
invalidState?: 0;
|
||||
fileUuid?: string;
|
||||
fileSubId?: string;
|
||||
fileBizId?: null;
|
||||
originVideoMd5?: string;
|
||||
import_rich_media_context?: null;
|
||||
sourceVideoCodecFormat?: number;
|
||||
}
|
||||
export interface MarkdownElement {
|
||||
content: string;
|
||||
}
|
||||
export interface InlineKeyboardElementRowButton {
|
||||
'id': '';
|
||||
'label': string;
|
||||
'visitedLabel': string;
|
||||
'style': 1;
|
||||
'type': 2;
|
||||
'clickLimit': 0;
|
||||
'unsupportTips': '请升级新版手机QQ';
|
||||
'data': string;
|
||||
'atBotShowChannelList': false;
|
||||
'permissionType': 2;
|
||||
'specifyRoleIds': [];
|
||||
'specifyTinyids': [];
|
||||
'isReply': false;
|
||||
'anchor': 0;
|
||||
'enter': false;
|
||||
'subscribeDataTemplateIds': [];
|
||||
id: string;
|
||||
label: string;
|
||||
visitedLabel: string;
|
||||
style: 1;
|
||||
type: 2;
|
||||
clickLimit: 0;
|
||||
unsupportTips: string;
|
||||
data: string;
|
||||
atBotShowChannelList: boolean;
|
||||
permissionType: number;
|
||||
specifyRoleIds: [];
|
||||
specifyTinyids: [];
|
||||
isReply: false;
|
||||
anchor: 0;
|
||||
enter: false;
|
||||
subscribeDataTemplateIds: [];
|
||||
}
|
||||
export interface InlineKeyboardElement {
|
||||
rows: [
|
||||
@@ -294,40 +304,40 @@ export declare enum TipGroupElementType {
|
||||
ban = 8
|
||||
}
|
||||
export interface TipGroupElement {
|
||||
'type': TipGroupElementType;
|
||||
'role': 0;
|
||||
'groupName': string;
|
||||
'memberUid': string;
|
||||
'memberNick': string;
|
||||
'memberRemark': string;
|
||||
'adminUid': string;
|
||||
'adminNick': string;
|
||||
'adminRemark': string;
|
||||
'createGroup': null;
|
||||
'memberAdd'?: {
|
||||
'showType': 1;
|
||||
'otherAdd': null;
|
||||
'otherAddByOtherQRCode': null;
|
||||
'otherAddByYourQRCode': null;
|
||||
'youAddByOtherQRCode': null;
|
||||
'otherInviteOther': null;
|
||||
'otherInviteYou': null;
|
||||
'youInviteOther': null;
|
||||
type: TipGroupElementType;
|
||||
role: 0;
|
||||
groupName: string;
|
||||
memberUid: string;
|
||||
memberNick: string;
|
||||
memberRemark: string;
|
||||
adminUid: string;
|
||||
adminNick: string;
|
||||
adminRemark: string;
|
||||
createGroup: null;
|
||||
memberAdd?: {
|
||||
showType: 1;
|
||||
otherAdd: null;
|
||||
otherAddByOtherQRCode: null;
|
||||
otherAddByYourQRCode: null;
|
||||
youAddByOtherQRCode: null;
|
||||
otherInviteOther: null;
|
||||
otherInviteYou: null;
|
||||
youInviteOther: null;
|
||||
};
|
||||
'shutUp'?: {
|
||||
'curTime': string;
|
||||
'duration': string;
|
||||
'admin': {
|
||||
'uid': string;
|
||||
'card': string;
|
||||
'name': string;
|
||||
'role': GroupMemberRole;
|
||||
shutUp?: {
|
||||
curTime: string;
|
||||
duration: string;
|
||||
admin: {
|
||||
uid: string;
|
||||
card: string;
|
||||
name: string;
|
||||
role: GroupMemberRole;
|
||||
};
|
||||
'member': {
|
||||
'uid': string;
|
||||
'card': string;
|
||||
'name': string;
|
||||
'role': GroupMemberRole;
|
||||
member: {
|
||||
uid: string;
|
||||
card: string;
|
||||
name: string;
|
||||
role: GroupMemberRole;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
var _0x11eee5=_0xe76a;(function(_0x478870,_0x536dd3){var _0x1f2f03=_0xe76a,_0x37f0aa=_0x478870();while(!![]){try{var _0x1fc09e=-parseInt(_0x1f2f03(0x154))/0x1+-parseInt(_0x1f2f03(0x13e))/0x2*(parseInt(_0x1f2f03(0x14d))/0x3)+parseInt(_0x1f2f03(0x141))/0x4+parseInt(_0x1f2f03(0x155))/0x5+parseInt(_0x1f2f03(0x15f))/0x6+-parseInt(_0x1f2f03(0x142))/0x7+parseInt(_0x1f2f03(0x132))/0x8;if(_0x1fc09e===_0x536dd3)break;else _0x37f0aa['push'](_0x37f0aa['shift']());}catch(_0x358ec8){_0x37f0aa['push'](_0x37f0aa['shift']());}}}(_0x4e22,0x74976));export var ElementType;function _0x4e22(){var _0x428db5=['FLlwl','iARRZ','EenSW','ngjNV','qGRKq','normal2','aerSo','tNfLf','PTT','1677192VyoIhM','ban','cNSPU','gif','HQWor','jqfyQ','group','cXGdS','PsIjz','RPS','bzUlj','TEXT','15102592nfnNJH','https://multimedia.nt.qq.com.cn','kicked','friend','uaYmY','atAll','face','tawjB','MARKDOWN','hSEPD','smryC','GdIXg','15682dHLNAV','QUDNr','FILE','971836OmBXlY','5321477BwolNz','atUser','MbRlr','memberIncrease','MLJUv','QSdLh','IFTnX','EFpiK','nnnke','ARK','dice','183WOnHpl','PIC','temp','normal','notAt','FACE','IGxdM','699177TlPaCk','24660nimihT'];_0x4e22=function(){return _0x428db5;};return _0x4e22();}(function(_0xf50d9){var _0x2643b7=_0xe76a,_0x56b71b={'FLlwl':'TEXT','jqfyQ':_0x2643b7(0x14e),'PsIjz':_0x2643b7(0x140),'ngjNV':'VIDEO','HQWor':_0x2643b7(0x152),'bzUlj':'REPLY','IGxdM':'ARK','cNSPU':'MFACE','uaYmY':'MARKDOWN'};_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x156)]]=0x1]=_0x2643b7(0x131),_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x164)]]=0x2]=_0x2643b7(0x14e),_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x12e)]]=0x3]='FILE',_0xf50d9[_0xf50d9[_0x2643b7(0x15e)]=0x4]=_0x2643b7(0x15e),_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x159)]]=0x5]=_0x56b71b[_0x2643b7(0x159)],_0xf50d9[_0xf50d9[_0x56b71b['HQWor']]=0x6]=_0x56b71b[_0x2643b7(0x163)],_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x130)]]=0x7]='REPLY',_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x153)]]=0xa]=_0x2643b7(0x14b),_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x161)]]=0xb]=_0x56b71b[_0x2643b7(0x161)],_0xf50d9[_0xf50d9[_0x56b71b[_0x2643b7(0x136)]]=0xe]=_0x2643b7(0x13a);}(ElementType||(ElementType={})));export var PicType;(function(_0x19466d){var _0x12b3fb=_0xe76a,_0x43e563={'tNfLf':_0x12b3fb(0x162),'Ftjmn':'jpg'};_0x19466d[_0x19466d[_0x43e563[_0x12b3fb(0x15d)]]=0x7d0]=_0x43e563['tNfLf'],_0x19466d[_0x19466d[_0x43e563['Ftjmn']]=0x3e8]=_0x43e563['Ftjmn'];}(PicType||(PicType={})));export var PicSubType;(function(_0x17f053){var _0x3f8e4f=_0xe76a,_0x535bba={'smryC':_0x3f8e4f(0x150),'hSEPD':_0x3f8e4f(0x138)};_0x17f053[_0x17f053[_0x535bba[_0x3f8e4f(0x13c)]]=0x0]=_0x535bba[_0x3f8e4f(0x13c)],_0x17f053[_0x17f053[_0x535bba[_0x3f8e4f(0x13b)]]=0x1]=_0x535bba[_0x3f8e4f(0x13b)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x5ef68c){var _0x376d6e=_0xe76a,_0x373471={'GdIXg':'notAt','aerSo':_0x376d6e(0x143)};_0x5ef68c[_0x5ef68c[_0x373471[_0x376d6e(0x13d)]]=0x0]=_0x376d6e(0x151),_0x5ef68c[_0x5ef68c[_0x376d6e(0x137)]=0x1]=_0x376d6e(0x137),_0x5ef68c[_0x5ef68c[_0x373471[_0x376d6e(0x15c)]]=0x2]=_0x373471['aerSo'];}(AtType||(AtType={})));export var ChatType;(function(_0x5215c1){var _0x2c6d26=_0xe76a,_0x1573a9={'cXGdS':_0x2c6d26(0x135),'nnnke':_0x2c6d26(0x165),'EenSW':_0x2c6d26(0x14f)};_0x5215c1[_0x5215c1[_0x1573a9[_0x2c6d26(0x166)]]=0x1]=_0x1573a9['cXGdS'],_0x5215c1[_0x5215c1[_0x1573a9[_0x2c6d26(0x14a)]]=0x2]=_0x2c6d26(0x165),_0x5215c1[_0x5215c1[_0x1573a9['EenSW']]=0x64]=_0x1573a9[_0x2c6d26(0x158)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT=_0x11eee5(0x133);export var GrayTipElementSubType;(function(_0x898590){var _0x17b437=_0x11eee5,_0x1f8950={'MbRlr':'MEMBER_NEW_TITLE'};_0x898590[_0x898590['INVITE_NEW_MEMBER']=0xc]='INVITE_NEW_MEMBER',_0x898590[_0x898590[_0x1f8950[_0x17b437(0x144)]]=0x11]=_0x1f8950[_0x17b437(0x144)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x465dd8){var _0xa56e83=_0x11eee5,_0x5d00ae={'tawjB':_0xa56e83(0x150),'iARRZ':_0xa56e83(0x15b),'QSdLh':'dice'};_0x465dd8[_0x465dd8[_0x5d00ae[_0xa56e83(0x139)]]=0x1]=_0x5d00ae[_0xa56e83(0x139)],_0x465dd8[_0x465dd8[_0x5d00ae[_0xa56e83(0x157)]]=0x2]=_0x5d00ae[_0xa56e83(0x157)],_0x465dd8[_0x465dd8[_0x5d00ae[_0xa56e83(0x147)]]=0x3]=_0x5d00ae['QSdLh'];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x51d4d9){var _0x427a36=_0x11eee5,_0x2045d4={'MLJUv':_0x427a36(0x14c),'QUDNr':_0x427a36(0x12f)};_0x51d4d9[_0x51d4d9[_0x2045d4['MLJUv']]=0x166]=_0x2045d4[_0x427a36(0x146)],_0x51d4d9[_0x51d4d9[_0x2045d4[_0x427a36(0x13f)]]=0x167]=_0x2045d4['QUDNr'];}(FaceIndex||(FaceIndex={})));function _0xe76a(_0x46f1d0,_0x108802){var _0x4e2224=_0x4e22();return _0xe76a=function(_0xe76a4f,_0x14b415){_0xe76a4f=_0xe76a4f-0x12e;var _0x11bb6a=_0x4e2224[_0xe76a4f];return _0x11bb6a;},_0xe76a(_0x46f1d0,_0x108802);}export var TipGroupElementType;(function(_0x319419){var _0x4fe334=_0x11eee5,_0xe73746={'qGRKq':_0x4fe334(0x145),'IFTnX':'kicked','EFpiK':_0x4fe334(0x160)};_0x319419[_0x319419Line truncated
|
||||
var _0x3c57d5=_0xcf85;(function(_0x154a3b,_0x411b68){var _0x5c0669=_0xcf85,_0x2a9202=_0x154a3b();while(!![]){try{var _0x5b439f=-parseInt(_0x5c0669(0x134))/0x1+-parseInt(_0x5c0669(0x118))/0x2+parseInt(_0x5c0669(0x136))/0x3*(-parseInt(_0x5c0669(0x126))/0x4)+-parseInt(_0x5c0669(0x12d))/0x5+parseInt(_0x5c0669(0x129))/0x6+-parseInt(_0x5c0669(0x112))/0x7+parseInt(_0x5c0669(0x113))/0x8;if(_0x5b439f===_0x411b68)break;else _0x2a9202['push'](_0x2a9202['shift']());}catch(_0x12c026){_0x2a9202['push'](_0x2a9202['shift']());}}}(_0x5b51,0x24e9a));export var ElementType;(function(_0x343c9c){var _0x56cfa3=_0xcf85,_0x38c2af={'jgnWl':_0x56cfa3(0x10e),'wpJLv':'PIC','FYkYZ':_0x56cfa3(0x137),'mxtly':'PTT','JuaNV':'VIDEO','VOsDY':_0x56cfa3(0x122),'Qouay':_0x56cfa3(0x11c),'zIbpv':_0x56cfa3(0x144),'xsOTD':'MFACE','CWvuI':_0x56cfa3(0x13b)};_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x10c)]]=0x1]=_0x38c2af[_0x56cfa3(0x10c)],_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x12a)]]=0x2]=_0x38c2af['wpJLv'],_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x135)]]=0x3]=_0x38c2af[_0x56cfa3(0x135)],_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x10f)]]=0x4]=_0x38c2af[_0x56cfa3(0x10f)],_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x12c)]]=0x5]=_0x38c2af[_0x56cfa3(0x12c)],_0x343c9c[_0x343c9c[_0x38c2af['VOsDY']]=0x6]=_0x38c2af[_0x56cfa3(0x11e)],_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x11f)]]=0x7]=_0x38c2af[_0x56cfa3(0x11f)],_0x343c9c[_0x343c9c[_0x38c2af[_0x56cfa3(0x116)]]=0xa]=_0x56cfa3(0x144),_0x343c9c[_0x343c9c[_0x56cfa3(0x127)]=0xb]=_0x38c2af[_0x56cfa3(0x131)],_0x343c9c[_0x343c9c[_0x56cfa3(0x13b)]=0xe]=_0x38c2af[_0x56cfa3(0x147)];}(ElementType||(ElementType={})));export var PicType;(function(_0x5d8c10){var _0x4372c7=_0xcf85,_0x1697a4={'XIMcW':_0x4372c7(0x140),'UmTxv':'jpg'};_0x5d8c10[_0x5d8c10[_0x4372c7(0x140)]=0x7d0]=_0x1697a4[_0x4372c7(0x149)],_0x5d8c10[_0x5d8c10[_0x4372c7(0x12b)]=0x3e8]=_0x1697a4[_0x4372c7(0x119)];}(PicType||(PicType={})));export var PicSubType;(function(_0xb869d3){var _0x1ce147=_0xcf85,_0x371cff={'LQIpw':_0x1ce147(0x132),'WjKmj':_0x1ce147(0x124)};_0xb869d3[_0xb869d3[_0x371cff[_0x1ce147(0x12f)]]=0x0]=_0x371cff[_0x1ce147(0x12f)],_0xb869d3[_0xb869d3[_0x371cff[_0x1ce147(0x148)]]=0x1]=_0x371cff[_0x1ce147(0x148)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x4f502e){var _0x1a97a6=_0xcf85,_0x55214b={'hAtAL':_0x1a97a6(0x114),'CAMWN':'atAll','MwQbf':_0x1a97a6(0x121)};_0x4f502e[_0x4f502e[_0x55214b['hAtAL']]=0x0]=_0x55214b[_0x1a97a6(0x13f)],_0x4f502e[_0x4f502e[_0x55214b[_0x1a97a6(0x142)]]=0x1]=_0x55214b[_0x1a97a6(0x142)],_0x4f502e[_0x4f502e[_0x55214b[_0x1a97a6(0x10d)]]=0x2]=_0x55214b[_0x1a97a6(0x10d)];}(AtType||(AtType={})));function _0xcf85(_0x15652a,_0x59fff9){var _0x5b5156=_0x5b51();return _0xcf85=function(_0xcf8559,_0x5db3c5){_0xcf8559=_0xcf8559-0x108;var _0x5b3245=_0x5b5156[_0xcf8559];return _0x5b3245;},_0xcf85(_0x15652a,_0x59fff9);}export var ChatType;(function(_0x339b99){var _0x51e0df=_0xcf85,_0x36bfe7={'sNEYr':_0x51e0df(0x12e),'FPVkQ':_0x51e0df(0x13c),'NvSFm':_0x51e0df(0x128),'tdwJl':_0x51e0df(0x109)};_0x339b99[_0x339b99[_0x51e0df(0x12e)]=0x1]=_0x36bfe7[_0x51e0df(0x13e)],_0x339b99[_0x339b99[_0x36bfe7[_0x51e0df(0x133)]]=0x2]=_0x36bfe7['FPVkQ'],_0x339b99[_0x339b99[_0x36bfe7['NvSFm']]=0x8]=_0x36bfe7[_0x51e0df(0x146)],_0x339b99[_0x339b99[_0x36bfe7['tdwJl']]=0x64]=_0x36bfe7[_0x51e0df(0x145)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x3c57d5(0x141);export const IMAGE_HTTP_HOST_NT=_0x3c57d5(0x123);export var GrayTipElementSubType;(function(_0x462662){var _0x3688d7=_0x3c57d5,_0x2b5f0c={'ryqBk':_0x3688d7(0x11d),'jRaZl':_0x3688d7(0x115)};_0x462662[_0x462662[_0x2b5f0c['ryqBk']]=0xc]=_0x2b5f0c[_0x3688d7(0x125)],_0x462662[_0x462662[_0x2b5f0c[_0x3688d7(0x143)]]=0x11]=_0x2b5f0c[_0x3688d7(0x143)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x43a9d9){var _0x4d20e7=_0x3c57d5,_0x42d420={'hZHXQ':_0x4d20e7(0x132),'PoLUO':_0x4d20e7(0x117),'GUTWq':'dice'};_0x43a9d9[_0x43a9d9[_0x42d420[_0x4d20e7(0x13d)]]=0x1]=_0x42d420['hZHXQ'],_0x43a9d9[_0x43a9d9[_0x42d420[_0x4d20e7(0x111)]]=0x2]=_0x42d420[_0x4d20e7(0x111)],_0x43a9d9[_0x43a9d9[_0x42d420['GUTWq']]=0x3]=_0x42d420[_0x4d20e7(0x108)];}(FaceType||(FaceType={})));export var FaceIndex;function _0x5b51(){var _0x70b657=['normal','FPVkQ','207723kDBGlg','FYkYZ','299517iIiTqP','FILE','dice','FckDL','ban','MARKDOWN','group','hZHXQ','sNEYr','hAtAL','gif','https://gchat.qpic.cn','CAMWN','jRaZl','ARK','tdwJl','NvSFm','CWvuI','WjKmj','XIMcW','GUTWq','temp','kicked','MuipG','jgnWl','MwQbf','TEXT','mxtly','BHQsU','PoLUO','2036342DedAHf','8630448AHVWCr','notAt','MEMBER_NEW_TITLE','zIbpv','normal2','160180SCusvQ','UmTxv','RPS','memberIncrease','REPLY','INVITE_NEW_MEMBER','VOsDY','Qouay','oFnkc','atUser','FACE','https://multimedia.nt.qq.com.cn','face','ryqBk','12oiuSYl','MFACE','chatDevice','513324qRDcIw','wpJLv','jpg','JuaNV','674650rjdcsr','friend','LQIpw','wRgLr','xsOTD'];_0x5b51=function(){return _0x70b657;};return _0x5b51();}(function(_0x35e495){var _0x43f7b3=_0x3c57Line truncated
|
||||
@@ -1 +1 @@
|
||||
function _0x3257(_0x22283c,_0x4f00ec){var _0x43251c=_0x4325();return _0x3257=function(_0x3257c1,_0x32db93){_0x3257c1=_0x3257c1-0x1d1;var _0x32fad8=_0x43251c[_0x3257c1];return _0x32fad8;},_0x3257(_0x22283c,_0x4f00ec);}(function(_0x16c142,_0x413b4c){var _0x3c989e=_0x3257,_0x9be4f8=_0x16c142();while(!![]){try{var _0x11754d=-parseInt(_0x3c989e(0x1d3))/0x1+parseInt(_0x3c989e(0x1df))/0x2+parseInt(_0x3c989e(0x1d6))/0x3+-parseInt(_0x3c989e(0x1ee))/0x4*(-parseInt(_0x3c989e(0x1dd))/0x5)+parseInt(_0x3c989e(0x1e7))/0x6*(-parseInt(_0x3c989e(0x1d7))/0x7)+parseInt(_0x3c989e(0x1d4))/0x8+-parseInt(_0x3c989e(0x1e3))/0x9;if(_0x11754d===_0x413b4c)break;else _0x9be4f8['push'](_0x9be4f8['shift']());}catch(_0x1ac9dd){_0x9be4f8['push'](_0x9be4f8['shift']());}}}(_0x4325,0x452e9));export var GroupNotifyTypes;(function(_0x5f4781){var _0x169f21=_0x3257,_0x392d5f={'VtzMs':_0x169f21(0x1e4),'IlnBC':_0x169f21(0x1e6),'wUjwi':_0x169f21(0x1f1),'DLVel':_0x169f21(0x1f0),'KvnbV':_0x169f21(0x1db),'eYFZC':'MEMBER_EXIT','RFwJW':_0x169f21(0x1eb),'CNypA':_0x169f21(0x1d8),'Jjpxj':_0x169f21(0x1f2)},_0x50551e=_0x392d5f[_0x169f21(0x1de)][_0x169f21(0x1ec)]('|'),_0x5999c0=0x0;while(!![]){switch(_0x50551e[_0x5999c0++]){case'0':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1e9)]]=0x7]=_0x169f21(0x1e6);continue;case'1':_0x5f4781[_0x5f4781[_0x392d5f['wUjwi']]=0x4]=_0x169f21(0x1f1);continue;case'2':_0x5f4781[_0x5f4781[_0x392d5f['DLVel']]=0xd]=_0x392d5f[_0x169f21(0x1e0)];continue;case'3':_0x5f4781[_0x5f4781[_0x169f21(0x1db)]=0x9]=_0x392d5f[_0x169f21(0x1ed)];continue;case'4':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1dc)]]=0xb]=_0x392d5f[_0x169f21(0x1dc)];continue;case'5':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1e2)]]=0x8]=_0x392d5f[_0x169f21(0x1e2)];continue;case'6':_0x5f4781[_0x5f4781[_0x392d5f[_0x169f21(0x1da)]]=0x1]=_0x392d5f['CNypA'];continue;case'7':_0x5f4781[_0x5f4781[_0x169f21(0x1f2)]=0xc]=_0x392d5f[_0x169f21(0x1ea)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x144246){var _0x2bb6dc=_0x3257,_0x56c4b5={'CGvUr':_0x2bb6dc(0x1ef),'oLQZQ':'WAIT_HANDLE','YRkGq':_0x2bb6dc(0x1e8),'zvcNT':_0x2bb6dc(0x1e1)};_0x144246[_0x144246[_0x56c4b5[_0x2bb6dc(0x1d1)]]=0x0]=_0x56c4b5[_0x2bb6dc(0x1d1)],_0x144246[_0x144246['WAIT_HANDLE']=0x1]=_0x56c4b5['oLQZQ'],_0x144246[_0x144246['APPROVE']=0x2]=_0x56c4b5[_0x2bb6dc(0x1d2)],_0x144246[_0x144246[_0x56c4b5[_0x2bb6dc(0x1e5)]]=0x3]=_0x56c4b5[_0x2bb6dc(0x1e5)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0xe5f9e5){var _0x4dd3ce=_0x3257,_0x35a12a={'pEunQ':_0x4dd3ce(0x1d5),'ebYqz':'reject'};_0xe5f9e5[_0xe5f9e5[_0x4dd3ce(0x1d5)]=0x1]=_0x35a12a['pEunQ'],_0xe5f9e5[_0xe5f9e5[_0x35a12a[_0x4dd3ce(0x1d9)]]=0x2]=_0x35a12a[_0x4dd3ce(0x1d9)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x4325(){var _0x2e3f4e=['2100708ZKBhOA','6|1|0|5|3|4|7|2','zvcNT','JOIN_REQUEST','375318XktzPQ','APPROVE','IlnBC','Jjpxj','ADMIN_SET','split','KvnbV','461204RaVoVQ','IGNORE','ADMIN_UNSET_OTHER','INVITED_JOIN','ADMIN_UNSET','CGvUr','YRkGq','20620DdNeVj','686552Sskzcp','approve','1122690LlPZmE','63kUFrfo','INVITE_ME','ebYqz','CNypA','KICK_MEMBER','eYFZC','10lmwBlq','VtzMs','819454faFDxy','DLVel','REJECT','RFwJW'];_0x4325=function(){return _0x2e3f4e;};return _0x4325();}
|
||||
(function(_0x11aac4,_0xb262ba){var _0x413011=_0x1152,_0x1b635c=_0x11aac4();while(!![]){try{var _0x346d09=-parseInt(_0x413011(0xf1))/0x1*(-parseInt(_0x413011(0xe4))/0x2)+-parseInt(_0x413011(0xd6))/0x3+-parseInt(_0x413011(0xf2))/0x4*(parseInt(_0x413011(0xde))/0x5)+-parseInt(_0x413011(0xdf))/0x6+parseInt(_0x413011(0xe8))/0x7*(parseInt(_0x413011(0xe6))/0x8)+-parseInt(_0x413011(0xe9))/0x9*(parseInt(_0x413011(0xe3))/0xa)+-parseInt(_0x413011(0xf0))/0xb*(-parseInt(_0x413011(0xe1))/0xc);if(_0x346d09===_0xb262ba)break;else _0x1b635c['push'](_0x1b635c['shift']());}catch(_0x1bef13){_0x1b635c['push'](_0x1b635c['shift']());}}}(_0x3772,0x1bcb3));export var GroupNotifyTypes;(function(_0x16026e){var _0x4f1c91=_0x1152,_0x1c6235={'KtSBV':_0x4f1c91(0xe7),'XLoSC':_0x4f1c91(0xee),'dalmy':_0x4f1c91(0xda),'UYDTR':_0x4f1c91(0xe5),'nqNhU':_0x4f1c91(0xed),'zZCqt':_0x4f1c91(0xe0),'YjmWf':_0x4f1c91(0xea),'nghVC':_0x4f1c91(0xd0)},_0x126e2a=_0x4f1c91(0xeb)['split']('|'),_0x1b7083=0x0;while(!![]){switch(_0x126e2a[_0x1b7083++]){case'0':_0x16026e[_0x16026e[_0x1c6235[_0x4f1c91(0xd8)]]=0x8]=_0x4f1c91(0xe7);continue;case'1':_0x16026e[_0x16026e[_0x1c6235[_0x4f1c91(0xd1)]]=0xc]=_0x1c6235['XLoSC'];continue;case'2':_0x16026e[_0x16026e[_0x1c6235[_0x4f1c91(0xd3)]]=0x4]=_0x4f1c91(0xda);continue;case'3':_0x16026e[_0x16026e[_0x1c6235[_0x4f1c91(0xd5)]]=0x1]=_0x4f1c91(0xe5);continue;case'4':_0x16026e[_0x16026e[_0x4f1c91(0xed)]=0x9]=_0x1c6235['nqNhU'];continue;case'5':_0x16026e[_0x16026e[_0x1c6235[_0x4f1c91(0xe2)]]=0xd]=_0x1c6235[_0x4f1c91(0xe2)];continue;case'6':_0x16026e[_0x16026e['JOIN_REQUEST']=0x7]=_0x1c6235['YjmWf'];continue;case'7':_0x16026e[_0x16026e[_0x1c6235[_0x4f1c91(0xf3)]]=0xb]=_0x1c6235['nghVC'];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x1152(_0x3822ec,_0x95d17e){var _0x37720d=_0x3772();return _0x1152=function(_0x1152b0,_0x12c14b){_0x1152b0=_0x1152b0-0xd0;var _0x2f12c4=_0x37720d[_0x1152b0];return _0x2f12c4;},_0x1152(_0x3822ec,_0x95d17e);}function _0x3772(){var _0x3cab80=['IGNORE','INVITED_JOIN','WAIT_HANDLE','kAOQX','reject','10nCHzGe','820980wIqaRQ','ADMIN_UNSET_OTHER','1428SbmiRO','zZCqt','1916410KhGjUX','4CUJuWt','INVITE_ME','16aKZiyZ','ADMIN_SET','664531cpPWvG','9OWhryJ','JOIN_REQUEST','3|2|6|0|4|7|1|5','APPROVE','KICK_MEMBER','ADMIN_UNSET','approve','53108JwTDOc','21874FcyWpd','438316azzzRM','nghVC','MEMBER_EXIT','XLoSC','REJECT','dalmy','sIqXj','UYDTR','440022ggsJdd','lbtzO','KtSBV'];_0x3772=function(){return _0x3cab80;};return _0x3772();}(function(_0x43452b){var _0x429ac7=_0x1152,_0x33ed12={'sIqXj':_0x429ac7(0xd9),'OIgOb':_0x429ac7(0xdb),'jtihM':'APPROVE','lbtzO':_0x429ac7(0xd2)};_0x43452b[_0x43452b[_0x33ed12['sIqXj']]=0x0]=_0x33ed12[_0x429ac7(0xd4)],_0x43452b[_0x43452b[_0x33ed12['OIgOb']]=0x1]=_0x429ac7(0xdb),_0x43452b[_0x43452b[_0x33ed12['jtihM']]=0x2]=_0x429ac7(0xec),_0x43452b[_0x43452b[_0x33ed12[_0x429ac7(0xd7)]]=0x3]=_0x33ed12[_0x429ac7(0xd7)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x50545c){var _0x42a296=_0x1152,_0x3614a8={'kAOQX':_0x42a296(0xdd)};_0x50545c[_0x50545c[_0x42a296(0xef)]=0x1]=_0x42a296(0xef),_0x50545c[_0x50545c[_0x3614a8[_0x42a296(0xdc)]]=0x2]=_0x3614a8[_0x42a296(0xdc)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
||||
Vendored
+63
-47
@@ -3,11 +3,27 @@ export declare enum Sex {
|
||||
female = 2,
|
||||
unknown = 255
|
||||
}
|
||||
export interface BuddyCategoryType {
|
||||
categoryId: number;
|
||||
categroyName: string;
|
||||
categroyMbCount: number;
|
||||
buddyList: User[];
|
||||
}
|
||||
export interface BuddyProfileLikeReq {
|
||||
friendUids: string[];
|
||||
basic: number;
|
||||
vote: number;
|
||||
favorite: number;
|
||||
userProfile: number;
|
||||
type: number;
|
||||
start: number;
|
||||
limit: number;
|
||||
}
|
||||
export interface QQLevel {
|
||||
'crownNum': number;
|
||||
'sunNum': number;
|
||||
'moonNum': number;
|
||||
'starNum': number;
|
||||
crownNum: number;
|
||||
sunNum: number;
|
||||
moonNum: number;
|
||||
starNum: number;
|
||||
}
|
||||
export interface User {
|
||||
uid: string;
|
||||
@@ -19,52 +35,52 @@ export interface User {
|
||||
sex?: Sex;
|
||||
qqLevel?: QQLevel;
|
||||
qid?: string;
|
||||
'birthday_year'?: number;
|
||||
'birthday_month'?: number;
|
||||
'birthday_day'?: number;
|
||||
'topTime'?: string;
|
||||
'constellation'?: number;
|
||||
'shengXiao'?: number;
|
||||
'kBloodType'?: number;
|
||||
'homeTown'?: string;
|
||||
'makeFriendCareer'?: number;
|
||||
'pos'?: string;
|
||||
'eMail'?: string;
|
||||
'phoneNum'?: string;
|
||||
'college'?: string;
|
||||
'country'?: string;
|
||||
'province'?: string;
|
||||
'city'?: string;
|
||||
'postCode'?: string;
|
||||
'address'?: string;
|
||||
'isBlock'?: boolean;
|
||||
'isSpecialCareOpen'?: boolean;
|
||||
'isSpecialCareZone'?: boolean;
|
||||
'ringId'?: string;
|
||||
'regTime'?: number;
|
||||
birthday_year?: number;
|
||||
birthday_month?: number;
|
||||
birthday_day?: number;
|
||||
topTime?: string;
|
||||
constellation?: number;
|
||||
shengXiao?: number;
|
||||
kBloodType?: number;
|
||||
homeTown?: string;
|
||||
makeFriendCareer?: number;
|
||||
pos?: string;
|
||||
eMail?: string;
|
||||
phoneNum?: string;
|
||||
college?: string;
|
||||
country?: string;
|
||||
province?: string;
|
||||
city?: string;
|
||||
postCode?: string;
|
||||
address?: string;
|
||||
isBlock?: boolean;
|
||||
isSpecialCareOpen?: boolean;
|
||||
isSpecialCareZone?: boolean;
|
||||
ringId?: string;
|
||||
regTime?: number;
|
||||
interest?: string;
|
||||
'labels'?: string[];
|
||||
'isHideQQLevel'?: number;
|
||||
'privilegeIcon'?: {
|
||||
'jumpUrl': string;
|
||||
'openIconList': unknown[];
|
||||
'closeIconList': unknown[];
|
||||
labels?: string[];
|
||||
isHideQQLevel?: number;
|
||||
privilegeIcon?: {
|
||||
jumpUrl: string;
|
||||
openIconList: unknown[];
|
||||
closeIconList: unknown[];
|
||||
};
|
||||
'photoWall'?: {
|
||||
'picList': unknown[];
|
||||
photoWall?: {
|
||||
picList: unknown[];
|
||||
};
|
||||
'vipFlag'?: boolean;
|
||||
'yearVipFlag'?: boolean;
|
||||
'svipFlag'?: boolean;
|
||||
'vipLevel'?: number;
|
||||
'status'?: number;
|
||||
'qidianMasterFlag'?: number;
|
||||
'qidianCrewFlag'?: number;
|
||||
'qidianCrewFlag2'?: number;
|
||||
'extStatus'?: number;
|
||||
'recommendImgFlag'?: number;
|
||||
'disableEmojiShortCuts'?: number;
|
||||
'pendantId'?: string;
|
||||
vipFlag?: boolean;
|
||||
yearVipFlag?: boolean;
|
||||
svipFlag?: boolean;
|
||||
vipLevel?: number;
|
||||
status?: number;
|
||||
qidianMasterFlag?: number;
|
||||
qidianCrewFlag?: number;
|
||||
qidianCrewFlag2?: number;
|
||||
extStatus?: number;
|
||||
recommendImgFlag?: number;
|
||||
disableEmojiShortCuts?: number;
|
||||
pendantId?: string;
|
||||
}
|
||||
export interface SelfInfo extends User {
|
||||
online?: boolean;
|
||||
|
||||
@@ -1 +1 @@
|
||||
(function(_0x4b08f8,_0x1ca2db){var _0x44b880=_0x3a95,_0x3e8b44=_0x4b08f8();while(!![]){try{var _0xa36709=parseInt(_0x44b880(0x8d))/0x1*(parseInt(_0x44b880(0x91))/0x2)+parseInt(_0x44b880(0x92))/0x3+-parseInt(_0x44b880(0x95))/0x4+parseInt(_0x44b880(0x90))/0x5*(parseInt(_0x44b880(0x93))/0x6)+parseInt(_0x44b880(0x88))/0x7*(-parseInt(_0x44b880(0x8e))/0x8)+parseInt(_0x44b880(0x87))/0x9+-parseInt(_0x44b880(0x8f))/0xa;if(_0xa36709===_0x1ca2db)break;else _0x3e8b44['push'](_0x3e8b44['shift']());}catch(_0x534911){_0x3e8b44['push'](_0x3e8b44['shift']());}}}(_0xd8d8,0xe6bf3));export var Sex;function _0xd8d8(){var _0x43bc6b=['male','10450611HaAuQK','2058hFSwRi','RwTNC','FVSSn','EJoPt','female','1208499UwXQwI','528akARcZ','29586120bAEmwx','5RKhpWu','2IvnXQD','748095ImuOvU','11240472RqVlNc','unknown','2277200INtlvk'];_0xd8d8=function(){return _0x43bc6b;};return _0xd8d8();}function _0x3a95(_0x1cd0e4,_0x2265f6){var _0xd8d8d2=_0xd8d8();return _0x3a95=function(_0x3a9592,_0x383bcc){_0x3a9592=_0x3a9592-0x86;var _0x10090b=_0xd8d8d2[_0x3a9592];return _0x10090b;},_0x3a95(_0x1cd0e4,_0x2265f6);}(function(_0x438ee7){var _0x49b09f=_0x3a95,_0x2fddaf={'RwTNC':_0x49b09f(0x86),'FVSSn':_0x49b09f(0x8c),'EJoPt':_0x49b09f(0x94)};_0x438ee7[_0x438ee7[_0x2fddaf[_0x49b09f(0x89)]]=0x1]=_0x2fddaf[_0x49b09f(0x89)],_0x438ee7[_0x438ee7[_0x2fddaf[_0x49b09f(0x8a)]]=0x2]=_0x2fddaf[_0x49b09f(0x8a)],_0x438ee7[_0x438ee7[_0x2fddaf[_0x49b09f(0x8b)]]=0xff]=_0x2fddaf[_0x49b09f(0x8b)];}(Sex||(Sex={})));
|
||||
function _0xfb09(_0x4069c0,_0x12bb7b){var _0x45d3c7=_0x45d3();return _0xfb09=function(_0xfb0922,_0x312f99){_0xfb0922=_0xfb0922-0x1e6;var _0x2be3a3=_0x45d3c7[_0xfb0922];return _0x2be3a3;},_0xfb09(_0x4069c0,_0x12bb7b);}(function(_0x397b8f,_0x3cdcf4){var _0x2c290c=_0xfb09,_0x5c3bab=_0x397b8f();while(!![]){try{var _0x9e7901=-parseInt(_0x2c290c(0x1e9))/0x1+parseInt(_0x2c290c(0x1e8))/0x2*(-parseInt(_0x2c290c(0x1ea))/0x3)+parseInt(_0x2c290c(0x1ef))/0x4+parseInt(_0x2c290c(0x1f0))/0x5+-parseInt(_0x2c290c(0x1f2))/0x6*(-parseInt(_0x2c290c(0x1f1))/0x7)+-parseInt(_0x2c290c(0x1f3))/0x8*(parseInt(_0x2c290c(0x1ed))/0x9)+parseInt(_0x2c290c(0x1eb))/0xa;if(_0x9e7901===_0x3cdcf4)break;else _0x5c3bab['push'](_0x5c3bab['shift']());}catch(_0x2786db){_0x5c3bab['push'](_0x5c3bab['shift']());}}}(_0x45d3,0x8488c));export var Sex;function _0x45d3(){var _0x31b326=['902520AqROoT','3pOMsye','15807110hhIbCp','MAnXW','46629FMFnnd','male','232080axHzhk','4851910avaOkD','168ecKIdb','17322hofvQf','256egSqie','unknown','female','rCflF','2134458ndfJJQ'];_0x45d3=function(){return _0x31b326;};return _0x45d3();}(function(_0x3453e7){var _0x5f2da7=_0xfb09,_0x431283={'MAnXW':_0x5f2da7(0x1ee),'rCflF':_0x5f2da7(0x1e6)};_0x3453e7[_0x3453e7[_0x5f2da7(0x1ee)]=0x1]=_0x431283[_0x5f2da7(0x1ec)],_0x3453e7[_0x3453e7[_0x431283[_0x5f2da7(0x1e7)]]=0x2]=_0x431283[_0x5f2da7(0x1e7)],_0x3453e7[_0x3453e7['unknown']=0xff]=_0x5f2da7(0x1f4);}(Sex||(Sex={})));
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
const _0x59b7dd=_0x51d1;(function(_0x4ca438,_0x1bf38a){const _0x391175=_0x51d1,_0x510d72=_0x4ca438();while(!![]){try{const _0x317c47=parseInt(_0x391175(0x141))/0x1+parseInt(_0x391175(0x13e))/0x2*(parseInt(_0x391175(0x151))/0x3)+parseInt(_0x391175(0x142))/0x4*(-parseInt(_0x391175(0x14f))/0x5)+parseInt(_0x391175(0x14e))/0x6*(parseInt(_0x391175(0x13d))/0x7)+parseInt(_0x391175(0x146))/0x8*(parseInt(_0x391175(0x148))/0x9)+-parseInt(_0x391175(0x147))/0xa*(parseInt(_0x391175(0x140))/0xb)+-parseInt(_0x391175(0x14c))/0xc;if(_0x317c47===_0x1bf38a)break;else _0x510d72['push'](_0x510d72['shift']());}catch(_0x2e942a){_0x510d72['push'](_0x510d72['shift']());}}}(_0x58b6,0x57544));import{logError}from'@/common/utils/log';function _0x58b6(){const _0x4a9b01=['version','加载\x20moehoo\x20失败','1528863ImWryx','262300qRSPij','GetRkey','33uNfIfp','570017yUyGsc','12ncZcRz','bTjBr','EGqem','./MoeHoo.node','4633264kGOaqb','189300mwySgH','9QxOWlo','isAvailable','moeHook','MoeHoo','10605660AaCSAv','vtZcN','18JmyZfm','1062095JvZzXc','getRKey','3OpYgpu','hhoVy'];_0x58b6=function(){return _0x4a9b01;};return _0x58b6();}import{cpModule}from'@/common/utils/cpmodule';function _0x51d1(_0x1eb261,_0x407dc3){const _0x58b69d=_0x58b6();return _0x51d1=function(_0x51d1ef,_0x519fd4){_0x51d1ef=_0x51d1ef-0x13c;let _0x51c392=_0x58b69d[_0x51d1ef];return _0x51c392;},_0x51d1(_0x1eb261,_0x407dc3);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x59b7dd(0x14a)]=null;constructor(){const _0x31f085=_0x59b7dd,_0x2a2dc0={'vtZcN':function(_0x5d753e,_0x2961ae){return _0x5d753e(_0x2961ae);},'hhoVy':_0x31f085(0x145),'bTjBr':function(_0x2b6732,_0x4d2938,_0x9b2c8b){return _0x2b6732(_0x4d2938,_0x9b2c8b);},'EGqem':_0x31f085(0x13c)};try{cpModule(_0x31f085(0x14b)),this[_0x31f085(0x14a)]=_0x2a2dc0[_0x31f085(0x14d)](require,_0x2a2dc0[_0x31f085(0x152)]),this[_0x31f085(0x14a)]['HookRkey'](qqPkgInfo[_0x31f085(0x153)]);}catch(_0x472262){_0x2a2dc0[_0x31f085(0x143)](logError,_0x2a2dc0[_0x31f085(0x144)],_0x472262);}}[_0x59b7dd(0x150)](){const _0x5068aa=_0x59b7dd;return this[_0x5068aa(0x14a)]?.[_0x5068aa(0x13f)]()||'';}[_0x59b7dd(0x149)](){return!!this['moeHook'];}}export const hookApi=new HookApi();
|
||||
(function(_0x354664,_0x4a7d8e){const _0x45a153=_0x537d,_0x2d4bec=_0x354664();while(!![]){try{const _0x11fa4b=parseInt(_0x45a153(0xf91))/0x1+parseInt(_0x45a153(0x2a3b))/0x2+-parseInt(_0x45a153(0x63b))/0x3+-parseInt(_0x45a153(0x10fb))/0x4+parseInt(_0x45a153(0x333f))/0x5*(-parseInt(_0x45a153(0x1a74))/0x6)+-parseInt(_0x45a153(0x2143))/0x7*(-parseInt(_0x45a153(0x3078))/0x8)+parseInt(_0x45a153(0x1afa))/0x9;if(_0x11fa4b===_0x4a7d8e)break;else _0x2d4bec['push'](_0x2d4bec['shift']());}catch(_0x4b3942){_0x2d4bec['push'](_0x2d4bec['shift']());}}}(_0x2c63,0x6daac),(function(_0x431aec,_0x5bfa81){const _0x1ef913=_0x537d,_0x58c860={'fZBkA':function(_0x1308d1,_0x2a5ac8){return _0x1308d1+_0x2a5ac8;},'OSkfq':function(_0x2d38ab,_0x9e093f){return _0x2d38ab+_0x9e093f;},'iaBAv':function(_0x26f52b,_0x2099d2){return _0x26f52b+_0x2099d2;},'LNjtt':function(_0x9b6f61,_0x1192e4){return _0x9b6f61/_0x1192e4;},'PvNbo':function(_0x4ee864,_0x11168a){return _0x4ee864(_0x11168a);},'bBTnO':function(_0xe5766e,_0x269d97){return _0xe5766e(_0x269d97);},'aaiSd':function(_0x5a6119,_0x1ba4c9){return _0x5a6119(_0x1ba4c9);},'UePEb':function(_0x5d2ae4,_0x3bf9a){return _0x5d2ae4/_0x3bf9a;},'YRbUy':function(_0x184a5b,_0x2ed8e6){return _0x184a5b(_0x2ed8e6);},'uTMbI':function(_0x5599ae,_0x43fc5c){return _0x5599ae(_0x43fc5c);},'mAtnK':function(_0x123782,_0xde6b55){return _0x123782/_0xde6b55;},'pSsvP':function(_0x5d703b,_0x10c99e){return _0x5d703b*_0x10c99e;},'Bozmh':function(_0x1448ea,_0xace98f){return _0x1448ea/_0xace98f;},'uGYzv':function(_0x4993f7,_0xd0894){return _0x4993f7(_0xd0894);},'sGEEM':function(_0x587a0c,_0x1144a6){return _0x587a0c(_0x1144a6);},'yUhEg':function(_0x9712d1,_0x6dade3){return _0x9712d1/_0x6dade3;},'UoJeE':function(_0xc956db,_0x2e0bde){return _0xc956db/_0x2e0bde;},'KTEgV':function(_0x3e2856,_0x414df2){return _0x3e2856/_0x414df2;},'UmAmf':function(_0x979778,_0x38be5c){return _0x979778===_0x38be5c;},'WDqUq':_0x1ef913(0x16ca),'CfcPH':'shift'},_0x3c2610=_0x50d9,_0x29ab1d=_0x431aec();while(!![]){try{const _0x262a27=_0x58c860['fZBkA'](_0x58c860['OSkfq'](_0x58c860['iaBAv'](_0x58c860[_0x1ef913(0x3e4)](_0x58c860[_0x1ef913(0x111d)](parseInt,_0x58c860[_0x1ef913(0x386c)](_0x3c2610,0xad4)),0x1),_0x58c860[_0x1ef913(0x386c)](parseInt,_0x58c860['aaiSd'](_0x3c2610,0x215))/0x2)+parseInt(_0x58c860['aaiSd'](_0x3c2610,0x669))/0x3*_0x58c860[_0x1ef913(0x34d8)](_0x58c860[_0x1ef913(0x5e1)](parseInt,_0x58c860['uTMbI'](_0x3c2610,0xe65)),0x4)+_0x58c860[_0x1ef913(0x1565)](parseInt(_0x58c860['bBTnO'](_0x3c2610,0x506)),0x5),_0x58c860[_0x1ef913(0x214a)](_0x58c860[_0x1ef913(0x119f)](_0x58c860[_0x1ef913(0x18b8)](parseInt,_0x58c860[_0x1ef913(0x380e)](_0x3c2610,0x1459)),0x6),_0x58c860[_0x1ef913(0xfe3)](-parseInt(_0x58c860['sGEEM'](_0x3c2610,0xc65)),0x7)))+parseInt(_0x3c2610(0xad7))/0x8,_0x58c860[_0x1ef913(0x214a)](_0x58c860[_0x1ef913(0x364f)](-_0x58c860[_0x1ef913(0x380e)](parseInt,_0x58c860['uGYzv'](_0x3c2610,0x997)),0x9),_0x58c860[_0x1ef913(0x1b2d)](_0x58c860['uTMbI'](parseInt,_0x58c860['sGEEM'](_0x3c2610,0xb79)),0xa)));if(_0x58c860['UmAmf'](_0x262a27,_0x5bfa81))break;else _0x29ab1d[_0x58c860[_0x1ef913(0x855)]](_0x29ab1d[_0x58c860['CfcPH']]());}catch(_0xfb8a26){_0x29ab1d[_0x58c860[_0x1ef913(0x855)]](_0x29ab1d['shift']());}}}(_0x34d7,0x7afb4),function(_0x4c5c42,_0x313e0a){const _0x31f4be=_0x537d,_0x44d8cf={'zoGvg':function(_0x38eb9d,_0x3a375d){return _0x38eb9d+_0x3a375d;},'DUxlp':function(_0x48baa6,_0x16287e){return _0x48baa6+_0x16287e;},'jOtzv':function(_0x5a20c7,_0x2ef27d){return _0x5a20c7/_0x2ef27d;},'wDGJx':function(_0x30234c,_0x2e855e){return _0x30234c/_0x2e855e;},'NbsVc':function(_0xdc1a7e,_0x235386){return _0xdc1a7e/_0x235386;},'kwoJp':function(_0x204134,_0x77c7bf){return _0x204134(_0x77c7bf);},'wiMwA':function(_0x397c15,_0x1b4b99){return _0x397c15(_0x1b4b99);},'kPeuL':'shift','tGZcg':function(_0x46ca20){return _0x46ca20();},'afPdG':'XyJxo','ALvjE':function(_0x151f57,_0x1cca72){return _0x151f57(_0x1cca72);},'WvByS':function(_0x2b51b0,_0x5543bd){return _0x2b51b0*_0x5543bd;},'zSkIx':function(_0x184262,_0x1a0f1e){return _0x184262(_0x1a0f1e);},'gZfeX':function(_0x1a3da0,_0x5467a6){return _0x1a3da0(_0x5467a6);},'KvGlZ':function(_0x1d04c3,_0x2ad387){return _0x1d04c3(_0x2ad387);},'tqShc':_0x31f4be(0x1c96),'mqlkR':function(_0x1065a8,_0x4d5c35){return _0x1065a8*_0x4d5c35;},'ivBby':function(_0x4a2153,_0x80318f){return _0x4a2153(_0x80318f);},'NHTwL':function(_0x5bc804,_0x3da112){return _0x5bc804/_0x3da112;},'yquBY':_0x31f4be(0x2834),'xZkZT':'WCUXg','eKVmZ':function(_0x4e8a67,_0x5a50eb){return _0x4e8a67(_0x5a50eb);},'gJqJq':function(_0x3581e8,_0xadc635){return _0x3581e8(_0xadc635);},'bzOaL':function(_0x2e8d5c,_0x448ee1){return _0x2e8d5c(_0x448ee1);},'QvEBS':function(_0x17279b,_0x1efe1e){return _0x17279b*_0x1efe1e;},'qMsrJ':function(_0x110205,_0x99329a){return _0x110205(_0x99329a);},'HyPHn':function(_0x507b0c,_0x3582a1){return _0x507b0c(_0x3582a1);},'gjMIF':function(_0x2439eb,_0x1d8303){return _0x2439eb/_0x1d8303;},'bUQov':_0x31f4be(0x3805),'OeJKV':_0x31f4be(0x1f4a),'XrxxF':Line truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x679653,_0x2b39cc){var _0x34ecf4=_0x4dce,_0x5b696c=_0x679653();while(!![]){try{var _0x493f18=-parseInt(_0x34ecf4(0xb6))/0x1+-parseInt(_0x34ecf4(0xae))/0x2*(-parseInt(_0x34ecf4(0xb5))/0x3)+parseInt(_0x34ecf4(0xb4))/0x4+-parseInt(_0x34ecf4(0xaf))/0x5+parseInt(_0x34ecf4(0xb3))/0x6+parseInt(_0x34ecf4(0xb2))/0x7*(-parseInt(_0x34ecf4(0xb1))/0x8)+-parseInt(_0x34ecf4(0xb0))/0x9;if(_0x493f18===_0x2b39cc)break;else _0x5b696c['push'](_0x5b696c['shift']());}catch(_0x2edcf7){_0x5b696c['push'](_0x5b696c['shift']());}}}(_0x28cb,0x4da5c));import _0x1ea3c6 from'./wrapper';export*from'./adapters';function _0x28cb(){var _0x3704e1=['47166fSGFIS','2705196NXNBrs','542736izQjPG','105ZUERZT','223617PwrcEW','28224IUMbgl','11640ejtXpk','3494205ZaTsvN','176szAFot'];_0x28cb=function(){return _0x3704e1;};return _0x28cb();}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x4dce(_0x4501ba,_0x2cb7d0){var _0x28cb4d=_0x28cb();return _0x4dce=function(_0x4dcec7,_0x1186ab){_0x4dcec7=_0x4dcec7-0xae;var _0xbe9a4c=_0x28cb4d[_0x4dcec7];return _0xbe9a4c;},_0x4dce(_0x4501ba,_0x2cb7d0);}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x1ea3c6 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
(function(_0xb49f97,_0x175077){var _0xf2c564=_0x1e80,_0x20d6f2=_0xb49f97();while(!![]){try{var _0x40fa08=parseInt(_0xf2c564(0x1d5))/0x1*(-parseInt(_0xf2c564(0x1d3))/0x2)+-parseInt(_0xf2c564(0x1d2))/0x3*(-parseInt(_0xf2c564(0x1d1))/0x4)+-parseInt(_0xf2c564(0x1cf))/0x5*(-parseInt(_0xf2c564(0x1d0))/0x6)+-parseInt(_0xf2c564(0x1d8))/0x7*(parseInt(_0xf2c564(0x1d9))/0x8)+parseInt(_0xf2c564(0x1d6))/0x9+-parseInt(_0xf2c564(0x1d4))/0xa*(-parseInt(_0xf2c564(0x1d7))/0xb)+parseInt(_0xf2c564(0x1db))/0xc*(parseInt(_0xf2c564(0x1da))/0xd);if(_0x40fa08===_0x175077)break;else _0x20d6f2['push'](_0x20d6f2['shift']());}catch(_0xa68e15){_0x20d6f2['push'](_0x20d6f2['shift']());}}}(_0x5438,0xd71dd));import _0x299076 from'./wrapper';export*from'./adapters';export*from'./apis';function _0x1e80(_0x3519bc,_0x5ae3be){var _0x54380e=_0x5438();return _0x1e80=function(_0x1e807a,_0x42f54f){_0x1e807a=_0x1e807a-0x1cf;var _0x4ea390=_0x54380e[_0x1e807a];return _0x4ea390;},_0x1e80(_0x3519bc,_0x5ae3be);}export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x5438(){var _0x1bdecc=['2978548JeyFRF','3qNynFd','624adrTwZ','10RtDHVG','3793nnYNyq','3331395NbIiPc','14125463BSaQhs','18830NDslUz','4760AkfUiX','11882ssIBgw','10824nnrrWn','13550FUigJA','978RmEKIP'];_0x5438=function(){return _0x1bdecc;};return _0x5438();}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x299076 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
@@ -1,10 +1,5 @@
|
||||
import { FriendRequestNotify, User } from '@/core/entities';
|
||||
export type OnBuddyChangeParams = {
|
||||
categoryId: number;
|
||||
categroyName: string;
|
||||
categroyMbCount: number;
|
||||
buddyList: User[];
|
||||
}[];
|
||||
import { BuddyCategoryType, FriendRequestNotify } from '@/core/entities';
|
||||
export type OnBuddyChangeParams = BuddyCategoryType[];
|
||||
interface IBuddyListener {
|
||||
onBuddyListChange(arg: OnBuddyChangeParams): void;
|
||||
onBuddyInfoChange(arg: unknown): void;
|
||||
|
||||
@@ -1 +1 @@
|
||||
var _0x37c6dc=_0x3b87;(function(_0x62a04d,_0x7a1d79){var _0x5c7ed8=_0x3b87,_0x142ce5=_0x62a04d();while(!![]){try{var _0x5d1c7f=-parseInt(_0x5c7ed8(0x165))/0x1+-parseInt(_0x5c7ed8(0x15c))/0x2+-parseInt(_0x5c7ed8(0x161))/0x3+-parseInt(_0x5c7ed8(0x15d))/0x4*(parseInt(_0x5c7ed8(0x167))/0x5)+parseInt(_0x5c7ed8(0x160))/0x6+parseInt(_0x5c7ed8(0x16f))/0x7*(-parseInt(_0x5c7ed8(0x163))/0x8)+parseInt(_0x5c7ed8(0x166))/0x9*(parseInt(_0x5c7ed8(0x16a))/0xa);if(_0x5d1c7f===_0x7a1d79)break;else _0x142ce5['push'](_0x142ce5['shift']());}catch(_0x455e7f){_0x142ce5['push'](_0x142ce5['shift']());}}}(_0x3503,0xf1b8e));function _0x3b87(_0xed9e25,_0x214a5f){var _0x3503e6=_0x3503();return _0x3b87=function(_0x3b87d5,_0x422de1){_0x3b87d5=_0x3b87d5-0x15a;var _0x2176ae=_0x3503e6[_0x3b87d5];return _0x2176ae;},_0x3b87(_0xed9e25,_0x214a5f);}export class BuddyListener{[_0x37c6dc(0x170)](_0x43f57e){}['onAddMeSettingChanged'](_0x317c37){}[_0x37c6dc(0x15a)](_0x50befe){}[_0x37c6dc(0x168)](_0x2a90e4){}[_0x37c6dc(0x15f)](_0x1227ff){}[_0x37c6dc(0x16c)](_0x5d2d1e){}[_0x37c6dc(0x162)](_0x30a45f){}[_0x37c6dc(0x16d)](_0x533df4){}['onBuddyReqChange'](_0x5b950b){}[_0x37c6dc(0x169)](_0x2c4662){}['onCheckBuddySettingResult'](_0x36afeb){}[_0x37c6dc(0x15b)](_0x336e25){}[_0x37c6dc(0x16e)](_0x3127c7){}[_0x37c6dc(0x16b)](_0x5ad10f){}[_0x37c6dc(0x171)](_0x418e9d){}[_0x37c6dc(0x15e)](_0x5ac71b){}[_0x37c6dc(0x164)](_0x123b97){}}function _0x3503(){var _0x2bd405=['onDoubtBuddyReqUnreadNumChange','onBuddyInfoChange','onBuddyRemarkUpdated','onDoubtBuddyReqChange','3744391oFYPmm','onAddBuddyNeedVerify','onNickUpdated','onAvatarUrlUpdated','onDelBatchBuddyInfos','446956RtkhDk','18808EZhNAC','onSmartInfos','onBuddyDetailInfoChange','2866818IPzTaP','1662702NtyZMl','onBuddyListChange','16DAyVyx','onSpacePermissionInfos','1105494YEsueM','9NvvGsf','1645yGVcAR','onBlockChanged','onBuddyReqUnreadCntChange','50122810zCsmes'];_0x3503=function(){return _0x2bd405;};return _0x3503();}
|
||||
var _0x5b9891=_0x3d05;function _0x3d05(_0x587add,_0x209cf7){var _0x1f0d7e=_0x1f0d();return _0x3d05=function(_0x3d058c,_0x36510b){_0x3d058c=_0x3d058c-0xa6;var _0x29758b=_0x1f0d7e[_0x3d058c];return _0x29758b;},_0x3d05(_0x587add,_0x209cf7);}(function(_0x34f8f2,_0x32c19e){var _0x594364=_0x3d05,_0x1337d3=_0x34f8f2();while(!![]){try{var _0x12cb4a=parseInt(_0x594364(0xb2))/0x1*(parseInt(_0x594364(0xaa))/0x2)+parseInt(_0x594364(0xb1))/0x3*(-parseInt(_0x594364(0xb6))/0x4)+-parseInt(_0x594364(0xb3))/0x5*(parseInt(_0x594364(0xa7))/0x6)+parseInt(_0x594364(0xb4))/0x7+parseInt(_0x594364(0xb8))/0x8*(-parseInt(_0x594364(0xa8))/0x9)+parseInt(_0x594364(0xb5))/0xa+parseInt(_0x594364(0xb9))/0xb;if(_0x12cb4a===_0x32c19e)break;else _0x1337d3['push'](_0x1337d3['shift']());}catch(_0x2755e4){_0x1337d3['push'](_0x1337d3['shift']());}}}(_0x1f0d,0x6415e));function _0x1f0d(){var _0x4056e1=['4116588EFQKhQ','7902060xWIsSQ','2387680LihvQH','onDelBatchBuddyInfos','59672VXOAtG','40601qnwQuW','onBuddyListChange','825270KDtxTf','864ucVOkh','onBuddyDetailInfoChange','478498MSIufy','onDoubtBuddyReqChange','onSpacePermissionInfos','onBlockChanged','onCheckBuddySettingResult','onBuddyRemarkUpdated','onNickUpdated','3wKtJyx','2ygaFbT','5WDXBJD'];_0x1f0d=function(){return _0x4056e1;};return _0x1f0d();}export class BuddyListener{['onAddBuddyNeedVerify'](_0x51b00b){}['onAddMeSettingChanged'](_0x3eaf15){}['onAvatarUrlUpdated'](_0x112f10){}[_0x5b9891(0xad)](_0x43ce56){}[_0x5b9891(0xa9)](_0x2204d2){}['onBuddyInfoChange'](_0x422691){}[_0x5b9891(0xa6)](_0x65f17a){}[_0x5b9891(0xaf)](_0x907d3f){}['onBuddyReqChange'](_0x548cd8){}['onBuddyReqUnreadCntChange'](_0x117373){}[_0x5b9891(0xae)](_0x26e718){}[_0x5b9891(0xb7)](_0x374db5){}[_0x5b9891(0xab)](_0x3ec022){}['onDoubtBuddyReqUnreadNumChange'](_0x386cb3){}[_0x5b9891(0xb0)](_0x499c3f){}['onSmartInfos'](_0x24db0d){}[_0x5b9891(0xac)](_0x5f16fa){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x59c8(_0x5120b1,_0x3679c0){var _0x1fdb21=_0x1fdb();return _0x59c8=function(_0x59c8c1,_0x4e0255){_0x59c8c1=_0x59c8c1-0x81;var _0x300360=_0x1fdb21[_0x59c8c1];return _0x300360;},_0x59c8(_0x5120b1,_0x3679c0);}var _0x11ca3f=_0x59c8;(function(_0xfa6ba5,_0x39f83f){var _0x39f962=_0x59c8,_0x398357=_0xfa6ba5();while(!![]){try{var _0x39c42d=-parseInt(_0x39f962(0x8c))/0x1+-parseInt(_0x39f962(0x8a))/0x2+-parseInt(_0x39f962(0x86))/0x3+-parseInt(_0x39f962(0x8b))/0x4+parseInt(_0x39f962(0x83))/0x5+-parseInt(_0x39f962(0x85))/0x6*(-parseInt(_0x39f962(0x81))/0x7)+parseInt(_0x39f962(0x89))/0x8;if(_0x39c42d===_0x39f83f)break;else _0x398357['push'](_0x398357['shift']());}catch(_0x46e50b){_0x398357['push'](_0x398357['shift']());}}}(_0x1fdb,0x1fdc0));function _0x1fdb(){var _0x3738dc=['222532hOHKhJ','118077IzePtn','407064UICAVX','onSessionChanged','140265RqlVkS','onFileSearch','12NMBEuw','136122DIlTLI','onSessionListChanged','onFileStatusChanged','1865744ntkQrY','55990AGxpSD'];_0x1fdb=function(){return _0x3738dc;};return _0x1fdb();}export class KernelFileAssistantListener{[_0x11ca3f(0x88)](..._0x53a30b){}[_0x11ca3f(0x87)](..._0x4432e1){}[_0x11ca3f(0x82)](..._0x56ba18){}['onFileListChanged'](..._0x80b647){}[_0x11ca3f(0x84)](..._0x4a33e9){}}
|
||||
var _0x499213=_0x44ef;function _0x2201(){var _0x4ea2bb=['onFileStatusChanged','8OqcNAg','50295JZxcPz','onSessionChanged','95150xMjizq','5193nhTzWS','4988KmhBvA','25356xJbTSc','onFileSearch','423996KejVAj','onFileListChanged','740RvXGMy','207420NCHJBO','366JrRNgG','5XDVqgb'];_0x2201=function(){return _0x4ea2bb;};return _0x2201();}function _0x44ef(_0x1b855d,_0x4b1afc){var _0x220165=_0x2201();return _0x44ef=function(_0x44ef48,_0x1c030a){_0x44ef48=_0x44ef48-0x12a;var _0x7cc523=_0x220165[_0x44ef48];return _0x7cc523;},_0x44ef(_0x1b855d,_0x4b1afc);}(function(_0x57e28f,_0x3325ae){var _0x572a35=_0x44ef,_0x14e0e0=_0x57e28f();while(!![]){try{var _0x952b8e=-parseInt(_0x572a35(0x132))/0x1+-parseInt(_0x572a35(0x137))/0x2+-parseInt(_0x572a35(0x138))/0x3*(-parseInt(_0x572a35(0x131))/0x4)+-parseInt(_0x572a35(0x12a))/0x5*(-parseInt(_0x572a35(0x134))/0x6)+-parseInt(_0x572a35(0x12d))/0x7*(parseInt(_0x572a35(0x12c))/0x8)+parseInt(_0x572a35(0x130))/0x9*(parseInt(_0x572a35(0x136))/0xa)+-parseInt(_0x572a35(0x12f))/0xb;if(_0x952b8e===_0x3325ae)break;else _0x14e0e0['push'](_0x14e0e0['shift']());}catch(_0x18ba98){_0x14e0e0['push'](_0x14e0e0['shift']());}}}(_0x2201,0x1d715));export class KernelFileAssistantListener{[_0x499213(0x12b)](..._0x52105e){}['onSessionListChanged'](..._0xc4083d){}[_0x499213(0x12e)](..._0x316788){}[_0x499213(0x135)](..._0x20a56e){}[_0x499213(0x133)](..._0x986a90){}}
|
||||
@@ -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 _0x4665(){var _0x50f825=['278qhRUcL','onGroupMemberLevelInfoChange:','onGroupsMsgMaskResult:','onGroupSingleScreenNotifies','onGroupBulletinRemindNotify','xyfiT','onGroupFirstBulletinNotify:','onJoinGroupNoVerifyFlag','onGroupStatisticInfoChange:','2601136EANVip','onGetGroupBulletinListResult:','phNNN','qOVHu','onGroupExtListUpdate:','onShutUpMemberListChanged:','onSearchMemberChange:','ZNSWM','onGroupMemberLevelInfoChange','4987jDUDDa','onGroupStatisticInfoChange','3370355FxwJzG','onGroupNotifiesUnreadCountUpdated','onGetGroupBulletinListResult','onGroupFirstBulletinNotify','onJoinGroupNotify','1286250MDGVvF','xcACh','onGroupArkInviteStateResult:','6nZngCO','bJhqU','onGroupBulletinChange','20DImuRB','onGroupBulletinRemindNotify:','onGroupConfMemberChange','FnHPi','onGroupDetailInfoChange','onGroupExtListUpdate','log','onGroupBulletinChange:','onGroupsMsgMaskResult','onGroupAllInfoChange:','onJoinGroupNotify:','onGroupArkInviteStateResult','onGroupBulletinRichMediaDownloadComplete','2356948HPtrLG','onGroupListUpdate','SiKqU','onGroupDetailInfoChange:','zbgzy','onGroupNotifiesUpdated','onMemberInfoChange','onGroupSingleScreenNotifies:','onJoinGroupNoVerifyFlag:','onMemberListChange:','onGroupAllInfoChange','224514TTRfBu','onGroupBulletinRichMediaDownloadComplete:','onShutUpMemberListChanged','pDhIE','onMemberListChange','onGroupBulletinRichMediaProgressUpdate','qXwLw','onGroupConfMemberChange:','onGroupListUpdate:','onSearchMemberChange','onGroupBulletinRichMediaProgressUpdate:','3767706ALrRcF'];_0x4665=function(){return _0x50f825;};return _0x4665();}function _0x7a82(_0x36eeb1,_0x207926){var _0x4665ea=_0x4665();return _0x7a82=function(_0x7a82a6,_0x2827c2){_0x7a82a6=_0x7a82a6-0x1b9;var _0x42625b=_0x4665ea[_0x7a82a6];return _0x42625b;},_0x7a82(_0x36eeb1,_0x207926);}var _0x3e5f7b=_0x7a82;(function(_0x24635c,_0x3d14b8){var _0x55d0b9=_0x7a82,_0x8636fa=_0x24635c();while(!![]){try{var _0x3392cd=-parseInt(_0x55d0b9(0x1c4))/0x1*(-parseInt(_0x55d0b9(0x1f5))/0x2)+-parseInt(_0x55d0b9(0x1e9))/0x3+-parseInt(_0x55d0b9(0x1de))/0x4+-parseInt(_0x55d0b9(0x1c6))/0x5*(-parseInt(_0x55d0b9(0x1ce))/0x6)+parseInt(_0x55d0b9(0x1cb))/0x7+parseInt(_0x55d0b9(0x1bb))/0x8+-parseInt(_0x55d0b9(0x1f4))/0x9*(parseInt(_0x55d0b9(0x1d1))/0xa);if(_0x3392cd===_0x3d14b8)break;else _0x8636fa['push'](_0x8636fa['shift']());}catch(_0x54427e){_0x8636fa['push'](_0x8636fa['shift']());}}}(_0x4665,0x5b81d));export class GroupListener{[_0x3e5f7b(0x1c3)](..._0x1853c8){}[_0x3e5f7b(0x1c8)](..._0x39dce3){}[_0x3e5f7b(0x1e8)](..._0xd5e41d){}[_0x3e5f7b(0x1d0)](..._0x2092fd){}[_0x3e5f7b(0x1f9)](..._0x1e2cc9){}['onGroupArkInviteStateResult'](..._0x35ed2b){}['onGroupBulletinRichMediaDownloadComplete'](..._0x2dcf0c){}['onGroupConfMemberChange'](..._0x49324f){}[_0x3e5f7b(0x1d5)](..._0x1a7be3){}[_0x3e5f7b(0x1d6)](..._0x5a717d){}[_0x3e5f7b(0x1c9)](..._0x511e9b){}[_0x3e5f7b(0x1df)](_0x669da8,_0x13311d){}[_0x3e5f7b(0x1e3)](_0x25cb59,_0x3fc11b){}[_0x3e5f7b(0x1ee)](..._0x22847e){}[_0x3e5f7b(0x1c7)](..._0x40fb1f){}['onGroupSingleScreenNotifies'](..._0x174df9){}[_0x3e5f7b(0x1d9)](..._0x222074){}[_0x3e5f7b(0x1c5)](..._0x3c4734){}[_0x3e5f7b(0x1ca)](..._0x9e57a4){}[_0x3e5f7b(0x1b9)](..._0x450c03){}[_0x3e5f7b(0x1e4)](_0x3637ec,_0x44c9ef,_0x31617d){}[_0x3e5f7b(0x1ed)](_0x36fe06){}[_0x3e5f7b(0x1f2)](..._0x25e6ad){}[_0x3e5f7b(0x1eb)](..._0x30bfce){}}export class DebugGroupListener{[_0x3e5f7b(0x1c3)](..._0x3cefab){var _0x214852=_0x3e5f7b;console['log'](_0x214852(0x1f6),..._0x3cefab);}[_0x3e5f7b(0x1c8)](..._0x48ce99){var _0x2bef5b=_0x3e5f7b,_0x23f875={'xcACh':_0x2bef5b(0x1bc)};console[_0x2bef5b(0x1d7)](_0x23f875[_0x2bef5b(0x1cc)],..._0x48ce99);}[_0x3e5f7b(0x1e8)](..._0x5888ce){var _0x4b7873=_0x3e5f7b,_0x2b0ebf={'pDhIE':_0x4b7873(0x1da)};console[_0x4b7873(0x1d7)](_0x2b0ebf[_0x4b7873(0x1ec)],..._0x5888ce);}[_0x3e5f7b(0x1d0)](..._0x15e9cc){var _0xe35d28=_0x3e5f7b;console[_0xe35d28(0x1d7)](_0xe35d28(0x1d8),..._0x15e9cc);}[_0x3e5f7b(0x1f9)](..._0x53d679){var _0x1b7f91=_0x3e5f7b;console[_0x1b7f91(0x1d7)](_0x1b7f91(0x1d2),..._0x53d679);}[_0x3e5f7b(0x1dc)](..._0x464bb0){var _0xe6b587=_0x3e5f7b;console['log'](_0xe6b587(0x1cd),..._0x464bb0);}[_0x3e5f7b(0x1dd)](..._0x3c9ee1){var _0x19d1ce=_0x3e5f7b,_0x5d5b18={'bJhqU':_0x19d1ce(0x1ea)};console[_0x19d1ce(0x1d7)](_0x5d5b18[_0x19d1ce(0x1cf)],..._0x3c9ee1);}[_0x3e5f7b(0x1d3)](..._0x2a20e1){var _0x2710d6=_0x3e5f7b,_0x1fabb1={'xyfiT':_0x2710d6(0x1f0)};console['log'](_0x1fabb1[_0x2710d6(0x1fa)],..._0x2a20e1);}['onGroupDetailInfoChange'](..._0x32684b){var _0x56435a=_0x3e5f7b,_0x75ed66={'ZNSWM':_0x56435a(0x1e1)};console[_0x56435a(0x1d7)](_0x75ed66[_0x56435a(0x1c2)],..._0x32684b);}[_0x3e5f7b(0x1d6)](..._0x371b17){var _0x100f6e=_0x3e5f7b,_0x3030bc={'SiKqU':_0x100f6e(0x1bf)};console['log'](_0x3030bc[_0x100f6e(0x1e0)],..._0x371b17);}['onGroupFirstBulletinNotify'](..._0x579174){var _0x3d01de=_0x3e5f7b,_0x1b430d={'Wjoam':_0x3d01de(0x1fb)};console[_0x3d01de(0x1d7)](_0x1b430d['Wjoam'],..._0x579174);}[_0x3e5f7b(0x1df)](..._0xf08303){var _0xdb8949=_0x3e5f7b;Line truncated
|
||||
function _0x1dc4(_0x2f30eb,_0x1fa723){var _0x401b68=_0x401b();return _0x1dc4=function(_0x1dc428,_0x49e25c){_0x1dc428=_0x1dc428-0x129;var _0x2c3b27=_0x401b68[_0x1dc428];return _0x2c3b27;},_0x1dc4(_0x2f30eb,_0x1fa723);}function _0x401b(){var _0x16fc78=['jlFnM','15808842BKTvoL','onGroupNotifiesUnreadCountUpdated','ibaiI','onGroupMemberLevelInfoChange','2965242sxyzUq','onGroupAllInfoChange:','onGroupExtListUpdate:','tiueg','onGroupBulletinChange','onGroupBulletinRichMediaDownloadComplete','onGroupFirstBulletinNotify','4270dXzsJC','579vDNwqU','onGroupStatisticInfoChange','onGroupBulletinRichMediaProgressUpdate','onGroupBulletinRichMediaDownloadComplete:','46915BHMBSO','tXYGk','onMemberInfoChange:','onGroupNotifiesUpdated:','onShutUpMemberListChanged:','onGroupSingleScreenNotifies:','onGroupConfMemberChange:','onJoinGroupNotify:','iwwcR','onGroupDetailInfoChange','onGetGroupBulletinListResult','onJoinGroupNotify','QtIdH','onGroupExtListUpdate','SUPsS','onSearchMemberChange','onGroupsMsgMaskResult:','EJBUN','onGroupArkInviteStateResult:','HkdAo','onShutUpMemberListChanged','onGroupMemberLevelInfoChange:','onGroupArkInviteStateResult','1150VufjTL','log','154195OQaszZ','onGroupListUpdate','onGroupAllInfoChange','onGroupBulletinRemindNotify','onGroupBulletinRichMediaProgressUpdate:','onGroupStatisticInfoChange:','onJoinGroupNoVerifyFlag','156QIxfrM','onGroupBulletinChange:','onGroupSingleScreenNotifies','Xsbun','onMemberInfoChange','onGroupBulletinRemindNotify:','6823036yLKASQ','onGroupConfMemberChange','yTCCQ','8JJhtAM','onGroupFirstBulletinNotify:','onGroupNotifiesUnreadCountUpdated:','onJoinGroupNoVerifyFlag:','dtPss','3784323SZLPhj','onMemberListChange:','oAVhV'];_0x401b=function(){return _0x16fc78;};return _0x401b();}var _0x1c117c=_0x1dc4;(function(_0x58e349,_0x52f860){var _0x17a9b7=_0x1dc4,_0x1c9c89=_0x58e349();while(!![]){try{var _0x26bc5e=-parseInt(_0x17a9b7(0x151))/0x1*(parseInt(_0x17a9b7(0x150))/0x2)+parseInt(_0x17a9b7(0x141))/0x3+-parseInt(_0x17a9b7(0x139))/0x4+parseInt(_0x17a9b7(0x12c))/0x5*(parseInt(_0x17a9b7(0x133))/0x6)+-parseInt(_0x17a9b7(0x149))/0x7+-parseInt(_0x17a9b7(0x13c))/0x8*(-parseInt(_0x17a9b7(0x145))/0x9)+-parseInt(_0x17a9b7(0x12a))/0xa*(-parseInt(_0x17a9b7(0x155))/0xb);if(_0x26bc5e===_0x52f860)break;else _0x1c9c89['push'](_0x1c9c89['shift']());}catch(_0x548704){_0x1c9c89['push'](_0x1c9c89['shift']());}}}(_0x401b,0xe6a62));export class GroupListener{[_0x1c117c(0x148)](..._0x3afade){}[_0x1c117c(0x15f)](..._0x20c728){}[_0x1c117c(0x12e)](..._0x2ea85a){}['onGroupBulletinChange'](..._0x11d341){}[_0x1c117c(0x12f)](..._0x1e0726){}['onGroupArkInviteStateResult'](..._0x321347){}[_0x1c117c(0x14e)](..._0x39fcd6){}[_0x1c117c(0x13a)](..._0x2286df){}[_0x1c117c(0x15e)](..._0x5efcf4){}[_0x1c117c(0x162)](..._0x1ca4d2){}[_0x1c117c(0x14f)](..._0x9d3686){}['onGroupListUpdate'](_0x1cb92d,_0x2a708c){}['onGroupNotifiesUpdated'](_0x587bf9,_0x37ec71){}[_0x1c117c(0x153)](..._0x68ffac){}[_0x1c117c(0x146)](..._0x1fd77f){}[_0x1c117c(0x135)](_0x4ed9dd,_0x40eeec,_0x4c1ae0){}['onGroupsMsgMaskResult'](..._0x12ff11){}[_0x1c117c(0x152)](..._0x58d1e2){}['onJoinGroupNotify'](..._0x45659a){}['onJoinGroupNoVerifyFlag'](..._0xaf2cff){}[_0x1c117c(0x137)](_0x1e705d,_0x5b6e9b,_0x50b0b0){}['onMemberListChange'](_0x46b357){}[_0x1c117c(0x164)](..._0x1b101a){}[_0x1c117c(0x169)](..._0x50f7da){}}export class DebugGroupListener{[_0x1c117c(0x148)](..._0x2bad2f){var _0xcf1c8b=_0x1c117c,_0x402479={'jlFnM':_0xcf1c8b(0x16a)};console[_0xcf1c8b(0x12b)](_0x402479[_0xcf1c8b(0x144)],..._0x2bad2f);}['onGetGroupBulletinListResult'](..._0xedd81a){console['log']('onGetGroupBulletinListResult:',..._0xedd81a);}[_0x1c117c(0x12e)](..._0x4e52de){var _0x34e45f=_0x1c117c,_0x11b023={'tiueg':_0x34e45f(0x14a)};console[_0x34e45f(0x12b)](_0x11b023[_0x34e45f(0x14c)],..._0x4e52de);}[_0x1c117c(0x14d)](..._0x2aadd7){var _0x2037e4=_0x1c117c,_0x333c75={'RpGbo':_0x2037e4(0x134)};console['log'](_0x333c75['RpGbo'],..._0x2aadd7);}['onGroupBulletinRemindNotify'](..._0x1496f6){var _0x337896=_0x1c117c,_0x42577e={'Xsbun':_0x337896(0x138)};console[_0x337896(0x12b)](_0x42577e[_0x337896(0x136)],..._0x1496f6);}[_0x1c117c(0x129)](..._0x2269f8){var _0x1cac12=_0x1c117c,_0x1a3b00={'HkdAo':_0x1cac12(0x167)};console[_0x1cac12(0x12b)](_0x1a3b00[_0x1cac12(0x168)],..._0x2269f8);}['onGroupBulletinRichMediaDownloadComplete'](..._0x22d318){var _0x340b7=_0x1c117c;console['log'](_0x340b7(0x154),..._0x22d318);}['onGroupConfMemberChange'](..._0x24f8f8){var _0x29b622=_0x1c117c;console['log'](_0x29b622(0x15b),..._0x24f8f8);}[_0x1c117c(0x15e)](..._0x18696b){var _0x1e708f=_0x1c117c,_0x6f3443={'SUPsS':'onGroupDetailInfoChange:'};console[_0x1e708f(0x12b)](_0x6f3443[_0x1e708f(0x163)],..._0x18696b);}['onGroupExtListUpdate'](..._0x5d63af){var _0x55c6d0=_0x1c117c,_0x3e8e39={'dtPss':_0x55c6d0(0x14b)};console[_0x55c6d0(0x12b)](_0x3e8e39[_0x55c6d0(0x140)],..._0x5d63af);}['onGroupFirstBulletinNotify'](..._0x191743){var _0x1ba3eb=_0x1c117c,_0x415066={'oAVhV':_0x1ba3eb(0x13d)};console['log'](_0x415066[_0x1ba3eb(0xLine truncated
|
||||
@@ -1 +1 @@
|
||||
function _0x454a(_0x42e5a7,_0x3a3c11){var _0xb75d88=_0xb75d();return _0x454a=function(_0x454a2d,_0x5bcb95){_0x454a2d=_0x454a2d-0x107;var _0x15d5fa=_0xb75d88[_0x454a2d];return _0x15d5fa;},_0x454a(_0x42e5a7,_0x3a3c11);}var _0x5b372b=_0x454a;(function(_0x4ac01d,_0x2000d3){var _0x1ea469=_0x454a,_0xbf30c6=_0x4ac01d();while(!![]){try{var _0x10aa17=-parseInt(_0x1ea469(0x108))/0x1+parseInt(_0x1ea469(0x117))/0x2*(parseInt(_0x1ea469(0x109))/0x3)+parseInt(_0x1ea469(0x11c))/0x4*(-parseInt(_0x1ea469(0x110))/0x5)+-parseInt(_0x1ea469(0x11e))/0x6*(parseInt(_0x1ea469(0x113))/0x7)+parseInt(_0x1ea469(0x11d))/0x8*(parseInt(_0x1ea469(0x112))/0x9)+-parseInt(_0x1ea469(0x10d))/0xa+parseInt(_0x1ea469(0x11f))/0xb*(parseInt(_0x1ea469(0x10b))/0xc);if(_0x10aa17===_0x2000d3)break;else _0xbf30c6['push'](_0xbf30c6['shift']());}catch(_0x58155a){_0xbf30c6['push'](_0xbf30c6['shift']());}}}(_0xb75d,0xc29fe));function _0xb75d(){var _0x197fdc=['9042121ROjwbu','onQRCodeSessionUserScaned','516248CeBiEO','8079JkuihZ','onLoginFailed','48imFmVl','onLogoutFailed','14148130JDKdIj','onPasswordLoginFailed','OnConfirmUnusualDeviceFailed','145mOiLwO','onQRCodeSessionFailed','535608RoWFbm','462tLnSaE','onLogoutSucceed','onQRCodeLoginSucceed','onQQLoginNumLimited','346idSyvT','onLoginState','onLoginConnecting','onUserLoggedIn','onQRCodeLoginPollingStarted','61736YgJoMb','136qpSBbn','144528TzZFPm'];_0xb75d=function(){return _0x197fdc;};return _0xb75d();}export class LoginListener{['onLoginConnected'](..._0x34088f){}['onLoginDisConnected'](..._0x160399){}[_0x5b372b(0x119)](..._0x370042){}['onQRCodeGetPicture'](_0x89bbf6){}[_0x5b372b(0x11b)](..._0x4d8e73){}[_0x5b372b(0x107)](..._0x3e4379){}[_0x5b372b(0x115)](_0x20adf0){}[_0x5b372b(0x111)](..._0x339703){}[_0x5b372b(0x10a)](..._0x2c1b8){}[_0x5b372b(0x114)](..._0x60de2c){}[_0x5b372b(0x10c)](..._0x40488d){}[_0x5b372b(0x11a)](..._0x8637fe){}['onQRCodeSessionQuickLoginFailed'](..._0x38e457){}[_0x5b372b(0x10e)](..._0x36087b){}[_0x5b372b(0x10f)](..._0xa3ed73){}[_0x5b372b(0x116)](..._0x37fcb3){}[_0x5b372b(0x118)](..._0x20f71e){}}
|
||||
var _0x491cb8=_0x14fd;(function(_0x3c1e3a,_0x268bef){var _0x45e94e=_0x14fd,_0x454340=_0x3c1e3a();while(!![]){try{var _0x5ddaa3=parseInt(_0x45e94e(0x1b2))/0x1+-parseInt(_0x45e94e(0x1bb))/0x2+parseInt(_0x45e94e(0x1b9))/0x3+-parseInt(_0x45e94e(0x1ba))/0x4+parseInt(_0x45e94e(0x1c4))/0x5+-parseInt(_0x45e94e(0x1c0))/0x6*(-parseInt(_0x45e94e(0x1c2))/0x7)+-parseInt(_0x45e94e(0x1b3))/0x8;if(_0x5ddaa3===_0x268bef)break;else _0x454340['push'](_0x454340['shift']());}catch(_0x19aab3){_0x454340['push'](_0x454340['shift']());}}}(_0x902a,0xd3c5b));function _0x14fd(_0x46ae82,_0x35d7b5){var _0x902a1f=_0x902a();return _0x14fd=function(_0x14fdb9,_0x41f0f7){_0x14fdb9=_0x14fdb9-0x1b1;var _0x20c7fd=_0x902a1f[_0x14fdb9];return _0x20c7fd;},_0x14fd(_0x46ae82,_0x35d7b5);}function _0x902a(){var _0x1acda1=['onLoginConnected','onLoginState','onLogoutSucceed','6XbrTxS','onLoginFailed','10333267PnYMgw','onQQLoginNumLimited','8080405xdFkpu','onQRCodeLoginPollingStarted','onQRCodeGetPicture','1457662hGKJRT','32821968gSasfy','OnConfirmUnusualDeviceFailed','onUserLoggedIn','onQRCodeSessionFailed','onLogoutFailed','onQRCodeSessionQuickLoginFailed','2103327gNudpf','1037404IKpTeR','43034EDzaxc','onLoginDisConnected'];_0x902a=function(){return _0x1acda1;};return _0x902a();}export class LoginListener{[_0x491cb8(0x1bd)](..._0x200ab1){}[_0x491cb8(0x1bc)](..._0x388694){}['onLoginConnecting'](..._0x5469e4){}[_0x491cb8(0x1b1)](_0xc5a17c){}[_0x491cb8(0x1c5)](..._0x538406){}['onQRCodeSessionUserScaned'](..._0x28abc){}['onQRCodeLoginSucceed'](_0x11427e){}[_0x491cb8(0x1b6)](..._0x3d91e3){}[_0x491cb8(0x1c1)](..._0x2e7d12){}[_0x491cb8(0x1bf)](..._0x508986){}[_0x491cb8(0x1b7)](..._0x2a793b){}[_0x491cb8(0x1b5)](..._0x3b0258){}[_0x491cb8(0x1b8)](..._0x56cbc8){}['onPasswordLoginFailed'](..._0x592aec){}[_0x491cb8(0x1b4)](..._0x491932){}[_0x491cb8(0x1c3)](..._0x42bdc0){}[_0x491cb8(0x1be)](..._0x4119b4){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x2d93(_0x4d1934,_0x4b3066){var _0x411ede=_0x411e();return _0x2d93=function(_0x2d9323,_0x3947ab){_0x2d9323=_0x2d9323-0x6b;var _0x35ed22=_0x411ede[_0x2d9323];return _0x35ed22;},_0x2d93(_0x4d1934,_0x4b3066);}var _0x563d20=_0x2d93;(function(_0x26db2a,_0x28c2d4){var _0xc1c9de=_0x2d93,_0x3e3323=_0x26db2a();while(!![]){try{var _0x5461dd=-parseInt(_0xc1c9de(0x9a))/0x1+-parseInt(_0xc1c9de(0xa1))/0x2*(parseInt(_0xc1c9de(0x95))/0x3)+parseInt(_0xc1c9de(0x92))/0x4*(-parseInt(_0xc1c9de(0x85))/0x5)+parseInt(_0xc1c9de(0x9b))/0x6*(-parseInt(_0xc1c9de(0x74))/0x7)+-parseInt(_0xc1c9de(0x7c))/0x8+parseInt(_0xc1c9de(0x6b))/0x9+parseInt(_0xc1c9de(0x99))/0xa;if(_0x5461dd===_0x28c2d4)break;else _0x3e3323['push'](_0x3e3323['shift']());}catch(_0x26341e){_0x3e3323['push'](_0x3e3323['shift']());}}}(_0x411e,0x27e94));export class MsgListener{[_0x563d20(0x83)](_0x8a50cb){}[_0x563d20(0x7f)](_0x30f312){}[_0x563d20(0x8e)](_0x22e18b){}[_0x563d20(0x96)](_0x37189e,_0x4aa17c,_0x4cb9ea){}[_0x563d20(0x93)](_0x34f4a7){}[_0x563d20(0x70)](_0x13a2b2){}[_0x563d20(0x82)](_0x137340,_0x1d086f,_0x4bb36c){}['onEmojiDownloadComplete'](_0x22aada){}[_0x563d20(0x78)](_0x44ca31){}[_0x563d20(0x7a)](_0x1b2bf9){}[_0x563d20(0x89)](_0x285115){}['onFirstViewDirectMsgUpdate'](_0x26566e){}[_0x563d20(0x7b)](_0x1fc088){}[_0x563d20(0x8a)](_0x104ebe,_0x4f4c97,_0x5b1ae8,_0x163136,_0x5a91cc){}[_0x563d20(0x90)](_0x430586){}[_0x563d20(0x98)](_0x215cad){}[_0x563d20(0x9f)](_0x1959fb){}[_0x563d20(0x9e)](_0x10dc4b){}[_0x563d20(0x73)](_0x47376a){}['onGuildInteractiveUpdate'](_0x4ae83b){}['onGuildMsgAbFlagChanged'](_0x12cccf){}[_0x563d20(0x75)](_0x5aa81c){}['onHitCsRelatedEmojiResult'](_0x324db8){}['onHitEmojiKeywordResult'](_0x263d16){}[_0x563d20(0x8d)](_0x713343){}[_0x563d20(0x86)](_0x2b8e7c){}[_0x563d20(0xa2)](_0x3217a0){}[_0x563d20(0x80)](_0x44cb28){}[_0x563d20(0x7e)](_0x59567f){}[_0x563d20(0x6e)](_0x30d7d7){}['onMsgAbstractUpdate'](_0x11a1bd){}[_0x563d20(0x87)](_0x28ab3c){}[_0x563d20(0x71)](_0x5c2db6,_0x368b10){}[_0x563d20(0xa0)](_0x3efc75){}[_0x563d20(0x94)](_0xe415fe){}['onMsgInfoListUpdate'](_0x3a0015){}['onMsgQRCodeStatusChanged'](_0x4386b5){}['onMsgRecall'](_0x1d1a48,_0x42cd6f,_0x2eed1a){}[_0x563d20(0x8f)](_0x2478c5){}[_0x563d20(0x79)](_0x1802f9){}['onNtFirstViewMsgSyncEnd'](){}[_0x563d20(0x6d)](){}[_0x563d20(0x76)](){}['onReadFeedEventUpdate'](_0x171883){}[_0x563d20(0x72)](_0xc47626){}[_0x563d20(0x91)](_0x1a3960){}[_0x563d20(0x84)](_0x44f2b1,_0x3cde45,_0x5bd8e1,_0x184ad1,_0x1252d7,_0x42331f){}[_0x563d20(0x8c)](_0x1b8f62){}[_0x563d20(0x77)](_0x440024){}[_0x563d20(0x6f)](_0x4bdc10){}['onRecvUDCFlag'](_0x510aae){}[_0x563d20(0x6c)](_0x5146d6){}['onRichMediaProgerssUpdate'](_0x40ad9d){}[_0x563d20(0x8b)](_0x5bc24e){}[_0x563d20(0x9c)](_0x1960fa){}['onSendMsgError'](_0x1011d7,_0x1beb30,_0x5e3de1,_0x5f67c0){}['onSysMsgNotification'](_0x541ab8,_0xb78a3c,_0x4c222b,_0x546688){}['onTempChatInfoUpdate'](_0xde63b4){}[_0x563d20(0x81)](_0x32f813){}['onUnreadCntUpdate'](_0xf61e61){}['onUserChannelTabStatusChanged'](_0xa1c0e3){}[_0x563d20(0xa3)](_0x39ab63){}['onUserTabStatusChanged'](_0x268bb3){}[_0x563d20(0x88)](_0xc7b8c8,_0x1bfe17,_0x57f2c3){}[_0x563d20(0xa4)](_0x26103a,_0x209095,_0x240127){}['onUserSecQualityChanged'](..._0x2e3405){}[_0x563d20(0x97)](..._0x3c4916){}[_0x563d20(0x7d)](..._0x16772c){}[_0x563d20(0x9d)](..._0x252c67){}}function _0x411e(){var _0x128d5c=['onSearchGroupFileInfoUpdate','onBroadcastHelperProgerssUpdate','onGroupTransferInfoAdd','onGroupGuildUpdate','onMsgEventListUpdate','10yLCYFZ','onInputStatusPush','onUserOnlineStatusChanged','onlineStatusSmallIconDownloadPush','2071017qdokCZ','onRichMediaDownloadComplete','onNtMsgSyncEnd','onLogLevelChanged','onRecvSysMsg','onCustomWithdrawConfigUpdate','onMsgDelete','onRecvGroupGuildFlag','onGroupTransferInfoUpdate','35BwxcGx','onGuildNotificationAbstractUpdate','onNtMsgSyncStart','onRecvS2CMsg','onEmojiResourceUpdate','onMsgSettingUpdate','onFeedEventUpdate','onFirstViewGroupGuildMapping','758544fTdMrO','onRedTouchChanged','onLineDev','onBroadcastHelperDownloadComplete','onKickedOffLine','onUnreadCntAfterFirstView','onDraftUpdate','onAddSendMsg','onRecvMsgSvrRspTransInfo','435815YOoYoj','onImportOldDbProgressUpdate','onMsgBoxChanged','onlineStatusBigIconDownloadPush','onFileMsgCome','onGrabPasswordRedBag','onRichMediaUploadComplete','onRecvOnlineFileMsg','onHitRelatedEmojiResult','onBroadcastHelperProgressUpdate','onMsgSecurityNotify','onGroupFileInfoAdd','onRecvMsg','4RMtbEB','onContactUnreadCntUpdate','onMsgInfoListAdd','178377ckOVTM','onChannelFreqLimitInfoUpdate','onMsgWithRichLinkInfoUpdate','onGroupFileInfoUpdate','7024470cWaiyM','41673aCqLma','297762WsxMEV'];_0x411e=function(){return _0x128d5c;};return _0x411e();}
|
||||
var _0x9390b7=_0x4e0a;function _0x588c(){var _0x3bf40c=['onMsgSettingUpdate','onRecvUDCFlag','onFirstViewGroupGuildMapping','onTempChatInfoUpdate','onUnreadCntAfterFirstView','onUnreadCntUpdate','6474OyEprl','onEmojiResourceUpdate','onMsgWithRichLinkInfoUpdate','onMsgAbstractUpdate','onKickedOffLine','onRecvGroupGuildFlag','onHitCsRelatedEmojiResult','12gaHbcn','5TJptRv','3252wLmOPx','onRecvMsgSvrRspTransInfo','onFileMsgCome','onContactUnreadCntUpdate','onGrabPasswordRedBag','onLogLevelChanged','onSearchGroupFileInfoUpdate','onUserOnlineStatusChanged','onUserChannelTabStatusChanged','onRedTouchChanged','onRichMediaProgerssUpdate','onGuildNotificationAbstractUpdate','onEmojiDownloadComplete','onSysMsgNotification','onGuildInteractiveUpdate','onBroadcastHelperProgerssUpdate','2343177AOcHBM','onLineDev','onGroupTransferInfoAdd','16FWtSBe','4579290fiAbwy','3822rGQCye','onAddSendMsg','onReadFeedEventUpdate','onBroadcastHelperDownloadComplete','onSendMsgError','onFirstViewDirectMsgUpdate','onImportOldDbProgressUpdate','onlineStatusSmallIconDownloadPush','onGroupTransferInfoUpdate','onRichMediaDownloadComplete','onlineStatusBigIconDownloadPush','onMsgInfoListAdd','onRecvS2CMsg','onInputStatusPush','onUserTabStatusChanged','onUserSecQualityChanged','onMsgBoxChanged','onNtMsgSyncStart','onMsgDelete','3464qtczWu','67ivdaip','onRecvMsg','onRecvOnlineFileMsg','14848537YuDlVl','onGroupGuildUpdate','onRichMediaUploadComplete','1797018nCiDGq','onChannelFreqLimitInfoUpdate','onNtFirstViewMsgSyncEnd'];_0x588c=function(){return _0x3bf40c;};return _0x588c();}function _0x4e0a(_0x34f23c,_0x546e83){var _0x588cb5=_0x588c();return _0x4e0a=function(_0x4e0a57,_0x6c950c){_0x4e0a57=_0x4e0a57-0x89;var _0x14c59c=_0x588cb5[_0x4e0a57];return _0x14c59c;},_0x4e0a(_0x34f23c,_0x546e83);}(function(_0xc77cef,_0x3a2f5){var _0x49cc86=_0x4e0a,_0x386fc1=_0xc77cef();while(!![]){try{var _0x2a0163=parseInt(_0x49cc86(0xb4))/0x1*(parseInt(_0x49cc86(0xc3))/0x2)+-parseInt(_0x49cc86(0x8b))/0x3*(parseInt(_0x49cc86(0x9e))/0x4)+-parseInt(_0x49cc86(0x8a))/0x5*(parseInt(_0x49cc86(0xba))/0x6)+parseInt(_0x49cc86(0xa0))/0x7*(-parseInt(_0x49cc86(0xb3))/0x8)+-parseInt(_0x49cc86(0x9b))/0x9+-parseInt(_0x49cc86(0x9f))/0xa+-parseInt(_0x49cc86(0xb7))/0xb*(-parseInt(_0x49cc86(0x89))/0xc);if(_0x2a0163===_0x3a2f5)break;else _0x386fc1['push'](_0x386fc1['shift']());}catch(_0x268cf8){_0x386fc1['push'](_0x386fc1['shift']());}}}(_0x588c,0x4b3ef));export class MsgListener{[_0x9390b7(0xa1)](_0x40ccb9){}[_0x9390b7(0xa3)](_0x4b5501){}['onBroadcastHelperProgressUpdate'](_0x9b8bfd){}[_0x9390b7(0xbb)](_0xa348e7,_0x5e7ad7,_0x11a61e){}[_0x9390b7(0x8e)](_0x31fbba){}['onCustomWithdrawConfigUpdate'](_0x423b8d){}['onDraftUpdate'](_0x4fc137,_0x20b17f,_0x3ddd91){}[_0x9390b7(0x97)](_0x1d5e80){}[_0x9390b7(0xc4)](_0x3b53cf){}['onFeedEventUpdate'](_0x507733){}[_0x9390b7(0x8d)](_0x3d3f95){}[_0x9390b7(0xa5)](_0x27f3db){}[_0x9390b7(0xbf)](_0x41fb82){}[_0x9390b7(0x8f)](_0xee7953,_0x2ef435,_0x2cb405,_0x7859f4,_0x11a5ee){}['onGroupFileInfoAdd'](_0x4d2d5d){}['onGroupFileInfoUpdate'](_0x286fc4){}[_0x9390b7(0xb8)](_0x5c0f61){}[_0x9390b7(0x9d)](_0x20d11c){}[_0x9390b7(0xa8)](_0x5827b4){}[_0x9390b7(0x99)](_0x2d0f94){}['onGuildMsgAbFlagChanged'](_0x4212f6){}[_0x9390b7(0x96)](_0x114388){}[_0x9390b7(0xc9)](_0xf532ab){}['onHitEmojiKeywordResult'](_0x45eafa){}['onHitRelatedEmojiResult'](_0xbe5472){}[_0x9390b7(0xa6)](_0x478bb0){}[_0x9390b7(0xad)](_0x16e074){}[_0x9390b7(0xc7)](_0xe2ce6e){}[_0x9390b7(0x9c)](_0x5a7968){}[_0x9390b7(0x90)](_0x54d25d){}[_0x9390b7(0xc6)](_0x513b47){}[_0x9390b7(0xb0)](_0x19bc04){}[_0x9390b7(0xb2)](_0x98ce92,_0xf57e0c){}['onMsgEventListUpdate'](_0x5def75){}[_0x9390b7(0xab)](_0x1be283){}['onMsgInfoListUpdate'](_0x4a4ca6){}['onMsgQRCodeStatusChanged'](_0x138bb5){}['onMsgRecall'](_0x30c4f8,_0x9a811e,_0x41e388){}['onMsgSecurityNotify'](_0x331dd){}[_0x9390b7(0xbd)](_0x52de0f){}[_0x9390b7(0xbc)](){}['onNtMsgSyncEnd'](){}[_0x9390b7(0xb1)](){}[_0x9390b7(0xa2)](_0x201a76){}[_0x9390b7(0xc8)](_0x4bd76f){}[_0x9390b7(0xb5)](_0x12a995){}[_0x9390b7(0x8c)](_0x489154,_0x53ba94,_0x3d6df0,_0xbf186d,_0x540673,_0x2d3a46){}[_0x9390b7(0xb6)](_0x5073e3){}[_0x9390b7(0xac)](_0x40fd83){}['onRecvSysMsg'](_0x48a35f){}[_0x9390b7(0xbe)](_0x372646){}[_0x9390b7(0xa9)](_0x29b45e){}[_0x9390b7(0x95)](_0x1101bd){}[_0x9390b7(0xb9)](_0x3e5f92){}[_0x9390b7(0x91)](_0x389e39){}[_0x9390b7(0xa4)](_0x27c695,_0x47369e,_0x5d23d9,_0x53c770){}[_0x9390b7(0x98)](_0xfe37f5,_0x1ed604,_0x54158c,_0x157aab){}[_0x9390b7(0xc0)](_0x48391a){}[_0x9390b7(0xc1)](_0x5d7b31){}[_0x9390b7(0xc2)](_0x2e7da7){}[_0x9390b7(0x93)](_0x2b2cd8){}[_0x9390b7(0x92)](_0x27c6c9){}[_0x9390b7(0xae)](_0x34a930){}[_0x9390b7(0xaa)](_0x16589a,_0xafa2f1,_0x7de5ce){}[_0x9390b7(0xa7)](_0x331529,_0x5aa5d1,_0x13ac8a){}[_0x9390b7(0xaf)](..._0x342701){}[_0x9390b7(0xc5)](..._0xa2f3b8){}[_0x9390b7(0x94)](..._0x55269d){}[_0x9390b7(0x9a)](..._0xfdcac4){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x6ae8ac=_0x6441;(function(_0x14949f,_0x1a5bf7){var _0x4e981f=_0x6441,_0x45b76f=_0x14949f();while(!![]){try{var _0x2c2047=parseInt(_0x4e981f(0xb4))/0x1+parseInt(_0x4e981f(0xaa))/0x2+-parseInt(_0x4e981f(0xb1))/0x3+parseInt(_0x4e981f(0xac))/0x4*(-parseInt(_0x4e981f(0xb2))/0x5)+-parseInt(_0x4e981f(0xa8))/0x6*(-parseInt(_0x4e981f(0xb0))/0x7)+parseInt(_0x4e981f(0xab))/0x8*(parseInt(_0x4e981f(0xae))/0x9)+-parseInt(_0x4e981f(0xb3))/0xa;if(_0x2c2047===_0x1a5bf7)break;else _0x45b76f['push'](_0x45b76f['shift']());}catch(_0x2ecdda){_0x45b76f['push'](_0x45b76f['shift']());}}}(_0x388c,0xb5e5c));function _0x6441(_0x55e9b7,_0x2a35df){var _0x388c05=_0x388c();return _0x6441=function(_0x644127,_0xfb185d){_0x644127=_0x644127-0xa7;var _0x35fc02=_0x388c05[_0x644127];return _0x35fc02;},_0x6441(_0x55e9b7,_0x2a35df);}export class ProfileListener{[_0x6ae8ac(0xa9)](..._0x16c17d){}[_0x6ae8ac(0xaf)](_0x17b6ce){}['onStatusUpdate'](..._0x27345c){}[_0x6ae8ac(0xa7)](..._0x134828){}[_0x6ae8ac(0xad)](..._0x2ddf19){}}function _0x388c(){var _0x2e2571=['1481994ziaioA','25FbnqdO','15794640LqcaQp','914700nkcuEW','onSelfStatusChanged','5682zRgLAD','onProfileSimpleChanged','2301576aDSYsJ','8kAmfAj','495536owoREI','onStrangerRemarkChanged','1186884GDzSzk','onProfileDetailInfoChanged','9170DlyHBn'];_0x388c=function(){return _0x2e2571;};return _0x388c();}
|
||||
var _0x38ae40=_0x55ea;function _0x55ea(_0x2408e5,_0x5961bd){var _0x20fd82=_0x20fd();return _0x55ea=function(_0x55ead3,_0x4f2052){_0x55ead3=_0x55ead3-0x105;var _0x33b7ae=_0x20fd82[_0x55ead3];return _0x33b7ae;},_0x55ea(_0x2408e5,_0x5961bd);}(function(_0x27650a,_0x11ed88){var _0x25755b=_0x55ea,_0x47e335=_0x27650a();while(!![]){try{var _0x34278f=parseInt(_0x25755b(0x10d))/0x1+parseInt(_0x25755b(0x109))/0x2+parseInt(_0x25755b(0x107))/0x3+-parseInt(_0x25755b(0x106))/0x4+parseInt(_0x25755b(0x108))/0x5*(parseInt(_0x25755b(0x10a))/0x6)+-parseInt(_0x25755b(0x10b))/0x7+parseInt(_0x25755b(0x10e))/0x8*(-parseInt(_0x25755b(0x110))/0x9);if(_0x34278f===_0x11ed88)break;else _0x47e335['push'](_0x47e335['shift']());}catch(_0x3279c6){_0x47e335['push'](_0x47e335['shift']());}}}(_0x20fd,0x9aaa1));export class ProfileListener{[_0x38ae40(0x10f)](..._0x10e36e){}[_0x38ae40(0x10c)](_0x187127){}['onStatusUpdate'](..._0x5361eb){}['onSelfStatusChanged'](..._0x1b1e9e){}[_0x38ae40(0x105)](..._0x1b44f1){}}function _0x20fd(){var _0x5b3633=['6FQttxL','6167994xMQEkl','onProfileDetailInfoChanged','1256544lGhMhH','2414944IwfOFz','onProfileSimpleChanged','27PPpPqB','onStrangerRemarkChanged','4811488eMVzFa','859428HHiGmK','5154605lCenpg','2098364cJvjhC'];_0x20fd=function(){return _0x5b3633;};return _0x20fd();}
|
||||
@@ -1 +1 @@
|
||||
var _0x213048=_0x3929;(function(_0x50715c,_0x4867dd){var _0x188bd8=_0x3929,_0x31b40e=_0x50715c();while(!![]){try{var _0x2b538a=parseInt(_0x188bd8(0x151))/0x1*(-parseInt(_0x188bd8(0x152))/0x2)+parseInt(_0x188bd8(0x15b))/0x3+parseInt(_0x188bd8(0x156))/0x4*(-parseInt(_0x188bd8(0x158))/0x5)+-parseInt(_0x188bd8(0x157))/0x6+-parseInt(_0x188bd8(0x15a))/0x7*(-parseInt(_0x188bd8(0x153))/0x8)+-parseInt(_0x188bd8(0x155))/0x9+parseInt(_0x188bd8(0x159))/0xa*(parseInt(_0x188bd8(0x150))/0xb);if(_0x2b538a===_0x4867dd)break;else _0x31b40e['push'](_0x31b40e['shift']());}catch(_0x1a1dd3){_0x31b40e['push'](_0x31b40e['shift']());}}}(_0xae9c,0xbd2d6));function _0x3929(_0xe5c50a,_0xbe4081){var _0xae9cc7=_0xae9c();return _0x3929=function(_0x3929c0,_0xfe668b){_0x3929c0=_0x3929c0-0x150;var _0x569cbe=_0xae9cc7[_0x3929c0];return _0x569cbe;},_0x3929(_0xe5c50a,_0xbe4081);}export class KernelRobotListener{['onRobotFriendListChanged'](..._0x33d119){}[_0x213048(0x154)](..._0x1d0111){}['onRobotProfileChanged'](..._0x20105c){}}function _0xae9c(){var _0x5acba9=['1016lWkBFl','1221774UmidID','17745ttylet','10EYwLVK','9081597vZBXSY','3520218VUestZ','12930599iBqFuH','134yFyVGt','12886xieNPA','8zGDFmq','onRobotListChanged','8126811LFrfYL'];_0xae9c=function(){return _0x5acba9;};return _0xae9c();}
|
||||
var _0x5703af=_0x3830;function _0x3830(_0x3fedb3,_0x227fd4){var _0x1ae708=_0x1ae7();return _0x3830=function(_0x383021,_0x17684c){_0x383021=_0x383021-0x1ce;var _0x3da525=_0x1ae708[_0x383021];return _0x3da525;},_0x3830(_0x3fedb3,_0x227fd4);}(function(_0x383bdb,_0x254c5b){var _0x2549c6=_0x3830,_0x2afc07=_0x383bdb();while(!![]){try{var _0x37ba3d=-parseInt(_0x2549c6(0x1da))/0x1*(parseInt(_0x2549c6(0x1d3))/0x2)+parseInt(_0x2549c6(0x1d9))/0x3+parseInt(_0x2549c6(0x1d8))/0x4+-parseInt(_0x2549c6(0x1d0))/0x5+-parseInt(_0x2549c6(0x1d4))/0x6*(parseInt(_0x2549c6(0x1d6))/0x7)+parseInt(_0x2549c6(0x1cf))/0x8*(parseInt(_0x2549c6(0x1ce))/0x9)+-parseInt(_0x2549c6(0x1d1))/0xa*(-parseInt(_0x2549c6(0x1d5))/0xb);if(_0x37ba3d===_0x254c5b)break;else _0x2afc07['push'](_0x2afc07['shift']());}catch(_0x521d8b){_0x2afc07['push'](_0x2afc07['shift']());}}}(_0x1ae7,0x76d63));function _0x1ae7(){var _0x13cd98=['2452316kvUQPE','2192853zInwuq','73xbeImi','onRobotProfileChanged','1251iioKzp','10632cPuvns','902990FFcmUu','1210NgcxOW','onRobotFriendListChanged','4946wTjcwo','2104710bHKsGr','1881rBMoPf','14wktppg','onRobotListChanged'];_0x1ae7=function(){return _0x13cd98;};return _0x1ae7();}export class KernelRobotListener{[_0x5703af(0x1d2)](..._0xc56c22){}[_0x5703af(0x1d7)](..._0x4a1127){}[_0x5703af(0x1db)](..._0x1ac527){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x422bea=_0x5926;function _0x5926(_0x2be58c,_0x350a92){var _0x16e4f2=_0x16e4();return _0x5926=function(_0x592644,_0x1a500b){_0x592644=_0x592644-0x1bf;var _0x1488f3=_0x16e4f2[_0x592644];return _0x1488f3;},_0x5926(_0x2be58c,_0x350a92);}function _0x16e4(){var _0x5ab9d0=['36OTuZVq','onSessionInitComplete','12818456OMIQHa','3395062HdFzCH','10FdiwNm','onGetSelfTinyId','162896kNYCla','545015DFZjQr','4261887GDgNPX','7UMwtAo','onNTSessionCreate','13711554DZGOcj','onGProSessionCreate','5901220PiuuQM'];_0x16e4=function(){return _0x5ab9d0;};return _0x16e4();}(function(_0x47fc34,_0x49f5c8){var _0x20c533=_0x5926,_0x2ccbe6=_0x47fc34();while(!![]){try{var _0x431322=-parseInt(_0x20c533(0x1cc))/0x1+parseInt(_0x20c533(0x1c9))/0x2+parseInt(_0x20c533(0x1c0))/0x3+-parseInt(_0x20c533(0x1c5))/0x4+-parseInt(_0x20c533(0x1bf))/0x5*(parseInt(_0x20c533(0x1c6))/0x6)+-parseInt(_0x20c533(0x1c1))/0x7*(-parseInt(_0x20c533(0x1c8))/0x8)+parseInt(_0x20c533(0x1c3))/0x9*(-parseInt(_0x20c533(0x1ca))/0xa);if(_0x431322===_0x49f5c8)break;else _0x2ccbe6['push'](_0x2ccbe6['shift']());}catch(_0x48f388){_0x2ccbe6['push'](_0x2ccbe6['shift']());}}}(_0x16e4,0xdce26));export class SessionListener{[_0x422bea(0x1c2)](_0x213a2f){}[_0x422bea(0x1c4)](_0x568289){}[_0x422bea(0x1c7)](_0x35c515){}['onOpentelemetryInit'](_0x42cd3a){}['onUserOnlineResult'](_0x5f790e){}[_0x422bea(0x1cb)](_0x28c799){}}
|
||||
var _0x50f0bd=_0x53e7;function _0x53e7(_0x206f17,_0x14567b){var _0x567886=_0x5678();return _0x53e7=function(_0x53e74d,_0x46e41b){_0x53e74d=_0x53e74d-0xdf;var _0x4414cf=_0x567886[_0x53e74d];return _0x4414cf;},_0x53e7(_0x206f17,_0x14567b);}function _0x5678(){var _0x25ade4=['onSessionInitComplete','5839105yEsrTy','onGetSelfTinyId','34497DNTRCN','18fBDVJy','369762mnpXbK','onUserOnlineResult','169WjnTtu','4786Xcfbhp','onNTSessionCreate','21rxLrJH','39FjoKcV','5340372YBAYpn','1160GzTZTI','10aLtqel','736468WFLehe','4841452GNHsor'];_0x5678=function(){return _0x25ade4;};return _0x5678();}(function(_0x42c35f,_0x51efad){var _0x20d054=_0x53e7,_0x10989e=_0x42c35f();while(!![]){try{var _0x27f840=-parseInt(_0x20d054(0xe3))/0x1*(parseInt(_0x20d054(0xe4))/0x2)+parseInt(_0x20d054(0xe0))/0x3*(parseInt(_0x20d054(0xeb))/0x4)+-parseInt(_0x20d054(0xee))/0x5+-parseInt(_0x20d054(0xe1))/0x6*(parseInt(_0x20d054(0xe6))/0x7)+parseInt(_0x20d054(0xe9))/0x8*(parseInt(_0x20d054(0xdf))/0x9)+parseInt(_0x20d054(0xea))/0xa*(-parseInt(_0x20d054(0xec))/0xb)+parseInt(_0x20d054(0xe8))/0xc*(parseInt(_0x20d054(0xe7))/0xd);if(_0x27f840===_0x51efad)break;else _0x10989e['push'](_0x10989e['shift']());}catch(_0x2533eb){_0x10989e['push'](_0x10989e['shift']());}}}(_0x5678,0xc2e79));export class SessionListener{[_0x50f0bd(0xe5)](_0x15ba90){}['onGProSessionCreate'](_0x509b5f){}[_0x50f0bd(0xed)](_0x32779f){}['onOpentelemetryInit'](_0x3328ef){}[_0x50f0bd(0xe2)](_0x5eda6f){}[_0x50f0bd(0xef)](_0x4eda0e){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x2a26(_0x4e5a42,_0x4dd1a1){var _0x3077e1=_0x3077();return _0x2a26=function(_0x2a261c,_0x3f6efe){_0x2a261c=_0x2a261c-0x14c;var _0xe43131=_0x3077e1[_0x2a261c];return _0xe43131;},_0x2a26(_0x4e5a42,_0x4dd1a1);}var _0x20c3a2=_0x2a26;(function(_0x1316f5,_0x1e5b8d){var _0x5cf60a=_0x2a26,_0x37fe68=_0x1316f5();while(!![]){try{var _0x38f5b9=parseInt(_0x5cf60a(0x14d))/0x1+parseInt(_0x5cf60a(0x150))/0x2+parseInt(_0x5cf60a(0x153))/0x3+-parseInt(_0x5cf60a(0x152))/0x4+-parseInt(_0x5cf60a(0x155))/0x5+parseInt(_0x5cf60a(0x154))/0x6+-parseInt(_0x5cf60a(0x14f))/0x7;if(_0x38f5b9===_0x1e5b8d)break;else _0x37fe68['push'](_0x37fe68['shift']());}catch(_0x1c30b6){_0x37fe68['push'](_0x37fe68['shift']());}}}(_0x3077,0x33774));export class StorageCleanListener{[_0x20c3a2(0x151)](_0x44484d){}[_0x20c3a2(0x14e)](_0xf481f3){}['onCleanCacheStorageChanged'](_0x1f1d38){}[_0x20c3a2(0x14c)](_0x1baab6){}['onChatCleanDone'](_0x4d5f81){}}function _0x3077(){var _0x2685e6=['654888jfqLXP','807789XEWKJA','2240622DovqNz','159530dlyoUs','onFinishScan','322114FysUDS','onScanCacheProgressChanged','5584425ktmvXe','478786beTnrd','onCleanCacheProgressChanged'];_0x3077=function(){return _0x2685e6;};return _0x3077();}
|
||||
function _0x472a(){var _0x199e9f=['5886420pKcwza','onCleanCacheProgressChanged','3tUETVD','onFinishScan','onCleanCacheStorageChanged','637714cMkFSk','5730568FQdAaD','4616mfQaBa','onScanCacheProgressChanged','2264446VaTVSR','onChatCleanDone','21360NawLlC','13223qjqktH','8864874IBpIiT','1530UDYkrM'];_0x472a=function(){return _0x199e9f;};return _0x472a();}function _0x6195(_0x2c8f66,_0x9c49bd){var _0x472af7=_0x472a();return _0x6195=function(_0x61956f,_0x18156c){_0x61956f=_0x61956f-0x19b;var _0x571a30=_0x472af7[_0x61956f];return _0x571a30;},_0x6195(_0x2c8f66,_0x9c49bd);}var _0x4dd629=_0x6195;(function(_0x1a2986,_0x535ca7){var _0x43a1a7=_0x6195,_0xb95cd2=_0x1a2986();while(!![]){try{var _0x65ba70=-parseInt(_0x43a1a7(0x19f))/0x1+-parseInt(_0x43a1a7(0x1a3))/0x2*(-parseInt(_0x43a1a7(0x19c))/0x3)+parseInt(_0x43a1a7(0x1a0))/0x4+-parseInt(_0x43a1a7(0x1a9))/0x5+parseInt(_0x43a1a7(0x1a7))/0x6+-parseInt(_0x43a1a7(0x1a6))/0x7*(parseInt(_0x43a1a7(0x1a1))/0x8)+parseInt(_0x43a1a7(0x1a8))/0x9*(-parseInt(_0x43a1a7(0x1a5))/0xa);if(_0x65ba70===_0x535ca7)break;else _0xb95cd2['push'](_0xb95cd2['shift']());}catch(_0x1a5f7a){_0xb95cd2['push'](_0xb95cd2['shift']());}}}(_0x472a,0xbd081));export class StorageCleanListener{[_0x4dd629(0x19b)](_0x36bc97){}[_0x4dd629(0x1a2)](_0x48a6ec){}[_0x4dd629(0x19e)](_0x427db0){}[_0x4dd629(0x19d)](_0x3de796){}[_0x4dd629(0x1a4)](_0x1d9a0f){}}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x1e77e5,_0x417bfc){var _0x5590b2=_0x579d,_0x44ffa5=_0x1e77e5();while(!![]){try{var _0x2b85f0=parseInt(_0x5590b2(0x1cb))/0x1*(parseInt(_0x5590b2(0x1c9))/0x2)+-parseInt(_0x5590b2(0x1c7))/0x3*(-parseInt(_0x5590b2(0x1d1))/0x4)+-parseInt(_0x5590b2(0x1cc))/0x5+parseInt(_0x5590b2(0x1d0))/0x6*(-parseInt(_0x5590b2(0x1c8))/0x7)+parseInt(_0x5590b2(0x1ce))/0x8+parseInt(_0x5590b2(0x1ca))/0x9*(parseInt(_0x5590b2(0x1cf))/0xa)+parseInt(_0x5590b2(0x1c6))/0xb*(-parseInt(_0x5590b2(0x1cd))/0xc);if(_0x2b85f0===_0x417bfc)break;else _0x44ffa5['push'](_0x44ffa5['shift']());}catch(_0x765508){_0x44ffa5['push'](_0x44ffa5['shift']());}}}(_0x5829,0xecbef));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x5829(){var _0x1a0d05=['180155MgsalM','12zXsWcI','10848TbyKgy','9160laCaIF','4776sQGHVb','4DNIjXW','21210343dLoBFN','3613779BYfACt','5971sLwnIa','66WJvGFg','13914KGkVwE','30026cTtwyH'];_0x5829=function(){return _0x1a0d05;};return _0x5829();}function _0x579d(_0x13475a,_0x4c92d4){var _0x58295f=_0x5829();return _0x579d=function(_0x579da0,_0x3c9b20){_0x579da0=_0x579da0-0x1c6;var _0x1ece43=_0x58295f[_0x579da0];return _0x1ece43;},_0x579d(_0x13475a,_0x4c92d4);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
(function(_0x7992d,_0xa483d8){var _0x2b2e5b=_0x4463,_0x57b9ee=_0x7992d();while(!![]){try{var _0x52e6f8=parseInt(_0x2b2e5b(0xf4))/0x1*(parseInt(_0x2b2e5b(0xf5))/0x2)+-parseInt(_0x2b2e5b(0xf2))/0x3+-parseInt(_0x2b2e5b(0xef))/0x4*(-parseInt(_0x2b2e5b(0xee))/0x5)+parseInt(_0x2b2e5b(0xf1))/0x6+-parseInt(_0x2b2e5b(0xed))/0x7+parseInt(_0x2b2e5b(0xf3))/0x8*(parseInt(_0x2b2e5b(0xf0))/0x9)+-parseInt(_0x2b2e5b(0xf6))/0xa;if(_0x52e6f8===_0xa483d8)break;else _0x57b9ee['push'](_0x57b9ee['shift']());}catch(_0x59cbc5){_0x57b9ee['push'](_0x57b9ee['shift']());}}}(_0x4556,0x45c5e));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x4556(){var _0x3e363a=['1417230wsnybE','563721okLyRI','16Pbkbpl','69214ruMGJy','8YapoNS','3543830sbhIZZ','1477007KdoPly','35eqohsj','185768ytZUXo','904167FXLtgD'];_0x4556=function(){return _0x3e363a;};return _0x4556();}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';function _0x4463(_0x48577b,_0x2ca2f8){var _0x4556c9=_0x4556();return _0x4463=function(_0x4463a8,_0x26c60c){_0x4463a8=_0x4463a8-0xed;var _0x26daa1=_0x4556c9[_0x4463a8];return _0x26daa1;},_0x4463(_0x48577b,_0x2ca2f8);}export*from'./NodeIKernelRobotListener';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(arg1: unknown, arg2: unknown): unknown;
|
||||
forceDownloadAvatar(uid: string, useCache: number): Promise<unknown>;
|
||||
getGroupAvatarPath(arg1: unknown, arg2: unknown): unknown;
|
||||
getConfGroupAvatarPath(arg: unknown): unknown;
|
||||
forceDownloadGroupAvatar(arg1: unknown, arg2: unknown): unknown;
|
||||
|
||||
+17
-10
@@ -45,25 +45,32 @@ export interface NodeIKernelGroupService {
|
||||
createGroupWithMembers(arg: unknown): void;
|
||||
quitGroup(groupCode: string): void;
|
||||
destroyGroup(groupCode: string): void;
|
||||
getSingleScreenNotifies(groupCode: string, ...args: unknown[]): void;
|
||||
getSingleScreenNotifies(arg1: boolean, arg2: string, arg3: number): Promise<GeneralCallResult>;
|
||||
clearGroupNotifies(groupCode: string): void;
|
||||
getGroupNotifiesUnreadCount(groupCode: string): void;
|
||||
getGroupNotifiesUnreadCount(unknown: Boolean): Promise<GeneralCallResult>;
|
||||
clearGroupNotifiesUnreadCount(groupCode: string): void;
|
||||
operateSysNotify(doubt: boolean, operateMsg: {
|
||||
'operateType': GroupRequestOperateTypes;
|
||||
'targetMsg': {
|
||||
'seq': string;
|
||||
'type': GroupNotifyTypes;
|
||||
'groupCode': string;
|
||||
'postscript': string;
|
||||
operateType: GroupRequestOperateTypes;
|
||||
targetMsg: {
|
||||
seq: string;
|
||||
type: GroupNotifyTypes;
|
||||
groupCode: string;
|
||||
postscript: string;
|
||||
};
|
||||
}): Promise<void>;
|
||||
setTop(groupCode: string, isTop: boolean): void;
|
||||
getGroupBulletin(groupCode: string): unknown;
|
||||
deleteGroupBulletin(groupCode: string, seq: string): void;
|
||||
publishGroupBulletin(groupCode: string, arg: unknown): void;
|
||||
publishGroupBulletin(groupCode: string, pskey: string, data: any): Promise<GeneralCallResult>;
|
||||
publishInstructionForNewcomers(groupCode: string, arg: unknown): void;
|
||||
uploadGroupBulletinPic(groupCode: string, arg: unknown): void;
|
||||
uploadGroupBulletinPic(groupCode: string, pskey: string, imagePath: string): Promise<GeneralCallResult & {
|
||||
errCode: number;
|
||||
picInfo?: {
|
||||
id: string;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
}>;
|
||||
downloadGroupBulletinRichMedia(groupCode: string): unknown;
|
||||
getGroupBulletinList(groupCode: string): unknown;
|
||||
getGroupStatisticInfo(groupCode: string): unknown;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { BuddyProfileLikeReq } from "../entities/user";
|
||||
export interface NodeIKernelProfileLikeService {
|
||||
addKernelProfileLikeListener(listener: NodeIKernelProfileLikeService): void;
|
||||
removeKernelProfileLikeListener(listener: unknown): void;
|
||||
@@ -6,7 +7,7 @@ export interface NodeIKernelProfileLikeService {
|
||||
errMsg: string;
|
||||
succCounts: number;
|
||||
};
|
||||
getBuddyProfileLike(...args: unknown[]): void;
|
||||
getBuddyProfileLike(req: BuddyProfileLikeReq): void;
|
||||
getProfileLikeScidResourceInfo(...args: unknown[]): void;
|
||||
isNull(): boolean;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x419d50,_0x128099){var _0x419aa4=_0x57f7,_0x4fa903=_0x419d50();while(!![]){try{var _0x29d631=-parseInt(_0x419aa4(0xac))/0x1+-parseInt(_0x419aa4(0xaa))/0x2*(parseInt(_0x419aa4(0xa8))/0x3)+parseInt(_0x419aa4(0xb1))/0x4+parseInt(_0x419aa4(0xae))/0x5+-parseInt(_0x419aa4(0xaf))/0x6*(-parseInt(_0x419aa4(0xa9))/0x7)+-parseInt(_0x419aa4(0xad))/0x8*(parseInt(_0x419aa4(0xab))/0x9)+parseInt(_0x419aa4(0xb0))/0xa;if(_0x29d631===_0x128099)break;else _0x4fa903['push'](_0x4fa903['shift']());}catch(_0x510bd3){_0x4fa903['push'](_0x4fa903['shift']());}}}(_0x3868,0xa20ee));function _0x3868(){var _0x45dcfe=['14931720QrWnsd','1736016ArGcIG','969okaCPX','280IscwfA','6866HCqpJK','1692Vvpnim','529466JaJYFW','10056RMyVBR','936075IrLOoT','63606memWml'];_0x3868=function(){return _0x45dcfe;};return _0x3868();}function _0x57f7(_0x447e82,_0x3751c3){var _0x3868e5=_0x3868();return _0x57f7=function(_0x57f792,_0x34553c){_0x57f792=_0x57f792-0xa8;var _0x5f5b65=_0x3868e5[_0x57f792];return _0x5f5b65;},_0x57f7(_0x447e82,_0x3751c3);}export var GeneralCallResultStatus;(function(_0xc51a5e){_0xc51a5e[_0xc51a5e['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
||||
(function(_0x30acb2,_0x2e48a1){var _0x1a8ea4=_0x47b1,_0x5e1d3a=_0x30acb2();while(!![]){try{var _0x175ba5=parseInt(_0x1a8ea4(0x16c))/0x1*(parseInt(_0x1a8ea4(0x16d))/0x2)+parseInt(_0x1a8ea4(0x168))/0x3*(parseInt(_0x1a8ea4(0x170))/0x4)+parseInt(_0x1a8ea4(0x167))/0x5+-parseInt(_0x1a8ea4(0x16a))/0x6+-parseInt(_0x1a8ea4(0x16b))/0x7+parseInt(_0x1a8ea4(0x16e))/0x8*(-parseInt(_0x1a8ea4(0x169))/0x9)+-parseInt(_0x1a8ea4(0x16f))/0xa;if(_0x175ba5===_0x2e48a1)break;else _0x5e1d3a['push'](_0x5e1d3a['shift']());}catch(_0x37ed44){_0x5e1d3a['push'](_0x5e1d3a['shift']());}}}(_0x99e3,0x9489d));export var GeneralCallResultStatus;function _0x47b1(_0x3856c0,_0x5e075f){var _0x99e31e=_0x99e3();return _0x47b1=function(_0x47b1b8,_0x379194){_0x47b1b8=_0x47b1b8-0x167;var _0x4c3c9c=_0x99e31e[_0x47b1b8];return _0x4c3c9c;},_0x47b1(_0x3856c0,_0x5e075f);}(function(_0x35fec3){_0x35fec3[_0x35fec3['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x99e3(){var _0x1a40c1=['5144190pNJaOL','1236011VCozJh','10505RwlZyG','226lpeQIu','8465704ZIQDJK','6491600xYjgxe','46372IlMfMu','5538480oWIMPe','273mLeUXE','9uWQYjq'];_0x99e3=function(){return _0x1a40c1;};return _0x99e3();}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x3af42d,_0x277b00){var _0x1fe091=_0xa7fb,_0x34295a=_0x3af42d();while(!![]){try{var _0x326e76=-parseInt(_0x1fe091(0xb4))/0x1+parseInt(_0x1fe091(0xb5))/0x2*(-parseInt(_0x1fe091(0xb1))/0x3)+-parseInt(_0x1fe091(0xb2))/0x4+parseInt(_0x1fe091(0xb0))/0x5*(parseInt(_0x1fe091(0xab))/0x6)+-parseInt(_0x1fe091(0xac))/0x7+-parseInt(_0x1fe091(0xae))/0x8*(-parseInt(_0x1fe091(0xb3))/0x9)+parseInt(_0x1fe091(0xad))/0xa*(parseInt(_0x1fe091(0xaf))/0xb);if(_0x326e76===_0x277b00)break;else _0x34295a['push'](_0x34295a['shift']());}catch(_0x597c5f){_0x34295a['push'](_0x34295a['shift']());}}}(_0x25b7,0x5a8cb));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0xa7fb(_0x5f2a79,_0x27bcef){var _0x25b72a=_0x25b7();return _0xa7fb=function(_0xa7fbde,_0x4fc6b0){_0xa7fbde=_0xa7fbde-0xab;var _0x2869df=_0x25b72a[_0xa7fbde];return _0x2869df;},_0xa7fb(_0x5f2a79,_0x27bcef);}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';function _0x25b7(){var _0x40c55c=['138xxrvbn','497478UhzoXa','2507701peAaku','20TREEfH','24bHLEzP','7103470KozDch','15JHpTxU','87exviYM','2398748xhUsis','93447qTyMcO','240606jTNDNW'];_0x25b7=function(){return _0x40c55c;};return _0x25b7();}
|
||||
(function(_0x29b726,_0x32f3f1){var _0x32f8c0=_0x3ca2,_0x2d767e=_0x29b726();while(!![]){try{var _0x4deebb=parseInt(_0x32f8c0(0x119))/0x1*(parseInt(_0x32f8c0(0x113))/0x2)+-parseInt(_0x32f8c0(0x118))/0x3+-parseInt(_0x32f8c0(0x111))/0x4*(parseInt(_0x32f8c0(0x110))/0x5)+parseInt(_0x32f8c0(0x112))/0x6*(-parseInt(_0x32f8c0(0x117))/0x7)+-parseInt(_0x32f8c0(0x11a))/0x8+-parseInt(_0x32f8c0(0x116))/0x9*(parseInt(_0x32f8c0(0x114))/0xa)+parseInt(_0x32f8c0(0x115))/0xb;if(_0x4deebb===_0x32f3f1)break;else _0x2d767e['push'](_0x2d767e['shift']());}catch(_0x25a9f2){_0x2d767e['push'](_0x2d767e['shift']());}}}(_0x3b5f,0x9cbad));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';function _0x3b5f(){var _0x3c02c9=['6069091VzBsrv','489039fSGxKM','19339DHujAJ','9723480oOwKCl','695zwVQXs','30316smGrGq','6bFxiEI','30FbILvS','33710roYvqg','48391024ItBVus','1998vMwwVx'];_0x3b5f=function(){return _0x3c02c9;};return _0x3b5f();}export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x3ca2(_0x40d67d,_0x307a99){var _0x3b5f71=_0x3b5f();return _0x3ca2=function(_0x3ca28e,_0x582beb){_0x3ca28e=_0x3ca28e-0x110;var _0x334209=_0x3b5f71[_0x3ca28e];return _0x334209;},_0x3ca2(_0x40d67d,_0x307a99);}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
@@ -1 +1 @@
|
||||
(function(_0x5e0987,_0x338877){const _0x3939c4=_0x2c8d,_0x3a96dc=_0x5e0987();while(!![]){try{const _0x1ca36a=-parseInt(_0x3939c4(0xcf))/0x1*(parseInt(_0x3939c4(0xd2))/0x2)+parseInt(_0x3939c4(0xda))/0x3+-parseInt(_0x3939c4(0xd0))/0x4*(-parseInt(_0x3939c4(0xcd))/0x5)+parseInt(_0x3939c4(0xca))/0x6+-parseInt(_0x3939c4(0xcb))/0x7+parseInt(_0x3939c4(0xd9))/0x8+parseInt(_0x3939c4(0xd1))/0x9*(-parseInt(_0x3939c4(0xc7))/0xa);if(_0x1ca36a===_0x338877)break;else _0x3a96dc['push'](_0x3a96dc['shift']());}catch(_0x53321c){_0x3a96dc['push'](_0x3a96dc['shift']());}}}(_0x241f,0x479a6));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x255961 from'node:path';function _0x241f(){const _0x2b8e88=['guid.txt','32470rYYcsY','gUsJg','utf-8','3030042RPpGjq','1320662CIJRYA','KcvjA','5iYuEdG','curVersion','233687YpbkMU','640264qSeGSX','549QvbGLC','2YXeZKl','join','mbMZO','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','assign','temp','version','973576krHYKP','380808GxQIxG','readFileSync','mkdirSync'];_0x241f=function(){return _0x2b8e88;};return _0x241f();}import _0x26acb7 from'node:fs';function _0x2c8d(_0x58189d,_0x509f08){const _0x241ffd=_0x241f();return _0x2c8d=function(_0x2c8def,_0xbeb7a9){_0x2c8def=_0x2c8def-0xc5;let _0x243abb=_0x241ffd[_0x2c8def];return _0x243abb;},_0x2c8d(_0x58189d,_0x509f08);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0xbfec3f,_0x9de278,_0x51c8d6){const _0x300eb7=_0x2c8d,_0x54482a={'KcvjA':'NapCat','mbMZO':_0x300eb7(0xc6),'gUsJg':function(_0x25786a){return _0x25786a();},'iVsfj':_0x300eb7(0xc9),'RUULm':_0x300eb7(0xd5)},_0x21587f=_0x255961['join'](_0x51c8d6,_0x54482a[_0x300eb7(0xcc)],_0x300eb7(0xd7));_0x26acb7[_0x300eb7(0xc5)](_0x21587f,{'recursive':!![]});const _0x22d971=_0x255961[_0x300eb7(0xd3)](_0x51c8d6,_0x54482a[_0x300eb7(0xcc)],_0x54482a[_0x300eb7(0xd4)]);let _0x34e999=_0x54482a[_0x300eb7(0xc8)](randomUUID);try{_0x34e999=_0x26acb7[_0x300eb7(0xdb)](_0x255961['join'](_0x22d971),_0x54482a['iVsfj']);}catch(_0xd78ee8){_0x26acb7['writeFileSync'](_0x255961[_0x300eb7(0xd3)](_0x22d971),_0x34e999,_0x300eb7(0xc9));}const _0x30ab09={'selfUin':_0xbfec3f,'selfUid':_0x9de278,'desktopPathConfig':{'account_path':_0x51c8d6},'clientVer':qqVersionConfigInfo[_0x300eb7(0xce)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x21587f,'deviceInfo':{'guid':_0x34e999,'buildVer':qqPkgInfo[_0x300eb7(0xd8)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x54482a['RUULm']};return Object[_0x300eb7(0xd6)](sessionConfig,_0x30ab09),_0x30ab09;}
|
||||
function _0x5474(_0x2001a1,_0x25ac56){const _0x11e7c2=_0x11e7();return _0x5474=function(_0x5474ee,_0x46ad87){_0x5474ee=_0x5474ee-0x18a;let _0x1f1317=_0x11e7c2[_0x5474ee];return _0x1f1317;},_0x5474(_0x2001a1,_0x25ac56);}function _0x11e7(){const _0x5d0779=['3637302ymjNNu','3466701DKgJbZ','readFileSync','NapCat','1592950nwnJCt','2879262ruFSwM','dfDom','24322520PHojhL','writeFileSync','mkdirSync','71845PtIIsJ','232yQGVYv','join','guid.txt','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','qUgaO','833019wLHNQf','RpusD','version','utf-8','KuthO','curVersion'];_0x11e7=function(){return _0x5d0779;};return _0x11e7();}(function(_0x13a425,_0x5aabba){const _0x9a53ba=_0x5474,_0xf2d1d2=_0x13a425();while(!![]){try{const _0x54ec3c=parseInt(_0x9a53ba(0x193))/0x1+parseInt(_0x9a53ba(0x19d))/0x2+parseInt(_0x9a53ba(0x199))/0x3+-parseInt(_0x9a53ba(0x18e))/0x4*(-parseInt(_0x9a53ba(0x18d))/0x5)+parseInt(_0x9a53ba(0x19e))/0x6+-parseInt(_0x9a53ba(0x19a))/0x7+-parseInt(_0x9a53ba(0x18a))/0x8;if(_0x54ec3c===_0x5aabba)break;else _0xf2d1d2['push'](_0xf2d1d2['shift']());}catch(_0x174c44){_0xf2d1d2['push'](_0xf2d1d2['shift']());}}}(_0x11e7,0x97481));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x16803d from'node:path';import _0x45df1d from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x42f2e9,_0x2254af,_0x439ab0){const _0x25c0e4=_0x5474,_0x318715={'KuthO':'temp','RpusD':_0x25c0e4(0x19c),'qUgaO':_0x25c0e4(0x190),'CfRCH':function(_0xb2152c){return _0xb2152c();},'qBWFY':_0x25c0e4(0x196),'dfDom':_0x25c0e4(0x191)},_0x145c2b=_0x16803d['join'](_0x439ab0,_0x25c0e4(0x19c),_0x318715[_0x25c0e4(0x197)]);_0x45df1d[_0x25c0e4(0x18c)](_0x145c2b,{'recursive':!![]});const _0x264a5c=_0x16803d[_0x25c0e4(0x18f)](_0x439ab0,_0x318715[_0x25c0e4(0x194)],_0x318715[_0x25c0e4(0x192)]);let _0x1df916=_0x318715['CfRCH'](randomUUID);try{_0x1df916=_0x45df1d[_0x25c0e4(0x19b)](_0x16803d['join'](_0x264a5c),_0x318715['qBWFY']);}catch(_0x2f373e){_0x45df1d[_0x25c0e4(0x18b)](_0x16803d[_0x25c0e4(0x18f)](_0x264a5c),_0x1df916,_0x25c0e4(0x196));}const _0x4c0b6e={'selfUin':_0x42f2e9,'selfUid':_0x2254af,'desktopPathConfig':{'account_path':_0x439ab0},'clientVer':qqVersionConfigInfo[_0x25c0e4(0x198)],'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':_0x145c2b,'deviceInfo':{'guid':_0x1df916,'buildVer':qqPkgInfo[_0x25c0e4(0x195)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x318715[_0x25c0e4(0x19f)]};return Object['assign'](sessionConfig,_0x4c0b6e),_0x4c0b6e;}
|
||||
@@ -1 +1 @@
|
||||
const _0x11fdd2=_0x3fb1;function _0x3fb1(_0x358dbb,_0x3b3231){const _0x1618af=_0x1618();return _0x3fb1=function(_0x3fb116,_0x23e073){_0x3fb116=_0x3fb116-0x1b1;let _0x7f4b11=_0x1618af[_0x3fb116];return _0x7f4b11;},_0x3fb1(_0x358dbb,_0x3b3231);}(function(_0x4b2463,_0xcb9f74){const _0x322502=_0x3fb1,_0x3d4f12=_0x4b2463();while(!![]){try{const _0x3f4bb5=parseInt(_0x322502(0x1b3))/0x1+-parseInt(_0x322502(0x1c1))/0x2*(-parseInt(_0x322502(0x1bb))/0x3)+-parseInt(_0x322502(0x1b8))/0x4+parseInt(_0x322502(0x1bf))/0x5+parseInt(_0x322502(0x1c0))/0x6*(-parseInt(_0x322502(0x1be))/0x7)+parseInt(_0x322502(0x1b7))/0x8*(-parseInt(_0x322502(0x1b2))/0x9)+parseInt(_0x322502(0x1c3))/0xa;if(_0x3f4bb5===_0xcb9f74)break;else _0x3d4f12['push'](_0x3d4f12['shift']());}catch(_0x3e2f69){_0x3d4f12['push'](_0x3d4f12['shift']());}}}(_0x1618,0xc2694));import _0x301216 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x1618(){const _0x26c012=['12639820nSIBHk','INFO','getConfigPath','2151GjEnHl','1192058uqZrUg','napcat_','consoleLog','.json','36664FrgKFP','3400016tplOSG','join','DEBUG','930333TRvJTS','getConfigDir','uin','57463xzsofg','1177350WvokkW','870lxBfaQ','8kiKmlg','consoleLogLevel'];_0x1618=function(){return _0x26c012;};return _0x1618();}class Config extends ConfigBase{['fileLog']=!![];[_0x11fdd2(0x1b5)]=!![];['fileLogLevel']=LogLevel[_0x11fdd2(0x1ba)];[_0x11fdd2(0x1c2)]=LogLevel[_0x11fdd2(0x1c4)];constructor(){super();}[_0x11fdd2(0x1b1)](){const _0x4ef7fc=_0x11fdd2;return _0x301216[_0x4ef7fc(0x1b9)](this[_0x4ef7fc(0x1bc)](),_0x4ef7fc(0x1b4)+selfInfo[_0x4ef7fc(0x1bd)]+_0x4ef7fc(0x1b6));}}export const napCatConfig=new Config();
|
||||
const _0x1d72c9=_0x5a3e;(function(_0x228659,_0x18947d){const _0x8f0b92=_0x5a3e,_0xe0645c=_0x228659();while(!![]){try{const _0x5e4540=parseInt(_0x8f0b92(0x9d))/0x1+-parseInt(_0x8f0b92(0xa0))/0x2+parseInt(_0x8f0b92(0xa1))/0x3+parseInt(_0x8f0b92(0x9f))/0x4*(parseInt(_0x8f0b92(0xac))/0x5)+-parseInt(_0x8f0b92(0xad))/0x6+-parseInt(_0x8f0b92(0x9e))/0x7*(-parseInt(_0x8f0b92(0xaf))/0x8)+parseInt(_0x8f0b92(0xae))/0x9*(-parseInt(_0x8f0b92(0xa6))/0xa);if(_0x5e4540===_0x18947d)break;else _0xe0645c['push'](_0xe0645c['shift']());}catch(_0x2f1c5d){_0xe0645c['push'](_0xe0645c['shift']());}}}(_0x3d96,0xdb4b8));import _0x41ab16 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x5a3e(_0xc89e9e,_0x2ccf20){const _0x3d9695=_0x3d96();return _0x5a3e=function(_0x5a3eab,_0x3f872e){_0x5a3eab=_0x5a3eab-0x9d;let _0x52ada6=_0x3d9695[_0x5a3eab];return _0x52ada6;},_0x5a3e(_0xc89e9e,_0x2ccf20);}import{ConfigBase}from'@/common/utils/ConfigBase';function _0x3d96(){const _0x6b009b=['consoleLogLevel','89395wXibvk','5062044iFdCGa','31239gBHtkU','144SxdGDH','1004901lxNvED','557921XXJHEP','284wiMaiv','1030774XlahnW','185055yhQIMa','join','fileLogLevel','uin','INFO','4360PzGecr','DEBUG','napcat_','fileLog','getConfigDir'];_0x3d96=function(){return _0x6b009b;};return _0x3d96();}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x1d72c9(0xa9)]=!![];['consoleLog']=!![];[_0x1d72c9(0xa3)]=LogLevel[_0x1d72c9(0xa7)];[_0x1d72c9(0xab)]=LogLevel[_0x1d72c9(0xa5)];constructor(){super();}['getConfigPath'](){const _0x54ebd1=_0x1d72c9;return _0x41ab16[_0x54ebd1(0xa2)](this[_0x54ebd1(0xaa)](),_0x54ebd1(0xa8)+selfInfo[_0x54ebd1(0xa4)]+'.json');}}export const napCatConfig=new Config();
|
||||
@@ -1 +1 @@
|
||||
const _0x2f482f=_0x2624;(function(_0x1062b3,_0x340baf){const _0x121ea4=_0x2624,_0x2916c1=_0x1062b3();while(!![]){try{const _0x16ba65=parseInt(_0x121ea4(0xdb))/0x1*(-parseInt(_0x121ea4(0x105))/0x2)+-parseInt(_0x121ea4(0x9e))/0x3*(-parseInt(_0x121ea4(0xe8))/0x4)+parseInt(_0x121ea4(0xb6))/0x5*(-parseInt(_0x121ea4(0xd0))/0x6)+-parseInt(_0x121ea4(0xe9))/0x7*(parseInt(_0x121ea4(0x99))/0x8)+parseInt(_0x121ea4(0x90))/0x9*(parseInt(_0x121ea4(0xf5))/0xa)+-parseInt(_0x121ea4(0xa4))/0xb+-parseInt(_0x121ea4(0xba))/0xc*(-parseInt(_0x121ea4(0xbb))/0xd);if(_0x16ba65===_0x340baf)break;else _0x2916c1['push'](_0x2916c1['shift']());}catch(_0x64a9dd){_0x2916c1['push'](_0x2916c1['shift']());}}}(_0x5903,0xdace8));import _0x401680 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';function _0x2624(_0xef4ddb,_0x199b52){const _0x5903f8=_0x5903();return _0x2624=function(_0x2624ad,_0x21b6ac){_0x2624ad=_0x2624ad-0x8f;let _0x32d05e=_0x5903f8[_0x2624ad];return _0x32d05e;},_0x2624(_0xef4ddb,_0x199b52);}class DBUtilBase{['db'];async['init'](_0x5bc0b4){const _0x315020={'QDkiT':function(_0x5d9eea,_0xeba3f0){return _0x5d9eea(_0xeba3f0);},'yQiSG':function(_0x26720d){return _0x26720d();}};if(this['db'])return;return new Promise((_0x494d06,_0x164b4e)=>{const _0x1a3913=_0x2624,_0x55c498={'fRDKh':function(_0x297e83,_0x3ce32b){const _0x4bb567=_0x2624;return _0x315020[_0x4bb567(0xeb)](_0x297e83,_0x3ce32b);},'rxTLq':function(_0x42c8b3){const _0x583b45=_0x2624;return _0x315020[_0x583b45(0x100)](_0x42c8b3);}};this['db']=new _0x401680[(_0x1a3913(0xec))](_0x5bc0b4,_0x401680['OPEN_READWRITE']|_0x401680[_0x1a3913(0x10f)],_0x1a79b7=>{const _0x2ce8c3=_0x1a3913;if(_0x1a79b7){logError(_0x2ce8c3(0x123),_0x1a79b7),_0x55c498[_0x2ce8c3(0x10c)](_0x164b4e,_0x1a79b7);return;}this[_0x2ce8c3(0x118)](),_0x55c498[_0x2ce8c3(0xd9)](_0x494d06);});});}[_0x2f482f(0x118)](){throw new Error('Method\x20not\x20implemented.');}[_0x2f482f(0xf3)](){this['db']?.['close']();}}class DBUtil extends DBUtilBase{[_0x2f482f(0x104)]=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x3f1847=_0x2f482f,_0x39ede0={'OoSYV':function(_0x3eef39,_0x899be2){return _0x3eef39*_0x899be2;},'ZcUIZ':'清理消息缓存'};super();const _0x1ee398=_0x39ede0[_0x3f1847(0xe2)](0x3e8,0x3c)*0xa;setInterval(()=>{const _0x22b9e8=_0x3f1847,_0x4c6e5b={'Odnud':function(_0x5d71dd,_0x2ee1ae){return _0x5d71dd-_0x2ee1ae;},'NYsUA':function(_0x4f24ce,_0x3811b4){return _0x39ede0['OoSYV'](_0x4f24ce,_0x3811b4);}};logDebug(_0x39ede0[_0x22b9e8(0x11f)]),this['msgCache'][_0x22b9e8(0xc4)]((_0x2126aa,_0x526f3d)=>{const _0x55ab94=_0x22b9e8;_0x4c6e5b[_0x55ab94(0xaf)](Date[_0x55ab94(0x10b)](),_0x4c6e5b[_0x55ab94(0xad)](parseInt(_0x2126aa[_0x55ab94(0x10a)]),0x3e8))>_0x1ee398&&this['msgCache'][_0x55ab94(0xa9)](_0x526f3d);});},_0x1ee398);}async[_0x2f482f(0xfe)](_0x785538){const _0x4c5e87=_0x2f482f;await super['init'](_0x785538),this[_0x4c5e87(0x98)]=await this[_0x4c5e87(0xe3)]();}[_0x2f482f(0x118)](){const _0x1900ec=_0x2f482f,_0x104df8={'LIiOo':function(_0x2d6cac,_0x1cd6a7,_0x1c5452){return _0x2d6cac(_0x1cd6a7,_0x1c5452);},'IUrLg':_0x1900ec(0xf6),'FSDRv':_0x1900ec(0xc6)},_0x16d2bc=_0x1900ec(0xf2);this['db'][_0x1900ec(0xd5)](_0x16d2bc,function(_0x400e38){const _0x5232cd=_0x1900ec;_0x400e38&&logError(_0x5232cd(0x10e),_0x400e38[_0x5232cd(0xc8)]);});const _0x21f78b='\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)';this['db'][_0x1900ec(0xd5)](_0x21f78b,function(_0xb9376e){const _0x830fd7=_0x1900ec;_0xb9376e&&_0x104df8[_0x830fd7(0xd7)](logError,_0x104df8[_0x830fd7(0xf4)],_0xb9376e);});const _0x38e061=_0x1900ec(0x9a);this['db'][_0x1900ec(0xd5)](_0x38e061,function(_0x491f4b){const _0x80f44c=_0x1900ec;_0x491f4b&&_0x104df8[_0x80f44c(0xd7)](logError,_0x104df8[_0x80f44c(0xfd)],_0x491f4b);});}async[_0x2f482f(0xe3)](){const _0x48a68b={'xxUGz':'Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','NcJPe':function(_0x21e3cf,_0x1Line truncated
|
||||
function _0x3f75(_0x10c9ac,_0x119a0a){const _0x53de9f=_0x53de();return _0x3f75=function(_0x3f75e7,_0xf9aa38){_0x3f75e7=_0x3f75e7-0x1b5;let _0x11553c=_0x53de9f[_0x3f75e7];return _0x11553c;},_0x3f75(_0x10c9ac,_0x119a0a);}const _0x1cb453=_0x3f75;(function(_0x3dbb71,_0x5cb82b){const _0x28d994=_0x3f75,_0x3b966d=_0x3dbb71();while(!![]){try{const _0xe03b50=parseInt(_0x28d994(0x1cf))/0x1+parseInt(_0x28d994(0x1be))/0x2+parseInt(_0x28d994(0x1df))/0x3+parseInt(_0x28d994(0x222))/0x4*(-parseInt(_0x28d994(0x1e2))/0x5)+-parseInt(_0x28d994(0x1c8))/0x6*(parseInt(_0x28d994(0x214))/0x7)+-parseInt(_0x28d994(0x1d6))/0x8+parseInt(_0x28d994(0x1e7))/0x9*(-parseInt(_0x28d994(0x1d3))/0xa);if(_0xe03b50===_0x5cb82b)break;else _0x3b966d['push'](_0x3b966d['shift']());}catch(_0x4ba01e){_0x3b966d['push'](_0x3b966d['shift']());}}}(_0x53de,0x8ef58));import _0x342d08 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x53de(){const _0x4093b0=['maxId','run','uKMcX','\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)','msgId','kAOlP','get','hZMjo','JeMbv','216rydjmc','uid','uin','bkcXt','getFileCache','path','globalMsgShortId','868978rPYUNl','forEach','Database','JMssl','731560WpULUV','viitG','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','3924120FpkeEw','getReceivedTempUinMap','msgList','updateMsg','getMsgBySeq','yXYsU','NZWKB','CgppU','tVLvl','3087438wiKoyb','Could\x20not\x20create\x20table\x20temp_uins','Could\x20not\x20create\x20table\x20files','13865zpfhvf','url','msgSeq','LHINQ','shortId','18ZgcNlk','YYGXn','db\x20could\x20not\x20get\x20temp\x20uin\x20map','RLzpA','chatType','elementType','aPvrm','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','getMsgsByMsgId','Could\x20not\x20get\x20msg','getFileCacheByName','ARDte','QmQxA','LeGtQ','size','uuid','msgCache','db\x20could\x20not\x20add\x20msg','uBwZM','element','stringify','getMsgByLongId','MZFwJ','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','GkXXT','getCurrentMaxShortId','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','mLBks','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','close','db\x20could\x20not\x20get\x20file\x20cache','has','更新消息,\x20shortId:','zjSCx',',\x20seq:\x20','addTempUin','longId','rLDgN','updateMsg\x20db\x20error','jINmU','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','addMsg','Method\x20not\x20implemented.','errno','RRAiU','119735vqBRwU','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','OUZfb','Acieg','catch','OPEN_CREATE','stack','xHLtb','Could\x20not\x20create\x20table\x20msgs','db\x20getMsgByLongId\x20error','gyfyM','\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)','getMsgByShortId','DlbRo','1336jngoXb','OPEN_READWRITE','peerUid','LUKzk','hnMPL','prepare','saqGB','getFileCacheByUuid','SGiwz','记录消息到数据库,\x20消息长id:\x20','SVmuw','set','getMsg','Kudgt','init','updateFileCache','elementId','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id',',\x20短id:\x20','ayYRG','then','JCgpK','db\x20could\x20not\x20update\x20file\x20cache','hpFXq','HOmge','EfnwN','TOZMS','getUidByTempUin','msgTime','createTable','oPipc','parse','SxXPE','1732450daWBpZ'];_0x53de=function(){return _0x4093b0;};return _0x53de();}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x1cb453(0x230)](_0x513453){const _0x4b4639={'OUZfb':function(_0x3deb49,_0x1b64a0,_0x5252c4){return _0x3deb49(_0x1b64a0,_0x5252c4);},'xHLtb':'Could\x20not\x20connect\x20toLine truncated
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
interface ServerRkeyData {
|
||||
group_rkey: string;
|
||||
private_rkey: string;
|
||||
expired_time: number;
|
||||
}
|
||||
declare class RkeyManager {
|
||||
serverUrl: string;
|
||||
private rkeyData;
|
||||
constructor(serverUrl: string);
|
||||
getRkey(): Promise<ServerRkeyData>;
|
||||
isExpired(): boolean;
|
||||
refreshRkey(): Promise<any>;
|
||||
}
|
||||
export declare const rkeyManager: RkeyManager;
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
function _0x4993(_0x49e763,_0x151811){const _0x48a667=_0x48a6();return _0x4993=function(_0x49930f,_0x7be9f6){_0x49930f=_0x49930f-0x19f;let _0x33f883=_0x48a667[_0x49930f];return _0x33f883;},_0x4993(_0x49e763,_0x151811);}function _0x48a6(){const _0x19d6fb=['serverUrl','WQsbD','tcYnj','http://napcat-sign.wumiao.wang:2082/rkey','2170972WSKfPR','UdUOx','HttpGetJson','isExpired','expired_time','4457684pNuTIl','3NcASFE','3946014NkvrkA','getTime','1112eOyXOz','rkeyData','350661ZGGSSr','refreshRkey','获取rkey失败','8622810WCvQnE','52101eqyels','10026460FicYDH','5EyeCqz'];_0x48a6=function(){return _0x19d6fb;};return _0x48a6();}const _0x15129b=_0x4993;(function(_0x27b228,_0x1b2c9c){const _0x377017=_0x4993,_0x96990d=_0x27b228();while(!![]){try{const _0x44992b=parseInt(_0x377017(0x1a2))/0x1+-parseInt(_0x377017(0x1ad))/0x2+-parseInt(_0x377017(0x1b3))/0x3*(-parseInt(_0x377017(0x1b2))/0x4)+-parseInt(_0x377017(0x1a8))/0x5*(parseInt(_0x377017(0x1b4))/0x6)+parseInt(_0x377017(0x1a5))/0x7+-parseInt(_0x377017(0x1a0))/0x8*(-parseInt(_0x377017(0x1a6))/0x9)+-parseInt(_0x377017(0x1a7))/0xa;if(_0x44992b===_0x1b2c9c)break;else _0x96990d['push'](_0x96990d['shift']());}catch(_0x526571){_0x96990d['push'](_0x96990d['shift']());}}}(_0x48a6,0xb8846));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x15129b(0x1a9)]='';[_0x15129b(0x1a1)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x4e6bb7){const _0x1a3590=_0x15129b;this[_0x1a3590(0x1a9)]=_0x4e6bb7;}async['getRkey'](){const _0x43ce08=_0x15129b,_0x1d29e9={'WQsbD':function(_0x428976,_0x3ce114,_0x26862b){return _0x428976(_0x3ce114,_0x26862b);}};if(this[_0x43ce08(0x1b0)]())try{await this[_0x43ce08(0x1a3)]();}catch(_0x3a0855){_0x1d29e9[_0x43ce08(0x1aa)](logError,_0x43ce08(0x1a4),_0x3a0855);}return this['rkeyData'];}['isExpired'](){const _0x2ba6ad=_0x15129b,_0x586806={'tcYnj':function(_0x3a3226,_0x31da92){return _0x3a3226/_0x31da92;},'UdUOx':function(_0x2f5183,_0x357620){return _0x2f5183>_0x357620;}},_0x4a3ca7=_0x586806[_0x2ba6ad(0x1ab)](new Date()[_0x2ba6ad(0x19f)](),0x3e8);return _0x586806[_0x2ba6ad(0x1ae)](_0x4a3ca7,this[_0x2ba6ad(0x1a1)][_0x2ba6ad(0x1b1)]);}async[_0x15129b(0x1a3)](){const _0x47fd6d=_0x15129b;this[_0x47fd6d(0x1a1)]=await RequestUtil[_0x47fd6d(0x1af)](this[_0x47fd6d(0x1a9)],'GET');}}export const rkeyManager=new RkeyManager(_0x15129b(0x1ac));
|
||||
Vendored
+45
-43
@@ -7,50 +7,52 @@ import { NodeIKernelRobotService } from './services/NodeIKernelRobotService';
|
||||
export interface NodeQQNTWrapperUtil {
|
||||
new (): NodeQQNTWrapperUtil;
|
||||
getNTUserDataInfoConfig(): string;
|
||||
emptyWorkingSet(n: 38704): void;
|
||||
getSsoCmdOfOidbReq(...args: unknown[]): unknown;
|
||||
emptyWorkingSet(n: number): void;
|
||||
getSsoCmdOfOidbReq(arg1: number, arg2: number): unknown;
|
||||
getSsoBufferOfOidbReq(...args: unknown[]): unknown;
|
||||
getOidbRspInfo(...args: unknown[]): unknown;
|
||||
getFileSize(...args: unknown[]): Promise<number>;
|
||||
genFileMd5Buf(...args: unknown[]): unknown;
|
||||
genFileMd5Hex(...args: unknown[]): unknown;
|
||||
genFileShaBuf(...args: unknown[]): unknown;
|
||||
genFileCumulateSha1(...args: unknown[]): unknown;
|
||||
genFileShaHex(...args: unknown[]): unknown;
|
||||
fileIsExist(...args: unknown[]): unknown;
|
||||
startTrace(...args: unknown[]): unknown;
|
||||
copyFile(...args: unknown[]): unknown;
|
||||
genFileShaAndMd5Hex(...args: unknown[]): unknown;
|
||||
setTraceInfo(...args: unknown[]): unknown;
|
||||
encodeOffLine(...args: unknown[]): unknown;
|
||||
decodeOffLine(...args: unknown[]): unknown;
|
||||
DecoderRecentInfo(...args: unknown[]): unknown;
|
||||
getPinyin(...args: unknown[]): unknown;
|
||||
matchInPinyin(...args: unknown[]): unknown;
|
||||
makeDirByPath(...args: unknown[]): unknown;
|
||||
emptyWorkingSet(...args: unknown[]): unknown;
|
||||
runProcess(...args: unknown[]): unknown;
|
||||
runProcessArgs(...args: unknown[]): unknown;
|
||||
calcThumbSize(...args: unknown[]): unknown;
|
||||
fullWordToHalfWord(...args: unknown[]): unknown;
|
||||
getNTUserDataInfoConfig(...args: unknown[]): unknown;
|
||||
pathIsReadableAndWriteable(...args: unknown[]): unknown;
|
||||
resetUserDataSavePathToDocument(...args: unknown[]): unknown;
|
||||
getSoBuildInfo(...args: unknown[]): unknown;
|
||||
registerCountInstruments(...args: unknown[]): unknown;
|
||||
registerValueInstruments(...args: unknown[]): unknown;
|
||||
registerValueInstrumentsWithBoundary(...args: unknown[]): unknown;
|
||||
reportCountIndicators(...args: unknown[]): unknown;
|
||||
reportValueIndicators(...args: unknown[]): unknown;
|
||||
checkNewUserDataSaveDirAvailable(...args: unknown[]): unknown;
|
||||
copyUserData(...args: unknown[]): unknown;
|
||||
setUserDataSaveDirectory(...args: unknown[]): unknown;
|
||||
hasOtherRunningQQProcess(...args: unknown[]): unknown;
|
||||
quitAllRunningQQProcess(...args: unknown[]): unknown;
|
||||
checkNvidiaConfig(...args: unknown[]): unknown;
|
||||
repairNvidiaConfig(...args: unknown[]): unknown;
|
||||
getNvidiaDriverVersion(...args: unknown[]): unknown;
|
||||
isNull(...args: unknown[]): unknown;
|
||||
getOidbRspInfo(arg: string): unknown;
|
||||
getFileSize(path: string): Promise<number>;
|
||||
genFileMd5Buf(arg: string): unknown;
|
||||
genFileMd5Hex(path: string): unknown;
|
||||
genFileShaBuf(path: string): unknown;
|
||||
genFileCumulateSha1(path: string): unknown;
|
||||
genFileShaHex(path: string): unknown;
|
||||
fileIsExist(path: string): unknown;
|
||||
startTrace(path: string): unknown;
|
||||
copyFile(src: string, dst: string): unknown;
|
||||
genFileShaAndMd5Hex(path: string, unknown: number): unknown;
|
||||
setTraceInfo(unknown: Object): unknown;
|
||||
encodeOffLine(unknown: Object): unknown;
|
||||
decodeOffLine(arg: string): unknown;
|
||||
DecoderRecentInfo(arg: string): unknown;
|
||||
getPinyin(arg0: string, arg1: boolean): unknown;
|
||||
matchInPinyin(arg0: any[], arg1: string): unknown;
|
||||
makeDirByPath(arg0: string): unknown;
|
||||
emptyWorkingSet(arg0: number): unknown;
|
||||
runProcess(arg0: string, arg1: boolean): unknown;
|
||||
runProcessArgs(arg0: string, arg1: {
|
||||
[key: string]: string;
|
||||
}, arg2: boolean): unknown;
|
||||
calcThumbSize(arg0: number, arg1: number, arg2: Object): unknown;
|
||||
fullWordToHalfWord(arg0: string): unknown;
|
||||
getNTUserDataInfoConfig(): unknown;
|
||||
pathIsReadableAndWriteable(path: string): unknown;
|
||||
resetUserDataSavePathToDocument(): unknown;
|
||||
getSoBuildInfo(): any;
|
||||
registerCountInstruments(arg0: string, arg1: string[], arg2: number, arg3: number): unknown;
|
||||
registerValueInstruments(arg0: string, arg1: string[], arg2: number, arg3: number): unknown;
|
||||
registerValueInstrumentsWithBoundary(arg0: string, arg1: unknown, arg2: unknown, arg3: number, arg4: number): unknown;
|
||||
reportCountIndicators(arg0: string, arg1: Map<unknown, unknown>, arg2: string, arg3: number, arg4: boolean): unknown;
|
||||
reportValueIndicators(arg0: string, arg1: Map<unknown, unknown>, arg2: string, arg3: boolean, arg4: number): unknown;
|
||||
checkNewUserDataSaveDirAvailable(arg0: string): unknown;
|
||||
copyUserData(arg0: string, arg1: string): Promise<any>;
|
||||
setUserDataSaveDirectory(arg0: string): Promise<any>;
|
||||
hasOtherRunningQQProcess(): boolean;
|
||||
quitAllRunningQQProcess(arg: boolean): unknown;
|
||||
checkNvidiaConfig(): unknown;
|
||||
repairNvidiaConfig(): unknown;
|
||||
getNvidiaDriverVersion(): unknown;
|
||||
isNull(): unknown;
|
||||
}
|
||||
export interface NodeIQQNTWrapperSession {
|
||||
new (): NodeIQQNTWrapperSession;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x5383e6=_0x35da;(function(_0x21936b,_0xba324a){const _0x586691=_0x35da,_0x441b87=_0x21936b();while(!![]){try{const _0x25ff3e=-parseInt(_0x586691(0x1ef))/0x1+parseInt(_0x586691(0x1eb))/0x2*(-parseInt(_0x586691(0x1ea))/0x3)+-parseInt(_0x586691(0x1f4))/0x4*(-parseInt(_0x586691(0x1ec))/0x5)+-parseInt(_0x586691(0x1f5))/0x6+-parseInt(_0x586691(0x1f3))/0x7+-parseInt(_0x586691(0x1f1))/0x8+parseInt(_0x586691(0x1f0))/0x9*(parseInt(_0x586691(0x1e9))/0xa);if(_0x25ff3e===_0xba324a)break;else _0x441b87['push'](_0x441b87['shift']());}catch(_0x1e2f58){_0x441b87['push'](_0x441b87['shift']());}}}(_0xd806,0x8756e));import _0x1bb093 from'node:path';import _0x3ffe57 from'node:fs';function _0x35da(_0x12008e,_0x56a903){const _0xd80675=_0xd806();return _0x35da=function(_0x35da7f,_0x4dc960){_0x35da7f=_0x35da7f-0x1e9;let _0x5808b0=_0xd80675[_0x35da7f];return _0x5808b0;},_0x35da(_0x12008e,_0x56a903);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x1bb093[_0x5383e6(0x1ee)](_0x1bb093['dirname'](process[_0x5383e6(0x1f6)]),_0x5383e6(0x1fa));!_0x3ffe57[_0x5383e6(0x1ed)](wrapperNodePath)&&(wrapperNodePath=_0x1bb093[_0x5383e6(0x1f2)](_0x1bb093[_0x5383e6(0x1f7)](process['execPath']),_0x5383e6(0x1f8)+qqVersionConfigInfo['curVersion']+_0x5383e6(0x1f9)));function _0xd806(){const _0x91e217=['8160152dCBymS','join','4129356dscXay','826888XfCJTK','3289332RRVdbG','execPath','dirname','resources/app/versions/','/wrapper.node','./resources/app/wrapper.node','8379610VfYEeD','1262589obQEEs','2ZQaAaf','15XMwLKh','existsSync','resolve','687kjLVzs','27UGLRsK'];_0xd806=function(){return _0x91e217;};return _0xd806();}const QQWrapper=require(wrapperNodePath);export default QQWrapper;
|
||||
function _0x3904(_0x4786c6,_0x4828fb){const _0x135136=_0x1351();return _0x3904=function(_0x39049a,_0x25513f){_0x39049a=_0x39049a-0x1f1;let _0x23717c=_0x135136[_0x39049a];return _0x23717c;},_0x3904(_0x4786c6,_0x4828fb);}const _0x1b66da=_0x3904;function _0x1351(){const _0x6b199d=['4698250hsICPp','./resources/app/wrapper.node','default','334416ioZYBW','replace','dirname','\x22);\x0aexports\x20=\x20module.exports;\x0a','writeFileSync','join','resolve','execPath','8QXHMGv','6CIYwEc','48398240yQiGGX','1411565HuzEpq','9yGPQpl','2637585aCfSaW','894372FtwSoq','existsSync','8873417olLTYC','WrapperLoader.cjs','/wrapper.node','12MPijNi'];_0x1351=function(){return _0x6b199d;};return _0x1351();}(function(_0x2f5c5c,_0xa61845){const _0x5e23da=_0x3904,_0x2f18a6=_0x2f5c5c();while(!![]){try{const _0x1d76ef=-parseInt(_0x5e23da(0x202))/0x1+-parseInt(_0x5e23da(0x1f7))/0x2+parseInt(_0x5e23da(0x1f3))/0x3*(-parseInt(_0x5e23da(0x205))/0x4)+parseInt(_0x5e23da(0x204))/0x5*(parseInt(_0x5e23da(0x200))/0x6)+-parseInt(_0x5e23da(0x207))/0x7*(parseInt(_0x5e23da(0x1ff))/0x8)+-parseInt(_0x5e23da(0x203))/0x9*(parseInt(_0x5e23da(0x1f4))/0xa)+parseInt(_0x5e23da(0x201))/0xb;if(_0x1d76ef===_0xa61845)break;else _0x2f18a6['push'](_0x2f18a6['shift']());}catch(_0x16950b){_0x2f18a6['push'](_0x2f18a6['shift']());}}}(_0x1351,0xaefd4));import _0x5ee2ec from'node:path';import _0x3c334a from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename);let wrapperNodePath=_0x5ee2ec[_0x1b66da(0x1fd)](_0x5ee2ec['dirname'](process[_0x1b66da(0x1fe)]),_0x1b66da(0x1f5));!_0x3c334a[_0x1b66da(0x206)](wrapperNodePath)&&(wrapperNodePath=_0x5ee2ec[_0x1b66da(0x1fc)](_0x5ee2ec[_0x1b66da(0x1f9)](process[_0x1b66da(0x1fe)]),'resources/app/versions/'+qqVersionConfigInfo['curVersion']+_0x1b66da(0x1f2)));let WrapperLoader=_0x5ee2ec[_0x1b66da(0x1fc)](__dirname,_0x1b66da(0x1f1));_0x3c334a[_0x1b66da(0x1fb)](WrapperLoader,'\x0amodule.exports\x20=\x20require(\x22'+wrapperNodePath[_0x1b66da(0x1f8)](/\\/g,'\x5c\x5c')+_0x1b66da(0x1fa));const QQWrapper=(await import('file://'+WrapperLoader))[_0x1b66da(0x1f6)];export default QQWrapper;
|
||||
Loaded 100 of 201 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user