mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Compare commits
103 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ddcbe78a01 | ||
![]() |
00b6c964e2 | ||
![]() |
d7d2b06ecc | ||
![]() |
fafc59360d | ||
![]() |
19e105785e | ||
![]() |
b87ac09e43 | ||
![]() |
af9092d7c7 | ||
![]() |
24a1ffd652 | ||
![]() |
662813cc58 | ||
![]() |
d890b78290 | ||
![]() |
58747d7d4a | ||
![]() |
0773a4f39c | ||
![]() |
66cc7f8a1f | ||
![]() |
01ab40bf4a | ||
![]() |
4c09147fd1 | ||
![]() |
f9f426d788 | ||
![]() |
ff8fa1bf31 | ||
![]() |
59f99e4f6a | ||
![]() |
7449ce9c3b | ||
![]() |
f6bc8f0a1f | ||
![]() |
4d10b8cdee | ||
![]() |
5a61c5de09 | ||
![]() |
f84d0db811 | ||
![]() |
36ce3b08fe | ||
![]() |
da8ea5b545 | ||
![]() |
fad3dbf4cd | ||
![]() |
034d12c347 | ||
![]() |
c94dbf1d9a | ||
![]() |
e516687a9e | ||
![]() |
4a2f77b0a6 | ||
![]() |
7b29ecba71 | ||
![]() |
11241b8e07 | ||
![]() |
52bbd1f20b | ||
![]() |
4044750515 | ||
![]() |
b670c546b9 | ||
![]() |
f37bbf93cb | ||
![]() |
87311ab41a | ||
![]() |
ecb4d1845c | ||
![]() |
35c232ab25 | ||
![]() |
df0be2e251 | ||
![]() |
871b3a102b | ||
![]() |
02299e3892 | ||
![]() |
6af4d6f5b8 | ||
![]() |
4fb5700367 | ||
![]() |
8579276381 | ||
![]() |
7ba60b22c5 | ||
![]() |
031932f41c | ||
![]() |
079d0a89b1 | ||
![]() |
c4fdce6d64 | ||
![]() |
5604c2b29f | ||
![]() |
74b5ab2b47 | ||
![]() |
c29cbfe123 | ||
![]() |
6fe5cb1ffd | ||
![]() |
7edd5a7a8e | ||
![]() |
c1edc1b99b | ||
![]() |
4d1d890f72 | ||
![]() |
fe0f82fa2b | ||
![]() |
84083a65a8 | ||
![]() |
fc91c6bc08 | ||
![]() |
09120171ba | ||
![]() |
a362f920dc | ||
![]() |
9d7729f548 | ||
![]() |
ed56e177cf | ||
![]() |
9db28bd502 | ||
![]() |
aded70eb2e | ||
![]() |
dfbad85465 | ||
![]() |
52076fe182 | ||
![]() |
5575c3cb13 | ||
![]() |
637d32efff | ||
![]() |
fd54658e53 | ||
![]() |
2f39a8d76e | ||
![]() |
6a3e793500 | ||
![]() |
3b3ffeda6b | ||
![]() |
f7d92a3b11 | ||
![]() |
d9d9ba8bf1 | ||
![]() |
f5d9090183 | ||
![]() |
705ecd1ef1 | ||
![]() |
08b5266a86 | ||
![]() |
ecc4846ba8 | ||
![]() |
4aab705d11 | ||
![]() |
4615a68bcc | ||
![]() |
bf6934e8ac | ||
![]() |
af8c304bd4 | ||
![]() |
51dac5a5a8 | ||
![]() |
56463d9e36 | ||
![]() |
a6a339dc59 | ||
![]() |
8423304ab5 | ||
![]() |
bb7408dbe9 | ||
![]() |
7eff4dcf02 | ||
![]() |
d7ee3fec3d | ||
![]() |
5e026a3e8d | ||
![]() |
d5e117b89f | ||
![]() |
c87a5501df | ||
![]() |
7584ebba0b | ||
![]() |
66075e3960 | ||
![]() |
193ba781a0 | ||
![]() |
3e5dd64acc | ||
![]() |
d66ab7d389 | ||
![]() |
d2e6b27ecd | ||
![]() |
0588541357 | ||
![]() |
096ea84af6 | ||
![]() |
04d0cfd510 | ||
![]() |
7653f969ec |
@@ -3,7 +3,7 @@ module.exports = {
|
||||
'es2021': true,
|
||||
'node': true
|
||||
},
|
||||
'ignorePatterns': ['src/core/'],
|
||||
'ignorePatterns': ['src/core/', 'src/core.lib/'],
|
||||
'extends': [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended'
|
||||
|
81
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
81
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
name: Bug 反馈
|
||||
description: 报告可能的 NapCat 异常行为
|
||||
title: '[BUG] '
|
||||
labels: bug
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
欢迎来到 NapCat 的 Issue Tracker!请填写以下表格来提交 Bug。
|
||||
在提交新的 Bug 反馈前,请确保您:
|
||||
* 已经搜索了现有的 issues,并且没有找到可以解决您问题的方法
|
||||
* 不与现有的某一 issue 重复
|
||||
- type: input
|
||||
id: system-version
|
||||
attributes:
|
||||
label: 系统版本
|
||||
description: 运行 QQNT 的系统版本
|
||||
placeholder: Windows 10 Pro Workstation 22H2
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: qqnt-version
|
||||
attributes:
|
||||
label: QQNT 版本
|
||||
description: 可在 QQNT 的「关于」的设置页中找到
|
||||
placeholder: 9.9.7-21804
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: napcat-version
|
||||
attributes:
|
||||
label: NapCat 版本
|
||||
description: 可在 LiteLoaderQQNT 的设置页或是 QQNT 的设置页侧栏中找到
|
||||
placeholder: 1.0.0
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: onebot-client-version
|
||||
attributes:
|
||||
label: OneBot 客户端
|
||||
description: 连接至 NapCat 的客户端版本信息
|
||||
placeholder: Overflow 2.16.0-2cf7991-SNAPSHOT
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: 发生了什么?
|
||||
description: 填写你认为的 NapCat 的不正常行为
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: how-reproduce
|
||||
attributes:
|
||||
label: 如何复现
|
||||
description: 填写应当如何操作才能触发这个不正常行为
|
||||
placeholder: |
|
||||
1. xxx
|
||||
2. xxx
|
||||
3. xxx
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: what-expected
|
||||
attributes:
|
||||
label: 期望的结果?
|
||||
description: 填写你认为 NapCat 应当执行的正常行为
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: napcat-log
|
||||
attributes:
|
||||
label: NapCat 运行日志
|
||||
description: 粘贴相关日志内容到此处
|
||||
render: shell
|
||||
- type: textarea
|
||||
id: onebot-client-log
|
||||
attributes:
|
||||
label: OneBot 客户端运行日志
|
||||
description: 粘贴 OneBot 客户端的相关日志内容到此处
|
||||
render: shell
|
71
.github/workflows/build.yml
vendored
Normal file
71
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
name: "Build"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
if: ${{ startsWith(github.event.head_commit.message, 'build:') }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target_platform: [linux,darwin]
|
||||
target_arch: [x64, arm64]
|
||||
steps:
|
||||
- name: Clone Main Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'NapNeko/NapCatQQ'
|
||||
submodules: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Use Node.js 20.X
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
- name: Build NuCat Linux
|
||||
run: |
|
||||
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
npm run build:prod
|
||||
cd dist
|
||||
npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
cd ..
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }}
|
||||
path: dist
|
||||
build-win32:
|
||||
if: ${{ startsWith(github.event.head_commit.message, 'build:') }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target_platform: [win32]
|
||||
target_arch: [x64]
|
||||
steps:
|
||||
- name: Clone Main Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'NapNeko/NapCatQQ'
|
||||
submodules: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Use Node.js 20.X
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
- name: Build NuCat Linux
|
||||
run: |
|
||||
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
npm run build:prod
|
||||
cd dist
|
||||
npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
cd ..
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }}
|
||||
path: dist
|
69
.github/workflows/release.yml
vendored
69
.github/workflows/release.yml
vendored
@@ -1,11 +1,37 @@
|
||||
name: "release"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
permissions: write-all
|
||||
|
||||
jobs:
|
||||
check-version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract version from tag
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Use Node.js 20.X
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: Check Version
|
||||
run: |
|
||||
ls
|
||||
node ./script/checkVersion.cjs
|
||||
sh ./checkVersion.sh
|
||||
build-linux:
|
||||
needs: [check-version]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -16,13 +42,15 @@ jobs:
|
||||
- name: Clone Main Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'NapNeko/NapCat'
|
||||
repository: 'NapNeko/NapCatQQ'
|
||||
submodules: true
|
||||
ref: main
|
||||
token: ${{ secrets.NAPCAT_BUILD }}
|
||||
- name: Use Node.js 20.X
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
node-version: 20.x
|
||||
|
||||
- name: Build NuCat Linux
|
||||
run: |
|
||||
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
@@ -37,6 +65,7 @@ jobs:
|
||||
path: dist
|
||||
build-win32:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [check-version]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -46,13 +75,16 @@ jobs:
|
||||
- name: Clone Main Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'NapNeko/NapCat'
|
||||
repository: 'NapNeko/NapCatQQ'
|
||||
submodules: true
|
||||
ref: main
|
||||
token: ${{ secrets.NAPCAT_BUILD }}
|
||||
|
||||
- name: Use Node.js 20.X
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
|
||||
- name: Build NuCat Linux
|
||||
run: |
|
||||
npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
@@ -60,8 +92,39 @@ jobs:
|
||||
cd dist
|
||||
npm i --omit=dev --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}
|
||||
cd ..
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: NapCat.${{ matrix.target_platform }}.${{ matrix.target_arch }}
|
||||
path: dist
|
||||
|
||||
release-napcat:
|
||||
needs: [build-win32,build-linux]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download All Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
|
||||
- name: Compress subdirectories
|
||||
run: |
|
||||
for dir in */; do
|
||||
base=$(basename "$dir")
|
||||
zip -r "${base}.zip" "$dir"
|
||||
done
|
||||
|
||||
- name: Extract version from tag
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Create Release Draft and Upload Artifacts
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
name: NapCat V${{ env.VERSION }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: |
|
||||
NapCat.win32.x64.zip
|
||||
NapCat.linux.x64.zip
|
||||
NapCat.linux.arm64.zip
|
||||
# NapCat.darwin.x64.zip
|
||||
# NapCat.darwin.arm64.zip
|
||||
draft: true
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,3 +14,4 @@ src/core.lib/common/
|
||||
|
||||
# Build
|
||||
*.db
|
||||
checkVersion.sh
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 NapCatQQ
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
21
README.md
21
README.md
@@ -10,13 +10,15 @@ NapCatQQ(瞌睡猫QQ,不准叫我NCQQ!),像睡着了一样在后台低
|
||||
|
||||
由于 Linux 上的 QQ 图形依赖较多,会导致内存占用小高,大约 **100+M**,目前正在研究如何优化
|
||||
|
||||
具体占用会因人而异,QQ 群、好友越多占用越高
|
||||
|
||||
## 下载
|
||||
|
||||
前往 Release 页面下载最新版本
|
||||
|
||||
## 启动
|
||||
|
||||
NapCat 是基于 官方NTQQ 实现的Bot框架,因此先需要安装官方QQ
|
||||
NapCat 是基于 官方NTQQ 实现的Bot框架,因此先需要安装官方QQ,**注意同个账号不能同时登录原版 QQ 和 NapCatQQ**
|
||||
|
||||
*如果没有安装 QQ 请往后翻查看安装方法*
|
||||
|
||||
@@ -26,7 +28,7 @@ json 配置内容参数解释:
|
||||
|
||||
```json5
|
||||
{
|
||||
// 是否启用http服务,如果启用,可以通过http接口发送消息
|
||||
// 是否启用http服务, true为启动,false为禁用,如果启用,可以通过http接口发送消息
|
||||
"enableHttp": false,
|
||||
// http服务端口
|
||||
"httpPort": 3000,
|
||||
@@ -42,6 +44,8 @@ json 配置内容参数解释:
|
||||
"enableHttpPost": false,
|
||||
// http上报地址, 如["http://127.0.0.1:8080/onebot/v11/http"]
|
||||
"httpPostUrls": [],
|
||||
// 是否启用http心跳
|
||||
"enableHttpHeart": false,
|
||||
// http上报密钥,可为空
|
||||
"httpSecret": "",
|
||||
// 消息上报格式,array为消息组,string为cq码字符串
|
||||
@@ -62,7 +66,9 @@ json 配置内容参数解释:
|
||||
|
||||
### Windows 启动
|
||||
|
||||
运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat_utf8.ps1`
|
||||
运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat-utf8.ps1` 或 `napcat-utf8.bat`
|
||||
|
||||
*如果出现 powershell 运行不了,以管理员身份打开 powershell,输入 `Set-ExecutionPolicy RemoteSigned`*
|
||||
|
||||
### Linux 启动
|
||||
|
||||
@@ -80,17 +86,13 @@ json 配置内容参数解释:
|
||||
|
||||
目前还在研究怎么精简安装,暂时只能安装官方QQ整体依赖
|
||||
|
||||
```bash
|
||||
下载QQ的deb包
|
||||
下载QQ
|
||||
|
||||
[deb x86版本](https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240403_amd64_01.deb)
|
||||
[deb arm版本](https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240403_arm64_01.deb)
|
||||
|
||||
[rpm x86版本](https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240403_x86_64_01.rpm)
|
||||
[rpm arm版本](https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.7_240403_aarch64_01.rpm)
|
||||
```
|
||||
|
||||
```bash
|
||||
|
||||
```bash
|
||||
sudo apt install ./qq.deb
|
||||
@@ -141,6 +143,9 @@ $env:FFMPEG_PATH="d:\ffmpeg\bin\ffmpeg.exe"
|
||||
|
||||
不用管,这是正常现象,是因为 QQ 本身的问题,不影响使用
|
||||
|
||||
## API 文档
|
||||
|
||||
参考 [LLOneBot](https://llonebot.github.io/zh-CN/develop/api) 的文档
|
||||
|
||||
<!--
|
||||
QQ群:545402644
|
||||
|
@@ -2,7 +2,7 @@
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"version": "1.1.0",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
@@ -21,6 +21,7 @@
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
@@ -47,6 +48,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
"file-type": "^19.0.0",
|
||||
"fluent-ffmpeg": "^2.1.2",
|
||||
|
13
script/checkVersion.cjs
Normal file
13
script/checkVersion.cjs
Normal file
@@ -0,0 +1,13 @@
|
||||
let fs = require("fs");
|
||||
let 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.nanaeo.cn\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main")
|
||||
}
|
21
script/gen-version.ts
Normal file
21
script/gen-version.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import { version } from '../src/onebot11/version'
|
||||
|
||||
const manifestPath = path.join(__dirname, '../package.json')
|
||||
|
||||
function readManifest (): any {
|
||||
if (fs.existsSync(manifestPath)) {
|
||||
return JSON.parse(fs.readFileSync(manifestPath, 'utf-8'))
|
||||
}
|
||||
}
|
||||
|
||||
function writeManifest (manifest: any) {
|
||||
fs.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2))
|
||||
}
|
||||
|
||||
const manifest = readManifest()
|
||||
if (version !== manifest.version) {
|
||||
manifest.version = version
|
||||
writeManifest(manifest)
|
||||
}
|
3
script/napcat-custom.bat
Normal file
3
script/napcat-custom.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
chcp 65001
|
||||
set ELECTRON_RUN_AS_NODE=1
|
||||
"H:\Program Files\QQNT最新版\QQ.exe" %~dp0/napcat.cjs %*
|
@@ -2,21 +2,17 @@
|
||||
setlocal enabledelayedexpansion
|
||||
chcp 65001
|
||||
:loop_read
|
||||
for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%a"
|
||||
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%b"
|
||||
goto :napcat_boot
|
||||
)
|
||||
|
||||
goto :loop_read
|
||||
|
||||
:napcat_boot
|
||||
for %%a in ("!RetString!") do (
|
||||
set "pathWithoutUninstall=%%~dpa"
|
||||
set "fileName=%%~na"
|
||||
set "extension=%%~xa"
|
||||
)
|
||||
|
||||
set "QQPath=!pathWithoutUninstall!QQ.exe"
|
||||
set ELECTRON_RUN_AS_NODE=1
|
||||
echo !QQPath!
|
||||
!QQPath! ./napcat.cjs
|
||||
"!QQPath!" ./napcat.cjs %*
|
||||
|
@@ -1,22 +1,17 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
:loop_read
|
||||
for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%a"
|
||||
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
||||
set "RetString=%%b"
|
||||
goto :napcat_boot
|
||||
)
|
||||
|
||||
goto :loop_read
|
||||
|
||||
:napcat_boot
|
||||
for %%a in ("!RetString!") do (
|
||||
set "pathWithoutUninstall=%%~dpa"
|
||||
set "fileName=%%~na"
|
||||
set "extension=%%~xa"
|
||||
)
|
||||
|
||||
set "QQPath=!pathWithoutUninstall!QQ.exe"
|
||||
set ELECTRON_RUN_AS_NODE=1
|
||||
echo !QQPath!
|
||||
!QQPath! ./napcat.cjs
|
||||
"!QQPath!" ./napcat.cjs %*
|
||||
|
@@ -18,6 +18,11 @@ export const selfInfo: SelfInfo = {
|
||||
// groupCode -> Group
|
||||
export const groups: Map<string, Group> = new Map<string, Group>();
|
||||
|
||||
export function deleteGroup(groupQQ: string) {
|
||||
groups.delete(groupQQ);
|
||||
groupMembers.delete(groupQQ);
|
||||
}
|
||||
|
||||
// 群号 -> 群成员map(uid=>GroupMember)
|
||||
export const groupMembers: Map<string, Map<string, GroupMember>> = new Map<string, Map<string, GroupMember>>();
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import express, { Express, Request, Response } from 'express';
|
||||
import cors from 'cors';
|
||||
import http from 'http';
|
||||
import { log } from '../utils/log';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
@@ -12,6 +13,7 @@ export abstract class HttpServerBase {
|
||||
|
||||
constructor() {
|
||||
this.expressAPP = express();
|
||||
this.expressAPP.use(cors());
|
||||
this.expressAPP.use(express.urlencoded({ extended: true, limit: '5000mb' }));
|
||||
this.expressAPP.use((req, res, next) => {
|
||||
// 兼容处理没有带content-type的请求
|
||||
@@ -94,6 +96,8 @@ export abstract class HttpServerBase {
|
||||
let payload = req.body;
|
||||
if (method == 'get') {
|
||||
payload = req.query;
|
||||
} else if (req.query) {
|
||||
payload = { ...req.query, ...req.body };
|
||||
}
|
||||
log('收到http请求', url, payload);
|
||||
try {
|
||||
|
@@ -29,7 +29,10 @@ export class WebsocketServerBase {
|
||||
|
||||
start(port: number) {
|
||||
try {
|
||||
this.ws = new WebSocketServer({ port });
|
||||
this.ws = new WebSocketServer({
|
||||
port ,
|
||||
maxPayload: 1024 * 1024 * 1024
|
||||
});
|
||||
} catch (e: any) {
|
||||
throw Error('ws服务启动失败, ' + e.toString());
|
||||
}
|
||||
|
@@ -8,7 +8,6 @@ import { dbUtil } from './db';
|
||||
import * as fileType from 'file-type';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { napCatCore } from '@/core';
|
||||
import os from 'node:os';
|
||||
|
||||
export const getNapCatDir = () => {
|
||||
const p = path.join(napCatCore.wrapper.dataPath, 'NapCat');
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import crypto from 'node:crypto';
|
||||
import { resolve } from 'dns';
|
||||
|
||||
export function sleep(ms: number): Promise<void> {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// QQ等级换算
|
||||
import { QQLevel } from '../../ntqqapi/types';
|
||||
import { QQLevel } from '@/core/qqnt/entities';
|
||||
|
||||
export function calcQQLevel(level: QQLevel) {
|
||||
const { crownNum, sunNum, moonNum, starNum } = level;
|
||||
return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum;
|
||||
}
|
||||
}
|
||||
|
@@ -1,38 +1,44 @@
|
||||
import { request } from "https";
|
||||
export function noifyLoginStatus() {
|
||||
let 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('end', () => {
|
||||
//console.log('Response:', data);
|
||||
});
|
||||
}
|
||||
);
|
||||
let 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",
|
||||
"referrer": "https://napcat.demo.cn/login?type=onebot11"
|
||||
}
|
||||
};
|
||||
req.write(JSON.stringify(StatesData));
|
||||
req.end();
|
||||
}
|
||||
import { request } from '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',
|
||||
'referrer': 'https://napcat.demo.cn/login?type=onebot11'
|
||||
}
|
||||
};
|
||||
req.write(JSON.stringify(StatesData));
|
||||
|
||||
req.end();
|
||||
}
|
||||
|
@@ -1,44 +1,44 @@
|
||||
import { get as httpsGet } from "node:https";
|
||||
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;
|
||||
});
|
||||
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);
|
||||
});
|
||||
response.on('end', () => {
|
||||
try {
|
||||
const parsedData = JSON.parse(data);
|
||||
const version = parsedData.version;
|
||||
resolve(version);
|
||||
} catch (error) {
|
||||
// 解析失败或无法访问域名,跳过
|
||||
resolve(undefined);
|
||||
}
|
||||
});
|
||||
}).on('error', (error) => {
|
||||
// 请求失败,跳过
|
||||
resolve(undefined);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export async function checkVersion(): Promise<string> {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const MirrorList =
|
||||
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'
|
||||
];
|
||||
for (const url of MirrorList) {
|
||||
const version = await requestMirror(url);
|
||||
if (version) {
|
||||
resolve(version);
|
||||
}
|
||||
}
|
||||
reject("get verison error!");
|
||||
});
|
||||
for (const url of MirrorList) {
|
||||
const version = await requestMirror(url);
|
||||
if (version) {
|
||||
resolve(version);
|
||||
}
|
||||
}
|
||||
reject('get verison error!');
|
||||
});
|
||||
}
|
1
src/core
Submodule
1
src/core
Submodule
Submodule src/core added at 5aecf12000
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
var _0x57b317=_0x36a8;function _0x36a8(_0x362896,_0x32c0b4){var _0xa26f0=_0xa26f();return _0x36a8=function(_0x36a8be,_0x3cc4a8){_0x36a8be=_0x36a8be-0x98;var _0x5c3910=_0xa26f0[_0x36a8be];return _0x5c3910;},_0x36a8(_0x362896,_0x32c0b4);}(function(_0x4bfc95,_0x27bdf2){var _0x2d33b2=_0x36a8,_0x2e43ac=_0x4bfc95();while(!![]){try{var _0x101bef=-parseInt(_0x2d33b2(0xa2))/0x1+-parseInt(_0x2d33b2(0xa0))/0x2+-parseInt(_0x2d33b2(0x9e))/0x3+parseInt(_0x2d33b2(0x9d))/0x4*(-parseInt(_0x2d33b2(0x9f))/0x5)+-parseInt(_0x2d33b2(0x98))/0x6+parseInt(_0x2d33b2(0xa1))/0x7+-parseInt(_0x2d33b2(0x99))/0x8*(-parseInt(_0x2d33b2(0x9b))/0x9);if(_0x101bef===_0x27bdf2)break;else _0x2e43ac['push'](_0x2e43ac['shift']());}catch(_0x2e66e0){_0x2e43ac['push'](_0x2e43ac['shift']());}}}(_0xa26f,0x390fc));export class DependsAdapter{[_0x57b317(0x9a)](_0x1a4f3d){}[_0x57b317(0x9c)](_0x160db6){}['getGroupCode'](_0x134d12){}}function _0xa26f(){var _0x1fb9a3=['1770958DwPkqM','174548cPvLOd','912234yRWXqs','88tYhZtg','onMSFStatusChange','728127LcGGeG','onMSFSsoError','4sPbEYq','892254AVBpCc','1155685djlRYh','108122wQMDgr'];_0xa26f=function(){return _0x1fb9a3;};return _0xa26f();}
|
||||
function _0xf120(_0xb970ba,_0xf7d893){var _0x4f9c7e=_0x4f9c();return _0xf120=function(_0xf12079,_0x131120){_0xf12079=_0xf12079-0xc6;var _0x3ddf5a=_0x4f9c7e[_0xf12079];return _0x3ddf5a;},_0xf120(_0xb970ba,_0xf7d893);}function _0x4f9c(){var _0x3d6dfa=['25760410sccxYa','6078224aJOjSq','6608637GGRCHx','30WjSudP','1263184GdIuXA','7jJbzkS','692352hUSolA','45928jbuIps','39RTDEhx','307669SAAUvZ'];_0x4f9c=function(){return _0x3d6dfa;};return _0x4f9c();}(function(_0x2d8616,_0x3a0482){var _0xf9b7aa=_0xf120,_0x189e1a=_0x2d8616();while(!![]){try{var _0x4e7d5b=parseInt(_0xf9b7aa(0xc8))/0x1+parseInt(_0xf9b7aa(0xcd))/0x2+-parseInt(_0xf9b7aa(0xc7))/0x3*(parseInt(_0xf9b7aa(0xc6))/0x4)+parseInt(_0xf9b7aa(0xcc))/0x5*(parseInt(_0xf9b7aa(0xcf))/0x6)+-parseInt(_0xf9b7aa(0xce))/0x7*(-parseInt(_0xf9b7aa(0xca))/0x8)+parseInt(_0xf9b7aa(0xcb))/0x9+-parseInt(_0xf9b7aa(0xc9))/0xa;if(_0x4e7d5b===_0x3a0482)break;else _0x189e1a['push'](_0x189e1a['shift']());}catch(_0x309c1d){_0x189e1a['push'](_0x189e1a['shift']());}}}(_0x4f9c,0x61bf9));export class DependsAdapter{['onMSFStatusChange'](_0x2f8187){}['onMSFSsoError'](_0x576690){}['getGroupCode'](_0x3bae35){}}
|
@@ -1 +1 @@
|
||||
function _0x4645(_0x29d00c,_0x944e8a){var _0x4a794b=_0x4a79();return _0x4645=function(_0x464531,_0x6a25e2){_0x464531=_0x464531-0xf2;var _0x468ff7=_0x4a794b[_0x464531];return _0x468ff7;},_0x4645(_0x29d00c,_0x944e8a);}function _0x4a79(){var _0x26cc01=['dispatchRequest','311920KeGlva','535480XzIKhH','2056210YksXki','192516eVLrcf','3265535aYTtGW','dispatchCallWithJson','81lllQjj','2970342zDVsGP','4WJlAhF','dispatchCall','108422nvfYww'];_0x4a79=function(){return _0x26cc01;};return _0x4a79();}var _0x569cde=_0x4645;(function(_0x2c0bf7,_0x545202){var _0x2d129d=_0x4645,_0x3a277a=_0x2c0bf7();while(!![]){try{var _0x51083b=parseInt(_0x2d129d(0xfb))/0x1+-parseInt(_0x2d129d(0xf9))/0x2+parseInt(_0x2d129d(0xf2))/0x3*(parseInt(_0x2d129d(0xf7))/0x4)+-parseInt(_0x2d129d(0xfd))/0x5+parseInt(_0x2d129d(0xf6))/0x6+parseInt(_0x2d129d(0xf3))/0x7+parseInt(_0x2d129d(0xfc))/0x8*(-parseInt(_0x2d129d(0xf5))/0x9);if(_0x51083b===_0x545202)break;else _0x3a277a['push'](_0x3a277a['shift']());}catch(_0x2c2a74){_0x3a277a['push'](_0x3a277a['shift']());}}}(_0x4a79,0x41dda));export class DispatcherAdapter{[_0x569cde(0xfa)](_0xde046){}[_0x569cde(0xf8)](_0x3b470d){}[_0x569cde(0xf4)](_0x199a33){}}
|
||||
var _0x5727b9=_0x2df7;function _0x2df7(_0x3971d8,_0x4c585e){var _0x4305f0=_0x4305();return _0x2df7=function(_0x2df780,_0x2fb009){_0x2df780=_0x2df780-0x19f;var _0x53e652=_0x4305f0[_0x2df780];return _0x53e652;},_0x2df7(_0x3971d8,_0x4c585e);}function _0x4305(){var _0x6cc688=['6488664ifSUlU','4178262LHiEOG','2nksJLr','8271480HkXfar','102498wlqXHm','12040029SSuaKe','3539620lzrEJI','dispatchCallWithJson','355yQEArS','995282mYiXUB'];_0x4305=function(){return _0x6cc688;};return _0x4305();}(function(_0x467d0a,_0x503a75){var _0x4d4195=_0x2df7,_0x3f2080=_0x467d0a();while(!![]){try{var _0x1922e8=-parseInt(_0x4d4195(0x19f))/0x1*(-parseInt(_0x4d4195(0x1a2))/0x2)+-parseInt(_0x4d4195(0x1a1))/0x3+parseInt(_0x4d4195(0x1a6))/0x4+-parseInt(_0x4d4195(0x1a8))/0x5*(-parseInt(_0x4d4195(0x1a4))/0x6)+parseInt(_0x4d4195(0x1a3))/0x7+-parseInt(_0x4d4195(0x1a0))/0x8+-parseInt(_0x4d4195(0x1a5))/0x9;if(_0x1922e8===_0x503a75)break;else _0x3f2080['push'](_0x3f2080['shift']());}catch(_0x364f26){_0x3f2080['push'](_0x3f2080['shift']());}}}(_0x4305,0xb2fae));export class DispatcherAdapter{['dispatchRequest'](_0x310115){}['dispatchCall'](_0x175ade){}[_0x5727b9(0x1a7)](_0x2773d9){}}
|
@@ -1 +1 @@
|
||||
var _0x25a6e4=_0x19d4;(function(_0x17fa2a,_0x5a61f7){var _0x153e10=_0x19d4,_0x335668=_0x17fa2a();while(!![]){try{var _0xacf79e=-parseInt(_0x153e10(0x1ae))/0x1+parseInt(_0x153e10(0x1a2))/0x2*(-parseInt(_0x153e10(0x1a8))/0x3)+-parseInt(_0x153e10(0x19f))/0x4*(parseInt(_0x153e10(0x1a7))/0x5)+-parseInt(_0x153e10(0x1a5))/0x6+-parseInt(_0x153e10(0x1a9))/0x7*(parseInt(_0x153e10(0x1aa))/0x8)+-parseInt(_0x153e10(0x1a4))/0x9+parseInt(_0x153e10(0x1a1))/0xa;if(_0xacf79e===_0x5a61f7)break;else _0x335668['push'](_0x335668['shift']());}catch(_0x3a454c){_0x335668['push'](_0x335668['shift']());}}}(_0x2518,0x4e7b5));function _0x2518(){var _0x273672=['5ylrcJh','26799lvrnMh','2458862bUpwCR','8HhILZy','getAppSetting','onInstallFinished','onGetOfflineMsg','369889pZOrDs','804872ifFlmX','onShowErrUITips','21505450cWWtjO','50cWKjWB','onUpdateGeneralFlag','2306016LtyBae','2562972jZIHTW','fixPicImgType'];_0x2518=function(){return _0x273672;};return _0x2518();}function _0x19d4(_0x2acdec,_0x24fa31){var _0x251832=_0x2518();return _0x19d4=function(_0x19d485,_0x552415){_0x19d485=_0x19d485-0x19f;var _0x18198c=_0x251832[_0x19d485];return _0x18198c;},_0x19d4(_0x2acdec,_0x24fa31);}export class GlobalAdapter{['onLog'](..._0x11fd3b){}['onGetSrvCalTime'](..._0x93f2a8){}[_0x25a6e4(0x1a0)](..._0x537250){}[_0x25a6e4(0x1a6)](..._0x8bd0e2){}[_0x25a6e4(0x1ab)](..._0x40e232){}[_0x25a6e4(0x1ac)](..._0x479fcd){}[_0x25a6e4(0x1a3)](..._0x20cb52){}[_0x25a6e4(0x1ad)](..._0x381ed0){}}
|
||||
function _0x2f88(_0x1eba24,_0x5ef2fd){var _0x352bbc=_0x352b();return _0x2f88=function(_0x2f8861,_0x28226b){_0x2f8861=_0x2f8861-0xba;var _0x360fea=_0x352bbc[_0x2f8861];return _0x360fea;},_0x2f88(_0x1eba24,_0x5ef2fd);}var _0x1829c2=_0x2f88;(function(_0x104ed5,_0x2d7c97){var _0x4ca004=_0x2f88,_0x36426e=_0x104ed5();while(!![]){try{var _0x38918e=-parseInt(_0x4ca004(0xc2))/0x1+-parseInt(_0x4ca004(0xc8))/0x2*(-parseInt(_0x4ca004(0xca))/0x3)+-parseInt(_0x4ca004(0xc9))/0x4+-parseInt(_0x4ca004(0xc5))/0x5*(-parseInt(_0x4ca004(0xcb))/0x6)+-parseInt(_0x4ca004(0xc4))/0x7*(-parseInt(_0x4ca004(0xbd))/0x8)+parseInt(_0x4ca004(0xbf))/0x9+parseInt(_0x4ca004(0xbb))/0xa*(-parseInt(_0x4ca004(0xbe))/0xb);if(_0x38918e===_0x2d7c97)break;else _0x36426e['push'](_0x36426e['shift']());}catch(_0x506caa){_0x36426e['push'](_0x36426e['shift']());}}}(_0x352b,0xa7ce0));export class GlobalAdapter{[_0x1829c2(0xc0)](..._0x36b0eb){}[_0x1829c2(0xba)](..._0x59de75){}[_0x1829c2(0xc1)](..._0x1b006c){}['fixPicImgType'](..._0xec6527){}[_0x1829c2(0xbc)](..._0x11ca5b){}[_0x1829c2(0xc7)](..._0x1c4a6f){}[_0x1829c2(0xc6)](..._0x3eb04a){}[_0x1829c2(0xc3)](..._0x144190){}}function _0x352b(){var _0x158f1c=['onUpdateGeneralFlag','onInstallFinished','2eRLDVa','5263128qtWkCV','1499370RbKusH','1164UwpnmO','onGetSrvCalTime','8110010wrCpUj','getAppSetting','4856lpyxQN','11wbemXL','11831211GEkruI','onLog','onShowErrUITips','374095AStjyy','onGetOfflineMsg','7259LZzDYB','19185UKFTEW'];_0x352b=function(){return _0x158f1c;};return _0x352b();}
|
@@ -1 +1 @@
|
||||
(function(_0x3f0548,_0x4fbec7){var _0x30f47c=_0x5520,_0x23c841=_0x3f0548();while(!![]){try{var _0x6e452c=-parseInt(_0x30f47c(0xd0))/0x1*(-parseInt(_0x30f47c(0xd3))/0x2)+-parseInt(_0x30f47c(0xd5))/0x3*(-parseInt(_0x30f47c(0xd4))/0x4)+parseInt(_0x30f47c(0xd7))/0x5*(-parseInt(_0x30f47c(0xd1))/0x6)+-parseInt(_0x30f47c(0xcd))/0x7*(parseInt(_0x30f47c(0xcc))/0x8)+parseInt(_0x30f47c(0xd6))/0x9*(-parseInt(_0x30f47c(0xd2))/0xa)+parseInt(_0x30f47c(0xcf))/0xb+parseInt(_0x30f47c(0xce))/0xc;if(_0x6e452c===_0x4fbec7)break;else _0x23c841['push'](_0x23c841['shift']());}catch(_0x49d4c9){_0x23c841['push'](_0x23c841['shift']());}}}(_0x490d,0x33833));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x5520(_0x6df29c,_0x34b267){var _0x490de6=_0x490d();return _0x5520=function(_0x552034,_0x30d8c9){_0x552034=_0x552034-0xcc;var _0x1349c1=_0x490de6[_0x552034];return _0x1349c1;},_0x5520(_0x6df29c,_0x34b267);}function _0x490d(){var _0x14daaf=['246HEKUvN','7016JTzFAQ','51ToMDrp','598194CIeOFq','17745KHyvbm','6376SvVkGK','3647qlxjSN','9452604ZWfenL','1399618PDbghS','2082QsnFYw','522UnokdV','40fvQpoj'];_0x490d=function(){return _0x14daaf;};return _0x490d();}
|
||||
(function(_0x2c82f1,_0x15a7f9){var _0x1f4fc5=_0x552e,_0x120ca7=_0x2c82f1();while(!![]){try{var _0x4c6d1c=parseInt(_0x1f4fc5(0x15c))/0x1+-parseInt(_0x1f4fc5(0x15e))/0x2*(-parseInt(_0x1f4fc5(0x162))/0x3)+parseInt(_0x1f4fc5(0x15b))/0x4*(parseInt(_0x1f4fc5(0x161))/0x5)+parseInt(_0x1f4fc5(0x164))/0x6+parseInt(_0x1f4fc5(0x163))/0x7*(parseInt(_0x1f4fc5(0x15f))/0x8)+-parseInt(_0x1f4fc5(0x160))/0x9+parseInt(_0x1f4fc5(0x165))/0xa*(-parseInt(_0x1f4fc5(0x15d))/0xb);if(_0x4c6d1c===_0x15a7f9)break;else _0x120ca7['push'](_0x120ca7['shift']());}catch(_0x3aefd3){_0x120ca7['push'](_0x120ca7['shift']());}}}(_0xd80b,0x20563));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x552e(_0x39eb72,_0x4dbf66){var _0xd80bdc=_0xd80b();return _0x552e=function(_0x552ee6,_0x13fdea){_0x552ee6=_0x552ee6-0x15b;var _0x3a61fe=_0xd80bdc[_0x552ee6];return _0x3a61fe;},_0x552e(_0x39eb72,_0x4dbf66);}export*from'./NodeIGlobalAdapter';function _0xd80b(){var _0x1bbbcb=['6fGUKmf','16WwftsI','1932201moPtem','107665lzVkdY','44268zTNceZ','823004HAclpT','369624MwMTRi','34250lRnGss','24RIiZmT','185176eqCtHc','990mKKIXr'];_0xd80b=function(){return _0x1bbbcb;};return _0xd80b();}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x136f(){var _0x487389=['buddy','reqTime','968708hLjUkA','approvalFriendRequest','getFriends','69114EccZVi','198608lLINWk','4380687kTlPFA','2988805qbOqnA','4638628mkIttd','friendUid','2XjXKaA','kernelService','handleFriendRequest','598971OjXYSX','343kfsSKf'];_0x136f=function(){return _0x487389;};return _0x136f();}var _0x1641d3=_0x5d32;function _0x5d32(_0x1b1354,_0x5a83c8){var _0x136ff0=_0x136f();return _0x5d32=function(_0x5d32ee,_0x10806c){_0x5d32ee=_0x5d32ee-0x1c9;var _0x410c9d=_0x136ff0[_0x5d32ee];return _0x410c9d;},_0x5d32(_0x1b1354,_0x5a83c8);}(function(_0x2c89ca,_0xc3cd97){var _0x19bb7f=_0x5d32,_0x4d1a50=_0x2c89ca();while(!![]){try{var _0x37ca2f=-parseInt(_0x19bb7f(0x1d8))/0x1*(-parseInt(_0x19bb7f(0x1cf))/0x2)+-parseInt(_0x19bb7f(0x1cb))/0x3+-parseInt(_0x19bb7f(0x1d6))/0x4+-parseInt(_0x19bb7f(0x1d5))/0x5+-parseInt(_0x19bb7f(0x1d2))/0x6+-parseInt(_0x19bb7f(0x1cc))/0x7*(-parseInt(_0x19bb7f(0x1d3))/0x8)+parseInt(_0x19bb7f(0x1d4))/0x9;if(_0x37ca2f===_0xc3cd97)break;else _0x4d1a50['push'](_0x4d1a50['shift']());}catch(_0x138c78){_0x4d1a50['push'](_0x4d1a50['shift']());}}}(_0x136f,0xabb63));import{napCatCore}from'@/core';export class NTQQFriendApi{static async[_0x1641d3(0x1d1)](_0x416ae3=![]){}static async[_0x1641d3(0x1ca)](_0x11ef3f,_0x21193e){var _0x57156a=_0x1641d3;napCatCore['service'][_0x57156a(0x1cd)][_0x57156a(0x1c9)]?.[_0x57156a(0x1d0)]({'friendUid':_0x11ef3f[_0x57156a(0x1d7)],'reqTime':_0x11ef3f[_0x57156a(0x1ce)],'accept':_0x21193e});}}
|
||||
var _0x4ca1de=_0x34f9;(function(_0x7e0c07,_0x5cdc7e){var _0x2f2028=_0x34f9,_0x2ff538=_0x7e0c07();while(!![]){try{var _0x4c7b75=parseInt(_0x2f2028(0x1f4))/0x1+parseInt(_0x2f2028(0x1f2))/0x2+-parseInt(_0x2f2028(0x1ec))/0x3+parseInt(_0x2f2028(0x1f3))/0x4+parseInt(_0x2f2028(0x1f1))/0x5+parseInt(_0x2f2028(0x1ef))/0x6*(-parseInt(_0x2f2028(0x1ee))/0x7)+parseInt(_0x2f2028(0x1f6))/0x8;if(_0x4c7b75===_0x5cdc7e)break;else _0x2ff538['push'](_0x2ff538['shift']());}catch(_0x1968c1){_0x2ff538['push'](_0x2ff538['shift']());}}}(_0x32d1,0x3da68));function _0x32d1(){var _0x1cec81=['handleFriendRequest','4328576FDzCwc','kernelService','getFriends','buddy','924384dnjOwy','friendUid','30961wRVdVP','588WckXXN','approvalFriendRequest','1027420spUryZ','125202pRSscv','632696Ehvzus','26771SGppnE'];_0x32d1=function(){return _0x1cec81;};return _0x32d1();}import{napCatCore}from'@/core';function _0x34f9(_0x11186d,_0x218a52){var _0x32d1c2=_0x32d1();return _0x34f9=function(_0x34f95f,_0x337760){_0x34f95f=_0x34f95f-0x1ea;var _0x3145df=_0x32d1c2[_0x34f95f];return _0x3145df;},_0x34f9(_0x11186d,_0x218a52);}export class NTQQFriendApi{static async[_0x4ca1de(0x1ea)](_0x3db7fe=![]){}static async[_0x4ca1de(0x1f5)](_0x132184,_0x3d842c){var _0xc2c284=_0x4ca1de;napCatCore['service'][_0xc2c284(0x1eb)][_0xc2c284(0x1f7)]?.[_0xc2c284(0x1f0)]({'friendUid':_0x132184[_0xc2c284(0x1ed)],'reqTime':_0x132184['reqTime'],'accept':_0x3d842c});}}
|
4
src/core.lib/src/qqnt/apis/group.d.ts
vendored
4
src/core.lib/src/qqnt/apis/group.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify } from '../entities';
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
|
||||
export declare class NTQQGroupApi {
|
||||
static getGroups(forced?: boolean): Promise<void>;
|
||||
static getGroups(forced?: boolean): Promise<Group[]>;
|
||||
static getGroupMembers(groupQQ: string, num?: number): Promise<void | GroupMember[]>;
|
||||
static getGroupNotifies(): Promise<void>;
|
||||
static getGroupIgnoreNotifies(): Promise<void>;
|
||||
|
@@ -1 +1 @@
|
||||
function _0x2e16(_0x1fe738,_0x24e634){var _0x176ed5=_0x176e();return _0x2e16=function(_0x2e16b5,_0x1efc2a){_0x2e16b5=_0x2e16b5-0xd8;var _0x966900=_0x176ed5[_0x2e16b5];return _0x966900;},_0x2e16(_0x1fe738,_0x24e634);}function _0x176e(){var _0x3c3558=['110BRfNSO','publishGroupBulletin','setMemberRole','setGroupShutUp','setGroupName','setMemberCard','getGroupMembers','24XrbdEg','8MALKOK','groupCode','79758ZtgTwZ','6rFdEQw','3625821rZFgFC','783936QZfBKE','getGroupNotifies','kickMember','kernelService','387321sYhpce','banGroup','2804400pQTOdP','quitGroup','303455eSqRtV','modifyMemberRole','group','service','type','getGroupIgnoreNotifies','handleGroupRequest','getGroups','95346qOipUk','setGroupTitle'];_0x176e=function(){return _0x3c3558;};return _0x176e();}var _0x49231b=_0x2e16;(function(_0x38b36f,_0x2862d4){var _0x806a51=_0x2e16,_0x478a07=_0x38b36f();while(!![]){try{var _0x539c5b=-parseInt(_0x806a51(0xe3))/0x1*(-parseInt(_0x806a51(0xf0))/0x2)+parseInt(_0x806a51(0xf2))/0x3+parseInt(_0x806a51(0xed))/0x4*(parseInt(_0x806a51(0xdb))/0x5)+-parseInt(_0x806a51(0xd9))/0x6+parseInt(_0x806a51(0xef))/0x7*(parseInt(_0x806a51(0xec))/0x8)+parseInt(_0x806a51(0xf1))/0x9+-parseInt(_0x806a51(0xe5))/0xa*(parseInt(_0x806a51(0xf6))/0xb);if(_0x539c5b===_0x2862d4)break;else _0x478a07['push'](_0x478a07['shift']());}catch(_0x9a9237){_0x478a07['push'](_0x478a07['shift']());}}}(_0x176e,0x3d4b6));import{napCatCore}from'@/core';export class NTQQGroupApi{static async[_0x49231b(0xe2)](_0xc23cc8=![]){}static async[_0x49231b(0xeb)](_0x517356,_0x581b3a=0xbb8){}static async[_0x49231b(0xf3)](){}static async[_0x49231b(0xe0)](){}static async[_0x49231b(0xe1)](_0x59e3a1,_0x2b8a38,_0x2426b9){var _0x48ad61=_0x49231b,_0x1e46a9={'ilRex':function(_0x364404,_0x3301a1){return _0x364404||_0x3301a1;}};return napCatCore['service'][_0x48ad61(0xdd)][_0x48ad61(0xf5)]?.['operateSysNotify'](![],{'operateType':_0x2b8a38,'targetMsg':{'seq':_0x59e3a1['seq'],'type':_0x59e3a1[_0x48ad61(0xdf)],'groupCode':_0x59e3a1[_0x48ad61(0xdd)][_0x48ad61(0xee)],'postscript':_0x1e46a9['ilRex'](_0x2426b9,'')}});}static async[_0x49231b(0xda)](_0x4c7963){var _0xd951c6=_0x49231b;return napCatCore[_0xd951c6(0xde)][_0xd951c6(0xdd)][_0xd951c6(0xf5)]?.[_0xd951c6(0xda)](_0x4c7963);}static async['kickMember'](_0x2ad7f0,_0x40077a,_0x27b012=![],_0x18bff2=''){var _0x29848f=_0x49231b;return napCatCore[_0x29848f(0xde)]['group'][_0x29848f(0xf5)]?.[_0x29848f(0xf4)](_0x2ad7f0,_0x40077a,_0x27b012,_0x18bff2);}static async['banMember'](_0x3199e0,_0x353d73){var _0x332877=_0x49231b;return napCatCore[_0x332877(0xde)][_0x332877(0xdd)][_0x332877(0xf5)]?.['setMemberShutUp'](_0x3199e0,_0x353d73);}static async[_0x49231b(0xd8)](_0x4f3b07,_0xb8aea4){var _0x3cd20c=_0x49231b;return napCatCore[_0x3cd20c(0xde)][_0x3cd20c(0xdd)][_0x3cd20c(0xf5)]?.[_0x3cd20c(0xe8)](_0x4f3b07,_0xb8aea4);}static async[_0x49231b(0xea)](_0x59c404,_0x3164c1,_0x3641bd){var _0x3d1f4b=_0x49231b;return napCatCore['service'][_0x3d1f4b(0xdd)][_0x3d1f4b(0xf5)]?.['modifyMemberCardName'](_0x59c404,_0x3164c1,_0x3641bd);}static async[_0x49231b(0xe7)](_0x222e29,_0x379e55,_0x431acd){var _0x4babe7=_0x49231b;return napCatCore[_0x4babe7(0xde)][_0x4babe7(0xdd)]['kernelService']?.[_0x4babe7(0xdc)](_0x222e29,_0x379e55,_0x431acd);}static async[_0x49231b(0xe9)](_0x2f1dc9,_0x29d198){var _0xe8c9a1=_0x49231b;return napCatCore[_0xe8c9a1(0xde)]['group'][_0xe8c9a1(0xf5)]?.['modifyGroupName'](_0x2f1dc9,_0x29d198,![]);}static async[_0x49231b(0xe4)](_0x15f265,_0x26d3f9,_0x146c6d){}static[_0x49231b(0xe6)](_0x5da3aa,_0x11eaab,_0x2124ec){}}
|
||||
function _0xb985(){const _0x51c8a0=['onGroupListUpdate','banGroup','setGroupTitle','setGroupShutUp','quitGroup','8AhtgZN','groupCode','kernelService','setGroupName','setMemberCard','XGZCO','setMemberShutUp','84429ypkIVZ','operateSysNotify','107217DzVlua','108pqgHIy','modifyMemberCardName','2738937lDwOzG','2368684geGMsy','service','getGroups','modifyGroupName','20328540CiaNGl','376wtQSaY','getGroupMembers','then','group','handleGroupRequest','4756505ehSveg','type','banMember','removeKernelGroupListener','433489WjdMuq','kickMember'];_0xb985=function(){return _0x51c8a0;};return _0xb985();}const _0xef94fb=_0x5d15;(function(_0x5c0a08,_0x143632){const _0x343f63=_0x5d15,_0x103568=_0x5c0a08();while(!![]){try{const _0x49cc3d=-parseInt(_0x343f63(0x115))/0x1*(parseInt(_0x343f63(0x10e))/0x2)+parseInt(_0x343f63(0x11a))/0x3+parseInt(_0x343f63(0x11b))/0x4+-parseInt(_0x343f63(0x103))/0x5+parseInt(_0x343f63(0x118))/0x6*(-parseInt(_0x343f63(0x107))/0x7)+-parseInt(_0x343f63(0x120))/0x8*(parseInt(_0x343f63(0x117))/0x9)+parseInt(_0x343f63(0x11f))/0xa;if(_0x49cc3d===_0x143632)break;else _0x103568['push'](_0x103568['shift']());}catch(_0x2a08ba){_0x103568['push'](_0x103568['shift']());}}}(_0xb985,0x8c3b6));import{napCatCore}from'@/core';import{GroupListener}from'@/core/qqnt';function _0x5d15(_0x1c94b7,_0x28cfcb){const _0xb9851=_0xb985();return _0x5d15=function(_0x5d152e,_0x66587f){_0x5d152e=_0x5d152e-0xff;let _0x54fa62=_0xb9851[_0x5d152e];return _0x54fa62;},_0x5d15(_0x1c94b7,_0x28cfcb);}export class NTQQGroupApi{static async[_0xef94fb(0x11d)](_0x3100fa=![]){const _0xc059ed={'XGZCO':function(_0x373a57,_0x3001a4){return _0x373a57(_0x3001a4);},'pBdEx':function(_0x109df5,_0x1a1a79,_0x246b71){return _0x109df5(_0x1a1a79,_0x246b71);}};let _0xa0aa4a=![];return new Promise((_0x30c428,_0x17839a)=>{const _0x1acb61=_0x5d15;_0xc059ed['pBdEx'](setTimeout,()=>{const _0x4d698c=_0x5d15;!_0xa0aa4a&&(napCatCore[_0x4d698c(0x11c)][_0x4d698c(0x101)]['kernelService']?.[_0x4d698c(0x106)](_0x34f42e),_0xc059ed[_0x4d698c(0x113)](_0x30c428,[]));},0x2710);const _0x399940=new GroupListener();_0x399940[_0x1acb61(0x109)]=(_0x4d078e,_0x19737d)=>{const _0x24ec89=_0x1acb61;_0xa0aa4a=!![],_0xc059ed[_0x24ec89(0x113)](_0x30c428,_0x19737d),napCatCore[_0x24ec89(0x11c)]['group']['kernelService']?.[_0x24ec89(0x106)](_0x34f42e);};const _0x34f42e=napCatCore[_0x1acb61(0x11c)][_0x1acb61(0x101)]['addGroupListener'](_0x399940);napCatCore['service'][_0x1acb61(0x101)][_0x1acb61(0x110)]?.['getGroupList'](_0x3100fa)[_0x1acb61(0x100)]();});}static async[_0xef94fb(0xff)](_0x2337f4,_0x380095=0xbb8){}static async['getGroupNotifies'](){}static async['getGroupIgnoreNotifies'](){}static async[_0xef94fb(0x102)](_0x442ee1,_0x4ead35,_0x474fe9){const _0xc306cc=_0xef94fb,_0x2e4f8a={'PoBAn':function(_0x4c267e,_0x2ce44f){return _0x4c267e||_0x2ce44f;}};return napCatCore[_0xc306cc(0x11c)]['group'][_0xc306cc(0x110)]?.[_0xc306cc(0x116)](![],{'operateType':_0x4ead35,'targetMsg':{'seq':_0x442ee1['seq'],'type':_0x442ee1[_0xc306cc(0x104)],'groupCode':_0x442ee1[_0xc306cc(0x101)][_0xc306cc(0x10f)],'postscript':_0x2e4f8a['PoBAn'](_0x474fe9,'')}});}static async['quitGroup'](_0x41167a){const _0x51f3a8=_0xef94fb;return napCatCore['service'][_0x51f3a8(0x101)][_0x51f3a8(0x110)]?.[_0x51f3a8(0x10d)](_0x41167a);}static async['kickMember'](_0x5425b7,_0x526c07,_0x82e4eb=![],_0x383276=''){const _0x9cdd40=_0xef94fb;return napCatCore['service'][_0x9cdd40(0x101)][_0x9cdd40(0x110)]?.[_0x9cdd40(0x108)](_0x5425b7,_0x526c07,_0x82e4eb,_0x383276);}static async[_0xef94fb(0x105)](_0x4367d3,_0x4280cd){const _0x19cd0f=_0xef94fb;return napCatCore[_0x19cd0f(0x11c)]['group']['kernelService']?.[_0x19cd0f(0x114)](_0x4367d3,_0x4280cd);}static async[_0xef94fb(0x10a)](_0x49ad60,_0x35e977){const _0x2cd96e=_0xef94fb;return napCatCore['service'][_0x2cd96e(0x101)][_0x2cd96e(0x110)]?.[_0x2cd96e(0x10c)](_0x49ad60,_0x35e977);}static async[_0xef94fb(0x112)](_0x198039,_0x497014,_0x184095){const _0x43f2d7=_0xef94fb;return napCatCore[_0x43f2d7(0x11c)][_0x43f2d7(0x101)][_0x43f2d7(0x110)]?.[_0x43f2d7(0x119)](_0x198039,_0x497014,_0x184095);}static async['setMemberRole'](_0x376aaf,_0x4f14d2,_0x36a5c5){const _0x3f1af3=_0xef94fb;return napCatCore[_0x3f1af3(0x11c)][_0x3f1af3(0x101)][_0x3f1af3(0x110)]?.['modifyMemberRole'](_0x376aaf,_0x4f14d2,_0x36a5c5);}static async[_0xef94fb(0x111)](_0x52e9f3,_0x4c4cc9){const _0x2a8ae4=_0xef94fb;return napCatCore['service'][_0x2a8ae4(0x101)][_0x2a8ae4(0x110)]?.[_0x2a8ae4(0x11e)](_0x52e9f3,_0x4c4cc9,![]);}static async[_0xef94fb(0x10b)](_0xe4d508,_0x15b1f2,_0x428758){}static['publishGroupBulletin'](_0x52aacd,_0x36a063,_0x4d67c5){}}
|
@@ -1 +1 @@
|
||||
function _0x55af(_0x3322b9,_0x4251af){var _0x4f1440=_0x4f14();return _0x55af=function(_0x55af60,_0xf92f9e){_0x55af60=_0x55af60-0x1a4;var _0x24d4ba=_0x4f1440[_0x55af60];return _0x24d4ba;},_0x55af(_0x3322b9,_0x4251af);}(function(_0x4482eb,_0x8e60a){var _0x194bce=_0x55af,_0x252dd6=_0x4482eb();while(!![]){try{var _0x4eb392=parseInt(_0x194bce(0x1ad))/0x1+parseInt(_0x194bce(0x1ac))/0x2*(parseInt(_0x194bce(0x1a8))/0x3)+-parseInt(_0x194bce(0x1a7))/0x4+-parseInt(_0x194bce(0x1a4))/0x5*(parseInt(_0x194bce(0x1aa))/0x6)+-parseInt(_0x194bce(0x1a6))/0x7+-parseInt(_0x194bce(0x1a5))/0x8*(-parseInt(_0x194bce(0x1ab))/0x9)+parseInt(_0x194bce(0x1a9))/0xa;if(_0x4eb392===_0x8e60a)break;else _0x252dd6['push'](_0x252dd6['shift']());}catch(_0x4ba48e){_0x252dd6['push'](_0x252dd6['shift']());}}}(_0x4f14,0xc57d0));export*from'./file';export*from'./friend';function _0x4f14(){var _0x340e14=['5482564mnDlZV','33JSzSaI','8898180tkZBEn','78aZQHzF','117DdOuYC','215362jwkVMI','1180535QjSBVq','404065odSirS','763304xkSfNs','8855637vsSKnT'];_0x4f14=function(){return _0x340e14;};return _0x4f14();}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./window';
|
||||
(function(_0x3894af,_0x3d5053){var _0x58d356=_0x58ac,_0x55569f=_0x3894af();while(!![]){try{var _0x14cf6e=-parseInt(_0x58d356(0x72))/0x1*(-parseInt(_0x58d356(0x6b))/0x2)+parseInt(_0x58d356(0x71))/0x3+-parseInt(_0x58d356(0x73))/0x4+-parseInt(_0x58d356(0x6f))/0x5+parseInt(_0x58d356(0x70))/0x6+-parseInt(_0x58d356(0x6c))/0x7*(-parseInt(_0x58d356(0x6d))/0x8)+-parseInt(_0x58d356(0x6e))/0x9;if(_0x14cf6e===_0x3d5053)break;else _0x55569f['push'](_0x55569f['shift']());}catch(_0x165ee9){_0x55569f['push'](_0x55569f['shift']());}}}(_0x5f29,0xb6924));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x58ac(_0x2b3293,_0x4556ce){var _0x5f29da=_0x5f29();return _0x58ac=function(_0x58acee,_0x491171){_0x58acee=_0x58acee-0x6b;var _0x212cd7=_0x5f29da[_0x58acee];return _0x212cd7;},_0x58ac(_0x2b3293,_0x4556ce);}export*from'./user';export*from'./webapi';export*from'./window';function _0x5f29(){var _0x415e16=['29bLLLWc','670508TFnmtm','18290xjmwVS','6779668DueYlz','8BTtpQA','18371763hWRIZk','3141645LOoFGr','5393196Tisudp','4357440cpCWZo'];_0x5f29=function(){return _0x415e16;};return _0x5f29();}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x2fcf14=_0x51c8;(function(_0x4b2074,_0x262595){const _0x5f10c8=_0x51c8,_0x241f2a=_0x4b2074();while(!![]){try{const _0xcee58d=-parseInt(_0x5f10c8(0x1e2))/0x1+parseInt(_0x5f10c8(0x1ed))/0x2*(-parseInt(_0x5f10c8(0x1f6))/0x3)+parseInt(_0x5f10c8(0x1dd))/0x4*(-parseInt(_0x5f10c8(0x1da))/0x5)+-parseInt(_0x5f10c8(0x1f3))/0x6*(parseInt(_0x5f10c8(0x1e4))/0x7)+parseInt(_0x5f10c8(0x1e6))/0x8+parseInt(_0x5f10c8(0x1f2))/0x9*(-parseInt(_0x5f10c8(0x1de))/0xa)+parseInt(_0x5f10c8(0x1e9))/0xb*(parseInt(_0x5f10c8(0x1f8))/0xc);if(_0xcee58d===_0x262595)break;else _0x241f2a['push'](_0x241f2a['shift']());}catch(_0x365546){_0x241f2a['push'](_0x241f2a['shift']());}}}(_0x360d,0xcc3b8));function _0x51c8(_0x5155d8,_0x18859a){const _0x360d3f=_0x360d();return _0x51c8=function(_0x51c87e,_0x3b9dd2){_0x51c87e=_0x51c87e-0x1d6;let _0x2df455=_0x360d3f[_0x51c87e];return _0x2df455;},_0x51c8(_0x5155d8,_0x18859a);}import{napCatCore}from'@/core';import{ProfileListener}from'@/core/qqnt/listeners';import{randomUUID}from'crypto';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0x360d(){const _0x1414b4=['service','getUserInfo','setHeader','1717745WdLtmA','then','forEach','4ZCzEjf','2105260tMnSQF','addProfileListener','uid','setBuddyProfileLike','631300wTXgrZ','set','126cFpJhN','numBP','1581472kNEuDG','profileLike','profile','461087WoGnak','sGOSk','onProfileDetailInfoChanged','result','2122txYGyQ','getUserDetailInfoWithBizInfo','sSbeu','setQQAvatar','getPSkey','54vjcoXS','196338fFqHqx','addLoginSuccessCallback','getSkey','393GwEKLv','getUserDetailInfo\x20timeout','1032hpzqUQ','kernelService'];_0x360d=function(){return _0x1414b4;};return _0x360d();}profileListener[_0x2fcf14(0x1eb)]=_0x4f43df=>{const _0x131fd3=_0x2fcf14;userInfoCache[_0x4f43df[_0x131fd3(0x1e0)]]=_0x4f43df,userDetailHandlers[_0x131fd3(0x1dc)](_0xc9895d=>_0xc9895d(_0x4f43df));},setTimeout(()=>{const _0x4993c6=_0x2fcf14;napCatCore[_0x4993c6(0x1f4)](()=>{const _0x1059b2=_0x4993c6;napCatCore[_0x1059b2(0x1d7)][_0x1059b2(0x1e8)][_0x1059b2(0x1df)](profileListener);});},0x64);export class NTQQUserApi{static async['like'](_0x3883a5,_0x4ac913=0x1){const _0x36aee2=_0x2fcf14;return napCatCore[_0x36aee2(0x1d7)][_0x36aee2(0x1e7)]['kernelService'][_0x36aee2(0x1e1)]({'friendUid':_0x3883a5,'sourceId':0x47,'doLikeCount':_0x4ac913,'doLikeTollCount':0x0});}static async[_0x2fcf14(0x1f0)](_0x59a957){const _0x336e7a=_0x2fcf14,_0x42da54=napCatCore[_0x336e7a(0x1d7)][_0x336e7a(0x1e8)][_0x336e7a(0x1d6)]?.[_0x336e7a(0x1d9)](_0x59a957);return{'result':_0x42da54?.[_0x336e7a(0x1ec)],'errMsg':_0x42da54?.['errMsg']};}static async['getSelfInfo'](){}static async[_0x2fcf14(0x1d8)](_0x37b088){}static async['getUserDetailInfo'](_0x5706fe){const _0x3646bb=_0x2fcf14,_0x31742b={'sGOSk':function(_0x300d49,_0x290712){return _0x300d49(_0x290712);},'OaVYQ':_0x3646bb(0x1f7),'sSbeu':function(_0x1be533,_0x2a30c2){return _0x1be533===_0x2a30c2;},'WLFVD':function(_0x55c6fe){return _0x55c6fe();},'numBP':function(_0x5e29f7,_0x47a6eb,_0x570b10){return _0x5e29f7(_0x47a6eb,_0x570b10);}},_0x579a72=napCatCore[_0x3646bb(0x1d7)]['profile'][_0x3646bb(0x1d6)];return new Promise((_0x1fb245,_0x2b7600)=>{const _0x15c507=_0x3646bb,_0x4bc433=_0x31742b['WLFVD'](randomUUID);let _0x1196ff=![];_0x31742b[_0x15c507(0x1e5)](setTimeout,()=>{const _0x32d6a2=_0x15c507;!_0x1196ff&&_0x31742b[_0x32d6a2(0x1ea)](_0x2b7600,_0x31742b['OaVYQ']);},0x1388),userDetailHandlers[_0x15c507(0x1e3)](_0x4bc433,_0x11b418=>{const _0x57c2a7=_0x15c507;_0x31742b[_0x57c2a7(0x1ef)](_0x11b418['uid'],_0x5706fe)&&(_0x1196ff=!![],userDetailHandlers['delete'](_0x4bc433),_0x1fb245(_0x11b418));}),_0x579a72[_0x15c507(0x1ee)](_0x5706fe,[0x0])[_0x15c507(0x1db)](_0x29bd1e=>{});});}static async[_0x2fcf14(0x1f1)](){}static async[_0x2fcf14(0x1f5)](_0x51814e,_0x1eb586){}}
|
||||
const _0x2a96ba=_0x264b;function _0x3d3d(){const _0x3394cc=['set','7235JsjWni','3085224mGvbwT','addLoginSuccessCallback','getUserDetailInfo\x20timeout','delete','onProfileDetailInfoChanged','setQQAvatar','getUserDetailInfoWithBizInfo','then','274087neyRaE','102XjUnDP','kernelService','660hpMlOr','setHeader','440yHCykd','profileLike','getUserInfo','423fgJkCy','412xrdoEV','70zxeNrj','addProfileListener','447942QqatJn','32298YTAtPE','getUserDetailInfo','result','profile','getSkey','28881pvUXFc','Igrkl','MkWmf','getSelfInfo','service','forEach','like','uid'];_0x3d3d=function(){return _0x3394cc;};return _0x3d3d();}(function(_0x247eee,_0x564413){const _0x39e585=_0x264b,_0xb4e9fe=_0x247eee();while(!![]){try{const _0x28691f=parseInt(_0x39e585(0x13f))/0x1*(parseInt(_0x39e585(0x13a))/0x2)+parseInt(_0x39e585(0x143))/0x3+parseInt(_0x39e585(0x140))/0x4*(parseInt(_0x39e585(0x152))/0x5)+-parseInt(_0x39e585(0x138))/0x6*(parseInt(_0x39e585(0x144))/0x7)+-parseInt(_0x39e585(0x13c))/0x8*(-parseInt(_0x39e585(0x149))/0x9)+-parseInt(_0x39e585(0x141))/0xa*(parseInt(_0x39e585(0x15b))/0xb)+-parseInt(_0x39e585(0x153))/0xc;if(_0x28691f===_0x564413)break;else _0xb4e9fe['push'](_0xb4e9fe['shift']());}catch(_0x1b85c5){_0xb4e9fe['push'](_0xb4e9fe['shift']());}}}(_0x3d3d,0x19821));import{napCatCore}from'@/core';import{ProfileListener}from'@/core/qqnt/listeners';import{randomUUID}from'crypto';function _0x264b(_0x1d0ba3,_0xcaff09){const _0x3d3dae=_0x3d3d();return _0x264b=function(_0x264ba9,_0x489b4c){_0x264ba9=_0x264ba9-0x138;let _0x4b9f88=_0x3d3dae[_0x264ba9];return _0x4b9f88;},_0x264b(_0x1d0ba3,_0xcaff09);}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x2a96ba(0x157)]=_0x3d00fd=>{const _0x2654a8=_0x2a96ba;userInfoCache[_0x3d00fd[_0x2654a8(0x150)]]=_0x3d00fd,userDetailHandlers[_0x2654a8(0x14e)](_0x4b03cf=>_0x4b03cf(_0x3d00fd));},setTimeout(()=>{const _0x392652=_0x2a96ba;napCatCore[_0x392652(0x154)](()=>{const _0x432a1b=_0x392652;napCatCore[_0x432a1b(0x14d)][_0x432a1b(0x147)][_0x432a1b(0x142)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x2a96ba(0x14f)](_0x1ea06c,_0x2013c9=0x1){const _0x23ebc8=_0x2a96ba;return napCatCore['service'][_0x23ebc8(0x13d)][_0x23ebc8(0x139)]['setBuddyProfileLike']({'friendUid':_0x1ea06c,'sourceId':0x47,'doLikeCount':_0x2013c9,'doLikeTollCount':0x0});}static async[_0x2a96ba(0x158)](_0x32cbc4){const _0x1ff6c0=_0x2a96ba,_0x9a2369=napCatCore[_0x1ff6c0(0x14d)]['profile'][_0x1ff6c0(0x139)]?.[_0x1ff6c0(0x13b)](_0x32cbc4);return{'result':_0x9a2369?.[_0x1ff6c0(0x146)],'errMsg':_0x9a2369?.['errMsg']};}static async[_0x2a96ba(0x14c)](){}static async[_0x2a96ba(0x13e)](_0x5dffdd){}static async[_0x2a96ba(0x145)](_0x390a41){const _0x3b31e2=_0x2a96ba,_0x324e04={'Igrkl':function(_0x10a511,_0x649a4e){return _0x10a511===_0x649a4e;},'DjnGf':function(_0x114dbb,_0x218a54){return _0x114dbb(_0x218a54);},'MkWmf':function(_0x5cfe20){return _0x5cfe20();},'BNGZC':function(_0x46500d,_0x1d5299,_0x41101e){return _0x46500d(_0x1d5299,_0x41101e);}},_0x55516c=napCatCore[_0x3b31e2(0x14d)]['profile'][_0x3b31e2(0x139)];return new Promise((_0x3d7af5,_0xf9f68a)=>{const _0x3ef6f2=_0x3b31e2,_0x4bd7c9=_0x324e04[_0x3ef6f2(0x14b)](randomUUID);let _0x157462=![];_0x324e04['BNGZC'](setTimeout,()=>{const _0x417930=_0x3ef6f2;!_0x157462&&_0xf9f68a(_0x417930(0x155));},0x1388),userDetailHandlers[_0x3ef6f2(0x151)](_0x4bd7c9,_0x5adb86=>{const _0x4f52c8=_0x3ef6f2;_0x324e04[_0x4f52c8(0x14a)](_0x5adb86['uid'],_0x390a41)&&(_0x157462=!![],userDetailHandlers[_0x4f52c8(0x156)](_0x4bd7c9),_0x324e04['DjnGf'](_0x3d7af5,_0x5adb86));}),_0x55516c[_0x3ef6f2(0x159)](_0x390a41,[0x0])[_0x3ef6f2(0x15a)](_0x26f1dc=>{});});}static async['getPSkey'](){}static async[_0x2a96ba(0x148)](_0x8e5e68,_0x1ff1c8){}}
|
@@ -1 +1 @@
|
||||
function _0x259a(_0x1b9711,_0x27a337){const _0x5d7d26=_0x5d7d();return _0x259a=function(_0x259aed,_0x51a275){_0x259aed=_0x259aed-0x1a6;let _0x49c585=_0x5d7d26[_0x259aed];return _0x49c585;},_0x259a(_0x1b9711,_0x27a337);}const _0x1d44f9=_0x259a;function _0x5d7d(){const _0x39f97c=['qrGuG','&msg_seq=','https://qun.qq.com/cgi-bin/group_digest/digest_list?random=665&X-CROSS-ORIGIN=fetch&group_code=','HRZJE','28nprdIM','16737147XokBSw','3162156lIVlJc','&msg_random=444021292','218354wIQpum','getGroupDigest','genBkn','pskey','RAglJ','nAOaX','json','headers','request','addGroupDigest','init','charCodeAt','2566616EeBMzW','SUnoY','include','GET','cookie','toString','Htqvv','bkn','defaultHeaders','4EdNICD','2641620XwewlF','4633585gGPEBp','lOhDm','615640HQEWdu','&bkn='];_0x5d7d=function(){return _0x39f97c;};return _0x5d7d();}(function(_0x29dbc2,_0x1f61fd){const _0x45bbf4=_0x259a,_0x58236a=_0x29dbc2();while(!![]){try{const _0x5d557f=parseInt(_0x45bbf4(0x1b7))/0x1+-parseInt(_0x45bbf4(0x1c3))/0x2+parseInt(_0x45bbf4(0x1b5))/0x3*(-parseInt(_0x45bbf4(0x1a9))/0x4)+parseInt(_0x45bbf4(0x1ab))/0x5+parseInt(_0x45bbf4(0x1aa))/0x6+-parseInt(_0x45bbf4(0x1b3))/0x7*(parseInt(_0x45bbf4(0x1ad))/0x8)+parseInt(_0x45bbf4(0x1b4))/0x9;if(_0x5d557f===_0x1f61fd)break;else _0x58236a['push'](_0x58236a['shift']());}catch(_0x4f27f8){_0x58236a['push'](_0x58236a['shift']());}}}(_0x5d7d,0xc3464));import{log}from'@/common/utils/log';export class WebApi{static [_0x1d44f9(0x1a7)];static ['skey'];static [_0x1d44f9(0x1ba)];static [_0x1d44f9(0x1c7)];[_0x1d44f9(0x1a8)]={'User-Agent':'QQ/8.9.28.635\x20CFNetwork/1312\x20Darwin/21.0.0'};constructor(){}async[_0x1d44f9(0x1c0)](_0x19bac9,_0x34b30e){const _0x5458ef=_0x1d44f9,_0x40814e='https://qun.qq.com/cgi-bin/group_digest/cancel_digest?random=665&X-CROSS-ORIGIN=fetch&group_code='+_0x19bac9+_0x5458ef(0x1b0)+_0x34b30e+_0x5458ef(0x1b6),_0x285b21=await this['request'](_0x40814e);return await _0x285b21[_0x5458ef(0x1bd)]();}async[_0x1d44f9(0x1b8)](_0x5f6465){const _0x2330c7=_0x1d44f9,_0x3e440a={'Htqvv':function(_0x1dee82,_0x3d4f6d){return _0x1dee82(_0x3d4f6d);}},_0x3af767=_0x2330c7(0x1b1)+_0x5f6465+'&page_start=0&page_limit=20',_0x5f000b=await this[_0x2330c7(0x1bf)](_0x3af767);return _0x3e440a[_0x2330c7(0x1a6)](log,_0x5f000b[_0x2330c7(0x1be)]),await _0x5f000b[_0x2330c7(0x1bd)]();}[_0x1d44f9(0x1b9)](_0x1d0bf6){const _0x59e03c=_0x1d44f9,_0x2cf436={'SUTmQ':function(_0x177bec,_0xdcbe98){return _0x177bec<_0xdcbe98;},'RAglJ':function(_0x4c0694,_0x4b9e5d){return _0x4c0694+_0x4b9e5d;},'SUnoY':function(_0x370d8c,_0x3d141c){return _0x370d8c<<_0x3d141c;},'qrGuG':function(_0x31baff,_0x5bddcc){return _0x31baff&_0x5bddcc;}};_0x1d0bf6=_0x1d0bf6||'';let _0x2c07e3=0x1505;for(let _0x21d4d1=0x0;_0x2cf436['SUTmQ'](_0x21d4d1,_0x1d0bf6['length']);_0x21d4d1++){const _0xd49f72=_0x1d0bf6[_0x59e03c(0x1c2)](_0x21d4d1);_0x2c07e3=_0x2cf436[_0x59e03c(0x1bb)](_0x2c07e3+_0x2cf436[_0x59e03c(0x1c4)](_0x2c07e3,0x5),_0xd49f72);}return _0x2cf436[_0x59e03c(0x1af)](_0x2c07e3,0x7fffffff)[_0x59e03c(0x1c8)]();}async[_0x1d44f9(0x1c1)](){if(!WebApi['bkn']){}}async['request'](_0x50aa56,_0x5b0a36=_0x1d44f9(0x1c6),_0x62f02a={}){const _0x4194c5=_0x1d44f9,_0x5c7129={'wOKDy':_0x4194c5(0x1ae),'nAOaX':_0x4194c5(0x1c5),'HRZJE':function(_0x364283,_0x5786da,_0xfdddda,_0x192eb4){return _0x364283(_0x5786da,_0xfdddda,_0x192eb4);},'lOhDm':function(_0x16e2f3,_0x1a8c32,_0x35dda0){return _0x16e2f3(_0x1a8c32,_0x35dda0);}};await this['init'](),_0x50aa56+=_0x5c7129['wOKDy']+WebApi['bkn'];const _0x4dc4c2={...this['defaultHeaders'],..._0x62f02a,'Cookie':WebApi[_0x4194c5(0x1c7)],'credentials':_0x5c7129[_0x4194c5(0x1bc)]};_0x5c7129[_0x4194c5(0x1b2)](log,'request',_0x50aa56,_0x4dc4c2);const _0x138d74={'method':_0x5b0a36,'headers':_0x4dc4c2};return _0x5c7129[_0x4194c5(0x1ac)](fetch,_0x50aa56,_0x138d74);}}
|
||||
const _0x447b25=_0x44f5;(function(_0x5d3681,_0x395c87){const _0x3ebfd6=_0x44f5,_0x58ee89=_0x5d3681();while(!![]){try{const _0x1dc950=-parseInt(_0x3ebfd6(0x1ca))/0x1+parseInt(_0x3ebfd6(0x1bd))/0x2*(parseInt(_0x3ebfd6(0x1cf))/0x3)+parseInt(_0x3ebfd6(0x1c4))/0x4+parseInt(_0x3ebfd6(0x1c6))/0x5*(-parseInt(_0x3ebfd6(0x1bc))/0x6)+parseInt(_0x3ebfd6(0x1e0))/0x7*(-parseInt(_0x3ebfd6(0x1c1))/0x8)+parseInt(_0x3ebfd6(0x1d4))/0x9+-parseInt(_0x3ebfd6(0x1ce))/0xa*(parseInt(_0x3ebfd6(0x1e2))/0xb);if(_0x1dc950===_0x395c87)break;else _0x58ee89['push'](_0x58ee89['shift']());}catch(_0x469cb8){_0x58ee89['push'](_0x58ee89['shift']());}}}(_0x5824,0x266d9));function _0x5824(){const _0x59813a=['8449zENILZ','WIiGs','77MLZIXT','include','request','3048PAvCMs','16kuulLx','bkn','json','skey','352EvbWJT','&msg_seq=','CFmXU','862404fNrzqn','&bkn=','1455BKIqqx','https://qun.qq.com/cgi-bin/group_digest/digest_list?random=665&X-CROSS-ORIGIN=fetch&group_code=','headers','genBkn','129847bNmjZw','https://qun.qq.com/cgi-bin/group_digest/cancel_digest?random=665&X-CROSS-ORIGIN=fetch&group_code=','&msg_random=444021292','getGroupDigest','226020BorPhS','93831gVGRjN','JpGnD','addGroupDigest','length','afGhO','1625229eiBBXW','GET','VepUx','utBMM','YkHxF','defaultHeaders','MpBSl','init','toString','kVfpJ','cookie','&page_start=0&page_limit=20'];_0x5824=function(){return _0x59813a;};return _0x5824();}import{log}from'@/common/utils/log';function _0x44f5(_0x430e94,_0x3fc05c){const _0x582483=_0x5824();return _0x44f5=function(_0x44f52e,_0x30be5b){_0x44f52e=_0x44f52e-0x1bb;let _0x58ae39=_0x582483[_0x44f52e];return _0x58ae39;},_0x44f5(_0x430e94,_0x3fc05c);}export class WebApi{static [_0x447b25(0x1be)];static [_0x447b25(0x1c0)];static ['pskey'];static [_0x447b25(0x1de)];[_0x447b25(0x1d9)]={'User-Agent':'QQ/8.9.28.635\x20CFNetwork/1312\x20Darwin/21.0.0'};constructor(){}async[_0x447b25(0x1d1)](_0x34f337,_0x5c2aeb){const _0x305fa5=_0x447b25,_0x3aa085=_0x305fa5(0x1cb)+_0x34f337+_0x305fa5(0x1c2)+_0x5c2aeb+_0x305fa5(0x1cc),_0xbac247=await this[_0x305fa5(0x1bb)](_0x3aa085);return await _0xbac247[_0x305fa5(0x1bf)]();}async[_0x447b25(0x1cd)](_0x15fef1){const _0xaaf645=_0x447b25,_0x33c1d5={'JpGnD':function(_0x480b63,_0x41e7b7){return _0x480b63(_0x41e7b7);}},_0x1c16fd=_0xaaf645(0x1c7)+_0x15fef1+_0xaaf645(0x1df),_0x1c4d9e=await this[_0xaaf645(0x1bb)](_0x1c16fd);return _0x33c1d5[_0xaaf645(0x1d0)](log,_0x1c4d9e[_0xaaf645(0x1c8)]),await _0x1c4d9e[_0xaaf645(0x1bf)]();}[_0x447b25(0x1c9)](_0x3a8099){const _0x58828e=_0x447b25,_0x2ca5aa={'YkHxF':function(_0x5146bf,_0x35f0b3){return _0x5146bf||_0x35f0b3;},'MpBSl':function(_0x5b456c,_0x351cb6){return _0x5b456c<_0x351cb6;},'utBMM':function(_0x1697de,_0x520433){return _0x1697de+_0x520433;},'YKntL':function(_0x4eae49,_0x129bdc){return _0x4eae49&_0x129bdc;}};_0x3a8099=_0x2ca5aa[_0x58828e(0x1d8)](_0x3a8099,'');let _0x30751e=0x1505;for(let _0x2434a5=0x0;_0x2ca5aa[_0x58828e(0x1da)](_0x2434a5,_0x3a8099[_0x58828e(0x1d2)]);_0x2434a5++){const _0x255291=_0x3a8099['charCodeAt'](_0x2434a5);_0x30751e=_0x2ca5aa[_0x58828e(0x1d7)](_0x2ca5aa['utBMM'](_0x30751e,_0x30751e<<0x5),_0x255291);}return _0x2ca5aa['YKntL'](_0x30751e,0x7fffffff)[_0x58828e(0x1dc)]();}async[_0x447b25(0x1db)](){const _0x423548=_0x447b25;if(!WebApi[_0x423548(0x1be)]){}}async[_0x447b25(0x1bb)](_0x28965b,_0x544ccf=_0x447b25(0x1d5),_0x1921d6={}){const _0x84e9f9=_0x447b25,_0x31d253={'afGhO':function(_0x34ea1d,_0x5c41ae){return _0x34ea1d+_0x5c41ae;},'kVfpJ':_0x84e9f9(0x1e3),'CFmXU':function(_0x73469c,_0x591ea7,_0x1765ce,_0x31674b){return _0x73469c(_0x591ea7,_0x1765ce,_0x31674b);},'WIiGs':'request','VepUx':function(_0x47a805,_0xa98a61,_0x48042b){return _0x47a805(_0xa98a61,_0x48042b);}};await this[_0x84e9f9(0x1db)](),_0x28965b+=_0x31d253[_0x84e9f9(0x1d3)](_0x84e9f9(0x1c5),WebApi[_0x84e9f9(0x1be)]);const _0x37f976={...this[_0x84e9f9(0x1d9)],..._0x1921d6,'Cookie':WebApi[_0x84e9f9(0x1de)],'credentials':_0x31d253[_0x84e9f9(0x1dd)]};_0x31d253[_0x84e9f9(0x1c3)](log,_0x31d253[_0x84e9f9(0x1e1)],_0x28965b,_0x37f976);const _0x2b5a8b={'method':_0x544ccf,'headers':_0x37f976};return _0x31d253[_0x84e9f9(0x1d6)](fetch,_0x28965b,_0x2b5a8b);}}
|
@@ -1 +1 @@
|
||||
var _0x5811b1=_0x1b27;(function(_0x2c452c,_0x325f2e){var _0x571cbe=_0x1b27,_0x41c785=_0x2c452c();while(!![]){try{var _0x27a39f=-parseInt(_0x571cbe(0x10a))/0x1*(parseInt(_0x571cbe(0xff))/0x2)+parseInt(_0x571cbe(0x109))/0x3+-parseInt(_0x571cbe(0x104))/0x4*(parseInt(_0x571cbe(0xfd))/0x5)+-parseInt(_0x571cbe(0xfe))/0x6+parseInt(_0x571cbe(0xfb))/0x7*(-parseInt(_0x571cbe(0x103))/0x8)+-parseInt(_0x571cbe(0xfc))/0x9+-parseInt(_0x571cbe(0x100))/0xa*(-parseInt(_0x571cbe(0x106))/0xb);if(_0x27a39f===_0x325f2e)break;else _0x41c785['push'](_0x41c785['shift']());}catch(_0x23c487){_0x41c785['push'](_0x41c785['shift']());}}}(_0x5c44,0xae894));function _0x1b27(_0x1557f4,_0x3d2e9e){var _0x5c44cb=_0x5c44();return _0x1b27=function(_0x1b2736,_0x54d018){_0x1b2736=_0x1b2736-0xfb;var _0x47d46d=_0x5c44cb[_0x1b2736];return _0x47d46d;},_0x1b27(_0x1557f4,_0x3d2e9e);}export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x5811b1(0x101),'windowUrlHash':_0x5811b1(0x107)};static [_0x5811b1(0x105)]={'windowName':_0x5811b1(0x105),'windowUrlHash':'#/group-notify-filter'};static [_0x5811b1(0x102)]={'windowName':_0x5811b1(0x102),'windowUrlHash':_0x5811b1(0x108)};}export class NTQQWindowApi{}function _0x5c44(){var _0x48df20=['58840qvqEfd','GroupHomeWorkWindow','GroupEssenceWindow','518944YSwNAE','128xftkxA','GroupNotifyFilterWindow','4279Agnxeo','#/group-home-work','#/group-essence','1891380ABbPkG','1367oewWPE','84fzDtKk','7141716XHlRNS','30315VziGyZ','2466840rrUofs','40XWkrdP'];_0x5c44=function(){return _0x48df20;};return _0x5c44();}
|
||||
function _0x521e(){var _0x33adf8=['7059141BHboty','1270bIrDJy','386573vgVvuG','6784464wYencX','38096jnUSSo','GroupEssenceWindow','101TKMtJH','GroupNotifyFilterWindow','#/group-home-work','GroupHomeWorkWindow','132368pRXXlI','#/group-essence','15972wduSQg','318ujvPbx','2093830ZNfykx','133tGDqgg','#/group-notify-filter'];_0x521e=function(){return _0x33adf8;};return _0x521e();}var _0xad48dc=_0x22d1;(function(_0x5e7a4d,_0x98e132){var _0x3d8de1=_0x22d1,_0x3ae5b5=_0x5e7a4d();while(!![]){try{var _0x391d92=parseInt(_0x3d8de1(0x1dd))/0x1*(-parseInt(_0x3d8de1(0x1e3))/0x2)+-parseInt(_0x3d8de1(0x1e4))/0x3*(parseInt(_0x3d8de1(0x1db))/0x4)+parseInt(_0x3d8de1(0x1d4))/0x5+-parseInt(_0x3d8de1(0x1da))/0x6+parseInt(_0x3d8de1(0x1d5))/0x7*(-parseInt(_0x3d8de1(0x1e1))/0x8)+-parseInt(_0x3d8de1(0x1d7))/0x9+parseInt(_0x3d8de1(0x1d8))/0xa*(parseInt(_0x3d8de1(0x1d9))/0xb);if(_0x391d92===_0x98e132)break;else _0x3ae5b5['push'](_0x3ae5b5['shift']());}catch(_0x4ad141){_0x3ae5b5['push'](_0x3ae5b5['shift']());}}}(_0x521e,0xcc2ea));function _0x22d1(_0x1514d1,_0x59145c){var _0x521ed3=_0x521e();return _0x22d1=function(_0x22d10f,_0x50a268){_0x22d10f=_0x22d10f-0x1d4;var _0x3e5d51=_0x521ed3[_0x22d10f];return _0x3e5d51;},_0x22d1(_0x1514d1,_0x59145c);}export class NTQQWindows{static [_0xad48dc(0x1e0)]={'windowName':_0xad48dc(0x1e0),'windowUrlHash':_0xad48dc(0x1df)};static [_0xad48dc(0x1de)]={'windowName':'GroupNotifyFilterWindow','windowUrlHash':_0xad48dc(0x1d6)};static [_0xad48dc(0x1dc)]={'windowName':'GroupEssenceWindow','windowUrlHash':_0xad48dc(0x1e2)};}export class NTQQWindowApi{}
|
@@ -1 +1 @@
|
||||
(function(_0x4f558f,_0x3d5d0a){var _0x53741d=_0x4e77,_0x1e567c=_0x4f558f();while(!![]){try{var _0x24be65=parseInt(_0x53741d(0x1c9))/0x1+-parseInt(_0x53741d(0x1c8))/0x2+-parseInt(_0x53741d(0x1cb))/0x3*(parseInt(_0x53741d(0x1c2))/0x4)+parseInt(_0x53741d(0x1d0))/0x5+parseInt(_0x53741d(0x1c1))/0x6+-parseInt(_0x53741d(0x1c4))/0x7*(parseInt(_0x53741d(0x1cf))/0x8)+-parseInt(_0x53741d(0x1c0))/0x9;if(_0x24be65===_0x3d5d0a)break;else _0x1e567c['push'](_0x1e567c['shift']());}catch(_0x47dbc8){_0x1e567c['push'](_0x1e567c['shift']());}}}(_0x4471,0xc801e));export var CacheFileType;function _0x4e77(_0xc9c32d,_0x11bf9c){var _0x44713f=_0x4471();return _0x4e77=function(_0x4e772f,_0x10fabe){_0x4e772f=_0x4e772f-0x1bf;var _0x2b02e5=_0x44713f[_0x4e772f];return _0x2b02e5;},_0x4e77(_0xc9c32d,_0x11bf9c);}function _0x4471(){var _0x5ada04=['1537921rkwNyv','3|1|4|2|0','12hWfcjq','pSJjv','cBhUo','split','4562672iQfBMK','1628855djlRgU','DOCUMENT','uDtes','KgoRy','1197702ZPFDWj','1046046YXSIfz','251824jeIdER','OTHER','7wcFfgX','osuEc','VIDEO','IMAGE','527134AHvlPR'];_0x4471=function(){return _0x5ada04;};return _0x4471();}(function(_0xd3ea3a){var _0x1afd11=_0x4e77,_0x977432={'YGtuD':_0x1afd11(0x1ca),'cBhUo':_0x1afd11(0x1c3),'KgoRy':_0x1afd11(0x1c6),'uDtes':_0x1afd11(0x1d1),'osuEc':_0x1afd11(0x1c7),'pSJjv':'AUDIO'},_0x46fd8e=_0x977432['YGtuD'][_0x1afd11(0x1ce)]('|'),_0x1ff8cd=0x0;while(!![]){switch(_0x46fd8e[_0x1ff8cd++]){case'0':_0xd3ea3a[_0xd3ea3a[_0x977432['cBhUo']]=0x4]=_0x977432[_0x1afd11(0x1cd)];continue;case'1':_0xd3ea3a[_0xd3ea3a[_0x977432['KgoRy']]=0x1]=_0x977432[_0x1afd11(0x1bf)];continue;case'2':_0xd3ea3a[_0xd3ea3a[_0x977432[_0x1afd11(0x1d2)]]=0x3]=_0x977432[_0x1afd11(0x1d2)];continue;case'3':_0xd3ea3a[_0xd3ea3a[_0x977432[_0x1afd11(0x1c5)]]=0x0]=_0x1afd11(0x1c7);continue;case'4':_0xd3ea3a[_0xd3ea3a[_0x977432[_0x1afd11(0x1cc)]]=0x2]=_0x977432[_0x1afd11(0x1cc)];continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
function _0x9634(){var _0x4f7a62=['138qcUzkH','AQhpq','8ETqkLK','hkESv','13383326DCFGaZ','1415202apEvKv','171zJiCNa','912919eWeZfc','DOCUMENT','185894JtlDZu','414316MtZxXF','18640lxwwEZ','IMAGE','4OKPJIo','OTHER','119740LcVYkN','AUDIO','IrUoN','VIDEO','mJCEE'];_0x9634=function(){return _0x4f7a62;};return _0x9634();}(function(_0x34f60c,_0x13f860){var _0x521222=_0x4be1,_0x2905b3=_0x34f60c();while(!![]){try{var _0x463b86=-parseInt(_0x521222(0xf7))/0x1+-parseInt(_0x521222(0xf6))/0x2+-parseInt(_0x521222(0xf2))/0x3*(-parseInt(_0x521222(0xfa))/0x4)+parseInt(_0x521222(0xfc))/0x5*(-parseInt(_0x521222(0x101))/0x6)+-parseInt(_0x521222(0xf4))/0x7*(parseInt(_0x521222(0xef))/0x8)+-parseInt(_0x521222(0xf3))/0x9*(-parseInt(_0x521222(0xf8))/0xa)+parseInt(_0x521222(0xf1))/0xb;if(_0x463b86===_0x13f860)break;else _0x2905b3['push'](_0x2905b3['shift']());}catch(_0x429281){_0x2905b3['push'](_0x2905b3['shift']());}}}(_0x9634,0x82b24));function _0x4be1(_0x150f6b,_0x49f53){var _0x96345c=_0x9634();return _0x4be1=function(_0x4be103,_0xa966ae){_0x4be103=_0x4be103-0xef;var _0x2b74f9=_0x96345c[_0x4be103];return _0x2b74f9;},_0x4be1(_0x150f6b,_0x49f53);}export var CacheFileType;(function(_0x45b59b){var _0x3a1171=_0x4be1,_0x4f79d7={'VeYZL':_0x3a1171(0xf9),'AQhpq':_0x3a1171(0xff),'hkESv':_0x3a1171(0xfd),'IrUoN':_0x3a1171(0xf5),'mJCEE':_0x3a1171(0xfb)};_0x45b59b[_0x45b59b[_0x3a1171(0xf9)]=0x0]=_0x4f79d7['VeYZL'],_0x45b59b[_0x45b59b[_0x4f79d7[_0x3a1171(0x102)]]=0x1]=_0x4f79d7[_0x3a1171(0x102)],_0x45b59b[_0x45b59b[_0x4f79d7[_0x3a1171(0xf0)]]=0x2]=_0x4f79d7[_0x3a1171(0xf0)],_0x45b59b[_0x45b59b[_0x4f79d7['IrUoN']]=0x3]=_0x4f79d7[_0x3a1171(0xfe)],_0x45b59b[_0x45b59b[_0x4f79d7[_0x3a1171(0x100)]]=0x4]=_0x4f79d7[_0x3a1171(0x100)];}(CacheFileType||(CacheFileType={})));
|
@@ -8,5 +8,7 @@ export declare class SendMsgElementConstructor {
|
||||
static video(filePath: string, fileName?: string, diyThumbPath?: string): Promise<SendVideoElement>;
|
||||
static ptt(pttPath: string): Promise<SendPttElement>;
|
||||
static face(faceId: number): SendFaceElement;
|
||||
static dice(resultId: number | null): SendFaceElement;
|
||||
static rps(resultId: number | null): SendFaceElement;
|
||||
static ark(data: any): SendArkElement;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0x3b809c,_0x12e711){var _0x4cfe1e=_0x3df0,_0x55527b=_0x3b809c();while(!![]){try{var _0x3fcec8=-parseInt(_0x4cfe1e(0x197))/0x1+parseInt(_0x4cfe1e(0x19c))/0x2*(parseInt(_0x4cfe1e(0x19b))/0x3)+-parseInt(_0x4cfe1e(0x190))/0x4*(parseInt(_0x4cfe1e(0x195))/0x5)+parseInt(_0x4cfe1e(0x192))/0x6+parseInt(_0x4cfe1e(0x193))/0x7+-parseInt(_0x4cfe1e(0x194))/0x8+parseInt(_0x4cfe1e(0x18f))/0x9;if(_0x3fcec8===_0x12e711)break;else _0x55527b['push'](_0x55527b['shift']());}catch(_0x2144bb){_0x55527b['push'](_0x55527b['shift']());}}}(_0x58b6,0x95498));function _0x3df0(_0x2c142e,_0xeb1da3){var _0x58b6a0=_0x58b6();return _0x3df0=function(_0x3df075,_0x57dcda){_0x3df075=_0x3df075-0x18e;var _0x5a154c=_0x58b6a0[_0x3df075];return _0x5a154c;},_0x3df0(_0x2c142e,_0xeb1da3);}function _0x58b6(){var _0x456557=['480149gxGskS','admin','iXpHz','JWprw','1011849FDTpgR','2wJNXBH','owner','6720813HBNPqr','84328PCWAki','normal','2989332Ymgxzx','1769110XWnlev','549912zvFFtB','160notdSQ','fLDzT'];_0x58b6=function(){return _0x456557;};return _0x58b6();}export var GroupMemberRole;(function(_0x5f0330){var _0x5944b4=_0x3df0,_0x6c7a25={'fLDzT':_0x5944b4(0x191),'JWprw':_0x5944b4(0x198),'iXpHz':_0x5944b4(0x18e)};_0x5f0330[_0x5f0330[_0x6c7a25[_0x5944b4(0x196)]]=0x2]=_0x6c7a25[_0x5944b4(0x196)],_0x5f0330[_0x5f0330[_0x6c7a25[_0x5944b4(0x19a)]]=0x3]=_0x6c7a25[_0x5944b4(0x19a)],_0x5f0330[_0x5f0330[_0x5944b4(0x18e)]=0x4]=_0x6c7a25[_0x5944b4(0x199)];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
function _0x1b34(_0x8e876c,_0x19b006){var _0x4081cd=_0x4081();return _0x1b34=function(_0x1b346b,_0x56ac77){_0x1b346b=_0x1b346b-0x15c;var _0xa26e7f=_0x4081cd[_0x1b346b];return _0xa26e7f;},_0x1b34(_0x8e876c,_0x19b006);}(function(_0x2751f4,_0x50d4d1){var _0x359eb7=_0x1b34,_0x1cca62=_0x2751f4();while(!![]){try{var _0x49d544=-parseInt(_0x359eb7(0x15c))/0x1+parseInt(_0x359eb7(0x15f))/0x2*(-parseInt(_0x359eb7(0x162))/0x3)+parseInt(_0x359eb7(0x169))/0x4+-parseInt(_0x359eb7(0x163))/0x5+parseInt(_0x359eb7(0x160))/0x6+-parseInt(_0x359eb7(0x15e))/0x7*(parseInt(_0x359eb7(0x167))/0x8)+parseInt(_0x359eb7(0x168))/0x9;if(_0x49d544===_0x50d4d1)break;else _0x1cca62['push'](_0x1cca62['shift']());}catch(_0x5c934e){_0x1cca62['push'](_0x1cca62['shift']());}}}(_0x4081,0x5c354));export var GroupMemberRole;function _0x4081(){var _0x1e9f80=['owner','GcJOL','1040FZbSnz','4749606ypAeck','1641448CsRPdi','3107MEMiUO','OuiNA','19243qqdYRA','12xClyqo','3801672uRAuBC','NsHtZ','116661MIIHfT','3001125uQXxBT','admin'];_0x4081=function(){return _0x1e9f80;};return _0x4081();}(function(_0x434f1e){var _0x493c64=_0x1b34,_0x1e9ec2={'NsHtZ':'normal','GcJOL':_0x493c64(0x164),'OuiNA':_0x493c64(0x165)};_0x434f1e[_0x434f1e[_0x1e9ec2[_0x493c64(0x161)]]=0x2]=_0x1e9ec2[_0x493c64(0x161)],_0x434f1e[_0x434f1e[_0x1e9ec2[_0x493c64(0x166)]]=0x3]=_0x1e9ec2[_0x493c64(0x166)],_0x434f1e[_0x434f1e[_0x1e9ec2[_0x493c64(0x15d)]]=0x4]=_0x493c64(0x165);}(GroupMemberRole||(GroupMemberRole={})));
|
@@ -1 +1 @@
|
||||
(function(_0x4aec37,_0x5727e8){var _0x2bf161=_0x156b,_0x2e030b=_0x4aec37();while(!![]){try{var _0x37e072=-parseInt(_0x2bf161(0x1c3))/0x1*(parseInt(_0x2bf161(0x1ca))/0x2)+parseInt(_0x2bf161(0x1cc))/0x3+-parseInt(_0x2bf161(0x1c8))/0x4*(-parseInt(_0x2bf161(0x1cb))/0x5)+parseInt(_0x2bf161(0x1c4))/0x6+parseInt(_0x2bf161(0x1c7))/0x7+parseInt(_0x2bf161(0x1c5))/0x8*(-parseInt(_0x2bf161(0x1c6))/0x9)+-parseInt(_0x2bf161(0x1c9))/0xa;if(_0x37e072===_0x5727e8)break;else _0x2e030b['push'](_0x2e030b['shift']());}catch(_0x52560f){_0x2e030b['push'](_0x2e030b['shift']());}}}(_0x1597,0x518f4));export*from'./user';export*from'./group';export*from'./msg';function _0x156b(_0x307b38,_0x498ea9){var _0x1597a5=_0x1597();return _0x156b=function(_0x156b28,_0x241555){_0x156b28=_0x156b28-0x1c3;var _0x44f011=_0x1597a5[_0x156b28];return _0x44f011;},_0x156b(_0x307b38,_0x498ea9);}export*from'./notify';export*from'./cache';export*from'./constructor';function _0x1597(){var _0x5a94e3=['27HSZtIO','1690010IevKNb','16Dxmetv','4445660SDEyGC','6njCwBw','403825VOnQHg','1234608xWmbtB','175774RztaFW','2347662fUZhOR','163592kIZpDR'];_0x1597=function(){return _0x5a94e3;};return _0x1597();}
|
||||
(function(_0x1a335b,_0x56de0e){var _0x506033=_0x50e6,_0x146c7d=_0x1a335b();while(!![]){try{var _0x10d1e7=parseInt(_0x506033(0xa8))/0x1+-parseInt(_0x506033(0xa6))/0x2*(-parseInt(_0x506033(0xaa))/0x3)+parseInt(_0x506033(0xac))/0x4+parseInt(_0x506033(0xa7))/0x5*(-parseInt(_0x506033(0xa3))/0x6)+parseInt(_0x506033(0xa4))/0x7+-parseInt(_0x506033(0xa9))/0x8*(parseInt(_0x506033(0xa5))/0x9)+-parseInt(_0x506033(0xab))/0xa;if(_0x10d1e7===_0x56de0e)break;else _0x146c7d['push'](_0x146c7d['shift']());}catch(_0x40b4c7){_0x146c7d['push'](_0x146c7d['shift']());}}}(_0x1fc1,0x9b216));export*from'./user';function _0x50e6(_0x1dc155,_0x32a10c){var _0x1fc10d=_0x1fc1();return _0x50e6=function(_0x50e6d1,_0x4c452c){_0x50e6d1=_0x50e6d1-0xa3;var _0x205f62=_0x1fc10d[_0x50e6d1];return _0x205f62;},_0x50e6(_0x1dc155,_0x32a10c);}export*from'./group';export*from'./msg';export*from'./notify';function _0x1fc1(){var _0x11f3d9=['9444915ZuKUfk','2020dWvUBo','52255TfdWUG','950201ZyxWlB','8xiakEF','1407KdoGan','7918380godIXk','2812956oVNMlC','402mYyiPG','7348418VtpeAU'];_0x1fc1=function(){return _0x11f3d9;};return _0x1fc1();}export*from'./cache';export*from'./constructor';
|
19
src/core.lib/src/qqnt/entities/msg.d.ts
vendored
19
src/core.lib/src/qqnt/entities/msg.d.ts
vendored
@@ -192,9 +192,26 @@ export interface GrayTipElement {
|
||||
jsonStr: string;
|
||||
};
|
||||
}
|
||||
export declare enum FaceType {
|
||||
normal = 1,// 小黄脸
|
||||
normal2 = 2,// 新小黄脸, 从faceIndex 222开始?
|
||||
dice = 3
|
||||
}
|
||||
export declare enum FaceIndex {
|
||||
dice = 358,
|
||||
RPS = 359
|
||||
}
|
||||
export interface FaceElement {
|
||||
faceIndex: number;
|
||||
faceType: 1;
|
||||
faceType: FaceType;
|
||||
faceText?: string;
|
||||
packId?: string;
|
||||
stickerId?: string;
|
||||
sourceType?: number;
|
||||
stickerType?: number;
|
||||
resultId?: string;
|
||||
surpriseId?: string;
|
||||
randomType?: number;
|
||||
}
|
||||
export interface MarketFaceElement {
|
||||
'itemType': 6;
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0xfba3ea,_0x3005d6){var _0x34cd71=_0xf995,_0x209e47=_0xfba3ea();while(!![]){try{var _0x37f36e=parseInt(_0x34cd71(0x10d))/0x1*(parseInt(_0x34cd71(0x127))/0x2)+parseInt(_0x34cd71(0x125))/0x3*(-parseInt(_0x34cd71(0x114))/0x4)+-parseInt(_0x34cd71(0x124))/0x5*(parseInt(_0x34cd71(0x12b))/0x6)+-parseInt(_0x34cd71(0x11f))/0x7*(parseInt(_0x34cd71(0x123))/0x8)+parseInt(_0x34cd71(0x115))/0x9*(-parseInt(_0x34cd71(0x11c))/0xa)+-parseInt(_0x34cd71(0x11a))/0xb+parseInt(_0x34cd71(0x10f))/0xc;if(_0x37f36e===_0x3005d6)break;else _0x209e47['push'](_0x209e47['shift']());}catch(_0xe614b5){_0x209e47['push'](_0x209e47['shift']());}}}(_0x5908,0x68857));function _0x5908(){var _0x2d25ae=['LVZNp','708940qOsFEx','Txmbm','ADMIN_SET','210TmwDII','INVITED_JOIN','dTIua','DfExN','18528IJenLb','5gsxwvi','3153GBTMxd','INVITE_ME','1550018vOnKUC','XZIQI','NjSEW','reject','2522874ptSBdD','AfVMv','ZCniQ','APPROVE','1ZalulH','1|3|2|0|4|5|6','7715496ffOpLu','ADMIN_UNSET','rtxjX','WAIT_HANDLE','mZNFW','1492OCxZFl','9PxbYWt','REJECT','JElGX','nSuXK','KICK_MEMBER','406692DFqKAs'];_0x5908=function(){return _0x2d25ae;};return _0x5908();}export var GroupNotifyTypes;function _0xf995(_0x2b8da9,_0x26b78a){var _0x590808=_0x5908();return _0xf995=function(_0xf99568,_0xd1f054){_0xf99568=_0xf99568-0x10b;var _0x4b5189=_0x590808[_0xf99568];return _0x4b5189;},_0xf995(_0x2b8da9,_0x26b78a);}(function(_0x4b6b97){var _0x4ccf9a=_0xf995,_0x49ce57={'mZNFW':_0x4ccf9a(0x10e),'LVZNp':_0x4ccf9a(0x11e),'RjpPo':_0x4ccf9a(0x126),'rtxjX':'JOIN_REQUEST','ZCniQ':_0x4ccf9a(0x120),'Txmbm':_0x4ccf9a(0x119),'XZIQI':'MEMBER_EXIT','JElGX':_0x4ccf9a(0x110)},_0x331fa9=_0x49ce57[_0x4ccf9a(0x113)]['split']('|'),_0x471abb=0x0;while(!![]){switch(_0x331fa9[_0x471abb++]){case'0':_0x4b6b97[_0x4b6b97[_0x49ce57[_0x4ccf9a(0x11b)]]=0x8]=_0x49ce57[_0x4ccf9a(0x11b)];continue;case'1':_0x4b6b97[_0x4b6b97[_0x49ce57['RjpPo']]=0x1]=_0x49ce57['RjpPo'];continue;case'2':_0x4b6b97[_0x4b6b97[_0x49ce57[_0x4ccf9a(0x111)]]=0x7]=_0x49ce57['rtxjX'];continue;case'3':_0x4b6b97[_0x4b6b97[_0x49ce57[_0x4ccf9a(0x10b)]]=0x4]=_0x49ce57[_0x4ccf9a(0x10b)];continue;case'4':_0x4b6b97[_0x4b6b97[_0x49ce57['Txmbm']]=0x9]=_0x49ce57[_0x4ccf9a(0x11d)];continue;case'5':_0x4b6b97[_0x4b6b97[_0x49ce57[_0x4ccf9a(0x128)]]=0xb]=_0x49ce57[_0x4ccf9a(0x128)];continue;case'6':_0x4b6b97[_0x4b6b97[_0x49ce57[_0x4ccf9a(0x117)]]=0xc]=_0x49ce57[_0x4ccf9a(0x117)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x181676){var _0x32802f=_0xf995,_0x6f0bc1={'AfVMv':'IGNORE','nSuXK':_0x32802f(0x112),'NjSEW':_0x32802f(0x10c)};_0x181676[_0x181676[_0x6f0bc1[_0x32802f(0x12c)]]=0x0]=_0x6f0bc1[_0x32802f(0x12c)],_0x181676[_0x181676[_0x6f0bc1[_0x32802f(0x118)]]=0x1]=_0x32802f(0x112),_0x181676[_0x181676['APPROVE']=0x2]=_0x6f0bc1[_0x32802f(0x129)],_0x181676[_0x181676[_0x32802f(0x116)]=0x3]=_0x32802f(0x116);}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x326188){var _0x49eadb=_0xf995,_0x20dbca={'DfExN':'approve','dTIua':_0x49eadb(0x12a)};_0x326188[_0x326188[_0x20dbca[_0x49eadb(0x122)]]=0x1]=_0x20dbca['DfExN'],_0x326188[_0x326188[_0x49eadb(0x12a)]=0x2]=_0x20dbca[_0x49eadb(0x121)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
||||
(function(_0x4e65fd,_0x581fb5){var _0x87f250=_0x3174,_0xa04f98=_0x4e65fd();while(!![]){try{var _0x37d483=parseInt(_0x87f250(0x153))/0x1*(-parseInt(_0x87f250(0x144))/0x2)+parseInt(_0x87f250(0x161))/0x3+-parseInt(_0x87f250(0x14a))/0x4*(-parseInt(_0x87f250(0x147))/0x5)+parseInt(_0x87f250(0x15f))/0x6+-parseInt(_0x87f250(0x14f))/0x7*(-parseInt(_0x87f250(0x160))/0x8)+parseInt(_0x87f250(0x150))/0x9*(parseInt(_0x87f250(0x15a))/0xa)+-parseInt(_0x87f250(0x15c))/0xb;if(_0x37d483===_0x581fb5)break;else _0xa04f98['push'](_0xa04f98['shift']());}catch(_0x1bbeeb){_0xa04f98['push'](_0xa04f98['shift']());}}}(_0x5cb7,0x6ba07));export var GroupNotifyTypes;(function(_0x3d5a51){var _0x1fd500=_0x3174,_0x4b4996={'kARXm':_0x1fd500(0x158),'DNXfM':_0x1fd500(0x141),'GIUJJ':_0x1fd500(0x15d),'OIMNY':'INVITED_JOIN','aNVkp':'JOIN_REQUEST','DaDQJ':_0x1fd500(0x155),'VtKDp':_0x1fd500(0x146),'YArYb':_0x1fd500(0x149)},_0x19a383=_0x4b4996[_0x1fd500(0x145)][_0x1fd500(0x157)]('|'),_0x220586=0x0;while(!![]){switch(_0x19a383[_0x220586++]){case'0':_0x3d5a51[_0x3d5a51[_0x4b4996[_0x1fd500(0x154)]]=0x8]=_0x4b4996[_0x1fd500(0x154)];continue;case'1':_0x3d5a51[_0x3d5a51[_0x4b4996[_0x1fd500(0x162)]]=0x9]=_0x4b4996[_0x1fd500(0x162)];continue;case'2':_0x3d5a51[_0x3d5a51[_0x4b4996[_0x1fd500(0x142)]]=0x4]=_0x4b4996[_0x1fd500(0x142)];continue;case'3':_0x3d5a51[_0x3d5a51[_0x4b4996[_0x1fd500(0x148)]]=0x7]=_0x4b4996[_0x1fd500(0x148)];continue;case'4':_0x3d5a51[_0x3d5a51[_0x4b4996['DaDQJ']]=0xc]=_0x4b4996[_0x1fd500(0x15b)];continue;case'5':_0x3d5a51[_0x3d5a51[_0x1fd500(0x146)]=0xb]=_0x4b4996['VtKDp'];continue;case'6':_0x3d5a51[_0x3d5a51[_0x4b4996['YArYb']]=0x1]=_0x4b4996[_0x1fd500(0x14c)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x3174(_0x466573,_0x4a9fef){var _0x5cb7fc=_0x5cb7();return _0x3174=function(_0x317483,_0x26c346){_0x317483=_0x317483-0x140;var _0x1e3ad6=_0x5cb7fc[_0x317483];return _0x1e3ad6;},_0x3174(_0x466573,_0x4a9fef);}function _0x5cb7(){var _0x97c24f=['YBAIt','ADMIN_SET','OIMNY','KYboP','134jtaDMX','kARXm','MEMBER_EXIT','5xPeGsk','aNVkp','INVITE_ME','3111788pxIpHU','EbzZM','YArYb','approve','YLTrW','1144108aplgcs','9StqFin','fTFNZ','WAIT_HANDLE','10281wBEhka','DNXfM','ADMIN_UNSET','IGNORE','split','6|2|3|0|1|5|4','xAyUV','1306490halxRV','DaDQJ','12173788CKZGMB','KICK_MEMBER','reject','2763228uLecGe','16SdtmCi','1621056CLAjxd','GIUJJ','APPROVE'];_0x5cb7=function(){return _0x97c24f;};return _0x5cb7();}export var GroupNotifyStatus;(function(_0x3a6297){var _0x5c3869=_0x3174,_0xf8229e={'YBAIt':_0x5c3869(0x156),'YLTrW':_0x5c3869(0x152),'xAyUV':_0x5c3869(0x163),'EbzZM':'REJECT'};_0x3a6297[_0x3a6297[_0x5c3869(0x156)]=0x0]=_0xf8229e[_0x5c3869(0x140)],_0x3a6297[_0x3a6297[_0x5c3869(0x152)]=0x1]=_0xf8229e[_0x5c3869(0x14e)],_0x3a6297[_0x3a6297[_0xf8229e['xAyUV']]=0x2]=_0xf8229e[_0x5c3869(0x159)],_0x3a6297[_0x3a6297[_0xf8229e[_0x5c3869(0x14b)]]=0x3]=_0xf8229e[_0x5c3869(0x14b)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x5d2ec6){var _0x20c53c=_0x3174,_0x4cb2aa={'KYboP':_0x20c53c(0x14d),'fTFNZ':_0x20c53c(0x15e)};_0x5d2ec6[_0x5d2ec6[_0x4cb2aa[_0x20c53c(0x143)]]=0x1]=_0x4cb2aa[_0x20c53c(0x143)],_0x5d2ec6[_0x5d2ec6[_0x4cb2aa[_0x20c53c(0x151)]]=0x2]=_0x4cb2aa[_0x20c53c(0x151)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
@@ -1 +1 @@
|
||||
(function(_0x1cb01e,_0x24c2f9){var _0x22efc7=_0x5234,_0x4bd7c9=_0x1cb01e();while(!![]){try{var _0x4af665=-parseInt(_0x22efc7(0xfe))/0x1+-parseInt(_0x22efc7(0x107))/0x2+parseInt(_0x22efc7(0x10d))/0x3*(parseInt(_0x22efc7(0x10e))/0x4)+-parseInt(_0x22efc7(0x101))/0x5*(-parseInt(_0x22efc7(0x109))/0x6)+parseInt(_0x22efc7(0x10b))/0x7*(parseInt(_0x22efc7(0x10c))/0x8)+parseInt(_0x22efc7(0x106))/0x9*(-parseInt(_0x22efc7(0xfd))/0xa)+-parseInt(_0x22efc7(0x105))/0xb*(-parseInt(_0x22efc7(0x108))/0xc);if(_0x4af665===_0x24c2f9)break;else _0x4bd7c9['push'](_0x4bd7c9['shift']());}catch(_0x55662d){_0x4bd7c9['push'](_0x4bd7c9['shift']());}}}(_0x1350,0x4f70d));function _0x5234(_0xb81e9e,_0x281f01){var _0x135023=_0x1350();return _0x5234=function(_0x5234bc,_0x2ab278){_0x5234bc=_0x5234bc-0xfd;var _0x2a373c=_0x135023[_0x5234bc];return _0x2a373c;},_0x5234(_0xb81e9e,_0x281f01);}export var Sex;(function(_0x227958){var _0x28b227=_0x5234,_0x2fcc57={'YtWJu':'male','nFAkU':_0x28b227(0x10a),'YRtmk':'unknown'};_0x227958[_0x227958[_0x28b227(0x102)]=0x1]=_0x2fcc57[_0x28b227(0xff)],_0x227958[_0x227958[_0x28b227(0x10a)]=0x2]=_0x2fcc57[_0x28b227(0x103)],_0x227958[_0x227958[_0x28b227(0x104)]=0xff]=_0x2fcc57[_0x28b227(0x100)];}(Sex||(Sex={})));function _0x1350(){var _0x21b635=['nFAkU','unknown','55LKLuMO','22716MQAuKn','818928lnloUS','79164mHVaNn','835182OVMrXu','female','2660XSOfsv','2536iWvhUs','1419051MoBZsf','4OJeLhO','100HFdYaX','283960tXxFLD','YtWJu','YRtmk','15yPxMSg','male'];_0x1350=function(){return _0x21b635;};return _0x1350();}
|
||||
function _0x1a7e(){var _0xd0f553=['998312dFnyiY','2171038GRyBcz','9javMxU','4061370WKKWmE','TXnit','14noUmae','363aEZtmZ','12eTVoBl','184340wgbCYa','female','SbqkB','VWmbF','28748dgtrWK','4717764IsHJdI','1UdlILl','41331917IvNfpN','unknown'];_0x1a7e=function(){return _0xd0f553;};return _0x1a7e();}function _0x255d(_0x5d637a,_0x42bc91){var _0x1a7e79=_0x1a7e();return _0x255d=function(_0x255df1,_0x2f5c5a){_0x255df1=_0x255df1-0xb9;var _0x6427ce=_0x1a7e79[_0x255df1];return _0x6427ce;},_0x255d(_0x5d637a,_0x42bc91);}(function(_0x44e5fb,_0x211db5){var _0x42b3d5=_0x255d,_0xb30228=_0x44e5fb();while(!![]){try{var _0x9f7cbd=-parseInt(_0x42b3d5(0xc6))/0x1*(parseInt(_0x42b3d5(0xb9))/0x2)+-parseInt(_0x42b3d5(0xbe))/0x3*(parseInt(_0x42b3d5(0xc4))/0x4)+parseInt(_0x42b3d5(0xbb))/0x5+-parseInt(_0x42b3d5(0xc5))/0x6*(parseInt(_0x42b3d5(0xbd))/0x7)+-parseInt(_0x42b3d5(0xc9))/0x8+parseInt(_0x42b3d5(0xba))/0x9*(-parseInt(_0x42b3d5(0xc0))/0xa)+parseInt(_0x42b3d5(0xc7))/0xb*(parseInt(_0x42b3d5(0xbf))/0xc);if(_0x9f7cbd===_0x211db5)break;else _0xb30228['push'](_0xb30228['shift']());}catch(_0x23fc14){_0xb30228['push'](_0xb30228['shift']());}}}(_0x1a7e,0xdb6cc));export var Sex;(function(_0x9e1085){var _0x448cc8=_0x255d,_0x5c7856={'SbqkB':'male','TXnit':_0x448cc8(0xc1),'VWmbF':_0x448cc8(0xc8)};_0x9e1085[_0x9e1085[_0x5c7856[_0x448cc8(0xc2)]]=0x1]=_0x5c7856[_0x448cc8(0xc2)],_0x9e1085[_0x9e1085[_0x5c7856[_0x448cc8(0xbc)]]=0x2]=_0x5c7856[_0x448cc8(0xbc)],_0x9e1085[_0x9e1085[_0x5c7856['VWmbF']]=0xff]=_0x5c7856[_0x448cc8(0xc3)];}(Sex||(Sex={})));
|
@@ -1 +1 @@
|
||||
(function(_0xebef34,_0x254841){var _0x38ff39=_0x15a4,_0x4c7314=_0xebef34();while(!![]){try{var _0x9578a4=parseInt(_0x38ff39(0x11b))/0x1+parseInt(_0x38ff39(0x11c))/0x2*(-parseInt(_0x38ff39(0x11e))/0x3)+parseInt(_0x38ff39(0x117))/0x4*(parseInt(_0x38ff39(0x116))/0x5)+-parseInt(_0x38ff39(0x114))/0x6*(parseInt(_0x38ff39(0x118))/0x7)+parseInt(_0x38ff39(0x11d))/0x8*(-parseInt(_0x38ff39(0x11a))/0x9)+-parseInt(_0x38ff39(0x119))/0xa+parseInt(_0x38ff39(0x113))/0xb*(parseInt(_0x38ff39(0x115))/0xc);if(_0x9578a4===_0x254841)break;else _0x4c7314['push'](_0x4c7314['shift']());}catch(_0x51ddb6){_0x4c7314['push'](_0x4c7314['shift']());}}}(_0xf0b3,0xe449c));import _0xd9021b from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';function _0x15a4(_0xe19ac3,_0x45d82c){var _0xf0b3d4=_0xf0b3();return _0x15a4=function(_0x15a4a9,_0x94b41){_0x15a4a9=_0x15a4a9-0x113;var _0x210003=_0xf0b3d4[_0x15a4a9];return _0x210003;},_0x15a4(_0xe19ac3,_0x45d82c);}export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0xf0b3(){var _0x4be83c=['574505jhpCvc','28ZzoWcP','43799kHvXCj','1257780kBmnMR','1617417DXbmNm','708489muGwYc','2IIBYtF','8RpGivl','1020546kMXeUx','3431648yIhxIS','234ODWcFe','12ABbLvz'];_0xf0b3=function(){return _0x4be83c;};return _0xf0b3();}export{_0xd9021b as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';
|
||||
function _0x4233(){var _0xac06a9=['4AUIyAv','780WVbhhm','2OFLmgh','20Ilqxfj','4112LBbMXm','1718845ZSyIiD','574hBoLHk','1098NIFxRX','1989891NgMdSh','223371wxvlmi','533797IAizcC','3368844mrecbz'];_0x4233=function(){return _0xac06a9;};return _0x4233();}(function(_0x24bfa6,_0x233107){var _0x358a4c=_0x5da2,_0xebd235=_0x24bfa6();while(!![]){try{var _0x3291bf=parseInt(_0x358a4c(0x173))/0x1*(parseInt(_0x358a4c(0x178))/0x2)+-parseInt(_0x358a4c(0x172))/0x3*(parseInt(_0x358a4c(0x176))/0x4)+parseInt(_0x358a4c(0x16f))/0x5+parseInt(_0x358a4c(0x177))/0x6*(parseInt(_0x358a4c(0x170))/0x7)+parseInt(_0x358a4c(0x16e))/0x8*(parseInt(_0x358a4c(0x171))/0x9)+-parseInt(_0x358a4c(0x16d))/0xa*(-parseInt(_0x358a4c(0x174))/0xb)+parseInt(_0x358a4c(0x175))/0xc;if(_0x3291bf===_0x233107)break;else _0xebd235['push'](_0xebd235['shift']());}catch(_0x3a345f){_0xebd235['push'](_0xebd235['shift']());}}}(_0x4233,0x56aba));import _0x5ac432 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';function _0x5da2(_0x17faa9,_0x41d39c){var _0x423314=_0x4233();return _0x5da2=function(_0x5da243,_0x4a622a){_0x5da243=_0x5da243-0x16d;var _0x3cbce3=_0x423314[_0x5da243];return _0x3cbce3;},_0x5da2(_0x17faa9,_0x41d39c);}export*as Services from'./services';export{_0x5ac432 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';
|
@@ -1 +1 @@
|
||||
var _0xbb1d9d=_0x4597;(function(_0x1dd1ea,_0x5cc944){var _0x3f56ef=_0x4597,_0x3b36aa=_0x1dd1ea();while(!![]){try{var _0x4ee6c3=parseInt(_0x3f56ef(0x73))/0x1*(-parseInt(_0x3f56ef(0x71))/0x2)+parseInt(_0x3f56ef(0x79))/0x3+-parseInt(_0x3f56ef(0x7c))/0x4*(-parseInt(_0x3f56ef(0x77))/0x5)+-parseInt(_0x3f56ef(0x6d))/0x6+parseInt(_0x3f56ef(0x78))/0x7+parseInt(_0x3f56ef(0x7b))/0x8+-parseInt(_0x3f56ef(0x76))/0x9;if(_0x4ee6c3===_0x5cc944)break;else _0x3b36aa['push'](_0x3b36aa['shift']());}catch(_0xd8b35c){_0x3b36aa['push'](_0x3b36aa['shift']());}}}(_0x47a1,0x5813b));function _0x4597(_0xaefad,_0x3d1025){var _0x47a1a6=_0x47a1();return _0x4597=function(_0x45977a,_0x413f5f){_0x45977a=_0x45977a-0x6a;var _0x722e0d=_0x47a1a6[_0x45977a];return _0x722e0d;},_0x4597(_0xaefad,_0x3d1025);}function _0x47a1(){var _0x2dc8c4=['onDelBatchBuddyInfos','onBlockChanged','onBuddyInfoChange','1330566fScOiU','onCheckBuddySettingResult','onNickUpdated','onBuddyReqChange','22OLUDxo','onSpacePermissionInfos','2188YjThlq','onBuddyReqUnreadCntChange','onAvatarUrlUpdated','4340511JRhcjK','4265GERrEv','4156334xwsWFJ','1216440Arkfrg','onDoubtBuddyReqChange','437248IRgeeC','164slcfoY','onAddMeSettingChanged'];_0x47a1=function(){return _0x2dc8c4;};return _0x47a1();}export class BuddyListener{['onAddBuddyNeedVerify'](_0x501389){}[_0xbb1d9d(0x7d)](_0x301673){}[_0xbb1d9d(0x75)](_0x5c3bbe){}[_0xbb1d9d(0x6b)](_0x48de7a){}['onBuddyDetailInfoChange'](_0x1ebb31){}[_0xbb1d9d(0x6c)](_0x21c4f5){}['onBuddyListChange'](_0x3e4956){}['onBuddyRemarkUpdated'](_0x22b52e){}[_0xbb1d9d(0x70)](_0x603ed2){}[_0xbb1d9d(0x74)](_0x48f78e){}[_0xbb1d9d(0x6e)](_0x3666c7){}[_0xbb1d9d(0x6a)](_0x2ff492){}[_0xbb1d9d(0x7a)](_0x2906d1){}['onDoubtBuddyReqUnreadNumChange'](_0x3812d2){}[_0xbb1d9d(0x6f)](_0x3db0dc){}['onSmartInfos'](_0x3c31c0){}[_0xbb1d9d(0x72)](_0x38c47c){}}
|
||||
var _0x19de79=_0x4817;function _0x4817(_0x4e9f26,_0x39aacc){var _0x9ae40f=_0x9ae4();return _0x4817=function(_0x481725,_0x54ccb8){_0x481725=_0x481725-0x1b6;var _0x4373fb=_0x9ae40f[_0x481725];return _0x4373fb;},_0x4817(_0x4e9f26,_0x39aacc);}function _0x9ae4(){var _0x7a2dca=['onBlockChanged','8mtaCle','onDoubtBuddyReqChange','1282092AnYcsB','60eObfPW','onAddMeSettingChanged','onDelBatchBuddyInfos','onSmartInfos','1781290APPlbB','32ObIQvb','onAddBuddyNeedVerify','547893XcWmIw','onBuddyDetailInfoChange','85014ypzIUb','15144LbyiaJ','onCheckBuddySettingResult','onBuddyReqUnreadCntChange','onBuddyReqChange','onAvatarUrlUpdated','286581nIbbZV','4121843nzaKal','onBuddyListChange','4cOSXDo'];_0x9ae4=function(){return _0x7a2dca;};return _0x9ae4();}(function(_0x39a67b,_0x48dfad){var _0x492a9b=_0x4817,_0x53fd82=_0x39a67b();while(!![]){try{var _0x5bef31=parseInt(_0x492a9b(0x1bc))/0x1*(-parseInt(_0x492a9b(0x1c7))/0x2)+parseInt(_0x492a9b(0x1c2))/0x3*(parseInt(_0x492a9b(0x1c5))/0x4)+parseInt(_0x492a9b(0x1ca))/0x5*(-parseInt(_0x492a9b(0x1bd))/0x6)+parseInt(_0x492a9b(0x1c9))/0x7+-parseInt(_0x492a9b(0x1b8))/0x8*(parseInt(_0x492a9b(0x1ba))/0x9)+parseInt(_0x492a9b(0x1b7))/0xa+parseInt(_0x492a9b(0x1c3))/0xb;if(_0x5bef31===_0x48dfad)break;else _0x53fd82['push'](_0x53fd82['shift']());}catch(_0x45cdcd){_0x53fd82['push'](_0x53fd82['shift']());}}}(_0x9ae4,0x35249));export class BuddyListener{[_0x19de79(0x1b9)](_0x13deb3){}[_0x19de79(0x1cb)](_0x4c4323){}[_0x19de79(0x1c1)](_0x21ae78){}[_0x19de79(0x1c6)](_0x4d795f){}[_0x19de79(0x1bb)](_0x238e0a){}['onBuddyInfoChange'](_0x1dc9a8){}[_0x19de79(0x1c4)](_0x5242b7){}['onBuddyRemarkUpdated'](_0x46fc03){}[_0x19de79(0x1c0)](_0x3e17a6){}[_0x19de79(0x1bf)](_0x1e1da1){}[_0x19de79(0x1be)](_0x53296b){}[_0x19de79(0x1cc)](_0x4816bb){}[_0x19de79(0x1c8)](_0x55e5a5){}['onDoubtBuddyReqUnreadNumChange'](_0x523d05){}['onNickUpdated'](_0x3f660f){}[_0x19de79(0x1b6)](_0x114fea){}['onSpacePermissionInfos'](_0x384ab3){}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
var _0x2e6177=_0x5822;function _0x75a8(){var _0x3d5026=['11683oJhFhW','10596fLpjGo','onLogoutSucceed','127395oAcGlO','onQRCodeGetPicture','onQRCodeLoginSucceed','onLoginState','1482ZaMUUd','onPasswordLoginFailed','onQRCodeSessionQuickLoginFailed','onQRCodeSessionUserScaned','OnConfirmUnusualDeviceFailed','onQQLoginNumLimited','24HEUaaK','onLoginFailed','7500123nMNJqk','onUserLoggedIn','onLoginConnecting','onQRCodeSessionFailed','onQRCodeLoginPollingStarted','530274eaVFqU','5339472boilQS','1192712BYgtXl'];_0x75a8=function(){return _0x3d5026;};return _0x75a8();}function _0x5822(_0x5c2c34,_0x1a557b){var _0x75a8ef=_0x75a8();return _0x5822=function(_0x5822f2,_0x5ba6db){_0x5822f2=_0x5822f2-0x6d;var _0x47b211=_0x75a8ef[_0x5822f2];return _0x47b211;},_0x5822(_0x5c2c34,_0x1a557b);}(function(_0x231218,_0xa4d151){var _0x48093b=_0x5822,_0x5b6966=_0x231218();while(!![]){try{var _0x166721=parseInt(_0x48093b(0x7e))/0x1+-parseInt(_0x48093b(0x82))/0x2*(parseInt(_0x48093b(0x77))/0x3)+-parseInt(_0x48093b(0x80))/0x4+-parseInt(_0x48093b(0x6d))/0x5+-parseInt(_0x48093b(0x71))/0x6*(-parseInt(_0x48093b(0x81))/0x7)+parseInt(_0x48093b(0x7f))/0x8+-parseInt(_0x48093b(0x79))/0x9;if(_0x166721===_0xa4d151)break;else _0x5b6966['push'](_0x5b6966['shift']());}catch(_0x36f0a8){_0x5b6966['push'](_0x5b6966['shift']());}}}(_0x75a8,0x643c3));export class LoginListener{['onLoginConnected'](..._0x11fbd4){}['onLoginDisConnected'](..._0xcdb04a){}[_0x2e6177(0x7b)](..._0x2ddc2c){}[_0x2e6177(0x6e)](_0x22ed28){}[_0x2e6177(0x7d)](..._0x209e5f){}[_0x2e6177(0x74)](..._0x834fd1){}[_0x2e6177(0x6f)](..._0x565b70){}[_0x2e6177(0x7c)](..._0x26bc3d){}[_0x2e6177(0x78)](..._0x3aaaaf){}[_0x2e6177(0x83)](..._0x394182){}['onLogoutFailed'](..._0xd602f9){}[_0x2e6177(0x7a)](..._0x4b4c0e){}[_0x2e6177(0x73)](..._0x15a8cf){}[_0x2e6177(0x72)](..._0x53f397){}[_0x2e6177(0x75)](..._0x5310e5){}[_0x2e6177(0x76)](..._0x443fdc){}[_0x2e6177(0x70)](..._0x363b34){}}
|
||||
function _0x1c06(_0x330064,_0x20c17f){var _0x43f4a1=_0x43f4();return _0x1c06=function(_0x1c0685,_0x53e9d4){_0x1c0685=_0x1c0685-0x11d;var _0x2020b5=_0x43f4a1[_0x1c0685];return _0x2020b5;},_0x1c06(_0x330064,_0x20c17f);}var _0x185456=_0x1c06;function _0x43f4(){var _0x12fd38=['35DNfuBc','onQRCodeLoginSucceed','onLoginConnected','2tqaecq','onLogoutFailed','1222776EIIKkt','onQRCodeSessionUserScaned','onQRCodeLoginPollingStarted','OnConfirmUnusualDeviceFailed','onQRCodeSessionQuickLoginFailed','3245030UuHsAb','onQRCodeSessionFailed','4648890OexhdD','860414qXmATT','onPasswordLoginFailed','onLoginFailed','onQQLoginNumLimited','onLogoutSucceed','181836ysOKvp','26446023aomwBP','704288bUcxVz'];_0x43f4=function(){return _0x12fd38;};return _0x43f4();}(function(_0x16ef70,_0x14752b){var _0x3d0e62=_0x1c06,_0x5b120c=_0x16ef70();while(!![]){try{var _0x43d865=-parseInt(_0x3d0e62(0x11e))/0x1*(parseInt(_0x3d0e62(0x129))/0x2)+-parseInt(_0x3d0e62(0x123))/0x3+parseInt(_0x3d0e62(0x12b))/0x4+-parseInt(_0x3d0e62(0x130))/0x5+-parseInt(_0x3d0e62(0x11d))/0x6+parseInt(_0x3d0e62(0x126))/0x7*(-parseInt(_0x3d0e62(0x125))/0x8)+parseInt(_0x3d0e62(0x124))/0x9;if(_0x43d865===_0x14752b)break;else _0x5b120c['push'](_0x5b120c['shift']());}catch(_0x328d7d){_0x5b120c['push'](_0x5b120c['shift']());}}}(_0x43f4,0x7016a));export class LoginListener{[_0x185456(0x128)](..._0xc23bdc){}['onLoginDisConnected'](..._0x3a9a33){}['onLoginConnecting'](..._0x40eb05){}['onQRCodeGetPicture'](_0x17f3ad){}[_0x185456(0x12d)](..._0x3f68c7){}[_0x185456(0x12c)](..._0x2e836b){}[_0x185456(0x127)](..._0x470e17){}[_0x185456(0x131)](..._0x389eaf){}[_0x185456(0x120)](..._0x534f04){}[_0x185456(0x122)](..._0x26e5db){}[_0x185456(0x12a)](..._0x414227){}['onUserLoggedIn'](..._0x227bb5){}[_0x185456(0x12f)](..._0x1d4926){}[_0x185456(0x11f)](..._0x37209a){}[_0x185456(0x12e)](..._0x52b0a4){}[_0x185456(0x121)](..._0x330993){}['onLoginState'](..._0x1717e8){}}
|
@@ -1 +1 @@
|
||||
var _0x4a1306=_0x2dbf;function _0x2dbf(_0x38fd41,_0x99bc5c){var _0x41583b=_0x4158();return _0x2dbf=function(_0x2dbf0f,_0x72eef2){_0x2dbf0f=_0x2dbf0f-0x127;var _0x532257=_0x41583b[_0x2dbf0f];return _0x532257;},_0x2dbf(_0x38fd41,_0x99bc5c);}(function(_0x48aaa0,_0x379f36){var _0x21d83f=_0x2dbf,_0x4de193=_0x48aaa0();while(!![]){try{var _0xc40b0c=-parseInt(_0x21d83f(0x159))/0x1+parseInt(_0x21d83f(0x12e))/0x2*(-parseInt(_0x21d83f(0x134))/0x3)+parseInt(_0x21d83f(0x14b))/0x4+parseInt(_0x21d83f(0x135))/0x5+-parseInt(_0x21d83f(0x128))/0x6*(parseInt(_0x21d83f(0x14d))/0x7)+parseInt(_0x21d83f(0x141))/0x8+-parseInt(_0x21d83f(0x130))/0x9;if(_0xc40b0c===_0x379f36)break;else _0x4de193['push'](_0x4de193['shift']());}catch(_0x7f737d){_0x4de193['push'](_0x4de193['shift']());}}}(_0x4158,0x2714d));function _0x4158(){var _0x7ab159=['onlineStatusBigIconDownloadPush','onFeedEventUpdate','onRecvUDCFlag','onMsgDelete','onChannelFreqLimitInfoUpdate','onMsgQRCodeStatusChanged','onCustomWithdrawConfigUpdate','onRichMediaUploadComplete','1828832StIkSm','onRichMediaDownloadComplete','onlineStatusSmallIconDownloadPush','onEmojiResourceUpdate','onGuildMsgAbFlagChanged','onRecvOnlineFileMsg','onUserChannelTabStatusChanged','onUserOnlineStatusChanged','onSendMsgError','onReadFeedEventUpdate','91604MlhxuM','onRecvMsgSvrRspTransInfo','519547oZdOTC','onUnreadCntUpdate','onMsgSecurityNotify','onNtMsgSyncEnd','onUnreadCntAfterFirstView','onRichMediaProgerssUpdate','onMsgInfoListAdd','onRedTouchChanged','onNtMsgSyncStart','onAddSendMsg','onMsgRecall','onGroupGuildUpdate','68103pCAyUE','onGroupTransferInfoAdd','onHitCsRelatedEmojiResult','onGrabPasswordRedBag','onEmojiDownloadComplete','onUserTabStatusChanged','onGuildInteractiveUpdate','onMsgSettingUpdate','onMsgAbstractUpdate','onLineDev','onFileMsgCome','onMsgWithRichLinkInfoUpdate','18tPWNWT','onHitEmojiKeywordResult','onUserSecQualityChanged','onLogLevelChanged','onBroadcastHelperProgressUpdate','onImportOldDbProgressUpdate','14sOGspa','onMsgEventListUpdate','634041VZGvZW','onTempChatInfoUpdate','onRecvSysMsg','onGroupFileInfoAdd','12936HANJEG','1499855DtiEqw','onFirstViewGroupGuildMapping','onNtFirstViewMsgSyncEnd','onKickedOffLine'];_0x4158=function(){return _0x7ab159;};return _0x4158();}export class MsgListener{[_0x4a1306(0x156)](_0xa4ed18){}['onBroadcastHelperDownloadComplete'](_0x3071de){}[_0x4a1306(0x12c)](_0x3f5869){}[_0x4a1306(0x13d)](_0x25617d,_0x59028a,_0x3970e6){}['onContactUnreadCntUpdate'](_0x1dc532){}[_0x4a1306(0x13f)](_0x4526c0){}['onDraftUpdate'](_0x3da467,_0x4fd248,_0x4d1d4a){}[_0x4a1306(0x15d)](_0x1873ae){}[_0x4a1306(0x144)](_0x9f545a){}[_0x4a1306(0x13a)](_0x3a2ab4){}[_0x4a1306(0x163)](_0x6c66b3){}['onFirstViewDirectMsgUpdate'](_0x129aa3){}[_0x4a1306(0x136)](_0x593aa6){}[_0x4a1306(0x15c)](_0x352cc4,_0x22862d,_0x363b20,_0x1fd27f,_0x21a9f6){}[_0x4a1306(0x133)](_0x459b4b){}['onGroupFileInfoUpdate'](_0x510623){}[_0x4a1306(0x158)](_0x37d385){}[_0x4a1306(0x15a)](_0x30abcc){}['onGroupTransferInfoUpdate'](_0x340289){}[_0x4a1306(0x15f)](_0x22732b){}[_0x4a1306(0x145)](_0xc90842){}['onGuildNotificationAbstractUpdate'](_0x57af91){}[_0x4a1306(0x15b)](_0x20445c){}[_0x4a1306(0x129)](_0x4a78ce){}['onHitRelatedEmojiResult'](_0x33f6db){}[_0x4a1306(0x12d)](_0x3672a7){}['onInputStatusPush'](_0x5fd1a9){}[_0x4a1306(0x138)](_0x2e5b9c){}[_0x4a1306(0x162)](_0x50b5e9){}[_0x4a1306(0x12b)](_0x2b9522){}[_0x4a1306(0x161)](_0x9e7422){}['onMsgBoxChanged'](_0x5299fc){}[_0x4a1306(0x13c)](_0x2bdc6a,_0x2103bc){}[_0x4a1306(0x12f)](_0x38e260){}[_0x4a1306(0x153)](_0x424122){}['onMsgInfoListUpdate'](_0x26c26b){}[_0x4a1306(0x13e)](_0x2bee6d){}[_0x4a1306(0x157)](_0x3638f5,_0x59ee12,_0x488bb8){}[_0x4a1306(0x14f)](_0x314e52){}[_0x4a1306(0x160)](_0x3e176d){}[_0x4a1306(0x137)](){}[_0x4a1306(0x150)](){}[_0x4a1306(0x155)](){}[_0x4a1306(0x14a)](_0x37f7c2){}['onRecvGroupGuildFlag'](_0x48af1d){}['onRecvMsg'](_0x361cbc){}[_0x4a1306(0x14c)](_0x5e3e44,_0x25efc2,_0x563d7d,_0xb5bbfe,_0x5b319f,_0x37b786){}[_0x4a1306(0x146)](_0x9e2641){}['onRecvS2CMsg'](_0xa51c0c){}[_0x4a1306(0x132)](_0x47d627){}[_0x4a1306(0x13b)](_0x1d59a3){}[_0x4a1306(0x142)](_0x3e24a7){}[_0x4a1306(0x152)](_0x241bbb){}[_0x4a1306(0x140)](_0x1de099){}['onSearchGroupFileInfoUpdate'](_0x55eaff){}[_0x4a1306(0x149)](_0x400d50,_0xa64101,_0x33d014,_0x2ce6e8){}['onSysMsgNotification'](_0x2796ba,_0x5e529b,_0x42ee2c,_0x928b5e){}[_0x4a1306(0x131)](_0x2d3a78){}[_0x4a1306(0x151)](_0x26e8ca){}[_0x4a1306(0x14e)](_0x175eeb){}[_0x4a1306(0x147)](_0x5c7e6b){}[_0x4a1306(0x148)](_0x50094e){}[_0x4a1306(0x15e)](_0x364e59){}[_0x4a1306(0x139)](_0x71a425,_0x27bbc8,_0x455745){}[_0x4a1306(0x143)](_0x37b0af,_0x3ec7b7,_0x213932){}[_0x4a1306(0x12a)](..._0x5f102f){}[_0x4a1306(0x127)](..._0x48a4cd){}[_0x4a1306(0x154)](..._0x312ea0){}}
|
||||
function _0x5717(_0xcbcfe2,_0x4280b7){var _0x9d98f5=_0x9d98();return _0x5717=function(_0x571728,_0x3c9ea5){_0x571728=_0x571728-0x1db;var _0x4ab97b=_0x9d98f5[_0x571728];return _0x4ab97b;},_0x5717(_0xcbcfe2,_0x4280b7);}var _0x4dde70=_0x5717;(function(_0x5366c4,_0x11fe40){var _0x38b26b=_0x5717,_0x114e30=_0x5366c4();while(!![]){try{var _0x3df5e8=parseInt(_0x38b26b(0x207))/0x1+parseInt(_0x38b26b(0x1df))/0x2+parseInt(_0x38b26b(0x1e7))/0x3*(parseInt(_0x38b26b(0x1e0))/0x4)+parseInt(_0x38b26b(0x216))/0x5*(-parseInt(_0x38b26b(0x20a))/0x6)+parseInt(_0x38b26b(0x214))/0x7*(-parseInt(_0x38b26b(0x213))/0x8)+-parseInt(_0x38b26b(0x1ea))/0x9*(parseInt(_0x38b26b(0x1de))/0xa)+parseInt(_0x38b26b(0x1e9))/0xb;if(_0x3df5e8===_0x11fe40)break;else _0x114e30['push'](_0x114e30['shift']());}catch(_0x202cf4){_0x114e30['push'](_0x114e30['shift']());}}}(_0x9d98,0x4b9b2));export class MsgListener{['onAddSendMsg'](_0x52e12d){}[_0x4dde70(0x1e5)](_0x459079){}[_0x4dde70(0x1e1)](_0x2ee4fe){}['onChannelFreqLimitInfoUpdate'](_0x4e20d4,_0x53b06f,_0x173033){}['onContactUnreadCntUpdate'](_0x203778){}['onCustomWithdrawConfigUpdate'](_0x1b7acf){}[_0x4dde70(0x1f8)](_0x46a8d0,_0x2871cc,_0x108680){}[_0x4dde70(0x1f2)](_0x2108a8){}[_0x4dde70(0x1f3)](_0x1f6053){}['onFeedEventUpdate'](_0xa61377){}[_0x4dde70(0x202)](_0x5e287a){}[_0x4dde70(0x210)](_0x302589){}[_0x4dde70(0x1f6)](_0x3c7596){}[_0x4dde70(0x1db)](_0x56a9fc,_0x28aab0,_0x4cbebc,_0x3bdf8e,_0x4aec1e){}[_0x4dde70(0x1fb)](_0x14da27){}[_0x4dde70(0x1e2)](_0x6869e9){}[_0x4dde70(0x200)](_0x12df3e){}[_0x4dde70(0x212)](_0xbb1bc0){}[_0x4dde70(0x1fa)](_0x38751e){}[_0x4dde70(0x1ec)](_0x349671){}[_0x4dde70(0x208)](_0x94baec){}[_0x4dde70(0x1f5)](_0x2328ec){}[_0x4dde70(0x205)](_0x56a1b1){}[_0x4dde70(0x20f)](_0x59b240){}[_0x4dde70(0x1f9)](_0x28d958){}['onImportOldDbProgressUpdate'](_0x11a33d){}[_0x4dde70(0x204)](_0x5c7351){}[_0x4dde70(0x1fd)](_0x59d0f0){}['onLineDev'](_0x3f5058){}[_0x4dde70(0x1f1)](_0x454586){}[_0x4dde70(0x20e)](_0x345f93){}[_0x4dde70(0x20d)](_0x7ebcd4){}[_0x4dde70(0x1dc)](_0x3f077b,_0x45bfec){}[_0x4dde70(0x1f0)](_0x4acac6){}[_0x4dde70(0x1ff)](_0x88f758){}['onMsgInfoListUpdate'](_0x4c58d5){}[_0x4dde70(0x1fc)](_0x365162){}[_0x4dde70(0x20c)](_0x22280e,_0xd763c2,_0x268bc1){}[_0x4dde70(0x1ef)](_0xb8904d){}['onMsgSettingUpdate'](_0x277a02){}['onNtFirstViewMsgSyncEnd'](){}['onNtMsgSyncEnd'](){}[_0x4dde70(0x209)](){}['onReadFeedEventUpdate'](_0x22e683){}[_0x4dde70(0x1f4)](_0x228641){}[_0x4dde70(0x206)](_0x238cc8){}[_0x4dde70(0x215)](_0x5b5c03,_0x1e1f02,_0x45f3e7,_0x25c809,_0x6670ed,_0x1415ce){}[_0x4dde70(0x1e3)](_0x1508d9){}[_0x4dde70(0x1e4)](_0x217567){}['onRecvSysMsg'](_0x8c9e9d){}[_0x4dde70(0x1dd)](_0x1c0820){}[_0x4dde70(0x217)](_0x559ca2){}[_0x4dde70(0x1eb)](_0x23e7ac){}[_0x4dde70(0x201)](_0x1d726d){}['onSearchGroupFileInfoUpdate'](_0x4a2029){}[_0x4dde70(0x20b)](_0x18991,_0x233c3b,_0x46153c,_0x53b534){}[_0x4dde70(0x1e8)](_0x11e52f,_0x3bd9f9,_0x2bfc2e,_0x3f34c5){}['onTempChatInfoUpdate'](_0x402f4f){}[_0x4dde70(0x1ed)](_0x13f715){}[_0x4dde70(0x1ee)](_0x4caa37){}[_0x4dde70(0x203)](_0x23a223){}['onUserOnlineStatusChanged'](_0x1f5493){}[_0x4dde70(0x1e6)](_0x9a6f90){}['onlineStatusBigIconDownloadPush'](_0x5638ff,_0xd6ee4c,_0x41d936){}[_0x4dde70(0x1fe)](_0xbaab1e,_0x23186c,_0x241faf){}[_0x4dde70(0x211)](..._0x2aab5a){}[_0x4dde70(0x1f7)](..._0x5e415f){}['onRedTouchChanged'](..._0x33a563){}}function _0x9d98(){var _0x94d753=['369147IvZkeg','onSysMsgNotification','13269520NMAmhQ','2326986fkSTtg','onRichMediaProgerssUpdate','onGuildInteractiveUpdate','onUnreadCntAfterFirstView','onUnreadCntUpdate','onMsgSecurityNotify','onMsgEventListUpdate','onLogLevelChanged','onEmojiDownloadComplete','onEmojiResourceUpdate','onRecvGroupGuildFlag','onGuildNotificationAbstractUpdate','onFirstViewGroupGuildMapping','onMsgWithRichLinkInfoUpdate','onDraftUpdate','onHitRelatedEmojiResult','onGroupTransferInfoUpdate','onGroupFileInfoAdd','onMsgQRCodeStatusChanged','onKickedOffLine','onlineStatusSmallIconDownloadPush','onMsgInfoListAdd','onGroupGuildUpdate','onRichMediaUploadComplete','onFileMsgCome','onUserChannelTabStatusChanged','onInputStatusPush','onHitCsRelatedEmojiResult','onRecvMsg','23100MVPrBj','onGuildMsgAbFlagChanged','onNtMsgSyncStart','12zOCZpx','onSendMsgError','onMsgRecall','onMsgBoxChanged','onMsgAbstractUpdate','onHitEmojiKeywordResult','onFirstViewDirectMsgUpdate','onUserSecQualityChanged','onGroupTransferInfoAdd','816dbFfAa','34223TXxYin','onRecvMsgSvrRspTransInfo','276670FACrbA','onRichMediaDownloadComplete','onGrabPasswordRedBag','onMsgDelete','onRecvUDCFlag','20TiLfRu','167334MitTkQ','4IiVjmk','onBroadcastHelperProgressUpdate','onGroupFileInfoUpdate','onRecvOnlineFileMsg','onRecvS2CMsg','onBroadcastHelperDownloadComplete','onUserTabStatusChanged'];_0x9d98=function(){return _0x94d753;};return _0x9d98();}
|
@@ -1 +1 @@
|
||||
function _0xa02b(){var _0x38b05f=['3WHcKni','onProfileDetailInfoChanged','2318520meNvvA','9HiOAZq','15xirqUi','912810wgZoGe','onStatusUpdate','12vlqEyM','410568BVbeyP','22OpMqRq','40652zuoprD','onStrangerRemarkChanged','2021692eBeQXU','1769565vVqUcL','1055298TvJtNI'];_0xa02b=function(){return _0x38b05f;};return _0xa02b();}function _0x24d7(_0x6389c8,_0x1a7f4c){var _0xa02b55=_0xa02b();return _0x24d7=function(_0x24d720,_0x34c9a7){_0x24d720=_0x24d720-0x1a2;var _0x5386c4=_0xa02b55[_0x24d720];return _0x5386c4;},_0x24d7(_0x6389c8,_0x1a7f4c);}var _0x3581e7=_0x24d7;(function(_0xc786b7,_0x3c1b81){var _0x41992c=_0x24d7,_0x1136a9=_0xc786b7();while(!![]){try{var _0x1267e1=-parseInt(_0x41992c(0x1a7))/0x1*(parseInt(_0x41992c(0x1a4))/0x2)+-parseInt(_0x41992c(0x1ac))/0x3*(-parseInt(_0x41992c(0x1a9))/0x4)+-parseInt(_0x41992c(0x1b0))/0x5*(-parseInt(_0x41992c(0x1ab))/0x6)+-parseInt(_0x41992c(0x1aa))/0x7+-parseInt(_0x41992c(0x1ae))/0x8*(parseInt(_0x41992c(0x1af))/0x9)+parseInt(_0x41992c(0x1a2))/0xa+parseInt(_0x41992c(0x1a6))/0xb*(-parseInt(_0x41992c(0x1a5))/0xc);if(_0x1267e1===_0x3c1b81)break;else _0x1136a9['push'](_0x1136a9['shift']());}catch(_0x515b59){_0x1136a9['push'](_0x1136a9['shift']());}}}(_0xa02b,0x41c5b));export class ProfileListener{['onProfileSimpleChanged'](..._0x461b64){}[_0x3581e7(0x1ad)](_0x1deda0){}[_0x3581e7(0x1a3)](..._0x6740ba){}['onSelfStatusChanged'](..._0x19bc69){}[_0x3581e7(0x1a8)](..._0x481248){}}
|
||||
var _0x4d2437=_0x4e8e;function _0x5893(){var _0x1717b8=['5223078Ncgfpv','4035516uKwbjW','5014495BdDyqS','onStrangerRemarkChanged','11747943MZmSev','onProfileDetailInfoChanged','onStatusUpdate','2HesvFZ','2891560ArBJJH','413202SsPKua','8zbBNxQ','6IWIzzF','3659088cjMXdC'];_0x5893=function(){return _0x1717b8;};return _0x5893();}(function(_0x987d8d,_0x29d94d){var _0x1d6715=_0x4e8e,_0xc01cf0=_0x987d8d();while(!![]){try{var _0x4d8fd2=-parseInt(_0x1d6715(0x1d2))/0x1*(-parseInt(_0x1d6715(0x1c7))/0x2)+parseInt(_0x1d6715(0x1cc))/0x3+-parseInt(_0x1d6715(0x1ca))/0x4+-parseInt(_0x1d6715(0x1cd))/0x5*(parseInt(_0x1d6715(0x1c9))/0x6)+-parseInt(_0x1d6715(0x1cb))/0x7+-parseInt(_0x1d6715(0x1c8))/0x8*(-parseInt(_0x1d6715(0x1cf))/0x9)+parseInt(_0x1d6715(0x1d3))/0xa;if(_0x4d8fd2===_0x29d94d)break;else _0xc01cf0['push'](_0xc01cf0['shift']());}catch(_0x6cb389){_0xc01cf0['push'](_0xc01cf0['shift']());}}}(_0x5893,0xa8388));function _0x4e8e(_0x504f07,_0x4e0d5b){var _0x589391=_0x5893();return _0x4e8e=function(_0x4e8e00,_0x578f3e){_0x4e8e00=_0x4e8e00-0x1c7;var _0x1511aa=_0x589391[_0x4e8e00];return _0x1511aa;},_0x4e8e(_0x504f07,_0x4e0d5b);}export class ProfileListener{['onProfileSimpleChanged'](..._0x554eb1){}[_0x4d2437(0x1d0)](_0x2321bd){}[_0x4d2437(0x1d1)](..._0x4019c8){}['onSelfStatusChanged'](..._0x1af695){}[_0x4d2437(0x1ce)](..._0x5ff72d){}}
|
@@ -1 +1 @@
|
||||
var _0x38fd0d=_0xf381;function _0x2330(){var _0x1ecf00=['139286iTHYqj','onUserOnlineResult','1320992NMjMTt','100VrEbtn','onGetSelfTinyId','1uJtDES','415010XUkzAP','onNTSessionCreate','6JAroNX','4407kFZeMi','311210oJXcNJ','onGProSessionCreate','250VbPYcf','onOpentelemetryInit','1686036cBOPAJ','42317sQoTDU','9nUBayg'];_0x2330=function(){return _0x1ecf00;};return _0x2330();}(function(_0x10a438,_0x5e6570){var _0x3e2558=_0xf381,_0x1b6791=_0x10a438();while(!![]){try{var _0x4f3bc6=parseInt(_0x3e2558(0x184))/0x1*(-parseInt(_0x3e2558(0x189))/0x2)+parseInt(_0x3e2558(0x188))/0x3*(-parseInt(_0x3e2558(0x182))/0x4)+-parseInt(_0x3e2558(0x185))/0x5+parseInt(_0x3e2558(0x187))/0x6*(-parseInt(_0x3e2558(0x17f))/0x7)+-parseInt(_0x3e2558(0x181))/0x8*(-parseInt(_0x3e2558(0x17e))/0x9)+-parseInt(_0x3e2558(0x18b))/0xa*(-parseInt(_0x3e2558(0x17d))/0xb)+parseInt(_0x3e2558(0x17c))/0xc;if(_0x4f3bc6===_0x5e6570)break;else _0x1b6791['push'](_0x1b6791['shift']());}catch(_0x5933ba){_0x1b6791['push'](_0x1b6791['shift']());}}}(_0x2330,0x1a04c));function _0xf381(_0x235bea,_0x3f1ac8){var _0x233055=_0x2330();return _0xf381=function(_0xf3814,_0x3db72e){_0xf3814=_0xf3814-0x17b;var _0x40dca2=_0x233055[_0xf3814];return _0x40dca2;},_0xf381(_0x235bea,_0x3f1ac8);}export class SessionListener{[_0x38fd0d(0x186)](_0x5710e4){}[_0x38fd0d(0x18a)](_0x5df262){}['onSessionInitComplete'](_0x3cc829){}[_0x38fd0d(0x17b)](_0x1c961d){}[_0x38fd0d(0x180)](_0x3763b1){}[_0x38fd0d(0x183)](_0x34b926){}}
|
||||
function _0x3ad8(){var _0x5f424d=['onGetSelfTinyId','2657920hsdvve','onGProSessionCreate','5021274lfCVdQ','507369BdWwsV','6650805RtUhyS','4OVoKSH','onNTSessionCreate','5042968UkMuTf','5tiUPxm','742541DHFUvu','1447119PxRCmQ'];_0x3ad8=function(){return _0x5f424d;};return _0x3ad8();}var _0x374c8f=_0x5b10;(function(_0x3b86db,_0x55a50f){var _0x15e561=_0x5b10,_0x1869ab=_0x3b86db();while(!![]){try{var _0x1d2c26=-parseInt(_0x15e561(0x19c))/0x1+parseInt(_0x15e561(0x198))/0x2*(-parseInt(_0x15e561(0x196))/0x3)+parseInt(_0x15e561(0x193))/0x4+parseInt(_0x15e561(0x19b))/0x5*(parseInt(_0x15e561(0x195))/0x6)+parseInt(_0x15e561(0x197))/0x7+-parseInt(_0x15e561(0x19a))/0x8+-parseInt(_0x15e561(0x19d))/0x9;if(_0x1d2c26===_0x55a50f)break;else _0x1869ab['push'](_0x1869ab['shift']());}catch(_0x331744){_0x1869ab['push'](_0x1869ab['shift']());}}}(_0x3ad8,0x8d7c5));function _0x5b10(_0x2ec80,_0x28b47c){var _0x3ad802=_0x3ad8();return _0x5b10=function(_0x5b105b,_0x22d503){_0x5b105b=_0x5b105b-0x192;var _0x32a031=_0x3ad802[_0x5b105b];return _0x32a031;},_0x5b10(_0x2ec80,_0x28b47c);}export class SessionListener{[_0x374c8f(0x199)](_0xe67085){}[_0x374c8f(0x194)](_0x243462){}['onSessionInitComplete'](_0x48072c){}['onOpentelemetryInit'](_0x100d43){}['onUserOnlineResult'](_0x15917b){}[_0x374c8f(0x192)](_0x2efccf){}}
|
@@ -1 +1 @@
|
||||
function _0x11be(){var _0x437266=['3qBCYSX','28ggHEEs','1166216woSBCP','272972NsOsYC','87410Niolyw','1921532sXiaHi','36tmOJqF','2608260ymgbbU','517WVEJlS','9emAsQD','137748GzgQBv','53166mzwvzi'];_0x11be=function(){return _0x437266;};return _0x11be();}(function(_0xcfbc2b,_0x4ee88c){var _0x4106a8=_0x3048,_0x3991f2=_0xcfbc2b();while(!![]){try{var _0x396463=parseInt(_0x4106a8(0xf3))/0x1*(-parseInt(_0x4106a8(0xf5))/0x2)+-parseInt(_0x4106a8(0xf4))/0x3*(-parseInt(_0x4106a8(0xed))/0x4)+parseInt(_0x4106a8(0xef))/0x5+-parseInt(_0x4106a8(0xee))/0x6*(parseInt(_0x4106a8(0xf7))/0x7)+parseInt(_0x4106a8(0xf6))/0x8*(-parseInt(_0x4106a8(0xf1))/0x9)+-parseInt(_0x4106a8(0xf8))/0xa+-parseInt(_0x4106a8(0xf0))/0xb*(-parseInt(_0x4106a8(0xf2))/0xc);if(_0x396463===_0x4ee88c)break;else _0x3991f2['push'](_0x3991f2['shift']());}catch(_0x2bdc5c){_0x3991f2['push'](_0x3991f2['shift']());}}}(_0x11be,0x63c9a));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x3048(_0x2bca97,_0x3acd32){var _0x11befa=_0x11be();return _0x3048=function(_0x30480c,_0x13397b){_0x30480c=_0x30480c-0xed;var _0x1559a9=_0x11befa[_0x30480c];return _0x1559a9;},_0x3048(_0x2bca97,_0x3acd32);}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener\x20';
|
||||
function _0x246e(){var _0x5aa9c5=['72fNXJDi','13028608uTlZIj','338315poUzwx','6pnAcpd','4SikUcf','4657566KkUoZt','12883731ErwJfz','8333082lGbVxJ','20435790CPVluX','31058ZEXaUi'];_0x246e=function(){return _0x5aa9c5;};return _0x246e();}(function(_0x159bb7,_0x810ae4){var _0x40206b=_0x34fb,_0x13b030=_0x159bb7();while(!![]){try{var _0x43764b=-parseInt(_0x40206b(0x1b3))/0x1*(-parseInt(_0x40206b(0x1b4))/0x2)+parseInt(_0x40206b(0x1b9))/0x3*(-parseInt(_0x40206b(0x1b8))/0x4)+-parseInt(_0x40206b(0x1b6))/0x5*(-parseInt(_0x40206b(0x1b7))/0x6)+parseInt(_0x40206b(0x1ba))/0x7+-parseInt(_0x40206b(0x1b5))/0x8+-parseInt(_0x40206b(0x1bb))/0x9+parseInt(_0x40206b(0x1bc))/0xa;if(_0x43764b===_0x810ae4)break;else _0x13b030['push'](_0x13b030['shift']());}catch(_0x2f90b9){_0x13b030['push'](_0x13b030['shift']());}}}(_0x246e,0xeb133));function _0x34fb(_0x4e1f00,_0x4dec5f){var _0x246e4c=_0x246e();return _0x34fb=function(_0x34fbca,_0x359e1d){_0x34fbca=_0x34fbca-0x1b3;var _0x367d20=_0x246e4c[_0x34fbca];return _0x367d20;},_0x34fb(_0x4e1f00,_0x4dec5f);}export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener\x20';
|
@@ -2,7 +2,7 @@ import { NodeIKernelGroupListener } from '@/core/qqnt/listeners/NodeIKernelGroup
|
||||
import { GroupMember, GroupMemberRole, GroupNotifyTypes, GroupRequestOperateTypes } from '@/core/qqnt/entities';
|
||||
import { GeneralCallResult } from '@/core/qqnt/services/common';
|
||||
export interface NodeIKernelGroupService {
|
||||
addKernelGroupListener(listener: NodeIKernelGroupListener): void;
|
||||
addKernelGroupListener(listener: NodeIKernelGroupListener): number;
|
||||
removeKernelGroupListener(listenerId: unknown): void;
|
||||
createMemberListScene(groupCode: string, scene: string): string;
|
||||
destroyMemberListScene(): void;
|
||||
|
@@ -1 +1 @@
|
||||
(function(_0xf57ac,_0x4e1401){var _0x46258c=_0x53b0,_0xfe53e2=_0xf57ac();while(!![]){try{var _0x5633ab=-parseInt(_0x46258c(0x14b))/0x1+parseInt(_0x46258c(0x14c))/0x2+parseInt(_0x46258c(0x147))/0x3+-parseInt(_0x46258c(0x149))/0x4+parseInt(_0x46258c(0x146))/0x5+parseInt(_0x46258c(0x145))/0x6+parseInt(_0x46258c(0x14a))/0x7*(-parseInt(_0x46258c(0x148))/0x8);if(_0x5633ab===_0x4e1401)break;else _0xfe53e2['push'](_0xfe53e2['shift']());}catch(_0x38431f){_0xfe53e2['push'](_0xfe53e2['shift']());}}}(_0x20ee,0x33147));export var GeneralCallResultStatus;(function(_0x37ab25){_0x37ab25[_0x37ab25['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x53b0(_0x1938a,_0x1b76a9){var _0x20ee1e=_0x20ee();return _0x53b0=function(_0x53b031,_0x341bcf){_0x53b031=_0x53b031-0x145;var _0x5328a7=_0x20ee1e[_0x53b031];return _0x5328a7;},_0x53b0(_0x1938a,_0x1b76a9);}function _0x20ee(){var _0xa70ee7=['290780JUuSuv','1232220gXTcfJ','24EebQwM','1231608MshYYG','986097pTTCCk','75813cEJRVN','605172KGevCI','1464414qlBfLB'];_0x20ee=function(){return _0xa70ee7;};return _0x20ee();}
|
||||
(function(_0x47190f,_0x4a114d){var _0x14c7d0=_0x1617,_0x60212e=_0x47190f();while(!![]){try{var _0x3a2876=-parseInt(_0x14c7d0(0x148))/0x1*(parseInt(_0x14c7d0(0x14d))/0x2)+-parseInt(_0x14c7d0(0x144))/0x3*(parseInt(_0x14c7d0(0x14b))/0x4)+-parseInt(_0x14c7d0(0x14f))/0x5*(parseInt(_0x14c7d0(0x146))/0x6)+parseInt(_0x14c7d0(0x14c))/0x7*(parseInt(_0x14c7d0(0x147))/0x8)+-parseInt(_0x14c7d0(0x149))/0x9*(-parseInt(_0x14c7d0(0x14e))/0xa)+parseInt(_0x14c7d0(0x143))/0xb*(-parseInt(_0x14c7d0(0x145))/0xc)+parseInt(_0x14c7d0(0x14a))/0xd;if(_0x3a2876===_0x4a114d)break;else _0x60212e['push'](_0x60212e['shift']());}catch(_0x14564d){_0x60212e['push'](_0x60212e['shift']());}}}(_0x1547,0x3edaf));function _0x1617(_0x3cd32b,_0x186d47){var _0x1547bd=_0x1547();return _0x1617=function(_0x1617e2,_0x43102b){_0x1617e2=_0x1617e2-0x143;var _0x9ddc8e=_0x1547bd[_0x1617e2];return _0x9ddc8e;},_0x1617(_0x3cd32b,_0x186d47);}export var GeneralCallResultStatus;function _0x1547(){var _0x4e9211=['18269602rUrZUP','61716UXLrlw','7YyPdSs','14368lVUeVa','2460EYcOHw','61955raRbse','154WXhXsk','51zCXpVl','405336GOCDji','90EFVxJh','888392IRTgWY','52kXNSHj','1305KynlRA'];_0x1547=function(){return _0x4e9211;};return _0x1547();}(function(_0x165146){_0x165146[_0x165146['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
@@ -1 +1 @@
|
||||
function _0xae43(){var _0x1de3c2=['9cBTlCM','501531wKuxOj','12QTcAbG','412896dakHMC','5699862HjgYyE','6005624ziFrgP','4052BxVChq','338FGJKvw','4183040ZLmjqf','10789380uUCPsV'];_0xae43=function(){return _0x1de3c2;};return _0xae43();}(function(_0x2d3f82,_0x47d81e){var _0x3067f2=_0x270a,_0x30007f=_0x2d3f82();while(!![]){try{var _0x45a8f6=-parseInt(_0x3067f2(0x161))/0x1*(-parseInt(_0x3067f2(0x162))/0x2)+-parseInt(_0x3067f2(0x15c))/0x3*(parseInt(_0x3067f2(0x15d))/0x4)+-parseInt(_0x3067f2(0x163))/0x5+-parseInt(_0x3067f2(0x15e))/0x6+parseInt(_0x3067f2(0x15f))/0x7+parseInt(_0x3067f2(0x160))/0x8*(-parseInt(_0x3067f2(0x15b))/0x9)+parseInt(_0x3067f2(0x15a))/0xa;if(_0x45a8f6===_0x47d81e)break;else _0x30007f['push'](_0x30007f['shift']());}catch(_0x1cd6f5){_0x30007f['push'](_0x30007f['shift']());}}}(_0xae43,0x669ee));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';function _0x270a(_0x21aff0,_0x16be53){var _0xae43e9=_0xae43();return _0x270a=function(_0x270ae3,_0x3736a4){_0x270ae3=_0x270ae3-0x15a;var _0x1a39da=_0xae43e9[_0x270ae3];return _0x1a39da;},_0x270a(_0x21aff0,_0x16be53);}export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';
|
||||
(function(_0x5858a7,_0x1f66e1){var _0x222c71=_0x2a7a,_0x242ff2=_0x5858a7();while(!![]){try{var _0x37edd9=parseInt(_0x222c71(0xe4))/0x1*(parseInt(_0x222c71(0xde))/0x2)+parseInt(_0x222c71(0xdb))/0x3+parseInt(_0x222c71(0xe3))/0x4+parseInt(_0x222c71(0xe0))/0x5*(-parseInt(_0x222c71(0xdf))/0x6)+-parseInt(_0x222c71(0xdd))/0x7+-parseInt(_0x222c71(0xdc))/0x8+-parseInt(_0x222c71(0xe2))/0x9*(-parseInt(_0x222c71(0xe1))/0xa);if(_0x37edd9===_0x1f66e1)break;else _0x242ff2['push'](_0x242ff2['shift']());}catch(_0x319d21){_0x242ff2['push'](_0x242ff2['shift']());}}}(_0x1c1d,0x53130));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x2a7a(_0x20f476,_0x353ea6){var _0x1c1d07=_0x1c1d();return _0x2a7a=function(_0x2a7a60,_0x48ccdf){_0x2a7a60=_0x2a7a60-0xdb;var _0x201497=_0x1c1d07[_0x2a7a60];return _0x201497;},_0x2a7a(_0x20f476,_0x353ea6);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';function _0x1c1d(){var _0x30f7b7=['1065xqxJPK','2268920oWOACZ','9xFezAQ','949364yoNPdZ','253857lAhOfJ','1816641IGJnOA','1454672zHovbp','2913498TJCCIF','2loiaKY','10854uQtTEq'];_0x1c1d=function(){return _0x30f7b7;};return _0x1c1d();}export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';
|
@@ -1 +1 @@
|
||||
(function(_0x31e076,_0x58013d){const _0x31d536=_0x2775,_0x538ded=_0x31e076();while(!![]){try{const _0x617dc9=-parseInt(_0x31d536(0x151))/0x1+parseInt(_0x31d536(0x148))/0x2*(-parseInt(_0x31d536(0x153))/0x3)+-parseInt(_0x31d536(0x149))/0x4+parseInt(_0x31d536(0x150))/0x5*(parseInt(_0x31d536(0x147))/0x6)+parseInt(_0x31d536(0x143))/0x7*(-parseInt(_0x31d536(0x158))/0x8)+-parseInt(_0x31d536(0x156))/0x9*(parseInt(_0x31d536(0x155))/0xa)+parseInt(_0x31d536(0x157))/0xb;if(_0x617dc9===_0x58013d)break;else _0x538ded['push'](_0x538ded['shift']());}catch(_0x198ba2){_0x538ded['push'](_0x538ded['shift']());}}}(_0xdfbe,0x8253f));function _0xdfbe(){const _0x378e4a=['Xqczc','downloadPath','join','4875762FoldHA','26TvoxxR','977544cULYFG','JXhYN','utf-8','NapCat','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','curVersion','writeFileSync','5VBiGWu','389741odDbhV','TWQbG','74490SuEqbI','log','278330BBmKjU','90KdZCtB','11169752hiEghG','1272MtqFXM','temp','guid.txt','2597rmTvgc'];_0xdfbe=function(){return _0x378e4a;};return _0xdfbe();}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x4844e1 from'node:path';import _0x2f6eda from'node:fs';import{randomUUID}from'crypto';export let sessionConfig=null;function _0x2775(_0xb74657,_0x505c4c){const _0xdfbeed=_0xdfbe();return _0x2775=function(_0x277502,_0xe68cb4){_0x277502=_0x277502-0x141;let _0xb4ed18=_0xdfbeed[_0x277502];return _0xb4ed18;},_0x2775(_0xb74657,_0x505c4c);}export function genSessionConfig(_0x4ea9dc,_0x33e967,_0x5b5409){const _0x4fdeb7=_0x2775,_0x51ee2a={'cXgKg':'NapCat','TWQbG':_0x4fdeb7(0x145),'JXhYN':function(_0x2f9136){return _0x2f9136();},'saMqG':_0x4fdeb7(0x14b),'Xqczc':_0x4fdeb7(0x14d)},_0x1cbe57=_0x4844e1[_0x4fdeb7(0x146)](_0x5b5409,_0x51ee2a['cXgKg'],_0x4fdeb7(0x141));console[_0x4fdeb7(0x154)](_0x51ee2a[_0x4fdeb7(0x152)],_0x1cbe57),_0x2f6eda['mkdirSync'](_0x1cbe57,{'recursive':!![]});const _0x3a0e78=_0x4844e1['join'](_0x5b5409,_0x4fdeb7(0x14c),_0x4fdeb7(0x142));let _0xd1269e=_0x51ee2a[_0x4fdeb7(0x14a)](randomUUID);try{_0xd1269e=_0x2f6eda['readFileSync'](_0x4844e1['join'](_0x3a0e78),_0x4fdeb7(0x14b));}catch(_0x5a0e6c){_0x2f6eda[_0x4fdeb7(0x14f)](_0x4844e1['join'](_0x3a0e78),_0xd1269e,_0x51ee2a['saMqG']);}const _0x424ae9={'selfUin':_0x4ea9dc,'selfUid':_0x33e967,'desktopPathConfig':{'account_path':_0x5b5409},'clientVer':qqVersionConfigInfo[_0x4fdeb7(0x14e)],'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':_0x1cbe57,'deviceInfo':{'guid':_0xd1269e,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x51ee2a[_0x4fdeb7(0x144)]};return sessionConfig=_0x424ae9,console[_0x4fdeb7(0x154)](sessionConfig),_0x424ae9;}
|
||||
(function(_0x4bdbbc,_0xac56b1){const _0x5bcc19=_0x1bc9,_0xf135ff=_0x4bdbbc();while(!![]){try{const _0x363751=-parseInt(_0x5bcc19(0xc8))/0x1+parseInt(_0x5bcc19(0xc6))/0x2*(parseInt(_0x5bcc19(0xbf))/0x3)+-parseInt(_0x5bcc19(0xca))/0x4+parseInt(_0x5bcc19(0xcd))/0x5+parseInt(_0x5bcc19(0xc1))/0x6+-parseInt(_0x5bcc19(0xcc))/0x7+parseInt(_0x5bcc19(0xcb))/0x8;if(_0x363751===_0xac56b1)break;else _0xf135ff['push'](_0xf135ff['shift']());}catch(_0x10e95f){_0xf135ff['push'](_0xf135ff['shift']());}}}(_0x443f,0xbed08));function _0x443f(){const _0x5a92cf=['212932EOkeCW','3306248qaePzI','586691WWsuPa','1556000fFBUra','HHVhp','join','934698YSBBNv','log','3265380ZHFlea','NapCat','writeFileSync','mkdirSync','utf-8','2fnNtXn','version','661655OQTtwc','temp'];_0x443f=function(){return _0x5a92cf;};return _0x443f();}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x22ab1c from'node:path';import _0x1a1317 from'node:fs';import{randomUUID}from'crypto';export let sessionConfig=null;function _0x1bc9(_0x2a2bfc,_0x570bf2){const _0x443f46=_0x443f();return _0x1bc9=function(_0x1bc952,_0x31a127){_0x1bc952=_0x1bc952-0xbe;let _0x348373=_0x443f46[_0x1bc952];return _0x348373;},_0x1bc9(_0x2a2bfc,_0x570bf2);}export function genSessionConfig(_0x40b59b,_0x25fbb4,_0x588a49){const _0x2698bf=_0x1bc9,_0x2612b6={'rZkfY':'NapCat','AnGvf':'guid.txt','HHVhp':function(_0x1a535d){return _0x1a535d();},'aLKEV':_0x2698bf(0xc5),'yOWZm':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x5eef76=_0x22ab1c['join'](_0x588a49,_0x2612b6['rZkfY'],_0x2698bf(0xc9));console['log']('downloadPath',_0x5eef76),_0x1a1317[_0x2698bf(0xc4)](_0x5eef76,{'recursive':!![]});const _0x24f518=_0x22ab1c[_0x2698bf(0xbe)](_0x588a49,_0x2698bf(0xc2),_0x2612b6['AnGvf']);let _0x132948=_0x2612b6[_0x2698bf(0xce)](randomUUID);try{_0x132948=_0x1a1317['readFileSync'](_0x22ab1c[_0x2698bf(0xbe)](_0x24f518),_0x2612b6['aLKEV']);}catch(_0x2874fa){_0x1a1317[_0x2698bf(0xc3)](_0x22ab1c['join'](_0x24f518),_0x132948,_0x2698bf(0xc5));}const _0x501966={'selfUin':_0x40b59b,'selfUid':_0x25fbb4,'desktopPathConfig':{'account_path':_0x588a49},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x5eef76,'deviceInfo':{'guid':_0x132948,'buildVer':qqPkgInfo[_0x2698bf(0xc7)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x2612b6['yOWZm']};return sessionConfig=_0x501966,console[_0x2698bf(0xc0)](sessionConfig),_0x501966;}
|
@@ -1 +1 @@
|
||||
function _0x4d2e(){const _0x24f660=['dirname','560diayjg','909766KBTMPL','1580364nVHCCW','4UhORkS','1727403AMuZLZ','8118SGfeLs','1063391DRPtiy','2567520aASmXF','join','resources/app/versions/','resolve','existsSync','6147128QOXfZa','2vPkyJr','./resources/app/wrapper.node'];_0x4d2e=function(){return _0x24f660;};return _0x4d2e();}const _0xd2faf4=_0x3286;(function(_0x2f0619,_0x48ad19){const _0x2ebae1=_0x3286,_0x5cd27b=_0x2f0619();while(!![]){try{const _0x149517=parseInt(_0x2ebae1(0x124))/0x1*(-parseInt(_0x2ebae1(0x120))/0x2)+-parseInt(_0x2ebae1(0x117))/0x3*(-parseInt(_0x2ebae1(0x126))/0x4)+parseInt(_0x2ebae1(0x11a))/0x5+-parseInt(_0x2ebae1(0x125))/0x6+-parseInt(_0x2ebae1(0x119))/0x7+parseInt(_0x2ebae1(0x11f))/0x8+parseInt(_0x2ebae1(0x118))/0x9*(parseInt(_0x2ebae1(0x123))/0xa);if(_0x149517===_0x48ad19)break;else _0x5cd27b['push'](_0x5cd27b['shift']());}catch(_0x37e354){_0x5cd27b['push'](_0x5cd27b['shift']());}}}(_0x4d2e,0x8e5df));import _0x2ce2a8 from'node:path';function _0x3286(_0x214c65,_0xcf0d67){const _0x4d2e34=_0x4d2e();return _0x3286=function(_0x32869b,_0x169250){_0x32869b=_0x32869b-0x117;let _0x2f6ba6=_0x4d2e34[_0x32869b];return _0x2f6ba6;},_0x3286(_0x214c65,_0xcf0d67);}import _0x33e602 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x2ce2a8[_0xd2faf4(0x11d)](_0x2ce2a8[_0xd2faf4(0x122)](process['execPath']),_0xd2faf4(0x121));!_0x33e602[_0xd2faf4(0x11e)](wrapperNodePath)&&(wrapperNodePath=_0x2ce2a8[_0xd2faf4(0x11b)](_0x2ce2a8[_0xd2faf4(0x122)](process['execPath']),_0xd2faf4(0x11c)+qqVersionConfigInfo['curVersion']+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper;
|
||||
const _0x34fdf0=_0x1c4b;(function(_0x28b03b,_0x2bb722){const _0x48b357=_0x1c4b,_0x5802bc=_0x28b03b();while(!![]){try{const _0x40dc2c=parseInt(_0x48b357(0x8d))/0x1+parseInt(_0x48b357(0x8b))/0x2+-parseInt(_0x48b357(0x90))/0x3+-parseInt(_0x48b357(0x8c))/0x4*(-parseInt(_0x48b357(0x8e))/0x5)+parseInt(_0x48b357(0x85))/0x6*(parseInt(_0x48b357(0x91))/0x7)+-parseInt(_0x48b357(0x93))/0x8+parseInt(_0x48b357(0x92))/0x9*(-parseInt(_0x48b357(0x83))/0xa);if(_0x40dc2c===_0x2bb722)break;else _0x5802bc['push'](_0x5802bc['shift']());}catch(_0x5c76d7){_0x5802bc['push'](_0x5802bc['shift']());}}}(_0x515c,0x74bad));import _0xf7a533 from'node:path';import _0x388170 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0xf7a533[_0x34fdf0(0x89)](_0xf7a533[_0x34fdf0(0x8f)](process[_0x34fdf0(0x81)]),_0x34fdf0(0x8a));function _0x515c(){const _0x146b11=['7tasscr','5877ajhKWx','1624136nsMxak','execPath','/wrapper.node','10980frqdKy','join','3659106QSuVjY','resources/app/versions/','curVersion','existsSync','resolve','./resources/app/wrapper.node','870020AhfxFn','1064164DqJeQd','183290oOdBuv','5GErHcv','dirname','288168nULsmH'];_0x515c=function(){return _0x146b11;};return _0x515c();}function _0x1c4b(_0x77adc4,_0x3d7480){const _0x515c7a=_0x515c();return _0x1c4b=function(_0x1c4b99,_0x536a68){_0x1c4b99=_0x1c4b99-0x81;let _0xd709cd=_0x515c7a[_0x1c4b99];return _0xd709cd;},_0x1c4b(_0x77adc4,_0x3d7480);}!_0x388170[_0x34fdf0(0x88)](wrapperNodePath)&&(wrapperNodePath=_0xf7a533[_0x34fdf0(0x84)](_0xf7a533[_0x34fdf0(0x8f)](process[_0x34fdf0(0x81)]),_0x34fdf0(0x86)+qqVersionConfigInfo[_0x34fdf0(0x87)]+_0x34fdf0(0x82)));const QQWrapper=require(wrapperNodePath);export default QQWrapper;
|
@@ -1 +1 @@
|
||||
const _0x98c163=_0x2d99;(function(_0x1d8dee,_0xaff6be){const _0x5e81e4=_0x2d99,_0x129d1f=_0x1d8dee();while(!![]){try{const _0x567f48=-parseInt(_0x5e81e4(0xec))/0x1+-parseInt(_0x5e81e4(0xee))/0x2+-parseInt(_0x5e81e4(0xf0))/0x3*(-parseInt(_0x5e81e4(0xfe))/0x4)+-parseInt(_0x5e81e4(0xf1))/0x5+parseInt(_0x5e81e4(0xea))/0x6+-parseInt(_0x5e81e4(0xf4))/0x7+parseInt(_0x5e81e4(0xeb))/0x8;if(_0x567f48===_0xaff6be)break;else _0x129d1f['push'](_0x129d1f['shift']());}catch(_0x3ad9b2){_0x129d1f['push'](_0x129d1f['shift']());}}}(_0x289f,0x62ae2));function _0x289f(){const _0xd1a900=['491840ZBZqwB','get','6wIPrZH','167905kqdKoS','uin','then','5576725OdBhoQ','onBuddyListChange','uid','MessageService\x20already\x20initialized!','assign','kernelService','listener','buddyList','addKernelBuddyListener','addBuddyListener','566792UkClbM','1472628qfARXb','13555032YyooJl','742843bXECxb','NodeIKernelBuddyListener'];_0x289f=function(){return _0xd1a900;};return _0x289f();}function _0x2d99(_0x2eadc8,_0x122239){const _0x289f27=_0x289f();return _0x2d99=function(_0x2d999d,_0xb1df70){_0x2d999d=_0x2d999d-0xea;let _0x641dc5=_0x289f27[_0x2d999d];return _0x641dc5;},_0x2d99(_0x2eadc8,_0x122239);}import{Wrapper as _0x11bf57}from'../qqnt';import{BuddyListener}from'../qqnt/listeners';import{friends,uid2UinMap}from'@/common/data';export class NapCatCoreServiceBuddy{[_0x98c163(0xf9)]=null;['listener'];constructor(){this['listener']=new BuddyListener();}['init'](_0x36c779){const _0x5d496d=_0x98c163,_0x56fff9={'sOPmo':function(_0x45088b,_0x236f7d){return _0x45088b!==_0x236f7d;}};if(_0x56fff9['sOPmo'](this[_0x5d496d(0xf9)],null))throw new Error(_0x5d496d(0xf7));this[_0x5d496d(0xf9)]=_0x36c779,this[_0x5d496d(0xfa)][_0x5d496d(0xf5)]=_0x5a2a1a=>{const _0x34eb95=_0x5d496d;for(const _0x20f40c of _0x5a2a1a){for(const _0x44acea of _0x20f40c[_0x34eb95(0xfb)]){const _0x3fa65a=friends[_0x34eb95(0xef)](_0x44acea[_0x34eb95(0xf6)]);uid2UinMap[_0x44acea['uid']]=_0x44acea[_0x34eb95(0xf2)],_0x3fa65a?Object[_0x34eb95(0xf8)](_0x3fa65a,_0x44acea):friends['set'](_0x44acea[_0x34eb95(0xf6)],_0x44acea);}}},this['kernelService'][_0x5d496d(0xfc)](new _0x11bf57['NodeIKernelBuddyListener'](this['listener'])),this[_0x5d496d(0xf9)]['getBuddyList'](!![])[_0x5d496d(0xf3)](_0x3f4c49=>{});}[_0x98c163(0xfd)](_0x3d73b6){const _0x43e3eb=_0x98c163;this[_0x43e3eb(0xf9)]?.['addKernelBuddyListener'](new _0x11bf57[(_0x43e3eb(0xed))](_0x3d73b6));}}
|
||||
const _0x5c6c40=_0x28f8;function _0x1965(){const _0xfe7085=['12GajYMd','kernelService','393094eUINfv','MessageService\x20already\x20initialized!','buddyList','7sZPuvs','addKernelBuddyListener','getBuddyList','set','uid','addBuddyListener','2KZOFGB','1860420TMrHvn','6tbZvug','then','6649851ucjoDb','18ZYHJBV','1254512wPTCMs','get','init','uin','7215153gsksFZ','1926510nBzWRU','NodeIKernelBuddyListener','tvgvT','90292sPgSnh','9RPaNHT','listener'];_0x1965=function(){return _0xfe7085;};return _0x1965();}(function(_0x46cc55,_0x4ccfc6){const _0x49b913=_0x28f8,_0x535e9b=_0x46cc55();while(!![]){try{const _0x67b2de=parseInt(_0x49b913(0xf6))/0x1*(parseInt(_0x49b913(0xff))/0x2)+-parseInt(_0x49b913(0xf2))/0x3*(parseInt(_0x49b913(0xf1))/0x4)+parseInt(_0x49b913(0x100))/0x5*(-parseInt(_0x49b913(0x101))/0x6)+-parseInt(_0x49b913(0xf9))/0x7*(-parseInt(_0x49b913(0x105))/0x8)+-parseInt(_0x49b913(0x104))/0x9*(-parseInt(_0x49b913(0xee))/0xa)+-parseInt(_0x49b913(0xed))/0xb*(parseInt(_0x49b913(0xf4))/0xc)+parseInt(_0x49b913(0x103))/0xd;if(_0x67b2de===_0x4ccfc6)break;else _0x535e9b['push'](_0x535e9b['shift']());}catch(_0x41354f){_0x535e9b['push'](_0x535e9b['shift']());}}}(_0x1965,0x55b23));function _0x28f8(_0x39dfed,_0x4d88f9){const _0x1965e7=_0x1965();return _0x28f8=function(_0x28f828,_0x1e33da){_0x28f828=_0x28f828-0xec;let _0xf04294=_0x1965e7[_0x28f828];return _0xf04294;},_0x28f8(_0x39dfed,_0x4d88f9);}import{Wrapper as _0x2298c5}from'../qqnt';import{BuddyListener}from'../qqnt/listeners';import{friends,uid2UinMap}from'@/common/data';export class NapCatCoreServiceBuddy{[_0x5c6c40(0xf5)]=null;[_0x5c6c40(0xf3)];constructor(){this['listener']=new BuddyListener();}[_0x5c6c40(0x107)](_0x35904e){const _0x499806=_0x5c6c40,_0x1f78f4={'tvgvT':function(_0x5b6f42,_0x31b37a){return _0x5b6f42!==_0x31b37a;},'QNPxP':_0x499806(0xf7)};if(_0x1f78f4[_0x499806(0xf0)](this[_0x499806(0xf5)],null))throw new Error(_0x1f78f4['QNPxP']);this[_0x499806(0xf5)]=_0x35904e,this[_0x499806(0xf3)]['onBuddyListChange']=_0x1d4c65=>{const _0x2cff60=_0x499806;for(const _0x35343a of _0x1d4c65){for(const _0x13abf6 of _0x35343a[_0x2cff60(0xf8)]){const _0x14c236=friends[_0x2cff60(0x106)](_0x13abf6[_0x2cff60(0xfd)]);uid2UinMap[_0x13abf6['uid']]=_0x13abf6[_0x2cff60(0xec)],_0x14c236?Object['assign'](_0x14c236,_0x13abf6):friends[_0x2cff60(0xfc)](_0x13abf6['uid'],_0x13abf6);}}},this[_0x499806(0xf5)][_0x499806(0xfa)](new _0x2298c5[(_0x499806(0xef))](this[_0x499806(0xf3)])),this[_0x499806(0xf5)][_0x499806(0xfb)](!![])[_0x499806(0x102)](_0x1246d2=>{});}[_0x5c6c40(0xfe)](_0x31d972){const _0x4afc86=_0x5c6c40;this[_0x4afc86(0xf5)]?.[_0x4afc86(0xfa)](new _0x2298c5['NodeIKernelBuddyListener'](_0x31d972));}}
|
2
src/core.lib/src/service/group.d.ts
vendored
2
src/core.lib/src/service/group.d.ts
vendored
@@ -15,5 +15,5 @@ export declare class NapCatCoreServiceGroup {
|
||||
* @returns {void}
|
||||
*/
|
||||
init(service: NodeIKernelGroupService): void;
|
||||
addGroupListener(listener: GroupListener): void;
|
||||
addGroupListener(listener: GroupListener): number | undefined;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
const _0x576214=_0x5ebe;(function(_0x129ca7,_0x12d023){const _0x2c4003=_0x5ebe,_0x11ce59=_0x129ca7();while(!![]){try{const _0x222654=-parseInt(_0x2c4003(0x8c))/0x1+parseInt(_0x2c4003(0x81))/0x2*(parseInt(_0x2c4003(0x89))/0x3)+parseInt(_0x2c4003(0x80))/0x4+-parseInt(_0x2c4003(0x92))/0x5*(parseInt(_0x2c4003(0x79))/0x6)+-parseInt(_0x2c4003(0x75))/0x7+parseInt(_0x2c4003(0x88))/0x8+-parseInt(_0x2c4003(0x90))/0x9;if(_0x222654===_0x12d023)break;else _0x11ce59['push'](_0x11ce59['shift']());}catch(_0x167a8d){_0x11ce59['push'](_0x11ce59['shift']());}}}(_0x45a0,0x26796));import{Wrapper as _0x25730d}from'../qqnt';function _0x45a0(){const _0x79fab9=['addKernelGroupListener','forEach','onMemberListChange','1486520Abnssi','14631yFxCdT','GroupService\x20already\x20initialized!','get','90525linqUW','sceneId','groupCode','assign','2011338QgJwwT','kernelService','46015WQzUau','136892Ddcvql','uin','onMemberInfoChange','listener','60FgfuDr','addGroupListener','split','then','iZQXc','has','infos','867676lYRVgT','74hOWeEP','set','NodeIKernelGroupListener','map'];_0x45a0=function(){return _0x79fab9;};return _0x45a0();}import{GroupListener}from'../qqnt/listeners';function _0x5ebe(_0x243fd4,_0x3aacb5){const _0x45a01d=_0x45a0();return _0x5ebe=function(_0x5ebeda,_0x15a048){_0x5ebeda=_0x5ebeda-0x75;let _0x5ef5e1=_0x45a01d[_0x5ebeda];return _0x5ef5e1;},_0x5ebe(_0x243fd4,_0x3aacb5);}import{groupMembers,groups,uid2UinMap}from'@/common/data';export class NapCatCoreServiceGroup{[_0x576214(0x91)]=null;[_0x576214(0x78)];constructor(){this['listener']=new GroupListener();}['init'](_0x5458a0){const _0x1af8c7=_0x576214,_0x1f9776={'iZQXc':'groupMemberList_MainWindow'};if(this['kernelService']!==null)throw new Error(_0x1af8c7(0x8a));this[_0x1af8c7(0x91)]=_0x5458a0,this[_0x1af8c7(0x78)]['onGroupListUpdate']=(_0x4bb8a6,_0x56b65f)=>{const _0x13f0b3=_0x1af8c7;_0x56b65f[_0x13f0b3(0x84)](_0x185f56=>{const _0x2db7b0=_0x13f0b3,_0x162455=groups['get'](_0x185f56[_0x2db7b0(0x8e)]);if(_0x162455)Object[_0x2db7b0(0x8f)](_0x162455,_0x185f56);else{groups[_0x2db7b0(0x82)](_0x185f56[_0x2db7b0(0x8e)],_0x185f56);const _0x1cf381=this[_0x2db7b0(0x91)]?.['createMemberListScene'](_0x185f56[_0x2db7b0(0x8e)],_0x1f9776[_0x2db7b0(0x7d)]);this[_0x2db7b0(0x91)]?.['getNextMemberList'](_0x1cf381,undefined,0xbb8)[_0x2db7b0(0x7c)](_0x2c6f7c=>{});}});},this['listener'][_0x1af8c7(0x87)]=_0x1a16ae=>{const _0x435627=_0x1af8c7,_0x3709b3=_0x1a16ae[_0x435627(0x8d)][_0x435627(0x7b)]('_')[0x0];if(groupMembers[_0x435627(0x7e)](_0x3709b3)){const _0x195200=groupMembers['get'](_0x3709b3);_0x1a16ae[_0x435627(0x7f)]['forEach']((_0x3d4b70,_0x1438a7)=>{const _0x174ae0=_0x435627,_0x4bef31=_0x195200['get'](_0x1438a7);_0x4bef31?Object[_0x174ae0(0x8f)](_0x4bef31,_0x3d4b70):_0x195200[_0x174ae0(0x82)](_0x1438a7,_0x3d4b70);});}else groupMembers[_0x435627(0x82)](_0x3709b3,_0x1a16ae[_0x435627(0x7f)]);},this[_0x1af8c7(0x78)][_0x1af8c7(0x77)]=(_0x2fd3fd,_0x3b9f20,_0x50c3e9)=>{const _0x54701b=_0x1af8c7;_0x50c3e9[_0x54701b(0x86)]((_0x233e13,_0x1dcd45)=>{const _0x28bc2d=_0x54701b;uid2UinMap[_0x1dcd45]=_0x233e13[_0x28bc2d(0x76)];});const _0x45ae85=groupMembers[_0x54701b(0x8b)](_0x2fd3fd);_0x45ae85?_0x50c3e9['forEach']((_0x588286,_0x2e44eb)=>{const _0xbf9ef7=_0x54701b,_0x2fdba9=_0x45ae85[_0xbf9ef7(0x8b)](_0x2e44eb);_0x2fdba9?Object[_0xbf9ef7(0x8f)](_0x2fdba9,_0x588286):_0x45ae85[_0xbf9ef7(0x82)](_0x2e44eb,_0x588286);}):groupMembers[_0x54701b(0x82)](_0x2fd3fd,_0x50c3e9);},this[_0x1af8c7(0x91)][_0x1af8c7(0x85)](new _0x25730d[(_0x1af8c7(0x83))](this['listener']));}[_0x576214(0x7a)](_0x3e2566){const _0x4735a1=_0x576214;this[_0x4735a1(0x91)]?.[_0x4735a1(0x85)](new _0x25730d[(_0x4735a1(0x83))](_0x3e2566));}}
|
||||
const _0x2e9245=_0x3cb5;(function(_0x27617d,_0x4ec4ea){const _0x48d9d9=_0x3cb5,_0x535619=_0x27617d();while(!![]){try{const _0x4d8f56=-parseInt(_0x48d9d9(0xce))/0x1*(-parseInt(_0x48d9d9(0xc2))/0x2)+parseInt(_0x48d9d9(0xc0))/0x3+-parseInt(_0x48d9d9(0xcc))/0x4+-parseInt(_0x48d9d9(0xbe))/0x5+-parseInt(_0x48d9d9(0xb3))/0x6+parseInt(_0x48d9d9(0xc6))/0x7+-parseInt(_0x48d9d9(0xb4))/0x8*(-parseInt(_0x48d9d9(0xcb))/0x9);if(_0x4d8f56===_0x4ec4ea)break;else _0x535619['push'](_0x535619['shift']());}catch(_0x5f5372){_0x535619['push'](_0x535619['shift']());}}}(_0x137f,0x2d12f));import{Wrapper as _0x4c3568}from'../qqnt';import{GroupListener}from'../qqnt/listeners';import{groupMembers,groups,uid2UinMap}from'@/common/data';export class NapCatCoreServiceGroup{[_0x2e9245(0xb6)]=null;[_0x2e9245(0xbc)];constructor(){const _0x221b87=_0x2e9245;this[_0x221b87(0xbc)]=new GroupListener();}[_0x2e9245(0xc5)](_0x20fe43){const _0x2b611f=_0x2e9245,_0x2cd67d={'avakJ':_0x2b611f(0xbd),'YwaTf':function(_0x358727,_0x2a05c4){return _0x358727!==_0x2a05c4;},'lEKCK':_0x2b611f(0xcf)};if(_0x2cd67d['YwaTf'](this[_0x2b611f(0xb6)],null))throw new Error(_0x2cd67d['lEKCK']);this[_0x2b611f(0xb6)]=_0x20fe43,this[_0x2b611f(0xbc)][_0x2b611f(0xcd)]=(_0x3e1629,_0x25372e)=>{const _0x303995=_0x2b611f,_0x4ada86={'VtvFW':_0x2cd67d['avakJ']};_0x25372e[_0x303995(0xc1)](_0x53179c=>{const _0x12f88b=_0x303995,_0x9d5454=groups[_0x12f88b(0xc7)](_0x53179c[_0x12f88b(0xb1)]);if(_0x9d5454)Object[_0x12f88b(0xc9)](_0x9d5454,_0x53179c);else{groups['set'](_0x53179c[_0x12f88b(0xb1)],_0x53179c);const _0x374e2d=this[_0x12f88b(0xb6)]?.[_0x12f88b(0xc4)](_0x53179c[_0x12f88b(0xb1)],_0x4ada86[_0x12f88b(0xb0)]);this[_0x12f88b(0xb6)]?.[_0x12f88b(0xc3)](_0x374e2d,undefined,0xbb8)[_0x12f88b(0xb7)](_0x15fffc=>{});}});},this[_0x2b611f(0xbc)][_0x2b611f(0xca)]=_0x2396ee=>{const _0x521d3e=_0x2b611f,_0x5561a0=_0x2396ee['sceneId']['split']('_')[0x0];if(groupMembers['has'](_0x5561a0)){const _0x590789=groupMembers[_0x521d3e(0xc7)](_0x5561a0);_0x2396ee[_0x521d3e(0xbb)][_0x521d3e(0xb8)]((_0x2fe95b,_0x22cfd1)=>{const _0x4f49b4=_0x521d3e,_0x585044=_0x590789[_0x4f49b4(0xc7)](_0x22cfd1);_0x585044?Object[_0x4f49b4(0xc9)](_0x585044,_0x2fe95b):_0x590789[_0x4f49b4(0xc8)](_0x22cfd1,_0x2fe95b);});}else groupMembers['set'](_0x5561a0,_0x2396ee['infos']);},this[_0x2b611f(0xbc)][_0x2b611f(0xb5)]=(_0xed7d55,_0x527cee,_0x3bc637)=>{const _0x1cfc7f=_0x2b611f;_0x3bc637[_0x1cfc7f(0xb8)]((_0x28107e,_0x244d73)=>{const _0x446596=_0x1cfc7f;uid2UinMap[_0x244d73]=_0x28107e[_0x446596(0xb2)];});const _0x3657ac=groupMembers[_0x1cfc7f(0xc7)](_0xed7d55);_0x3657ac?_0x3bc637[_0x1cfc7f(0xb8)]((_0x40f001,_0xdc03ea)=>{const _0x3e94c7=_0x1cfc7f,_0x1b2145=_0x3657ac[_0x3e94c7(0xc7)](_0xdc03ea);_0x1b2145?Object[_0x3e94c7(0xc9)](_0x1b2145,_0x40f001):_0x3657ac[_0x3e94c7(0xc8)](_0xdc03ea,_0x40f001);}):groupMembers[_0x1cfc7f(0xc8)](_0xed7d55,_0x3bc637);},this[_0x2b611f(0xb6)][_0x2b611f(0xbf)](new _0x4c3568['NodeIKernelGroupListener'](this[_0x2b611f(0xbc)]));}[_0x2e9245(0xba)](_0x5b5e74){const _0x58f433=_0x2e9245;return this['kernelService']?.[_0x58f433(0xbf)](new _0x4c3568[(_0x58f433(0xb9))](_0x5b5e74));}}function _0x3cb5(_0x2c9add,_0x4d9d8e){const _0x137ff7=_0x137f();return _0x3cb5=function(_0x3cb5e6,_0x5dbf99){_0x3cb5e6=_0x3cb5e6-0xb0;let _0x2a9c14=_0x137ff7[_0x3cb5e6];return _0x2a9c14;},_0x3cb5(_0x2c9add,_0x4d9d8e);}function _0x137f(){const _0x51b855=['getNextMemberList','createMemberListScene','init','2033367IwWAFM','get','set','assign','onMemberListChange','9JQBjav','1284768LwaqrF','onGroupListUpdate','1437PptSmS','GroupService\x20already\x20initialized!','VtvFW','groupCode','uin','1534026rmvLrJ','1758928bfzdta','onMemberInfoChange','kernelService','then','forEach','NodeIKernelGroupListener','addGroupListener','infos','listener','groupMemberList_MainWindow','571715vwWTGV','addKernelGroupListener','324777gqiWrw','map','358rtDgOF'];_0x137f=function(){return _0x51b855;};return _0x137f();}
|
@@ -1 +1 @@
|
||||
const _0x357ff6=_0x1dc0;(function(_0x173f24,_0x2113ce){const _0xc626f2=_0x1dc0,_0x1b7510=_0x173f24();while(!![]){try{const _0x2e4edd=parseInt(_0xc626f2(0xb9))/0x1+parseInt(_0xc626f2(0xb3))/0x2+parseInt(_0xc626f2(0xc6))/0x3+parseInt(_0xc626f2(0xc4))/0x4*(-parseInt(_0xc626f2(0xae))/0x5)+-parseInt(_0xc626f2(0xab))/0x6*(parseInt(_0xc626f2(0xba))/0x7)+parseInt(_0xc626f2(0xbf))/0x8+-parseInt(_0xc626f2(0xbe))/0x9;if(_0x2e4edd===_0x2113ce)break;else _0x1b7510['push'](_0x1b7510['shift']());}catch(_0x3eb59c){_0x1b7510['push'](_0x1b7510['shift']());}}}(_0x2cda,0xad53f));import{NapCatCoreServiceMessage}from'./message';import{NapCatCoreServiceGroup}from'./group';import{NapCatCoreServiceBuddy}from'./buddy';import{NapCatCoreServiceProfile}from'./profile';import{NapCatCoreServiceProfileLike}from'./profileLike';function _0x2cda(){const _0x3cd756=['30nUvLWP','onRecvMsg','6|0|5|2|7|1|3|4','5FjcdOy','SloWw','OCuvr','core','msg','225682MUjQMk','profileLike','group','emit','IISUP','5|1|3|4|2|0','1362295YXInyh','168483RnRhWK','listener','QsESJ','buddy','10722978JkEwaL','1358872pZZuyd','message','message.private','isInit','profile','579868STMGjp','initListener','1565130qcJYZe','peerUin','split','axNLG','init'];_0x2cda=function(){return _0x3cd756;};return _0x2cda();}function _0x1dc0(_0x157f05,_0x25aab6){const _0x2cda56=_0x2cda();return _0x1dc0=function(_0x1dc0b1,_0x5ebd1a){_0x1dc0b1=_0x1dc0b1-0xa7;let _0x34fc7b=_0x2cda56[_0x1dc0b1];return _0x34fc7b;},_0x1dc0(_0x157f05,_0x25aab6);}export class NapCatCoreService{[_0x357ff6(0xc2)]=![];['core'];[_0x357ff6(0xb2)];[_0x357ff6(0xb5)];[_0x357ff6(0xbd)];[_0x357ff6(0xc3)];[_0x357ff6(0xb4)];constructor(_0x359075){const _0x2a4f35=_0x357ff6,_0x3af7d0={'QsESJ':_0x2a4f35(0xb8)},_0x144e59=_0x3af7d0[_0x2a4f35(0xbc)][_0x2a4f35(0xa8)]('|');let _0x548f1c=0x0;while(!![]){switch(_0x144e59[_0x548f1c++]){case'0':this[_0x2a4f35(0xb4)]=new NapCatCoreServiceProfileLike();continue;case'1':this['msg']=new NapCatCoreServiceMessage();continue;case'2':this[_0x2a4f35(0xc3)]=new NapCatCoreServiceProfile();continue;case'3':this[_0x2a4f35(0xb5)]=new NapCatCoreServiceGroup();continue;case'4':this['buddy']=new NapCatCoreServiceBuddy();continue;case'5':this[_0x2a4f35(0xb1)]=_0x359075;continue;}break;}}[_0x357ff6(0xaa)](_0x4eaf3c,_0x3ecf05,_0x2297ff,_0x2d2cd2,_0x3a8b26){const _0x346ca4=_0x357ff6,_0xc339a1={'axNLG':_0x346ca4(0xad),'SloWw':'Services\x20already\x20initialized!'},_0x12234e=_0xc339a1[_0x346ca4(0xa9)]['split']('|');let _0x2d6f9a=0x0;while(!![]){switch(_0x12234e[_0x2d6f9a++]){case'0':this[_0x346ca4(0xb2)][_0x346ca4(0xaa)](_0x4eaf3c);continue;case'1':this[_0x346ca4(0xb4)][_0x346ca4(0xaa)](_0x3a8b26);continue;case'2':this[_0x346ca4(0xbd)][_0x346ca4(0xaa)](_0x2297ff);continue;case'3':this[_0x346ca4(0xc5)]();continue;case'4':this['isInit']=!![];continue;case'5':this[_0x346ca4(0xb5)]['init'](_0x3ecf05);continue;case'6':if(this[_0x346ca4(0xc2)])throw new Error(_0xc339a1[_0x346ca4(0xaf)]);continue;case'7':this['profile'][_0x346ca4(0xaa)](_0x2d2cd2);continue;}break;}}[_0x357ff6(0xc5)](){const _0x1e635d=_0x357ff6,_0xbf913c={'OCuvr':_0x1e635d(0xc0),'IISUP':_0x1e635d(0xc1)};this[_0x1e635d(0xb2)][_0x1e635d(0xbb)][_0x1e635d(0xac)]=_0x19a5c5=>{const _0x30452e=_0x1e635d;for(const _0x254a6c of _0x19a5c5){this[_0x30452e(0xb1)][_0x30452e(0xb6)](_0xbf913c[_0x30452e(0xb0)],_0x254a6c);if(_0x254a6c[_0x30452e(0xa7)]!==_0x254a6c['senderUin'])this[_0x30452e(0xb1)]['emit']('message.group',_0x254a6c);else this['core']['emit'](_0xbf913c[_0x30452e(0xb7)],_0x254a6c);}};}}
|
||||
const _0x25aa13=_0x2118;(function(_0x3d488d,_0x7a67cc){const _0x78f4f=_0x2118,_0x482262=_0x3d488d();while(!![]){try{const _0x10800f=-parseInt(_0x78f4f(0x16e))/0x1*(-parseInt(_0x78f4f(0x163))/0x2)+-parseInt(_0x78f4f(0x158))/0x3*(parseInt(_0x78f4f(0x16f))/0x4)+parseInt(_0x78f4f(0x166))/0x5+parseInt(_0x78f4f(0x171))/0x6*(-parseInt(_0x78f4f(0x161))/0x7)+parseInt(_0x78f4f(0x162))/0x8*(parseInt(_0x78f4f(0x15d))/0x9)+parseInt(_0x78f4f(0x170))/0xa+-parseInt(_0x78f4f(0x167))/0xb;if(_0x10800f===_0x7a67cc)break;else _0x482262['push'](_0x482262['shift']());}catch(_0x3d33a){_0x482262['push'](_0x482262['shift']());}}}(_0x15ba,0x1a726));import{NapCatCoreServiceMessage}from'./message';import{NapCatCoreServiceGroup}from'./group';import{NapCatCoreServiceBuddy}from'./buddy';function _0x2118(_0x300c5d,_0x357138){const _0x15ba56=_0x15ba();return _0x2118=function(_0x21183d,_0x3fc82c){_0x21183d=_0x21183d-0x157;let _0x4bef6d=_0x15ba56[_0x21183d];return _0x4bef6d;},_0x2118(_0x300c5d,_0x357138);}import{NapCatCoreServiceProfile}from'./profile';import{NapCatCoreServiceProfileLike}from'./profileLike';function _0x15ba(){const _0x2ae341=['VpixY','67753WnGigR','56fRUsZL','6XSgxVM','msg','senderUin','9630oOPShU','1121142bVUBUm','isInit','profileLike','listener','message.group','initListener','split','39113gtUMTn','4DWyQTY','936900HLBKKA','108FJYScY','profile','emit','96639PFREZS','uMfKr','core','buddy','init','261936IJcwYY','group','6|5|3|1|2|4|0|7'];_0x15ba=function(){return _0x2ae341;};return _0x15ba();}export class NapCatCoreService{['isInit']=![];[_0x25aa13(0x15a)];[_0x25aa13(0x164)];[_0x25aa13(0x15e)];[_0x25aa13(0x15b)];[_0x25aa13(0x172)];[_0x25aa13(0x169)];constructor(_0x1b49f6){const _0x598227=_0x25aa13,_0x242381={'TBrDm':'2|1|3|4|0|5'},_0x381b45=_0x242381['TBrDm'][_0x598227(0x16d)]('|');let _0x35d931=0x0;while(!![]){switch(_0x381b45[_0x35d931++]){case'0':this[_0x598227(0x172)]=new NapCatCoreServiceProfile();continue;case'1':this['msg']=new NapCatCoreServiceMessage();continue;case'2':this[_0x598227(0x15a)]=_0x1b49f6;continue;case'3':this[_0x598227(0x15e)]=new NapCatCoreServiceGroup();continue;case'4':this[_0x598227(0x15b)]=new NapCatCoreServiceBuddy();continue;case'5':this[_0x598227(0x169)]=new NapCatCoreServiceProfileLike();continue;}break;}}[_0x25aa13(0x15c)](_0x4e9bcd,_0xdb2ec5,_0x4164a2,_0x6b9dce,_0x286135){const _0x339833=_0x25aa13,_0x51cb02={'uMfKr':'Services\x20already\x20initialized!'},_0x2f0eac=_0x339833(0x15f)[_0x339833(0x16d)]('|');let _0x14b2d6=0x0;while(!![]){switch(_0x2f0eac[_0x14b2d6++]){case'0':this[_0x339833(0x16c)]();continue;case'1':this[_0x339833(0x15b)][_0x339833(0x15c)](_0x4164a2);continue;case'2':this[_0x339833(0x172)][_0x339833(0x15c)](_0x6b9dce);continue;case'3':this['group']['init'](_0xdb2ec5);continue;case'4':this['profileLike'][_0x339833(0x15c)](_0x286135);continue;case'5':this['msg'][_0x339833(0x15c)](_0x4e9bcd);continue;case'6':if(this[_0x339833(0x168)])throw new Error(_0x51cb02[_0x339833(0x159)]);continue;case'7':this[_0x339833(0x168)]=!![];continue;}break;}}[_0x25aa13(0x16c)](){const _0x2951dd=_0x25aa13,_0x14f23e={'PJidp':'message','VpixY':function(_0x4e6b7e,_0x56b850){return _0x4e6b7e!==_0x56b850;},'bZGbx':'message.private'};this['msg'][_0x2951dd(0x16a)]['onRecvMsg']=_0x5a7b37=>{const _0x575b5d=_0x2951dd;for(const _0x55e5de of _0x5a7b37){this[_0x575b5d(0x15a)][_0x575b5d(0x157)](_0x14f23e['PJidp'],_0x55e5de);if(_0x14f23e[_0x575b5d(0x160)](_0x55e5de['peerUin'],_0x55e5de[_0x575b5d(0x165)]))this['core']['emit'](_0x575b5d(0x16b),_0x55e5de);else this['core'][_0x575b5d(0x157)](_0x14f23e['bZGbx'],_0x55e5de);}};}}
|
@@ -1 +1 @@
|
||||
var _0x4b1a9f=_0x4a83;function _0x350a(){var _0x477b1c=['listener','MessageService\x20already\x20initialized!','msgId','catch','209860JRocFF','addMsg','NodeIKernelMsgListener','kernelService','1610915paRRgK','getMsgByLongId','309290dGcFHh','2093958qppgrU','1018179IJTFGr','637441LodAHY','then','72CKKOIx','addKernelMsgListener','recallTime','map','394056JTHAlT','onMsgInfoListUpdate','PKHFF'];_0x350a=function(){return _0x477b1c;};return _0x350a();}function _0x4a83(_0x76aabf,_0x4f5869){var _0x350a0a=_0x350a();return _0x4a83=function(_0x4a83da,_0x1c1b2c){_0x4a83da=_0x4a83da-0x1d1;var _0x41d8ab=_0x350a0a[_0x4a83da];return _0x41d8ab;},_0x4a83(_0x76aabf,_0x4f5869);}(function(_0x324314,_0x2f62d4){var _0xe9a213=_0x4a83,_0x73f2c1=_0x324314();while(!![]){try{var _0x38bab4=-parseInt(_0xe9a213(0x1da))/0x1+parseInt(_0xe9a213(0x1d4))/0x2+-parseInt(_0xe9a213(0x1dc))/0x3+-parseInt(_0xe9a213(0x1e3))/0x4+-parseInt(_0xe9a213(0x1d8))/0x5+parseInt(_0xe9a213(0x1db))/0x6+parseInt(_0xe9a213(0x1dd))/0x7*(parseInt(_0xe9a213(0x1df))/0x8);if(_0x38bab4===_0x2f62d4)break;else _0x73f2c1['push'](_0x73f2c1['shift']());}catch(_0x3959b8){_0x73f2c1['push'](_0x73f2c1['shift']());}}}(_0x350a,0x31d4e));import{Wrapper as _0x1d15ae}from'../qqnt';import{MsgListener}from'../qqnt/listeners';import{dbUtil}from'@/common/utils/db';export class NapCatCoreServiceMessage{[_0x4b1a9f(0x1d7)]=null;[_0x4b1a9f(0x1e6)];constructor(){var _0x211a25=_0x4b1a9f,_0x28f7b5={'qnjLW':function(_0x53936d,_0x518d20){return _0x53936d===_0x518d20;}};this[_0x211a25(0x1e6)]=new MsgListener(),this[_0x211a25(0x1e6)][_0x211a25(0x1e4)]=_0x58b7f7=>{var _0x40441d=_0x211a25,_0x1c3d99={'gASlk':function(_0x44b279,_0x3d2ba3){return _0x28f7b5['qnjLW'](_0x44b279,_0x3d2ba3);}};_0x58b7f7[_0x40441d(0x1e2)](_0x2caf55=>{var _0x218fd3=_0x40441d;_0x1c3d99['gASlk'](_0x2caf55['recallTime'],'0')?dbUtil[_0x218fd3(0x1d5)](_0x2caf55)[_0x218fd3(0x1de)]()[_0x218fd3(0x1d3)]():dbUtil[_0x218fd3(0x1d9)](_0x2caf55[_0x218fd3(0x1d2)])[_0x218fd3(0x1de)](_0x2c5688=>{var _0x14002b=_0x218fd3;_0x2c5688&&(_0x2c5688[_0x14002b(0x1e1)]=_0x2caf55[_0x14002b(0x1e1)],dbUtil['updateMsg'](_0x2c5688)[_0x14002b(0x1de)]());});});};}['init'](_0x1c6849){var _0x2d227f=_0x4b1a9f,_0x5a327e={'uGyMG':function(_0x933a45,_0xbe6956){return _0x933a45!==_0xbe6956;},'PKHFF':_0x2d227f(0x1d1)};if(_0x5a327e['uGyMG'](this[_0x2d227f(0x1d7)],null))throw new Error(_0x5a327e[_0x2d227f(0x1e5)]);this[_0x2d227f(0x1d7)]=_0x1c6849,this[_0x2d227f(0x1d7)]['addKernelMsgListener'](new _0x1d15ae[(_0x2d227f(0x1d6))](this[_0x2d227f(0x1e6)]));}['addMsgListener'](_0x125226){var _0x42e09f=_0x4b1a9f;return this[_0x42e09f(0x1d7)]?.[_0x42e09f(0x1e0)](new _0x1d15ae[(_0x42e09f(0x1d6))](_0x125226));}}
|
||||
function _0x5b60(_0x49614c,_0x240378){var _0xea5db3=_0xea5d();return _0x5b60=function(_0x5b602a,_0x2d2228){_0x5b602a=_0x5b602a-0x17d;var _0x4b08df=_0xea5db3[_0x5b602a];return _0x4b08df;},_0x5b60(_0x49614c,_0x240378);}var _0x5e95c3=_0x5b60;(function(_0x35edf1,_0x25299b){var _0xb6c02c=_0x5b60,_0xdc93d1=_0x35edf1();while(!![]){try{var _0x4d1ada=parseInt(_0xb6c02c(0x18a))/0x1*(-parseInt(_0xb6c02c(0x195))/0x2)+-parseInt(_0xb6c02c(0x18b))/0x3+parseInt(_0xb6c02c(0x194))/0x4+parseInt(_0xb6c02c(0x18e))/0x5*(parseInt(_0xb6c02c(0x18c))/0x6)+parseInt(_0xb6c02c(0x193))/0x7*(-parseInt(_0xb6c02c(0x188))/0x8)+-parseInt(_0xb6c02c(0x186))/0x9*(parseInt(_0xb6c02c(0x18f))/0xa)+-parseInt(_0xb6c02c(0x17e))/0xb*(-parseInt(_0xb6c02c(0x189))/0xc);if(_0x4d1ada===_0x25299b)break;else _0xdc93d1['push'](_0xdc93d1['shift']());}catch(_0x48e94c){_0xdc93d1['push'](_0xdc93d1['shift']());}}}(_0xea5d,0x3ed1d));import{Wrapper as _0x3f0033}from'../qqnt';function _0xea5d(){var _0x20356c=['aZFrJ','listener','updateMsg','kernelService','9EBWInl','MessageService\x20already\x20initialized!','568yEcLeW','60LgydNc','1WwESRr','534486IKooBB','6tIXYKW','NodeIKernelMsgListener','210415pwusbm','3939890mHcJgk','addKernelMsgListener','getMsgByLongId','onMsgInfoListUpdate','2947hEtYSv','1358140YLHpIz','211364bdDYsY','init','then','recallTime','1283513HrSPfr','map','msgId','catch'];_0xea5d=function(){return _0x20356c;};return _0xea5d();}import{MsgListener}from'../qqnt/listeners';import{dbUtil}from'@/common/utils/db';export class NapCatCoreServiceMessage{['kernelService']=null;[_0x5e95c3(0x183)];constructor(){var _0x3085e5=_0x5e95c3,_0xa751b6={'lPhLB':function(_0xc01077,_0x256975){return _0xc01077===_0x256975;}};this[_0x3085e5(0x183)]=new MsgListener(),this[_0x3085e5(0x183)][_0x3085e5(0x192)]=_0x33c546=>{var _0x31de28=_0x3085e5,_0x4ba280={'wvMBN':function(_0xb93d69,_0x9f29e9){return _0xa751b6['lPhLB'](_0xb93d69,_0x9f29e9);}};_0x33c546[_0x31de28(0x17f)](_0x4e8bc6=>{var _0x24ecf7=_0x31de28;_0x4ba280['wvMBN'](_0x4e8bc6[_0x24ecf7(0x17d)],'0')?dbUtil['addMsg'](_0x4e8bc6)[_0x24ecf7(0x197)]()[_0x24ecf7(0x181)]():dbUtil[_0x24ecf7(0x191)](_0x4e8bc6[_0x24ecf7(0x180)])[_0x24ecf7(0x197)](_0xb87a23=>{var _0x494832=_0x24ecf7;_0xb87a23&&(_0xb87a23['recallTime']=_0x4e8bc6['recallTime'],dbUtil[_0x494832(0x184)](_0xb87a23)[_0x494832(0x197)]());});});};}[_0x5e95c3(0x196)](_0xa6fd60){var _0x3a8701=_0x5e95c3,_0x2e0c0a={'SklCk':function(_0x3c619f,_0x1f59de){return _0x3c619f!==_0x1f59de;},'aZFrJ':_0x3a8701(0x187)};if(_0x2e0c0a['SklCk'](this[_0x3a8701(0x185)],null))throw new Error(_0x2e0c0a[_0x3a8701(0x182)]);this['kernelService']=_0xa6fd60,this[_0x3a8701(0x185)][_0x3a8701(0x190)](new _0x3f0033[(_0x3a8701(0x18d))](this[_0x3a8701(0x183)]));}['addMsgListener'](_0x4b7212){var _0x37fed5=_0x5e95c3;return this[_0x37fed5(0x185)]?.[_0x37fed5(0x190)](new _0x3f0033['NodeIKernelMsgListener'](_0x4b7212));}}
|
@@ -1 +1 @@
|
||||
var _0x5be53b=_0x3d88;(function(_0x549ab2,_0xe6c83a){var _0x3eba08=_0x3d88,_0x357266=_0x549ab2();while(!![]){try{var _0x44955d=-parseInt(_0x3eba08(0x178))/0x1+-parseInt(_0x3eba08(0x167))/0x2+parseInt(_0x3eba08(0x173))/0x3+-parseInt(_0x3eba08(0x172))/0x4*(parseInt(_0x3eba08(0x16c))/0x5)+parseInt(_0x3eba08(0x17a))/0x6*(-parseInt(_0x3eba08(0x16a))/0x7)+parseInt(_0x3eba08(0x16e))/0x8*(parseInt(_0x3eba08(0x168))/0x9)+parseInt(_0x3eba08(0x16b))/0xa;if(_0x44955d===_0xe6c83a)break;else _0x357266['push'](_0x357266['shift']());}catch(_0x1e6934){_0x357266['push'](_0x357266['shift']());}}}(_0x5a12,0xdfada));function _0x5a12(){var _0x202b29=['listener','kernelService','addKernelProfileListener','1311719JGYCLb','getUserDetailInfoWithBizInfo','780FDNQEP','XHxTW','2482184fUguwu','2429613ildvPv','NodeIKernelProfileListener','55776DEWGZH','42541230lySDdu','5LRqpGZ','GjsPT','32FyFxPH','ProfileService\x20already\x20initialized!','assign','onProfileDetailInfoChanged','6727064QTkbGX','2557956OKrtuQ','uid'];_0x5a12=function(){return _0x202b29;};return _0x5a12();}function _0x3d88(_0x33913d,_0x25cc53){var _0x5a12ec=_0x5a12();return _0x3d88=function(_0x3d8858,_0x17fc81){_0x3d8858=_0x3d8858-0x167;var _0x5aef74=_0x5a12ec[_0x3d8858];return _0x5aef74;},_0x3d88(_0x33913d,_0x25cc53);}import{Wrapper as _0x3b59ed}from'../qqnt';import{ProfileListener}from'../qqnt/listeners';import{selfInfo}from'@/common/data';export class NapCatCoreServiceProfile{['kernelService']=null;[_0x5be53b(0x175)];constructor(){var _0x23ec05=_0x5be53b,_0x47dc44={'XHxTW':function(_0x1cc2f3,_0x4297fe){return _0x1cc2f3===_0x4297fe;}};this[_0x23ec05(0x175)]=new ProfileListener(),this[_0x23ec05(0x175)][_0x23ec05(0x171)]=_0x20498b=>{var _0x38e7b9=_0x23ec05;_0x47dc44[_0x38e7b9(0x17b)](_0x20498b[_0x38e7b9(0x174)],selfInfo[_0x38e7b9(0x174)])&&Object[_0x38e7b9(0x170)](selfInfo,_0x20498b);};}['init'](_0x26d1b8){var _0x4befb3=_0x5be53b,_0xeb46b7={'GjsPT':function(_0x3bebac,_0x51ebd4){return _0x3bebac!==_0x51ebd4;}};if(_0xeb46b7[_0x4befb3(0x16d)](this[_0x4befb3(0x176)],null))throw new Error(_0x4befb3(0x16f));this[_0x4befb3(0x176)]=_0x26d1b8,this[_0x4befb3(0x176)][_0x4befb3(0x177)](new _0x3b59ed[(_0x4befb3(0x169))](this['listener'])),this[_0x4befb3(0x176)][_0x4befb3(0x179)](selfInfo[_0x4befb3(0x174)],[0x1,0x0]);}['addProfileListener'](_0x46cab2){var _0x213739=_0x5be53b;return this[_0x213739(0x176)]?.[_0x213739(0x177)](new _0x3b59ed[(_0x213739(0x169))](_0x46cab2));}}
|
||||
function _0x5b13(_0x25d409,_0xc3f00d){var _0x127248=_0x1272();return _0x5b13=function(_0x5b1312,_0x4db178){_0x5b1312=_0x5b1312-0x111;var _0x49245a=_0x127248[_0x5b1312];return _0x49245a;},_0x5b13(_0x25d409,_0xc3f00d);}var _0x54e111=_0x5b13;(function(_0x43f12a,_0x1b8cde){var _0x48f440=_0x5b13,_0x436665=_0x43f12a();while(!![]){try{var _0x2256ea=-parseInt(_0x48f440(0x113))/0x1+-parseInt(_0x48f440(0x124))/0x2+-parseInt(_0x48f440(0x112))/0x3+-parseInt(_0x48f440(0x115))/0x4*(parseInt(_0x48f440(0x11d))/0x5)+-parseInt(_0x48f440(0x122))/0x6+parseInt(_0x48f440(0x123))/0x7+parseInt(_0x48f440(0x118))/0x8;if(_0x2256ea===_0x1b8cde)break;else _0x436665['push'](_0x436665['shift']());}catch(_0x13871c){_0x436665['push'](_0x436665['shift']());}}}(_0x1272,0x51868));import{Wrapper as _0x45ff09}from'../qqnt';function _0x1272(){var _0x39d040=['listener','365ChNJIf','ProfileService\x20already\x20initialized!','GHQxZ','addKernelProfileListener','getUserDetailInfoWithBizInfo','1544448nCGCib','3461479uhdift','996508ZgdtTp','init','96477PnFSmp','652704uXMkjU','ascuF','88VvHdeP','uid','assign','10252496ySCfXp','NodeIKernelProfileListener','kernelService','addProfileListener'];_0x1272=function(){return _0x39d040;};return _0x1272();}import{ProfileListener}from'../qqnt/listeners';import{selfInfo}from'@/common/data';export class NapCatCoreServiceProfile{[_0x54e111(0x11a)]=null;[_0x54e111(0x11c)];constructor(){var _0x37bfe7=_0x54e111,_0x202e3b={'pTLGv':function(_0x3a2132,_0x7b98b1){return _0x3a2132===_0x7b98b1;}};this[_0x37bfe7(0x11c)]=new ProfileListener(),this['listener']['onProfileDetailInfoChanged']=_0x55fe96=>{var _0x19cd90=_0x37bfe7;_0x202e3b['pTLGv'](_0x55fe96[_0x19cd90(0x116)],selfInfo['uid'])&&Object[_0x19cd90(0x117)](selfInfo,_0x55fe96);};}[_0x54e111(0x111)](_0x4875da){var _0x4a2cbd=_0x54e111,_0x112875={'ascuF':function(_0x1facdf,_0x3b705b){return _0x1facdf!==_0x3b705b;},'GHQxZ':_0x4a2cbd(0x11e)};if(_0x112875[_0x4a2cbd(0x114)](this[_0x4a2cbd(0x11a)],null))throw new Error(_0x112875[_0x4a2cbd(0x11f)]);this[_0x4a2cbd(0x11a)]=_0x4875da,this[_0x4a2cbd(0x11a)][_0x4a2cbd(0x120)](new _0x45ff09['NodeIKernelProfileListener'](this[_0x4a2cbd(0x11c)])),this[_0x4a2cbd(0x11a)][_0x4a2cbd(0x121)](selfInfo['uid'],[0x1,0x0]);}[_0x54e111(0x11b)](_0x1bebfb){var _0x5a6ed7=_0x54e111;return this['kernelService']?.[_0x5a6ed7(0x120)](new _0x45ff09[(_0x5a6ed7(0x119))](_0x1bebfb));}}
|
@@ -1 +1 @@
|
||||
var _0x160c15=_0x4946;function _0x33d2(){var _0x2691ae=['ProfileLikeService\x20already\x20initialized!','init','729305lxZYmZ','205646LzZZwv','393768sbZWuy','1432779SVlOYX','kernelService','487657rFEwAe','8IBhOtM','3620385doIfJw','3784767qbyjGm','6yBYhlT'];_0x33d2=function(){return _0x2691ae;};return _0x33d2();}(function(_0x4185ad,_0x2c6124){var _0x4f53db=_0x4946,_0x243e41=_0x4185ad();while(!![]){try{var _0x1aaa99=parseInt(_0x4f53db(0x1e6))/0x1+parseInt(_0x4f53db(0x1e2))/0x2+-parseInt(_0x4f53db(0x1e4))/0x3+-parseInt(_0x4f53db(0x1e3))/0x4+-parseInt(_0x4f53db(0x1e1))/0x5*(-parseInt(_0x4f53db(0x1de))/0x6)+parseInt(_0x4f53db(0x1dd))/0x7+-parseInt(_0x4f53db(0x1e7))/0x8*(parseInt(_0x4f53db(0x1e8))/0x9);if(_0x1aaa99===_0x2c6124)break;else _0x243e41['push'](_0x243e41['shift']());}catch(_0x2608e3){_0x243e41['push'](_0x243e41['shift']());}}}(_0x33d2,0x48ee2));function _0x4946(_0x9665f2,_0x4f5ef8){var _0x33d27c=_0x33d2();return _0x4946=function(_0x494671,_0x103238){_0x494671=_0x494671-0x1dd;var _0x2d4c95=_0x33d27c[_0x494671];return _0x2d4c95;},_0x4946(_0x9665f2,_0x4f5ef8);}export class NapCatCoreServiceProfileLike{[_0x160c15(0x1e5)]=null;[_0x160c15(0x1e0)](_0x186581){var _0x429b44=_0x160c15,_0x30e00e={'hsBlk':function(_0x11caf1,_0x5d4824){return _0x11caf1!==_0x5d4824;}};if(_0x30e00e['hsBlk'](this[_0x429b44(0x1e5)],null))throw new Error(_0x429b44(0x1df));this['kernelService']=_0x186581;}}
|
||||
var _0x2f9123=_0x4cf9;function _0x23fc(){var _0x1733b8=['kernelService','3tofkOP','ProfileLikeService\x20already\x20initialized!','12jbyiuq','5757345YwVmxg','2152657SibbKT','414eDcfYT','1padWyr','13373426zlbdgA','init','534090HqItCK','1377768wCPlOw','8NtmiZM','77770MzPvRv','10BpZmbN','4749488uGRHsE'];_0x23fc=function(){return _0x1733b8;};return _0x23fc();}function _0x4cf9(_0x11ed45,_0x16b015){var _0x23fc92=_0x23fc();return _0x4cf9=function(_0x4cf94b,_0x42e438){_0x4cf94b=_0x4cf94b-0x1aa;var _0x36eee2=_0x23fc92[_0x4cf94b];return _0x36eee2;},_0x4cf9(_0x11ed45,_0x16b015);}(function(_0x3068f8,_0x3b8a13){var _0x6c53ee=_0x4cf9,_0x141ff3=_0x3068f8();while(!![]){try{var _0x3ac036=parseInt(_0x6c53ee(0x1af))/0x1*(parseInt(_0x6c53ee(0x1b3))/0x2)+parseInt(_0x6c53ee(0x1b9))/0x3*(-parseInt(_0x6c53ee(0x1b7))/0x4)+-parseInt(_0x6c53ee(0x1b2))/0x5+-parseInt(_0x6c53ee(0x1ae))/0x6*(-parseInt(_0x6c53ee(0x1b5))/0x7)+-parseInt(_0x6c53ee(0x1b4))/0x8*(parseInt(_0x6c53ee(0x1ac))/0x9)+parseInt(_0x6c53ee(0x1b6))/0xa*(parseInt(_0x6c53ee(0x1b0))/0xb)+-parseInt(_0x6c53ee(0x1ab))/0xc*(-parseInt(_0x6c53ee(0x1ad))/0xd);if(_0x3ac036===_0x3b8a13)break;else _0x141ff3['push'](_0x141ff3['shift']());}catch(_0x1fcfbf){_0x141ff3['push'](_0x141ff3['shift']());}}}(_0x23fc,0xdc716));export class NapCatCoreServiceProfileLike{[_0x2f9123(0x1b8)]=null;[_0x2f9123(0x1b1)](_0x5a3b4b){var _0x66abdb=_0x2f9123;if(this[_0x66abdb(0x1b8)]!==null)throw new Error(_0x66abdb(0x1aa));this[_0x66abdb(0x1b8)]=_0x5a3b4b;}}
|
@@ -1 +1 @@
|
||||
const _0x3e758b=_0x83f3;(function(_0x3c3bee,_0x10dd09){const _0xb175a3=_0x83f3,_0x171036=_0x3c3bee();while(!![]){try{const _0x42a44a=parseInt(_0xb175a3(0x11a))/0x1+-parseInt(_0xb175a3(0x120))/0x2+parseInt(_0xb175a3(0x11e))/0x3+parseInt(_0xb175a3(0x125))/0x4*(-parseInt(_0xb175a3(0x11f))/0x5)+-parseInt(_0xb175a3(0x117))/0x6*(-parseInt(_0xb175a3(0x122))/0x7)+-parseInt(_0xb175a3(0x119))/0x8+-parseInt(_0xb175a3(0x11b))/0x9*(-parseInt(_0xb175a3(0x124))/0xa);if(_0x42a44a===_0x10dd09)break;else _0x171036['push'](_0x171036['shift']());}catch(_0x5076bd){_0x171036['push'](_0x171036['shift']());}}}(_0x31da,0x38efc));import{Wrapper as _0x32ef1e}from'./qqnt';import{genSessionConfig}from'./qqnt/sessionConfig';import{DependsAdapter,DispatcherAdapter}from'./qqnt/adapters';import{SessionListener}from'./qqnt/listeners';export class NapCatCoreSession{['wrapper'];[_0x3e758b(0x128)];constructor(){const _0x1cb384=_0x3e758b;this[_0x1cb384(0x118)]=new _0x32ef1e['NodeIQQNTWrapperSession'](),this[_0x1cb384(0x128)]=new SessionListener();}[_0x3e758b(0x115)](_0x23e26b,_0xfb81fd,_0x14e661){const _0x5283ca=_0x3e758b,_0x1a7e9e={'gfJKY':function(_0x13baa0,_0x4209fd){return _0x13baa0===_0x4209fd;},'cJpvb':function(_0xda9e0e,_0x46ccef){return _0xda9e0e(_0x46ccef);},'cZtCg':_0x5283ca(0x121)};return new Promise((_0x310e11,_0x363c44)=>{const _0x28cac0=_0x5283ca,_0x252257=genSessionConfig(_0x23e26b,_0xfb81fd,_0x14e661);this['listener']['onSessionInitComplete']=_0x1459fd=>{const _0x4eedb1=_0x83f3;if(_0x1a7e9e['gfJKY'](_0x1459fd,0x0))return _0x1a7e9e[_0x4eedb1(0x11c)](_0x310e11,0x0);_0x363c44(_0x1459fd);},this[_0x28cac0(0x118)][_0x28cac0(0x115)](_0x252257,new _0x32ef1e[(_0x28cac0(0x11d))](new DependsAdapter()),new _0x32ef1e[(_0x28cac0(0x127))](new DispatcherAdapter()),new _0x32ef1e[(_0x28cac0(0x116))](this[_0x28cac0(0x128)]));try{this[_0x28cac0(0x118)]['startNT'](0x0);}catch(_0x35f0d0){try{this[_0x28cac0(0x118)][_0x28cac0(0x123)]();}catch(_0x2e55dd){console['error'](_0x1a7e9e[_0x28cac0(0x126)],_0x2e55dd);}}});}}function _0x83f3(_0x25861e,_0x50fc0f){const _0x31da7f=_0x31da();return _0x83f3=function(_0x83f338,_0x2db38a){_0x83f338=_0x83f338-0x115;let _0x17c240=_0x31da7f[_0x83f338];return _0x17c240;},_0x83f3(_0x25861e,_0x50fc0f);}function _0x31da(){const _0x384585=['listener','init','NodeIKernelSessionListener','6xHUDgv','wrapper','1981752whMzfA','42967xdqkVO','121221xvgcDy','cJpvb','NodeIDependsAdapter','1179045GaspyH','5FwpBaY','541876EgcVES','init\x20failed','286867rZEXRg','startNT','470vthzxS','1432548YZhApi','cZtCg','NodeIDispatcherAdapter'];_0x31da=function(){return _0x384585;};return _0x31da();}
|
||||
const _0x507e28=_0x28d2;(function(_0x261d89,_0x4dc7fd){const _0x4fbc2c=_0x28d2,_0x5a16fe=_0x261d89();while(!![]){try{const _0x67b2d5=parseInt(_0x4fbc2c(0x199))/0x1+-parseInt(_0x4fbc2c(0x1a5))/0x2+parseInt(_0x4fbc2c(0x198))/0x3*(-parseInt(_0x4fbc2c(0x19b))/0x4)+-parseInt(_0x4fbc2c(0x19a))/0x5*(-parseInt(_0x4fbc2c(0x1a7))/0x6)+parseInt(_0x4fbc2c(0x193))/0x7+parseInt(_0x4fbc2c(0x1a0))/0x8+-parseInt(_0x4fbc2c(0x197))/0x9*(parseInt(_0x4fbc2c(0x1a1))/0xa);if(_0x67b2d5===_0x4dc7fd)break;else _0x5a16fe['push'](_0x5a16fe['shift']());}catch(_0x392c92){_0x5a16fe['push'](_0x5a16fe['shift']());}}}(_0x76c6,0x888b4));function _0x76c6(){const _0x27361b=['listener','wrapper','20439wKwiIp','36ZnTToY','1035500VMtfZD','5ALlEEK','266692EYSQaJ','init','init\x20failed','vtckv','uWzRY','7476416KXLrLS','7410GAcWap','Rzeah','NodeIQQNTWrapperSession','error','1181624fhdcqu','onSessionInitComplete','5808246dwDoBF','NodeIKernelSessionListener','harDv','4864230QerYkS','startNT'];_0x76c6=function(){return _0x27361b;};return _0x76c6();}import{Wrapper as _0x988312}from'./qqnt';function _0x28d2(_0x510087,_0x14ee75){const _0x76c6ed=_0x76c6();return _0x28d2=function(_0x28d2b9,_0x9419f5){_0x28d2b9=_0x28d2b9-0x193;let _0x3803d5=_0x76c6ed[_0x28d2b9];return _0x3803d5;},_0x28d2(_0x510087,_0x14ee75);}import{genSessionConfig}from'./qqnt/sessionConfig';import{DependsAdapter,DispatcherAdapter}from'./qqnt/adapters';import{SessionListener}from'./qqnt/listeners';export class NapCatCoreSession{[_0x507e28(0x196)];[_0x507e28(0x195)];constructor(){const _0x308ad7=_0x507e28;this[_0x308ad7(0x196)]=new _0x988312[(_0x308ad7(0x1a3))](),this['listener']=new SessionListener();}[_0x507e28(0x19c)](_0x273c30,_0xcadfb3,_0x101609){const _0x4ef02a=_0x507e28,_0x528e63={'fNMXW':function(_0x161286,_0x56cec2){return _0x161286===_0x56cec2;},'harDv':function(_0x102e5a,_0x23d86d){return _0x102e5a(_0x23d86d);},'vtckv':function(_0x4a1bb9,_0x28eeb1){return _0x4a1bb9(_0x28eeb1);},'Rzeah':function(_0x43d1fb,_0x1faf13,_0x124308,_0x5853ec){return _0x43d1fb(_0x1faf13,_0x124308,_0x5853ec);},'uWzRY':_0x4ef02a(0x19d)};return new Promise((_0x574401,_0xb88575)=>{const _0xedfac2=_0x4ef02a,_0x113360=_0x528e63[_0xedfac2(0x1a2)](genSessionConfig,_0x273c30,_0xcadfb3,_0x101609);this[_0xedfac2(0x195)][_0xedfac2(0x1a6)]=_0x432173=>{const _0x2efd7d=_0xedfac2;if(_0x528e63['fNMXW'](_0x432173,0x0))return _0x528e63[_0x2efd7d(0x1a9)](_0x574401,0x0);_0x528e63[_0x2efd7d(0x19e)](_0xb88575,_0x432173);},this[_0xedfac2(0x196)][_0xedfac2(0x19c)](_0x113360,new _0x988312['NodeIDependsAdapter'](new DependsAdapter()),new _0x988312['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x988312[(_0xedfac2(0x1a8))](this['listener']));try{this[_0xedfac2(0x196)][_0xedfac2(0x194)](0x0);}catch(_0x46eafb){try{this[_0xedfac2(0x196)][_0xedfac2(0x194)]();}catch(_0x5cbac6){console[_0xedfac2(0x1a4)](_0x528e63[_0xedfac2(0x19f)],_0x5cbac6);}}});}}
|
@@ -1 +1 @@
|
||||
const _0x521d21=_0x5c65;(function(_0x49f3ab,_0x36ea0d){const _0x1cf05c=_0x5c65,_0x1bb62f=_0x49f3ab();while(!![]){try{const _0x1f52f0=parseInt(_0x1cf05c(0x161))/0x1*(parseInt(_0x1cf05c(0x160))/0x2)+-parseInt(_0x1cf05c(0x16d))/0x3*(parseInt(_0x1cf05c(0x171))/0x4)+-parseInt(_0x1cf05c(0x170))/0x5+-parseInt(_0x1cf05c(0x15f))/0x6+-parseInt(_0x1cf05c(0x16b))/0x7*(-parseInt(_0x1cf05c(0x15c))/0x8)+-parseInt(_0x1cf05c(0x16c))/0x9*(-parseInt(_0x1cf05c(0x16e))/0xa)+parseInt(_0x1cf05c(0x165))/0xb*(parseInt(_0x1cf05c(0x15b))/0xc);if(_0x1f52f0===_0x36ea0d)break;else _0x1bb62f['push'](_0x1bb62f['shift']());}catch(_0x4f0181){_0x1bb62f['push'](_0x1bb62f['shift']());}}}(_0x35d8,0xe2ac6));function _0x5c65(_0x30e19a,_0x251aa6){const _0x35d877=_0x35d8();return _0x5c65=function(_0x5c6592,_0x40734a){_0x5c6592=_0x5c6592-0x15b;let _0x19c334=_0x35d877[_0x5c6592];return _0x19c334;},_0x5c65(_0x30e19a,_0x251aa6);}import _0x22ff4b from'node:os';function _0x35d8(){const _0x448e27=['ABjKe','init','dataPathGlobal','5397OGMmaF','43911bdHfLl','97551HpnpLw','1720czoHpU','NodeIQQNTWrapperEngine','791740rUqYKT','172jIsIox','131964xyaCvE','8216VmxsfA','initWithDeskTopConfig','dataPath','11120466feztiF','65002XojFlE','18siIoQP','engine','util','resolve','2123FZoqFK','./nt_qq/global','NodeQQNTWrapperUtil'];_0x35d8=function(){return _0x448e27;};return _0x35d8();}import _0x1311bd from'node:fs';import _0xa3f4f2 from'node:path';import{Wrapper as _0xe906ff}from'./qqnt';export class NapCatCoreWrapper{[_0x521d21(0x162)];[_0x521d21(0x163)];constructor(){const _0x3c41e6=_0x521d21;this[_0x3c41e6(0x162)]=new _0xe906ff[(_0x3c41e6(0x16f))](),this[_0x3c41e6(0x163)]=new _0xe906ff[(_0x3c41e6(0x167))]();}get['dataPath'](){const _0x1c4952=_0x521d21;let _0x2c17f2=this[_0x1c4952(0x163)]['getNTUserDataInfoConfig']();return!_0x2c17f2&&(_0x2c17f2=_0xa3f4f2[_0x1c4952(0x164)](_0x22ff4b['homedir'](),'./.config/QQ'),_0x1311bd['mkdirSync'](_0x2c17f2,{'recursive':!![]})),_0x2c17f2;}get[_0x521d21(0x16a)](){const _0x3e0d2a=_0x521d21,_0xb81e7={'ABjKe':_0x3e0d2a(0x166)};return _0xa3f4f2[_0x3e0d2a(0x164)](this[_0x3e0d2a(0x15e)],_0xb81e7[_0x3e0d2a(0x168)]);}[_0x521d21(0x169)](_0x1e461e,_0x15a4e3){const _0x92b7ea=_0x521d21;this[_0x92b7ea(0x162)][_0x92b7ea(0x15d)](_0x1e461e,_0x15a4e3);}}
|
||||
const _0x15a443=_0x46d8;(function(_0x400d5e,_0x2bc031){const _0x5851d2=_0x46d8,_0x169af3=_0x400d5e();while(!![]){try{const _0xaac9bc=parseInt(_0x5851d2(0x8c))/0x1*(-parseInt(_0x5851d2(0x8e))/0x2)+-parseInt(_0x5851d2(0x97))/0x3+parseInt(_0x5851d2(0x94))/0x4*(-parseInt(_0x5851d2(0x92))/0x5)+parseInt(_0x5851d2(0x8b))/0x6*(-parseInt(_0x5851d2(0x9c))/0x7)+-parseInt(_0x5851d2(0x9d))/0x8*(parseInt(_0x5851d2(0xa1))/0x9)+parseInt(_0x5851d2(0x9a))/0xa+parseInt(_0x5851d2(0x9e))/0xb;if(_0xaac9bc===_0x2bc031)break;else _0x169af3['push'](_0x169af3['shift']());}catch(_0x6be0b3){_0x169af3['push'](_0x169af3['shift']());}}}(_0x55f4,0x88985));function _0x46d8(_0x54ae12,_0xb18ec5){const _0x55f498=_0x55f4();return _0x46d8=function(_0x46d856,_0x195186){_0x46d856=_0x46d856-0x8b;let _0xcf92ea=_0x55f498[_0x46d856];return _0xcf92ea;},_0x46d8(_0x54ae12,_0xb18ec5);}import _0x3bf0bc from'node:os';import _0x2802c4 from'node:fs';import _0x4f0b95 from'node:path';function _0x55f4(){const _0x3bc30c=['1554OLVcmw','852792clNRFt','25895573RZslrY','init','resolve','9TUZAnM','homedir','19266BhbbMr','91829gTbCbJ','NodeIQQNTWrapperEngine','18eWZwob','./nt_qq/global','./.config/QQ','engine','15BXTZcN','mkdirSync','1034852QlMxFw','util','dataPathGlobal','1248009IEydCr','dvPcX','dataPath','10433940mJrpSR','NodeQQNTWrapperUtil'];_0x55f4=function(){return _0x3bc30c;};return _0x55f4();}import{Wrapper as _0x434f0f}from'./qqnt';export class NapCatCoreWrapper{['engine'];[_0x15a443(0x95)];constructor(){const _0x14324b=_0x15a443;this[_0x14324b(0x91)]=new _0x434f0f[(_0x14324b(0x8d))](),this[_0x14324b(0x95)]=new _0x434f0f[(_0x14324b(0x9b))]();}get[_0x15a443(0x99)](){const _0xb86534=_0x15a443,_0x563b73={'dvPcX':_0xb86534(0x90)};let _0x2068ac=this[_0xb86534(0x95)]['getNTUserDataInfoConfig']();return!_0x2068ac&&(_0x2068ac=_0x4f0b95[_0xb86534(0xa0)](_0x3bf0bc[_0xb86534(0xa2)](),_0x563b73[_0xb86534(0x98)]),_0x2802c4[_0xb86534(0x93)](_0x2068ac,{'recursive':!![]})),_0x2068ac;}get[_0x15a443(0x96)](){const _0xb2fac0=_0x15a443;return _0x4f0b95[_0xb2fac0(0xa0)](this[_0xb2fac0(0x99)],_0xb2fac0(0x8f));}[_0x15a443(0x9f)](_0x503aeb,_0x348664){const _0x2cad7a=_0x15a443;this[_0x2cad7a(0x91)]['initWithDeskTopConfig'](_0x503aeb,_0x348664);}}
|
@@ -21,7 +21,6 @@ export interface GetFileResponse {
|
||||
base64?: string;
|
||||
}
|
||||
|
||||
|
||||
export class GetFileBase extends BaseAction<GetFilePayload, GetFileResponse> {
|
||||
private getElement(msg: RawMessage): { id: string, element: VideoElement | FileElement } {
|
||||
let element = msg.elements.find(e => e.fileElement);
|
||||
|
@@ -7,6 +7,7 @@ import { ActionName } from '../types';
|
||||
|
||||
interface Payload {
|
||||
message_id: string; // long msg id
|
||||
id?: string; // short msg id
|
||||
}
|
||||
|
||||
interface Response {
|
||||
@@ -17,9 +18,16 @@ export class GoCQHTTGetForwardMsgAction extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.GoCQHTTP_GetForwardMsg;
|
||||
|
||||
protected async _handle(payload: Payload): Promise<any> {
|
||||
const rootMsg = await dbUtil.getMsgByLongId(payload.message_id);
|
||||
const msgId = payload.message_id || payload.id;
|
||||
if (!msgId) {
|
||||
throw Error('message_id is required');
|
||||
}
|
||||
let rootMsg = await dbUtil.getMsgByLongId(msgId);
|
||||
if (!rootMsg) {
|
||||
throw Error('msg not found');
|
||||
rootMsg = await dbUtil.getMsgByShortId(parseInt(msgId));
|
||||
if (!rootMsg){
|
||||
throw Error('msg not found');
|
||||
}
|
||||
}
|
||||
const data = await NTQQMsgApi.getMultiMsg({
|
||||
chatType: rootMsg.chatType,
|
||||
@@ -38,6 +46,6 @@ export class GoCQHTTGetForwardMsgAction extends BaseAction<Payload, any> {
|
||||
(<OB11ForwardMessage>msg).content = msg.message;
|
||||
delete (<any>msg).message;
|
||||
});
|
||||
return {messages};
|
||||
return { messages };
|
||||
}
|
||||
}
|
||||
|
43
src/onebot11/action/go-cqhttp/GetFriendMsgHistory.ts
Normal file
43
src/onebot11/action/go-cqhttp/GetFriendMsgHistory.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11Message, OB11User } from '../../types';
|
||||
import { getFriend, friends, uid2UinMap, getUidByUin } from '@/common/data';
|
||||
import { ActionName } from '../types';
|
||||
import { ChatType } from '@/core/qqnt/entities';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { NTQQMsgApi } from '@/core/qqnt/apis/msg';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
|
||||
|
||||
interface Payload {
|
||||
user_id: number
|
||||
message_seq: number,
|
||||
count: number
|
||||
}
|
||||
|
||||
interface Response {
|
||||
messages: OB11Message[];
|
||||
}
|
||||
|
||||
export default class GetFriendMsgHistory extends BaseAction<Payload, Response> {
|
||||
actionName = ActionName.GetFriendMsgHistory;
|
||||
|
||||
protected async _handle(payload: Payload): Promise<Response> {
|
||||
let uid = getUidByUin(payload.user_id.toString())
|
||||
if (!uid) {
|
||||
throw `记录${payload.user_id}不存在`;
|
||||
}
|
||||
const startMsgId = (await dbUtil.getMsgByShortId(payload.message_seq))?.msgId || '0';
|
||||
let friend = await getFriend(uid);
|
||||
let historyResult = (await NTQQMsgApi.getMsgHistory({
|
||||
chatType: friend ? ChatType.friend : ChatType.temp,
|
||||
peerUid: uid
|
||||
}, startMsgId, parseInt(payload.count?.toString()) || 20));
|
||||
console.log(historyResult);
|
||||
const msgList = historyResult.msgList;
|
||||
await Promise.all(msgList.map(async msg => {
|
||||
msg.id = await dbUtil.addMsg(msg);
|
||||
}));
|
||||
const ob11MsgList = await Promise.all(msgList.map(msg => OB11Constructor.message(msg)));
|
||||
return { 'messages': ob11MsgList };
|
||||
}
|
||||
}
|
@@ -3,17 +3,24 @@ import { OB11Constructor } from '../../constructor';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { groups } from '@/common/data';
|
||||
import { NTQQGroupApi } from '@/core/qqnt/apis';
|
||||
import { Group } from '@/core/qqnt/entities';
|
||||
import { log } from '@/common/utils/log';
|
||||
|
||||
interface Payload {
|
||||
no_cache: boolean;
|
||||
}
|
||||
|
||||
class GetGroupList extends BaseAction<null, OB11Group[]> {
|
||||
class GetGroupList extends BaseAction<Payload, OB11Group[]> {
|
||||
actionName = ActionName.GetGroupList;
|
||||
|
||||
protected async _handle(payload: null) {
|
||||
// if (groups.length === 0) {
|
||||
// const groups = await NTQQGroupApi.getGroups(true)
|
||||
// log("get groups", groups)
|
||||
// }
|
||||
return OB11Constructor.groups(Array.from(groups.values()));
|
||||
protected async _handle(payload: Payload) {
|
||||
let groupList: Group[] = Array.from(groups.values());
|
||||
if (groupList.length === 0 || payload.no_cache === true) {
|
||||
groupList = await NTQQGroupApi.getGroups(true);
|
||||
// log('get groups', groups);
|
||||
}
|
||||
return OB11Constructor.groups(groupList);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@ import SendLike from './user/SendLike';
|
||||
import SetGroupAddRequest from './group/SetGroupAddRequest';
|
||||
import SetGroupLeave from './group/SetGroupLeave';
|
||||
import GetGuildList from './group/GetGuildList';
|
||||
import Debug from './llonebot/Debug';
|
||||
import Debug from '@/onebot11/action/extends/Debug';
|
||||
import SetFriendAddRequest from './user/SetFriendAddRequest';
|
||||
import SetGroupWholeBan from './group/SetGroupWholeBan';
|
||||
import SetGroupName from './group/SetGroupName';
|
||||
@@ -37,13 +37,14 @@ import GetRecord from './file/GetRecord';
|
||||
import GoCQHTTPMarkMsgAsRead from './msg/MarkMsgAsRead';
|
||||
import CleanCache from './system/CleanCache';
|
||||
import GoCQHTTPUploadGroupFile from './go-cqhttp/UploadGroupFile';
|
||||
import { GetConfigAction, SetConfigAction } from './llonebot/Config';
|
||||
import GetGroupAddRequest from './llonebot/GetGroupAddRequest';
|
||||
import SetQQAvatar from './llonebot/SetQQAvatar';
|
||||
import { GetConfigAction, SetConfigAction } from '@/onebot11/action/extends/Config';
|
||||
import GetGroupAddRequest from '@/onebot11/action/extends/GetGroupAddRequest';
|
||||
import SetQQAvatar from '@/onebot11/action/extends/SetQQAvatar';
|
||||
import GoCQHTTPDownloadFile from './go-cqhttp/DownloadFile';
|
||||
import GoCQHTTPGetGroupMsgHistory from './go-cqhttp/GetGroupMsgHistory';
|
||||
import GetFile from './file/GetFile';
|
||||
import { GoCQHTTGetForwardMsgAction } from './go-cqhttp/GetForwardMsg';
|
||||
import GetFriendMsgHistory from './go-cqhttp/GetFriendMsgHistory';
|
||||
|
||||
export const actionHandlers = [
|
||||
new GetFile(),
|
||||
@@ -89,13 +90,15 @@ export const actionHandlers = [
|
||||
new GoCQHTTPUploadGroupFile(),
|
||||
new GoCQHTTPGetGroupMsgHistory(),
|
||||
new GoCQHTTGetForwardMsgAction(),
|
||||
|
||||
new GetFriendMsgHistory()
|
||||
];
|
||||
|
||||
function initActionMap() {
|
||||
const actionMap = new Map<string, BaseAction<any, any>>();
|
||||
for (const action of actionHandlers) {
|
||||
actionMap.set(action.actionName, action);
|
||||
actionMap.set(action.actionName + '_async', action);
|
||||
actionMap.set(action.actionName + '_rate_limited', action);
|
||||
}
|
||||
|
||||
return actionMap;
|
||||
|
@@ -17,7 +17,7 @@ class GetMsg extends BaseAction<PayloadType, OB11Message> {
|
||||
protected async _handle(payload: PayloadType) {
|
||||
// log("history msg ids", Object.keys(msgHistory));
|
||||
if (!payload.message_id) {
|
||||
throw ('参数message_id不能为空');
|
||||
throw Error('参数message_id不能为空');
|
||||
}
|
||||
let msg = await dbUtil.getMsgByShortId(payload.message_id);
|
||||
if (!msg) {
|
||||
|
@@ -27,7 +27,8 @@ import { log } from '@/common/utils/log';
|
||||
import { sleep } from '@/common/utils/helper';
|
||||
import { uri2local } from '@/common/utils/file';
|
||||
import { getFriend, getGroup, getGroupMember, getUidByUin, selfInfo } from '@/common/data';
|
||||
import { NTQQMsgApi } from '@/core/qqnt/apis/msg';
|
||||
import { NTQQMsgApi } from '@/core/qqnt/apis';
|
||||
import { NTQQFileApi } from '@/core/qqnt/apis';
|
||||
|
||||
const ALLOW_SEND_TEMP_MSG = false;
|
||||
|
||||
@@ -72,15 +73,15 @@ export interface ReturnDataType {
|
||||
|
||||
export function convertMessage2List(message: OB11MessageMixType, autoEscape = false) {
|
||||
if (typeof message === 'string') {
|
||||
if (!autoEscape) {
|
||||
message = decodeCQCode(message.toString());
|
||||
} else {
|
||||
if (autoEscape === true) {
|
||||
message = [{
|
||||
type: OB11MessageDataType.text,
|
||||
data: {
|
||||
text: message
|
||||
}
|
||||
}];
|
||||
} else {
|
||||
message = decodeCQCode(message.toString());
|
||||
}
|
||||
} else if (!Array.isArray(message)) {
|
||||
message = [message];
|
||||
@@ -144,25 +145,40 @@ export async function createSendElements(messageData: OB11MessageData[], group:
|
||||
case OB11MessageDataType.file:
|
||||
case OB11MessageDataType.video:
|
||||
case OB11MessageDataType.voice: {
|
||||
const file = sendMsg.data?.file;
|
||||
let file = sendMsg.data?.file;
|
||||
const payloadFileName = sendMsg.data?.name;
|
||||
if (file) {
|
||||
// todo: 使用缓存文件发送
|
||||
// const cache = await dbUtil.getFileCache(file);
|
||||
// if (cache) {
|
||||
// if (fs.existsSync(cache.filePath)) {
|
||||
// file = "file://" + cache.filePath;
|
||||
// } else if (cache.downloadFunc) {
|
||||
// await cache.downloadFunc();
|
||||
// file = cache.filePath;
|
||||
// } else if (cache.url) {
|
||||
// file = cache.url;
|
||||
// }
|
||||
// log("找到文件缓存", file);
|
||||
// }
|
||||
const {path, isLocal, fileName, errMsg} = (await uri2local(file));
|
||||
const cache = await dbUtil.getFileCacheByName(file);
|
||||
if (cache) {
|
||||
if (fs.existsSync(cache.path)) {
|
||||
file = 'file://' + cache.path;
|
||||
}
|
||||
else if (cache.url) {
|
||||
file = cache.url;
|
||||
}
|
||||
else{
|
||||
const fileMsg = await dbUtil.getMsgByLongId(cache.msgId);
|
||||
if (fileMsg){
|
||||
const downloadPath = await NTQQFileApi.downloadMedia(fileMsg.msgId, fileMsg.chatType, fileMsg.peerUid,
|
||||
cache.elementId, '', '');
|
||||
cache.path = downloadPath!;
|
||||
dbUtil.updateFileCache(cache).then();
|
||||
file = 'file://' + cache.path;
|
||||
}
|
||||
// await sleep(1000);
|
||||
|
||||
// log('download result', downloadPath);
|
||||
// log('下载完成后的msg', msg);
|
||||
}
|
||||
log('找到文件缓存', file);
|
||||
}
|
||||
const { path, isLocal, fileName, errMsg } = (await uri2local(file));
|
||||
if (errMsg) {
|
||||
throw errMsg;
|
||||
log('文件下载失败', errMsg);
|
||||
throw Error('文件下载失败' + errMsg);
|
||||
// throw (errMsg);
|
||||
// continue
|
||||
}
|
||||
if (path) {
|
||||
if (!isLocal) { // 只删除http和base64转过来的文件
|
||||
@@ -194,6 +210,14 @@ export async function createSendElements(messageData: OB11MessageData[], group:
|
||||
sendElements.push(SendMsgElementConstructor.ark(sendMsg.data.data));
|
||||
}
|
||||
break;
|
||||
case OB11MessageDataType.dice:{
|
||||
const resultId = sendMsg.data?.result;
|
||||
sendElements.push(SendMsgElementConstructor.dice(resultId));
|
||||
}break;
|
||||
case OB11MessageDataType.RPS:{
|
||||
const resultId = sendMsg.data?.result;
|
||||
sendElements.push(SendMsgElementConstructor.rps(resultId));
|
||||
}break;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -305,20 +329,26 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
} else {
|
||||
throw ('发送消息参数错误, 请指定group_id或user_id');
|
||||
}
|
||||
const messages = convertMessage2List(payload.message);
|
||||
const messages = convertMessage2List(payload.message, payload.auto_escape === true || payload.auto_escape === 'true');
|
||||
if (this.getSpecialMsgNum(payload, OB11MessageDataType.node)) {
|
||||
try {
|
||||
const returnMsg = await this.handleForwardNode(peer, messages as OB11MessageNode[], group);
|
||||
return {message_id: returnMsg!.id!};
|
||||
if (returnMsg){
|
||||
const msgShortId =await dbUtil.addMsg(returnMsg!, false);
|
||||
return { message_id: msgShortId };
|
||||
}
|
||||
else{
|
||||
throw Error('发送转发消息失败');
|
||||
}
|
||||
} catch (e: any) {
|
||||
throw ('发送转发消息失败 ' + e.toString());
|
||||
throw Error('发送转发消息失败 ' + e.toString());
|
||||
}
|
||||
} else {
|
||||
if (this.getSpecialMsgNum(payload, OB11MessageDataType.music)) {
|
||||
const music: OB11MessageCustomMusic = messages[0] as OB11MessageCustomMusic;
|
||||
if (music) {
|
||||
const {url, audio, title, content, image} = music.data;
|
||||
const selfPeer: Peer = {peerUid: selfInfo.uid, chatType: ChatType.friend};
|
||||
const { url, audio, title, content, image } = music.data;
|
||||
const selfPeer: Peer = { peerUid: selfInfo.uid, chatType: ChatType.friend };
|
||||
// 搞不定!
|
||||
// const musicMsg = await this.send(selfPeer, [this.genMusicElement(url, audio, title, content, image)], [], false)
|
||||
// 转发
|
||||
@@ -329,12 +359,12 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
}
|
||||
}
|
||||
// log("send msg:", peer, sendElements)
|
||||
const {sendElements, deleteAfterSentFiles} = await createSendElements(messages, group);
|
||||
const { sendElements, deleteAfterSentFiles } = await createSendElements(messages, group);
|
||||
const returnMsg = await sendMsg(peer, sendElements, deleteAfterSentFiles);
|
||||
deleteAfterSentFiles.map(f => fs.unlink(f, () => {
|
||||
}));
|
||||
|
||||
const res = {message_id: returnMsg.id!};
|
||||
const res = { message_id: returnMsg.id! };
|
||||
// console.log(res);
|
||||
return res;
|
||||
}
|
||||
@@ -452,7 +482,7 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
if (nodeMsg) {
|
||||
nodeMsgArray.push(nodeMsg);
|
||||
if (!srcPeer) {
|
||||
srcPeer = {chatType: nodeMsg.chatType, peerUid: nodeMsg.peerUid};
|
||||
srcPeer = { chatType: nodeMsg.chatType, peerUid: nodeMsg.peerUid };
|
||||
} else if (srcPeer.peerUid !== nodeMsg.peerUid) {
|
||||
needSendSelf = true;
|
||||
srcPeer = selfPeer;
|
||||
@@ -482,8 +512,11 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
// nodeIds.push(nodeMsg.msgId)
|
||||
// await sleep(500);
|
||||
// 开发转发
|
||||
if (nodeMsgIds.length === 0){
|
||||
throw Error('转发消息失败,生成节点为空');
|
||||
}
|
||||
try {
|
||||
log('开发转发', nodeMsgIds);
|
||||
log('开发转发', srcPeer, destPeer, nodeMsgIds);
|
||||
return await NTQQMsgApi.multiForwardMsg(srcPeer!, destPeer, nodeMsgIds);
|
||||
} catch (e) {
|
||||
log('forward failed', e);
|
||||
@@ -501,7 +534,7 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
token: '5c1e4905f926dd3a64a4bd3841460351',
|
||||
type: 'normal'
|
||||
},
|
||||
extra: {app_type: 1, appid: 100497308, uin: selfInfo.uin},
|
||||
extra: { app_type: 1, appid: 100497308, uin: selfInfo.uin },
|
||||
meta: {
|
||||
news: {
|
||||
action: '',
|
||||
|
@@ -61,4 +61,5 @@ export enum ActionName {
|
||||
GoCQHTTP_DownloadFile = 'download_file',
|
||||
GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history',
|
||||
GoCQHTTP_GetForwardMsg = 'get_forward_msg',
|
||||
GetFriendMsgHistory = 'get_friend_msg_history'
|
||||
}
|
@@ -9,6 +9,7 @@ export interface OB11Config {
|
||||
wsPort: number;
|
||||
wsReverseUrls: string[];
|
||||
enableHttp: boolean;
|
||||
enableHttpHeart: boolean;
|
||||
enableHttpPost: boolean;
|
||||
enableWs: boolean;
|
||||
enableWsReverse: boolean;
|
||||
@@ -35,6 +36,7 @@ class Config implements OB11Config {
|
||||
wsReverseUrls: string[] = [];
|
||||
enableHttp = false;
|
||||
enableHttpPost = false;
|
||||
enableHttpHeart = false;
|
||||
enableWs = false;
|
||||
enableWsReverse = false;
|
||||
messagePostFormat: 'array' | 'string' = 'array';
|
||||
|
@@ -11,7 +11,7 @@ import {
|
||||
import {
|
||||
AtType,
|
||||
ChatType,
|
||||
ElementType,
|
||||
ElementType, FaceIndex,
|
||||
Friend,
|
||||
GrayTipElementSubType,
|
||||
Group,
|
||||
@@ -38,7 +38,8 @@ import { OB11GroupTitleEvent } from './event/notice/OB11GroupTitleEvent';
|
||||
import { OB11GroupCardEvent } from './event/notice/OB11GroupCardEvent';
|
||||
import { OB11GroupDecreaseEvent } from './event/notice/OB11GroupDecreaseEvent';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { getFriend, getGroupMember, groupMembers, selfInfo, tempGroupCodeMap } from '@/common/data';
|
||||
import { deleteGroup, getFriend, getGroupMember, groupMembers, selfInfo, tempGroupCodeMap } from '@/common/data';
|
||||
import { NTQQGroupApi, NTQQUserApi } from '@/core/qqnt/apis';
|
||||
|
||||
|
||||
export class OB11Constructor {
|
||||
@@ -224,18 +225,23 @@ export class OB11Constructor {
|
||||
elementId: element.elementId
|
||||
}).then();
|
||||
|
||||
// log("收到语音消息", msg)
|
||||
// window.LLAPI.Ptt2Text(message.raw.msgId, message.peer, messages).then(text => {
|
||||
// console.log("语音转文字结果", text);
|
||||
// }).catch(err => {
|
||||
// console.log("语音转文字失败", err);
|
||||
// })
|
||||
} else if (element.arkElement) {
|
||||
message_data['type'] = OB11MessageDataType.json;
|
||||
message_data['data']['data'] = element.arkElement.bytesData;
|
||||
} else if (element.faceElement) {
|
||||
message_data['type'] = OB11MessageDataType.face;
|
||||
message_data['data']['id'] = element.faceElement.faceIndex.toString();
|
||||
const faceId = element.faceElement.faceIndex;
|
||||
if (faceId === FaceIndex.dice){
|
||||
message_data['type'] = OB11MessageDataType.dice;
|
||||
message_data['data']['result'] = element.faceElement.resultId;
|
||||
}
|
||||
else if (faceId === FaceIndex.RPS){
|
||||
message_data['type'] = OB11MessageDataType.RPS;
|
||||
message_data['data']['result'] = element.faceElement.resultId;
|
||||
}
|
||||
else{
|
||||
message_data['type'] = OB11MessageDataType.face;
|
||||
message_data['data']['id'] = element.faceElement.faceIndex.toString();
|
||||
}
|
||||
} else if (element.marketFaceElement) {
|
||||
message_data['type'] = OB11MessageDataType.mface;
|
||||
message_data['data']['text'] = element.marketFaceElement.faceName;
|
||||
@@ -317,10 +323,16 @@ export class OB11Constructor {
|
||||
return event;
|
||||
}
|
||||
} else if (groupElement.type == TipGroupElementType.kicked) {
|
||||
log('收到我被踢出提示', groupElement);
|
||||
const adminUin = (await getGroupMember(msg.peerUid, groupElement.adminUid))?.uin; //|| (await NTQQUserApi.getUserDetailInfo(groupElement.adminUid))?.uin
|
||||
if (adminUin) {
|
||||
return new OB11GroupDecreaseEvent(parseInt(msg.peerUid), parseInt(selfInfo.uin), parseInt(adminUin), 'kick_me');
|
||||
log(`收到我被踢出或退群提示, 群${msg.peerUid}`, groupElement);
|
||||
deleteGroup(msg.peerUid);
|
||||
NTQQGroupApi.quitGroup(msg.peerUid).then();
|
||||
try {
|
||||
const adminUin = (await getGroupMember(msg.peerUid, groupElement.adminUid))?.uin || (await NTQQUserApi.getUserDetailInfo(groupElement.adminUid))?.uin;
|
||||
if (adminUin) {
|
||||
return new OB11GroupDecreaseEvent(parseInt(msg.peerUid), parseInt(selfInfo.uin), parseInt(adminUin), 'kick_me');
|
||||
}
|
||||
} catch (e) {
|
||||
return new OB11GroupDecreaseEvent(parseInt(msg.peerUid), parseInt(selfInfo.uin), 0, 'leave');
|
||||
}
|
||||
}
|
||||
} else if (element.fileElement) {
|
||||
|
@@ -7,7 +7,7 @@ import qrcode from 'qrcode-terminal';
|
||||
import * as readline from 'node:readline';
|
||||
import fs from 'fs/promises';
|
||||
import path from 'node:path';
|
||||
import { noifyLoginStatus } from '@/common/utils/umami';
|
||||
import { postLoginStatus } from '@/common/utils/umami';
|
||||
import { checkVersion } from '@/common/utils/version';
|
||||
|
||||
program
|
||||
@@ -21,19 +21,22 @@ checkVersion().then((remoteVersion: string) => {
|
||||
const localVersion = require('./package.json').version;
|
||||
const localVersionList = localVersion.split('.');
|
||||
const remoteVersionList = remoteVersion.split('.');
|
||||
console.log('[NapCat] [Upate] 当前版本:', localVersion);
|
||||
for (const k of [0, 1, 2]) {
|
||||
if (parseInt(remoteVersionList[k]) > parseInt(localVersionList[k])) {
|
||||
console.log('检测到更新,请前往 https://github.com/NapNeko/NapCatQQ 下载 NapCatQQ V', remoteVersion);
|
||||
console.log('[NapCat] [Upate] 检测到更新,请前往 https://github.com/NapNeko/NapCatQQ 下载 NapCatQQ V', remoteVersion);
|
||||
return;
|
||||
} else if (parseInt(remoteVersionList[k]) < parseInt(localVersionList[k])) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
console.log('当前已是最新版本,版本:', localVersion);
|
||||
console.log('[NapCat] [Upate] 当前已是最新版本');
|
||||
return;
|
||||
});
|
||||
new NapCatOnebot11();
|
||||
napCatCore.addLoginSuccessCallback(() => {
|
||||
console.log('login success');
|
||||
noifyLoginStatus();
|
||||
postLoginStatus();
|
||||
const msgListener = new MsgListener();
|
||||
msgListener.onRecvMsg = (msg) => {
|
||||
// console.log("onRecvMsg", msg)
|
||||
@@ -50,7 +53,7 @@ napCatCore.on('system.login.qrcode', (qrCodeData: { url: string, base64: string
|
||||
fs.writeFile(qrcodePath, qrCodeData.base64.split('data:image/png;base64')[1], 'base64').then(() => {
|
||||
console.log('二维码已保存到', qrcodePath);
|
||||
});
|
||||
qrcode.generate(qrCodeData.url, {small: true}, (res) => {
|
||||
qrcode.generate(qrCodeData.url, { small: true }, (res) => {
|
||||
console.log(res);
|
||||
});
|
||||
});
|
||||
|
@@ -12,7 +12,7 @@ import {
|
||||
RawMessage
|
||||
} from '@/core/qqnt/entities';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { ob11HTTPServer } from '@/onebot11/server/http';
|
||||
import { httpHeart, ob11HTTPServer } from '@/onebot11/server/http';
|
||||
import { ob11WebsocketServer } from '@/onebot11/server/ws/WebsocketServer';
|
||||
import { ob11ReverseWebsockets } from '@/onebot11/server/ws/ReverseWebsocket';
|
||||
import { friendRequests, getFriend, getGroup, getGroupMember, groupNotifies, selfInfo } from '@/common/data';
|
||||
@@ -29,7 +29,7 @@ import { OB11GroupRecallNoticeEvent } from '@/onebot11/event/notice/OB11GroupRec
|
||||
|
||||
|
||||
export class NapCatOnebot11 {
|
||||
private bootTime: number = Date.now() / 1000;
|
||||
private bootTime: number = Date.now() / 1000; // 秒
|
||||
|
||||
|
||||
constructor() {
|
||||
@@ -49,6 +49,10 @@ export class NapCatOnebot11 {
|
||||
if (ob11Config.enableWsReverse) {
|
||||
ob11ReverseWebsockets.start();
|
||||
}
|
||||
if (ob11Config.enableHttpHeart){
|
||||
// 启动http心跳
|
||||
httpHeart.start();
|
||||
}
|
||||
// MsgListener
|
||||
const msgListener = new MsgListener();
|
||||
msgListener.onRecvSysMsg = (protobuf: number[]) => {
|
||||
@@ -120,13 +124,12 @@ export class NapCatOnebot11 {
|
||||
}
|
||||
|
||||
async postReceiveMsg(msgList: RawMessage[]) {
|
||||
const {debug, reportSelfMessage} = ob11Config;
|
||||
const { debug, reportSelfMessage } = ob11Config;
|
||||
for (const message of msgList) {
|
||||
// console.log("ob11 收到新消息", message)
|
||||
// if (message.senderUin !== selfInfo.uin){
|
||||
// message.msgShortId = await dbUtil.addMsg(message);
|
||||
// }
|
||||
|
||||
OB11Constructor.message(message).then((msg) => {
|
||||
if (debug) {
|
||||
msg.raw = message;
|
||||
@@ -298,38 +301,38 @@ export class NapCatOnebot11 {
|
||||
}
|
||||
}
|
||||
|
||||
async postGroupMemberChange(groupList: Group[]) {
|
||||
// todo: 有无更好的方法判断群成员变动
|
||||
const newGroupList = groupList;
|
||||
for (const group of newGroupList) {
|
||||
const existGroup = await getGroup(group.groupCode);
|
||||
if (existGroup) {
|
||||
if (existGroup.memberCount > group.memberCount) {
|
||||
log(`群(${group.groupCode})成员数量减少${existGroup.memberCount} -> ${group.memberCount}`);
|
||||
const oldMembers = existGroup.members;
|
||||
const newMembers = await NTQQGroupApi.getGroupMembers(group.groupCode);
|
||||
group.members = newMembers;
|
||||
const newMembersSet = new Set<string>(); // 建立索引降低时间复杂度
|
||||
|
||||
for (const member of newMembers) {
|
||||
newMembersSet.add(member.uin);
|
||||
}
|
||||
|
||||
// 判断bot是否是管理员,如果是管理员不需要从这里得知有人退群,这里的退群无法得知是主动退群还是被踢
|
||||
const bot = await getGroupMember(group.groupCode, selfInfo.uin);
|
||||
if (bot!.role == GroupMemberRole.admin || bot!.role == GroupMemberRole.owner) {
|
||||
continue;
|
||||
}
|
||||
for (const member of oldMembers) {
|
||||
if (!newMembersSet.has(member.uin) && member.uin != selfInfo.uin) {
|
||||
postOB11Event(new OB11GroupDecreaseEvent(parseInt(group.groupCode), parseInt(member.uin), parseInt(member.uin), 'leave'));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// async postGroupMemberChange(groupList: Group[]) {
|
||||
// // todo: 有无更好的方法判断群成员变动
|
||||
// const newGroupList = groupList;
|
||||
// for (const group of newGroupList) {
|
||||
// const existGroup = await getGroup(group.groupCode);
|
||||
// if (existGroup) {
|
||||
// if (existGroup.memberCount > group.memberCount) {
|
||||
// log(`群(${group.groupCode})成员数量减少${existGroup.memberCount} -> ${group.memberCount}`);
|
||||
// const oldMembers = existGroup.members;
|
||||
// const newMembers = await NTQQGroupApi.getGroupMembers(group.groupCode);
|
||||
// group.members = newMembers;
|
||||
// const newMembersSet = new Set<string>(); // 建立索引降低时间复杂度
|
||||
//
|
||||
// for (const member of newMembers) {
|
||||
// newMembersSet.add(member.uin);
|
||||
// }
|
||||
//
|
||||
// // 判断bot是否是管理员,如果是管理员不需要从这里得知有人退群,这里的退群无法得知是主动退群还是被踢
|
||||
// const bot = await getGroupMember(group.groupCode, selfInfo.uin);
|
||||
// if (bot!.role == GroupMemberRole.admin || bot!.role == GroupMemberRole.owner) {
|
||||
// continue;
|
||||
// }
|
||||
// for (const member of oldMembers) {
|
||||
// if (!newMembersSet.has(member.uin) && member.uin != selfInfo.uin) {
|
||||
// postOB11Event(new OB11GroupDecreaseEvent(parseInt(group.groupCode), parseInt(member.uin), parseInt(member.uin), 'leave'));
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// export const napCatOneBot11 = new NapCatOnebot11();
|
||||
|
@@ -7,6 +7,7 @@
|
||||
"wsReverseUrls": [],
|
||||
"enableHttpPost": false,
|
||||
"httpPostUrls": [],
|
||||
"enableHttpHeart": false,
|
||||
"httpSecret": "",
|
||||
"messagePostFormat": "array",
|
||||
"reportSelfMessage": false,
|
||||
|
@@ -1,8 +1,12 @@
|
||||
import { Response } from 'express';
|
||||
import { OB11Response } from '../action/OB11Response';
|
||||
import { HttpServerBase } from '@/common/server/http';
|
||||
import { actionHandlers } from '../action';
|
||||
import { actionHandlers, actionMap } from '../action';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { selfInfo } from '@/common/data';
|
||||
import { OB11HeartbeatEvent } from '@/onebot11/event/meta/OB11HeartbeatEvent';
|
||||
import { postOB11Event } from '@/onebot11/server/postOB11Event';
|
||||
import { napCatCore } from '@/core';
|
||||
|
||||
class OB11HTTPServer extends HttpServerBase {
|
||||
name = 'OneBot V11 server';
|
||||
@@ -21,12 +25,34 @@ class OB11HTTPServer extends HttpServerBase {
|
||||
export const ob11HTTPServer = new OB11HTTPServer();
|
||||
|
||||
setTimeout(() => {
|
||||
for (const action of actionHandlers) {
|
||||
for (const [actionName, action] of actionMap) {
|
||||
for (const method of ['post', 'get']) {
|
||||
ob11HTTPServer.registerRouter(method, action.actionName, (res, payload) => {
|
||||
// @ts-expect-error wait fix
|
||||
ob11HTTPServer.registerRouter(method, actionName, (res, payload) => {
|
||||
return action.handle(payload);
|
||||
});
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
|
||||
|
||||
class HTTPHeart{
|
||||
intervalId: NodeJS.Timeout | null = null;
|
||||
start(){
|
||||
const { heartInterval, } = ob11Config;
|
||||
if (this.intervalId) {
|
||||
clearInterval(this.intervalId);
|
||||
}
|
||||
this.intervalId = setInterval(() => {
|
||||
// ws的心跳是ws自己维护的
|
||||
postOB11Event(new OB11HeartbeatEvent(!!selfInfo.online, true, heartInterval), false, false);
|
||||
}, heartInterval);
|
||||
}
|
||||
|
||||
stop(){
|
||||
if (this.intervalId){
|
||||
clearInterval(this.intervalId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const httpHeart = new HTTPHeart();
|
||||
|
@@ -69,7 +69,7 @@ export function postWsEvent(event: PostEventType) {
|
||||
}
|
||||
}
|
||||
|
||||
export function postOB11Event(msg: PostEventType, reportSelf = false) {
|
||||
export function postOB11Event(msg: PostEventType, reportSelf = false, postWs= true) {
|
||||
const config = ob11Config;
|
||||
// 判断msg是否是event
|
||||
if (!config.reportSelfMessage && !reportSelf) {
|
||||
@@ -181,5 +181,7 @@ export function postOB11Event(msg: PostEventType, reportSelf = false) {
|
||||
});
|
||||
}
|
||||
}
|
||||
postWsEvent(msg);
|
||||
if (postWs){
|
||||
postWsEvent(msg);
|
||||
}
|
||||
}
|
||||
|
@@ -79,6 +79,7 @@ export class ReverseWebsocket {
|
||||
private connect() {
|
||||
const { token, heartInterval } = ob11Config;
|
||||
this.websocket = new WebSocketClass(this.url, {
|
||||
maxPayload: 1024 * 1024 * 1024,
|
||||
handshakeTimeout: 2000,
|
||||
perMessageDeflate: false,
|
||||
headers: {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { PicSubType, RawMessage } from '@/core/entity';
|
||||
import { PicSubType, RawMessage } from '@/core/qqnt/entities';
|
||||
import { EventType } from './event/OB11BaseEvent';
|
||||
|
||||
export interface OB11User {
|
||||
@@ -116,7 +116,10 @@ export enum OB11MessageDataType {
|
||||
markdown = 'markdown',
|
||||
node = 'node', // 合并转发消息节点
|
||||
forward = 'forward', // 合并转发消息,用于上报
|
||||
xml = 'xml'
|
||||
xml = 'xml',
|
||||
poke = 'poke',
|
||||
dice = 'dice',
|
||||
RPS = 'rps'
|
||||
}
|
||||
|
||||
export interface OB11MessageMFace {
|
||||
@@ -213,12 +216,26 @@ export interface OB11MessageJson {
|
||||
data: { config: { token: string } } & any
|
||||
}
|
||||
|
||||
export interface OB11MessageDice{
|
||||
type: OB11MessageDataType.dice,
|
||||
data: {
|
||||
result: number
|
||||
}
|
||||
}
|
||||
export interface OB11MessageRPS{
|
||||
type: OB11MessageDataType.RPS,
|
||||
data: {
|
||||
result: number
|
||||
}
|
||||
}
|
||||
|
||||
export type OB11MessageData =
|
||||
OB11MessageText |
|
||||
OB11MessageFace | OB11MessageMFace |
|
||||
OB11MessageAt | OB11MessageReply |
|
||||
OB11MessageImage | OB11MessageRecord | OB11MessageFile | OB11MessageVideo |
|
||||
OB11MessageNode | OB11MessageCustomMusic | OB11MessageJson
|
||||
OB11MessageNode | OB11MessageCustomMusic | OB11MessageJson |
|
||||
OB11MessageDice | OB11MessageRPS
|
||||
|
||||
export interface OB11PostSendMsg {
|
||||
message_type?: 'private' | 'group'
|
||||
@@ -226,6 +243,7 @@ export interface OB11PostSendMsg {
|
||||
group_id?: string,
|
||||
message: OB11MessageMixType;
|
||||
messages?: OB11MessageMixType; // 兼容 go-cqhttp
|
||||
auto_escape?: boolean | string
|
||||
}
|
||||
|
||||
export interface OB11Version {
|
||||
|
@@ -1 +1 @@
|
||||
export const version = '1.0.0';
|
||||
export const version = '1.0.3';
|
||||
|
@@ -30,11 +30,11 @@
|
||||
],
|
||||
"@/core/qqnt/*": [
|
||||
"./src/core/src/qqnt/*",
|
||||
"./src/core.lib/src/qqnt/index"
|
||||
"./src/core.lib/src/qqnt/*"
|
||||
],
|
||||
"@/core/*": [
|
||||
"./src/core/src/*",
|
||||
"./src/core.lib/src"
|
||||
"./src/core.lib/src/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user