Compare commits

...

56 Commits

Author SHA1 Message Date
手瓜一十雪
45c922c377 release: 1.6.3 2024-06-28 14:00:15 +08:00
手瓜一十雪
f854c258bd fix: 清除旧的反向ws 2024-06-28 13:42:09 +08:00
手瓜一十雪
a643fac073 refactor: msg context 2024-06-28 13:38:03 +08:00
手瓜一十雪
861f105bea fix: uid->uin 临时修复方案
uid uin转换需要优化
2024-06-28 13:11:06 +08:00
手瓜一十雪
bf10ce9f1e fix: error 2024-06-26 18:40:08 +08:00
手瓜一十雪
ccf521d0a8 feat: win ia32支持 2024-06-26 18:13:55 +08:00
手瓜一十雪
6075d98eaa release: v1.6.2 2024-06-26 18:09:41 +08:00
手瓜一十雪
a3801fc243 fix: script 2024-06-26 17:17:33 +08:00
手瓜一十雪
a1f0c05f3a chore: build script 2024-06-26 17:16:54 +08:00
手瓜一十雪
a568c96929 chore: build script 2024-06-26 17:15:46 +08:00
手瓜一十雪
d58bcf3c0e refactor: error catch 2024-06-26 17:14:23 +08:00
手瓜一十雪
985f2e6436 fix: 还原修改 2024-06-25 17:24:42 +08:00
手瓜一十雪
ad441fa793 docs: update 2024-06-24 21:38:28 +08:00
手瓜一十雪
316300cc86 Merge pull request #86 from NapNeko/dependabot/npm_and_yarn/types/uuid-10.0.0
build(deps-dev): bump @types/uuid from 9.0.8 to 10.0.0
2024-06-24 17:44:25 +08:00
dependabot[bot]
5c4f37b234 build(deps-dev): bump @types/uuid from 9.0.8 to 10.0.0
Bumps [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 9.0.8 to 10.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/uuid)

---
updated-dependencies:
- dependency-name: "@types/uuid"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-24 08:14:47 +00:00
手瓜一十雪
77b51a072d fix: 增加容错 2024-06-24 12:03:49 +08:00
手瓜一十雪
2536e1ae6a release: v1.6.1 2024-06-22 10:54:58 +08:00
手瓜一十雪
14822c9599 style&fix: lint & poke 2024-06-21 23:04:56 +08:00
手瓜一十雪
e53c37adc9 release: v1.6.0 2024-06-21 22:43:19 +08:00
手瓜一十雪
c37539354c docs: update 2024-06-21 22:35:10 +08:00
手瓜一十雪
ae0277f33c release: 1.5.8 2024-06-19 23:34:09 +08:00
手瓜一十雪
b863896249 refactor: log file limit 2024-06-19 23:26:05 +08:00
手瓜一十雪
5b42f8b743 refactor: qqmusic card & requests 2024-06-19 23:06:57 +08:00
手瓜一十雪
3883fab614 remove: debug 2024-06-19 21:37:13 +08:00
手瓜一十雪
61d6bcec4b refactor: qqmusic card & requests 2024-06-19 21:33:31 +08:00
手瓜一十雪
3b5902b033 refactor: requests 2024-06-19 16:45:20 +08:00
手瓜一十雪
3a88c21a3b refactor: 整理action & data 2024-06-19 13:35:42 +08:00
手瓜一十雪
91a5055dee refactor: qqmusic sign & http post 2024-06-19 13:20:52 +08:00
手瓜一十雪
7befd1469f Merge branch 'main' of https://github.com/NapNeko/NapCatQQ 2024-06-19 10:01:37 +08:00
手瓜一十雪
c72ebe495c refactor: remove debug 2024-06-19 10:01:24 +08:00
手瓜一十雪
19e06b97e6 docs: update 2024-06-18 23:57:47 +08:00
手瓜一十雪
7519825303 refactor: test 2024-06-18 23:23:19 +08:00
手瓜一十雪
d9315bf309 refactor: project 2024-06-18 22:49:06 +08:00
手瓜一十雪
8c36c809a0 docs: extend 2024-06-18 11:22:35 +08:00
手瓜一十雪
8138aa3cb2 docs: v1.5.8 2024-06-18 11:21:52 +08:00
手瓜一十雪
87aef3ca78 feat: Util HttpUploadFile 2024-06-18 11:17:09 +08:00
手瓜一十雪
a3f1d26d6b feat: refactor miniapp 2024-06-18 11:08:51 +08:00
手瓜一十雪
06cebc5670 build: try support ia32 2024-06-17 10:03:59 +08:00
手瓜一十雪
867fd62d77 fix: typo 2024-06-16 20:54:52 +08:00
手瓜一十雪
650cdf2916 feat: test 2024-06-16 19:24:42 +08:00
手瓜一十雪
ebf461f2fd feat: 加了一些暂时不能使用的代码 2024-06-16 16:35:09 +08:00
手瓜一十雪
27fa319b2a release: LinuxAppid 24568 2024-06-14 18:43:56 +08:00
手瓜一十雪
d95ac894f4 release: 1.5.6-复活下win 2024-06-14 17:00:35 +08:00
手瓜一十雪
ae84a8dd11 docs: v1.5.6 change 2024-06-14 16:53:26 +08:00
手瓜一十雪
2fc963f986 build: v1.5.6-紧急测试 2024-06-14 16:43:32 +08:00
手瓜一十雪
be1f938ebd fix 2024-06-14 16:42:39 +08:00
手瓜一十雪
cccf4d503d docs: v1.5.6 2024-06-14 15:50:22 +08:00
手瓜一十雪
9dad2a8ac6 remove: debug 2024-06-11 18:11:32 +08:00
手瓜一十雪
75af104f07 release: v1.5.5 2024-06-11 18:10:22 +08:00
手瓜一十雪
76ecba245b fix: error 2024-06-11 18:09:46 +08:00
手瓜一十雪
3697c2ced8 refactor: 移除无缝升级函数 2024-06-11 15:46:27 +08:00
手瓜一十雪
b9d1d84716 release: v1.5.4 2024-06-11 15:20:11 +08:00
手瓜一十雪
64b2d547ce refactor: friend 2024-06-11 12:34:04 +08:00
手瓜一十雪
d8d2ff7e4e chore:appid 2024-06-10 19:00:05 +08:00
手瓜一十雪
8aa5dc6482 Merge pull request #62 from NapNeko/dependabot/npm_and_yarn/uuid-10.0.0
build(deps): bump uuid from 9.0.1 to 10.0.0
2024-06-10 16:46:05 +08:00
dependabot[bot]
474ba20e61 build(deps): bump uuid from 9.0.1 to 10.0.0
Bumps [uuid](https://github.com/uuidjs/uuid) from 9.0.1 to 10.0.0.
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v9.0.1...v10.0.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 08:12:09 +00:00
110 changed files with 956 additions and 394 deletions

View File

@@ -1,4 +1,4 @@
name: "Build"
name: "Build Action"
on:
workflow_dispatch:
push:
@@ -47,7 +47,7 @@ jobs:
fail-fast: false
matrix:
target_platform: [win32]
target_arch: [x64]
target_arch: [x64,ia32]
steps:
- name: Clone Main Repository
uses: actions/checkout@v4

View File

@@ -1,4 +1,4 @@
name: "release"
name: "Build Release"
on:
push:
@@ -72,7 +72,7 @@ jobs:
fail-fast: false
matrix:
target_platform: [win32]
target_arch: [x64]
target_arch: [x64,ia32]
steps:
- name: Clone Main Repository
uses: actions/checkout@v4
@@ -130,6 +130,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
body_path: CHANGELOG.md
files: |
NapCat.win32.ia32.zip
NapCat.win32.x64.zip
NapCat.linux.x64.zip
NapCat.linux.arm64.zip

69
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,69 @@
name: "Build Test"
on:
workflow_dispatch:
permissions: write-all
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target_platform: [linux]
target_arch: [x64, arm64]
steps:
- name: Clone Main Repository
uses: actions/checkout@v4
with:
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 }}
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:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target_platform: [win32]
target_arch: [x64,ia32]
steps:
- name: Clone Main Repository
uses: actions/checkout@v4
with:
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 }}
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

View File

@@ -0,0 +1,13 @@
# v1.6.3
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
## 修复与优化
* 修复带有groupid的私聊消息异常发送到群聊消息
* 尝试修复rws热重载失效问题
* 尝试修复进群事件无法正常获取uin
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.5.4
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
## 修复与优化
* 紧急修复视频与文件问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.5.5
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
## 修复与优化
* 紧急修复一些问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.5.6
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
## 修复与优化
* 修复一些问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.5.7
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
## 修复与优化
* 修复一些问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,14 @@
# v1.5.8
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
## 修复与优化
* 修复视频文件残留问题
* 重构 getcookies接口 支持大部分常见域
## 新增与调整
* 日志大小限制
* 支持 QQ音乐 卡片 无签名支持时 启用内置方法(缺点没有封面 限速1min/条)
* 支持Window X86-32机器
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,12 @@
# v1.5.9
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
## 修复与优化
* 优化缓存问题
* 修复poke异常上报
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.6.0
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
## 修复与优化
## 新增与调整
* 新增图片subtype属性 区分表情图片与商城图片
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,11 @@
# v1.6.1
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
## 修复与优化
## 新增与调整
* 修复poke异常事件
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,13 @@
# v1.6.2
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
## 修复与优化
* 修复获取Cookies异常崩溃问题
* 尝试修复成员退群缓存问题
* 修复自身退群后群缓存清理问题
## 新增与调整
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -0,0 +1,48 @@
public static final int C2C_PIC_DOWNLOAD = 1004;
public static final String C2C_PIC_DOWNLOAD_DOMAIN = "c2cpicdw.qpic.cn";
public static final String C2C_PIC_DOWNLOAD_QUIC_DOMAIN = "c2cpicdw.quic.qpic.cn";
public static final int FLAG_NOT_UPLOAD = 3;
public static final int FLAG_UPLOADINFO_ERROR = 4;
public static final int GROUP_PIC_DOWNLOAD = 1000;
public static final String GROUP_PIC_DOWNLOAD_DOMAIN = "gchat.qpic.cn";
public static final String GROUP_PIC_DOWNLOAD_QUIC_DOMAIN = "gchat.quic.qpic.cn";
public static final String GUILD_PIC_DOWNLOAD_DOMAIN = "gchat.qpic.cn/qmeetpic";
public static final boolean NEW_STORE_FLAG = true;
public static final String PTT_VIDEO_DOWNLOAD_DOMAIN = "grouptalk.c2c.qq.com";
protected static final int AVIF_DECODE_EXCEPTION = 4;
protected static final int AVIF_DECODE_FAIL = 1;
protected static final int AVIF_DECODE_FAIL_SO_FAIL = 2;
protected static final int AVIF_DECODE_FAIL_UNKNOWN = 6;
protected static final int AVIF_DECODE_FILETYPE_ERROR = 5;
protected static final int AVIF_DECODE_OOM = 3;
protected static final int AVIF_DECODE_RENAME_FAIL = 7;
protected static final int AVIF_DECODE_SUC = 0;
public static final String AVIF_FILE_SUFFIX = ".avif";
public static final int AVIF_REQ_APPRUNTIME_NULL = 12;
public static final int AVIF_REQ_CODEC_UNSURPPORT = 5;
protected static final int AVIF_REQ_DENSITY_UNSURPPORT = 10;
protected static final int AVIF_REQ_FLASH_PHOTO = 9;
protected static final int AVIF_REQ_HAS_TMP_AVIF = 7;
protected static final int AVIF_REQ_INVALID_MSG_RECORD = 2;
protected static final int AVIF_REQ_IS_RAW_PHOTO = 3;
protected static final int AVIF_REQ_OUTPUTSTREAM_UNSURPPORT = 11;
protected static final int AVIF_REQ_OVERSIZE = 6;
protected static final int AVIF_REQ_RETRY = 1;
public static final int AVIF_REQ_SO_DOWNLOAD_FAILED = 8;
protected static final int AVIF_REQ_SUC = 0;
public static final int AVIF_REQ_SWITCH_CLOSE = 4;
public static final String C2C_PIC_DOWNLOAD_ERROR_CODE = "C2CPicDownloadErrorCode";
static final int DOWNLOAD_ST_COMPLETE = 1;
static final int DOWNLOAD_ST_HEAD = 2;
static final int DOWNLOAD_ST_LEFT = 4;
static final int DOWNLOAD_ST_PART = 3;
private static final int ENCRYPT_APPID = 1600000226;
public static final String GROUP_PIC_DOWNLOAD_ERROR_CODE = "GroupPicDownloadErrorCode";
public static final String KEY_PIC_DOWNLOAD_ERROR_CODE = "param_detail_code";
protected static final int QUIC_FAIL_IP_LIST_EMPTY = 1;
protected static final int QUIC_FAIL_REQUEST_HTTPS = 3;
protected static final int QUIC_FAIL_REQUEST_QUIC = 2;
protected static final int QUIC_FAIL_SO_LOAD = 4;
public static final String REPORT_TAG_DIRECT_DOWNLOAD_FAIL = "report_direct_download_fail";
public static final String REQ_PARAM_AVIF = "tp=avif";

View File

@@ -0,0 +1 @@
getMsgUniqueId 传入时间 产出一个唯一ID 发送消息作为一个参数

View File

@@ -2,7 +2,7 @@
"name": "napcat",
"private": true,
"type": "module",
"version": "1.5.3",
"version": "1.6.3",
"scripts": {
"watch:dev": "vite --mode development",
"watch:prod": "vite --mode production",
@@ -18,6 +18,11 @@
"depend": "cd dist && npm install --omit=dev"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"vite-plugin-babel": "^1.2.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.24.7",
"@log4js-node/log4js-api": "^1.0.2",
"@protobuf-ts/plugin": "^2.9.4",
"@rollup/plugin-node-resolve": "^15.2.3",
@@ -28,7 +33,7 @@
"@types/fluent-ffmpeg": "^2.1.24",
"@types/node": "^20.11.30",
"@types/qrcode-terminal": "^0.12.2",
"@types/uuid": "^9.0.8",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
@@ -61,7 +66,7 @@
"qrcode-terminal": "^0.12.0",
"silk-wasm": "^3.3.4",
"sqlite3": "^5.1.7",
"uuid": "^9.0.1",
"uuid": "^10.0.0",
"ws": "^8.16.0"
}
}

View File

@@ -1,53 +1,53 @@
import crypto from 'crypto';
class LimitedHashTable<K, V> {
private keyToValue: Map<K, V> = new Map();
private valueToKey: Map<V, K> = new Map();
private maxSize: number;
private KeyQueneList: K[] = [];
private ValueQueneList: V[] = [];
constructor(maxSize: number) {
this.maxSize = maxSize;
}
set(key: K, value: V): void {
this.keyToValue.set(key, value);
this.valueToKey.set(value, key);
if (this.KeyQueneList.length >= this.maxSize || this.ValueQueneList.length >= this.maxSize) {
this.KeyQueneList.shift();
this.ValueQueneList.shift();
}
private keyToValue: Map<K, V> = new Map();
private valueToKey: Map<V, K> = new Map();
private maxSize: number;
private KeyQueneList: K[] = [];
private ValueQueneList: V[] = [];
constructor(maxSize: number) {
this.maxSize = maxSize;
}
set(key: K, value: V): void {
this.keyToValue.set(key, value);
this.valueToKey.set(value, key);
if (this.KeyQueneList.length >= this.maxSize || this.ValueQueneList.length >= this.maxSize) {
this.KeyQueneList.shift();
this.ValueQueneList.shift();
}
}
getValue(key: K): V | undefined {
return this.keyToValue.get(key);
}
getValue(key: K): V | undefined {
return this.keyToValue.get(key);
}
getKey(value: V): K | undefined {
return this.valueToKey.get(value);
}
getKey(value: V): K | undefined {
return this.valueToKey.get(value);
}
delete(key: K): void {
const value = this.keyToValue.get(key);
if (value !== undefined) {
this.keyToValue.delete(key);
this.valueToKey.delete(value);
}
delete(key: K): void {
const value = this.keyToValue.get(key);
if (value !== undefined) {
this.keyToValue.delete(key);
this.valueToKey.delete(value);
}
}
}
class MessageUniqueWrapper {
private msgIdMap: LimitedHashTable<number, string> = new LimitedHashTable(1000);
createMsg(MsgId: string) {
let ShortId = parseInt(crypto.createHash('sha1').update('2345').digest('hex').slice(0, 8), 16);
this.msgIdMap.set(ShortId, MsgId);
return ShortId;
}
getMsgIdByShortId(ShortId: number) {
return this.msgIdMap.getValue(ShortId);
}
getShortIdByMsgId(MsgId: string) {
return this.msgIdMap.getKey(MsgId);
}
private msgIdMap: LimitedHashTable<number, string> = new LimitedHashTable(1000);
createMsg(MsgId: string) {
const ShortId = parseInt(crypto.createHash('sha1').update('2345').digest('hex').slice(0, 8), 16);
this.msgIdMap.set(ShortId, MsgId);
return ShortId;
}
getMsgIdByShortId(ShortId: number) {
return this.msgIdMap.getValue(ShortId);
}
getShortIdByMsgId(MsgId: string) {
return this.msgIdMap.getKey(MsgId);
}
}
export const MessageUnique = new MessageUniqueWrapper();

View File

@@ -0,0 +1,17 @@
// 方案一 MiniApp发包方案
// 前置条件: 处于GUI环境 存在MiniApp
import { NTQQSystemApi } from '@/core';
// 前排提示: 开发验证仅Win平台开展
export class MiniAppUtil {
static async RunMiniAppWithGUI() {
//process.env.ELECTRON_RUN_AS_NODE = undefined;//没用还是得自己用cpp之类的语言写个程序转发参数
return NTQQSystemApi.BootMiniApp(process.execPath, 'miniapp://open/1007?url=https%3A%2F%2Fm.q.qq.com%2Fa%2Fs%2Fedd0a83d3b8afe233dfa07adaaf8033f%3Fscene%3D1007%26min_refer%3D10001');
}
}
// 方案二 MiniApp发包方案 替代MiniApp方案
// 前置条件: 无
export class MojoMiniAppUtil{
}

View File

@@ -38,11 +38,11 @@ type QQVersionConfigInfo = {
}
let _qqVersionConfigInfo: QQVersionConfigInfo = {
'baseVersion': '9.9.9-23361',
'curVersion': '9.9.9-23361',
'baseVersion': '9.9.11-24568',
'curVersion': '9.9.11-24568',
'prevVersion': '',
'onErrorVersions': [],
'buildId': '23361'
'buildId': '24568'
};
if (fs.existsSync(configVersionInfoPath)) {
@@ -55,7 +55,7 @@ if (fs.existsSync(configVersionInfoPath)) {
}
export const qqVersionConfigInfo: QQVersionConfigInfo = _qqVersionConfigInfo;
//V1_WIN_NQ_9.9.11_24568_GW_B
export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toString());
// platform_type: 3,
// app_type: 4,
@@ -65,9 +65,13 @@ export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toSt
// platVer: '10.0.26100',
// clientVer: '9.9.9-23159',
let _appid: string = '537213803'; // 默认为 Windows 平台的 appid
// Linux
// app_version: '3.2.9-24568',
// qua: 'V1_LNX_NQ_3.2.9_24568_GW_B',
let _appid: string = '537226369'; // 默认为 Windows 平台的 appid
if (systemPlatform === 'linux') {
_appid = '537213827';
_appid = '537226441';
}
// todo: mac 平台的 appid
export const appid = _appid;

View File

@@ -1,5 +1,5 @@
import fs from 'fs';
import fsPromise from 'fs/promises';
import fsPromise, { stat } from 'fs/promises';
import crypto from 'crypto';
import util from 'util';
import path from 'node:path';
@@ -50,7 +50,40 @@ export function checkFileReceived(path: string, timeout: number = 3000): Promise
check();
});
}
// 定义一个异步函数来检查文件是否存在
export async function checkFileReceived2(path: string, timeout: number = 3000): Promise<void> {
// 使用 Promise.race 来同时进行文件状态检查和超时计时
// Promise.race 会返回第一个解决resolve或拒绝reject的 Promise
await Promise.race([
checkFile(path),
timeoutPromise(timeout, `文件不存在: ${path}`),
]);
}
// 转换超时时间至 Promise
function timeoutPromise(timeout: number, errorMsg: string): Promise<void> {
return new Promise((_, reject) => {
setTimeout(() => {
reject(new Error(errorMsg));
}, timeout);
});
}
// 异步检查文件是否存在
async function checkFile(path: string): Promise<void> {
try {
await stat(path);
} catch (error: any) {
if (error.code === 'ENOENT') {
// 如果文件不存在,则抛出一个错误
throw new Error(`文件不存在: ${path}`);
} else {
// 对于 stat 调用的其他错误,重新抛出
throw error;
}
}
// 如果文件存在则无需做任何事情Promise 解决resolve自身
}
export async function file2base64(path: string) {
const readFile = util.promisify(fs.readFile);
const result = {

View File

@@ -4,7 +4,7 @@ import fs from 'fs/promises';
import { log, logDebug } from './log';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import * as fsPromise from 'node:fs/promises';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
@@ -43,8 +43,88 @@ export function truncateString(obj: any, maxLength = 500) {
}
return obj;
}
export function simpleDecorator(target: any, context: any) {
}
// export function CacheClassFunc(ttl: number = 3600 * 1000, customKey: string = '') {
// const cache = new Map<string, { expiry: number; value: any }>();
// return function CacheClassFuncDecorator(originalMethod: Function, context: ClassMethodDecoratorContext) {
// async function CacheClassFuncDecoratorInternal(this: any, ...args: any[]) {
// const key = `${customKey}${String(context.name)}.(${args.map(arg => JSON.stringify(arg)).join(', ')})`;
// const cachedValue = cache.get(key);
// if (cachedValue && cachedValue.expiry > Date.now()) {
// return cachedValue.value;
// }
// const result = originalMethod.call(this, ...args);
// cache.set(key, { expiry: Date.now() + ttl, value: result });
// return result;
// }
// return CacheClassFuncDecoratorInternal;
// }
// }
export function CacheClassFuncAsync(ttl: number = 3600 * 1000, customKey: string = '') {
//console.log('CacheClassFuncAsync', ttl, customKey);
function logExecutionTime(target: any, methodName: string, descriptor: PropertyDescriptor) {
//console.log('logExecutionTime', target, methodName, descriptor);
const cache = new Map<string, { expiry: number; value: any }>();
const originalMethod = descriptor.value;
descriptor.value = async function (...args: any[]) {
const key = `${customKey}${String(methodName)}.(${args.map(arg => JSON.stringify(arg)).join(', ')})`;
cache.forEach((value, key) => {
if (value.expiry < Date.now()) {
cache.delete(key);
}
});
const cachedValue = cache.get(key);
if (cachedValue && cachedValue.expiry > Date.now()) {
return cachedValue.value;
}
// const start = Date.now();
const result = await originalMethod.apply(this, args);
// const end = Date.now();
// console.log(`Method ${methodName} executed in ${end - start} ms.`);
cache.set(key, { expiry: Date.now() + ttl, value: result });
return result;
};
}
return logExecutionTime;
}
// export function CacheClassFuncAsync(ttl: number = 3600 * 1000, customKey: string = ''): any {
// const cache = new Map<string, { expiry: number; value: any }>();
// // 注意在JavaScript装饰器中我们通常不直接处理ClassMethodDecoratorContext这样的类型
// // 因为装饰器的参数通常是目标类(对于类装饰器)、属性名(对于属性装饰器)等。
// // 对于方法装饰器,我们关注的是方法本身及其描述符。
// // 但这里我们维持原逻辑,假设有一个自定义的处理上下文的方式。
// return function (originalMethod: Function): any {
// console.log(originalMethod);
// // 由于JavaScript装饰器原生不支持异步直接定义我们保持async定义以便处理异步方法。
// async function decoratorWrapper(this: any, ...args: any[]): Promise<any> {
// console.log(...args);
// const key = `${customKey}${originalMethod.name}.(${args.map(arg => JSON.stringify(arg)).join(', ')})`;
// const cachedValue = cache.get(key);
// // 遍历cache 清除expiry内容
// cache.forEach((value, key) => {
// if (value.expiry < Date.now()) {
// cache.delete(key);
// }
// });
// if (cachedValue && cachedValue.expiry > Date.now()) {
// return cachedValue.value;
// }
// // 直接await异步方法的结果
// const result = await originalMethod.apply(this, args);
// cache.set(key, { expiry: Date.now() + ttl, value: result });
// return result;
// }
// // 返回装饰后的方法保持与原方法相同的名称和描述符如果需要更精细的控制可以考虑使用Object.getOwnPropertyDescriptor等
// return decoratorWrapper;
// };
// }
/**
* 函数缓存装饰器根据方法名、参数、自定义key生成缓存键在一定时间内返回缓存结果
@@ -181,4 +261,26 @@ export function isEqual(obj1: any, obj2: any) {
if (!isEqual(obj1[key], obj2[key])) return false;
}
return true;
}
}
export async function deleteOldFiles(directoryPath: string, daysThreshold: number) {
try {
const files = await fsPromise.readdir(directoryPath);
for (const file of files) {
const filePath = path.join(directoryPath, file);
const stats = await fsPromise.stat(filePath);
const lastModifiedTime = stats.mtimeMs;
const currentTime = Date.now();
const timeDifference = currentTime - lastModifiedTime;
const daysDifference = timeDifference / (1000 * 60 * 60 * 24);
if (daysDifference > daysThreshold) {
await fsPromise.unlink(filePath); // Delete the file
//console.log(`Deleted: ${filePath}`);
}
}
} catch (error) {
//console.error('Error deleting files:', error);
}
}

View File

@@ -39,7 +39,7 @@ const logConfig: Configuration = {
FileAppender: { // 输出到文件的appender
type: 'file',
filename: logPath, // 指定日志文件的位置和文件名
maxLoogSize: 10485760, // 日志文件的最大大小单位字节这里设置为10MB
maxLogSize: 10485760, // 日志文件的最大大小单位字节这里设置为10MB
layout: {
type: 'pattern',
pattern: '%d{yyyy-MM-dd hh:mm:ss} [%p] %X{userInfo} | %m'

View File

@@ -1,12 +1,13 @@
import https from 'node:https';
import http from 'node:http';
import { readFileSync } from 'node:fs';
import { NTQQUserApi } from '@/core';
export class RequestUtil {
// 适用于获取服务器下发cookies时获取仅GET
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
const client = url.startsWith('https') ? https : http;
return new Promise((resolve, reject) => {
client.get(url, (res) => {
let req = client.get(url, (res) => {
let cookies: { [key: string]: string } = {};
const handleRedirect = (res: http.IncomingMessage) => {
//console.log(res.headers.location);
@@ -17,6 +18,8 @@ export class RequestUtil {
// 合并重定向过程中的cookies
cookies = { ...cookies, ...redirectCookies };
resolve(cookies);
}).catch((err) => {
reject(err);
});
} else {
resolve(cookies);
@@ -40,16 +43,17 @@ export class RequestUtil {
}
});
}
}).on('error', (err) => {
reject(err);
});
req.on('error', (error: any) => {
reject(error);
});
});
}
// 请求和回复都是JSON data传原始内容 自动编码json
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: { [key: string]: string } = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
const option = new URL(url);
const protocol = url.startsWith('https://') ? https : http;
const options = {
@@ -59,6 +63,10 @@ export class RequestUtil {
method: method,
headers: headers
};
// headers: {
// 'Content-Type': 'application/json',
// 'Content-Length': Buffer.byteLength(postData),
// },
return new Promise((resolve, reject) => {
const req = protocol.request(options, (res: any) => {
let responseBody = '';
@@ -100,7 +108,86 @@ export class RequestUtil {
}
// 请求返回都是原始内容
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}) {
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: { [key: string]: string } = {}) {
return this.HttpGetJson<string>(url, method, data, headers, false, false);
}
}
static async createFormData(boundary: string, filePath: string): Promise<Buffer> {
let type = 'image/png';
if (filePath.endsWith('.jpg')) {
type = 'image/jpeg';
}
const formDataParts = [
`------${boundary}\r\n`,
`Content-Disposition: form-data; name="share_image"; filename="${filePath}"\r\n`,
'Content-Type: ' + type + '\r\n\r\n'
];
const fileContent = readFileSync(filePath);
const footer = `\r\n------${boundary}--`;
return Buffer.concat([
Buffer.from(formDataParts.join(''), 'utf8'),
fileContent,
Buffer.from(footer, 'utf8')
]);
}
static async uploadImageForOpenPlatform(filePath: string): Promise<string> {
return new Promise(async (resolve, reject) => {
type retType = { retcode: number, result?: { url: string } };
try {
const cookies = Object.entries(await NTQQUserApi.getCookies('connect.qq.com')).map(([key, value]) => `${key}=${value}`).join('; ');
const options = {
hostname: 'cgi.connect.qq.com',
port: 443,
path: '/qqconnectopen/upload_share_image',
method: 'POST',
headers: {
'Referer': 'https://cgi.connect.qq.com',
'Cookie': cookies,
'Accept': '*/*',
'Connection': 'keep-alive',
'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'
}
};
const req = https.request(options, async (res) => {
let responseBody = '';
res.on('data', (chunk: string | Buffer) => {
responseBody += chunk.toString();
});
res.on('end', () => {
try {
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
const responseJson = JSON.parse(responseBody) as retType;
resolve(responseJson.result!.url!);
} else {
reject(new Error(`Unexpected status code: ${res.statusCode}`));
}
} catch (parseError) {
reject(parseError);
}
});
});
req.on('error', (error) => {
reject(error);
console.error('Error during upload:', error);
});
const body = await RequestUtil.createFormData('WebKitFormBoundary7MA4YWxkTrZu0gW', filePath);
// req.setHeader('Content-Length', Buffer.byteLength(body));
// console.log(`Prepared data size: ${Buffer.byteLength(body)} bytes`);
req.write(body);
req.end();
return;
} catch (error) {
reject(error);
}
return undefined;
});
}
}

View File

@@ -1 +1 @@
function _0x2e29(){var _0x3f9d7f=['157053weZnyn','2pMtgjx','771432FIXglJ','1736820uhFOHF','964264PkpyVz','248XNmvWS','61137tNliPv','67501Oripge','getGroupCode','165575WShzhi','630HUlSaF'];_0x2e29=function(){return _0x3f9d7f;};return _0x2e29();}var _0x147761=_0x55a7;(function(_0x1f294a,_0x1c841d){var _0x1bcce1=_0x55a7,_0xe2330b=_0x1f294a();while(!![]){try{var _0xa7c05b=-parseInt(_0x1bcce1(0x1ee))/0x1+-parseInt(_0x1bcce1(0x1ed))/0x2*(parseInt(_0x1bcce1(0x1ec))/0x3)+parseInt(_0x1bcce1(0x1f0))/0x4+parseInt(_0x1bcce1(0x1f5))/0x5+parseInt(_0x1bcce1(0x1ef))/0x6+parseInt(_0x1bcce1(0x1f3))/0x7*(parseInt(_0x1bcce1(0x1f1))/0x8)+-parseInt(_0x1bcce1(0x1f2))/0x9*(-parseInt(_0x1bcce1(0x1eb))/0xa);if(_0xa7c05b===_0x1c841d)break;else _0xe2330b['push'](_0xe2330b['shift']());}catch(_0x332356){_0xe2330b['push'](_0xe2330b['shift']());}}}(_0x2e29,0x71f48));function _0x55a7(_0x628295,_0x4d9860){var _0x2e29b2=_0x2e29();return _0x55a7=function(_0x55a725,_0x1342b0){_0x55a725=_0x55a725-0x1eb;var _0x7f31b9=_0x2e29b2[_0x55a725];return _0x7f31b9;},_0x55a7(_0x628295,_0x4d9860);}export class DependsAdapter{['onMSFStatusChange'](_0x7fcf75,_0x3fc92f){}['onMSFSsoError'](_0x2d84fb){}[_0x147761(0x1f4)](_0x4eae47){}}
function _0x21a3(){var _0x47a1fd=['248rmfMrR','179622UXIoav','1055459tsnnaS','onMSFStatusChange','689414NaQcNx','316cTYJBC','39830eOEQfH','30260maZsxw','1860726PpRoBo','80NMQPYe','6295452xCWIll','2FgvZer','getGroupCode'];_0x21a3=function(){return _0x47a1fd;};return _0x21a3();}var _0x3d5b59=_0xbbfe;function _0xbbfe(_0x35749d,_0x27b2cc){var _0x21a3b8=_0x21a3();return _0xbbfe=function(_0xbbfe69,_0x206a1e){_0xbbfe69=_0xbbfe69-0x18f;var _0x2155e2=_0x21a3b8[_0xbbfe69];return _0x2155e2;},_0xbbfe(_0x35749d,_0x27b2cc);}(function(_0x4ff99,_0x119e47){var _0x2caf22=_0xbbfe,_0x53ef76=_0x4ff99();while(!![]){try{var _0x8016be=parseInt(_0x2caf22(0x193))/0x1+parseInt(_0x2caf22(0x18f))/0x2*(-parseInt(_0x2caf22(0x199))/0x3)+parseInt(_0x2caf22(0x196))/0x4*(-parseInt(_0x2caf22(0x198))/0x5)+parseInt(_0x2caf22(0x19b))/0x6+parseInt(_0x2caf22(0x197))/0x7*(parseInt(_0x2caf22(0x191))/0x8)+parseInt(_0x2caf22(0x192))/0x9+parseInt(_0x2caf22(0x19a))/0xa*(-parseInt(_0x2caf22(0x195))/0xb);if(_0x8016be===_0x119e47)break;else _0x53ef76['push'](_0x53ef76['shift']());}catch(_0x20106d){_0x53ef76['push'](_0x53ef76['shift']());}}}(_0x21a3,0xab37b));export class DependsAdapter{[_0x3d5b59(0x194)](_0x41e90c,_0x453b93){}['onMSFSsoError'](_0x28ca66){}[_0x3d5b59(0x190)](_0x5c6159){}}

View File

@@ -1 +1 @@
var _0x428404=_0x3ddd;function _0x3ddd(_0x20963f,_0x5bd082){var _0x67c18=_0x67c1();return _0x3ddd=function(_0x3ddd66,_0x21959e){_0x3ddd66=_0x3ddd66-0x10e;var _0x43f343=_0x67c18[_0x3ddd66];return _0x43f343;},_0x3ddd(_0x20963f,_0x5bd082);}(function(_0x15e797,_0x41e172){var _0x3136f9=_0x3ddd,_0x4e73ed=_0x15e797();while(!![]){try{var _0x462ff5=parseInt(_0x3136f9(0x10f))/0x1*(-parseInt(_0x3136f9(0x112))/0x2)+-parseInt(_0x3136f9(0x117))/0x3*(-parseInt(_0x3136f9(0x114))/0x4)+parseInt(_0x3136f9(0x116))/0x5*(parseInt(_0x3136f9(0x118))/0x6)+parseInt(_0x3136f9(0x11a))/0x7*(-parseInt(_0x3136f9(0x113))/0x8)+-parseInt(_0x3136f9(0x110))/0x9*(parseInt(_0x3136f9(0x119))/0xa)+parseInt(_0x3136f9(0x10e))/0xb+parseInt(_0x3136f9(0x115))/0xc;if(_0x462ff5===_0x41e172)break;else _0x4e73ed['push'](_0x4e73ed['shift']());}catch(_0x53b9bc){_0x4e73ed['push'](_0x4e73ed['shift']());}}}(_0x67c1,0x91b53));function _0x67c1(){var _0x580e22=['10769693YQsZbr','6xWJxOR','9OmMNTI','dispatchCallWithJson','118540cLEoZl','4146616rtGYyv','8LIOqhx','6321276swLwSx','20QMlloS','498063uEoMXF','363522ufOASE','911330LXASnV','14HXtWyK'];_0x67c1=function(){return _0x580e22;};return _0x67c1();}export class DispatcherAdapter{['dispatchRequest'](_0x10b32a){}['dispatchCall'](_0x2af1fa){}[_0x428404(0x111)](_0x5ae585){}}
var _0x50cc57=_0x2a38;function _0x1d03(){var _0x2f7261=['dispatchRequest','2128QBWYuE','2955ffkndp','21923YnBRfB','26780MQgRHX','260004hKzHAO','dispatchCallWithJson','dispatchCall','290OEvlVE','377BHGwms','2526NtXQEV','33hLvsox','20864pErFVq','37814CFKWXw','180jCyFLb','396MiYFIW'];_0x1d03=function(){return _0x2f7261;};return _0x1d03();}function _0x2a38(_0x55c9aa,_0x2a5536){var _0x1d03d1=_0x1d03();return _0x2a38=function(_0x2a38d7,_0x1266b8){_0x2a38d7=_0x2a38d7-0x1d2;var _0x3a9256=_0x1d03d1[_0x2a38d7];return _0x3a9256;},_0x2a38(_0x55c9aa,_0x2a5536);}(function(_0x469f5e,_0x7cac5f){var _0x530bdc=_0x2a38,_0x2415b5=_0x469f5e();while(!![]){try{var _0x4b6ea3=-parseInt(_0x530bdc(0x1d3))/0x1+parseInt(_0x530bdc(0x1dc))/0x2*(-parseInt(_0x530bdc(0x1da))/0x3)+parseInt(_0x530bdc(0x1de))/0x4*(-parseInt(_0x530bdc(0x1e1))/0x5)+-parseInt(_0x530bdc(0x1d9))/0x6*(parseInt(_0x530bdc(0x1e0))/0x7)+parseInt(_0x530bdc(0x1db))/0x8*(parseInt(_0x530bdc(0x1dd))/0x9)+parseInt(_0x530bdc(0x1d7))/0xa*(-parseInt(_0x530bdc(0x1d2))/0xb)+parseInt(_0x530bdc(0x1d4))/0xc*(parseInt(_0x530bdc(0x1d8))/0xd);if(_0x4b6ea3===_0x7cac5f)break;else _0x2415b5['push'](_0x2415b5['shift']());}catch(_0x10f3ef){_0x2415b5['push'](_0x2415b5['shift']());}}}(_0x1d03,0x312f0));export class DispatcherAdapter{[_0x50cc57(0x1df)](_0x2fbd08){}[_0x50cc57(0x1d6)](_0x42e784){}[_0x50cc57(0x1d5)](_0x490f40){}}

View File

@@ -1 +1 @@
var _0x12331c=_0x1b89;(function(_0x13d288,_0xc82705){var _0x27590a=_0x1b89,_0x39e81b=_0x13d288();while(!![]){try{var _0x78b2ad=-parseInt(_0x27590a(0x87))/0x1*(parseInt(_0x27590a(0x8b))/0x2)+parseInt(_0x27590a(0x94))/0x3*(parseInt(_0x27590a(0x8d))/0x4)+-parseInt(_0x27590a(0x84))/0x5+parseInt(_0x27590a(0x91))/0x6*(parseInt(_0x27590a(0x93))/0x7)+parseInt(_0x27590a(0x8a))/0x8*(parseInt(_0x27590a(0x88))/0x9)+-parseInt(_0x27590a(0x86))/0xa+parseInt(_0x27590a(0x95))/0xb;if(_0x78b2ad===_0xc82705)break;else _0x39e81b['push'](_0x39e81b['shift']());}catch(_0x2c8a82){_0x39e81b['push'](_0x39e81b['shift']());}}}(_0x3f52,0xd8537));function _0x1b89(_0x47fe65,_0x16511d){var _0x3f524b=_0x3f52();return _0x1b89=function(_0x1b895e,_0x35ca06){_0x1b895e=_0x1b895e-0x84;var _0x5cf9a9=_0x3f524b[_0x1b895e];return _0x5cf9a9;},_0x1b89(_0x47fe65,_0x16511d);}function _0x3f52(){var _0x52071e=['5954365uXmOGc','getAppSetting','6172970gqCqji','285148GXjAZv','81QCmJYQ','onGetSrvCalTime','34280OyVxgG','2loyWem','onInstallFinished','1236588LIbVlp','onGetOfflineMsg','onUpdateGeneralFlag','onLog','12naixoE','onShowErrUITips','5904458QojAPh','3lytwYt','10391579SHGTUz'];_0x3f52=function(){return _0x52071e;};return _0x3f52();}export class GlobalAdapter{[_0x12331c(0x90)](..._0x539419){}[_0x12331c(0x89)](..._0xa6fee8){}[_0x12331c(0x92)](..._0x19ebf6){}['fixPicImgType'](..._0x26f154){}[_0x12331c(0x85)](..._0x100aa9){}[_0x12331c(0x8c)](..._0x3ac4a2){}[_0x12331c(0x8f)](..._0x421558){}[_0x12331c(0x8e)](..._0x441583){}}
var _0x53ab7c=_0x3e54;function _0x3e54(_0x55a7ce,_0x234c55){var _0x16d2de=_0x16d2();return _0x3e54=function(_0x3e54c2,_0x22b116){_0x3e54c2=_0x3e54c2-0x191;var _0x725a08=_0x16d2de[_0x3e54c2];return _0x725a08;},_0x3e54(_0x55a7ce,_0x234c55);}(function(_0x1516f6,_0x20436d){var _0x53e987=_0x3e54,_0x492fff=_0x1516f6();while(!![]){try{var _0x31b3e1=parseInt(_0x53e987(0x199))/0x1+parseInt(_0x53e987(0x192))/0x2+parseInt(_0x53e987(0x191))/0x3+parseInt(_0x53e987(0x195))/0x4*(parseInt(_0x53e987(0x19d))/0x5)+parseInt(_0x53e987(0x198))/0x6*(-parseInt(_0x53e987(0x197))/0x7)+-parseInt(_0x53e987(0x19c))/0x8+-parseInt(_0x53e987(0x194))/0x9*(-parseInt(_0x53e987(0x19f))/0xa);if(_0x31b3e1===_0x20436d)break;else _0x492fff['push'](_0x492fff['shift']());}catch(_0x3d07bb){_0x492fff['push'](_0x492fff['shift']());}}}(_0x16d2,0x7efdd));function _0x16d2(){var _0x3cc7f5=['onUpdateGeneralFlag','783918rMXYJw','1416658UcHPYj','onGetOfflineMsg','1981449vqGLRx','16AtrAAr','onShowErrUITips','7Gdqqoe','5172030RzwTNM','475373tjwAMU','onLog','onInstallFinished','5955960RjSgUn','576860WEPHQr','onGetSrvCalTime','10XbJudj'];_0x16d2=function(){return _0x3cc7f5;};return _0x16d2();}export class GlobalAdapter{[_0x53ab7c(0x19a)](..._0x29b5cf){}[_0x53ab7c(0x19e)](..._0x4a6c36){}[_0x53ab7c(0x196)](..._0x4240ec){}['fixPicImgType'](..._0xd9ff03){}['getAppSetting'](..._0x90040e){}[_0x53ab7c(0x19b)](..._0x4764da){}[_0x53ab7c(0x1a0)](..._0x4279ae){}[_0x53ab7c(0x193)](..._0x205a1f){}}

View File

@@ -1 +1 @@
(function(_0x2b5310,_0x59cdd4){var _0x3cddae=_0x2990,_0x478f72=_0x2b5310();while(!![]){try{var _0x22bdd2=parseInt(_0x3cddae(0x1d2))/0x1*(parseInt(_0x3cddae(0x1d3))/0x2)+-parseInt(_0x3cddae(0x1d5))/0x3*(-parseInt(_0x3cddae(0x1d8))/0x4)+-parseInt(_0x3cddae(0x1db))/0x5+-parseInt(_0x3cddae(0x1d4))/0x6*(parseInt(_0x3cddae(0x1d7))/0x7)+-parseInt(_0x3cddae(0x1d6))/0x8+-parseInt(_0x3cddae(0x1d9))/0x9+-parseInt(_0x3cddae(0x1da))/0xa*(-parseInt(_0x3cddae(0x1dc))/0xb);if(_0x22bdd2===_0x59cdd4)break;else _0x478f72['push'](_0x478f72['shift']());}catch(_0x5bfb27){_0x478f72['push'](_0x478f72['shift']());}}}(_0x29a1,0xaa850));function _0x2990(_0x468e49,_0x26c3b0){var _0x29a191=_0x29a1();return _0x2990=function(_0x29900d,_0x4ac60a){_0x29900d=_0x29900d-0x1d2;var _0x254939=_0x29a191[_0x29900d];return _0x254939;},_0x2990(_0x468e49,_0x26c3b0);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x29a1(){var _0x44f37e=['9084131KlPxxQ','2777384hXKQkx','4632111wKYddt','1330NfPSJo','3737995TmsusY','192885juDJtu','77815wPWdYj','20nTlfsq','6YMvloe','3cCSDLO','4369536uFniCZ'];_0x29a1=function(){return _0x44f37e;};return _0x29a1();}export*from'./NodeIGlobalAdapter';
(function(_0x682d9e,_0x3d3c77){var _0x914757=_0xb9dc,_0x46d2dc=_0x682d9e();while(!![]){try{var _0x1642d7=parseInt(_0x914757(0x12a))/0x1*(-parseInt(_0x914757(0x135))/0x2)+-parseInt(_0x914757(0x12b))/0x3*(-parseInt(_0x914757(0x134))/0x4)+-parseInt(_0x914757(0x131))/0x5+parseInt(_0x914757(0x133))/0x6+parseInt(_0x914757(0x132))/0x7*(parseInt(_0x914757(0x12e))/0x8)+-parseInt(_0x914757(0x130))/0x9*(-parseInt(_0x914757(0x12c))/0xa)+parseInt(_0x914757(0x12f))/0xb*(-parseInt(_0x914757(0x12d))/0xc);if(_0x1642d7===_0x3d3c77)break;else _0x46d2dc['push'](_0x46d2dc['shift']());}catch(_0x18ca27){_0x46d2dc['push'](_0x46d2dc['shift']());}}}(_0x8273,0xf28d8));function _0xb9dc(_0x201754,_0x29d6c8){var _0x82733d=_0x8273();return _0xb9dc=function(_0xb9dc41,_0x575625){_0xb9dc41=_0xb9dc41-0x12a;var _0x58d035=_0x82733d[_0xb9dc41];return _0x58d035;},_0xb9dc(_0x201754,_0x29d6c8);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x8273(){var _0x320e6d=['4XiLOTO','2XNYWKA','921073MzEkWL','3975633NUQwZE','460oTeNeK','2667540UEAMDy','8033768DbuECp','88WDAOSl','228816OIuixa','7846745lFeOyi','7KBrFmZ','10580052GIajAK'];_0x8273=function(){return _0x320e6d;};return _0x8273();}

View File

@@ -1 +1 @@
const _0x31a1aa=_0x2e9c;function _0x2e9c(_0x4a5a11,_0x8a8f57){const _0x185e0b=_0x185e();return _0x2e9c=function(_0x2e9cf2,_0x5360b7){_0x2e9cf2=_0x2e9cf2-0x16e;let _0x4cedc9=_0x185e0b[_0x2e9cf2];return _0x4cedc9;},_0x2e9c(_0x4a5a11,_0x8a8f57);}(function(_0x1223c1,_0x36630f){const _0x37843f=_0x2e9c,_0x1298ec=_0x1223c1();while(!![]){try{const _0x27c51c=parseInt(_0x37843f(0x17c))/0x1+-parseInt(_0x37843f(0x173))/0x2+-parseInt(_0x37843f(0x175))/0x3+parseInt(_0x37843f(0x179))/0x4*(parseInt(_0x37843f(0x174))/0x5)+-parseInt(_0x37843f(0x17b))/0x6*(parseInt(_0x37843f(0x178))/0x7)+parseInt(_0x37843f(0x172))/0x8+parseInt(_0x37843f(0x17a))/0x9;if(_0x27c51c===_0x36630f)break;else _0x1298ec['push'](_0x1298ec['shift']());}catch(_0x2b319d){_0x1298ec['push'](_0x1298ec['shift']());}}}(_0x185e,0x1f560));function _0x185e(){const _0xeed159=['getAllCollection','createCollection','164488DsahmG','464118zROPrg','5AxnOzS','224145ewJWAU','session','getCollectionService','389977dlYMoi','336092bREVAB','2684376UnQGIE','12pYLQXF','143700SAIsfI','toString','createNewCollectionItem','now'];_0x185e=function(){return _0xeed159;};return _0x185e();}import{napCatCore}from'..';export class NTQQCollectionApi{static async[_0x31a1aa(0x171)](_0x38838c,_0x3c7fd7,_0x315cb3,_0x47d4c6,_0x546355){const _0x5b80b6=_0x31a1aa;let _0x4167aa={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x38838c,'strId':_0x315cb3,'groupId':'0','groupName':'','uid':_0x3c7fd7},'customGroupId':'0','createTime':Date['now']()[_0x5b80b6(0x17d)](),'sequence':Date[_0x5b80b6(0x16f)]()['toString']()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x47d4c6,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x546355,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore['session'][_0x5b80b6(0x177)]()[_0x5b80b6(0x16e)](_0x4167aa);}static async[_0x31a1aa(0x170)](_0xf05388=0x0,_0x4268b2=0x32){const _0x440634=_0x31a1aa;let _0xe3b2cc={'category':_0xf05388,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x4268b2,'searchDown':!![]};return napCatCore[_0x440634(0x176)]['getCollectionService']()['getCollectionItemList'](_0xe3b2cc);}}
const _0x5cf374=_0xd04d;(function(_0x16b793,_0x45c1d3){const _0x137c2c=_0xd04d,_0x4f7af2=_0x16b793();while(!![]){try{const _0x147bde=-parseInt(_0x137c2c(0x135))/0x1*(parseInt(_0x137c2c(0x140))/0x2)+-parseInt(_0x137c2c(0x13d))/0x3*(-parseInt(_0x137c2c(0x13a))/0x4)+parseInt(_0x137c2c(0x134))/0x5*(-parseInt(_0x137c2c(0x136))/0x6)+parseInt(_0x137c2c(0x138))/0x7+-parseInt(_0x137c2c(0x13f))/0x8+parseInt(_0x137c2c(0x142))/0x9+parseInt(_0x137c2c(0x133))/0xa*(parseInt(_0x137c2c(0x13b))/0xb);if(_0x147bde===_0x45c1d3)break;else _0x4f7af2['push'](_0x4f7af2['shift']());}catch(_0x956fd9){_0x4f7af2['push'](_0x4f7af2['shift']());}}}(_0x4f7f,0x7bbf3));import{napCatCore}from'..';function _0xd04d(_0x5406d0,_0x3be0be){const _0x4f7f9f=_0x4f7f();return _0xd04d=function(_0xd04dbf,_0x1f7102){_0xd04dbf=_0xd04dbf-0x133;let _0x32c4f2=_0x4f7f9f[_0xd04dbf];return _0x32c4f2;},_0xd04d(_0x5406d0,_0x3be0be);}export class NTQQCollectionApi{static async[_0x5cf374(0x141)](_0x54ce5a,_0xf58136,_0x2e5e5a,_0x9a5c4a,_0x48cdc8){const _0x597558=_0x5cf374;let _0x46df5a={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x54ce5a,'strId':_0x2e5e5a,'groupId':'0','groupName':'','uid':_0xf58136},'customGroupId':'0','createTime':Date['now']()['toString'](),'sequence':Date[_0x597558(0x13c)]()['toString']()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x9a5c4a,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x48cdc8,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore[_0x597558(0x137)][_0x597558(0x13e)]()[_0x597558(0x139)](_0x46df5a);}static async['getAllCollection'](_0x4d7222=0x0,_0xc6ea63=0x32){let _0x23ade2={'category':_0x4d7222,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0xc6ea63,'searchDown':!![]};return napCatCore['session']['getCollectionService']()['getCollectionItemList'](_0x23ade2);}}function _0x4f7f(){const _0xa3be7=['590548OTxXpo','createNewCollectionItem','582116xMRIZR','262097hybSXZ','now','3DVrRPX','getCollectionService','6574256ZIiXee','6ZTVyLF','createCollection','8157987jjFOSW','490LuASHU','30GCbyig','292210xXWOBD','98580YKLGTf','session'];_0x4f7f=function(){return _0xa3be7;};return _0x4f7f();}

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,6 @@
import { User } from '@/core/entities';
export declare class NTQQFriendApi {
static isBuddy(uid: string): Promise<boolean>;
static getFriends(forced?: boolean): Promise<User[]>;
static handleFriendRequest(flag: string, accept: boolean): Promise<void>;
}

View File

@@ -1 +1 @@
function _0x23a3(_0x4b2b49,_0x4ef523){const _0x220079=_0x2200();return _0x23a3=function(_0x23a3b3,_0x3e015f){_0x23a3b3=_0x23a3b3-0x13f;let _0x4fa70a=_0x220079[_0x23a3b3];return _0x4fa70a;},_0x23a3(_0x4b2b49,_0x4ef523);}const _0x4f16f9=_0x23a3;function _0x2200(){const _0x349cf2=['3519uiKckB','handleFriendRequest','1312yAoeka','approvalFriendRequest','481150aVcAeQ','337249EOOZGH','split','3416dUjWMC','buddyList','CallNormalEvent','length','521388ECQlIm','kDEPP','241959zNmSPu','3530OWVGgw','1555014kUdrkm','getBuddyService','getFriends','NodeIKernelBuddyService/getBuddyList','8FQdBDH','bifRx'];_0x2200=function(){return _0x349cf2;};return _0x2200();}(function(_0xe2852a,_0x46568a){const _0x41eb76=_0x23a3,_0x2531aa=_0xe2852a();while(!![]){try{const _0x5c9caa=parseInt(_0x41eb76(0x146))/0x1+parseInt(_0x41eb76(0x14c))/0x2+parseInt(_0x41eb76(0x14e))/0x3*(parseInt(_0x41eb76(0x13f))/0x4)+-parseInt(_0x41eb76(0x145))/0x5+-parseInt(_0x41eb76(0x150))/0x6+parseInt(_0x41eb76(0x148))/0x7*(-parseInt(_0x41eb76(0x143))/0x8)+-parseInt(_0x41eb76(0x141))/0x9*(parseInt(_0x41eb76(0x14f))/0xa);if(_0x5c9caa===_0x46568a)break;else _0x2531aa['push'](_0x2531aa['shift']());}catch(_0x2860fc){_0x2531aa['push'](_0x2531aa['shift']());}}}(_0x2200,0x2d5c3));import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQFriendApi{static async[_0x4f16f9(0x152)](_0x537318=![]){const _0x201fca=_0x4f16f9,_0x36eb54={'FsHNj':_0x201fca(0x153),'kDEPP':'NodeIKernelBuddyListener/onBuddyListChange'};let [_0x2386a6,_0x184898]=await NTEventDispatch[_0x201fca(0x14a)](_0x36eb54['FsHNj'],_0x36eb54[_0x201fca(0x14d)],0x1,0x1388,_0x537318);const _0x335c65=[];for(const _0x2401f1 of _0x184898){for(const _0x2ee6bc of _0x2401f1[_0x201fca(0x149)]){_0x335c65['push'](_0x2ee6bc);}}return _0x335c65;}static async[_0x4f16f9(0x142)](_0x35da73,_0x833223){const _0x393db3=_0x4f16f9,_0x1e3a25={'bifRx':function(_0x37132e,_0x3d6d59){return _0x37132e<_0x3d6d59;}};let _0x1fd439=_0x35da73[_0x393db3(0x147)]('|');if(_0x1e3a25[_0x393db3(0x140)](_0x1fd439[_0x393db3(0x14b)],0x2))return;let _0x1ef202=_0x1fd439[0x0],_0x2ae89b=_0x1fd439[0x1];napCatCore['session'][_0x393db3(0x151)]()?.[_0x393db3(0x144)]({'friendUid':_0x1ef202,'reqTime':_0x2ae89b,'accept':_0x833223});}}
function _0x88e9(_0x4fcf94,_0x28cacc){const _0x24ce99=_0x24ce();return _0x88e9=function(_0x88e956,_0x1b5a46){_0x88e956=_0x88e956-0x189;let _0x2633e6=_0x24ce99[_0x88e956];return _0x2633e6;},_0x88e9(_0x4fcf94,_0x28cacc);}const _0x416a46=_0x88e9;(function(_0x2a7047,_0x5a73a9){const _0x2ad60e=_0x88e9,_0x52e6f9=_0x2a7047();while(!![]){try{const _0x148df6=parseInt(_0x2ad60e(0x18d))/0x1+parseInt(_0x2ad60e(0x196))/0x2*(parseInt(_0x2ad60e(0x199))/0x3)+parseInt(_0x2ad60e(0x198))/0x4+-parseInt(_0x2ad60e(0x18b))/0x5*(parseInt(_0x2ad60e(0x194))/0x6)+-parseInt(_0x2ad60e(0x197))/0x7+-parseInt(_0x2ad60e(0x195))/0x8+parseInt(_0x2ad60e(0x19c))/0x9;if(_0x148df6===_0x5a73a9)break;else _0x52e6f9['push'](_0x52e6f9['shift']());}catch(_0x1c70c6){_0x52e6f9['push'](_0x52e6f9['shift']());}}}(_0x24ce,0x652fa));function _0x24ce(){const _0x11fbda=['buddyList','length','session','handleFriendRequest','1482ahvGHE','378408SjpaRD','4766AUCTBx','3904600AbDyZk','1042868KARvdb','153QowOrc','approvalFriendRequest','isBuddy','5023197becfHb','getBuddyService','NodeIKernelBuddyListener/onBuddyListChange','11710nKMnNk','push','657650nfMNrJ','split','getFriends'];_0x24ce=function(){return _0x11fbda;};return _0x24ce();}import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQFriendApi{static async[_0x416a46(0x19b)](_0x5056d7){const _0x565b81=_0x416a46;return napCatCore[_0x565b81(0x192)]['getBuddyService']()[_0x565b81(0x19b)](_0x5056d7);}static async[_0x416a46(0x18f)](_0xa5e378=![]){const _0x4130b5=_0x416a46;let [_0x3ddef9,_0x1b1ec1]=await NTEventDispatch['CallNormalEvent']('NodeIKernelBuddyService/getBuddyList',_0x4130b5(0x18a),0x1,0x1388,_0xa5e378);const _0x242e75=[];for(const _0x53ecf0 of _0x1b1ec1){for(const _0x38c04c of _0x53ecf0[_0x4130b5(0x190)]){_0x242e75[_0x4130b5(0x18c)](_0x38c04c);}}return _0x242e75;}static async[_0x416a46(0x193)](_0x55c5eb,_0x3aa96f){const _0x39e350=_0x416a46;let _0x9fb45e=_0x55c5eb[_0x39e350(0x18e)]('|');if(_0x9fb45e[_0x39e350(0x191)]<0x2)return;let _0x1c8394=_0x9fb45e[0x0],_0x4b5e4f=_0x9fb45e[0x1];napCatCore[_0x39e350(0x192)][_0x39e350(0x189)]()?.[_0x39e350(0x19a)]({'friendUid':_0x1c8394,'reqTime':_0x4b5e4f,'accept':_0x3aa96f});}}

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(function(_0x56b802,_0x3068d4){var _0x433896=_0x34e7,_0x4b969f=_0x56b802();while(!![]){try{var _0x4597ba=-parseInt(_0x433896(0x1e9))/0x1*(-parseInt(_0x433896(0x1e3))/0x2)+parseInt(_0x433896(0x1e8))/0x3*(parseInt(_0x433896(0x1e1))/0x4)+-parseInt(_0x433896(0x1e4))/0x5*(-parseInt(_0x433896(0x1e0))/0x6)+parseInt(_0x433896(0x1e7))/0x7*(parseInt(_0x433896(0x1de))/0x8)+parseInt(_0x433896(0x1e2))/0x9*(-parseInt(_0x433896(0x1e6))/0xa)+parseInt(_0x433896(0x1e5))/0xb+-parseInt(_0x433896(0x1df))/0xc;if(_0x4597ba===_0x3068d4)break;else _0x4b969f['push'](_0x4b969f['shift']());}catch(_0x49bd24){_0x4b969f['push'](_0x4b969f['shift']());}}}(_0x5963,0xca7ca));export*from'./file';function _0x5963(){var _0x1fe349=['9782366mUkwaI','470IAMPKa','1322762htTQHt','3057HLvTxv','57wavOrP','40yZValc','27784044GLpyYN','492HCRHfV','1128BMaqfF','176535OkFDSk','26836dhRTsx','71970NvqLRN'];_0x5963=function(){return _0x1fe349;};return _0x5963();}export*from'./friend';export*from'./group';function _0x34e7(_0x56e151,_0x1ae8eb){var _0x596369=_0x5963();return _0x34e7=function(_0x34e773,_0x5bac2a){_0x34e773=_0x34e773-0x1de;var _0x5134f4=_0x596369[_0x34e773];return _0x5134f4;},_0x34e7(_0x56e151,_0x1ae8eb);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system';
(function(_0x1faeb7,_0x2b5858){var _0x356722=_0x1002,_0x492bfb=_0x1faeb7();while(!![]){try{var _0x40a758=parseInt(_0x356722(0x114))/0x1*(parseInt(_0x356722(0x10d))/0x2)+parseInt(_0x356722(0x10e))/0x3+-parseInt(_0x356722(0x110))/0x4*(-parseInt(_0x356722(0x112))/0x5)+-parseInt(_0x356722(0x115))/0x6*(-parseInt(_0x356722(0x10b))/0x7)+-parseInt(_0x356722(0x10a))/0x8+-parseInt(_0x356722(0x111))/0x9*(-parseInt(_0x356722(0x10c))/0xa)+parseInt(_0x356722(0x113))/0xb*(-parseInt(_0x356722(0x10f))/0xc);if(_0x40a758===_0x2b5858)break;else _0x492bfb['push'](_0x492bfb['shift']());}catch(_0xab1c67){_0x492bfb['push'](_0x492bfb['shift']());}}}(_0x176a,0x1c49e));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x1002(_0x15e09f,_0x1c0031){var _0x176aff=_0x176a();return _0x1002=function(_0x100263,_0x140c07){_0x100263=_0x100263-0x10a;var _0xf86b1=_0x176aff[_0x100263];return _0xf86b1;},_0x1002(_0x15e09f,_0x1c0031);}export*from'./user';export*from'./webapi';function _0x176a(){var _0x564d0f=['372501JoLTtY','895415zIReFp','753577ZGJOnL','1AfzCoH','606FrOVcP','1379240ADjZDA','8519nCQdgC','20zvyVUA','73956jVsDJp','216120DGWWNg','36TthJRO','4TUgtTs'];_0x176a=function(){return _0x564d0f;};return _0x176a();}export*from'./sign';export*from'./system';

File diff suppressed because one or more lines are too long

View File

@@ -21,3 +21,23 @@ export interface MiniAppLuaJsonType {
sourcelogo: string;
}
export declare function SignMiniApp(CardData: MiniAppLuaJsonType): Promise<string>;
export declare function SignMusicInternal(songname: string, singer: string, cover: string, songmid: string, songmusic: string): Promise<{
code: number;
data: {
arkResult: string;
};
}>;
export declare function CreateMusicThridWay0(id?: string, mid?: string): Promise<{
mid: string;
name?: string | undefined;
singer?: string | undefined;
url?: string | undefined;
cover?: string | undefined;
}>;
export declare function CreateMusicThridWay1(id?: string, mid?: string): Promise<void>;
export declare function SignMusicWrapper(id?: string): Promise<{
code: number;
data: {
arkResult: string;
};
}>;

File diff suppressed because one or more lines are too long

View File

@@ -9,4 +9,5 @@ export declare class NTQQSystemApi {
static getArkJsonCollection(cid: string): Promise<GeneralCallResult & {
arkJson: string;
}>;
static BootMiniApp(appfile: string, params: string): Promise<unknown>;
}

View File

@@ -1 +1 @@
function _0x1aa2(_0x50b9f0,_0x206954){const _0x2b3adb=_0x2b3a();return _0x1aa2=function(_0x1aa265,_0xd1bee5){_0x1aa265=_0x1aa265-0x1ef;let _0x2a8504=_0x2b3adb[_0x1aa265];return _0x2a8504;},_0x1aa2(_0x50b9f0,_0x206954);}const _0x5a5a43=_0x1aa2;(function(_0x43b903,_0x3abc81){const _0x1a7a83=_0x1aa2,_0x472404=_0x43b903();while(!![]){try{const _0x178a18=-parseInt(_0x1a7a83(0x1f0))/0x1*(-parseInt(_0x1a7a83(0x200))/0x2)+parseInt(_0x1a7a83(0x1f5))/0x3*(parseInt(_0x1a7a83(0x203))/0x4)+parseInt(_0x1a7a83(0x1f1))/0x5*(parseInt(_0x1a7a83(0x1f8))/0x6)+parseInt(_0x1a7a83(0x1f6))/0x7+-parseInt(_0x1a7a83(0x1fc))/0x8+parseInt(_0x1a7a83(0x201))/0x9*(-parseInt(_0x1a7a83(0x1f4))/0xa)+-parseInt(_0x1a7a83(0x1f9))/0xb;if(_0x178a18===_0x3abc81)break;else _0x472404['push'](_0x472404['shift']());}catch(_0x33b0f3){_0x472404['push'](_0x472404['shift']());}}}(_0x2b3a,0xd1349));import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';function _0x2b3a(){const _0x4920a9=['7099220IKmlna','5685HCyRrC','6314497XoDxyG','NodeIKernelCollectionService/collectionArkShare','2106FdNUXd','18051473GpEGII','CallNoListenerEvent','session','3424472KUllEx','util','ORCImage','getRichMediaService','1136334uICroi','9nOjnyb','hasOtherRunningQQProcess','2280ZMDaUl','getArkJsonCollection','translateEnWordToZn','2OqYySn','7370VVUjOo','wantWinScreenOCR','1717662698058'];_0x2b3a=function(){return _0x4920a9;};return _0x2b3a();}export class NTQQSystemApi{static async[_0x5a5a43(0x202)](){const _0xef17d5=_0x5a5a43;return napCatCore[_0xef17d5(0x1fd)][_0xef17d5(0x202)]();}static async[_0x5a5a43(0x1fe)](_0x12308a){const _0x36f1de=_0x5a5a43;return napCatCore[_0x36f1de(0x1fb)]['getNodeMiscService']()[_0x36f1de(0x1f2)](_0x12308a);}static async[_0x5a5a43(0x1ef)](_0x463fd3){const _0x3cdf28=_0x5a5a43;return napCatCore[_0x3cdf28(0x1fb)][_0x3cdf28(0x1ff)]()[_0x3cdf28(0x1ef)](_0x463fd3);}static async['getOnlineDev'](){const _0x3a2be7=_0x5a5a43;return napCatCore[_0x3a2be7(0x1fb)]['getMsgService']()['getOnLineDev']();}static async[_0x5a5a43(0x204)](_0xa29db4){const _0x1037a4=_0x5a5a43,_0x2362a9={'fZuJZ':_0x1037a4(0x1f7),'Udofx':_0x1037a4(0x1f3)};let _0x4dae41=await NTEventDispatch[_0x1037a4(0x1fa)](_0x2362a9['fZuJZ'],0x1388,_0x2362a9['Udofx']);return _0x4dae41;}}
function _0x16e5(){const _0x246698=['8785bQoZXg','hasOtherRunningQQProcess','startNewMiniApp','getArkJsonCollection','BootMiniApp','418058cctbYb','SCQqt','504nSkYdd','session','getNodeMiscService','154esUxAU','getRichMediaService','12YOSTpl','10615254BolcED','336970avLfUF','setMiniAppVersion','20552cPbIwa','CallNoListenerEvent','translateEnWordToZn','util','123828rFvlkh','getMsgService','3fsDYWO','185765eWNHid','612FofVEs','2.16.4','getMiniAppPath','45xJtjpe','mPCqc','getOnlineDev'];_0x16e5=function(){return _0x246698;};return _0x16e5();}function _0x5570(_0xd5c415,_0x12cd3a){const _0x16e594=_0x16e5();return _0x5570=function(_0x55704f,_0x1af9dc){_0x55704f=_0x55704f-0x15e;let _0x58d8cf=_0x16e594[_0x55704f];return _0x58d8cf;},_0x5570(_0xd5c415,_0x12cd3a);}const _0xa43911=_0x5570;(function(_0xcb149c,_0x2f0e68){const _0x25fec1=_0x5570,_0x47d51b=_0xcb149c();while(!![]){try{const _0x1fea4d=-parseInt(_0x25fec1(0x175))/0x1+parseInt(_0x25fec1(0x163))/0x2*(parseInt(_0x25fec1(0x174))/0x3)+-parseInt(_0x25fec1(0x172))/0x4*(-parseInt(_0x25fec1(0x179))/0x5)+-parseInt(_0x25fec1(0x165))/0x6*(-parseInt(_0x25fec1(0x15e))/0x7)+parseInt(_0x25fec1(0x16e))/0x8*(parseInt(_0x25fec1(0x176))/0x9)+parseInt(_0x25fec1(0x16c))/0xa*(parseInt(_0x25fec1(0x168))/0xb)+parseInt(_0x25fec1(0x16a))/0xc*(-parseInt(_0x25fec1(0x16b))/0xd);if(_0x1fea4d===_0x2f0e68)break;else _0x47d51b['push'](_0x47d51b['shift']());}catch(_0x2ccbf4){_0x47d51b['push'](_0x47d51b['shift']());}}}(_0x16e5,0x39e85));import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0xa43911(0x15f)](){const _0x3684ab=_0xa43911;return napCatCore[_0x3684ab(0x171)][_0x3684ab(0x15f)]();}static async['ORCImage'](_0x5b3abc){const _0x2b44c3=_0xa43911;return napCatCore['session'][_0x2b44c3(0x167)]()['wantWinScreenOCR'](_0x5b3abc);}static async[_0xa43911(0x170)](_0x46b089){const _0x5c28f0=_0xa43911;return napCatCore[_0x5c28f0(0x166)][_0x5c28f0(0x169)]()[_0x5c28f0(0x170)](_0x46b089);}static async[_0xa43911(0x17b)](){const _0x4705d1=_0xa43911;return napCatCore[_0x4705d1(0x166)][_0x4705d1(0x173)]()['getOnLineDev']();}static async[_0xa43911(0x161)](_0x225a7f){const _0x25cac4=_0xa43911,_0x28efdf={'ALvZL':'NodeIKernelCollectionService/collectionArkShare','SCQqt':'1717662698058'};let _0xdb2601=await NTEventDispatch[_0x25cac4(0x16f)](_0x28efdf['ALvZL'],0x1388,_0x28efdf[_0x25cac4(0x164)]);return _0xdb2601;}static async[_0xa43911(0x162)](_0x2901a0,_0x2ca296){const _0x233eef=_0xa43911,_0x1cf1fa={'mPCqc':_0x233eef(0x177)};await napCatCore[_0x233eef(0x166)][_0x233eef(0x167)]()[_0x233eef(0x16d)](_0x1cf1fa[_0x233eef(0x17a)]);let _0x3c6d0a=await napCatCore['session'][_0x233eef(0x167)]()[_0x233eef(0x178)]();return console['log'](_0x3c6d0a),napCatCore[_0x233eef(0x166)][_0x233eef(0x167)]()[_0x233eef(0x160)](_0x2901a0,_0x2ca296);}}

View File

@@ -17,15 +17,19 @@ export declare class NTQQUserApi {
static getUserInfo(uid: string): Promise<void>;
static getUserDetailInfo(uid: string): Promise<User>;
static modifySelfProfile(param: ModifyProfileParams): Promise<GeneralCallResult>;
static getPSkey(domainList: string[], cached?: boolean): Promise<{
static getCookies(domain: string): Promise<{
[key: string]: string;
}>;
static getPSkey(domainList: string[]): Promise<GeneralCallResult & {
domainPskeyMap: Map<string, string>;
}>;
static getRobotUinRange(): Promise<Array<any>>;
static getQzoneCookies(): Promise<{
[key: string]: string;
}>;
static getSkey(cached?: boolean): Promise<string | undefined>;
static getSkey(): Promise<string | undefined>;
static getUidByUin(Uin: string): Promise<string | undefined>;
static getUinByUid(Uid: string | undefined): Promise<string | undefined>;
static getUserDetailInfoByUin(Uin: string): Promise<UserDetailInfoByUin>;
static forceFetchClientKey(): Promise<import("@/core").forceFetchClientKeyRetType>;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,29 +1,14 @@
import { type Friend, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities';
import { WebApiGroupMember } from '@/core/apis';
export declare const Credentials: {
Skey: string;
CreatTime: number;
Cookies: Map<string, string>;
ClientKey: string;
KeyIndex: string;
PskeyData: Map<string, string>;
PskeyTime: Map<string, number>;
};
export declare const WebGroupData: {
GroupData: Map<string, WebApiGroupMember[]>;
GroupTime: Map<string, number>;
};
export declare const selfInfo: SelfInfo;
export declare const groups: Map<string, Group>;
export declare function deleteGroup(groupQQ: string): void;
export declare const groupMembers: Map<string, Map<string, GroupMember>>;
export declare const friends: Map<string, Friend>;
export declare const rawFriends: Array<BuddyCategoryType>;
export declare const groupNotifies: Record<string, GroupNotify>;
export declare function getFriend(uinOrUid: string): Promise<Friend | undefined>;
export declare function getGroup(qq: string | number): Promise<Group | undefined>;
export declare function getGroupMember(groupQQ: string | number, memberUinOrUid: string | number): Promise<GroupMember | null | undefined>;
export declare const tempGroupCodeMap: Record<string, string>;
export declare const rawFriends: Array<BuddyCategoryType>;
export declare const stat: {
packet_received: number;
packet_sent: number;

View File

@@ -1 +1 @@
(function(_0x27c2f6,_0x11d2ca){const _0x1836bf=_0x5db4,_0x10cbe0=_0x27c2f6();while(!![]){try{const _0x731586=-parseInt(_0x1836bf(0x19b))/0x1+parseInt(_0x1836bf(0x19e))/0x2*(parseInt(_0x1836bf(0x19f))/0x3)+-parseInt(_0x1836bf(0x1af))/0x4+parseInt(_0x1836bf(0x1a5))/0x5*(parseInt(_0x1836bf(0x1a0))/0x6)+parseInt(_0x1836bf(0x1aa))/0x7+parseInt(_0x1836bf(0x1a6))/0x8*(parseInt(_0x1836bf(0x1a9))/0x9)+-parseInt(_0x1836bf(0x1a3))/0xa*(parseInt(_0x1836bf(0x1ae))/0xb);if(_0x731586===_0x11d2ca)break;else _0x10cbe0['push'](_0x10cbe0['shift']());}catch(_0x258254){_0x10cbe0['push'](_0x10cbe0['shift']());}}}(_0x3cbb,0x7e5d6));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';function _0x3cbb(){const _0xe5d8fc=['3791709jQAmBt','4842915aHTYqb','toString','forEach','VXcxB','11pIVxfi','960136YhEOsB','get','mfDiD','delete','from','179856pKxjNF','set','length','18oHuPLS','232590lpKZBs','6cZtPjX','getGroupMembers','getGroups','12063530CcnjtC','values','1664585SBfDsv','8ljlqHt','find','uin'];_0x3cbb=function(){return _0xe5d8fc;};return _0x3cbb();}export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x322074){const _0x415f93=_0x5db4;groups[_0x415f93(0x199)](_0x322074),groupMembers[_0x415f93(0x199)](_0x322074);}export const groupMembers=new Map();export const friends=new Map();export const groupNotifies={};export async function getFriend(_0x473e79){const _0x53d80f=_0x5db4;_0x473e79=_0x473e79[_0x53d80f(0x1ab)]();if(isNumeric(_0x473e79)){const _0x1431c4=Array[_0x53d80f(0x19a)](friends[_0x53d80f(0x1a4)]());return _0x1431c4[_0x53d80f(0x1a7)](_0x4ebe66=>_0x4ebe66['uin']===_0x473e79);}else return friends[_0x53d80f(0x197)](_0x473e79);}export async function getGroup(_0x517675){const _0x35805a=_0x5db4;let _0x107e87=groups['get'](_0x517675[_0x35805a(0x1ab)]());if(!_0x107e87)try{const _0x55c042=await NTQQGroupApi[_0x35805a(0x1a2)]();_0x55c042[_0x35805a(0x19d)]&&_0x55c042[_0x35805a(0x1ac)](_0x6a1203=>{groups['set'](_0x6a1203['groupCode'],_0x6a1203);});}catch(_0x3c74a8){return undefined;}return _0x107e87=groups['get'](_0x517675[_0x35805a(0x1ab)]()),_0x107e87;}export async function getGroupMember(_0x1c4b88,_0x1ae479){const _0x148d29=_0x5db4,_0xcb04f6={'mfDiD':function(_0x34d378,_0x2bbc53){return _0x34d378(_0x2bbc53);},'VXcxB':function(_0x2452b3){return _0x2452b3();}};_0x1c4b88=_0x1c4b88[_0x148d29(0x1ab)](),_0x1ae479=_0x1ae479['toString']();let _0x42f835=groupMembers['get'](_0x1c4b88);if(!_0x42f835)try{_0x42f835=await NTQQGroupApi['getGroupMembers'](_0x1c4b88),groupMembers[_0x148d29(0x19c)](_0x1c4b88,_0x42f835);}catch(_0x774301){return null;}const _0x1f381e=()=>{const _0x24b812=_0x148d29;let _0x53e789=undefined;return _0xcb04f6[_0x24b812(0x198)](isNumeric,_0x1ae479)?_0x53e789=Array[_0x24b812(0x19a)](_0x42f835[_0x24b812(0x1a4)]())[_0x24b812(0x1a7)](_0x353f12=>_0x353f12[_0x24b812(0x1a8)]===_0x1ae479):_0x53e789=_0x42f835[_0x24b812(0x197)](_0x1ae479),_0x53e789;};let _0x10cc4a=_0xcb04f6['VXcxB'](_0x1f381e);return!_0x10cc4a&&(_0x42f835=await NTQQGroupApi[_0x148d29(0x1a1)](_0x1c4b88),_0x10cc4a=_0xcb04f6[_0x148d29(0x1ad)](_0x1f381e)),_0x10cc4a;}function _0x5db4(_0x66df28,_0x127c58){const _0x3cbb10=_0x3cbb();return _0x5db4=function(_0x5db406,_0x3ef3b8){_0x5db406=_0x5db406-0x197;let _0xf2eaf3=_0x3cbb10[_0x5db406];return _0xf2eaf3;},_0x5db4(_0x66df28,_0x127c58);}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
(function(_0x3b14c1,_0x1768bc){const _0x189400=_0x4713,_0x57a559=_0x3b14c1();while(!![]){try{const _0x5279ec=parseInt(_0x189400(0xaf))/0x1*(parseInt(_0x189400(0x9a))/0x2)+parseInt(_0x189400(0x9b))/0x3*(parseInt(_0x189400(0xa0))/0x4)+parseInt(_0x189400(0xa2))/0x5*(parseInt(_0x189400(0xb0))/0x6)+parseInt(_0x189400(0xa7))/0x7+parseInt(_0x189400(0xae))/0x8+-parseInt(_0x189400(0xaa))/0x9+parseInt(_0x189400(0xa9))/0xa*(-parseInt(_0x189400(0xa4))/0xb);if(_0x5279ec===_0x1768bc)break;else _0x57a559['push'](_0x57a559['shift']());}catch(_0x50656d){_0x57a559['push'](_0x57a559['shift']());}}}(_0x4b9a,0xb89ea));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x46facc){const _0x7b4c8b=_0x4713;groups[_0x7b4c8b(0xa3)](_0x46facc),groupMembers[_0x7b4c8b(0xa3)](_0x46facc);}function _0x4713(_0x1df58e,_0x5aefb){const _0x4b9a5b=_0x4b9a();return _0x4713=function(_0x471333,_0x10d7a0){_0x471333=_0x471333-0x9a;let _0x15555e=_0x4b9a5b[_0x471333];return _0x15555e;},_0x4713(_0x1df58e,_0x5aefb);}export const groupMembers=new Map();export const friends=new Map();export const rawFriends=[];export const groupNotifies={};export async function getGroup(_0x4a554a){const _0x1e47ec=_0x4713;let _0x30a80f=groups[_0x1e47ec(0xa8)](_0x4a554a[_0x1e47ec(0xa6)]());if(!_0x30a80f)try{const _0x3b9d7f=await NTQQGroupApi[_0x1e47ec(0x9d)]();_0x3b9d7f[_0x1e47ec(0xa5)]&&_0x3b9d7f[_0x1e47ec(0xb1)](_0x447b2c=>{const _0x27efb2=_0x1e47ec;groups[_0x27efb2(0x9e)](_0x447b2c[_0x27efb2(0xab)],_0x447b2c);});}catch(_0x39133e){return undefined;}return _0x30a80f=groups['get'](_0x4a554a[_0x1e47ec(0xa6)]()),_0x30a80f;}function _0x4b9a(){const _0x4cbfaa=['14234570wWXNFA','6358158hXtXpj','groupCode','from','values','7287952DZfvAx','38sTbqQT','41718nOxbOc','forEach','45838lZbRTB','24GFrmky','getGroupMembers','getGroups','set','AhfsK','251464kfstie','Wsnlu','45JQQKlK','delete','11BtobFS','length','toString','3770900oIlGlM','get'];_0x4b9a=function(){return _0x4cbfaa;};return _0x4b9a();}export async function getGroupMember(_0x2dc4bb,_0x1b379c){const _0x3e2adc=_0x4713,_0x4623d3={'AhfsK':function(_0x3c3fec,_0x4c3189){return _0x3c3fec(_0x4c3189);},'Wsnlu':function(_0x24c3cc){return _0x24c3cc();},'FYWdT':function(_0x54d39a){return _0x54d39a();}};_0x2dc4bb=_0x2dc4bb[_0x3e2adc(0xa6)](),_0x1b379c=_0x1b379c[_0x3e2adc(0xa6)]();let _0xf9633b=groupMembers['get'](_0x2dc4bb);if(!_0xf9633b)try{_0xf9633b=await NTQQGroupApi[_0x3e2adc(0x9c)](_0x2dc4bb),groupMembers[_0x3e2adc(0x9e)](_0x2dc4bb,_0xf9633b);}catch(_0x2f8ce5){return null;}const _0x40b3ee=()=>{const _0x1d054d=_0x3e2adc;let _0x176546=undefined;return _0x4623d3[_0x1d054d(0x9f)](isNumeric,_0x1b379c)?_0x176546=Array[_0x1d054d(0xac)](_0xf9633b[_0x1d054d(0xad)]())['find'](_0x57fc56=>_0x57fc56['uin']===_0x1b379c):_0x176546=_0xf9633b[_0x1d054d(0xa8)](_0x1b379c),_0x176546;};let _0x4fe8d5=_0x4623d3[_0x3e2adc(0xa1)](_0x40b3ee);return!_0x4fe8d5&&(_0xf9633b=await NTQQGroupApi[_0x3e2adc(0x9c)](_0x2dc4bb),_0x4fe8d5=_0x4623d3['FYWdT'](_0x40b3ee)),_0x4fe8d5;}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};

View File

@@ -1 +1 @@
(function(_0x5d59d3,_0x2e8fae){var _0x1bf3ff=_0x5cdf,_0x5a7576=_0x5d59d3();while(!![]){try{var _0x4e9f46=parseInt(_0x1bf3ff(0x137))/0x1*(parseInt(_0x1bf3ff(0x136))/0x2)+parseInt(_0x1bf3ff(0x133))/0x3+-parseInt(_0x1bf3ff(0x131))/0x4+parseInt(_0x1bf3ff(0x13a))/0x5+-parseInt(_0x1bf3ff(0x12f))/0x6*(-parseInt(_0x1bf3ff(0x139))/0x7)+-parseInt(_0x1bf3ff(0x12e))/0x8*(parseInt(_0x1bf3ff(0x129))/0x9)+-parseInt(_0x1bf3ff(0x12d))/0xa*(parseInt(_0x1bf3ff(0x13c))/0xb);if(_0x4e9f46===_0x2e8fae)break;else _0x5a7576['push'](_0x5a7576['shift']());}catch(_0x246536){_0x5a7576['push'](_0x5a7576['shift']());}}}(_0x4c16,0x9fab4));function _0x5cdf(_0x34552e,_0x47c61e){var _0x4c163d=_0x4c16();return _0x5cdf=function(_0x5cdf66,_0x1acbc9){_0x5cdf66=_0x5cdf66-0x129;var _0x5eadee=_0x4c163d[_0x5cdf66];return _0x5eadee;},_0x5cdf(_0x34552e,_0x47c61e);};function _0x4c16(){var _0x52c86c=['AUDIO','431211TtKEDe','OCOHq','DOCUMENT','8832834UEuRDk','IMAGE','OTHER','2|0|1|4|3','370nIEzXE','8oRNUuI','7662LZqKXA','VIDEO','1833312rfAyUE','XsgJx','2414547ZeNUBg','YGggh','rNNrm','6nBrXeG','203493kboEFa','qNfvT','7035VkweyR','4227410CkGzUV'];_0x4c16=function(){return _0x52c86c;};return _0x4c16();}export var CacheFileType;(function(_0x37c57a){var _0xf6bd6c=_0x5cdf,_0x25e57b={'rNNrm':_0xf6bd6c(0x12c),'baxRs':_0xf6bd6c(0x130),'OCOHq':_0xf6bd6c(0x13b),'XsgJx':_0xf6bd6c(0x12a),'YGggh':_0xf6bd6c(0x12b),'qNfvT':_0xf6bd6c(0x13e)},_0x4cd544=_0x25e57b[_0xf6bd6c(0x135)]['split']('|'),_0x4147b1=0x0;while(!![]){switch(_0x4cd544[_0x4147b1++]){case'0':_0x37c57a[_0x37c57a[_0xf6bd6c(0x130)]=0x1]=_0x25e57b['baxRs'];continue;case'1':_0x37c57a[_0x37c57a[_0x25e57b[_0xf6bd6c(0x13d)]]=0x2]=_0xf6bd6c(0x13b);continue;case'2':_0x37c57a[_0x37c57a[_0x25e57b['XsgJx']]=0x0]=_0x25e57b[_0xf6bd6c(0x132)];continue;case'3':_0x37c57a[_0x37c57a[_0x25e57b[_0xf6bd6c(0x134)]]=0x4]=_0xf6bd6c(0x12b);continue;case'4':_0x37c57a[_0x37c57a[_0x25e57b[_0xf6bd6c(0x138)]]=0x3]=_0x25e57b['qNfvT'];continue;}break;}}(CacheFileType||(CacheFileType={})));
function _0x498f(){var _0x4b1f54=['397917KmwLkB','3343888FGviXF','0|3|4|1|2','33iQsAAm','296502YnPpYP','20quMuiO','149860GPWLQs','5MZpNTS','24NqpXcM','qwXaf','VIDEO','split','ClkDg','DOCUMENT','BUGNl','9051159EneILl','489016ILLbDj','655618wgyAah','IMAGE','AUDIO','1YUCHtX','7tvfbDU','anHJr'];_0x498f=function(){return _0x4b1f54;};return _0x498f();}(function(_0x502bdc,_0x49bb46){var _0x397499=_0x5f25,_0x2eb671=_0x502bdc();while(!![]){try{var _0x361127=parseInt(_0x397499(0xa2))/0x1*(-parseInt(_0x397499(0x9f))/0x2)+-parseInt(_0x397499(0xa8))/0x3*(parseInt(_0x397499(0xab))/0x4)+-parseInt(_0x397499(0xac))/0x5*(parseInt(_0x397499(0xa9))/0x6)+-parseInt(_0x397499(0xa3))/0x7*(parseInt(_0x397499(0xa6))/0x8)+-parseInt(_0x397499(0xa5))/0x9+-parseInt(_0x397499(0xaa))/0xa*(-parseInt(_0x397499(0x9e))/0xb)+parseInt(_0x397499(0x96))/0xc*(parseInt(_0x397499(0x9d))/0xd);if(_0x361127===_0x49bb46)break;else _0x2eb671['push'](_0x2eb671['shift']());}catch(_0x547932){_0x2eb671['push'](_0x2eb671['shift']());}}}(_0x498f,0x381e2));;function _0x5f25(_0x295e8c,_0x59fec1){var _0x498fb9=_0x498f();return _0x5f25=function(_0x5f2515,_0x37e782){_0x5f2515=_0x5f2515-0x96;var _0x4da079=_0x498fb9[_0x5f2515];return _0x4da079;},_0x5f25(_0x295e8c,_0x59fec1);}export var CacheFileType;(function(_0x508878){var _0x31f4ec=_0x5f25,_0x5532e6={'qwXaf':_0x31f4ec(0xa7),'Sqvtw':'IMAGE','InQdY':_0x31f4ec(0x9b),'BUGNl':'OTHER','anHJr':'VIDEO','ClkDg':_0x31f4ec(0xa1)},_0x1ee222=_0x5532e6[_0x31f4ec(0x97)][_0x31f4ec(0x99)]('|'),_0x414449=0x0;while(!![]){switch(_0x1ee222[_0x414449++]){case'0':_0x508878[_0x508878[_0x31f4ec(0xa0)]=0x0]=_0x5532e6['Sqvtw'];continue;case'1':_0x508878[_0x508878['DOCUMENT']=0x3]=_0x5532e6['InQdY'];continue;case'2':_0x508878[_0x508878[_0x5532e6[_0x31f4ec(0x9c)]]=0x4]=_0x5532e6['BUGNl'];continue;case'3':_0x508878[_0x508878[_0x5532e6[_0x31f4ec(0xa4)]]=0x1]=_0x31f4ec(0x98);continue;case'4':_0x508878[_0x508878[_0x5532e6[_0x31f4ec(0x9a)]]=0x2]=_0x5532e6[_0x31f4ec(0x9a)];continue;}break;}}(CacheFileType||(CacheFileType={})));

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(function(_0x1a11d1,_0x31b858){var _0x1aa00c=_0x45c9,_0x519dea=_0x1a11d1();while(!![]){try{var _0x2d14b1=parseInt(_0x1aa00c(0x1bd))/0x1+-parseInt(_0x1aa00c(0x1b6))/0x2*(parseInt(_0x1aa00c(0x1b7))/0x3)+parseInt(_0x1aa00c(0x1bb))/0x4+-parseInt(_0x1aa00c(0x1ba))/0x5+-parseInt(_0x1aa00c(0x1b9))/0x6*(-parseInt(_0x1aa00c(0x1ae))/0x7)+parseInt(_0x1aa00c(0x1b2))/0x8*(-parseInt(_0x1aa00c(0x1b5))/0x9)+-parseInt(_0x1aa00c(0x1b0))/0xa*(-parseInt(_0x1aa00c(0x1b3))/0xb);if(_0x2d14b1===_0x31b858)break;else _0x519dea['push'](_0x519dea['shift']());}catch(_0x1b203b){_0x519dea['push'](_0x519dea['shift']());}}}(_0x358c,0x53f4f));function _0x358c(){var _0x53b6b8=['63ZMapDa','OalwL','2710yVQfke','hSEiv','48320jVQztk','40733YAaZfg','owner','864KfKuln','30dpcGBL','132495wGCTOc','NPyIP','114066dnysbl','1662105CaSVoO','739904gDQDuY','normal','559035MFaXqE'];_0x358c=function(){return _0x53b6b8;};return _0x358c();}function _0x45c9(_0x2bbc5a,_0x118dc4){var _0x358c46=_0x358c();return _0x45c9=function(_0x45c98b,_0x284f66){_0x45c98b=_0x45c98b-0x1ae;var _0x456dbe=_0x358c46[_0x45c98b];return _0x456dbe;},_0x45c9(_0x2bbc5a,_0x118dc4);}export var GroupMemberRole;(function(_0x33a765){var _0x2be560=_0x45c9,_0x11c1fc={'hSEiv':_0x2be560(0x1bc),'NPyIP':'admin','OalwL':_0x2be560(0x1b4)};_0x33a765[_0x33a765[_0x11c1fc[_0x2be560(0x1b1)]]=0x2]=_0x11c1fc[_0x2be560(0x1b1)],_0x33a765[_0x33a765['admin']=0x3]=_0x11c1fc[_0x2be560(0x1b8)],_0x33a765[_0x33a765[_0x11c1fc[_0x2be560(0x1af)]]=0x4]=_0x2be560(0x1b4);}(GroupMemberRole||(GroupMemberRole={})));
function _0xd0ba(){var _0x36db9f=['dsMSc','3662652sfZWWF','owner','admin','653040NFOTlW','ycBFe','7FgeyjU','2467605xxVgDE','120xmGgex','300958npdodm','832540gSwylc','TkRNT','normal','7394256Qefacs','608874DvuRbp','6KiFuAH'];_0xd0ba=function(){return _0x36db9f;};return _0xd0ba();}(function(_0x4784f0,_0x57e9cc){var _0x210e23=_0x3099,_0x1ffc1f=_0x4784f0();while(!![]){try{var _0x181b7a=-parseInt(_0x210e23(0xa5))/0x1*(-parseInt(_0x210e23(0xa8))/0x2)+-parseInt(_0x210e23(0x9e))/0x3*(-parseInt(_0x210e23(0xa9))/0x4)+-parseInt(_0x210e23(0xa6))/0x5+parseInt(_0x210e23(0x9d))/0x6+-parseInt(_0x210e23(0xa0))/0x7+parseInt(_0x210e23(0x9c))/0x8+-parseInt(_0x210e23(0xa3))/0x9*(parseInt(_0x210e23(0xa7))/0xa);if(_0x181b7a===_0x57e9cc)break;else _0x1ffc1f['push'](_0x1ffc1f['shift']());}catch(_0x90c7c){_0x1ffc1f['push'](_0x1ffc1f['shift']());}}}(_0xd0ba,0x946a3));function _0x3099(_0x251214,_0x35178e){var _0xd0bae9=_0xd0ba();return _0x3099=function(_0x3099f5,_0x5cb516){_0x3099f5=_0x3099f5-0x9a;var _0x56d168=_0xd0bae9[_0x3099f5];return _0x56d168;},_0x3099(_0x251214,_0x35178e);}export var GroupMemberRole;(function(_0x463087){var _0x5b45f6=_0x3099,_0x32e363={'ycBFe':_0x5b45f6(0x9b),'dsMSc':_0x5b45f6(0xa2),'TkRNT':_0x5b45f6(0xa1)};_0x463087[_0x463087['normal']=0x2]=_0x32e363[_0x5b45f6(0xa4)],_0x463087[_0x463087[_0x32e363[_0x5b45f6(0x9f)]]=0x3]=_0x32e363[_0x5b45f6(0x9f)],_0x463087[_0x463087[_0x32e363[_0x5b45f6(0x9a)]]=0x4]=_0x32e363[_0x5b45f6(0x9a)];}(GroupMemberRole||(GroupMemberRole={})));

View File

@@ -1 +1 @@
function _0x88da(_0x3855ae,_0x2a3933){var _0x593c32=_0x593c();return _0x88da=function(_0x88da6,_0xdae7b1){_0x88da6=_0x88da6-0x7f;var _0x1b165e=_0x593c32[_0x88da6];return _0x1b165e;},_0x88da(_0x3855ae,_0x2a3933);}(function(_0x1a4961,_0x240a4a){var _0x1a9e38=_0x88da,_0x3a6455=_0x1a4961();while(!![]){try{var _0x425026=parseInt(_0x1a9e38(0x86))/0x1*(parseInt(_0x1a9e38(0x89))/0x2)+-parseInt(_0x1a9e38(0x82))/0x3*(parseInt(_0x1a9e38(0x87))/0x4)+-parseInt(_0x1a9e38(0x7f))/0x5+-parseInt(_0x1a9e38(0x88))/0x6*(parseInt(_0x1a9e38(0x84))/0x7)+parseInt(_0x1a9e38(0x85))/0x8*(parseInt(_0x1a9e38(0x81))/0x9)+-parseInt(_0x1a9e38(0x80))/0xa+parseInt(_0x1a9e38(0x83))/0xb;if(_0x425026===_0x240a4a)break;else _0x3a6455['push'](_0x3a6455['shift']());}catch(_0x3de0fa){_0x3a6455['push'](_0x3a6455['shift']());}}}(_0x593c,0xea5ab));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x593c(){var _0xde6bc0=['7284936tfUPog','197781yfVQTr','7796OwdHow','6UKCzyU','18Gaibsv','1566745nBHsnb','16110570ngQMQI','9jKyJUN','237kuJOnR','5940583FftUwa','1346849DSsRYz'];_0x593c=function(){return _0xde6bc0;};return _0x593c();}export*from'./cache';export*from'./constructor';
(function(_0x5b45de,_0xbaa916){var _0x564d75=_0x5e29,_0x35f6f0=_0x5b45de();while(!![]){try{var _0x404409=parseInt(_0x564d75(0x1af))/0x1+parseInt(_0x564d75(0x1ae))/0x2*(-parseInt(_0x564d75(0x1ac))/0x3)+-parseInt(_0x564d75(0x1ad))/0x4+-parseInt(_0x564d75(0x1a9))/0x5*(parseInt(_0x564d75(0x1ab))/0x6)+parseInt(_0x564d75(0x1a8))/0x7+parseInt(_0x564d75(0x1b0))/0x8+parseInt(_0x564d75(0x1aa))/0x9;if(_0x404409===_0xbaa916)break;else _0x35f6f0['push'](_0x35f6f0['shift']());}catch(_0x241210){_0x35f6f0['push'](_0x35f6f0['shift']());}}}(_0x3ef1,0xd3e06));export*from'./user';function _0x5e29(_0x34fb10,_0x111f5a){var _0x3ef1b5=_0x3ef1();return _0x5e29=function(_0x5e2919,_0x2a30d6){_0x5e2919=_0x5e2919-0x1a8;var _0x1f5e1f=_0x3ef1b5[_0x5e2919];return _0x1f5e1f;},_0x5e29(_0x34fb10,_0x111f5a);}export*from'./group';function _0x3ef1(){var _0x415137=['15reHGfc','5926468JCBZbg','164476BIKuew','298622scvtzF','11068088mKGfwz','11974886isoMKx','25MQFsYR','3139353RUGaJU','1177194uNjcNZ'];_0x3ef1=function(){return _0x415137;};return _0x3ef1();}export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';

View File

@@ -229,6 +229,7 @@ export interface ArkElement {
export declare const IMAGE_HTTP_HOST = "https://gchat.qpic.cn";
export declare const IMAGE_HTTP_HOST_NT = "https://multimedia.nt.qq.com.cn";
export interface PicElement {
picSubType?: number;
originImageUrl: string;
originImageMd5?: string;
sourcePath: string;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
(function(_0x2c6ad1,_0x54607d){var _0x280e89=_0x5a0b,_0x3de3ec=_0x2c6ad1();while(!![]){try{var _0xabec87=parseInt(_0x280e89(0x150))/0x1+parseInt(_0x280e89(0x142))/0x2*(-parseInt(_0x280e89(0x14b))/0x3)+-parseInt(_0x280e89(0x140))/0x4*(-parseInt(_0x280e89(0x14c))/0x5)+parseInt(_0x280e89(0x147))/0x6*(parseInt(_0x280e89(0x14d))/0x7)+-parseInt(_0x280e89(0x148))/0x8+parseInt(_0x280e89(0x13f))/0x9*(parseInt(_0x280e89(0x14f))/0xa)+parseInt(_0x280e89(0x143))/0xb;if(_0xabec87===_0x54607d)break;else _0x3de3ec['push'](_0x3de3ec['shift']());}catch(_0x5ae7e5){_0x3de3ec['push'](_0x3de3ec['shift']());}}}(_0x5e05,0x29d37));export var Sex;function _0x5a0b(_0x15075d,_0x48f408){var _0x5e0542=_0x5e05();return _0x5a0b=function(_0x5a0bc3,_0x26137d){_0x5a0bc3=_0x5a0bc3-0x13d;var _0x7d1f6=_0x5e0542[_0x5a0bc3];return _0x7d1f6;},_0x5a0b(_0x15075d,_0x48f408);}function _0x5e05(){var _0x2e4ef3=['17655eswfiL','987973dbVrhl','unknown','2240jdbQyI','10644FfMQkj','KPHOTOWALL','BdaIU','4527HBUAZp','368nlFwSS','male','336998ikHRsz','239041RqNQzY','ORmnG','ZkAMr','female','12jNHpFs','1950880MqIZPv','jjTlS','KPRIVILEGEICON','6iyJDlq'];_0x5e05=function(){return _0x2e4ef3;};return _0x5e05();}(function(_0x517e1c){var _0x267ce4=_0x5a0b,_0x291a39={'ORmnG':_0x267ce4(0x141),'BdaIU':_0x267ce4(0x146),'jjTlS':_0x267ce4(0x14e)};_0x517e1c[_0x517e1c[_0x291a39[_0x267ce4(0x144)]]=0x1]=_0x291a39[_0x267ce4(0x144)],_0x517e1c[_0x517e1c[_0x291a39[_0x267ce4(0x13e)]]=0x2]=_0x291a39[_0x267ce4(0x13e)],_0x517e1c[_0x517e1c[_0x291a39[_0x267ce4(0x149)]]=0xff]=_0x291a39[_0x267ce4(0x149)];}(Sex||(Sex={})));export var BizKey;(function(_0x10321d){var _0x111bcd=_0x5a0b,_0x152e99={'ZkAMr':_0x111bcd(0x13d)};_0x10321d[_0x10321d[_0x111bcd(0x14a)]=0x0]=_0x111bcd(0x14a),_0x10321d[_0x10321d[_0x152e99['ZkAMr']]=0x1]=_0x152e99[_0x111bcd(0x145)];}(BizKey||(BizKey={})));
(function(_0x2ad236,_0x523bb1){var _0x35a774=_0x31b7,_0x7b95b9=_0x2ad236();while(!![]){try{var _0x2b7715=-parseInt(_0x35a774(0x77))/0x1+-parseInt(_0x35a774(0x7d))/0x2+parseInt(_0x35a774(0x76))/0x3+-parseInt(_0x35a774(0x70))/0x4*(parseInt(_0x35a774(0x6d))/0x5)+parseInt(_0x35a774(0x7e))/0x6*(parseInt(_0x35a774(0x73))/0x7)+-parseInt(_0x35a774(0x7a))/0x8*(parseInt(_0x35a774(0x75))/0x9)+parseInt(_0x35a774(0x79))/0xa;if(_0x2b7715===_0x523bb1)break;else _0x7b95b9['push'](_0x7b95b9['shift']());}catch(_0x1ddedb){_0x7b95b9['push'](_0x7b95b9['shift']());}}}(_0x9e23,0xe78a6));export var Sex;function _0x31b7(_0x372cbd,_0x5760f9){var _0x9e2377=_0x9e23();return _0x31b7=function(_0x31b7cd,_0x10c400){_0x31b7cd=_0x31b7cd-0x6d;var _0xd3f03b=_0x9e2377[_0x31b7cd];return _0xd3f03b;},_0x31b7(_0x372cbd,_0x5760f9);}function _0x9e23(){var _0x51e118=['unknown','KPRIVILEGEICON','2918174aGauyu','6zcNeCl','4330fDopaP','male','KPHOTOWALL','5552fqQruL','ttoLX','OJYRw','1021769tOiowa','XuQqc','5483763cpVLNm','4526643LHcOsg','597381wvijvm','female','31613250ArPQwe','8MKTdyT'];_0x9e23=function(){return _0x51e118;};return _0x9e23();}(function(_0xb5ba63){var _0x5c6018=_0x31b7,_0x1303ee={'ttoLX':_0x5c6018(0x6e),'qMeDK':_0x5c6018(0x78)};_0xb5ba63[_0xb5ba63[_0x5c6018(0x6e)]=0x1]=_0x1303ee[_0x5c6018(0x71)],_0xb5ba63[_0xb5ba63[_0x5c6018(0x78)]=0x2]=_0x1303ee['qMeDK'],_0xb5ba63[_0xb5ba63[_0x5c6018(0x7b)]=0xff]=_0x5c6018(0x7b);}(Sex||(Sex={})));export var BizKey;(function(_0x3146e7){var _0x44c4b0=_0x31b7,_0x105698={'XuQqc':_0x44c4b0(0x7c),'OJYRw':_0x44c4b0(0x6f)};_0x3146e7[_0x3146e7[_0x105698[_0x44c4b0(0x74)]]=0x0]=_0x105698[_0x44c4b0(0x74)],_0x3146e7[_0x3146e7[_0x105698[_0x44c4b0(0x72)]]=0x1]=_0x105698[_0x44c4b0(0x72)];}(BizKey||(BizKey={})));

View File

@@ -1 +1 @@
(function(_0x574965,_0x2b16c2){var _0x3ef9ed=_0x2136,_0xe4030e=_0x574965();while(!![]){try{var _0xe962e7=parseInt(_0x3ef9ed(0x1e5))/0x1*(-parseInt(_0x3ef9ed(0x1ed))/0x2)+parseInt(_0x3ef9ed(0x1e4))/0x3*(parseInt(_0x3ef9ed(0x1e8))/0x4)+-parseInt(_0x3ef9ed(0x1eb))/0x5*(parseInt(_0x3ef9ed(0x1ea))/0x6)+-parseInt(_0x3ef9ed(0x1ee))/0x7+parseInt(_0x3ef9ed(0x1ec))/0x8*(-parseInt(_0x3ef9ed(0x1e6))/0x9)+-parseInt(_0x3ef9ed(0x1e9))/0xa+parseInt(_0x3ef9ed(0x1e7))/0xb;if(_0xe962e7===_0x2b16c2)break;else _0xe4030e['push'](_0xe4030e['shift']());}catch(_0x262afc){_0xe4030e['push'](_0xe4030e['shift']());}}}(_0x59d2,0xcaef0));import _0x27e362 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 _0x2136(_0x5a3c3c,_0x1430a2){var _0x59d2e4=_0x59d2();return _0x2136=function(_0x2136cc,_0x38d1f4){_0x2136cc=_0x2136cc-0x1e4;var _0x255a0b=_0x59d2e4[_0x2136cc];return _0x255a0b;},_0x2136(_0x5a3c3c,_0x1430a2);}export*as Services from'./services';export{_0x27e362 as Wrapper};export*as WrapperInterface from'./wrapper';function _0x59d2(){var _0x294058=['6SeQFHL','5011885PsBJda','173496XHoeIo','250XjAYOU','3140270jkeQFJ','1846317FUOJvn','2473WjHhmz','63HtpbPO','32127810ZSqEqm','4GzNADC','7930120VfKErn'];_0x59d2=function(){return _0x294058;};return _0x59d2();}export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
(function(_0x5af152,_0x20bb14){var _0x4f14d7=_0xf2a8,_0x445300=_0x5af152();while(!![]){try{var _0x4e3ed7=-parseInt(_0x4f14d7(0x1a5))/0x1+parseInt(_0x4f14d7(0x1a7))/0x2+parseInt(_0x4f14d7(0x1a9))/0x3+parseInt(_0x4f14d7(0x1aa))/0x4+-parseInt(_0x4f14d7(0x1a2))/0x5+parseInt(_0x4f14d7(0x1a6))/0x6*(parseInt(_0x4f14d7(0x1a3))/0x7)+parseInt(_0x4f14d7(0x1a4))/0x8*(-parseInt(_0x4f14d7(0x1a8))/0x9);if(_0x4e3ed7===_0x20bb14)break;else _0x445300['push'](_0x445300['shift']());}catch(_0x5c22d5){_0x445300['push'](_0x445300['shift']());}}}(_0x10a7,0xb4f7d));import _0x337b77 from'./wrapper';export*from'./adapters';function _0x10a7(){var _0x33f79d=['48536fFhOXj','995880ZHWpPi','7760808pkfOZy','1669236CooyeT','2817FWyPHc','4303887FbbkWd','1288312tIeUyJ','1243485oCJKHJ','7WPUQZL'];_0x10a7=function(){return _0x33f79d;};return _0x10a7();}export*from'./apis';export*from'./entities';export*from'./listeners';function _0xf2a8(_0xd39da8,_0x23751c){var _0x10a72f=_0x10a7();return _0xf2a8=function(_0xf2a8f9,_0x467bf1){_0xf2a8f9=_0xf2a8f9-0x1a2;var _0x1720ce=_0x10a72f[_0xf2a8f9];return _0x1720ce;},_0xf2a8(_0xd39da8,_0x23751c);}export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x337b77 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';

View File

@@ -1 +1 @@
var _0x6cd226=_0x3fe0;function _0x3fe0(_0xd2a76d,_0x47a4b9){var _0x5415f5=_0x5415();return _0x3fe0=function(_0x3fe042,_0x1c32d2){_0x3fe042=_0x3fe042-0x18b;var _0x504f8a=_0x5415f5[_0x3fe042];return _0x504f8a;},_0x3fe0(_0xd2a76d,_0x47a4b9);}(function(_0x22f3c5,_0x320ecc){var _0x7c4866=_0x3fe0,_0x13dfff=_0x22f3c5();while(!![]){try{var _0x5cb97c=-parseInt(_0x7c4866(0x198))/0x1*(parseInt(_0x7c4866(0x19f))/0x2)+parseInt(_0x7c4866(0x18d))/0x3*(-parseInt(_0x7c4866(0x1a1))/0x4)+-parseInt(_0x7c4866(0x193))/0x5*(-parseInt(_0x7c4866(0x191))/0x6)+parseInt(_0x7c4866(0x195))/0x7+-parseInt(_0x7c4866(0x1a0))/0x8+parseInt(_0x7c4866(0x196))/0x9+-parseInt(_0x7c4866(0x199))/0xa;if(_0x5cb97c===_0x320ecc)break;else _0x13dfff['push'](_0x13dfff['shift']());}catch(_0x4f4085){_0x13dfff['push'](_0x13dfff['shift']());}}}(_0x5415,0x7f630));function _0x5415(){var _0x18bc88=['onAddMeSettingChanged','210dGLaVF','onDoubtBuddyReqUnreadNumChange','3568040furhmJ','8956602BuOWAf','onBuddyReqChange','1HJjGZn','799100QElLYU','onBuddyRemarkUpdated','onBuddyDetailInfoChange','onSmartInfos','onAddBuddyNeedVerify','onBuddyReqUnreadCntChange','186476EHsPgK','7889256xQKzZg','22468rUvqyi','onCheckBuddySettingResult','onDelBatchBuddyInfos','21NQnduG','onDoubtBuddyReqChange','onAvatarUrlUpdated','onNickUpdated','30786zuMTYr'];_0x5415=function(){return _0x18bc88;};return _0x5415();}export class BuddyListener{[_0x6cd226(0x19d)](_0x4e3e78){}[_0x6cd226(0x192)](_0x383301){}[_0x6cd226(0x18f)](_0x58f501){}['onBlockChanged'](_0x2f1417){}[_0x6cd226(0x19b)](_0x3c2f6f){}['onBuddyInfoChange'](_0x28f9a2){}['onBuddyListChange'](_0x4ec51c){}[_0x6cd226(0x19a)](_0x5bd7a0){}[_0x6cd226(0x197)](_0x36db35){}[_0x6cd226(0x19e)](_0x20cb8f){}[_0x6cd226(0x18b)](_0x1c6424){}[_0x6cd226(0x18c)](_0x46653b){}[_0x6cd226(0x18e)](_0x288422){}[_0x6cd226(0x194)](_0x5d3745){}[_0x6cd226(0x190)](_0x2577d6){}[_0x6cd226(0x19c)](_0x455304){}['onSpacePermissionInfos'](_0x280486){}}
var _0x107aa6=_0x2d03;(function(_0x22ad02,_0x252c02){var _0x45abab=_0x2d03,_0x26d42b=_0x22ad02();while(!![]){try{var _0xe276d0=parseInt(_0x45abab(0xd9))/0x1+parseInt(_0x45abab(0xdf))/0x2*(-parseInt(_0x45abab(0xcf))/0x3)+parseInt(_0x45abab(0xe0))/0x4*(parseInt(_0x45abab(0xda))/0x5)+-parseInt(_0x45abab(0xca))/0x6+-parseInt(_0x45abab(0xd1))/0x7+parseInt(_0x45abab(0xcb))/0x8*(parseInt(_0x45abab(0xde))/0x9)+parseInt(_0x45abab(0xdb))/0xa*(-parseInt(_0x45abab(0xd8))/0xb);if(_0xe276d0===_0x252c02)break;else _0x26d42b['push'](_0x26d42b['shift']());}catch(_0x300382){_0x26d42b['push'](_0x26d42b['shift']());}}}(_0x53ad,0x94074));function _0x53ad(){var _0x75046a=['onAvatarUrlUpdated','onCheckBuddySettingResult','289289adWegU','1105343ozkxOM','49890KnZwvs','160SdqUAK','onDoubtBuddyReqUnreadNumChange','onBlockChanged','225gvMUlx','340ZUYLFi','404kaNAJq','onAddBuddyNeedVerify','onSmartInfos','3367584OvYUbT','230320TFMGvA','onBuddyInfoChange','onBuddyListChange','onDelBatchBuddyInfos','6297OQsuvJ','onBuddyDetailInfoChange','6213683gugWEu','onDoubtBuddyReqChange','onBuddyReqUnreadCntChange','onAddMeSettingChanged','onBuddyRemarkUpdated'];_0x53ad=function(){return _0x75046a;};return _0x53ad();}function _0x2d03(_0x157afb,_0x42391b){var _0x53ad11=_0x53ad();return _0x2d03=function(_0x2d0353,_0x53d295){_0x2d0353=_0x2d0353-0xc8;var _0x3cb7ca=_0x53ad11[_0x2d0353];return _0x3cb7ca;},_0x2d03(_0x157afb,_0x42391b);}export class BuddyListener{[_0x107aa6(0xc8)](_0x2faa93){}[_0x107aa6(0xd4)](_0x4f1203){}[_0x107aa6(0xd6)](_0x33ec2c){}[_0x107aa6(0xdd)](_0x28eedc){}[_0x107aa6(0xd0)](_0x4bd80a){}[_0x107aa6(0xcc)](_0x208a90){}[_0x107aa6(0xcd)](_0x576300){}[_0x107aa6(0xd5)](_0xc6042d){}['onBuddyReqChange'](_0x2ca07d){}[_0x107aa6(0xd3)](_0x564725){}[_0x107aa6(0xd7)](_0x385167){}[_0x107aa6(0xce)](_0x56204b){}[_0x107aa6(0xd2)](_0x3a5b2c){}[_0x107aa6(0xdc)](_0x34f373){}['onNickUpdated'](_0x58600d){}[_0x107aa6(0xc9)](_0x22e92b){}['onSpacePermissionInfos'](_0x47736e){}}

View File

@@ -1 +1 @@
function _0x5dcc(_0x3d39bf,_0x2ea6c0){var _0x24737e=_0x2473();return _0x5dcc=function(_0x5dcc7c,_0x5c73e2){_0x5dcc7c=_0x5dcc7c-0x9d;var _0x5d7b4c=_0x24737e[_0x5dcc7c];return _0x5d7b4c;},_0x5dcc(_0x3d39bf,_0x2ea6c0);}function _0x2473(){var _0x2533bd=['onFileListChanged','onSessionListChanged','3308837YyNvWt','164680YqagIc','250078qdWzSA','1086758LVvRpv','10SZCZYF','1150296xgreym','631350hFUSYJ','3tZZtcf','543608wWVOev','onFileStatusChanged','8stimAs'];_0x2473=function(){return _0x2533bd;};return _0x2473();}var _0x441c7b=_0x5dcc;(function(_0x543004,_0x329c7c){var _0x158ec9=_0x5dcc,_0x246912=_0x543004();while(!![]){try{var _0x7db7e8=-parseInt(_0x158ec9(0xa8))/0x1+parseInt(_0x158ec9(0xa9))/0x2*(-parseInt(_0x158ec9(0xa0))/0x3)+parseInt(_0x158ec9(0xa1))/0x4+parseInt(_0x158ec9(0x9d))/0x5*(parseInt(_0x158ec9(0x9e))/0x6)+-parseInt(_0x158ec9(0xa6))/0x7*(-parseInt(_0x158ec9(0xa3))/0x8)+parseInt(_0x158ec9(0x9f))/0x9+parseInt(_0x158ec9(0xa7))/0xa;if(_0x7db7e8===_0x329c7c)break;else _0x246912['push'](_0x246912['shift']());}catch(_0x559266){_0x246912['push'](_0x246912['shift']());}}}(_0x2473,0x45a02));export class KernelFileAssistantListener{[_0x441c7b(0xa2)](..._0x94cb52){}[_0x441c7b(0xa5)](..._0x56bcc5){}['onSessionChanged'](..._0x963bac){}[_0x441c7b(0xa4)](..._0x13e40c){}['onFileSearch'](..._0x11d4bd){}}
var _0x2b0a0e=_0x1ba2;(function(_0x16eea2,_0x56b860){var _0x13c856=_0x1ba2,_0x2a129b=_0x16eea2();while(!![]){try{var _0x18ebd3=-parseInt(_0x13c856(0x15b))/0x1+-parseInt(_0x13c856(0x157))/0x2+parseInt(_0x13c856(0x159))/0x3+parseInt(_0x13c856(0x15a))/0x4+-parseInt(_0x13c856(0x151))/0x5+-parseInt(_0x13c856(0x153))/0x6+parseInt(_0x13c856(0x152))/0x7;if(_0x18ebd3===_0x56b860)break;else _0x2a129b['push'](_0x2a129b['shift']());}catch(_0x1c25f4){_0x2a129b['push'](_0x2a129b['shift']());}}}(_0x97e9,0x42abc));function _0x1ba2(_0x354d26,_0x450338){var _0x97e96=_0x97e9();return _0x1ba2=function(_0x1ba28b,_0x2ecb57){_0x1ba28b=_0x1ba28b-0x151;var _0x1a9947=_0x97e96[_0x1ba28b];return _0x1a9947;},_0x1ba2(_0x354d26,_0x450338);}function _0x97e9(){var _0x4e5b34=['2470536tQomJZ','onFileStatusChanged','onFileListChanged','onFileSearch','995036rfvKmN','onSessionChanged','952677SelAEP','627444ZnVpXp','384233NAHnNk','1563420tDjDDc','9833985cmiiDY'];_0x97e9=function(){return _0x4e5b34;};return _0x97e9();}export class KernelFileAssistantListener{[_0x2b0a0e(0x154)](..._0x3c6b87){}['onSessionListChanged'](..._0x56d38f){}[_0x2b0a0e(0x158)](..._0x54b94c){}[_0x2b0a0e(0x155)](..._0x155e18){}[_0x2b0a0e(0x156)](..._0x4ca2e9){}}

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
var _0x2cb340=_0x1364;function _0x1364(_0x2595c0,_0x1f2501){var _0x442286=_0x4422();return _0x1364=function(_0x136447,_0x2e67c5){_0x136447=_0x136447-0x76;var _0x236622=_0x442286[_0x136447];return _0x236622;},_0x1364(_0x2595c0,_0x1f2501);}function _0x4422(){var _0x1ad7df=['onQRCodeLoginPollingStarted','844zRSeoI','6963190KqwatY','11rWjuUq','onLoginDisConnected','1261585LZxGXd','onLogoutSucceed','16407YrtyqD','onUserLoggedIn','onQRCodeSessionQuickLoginFailed','onLoginConnected','onQRCodeSessionFailed','9678AsWhhx','2dGxpzo','onQRCodeSessionUserScaned','onLoginState','onQRCodeLoginSucceed','OnConfirmUnusualDeviceFailed','2171565OrELZL','onQQLoginNumLimited','10228932vVYZoU','1532405ucjSjK','32OGVdJB','5215dtfMcx'];_0x4422=function(){return _0x1ad7df;};return _0x4422();}(function(_0x5dbf77,_0x980759){var _0x24f111=_0x1364,_0x54be58=_0x5dbf77();while(!![]){try{var _0x26e740=parseInt(_0x24f111(0x79))/0x1*(parseInt(_0x24f111(0x81))/0x2)+-parseInt(_0x24f111(0x7b))/0x3*(parseInt(_0x24f111(0x8d))/0x4)+parseInt(_0x24f111(0x8b))/0x5*(parseInt(_0x24f111(0x80))/0x6)+-parseInt(_0x24f111(0x89))/0x7*(parseInt(_0x24f111(0x8a))/0x8)+parseInt(_0x24f111(0x86))/0x9+parseInt(_0x24f111(0x76))/0xa+-parseInt(_0x24f111(0x77))/0xb*(parseInt(_0x24f111(0x88))/0xc);if(_0x26e740===_0x980759)break;else _0x54be58['push'](_0x54be58['shift']());}catch(_0x54937b){_0x54be58['push'](_0x54be58['shift']());}}}(_0x4422,0xf405e));export class LoginListener{[_0x2cb340(0x7e)](..._0x36ae13){}[_0x2cb340(0x78)](..._0x4583b9){}['onLoginConnecting'](..._0xeebf3){}['onQRCodeGetPicture'](_0x45dcc4){}[_0x2cb340(0x8c)](..._0x223962){}[_0x2cb340(0x82)](..._0x4079e6){}[_0x2cb340(0x84)](_0x3d7e7f){}[_0x2cb340(0x7f)](..._0x33536a){}['onLoginFailed'](..._0x880bf){}[_0x2cb340(0x7a)](..._0x9b7587){}['onLogoutFailed'](..._0x12f720){}[_0x2cb340(0x7c)](..._0x48cb52){}[_0x2cb340(0x7d)](..._0x13bac5){}['onPasswordLoginFailed'](..._0x326f10){}[_0x2cb340(0x85)](..._0xcd5daf){}[_0x2cb340(0x87)](..._0x160f73){}[_0x2cb340(0x83)](..._0x4607b0){}}
var _0x2978c1=_0x5793;function _0x5793(_0x4b2c3f,_0x599e27){var _0x35733f=_0x3573();return _0x5793=function(_0x579356,_0x415045){_0x579356=_0x579356-0x15a;var _0x23b902=_0x35733f[_0x579356];return _0x23b902;},_0x5793(_0x4b2c3f,_0x599e27);}(function(_0x597623,_0x1f5e19){var _0x38f7cf=_0x5793,_0x2deb1a=_0x597623();while(!![]){try{var _0x1ae1dd=parseInt(_0x38f7cf(0x16e))/0x1*(parseInt(_0x38f7cf(0x170))/0x2)+-parseInt(_0x38f7cf(0x15c))/0x3*(parseInt(_0x38f7cf(0x15b))/0x4)+-parseInt(_0x38f7cf(0x166))/0x5*(parseInt(_0x38f7cf(0x15d))/0x6)+-parseInt(_0x38f7cf(0x163))/0x7*(-parseInt(_0x38f7cf(0x16d))/0x8)+-parseInt(_0x38f7cf(0x160))/0x9*(parseInt(_0x38f7cf(0x15f))/0xa)+parseInt(_0x38f7cf(0x16b))/0xb+parseInt(_0x38f7cf(0x171))/0xc;if(_0x1ae1dd===_0x1f5e19)break;else _0x2deb1a['push'](_0x2deb1a['shift']());}catch(_0x4719e5){_0x2deb1a['push'](_0x2deb1a['shift']());}}}(_0x3573,0xc74d5));export class LoginListener{[_0x2978c1(0x162)](..._0x50ef81){}[_0x2978c1(0x172)](..._0x54eb07){}['onLoginConnecting'](..._0x268338){}[_0x2978c1(0x16f)](_0x27a01b){}[_0x2978c1(0x169)](..._0x7c7cee){}[_0x2978c1(0x164)](..._0x2c1559){}[_0x2978c1(0x16c)](_0x44f486){}[_0x2978c1(0x15e)](..._0x463cc2){}[_0x2978c1(0x16a)](..._0x3e0632){}['onLogoutSucceed'](..._0x1202b2){}[_0x2978c1(0x15a)](..._0x14b02c){}[_0x2978c1(0x168)](..._0x753133){}['onQRCodeSessionQuickLoginFailed'](..._0x302243){}[_0x2978c1(0x165)](..._0x5a275d){}['OnConfirmUnusualDeviceFailed'](..._0x57f847){}[_0x2978c1(0x161)](..._0x4c6c5b){}[_0x2978c1(0x167)](..._0x5c99d4){}}function _0x3573(){var _0x541bab=['641756vWpPuq','27QRpfxh','4554294AJdrXy','onQRCodeSessionFailed','1683040QeQDYP','18uxMnUT','onQQLoginNumLimited','onLoginConnected','7Bfxlpi','onQRCodeSessionUserScaned','onPasswordLoginFailed','5iOnJLf','onLoginState','onUserLoggedIn','onQRCodeLoginPollingStarted','onLoginFailed','8695973xmynjD','onQRCodeLoginSucceed','10443632LgwlFv','753087wbUXvN','onQRCodeGetPicture','2jFpefG','6082380lxfpfy','onLoginDisConnected','onLogoutFailed'];_0x3573=function(){return _0x541bab;};return _0x3573();}

View File

@@ -1 +1 @@
var _0x5c37e4=_0x144a;function _0x144a(_0x8cdf42,_0x2dc986){var _0x4ffb66=_0x4ffb();return _0x144a=function(_0x144a29,_0x14174a){_0x144a29=_0x144a29-0x138;var _0x22249b=_0x4ffb66[_0x144a29];return _0x22249b;},_0x144a(_0x8cdf42,_0x2dc986);}(function(_0x2e78d7,_0x2c7454){var _0x360032=_0x144a,_0x57249e=_0x2e78d7();while(!![]){try{var _0x13d559=parseInt(_0x360032(0x145))/0x1+-parseInt(_0x360032(0x159))/0x2*(-parseInt(_0x360032(0x15b))/0x3)+parseInt(_0x360032(0x161))/0x4+-parseInt(_0x360032(0x140))/0x5+parseInt(_0x360032(0x16a))/0x6*(-parseInt(_0x360032(0x164))/0x7)+parseInt(_0x360032(0x153))/0x8+-parseInt(_0x360032(0x15a))/0x9;if(_0x13d559===_0x2c7454)break;else _0x57249e['push'](_0x57249e['shift']());}catch(_0x124486){_0x57249e['push'](_0x57249e['shift']());}}}(_0x4ffb,0xb08c3));export class MsgListener{[_0x5c37e4(0x139)](_0x4ff5f0){}[_0x5c37e4(0x141)](_0x497000){}[_0x5c37e4(0x156)](_0x373cbd){}[_0x5c37e4(0x14f)](_0x27a0ad,_0x3574c2,_0x41a21f){}[_0x5c37e4(0x138)](_0x4c51ea){}[_0x5c37e4(0x14a)](_0x560131){}[_0x5c37e4(0x13c)](_0x267df1,_0x218bc5,_0x37e31f){}[_0x5c37e4(0x165)](_0x5739c1){}['onEmojiResourceUpdate'](_0x488663){}[_0x5c37e4(0x152)](_0x497296){}[_0x5c37e4(0x14d)](_0x38128d){}[_0x5c37e4(0x171)](_0x11852f){}['onFirstViewGroupGuildMapping'](_0x1b84af){}[_0x5c37e4(0x13e)](_0x4f2fdc,_0x3ba8d1,_0x2355df,_0x16650a,_0x2b1322){}['onGroupFileInfoAdd'](_0x241d5e){}['onGroupFileInfoUpdate'](_0x25039d){}[_0x5c37e4(0x15e)](_0xa6f342){}[_0x5c37e4(0x150)](_0x5d22d2){}['onGroupTransferInfoUpdate'](_0x2838fd){}['onGuildInteractiveUpdate'](_0x317ec0){}[_0x5c37e4(0x149)](_0x495921){}[_0x5c37e4(0x16e)](_0x2c75ad){}['onHitCsRelatedEmojiResult'](_0x2e2c03){}['onHitEmojiKeywordResult'](_0x2ba429){}[_0x5c37e4(0x14c)](_0x5cf60b){}[_0x5c37e4(0x158)](_0x44cbc0){}['onInputStatusPush'](_0x13d4bc){}[_0x5c37e4(0x168)](_0x42c40a){}[_0x5c37e4(0x16d)](_0x807a8c){}[_0x5c37e4(0x16c)](_0x31b01d){}[_0x5c37e4(0x162)](_0xd5e699){}['onMsgBoxChanged'](_0x1c9abe){}['onMsgDelete'](_0x57124b,_0x19c99e){}[_0x5c37e4(0x16b)](_0xcd0e60){}[_0x5c37e4(0x157)](_0x552193){}[_0x5c37e4(0x13a)](_0x52de90){}[_0x5c37e4(0x163)](_0x958cb0){}['onMsgRecall'](_0x59b1ea,_0x423b92,_0x3bad42){}[_0x5c37e4(0x15c)](_0x2b501d){}['onMsgSettingUpdate'](_0x16f8a7){}[_0x5c37e4(0x14b)](){}[_0x5c37e4(0x142)](){}[_0x5c37e4(0x166)](){}[_0x5c37e4(0x160)](_0x5cb0e0){}[_0x5c37e4(0x169)](_0x49b85d){}[_0x5c37e4(0x151)](_0x7687c2){}[_0x5c37e4(0x167)](_0x53a994,_0x5b52f2,_0x2c92eb,_0x137fd9,_0x1c6d35,_0x4c2ed9){}[_0x5c37e4(0x13b)](_0xf3615c){}[_0x5c37e4(0x148)](_0xea6e56){}[_0x5c37e4(0x155)](_0x4336c2){}[_0x5c37e4(0x154)](_0x1ec8d3){}[_0x5c37e4(0x14e)](_0x1d3719){}[_0x5c37e4(0x144)](_0x5a888a){}['onRichMediaUploadComplete'](_0x2dc0ac){}[_0x5c37e4(0x15d)](_0x490c01){}['onSendMsgError'](_0x267861,_0x28a1d7,_0x9cc24a,_0x23c2b3){}[_0x5c37e4(0x15f)](_0x2fa982,_0x3b9f88,_0x2112d3,_0x5617eb){}[_0x5c37e4(0x147)](_0x50081f){}['onUnreadCntAfterFirstView'](_0x199bfa){}[_0x5c37e4(0x170)](_0x5971a7){}[_0x5c37e4(0x16f)](_0x123ebb){}[_0x5c37e4(0x146)](_0xa19622){}[_0x5c37e4(0x13f)](_0x1c69d7){}['onlineStatusBigIconDownloadPush'](_0x2c30c3,_0x45641a,_0x5611cf){}['onlineStatusSmallIconDownloadPush'](_0x22639b,_0x115505,_0x450d8c){}['onUserSecQualityChanged'](..._0x43e486){}[_0x5c37e4(0x143)](..._0x65493e){}[_0x5c37e4(0x13d)](..._0x140789){}['onBroadcastHelperProgerssUpdate'](..._0x36dfd8){}}function _0x4ffb(){var _0xe33ebd=['2MkNuFz','15106752CirUSZ','2313975cgQSqV','onMsgSecurityNotify','onSearchGroupFileInfoUpdate','onGroupGuildUpdate','onSysMsgNotification','onReadFeedEventUpdate','5318980HjWaez','onMsgAbstractUpdate','onMsgQRCodeStatusChanged','98lpyeGs','onEmojiDownloadComplete','onNtMsgSyncStart','onRecvMsgSvrRspTransInfo','onKickedOffLine','onRecvGroupGuildFlag','574386ulKwTz','onMsgEventListUpdate','onLogLevelChanged','onLineDev','onGuildNotificationAbstractUpdate','onUserChannelTabStatusChanged','onUnreadCntUpdate','onFirstViewDirectMsgUpdate','onContactUnreadCntUpdate','onAddSendMsg','onMsgInfoListUpdate','onRecvOnlineFileMsg','onDraftUpdate','onRedTouchChanged','onGrabPasswordRedBag','onUserTabStatusChanged','2515270MOJwuq','onBroadcastHelperDownloadComplete','onNtMsgSyncEnd','onMsgWithRichLinkInfoUpdate','onRichMediaProgerssUpdate','901039ILpfhI','onUserOnlineStatusChanged','onTempChatInfoUpdate','onRecvS2CMsg','onGuildMsgAbFlagChanged','onCustomWithdrawConfigUpdate','onNtFirstViewMsgSyncEnd','onHitRelatedEmojiResult','onFileMsgCome','onRichMediaDownloadComplete','onChannelFreqLimitInfoUpdate','onGroupTransferInfoAdd','onRecvMsg','onFeedEventUpdate','9942768xdaiQT','onRecvUDCFlag','onRecvSysMsg','onBroadcastHelperProgressUpdate','onMsgInfoListAdd','onImportOldDbProgressUpdate'];_0x4ffb=function(){return _0xe33ebd;};return _0x4ffb();}
function _0x4f05(){var _0x3fe880=['onGroupTransferInfoAdd','onMsgDelete','onKickedOffLine','onNtMsgSyncEnd','104gLIYQn','onFirstViewDirectMsgUpdate','onGroupFileInfoAdd','onUserOnlineStatusChanged','onFirstViewGroupGuildMapping','onSearchGroupFileInfoUpdate','onMsgSecurityNotify','onRecvUDCFlag','189207gkBFBE','onImportOldDbProgressUpdate','onHitCsRelatedEmojiResult','4052426tgUntr','onAddSendMsg','onRecvMsgSvrRspTransInfo','onRedTouchChanged','onBroadcastHelperProgerssUpdate','onGuildNotificationAbstractUpdate','onBroadcastHelperDownloadComplete','onFeedEventUpdate','onFileMsgCome','onMsgWithRichLinkInfoUpdate','onNtMsgSyncStart','onInputStatusPush','onMsgAbstractUpdate','onLineDev','1323292ZuSUOu','onUserChannelTabStatusChanged','onDraftUpdate','onMsgEventListUpdate','732310zpJVoP','onHitRelatedEmojiResult','onBroadcastHelperProgressUpdate','onGroupTransferInfoUpdate','onHitEmojiKeywordResult','onCustomWithdrawConfigUpdate','onUserSecQualityChanged','onTempChatInfoUpdate','6ndaLvi','onSysMsgNotification','onRichMediaUploadComplete','onUnreadCntAfterFirstView','onMsgInfoListAdd','onGroupFileInfoUpdate','onGroupGuildUpdate','1677960RKAJvR','onMsgRecall','onGuildInteractiveUpdate','onlineStatusSmallIconDownloadPush','onMsgSettingUpdate','onRecvOnlineFileMsg','200105hTobey','onRecvSysMsg','10329OxNJwB','onNtFirstViewMsgSyncEnd','onEmojiResourceUpdate','onUserTabStatusChanged'];_0x4f05=function(){return _0x3fe880;};return _0x4f05();}function _0x3e52(_0x59ac87,_0x1dc050){var _0x4f05a6=_0x4f05();return _0x3e52=function(_0x3e52c5,_0x3f0ebf){_0x3e52c5=_0x3e52c5-0x1b9;var _0x51e664=_0x4f05a6[_0x3e52c5];return _0x51e664;},_0x3e52(_0x59ac87,_0x1dc050);}var _0x556e17=_0x3e52;(function(_0x444ba1,_0x532137){var _0xa65f9d=_0x3e52,_0x4ca53e=_0x444ba1();while(!![]){try{var _0x331050=parseInt(_0xa65f9d(0x1c1))/0x1+parseInt(_0xa65f9d(0x1f0))/0x2*(-parseInt(_0xa65f9d(0x1c3))/0x3)+parseInt(_0xa65f9d(0x1e4))/0x4+-parseInt(_0xa65f9d(0x1e8))/0x5+parseInt(_0xa65f9d(0x1bb))/0x6+-parseInt(_0xa65f9d(0x1d6))/0x7+-parseInt(_0xa65f9d(0x1cb))/0x8*(-parseInt(_0xa65f9d(0x1d3))/0x9);if(_0x331050===_0x532137)break;else _0x4ca53e['push'](_0x4ca53e['shift']());}catch(_0x42dd8d){_0x4ca53e['push'](_0x4ca53e['shift']());}}}(_0x4f05,0x55012));export class MsgListener{[_0x556e17(0x1d7)](_0x36544f){}[_0x556e17(0x1dc)](_0x4abe4d){}[_0x556e17(0x1ea)](_0x510254){}['onChannelFreqLimitInfoUpdate'](_0x3ad273,_0x35e698,_0x432211){}['onContactUnreadCntUpdate'](_0x4312b3){}[_0x556e17(0x1ed)](_0x2f1211){}[_0x556e17(0x1e6)](_0x4f9105,_0x5be283,_0x33f0d7){}['onEmojiDownloadComplete'](_0x2722be){}[_0x556e17(0x1c5)](_0x5162b5){}[_0x556e17(0x1dd)](_0x311215){}[_0x556e17(0x1de)](_0x3c46e8){}[_0x556e17(0x1cc)](_0x57563c){}[_0x556e17(0x1cf)](_0x45ac95){}['onGrabPasswordRedBag'](_0x1f3486,_0x1a69e4,_0x555ec2,_0x1b9f0b,_0x50ef20){}[_0x556e17(0x1cd)](_0x943afa){}[_0x556e17(0x1b9)](_0x45c8c7){}[_0x556e17(0x1ba)](_0x2a28c5){}[_0x556e17(0x1c7)](_0x200ff4){}[_0x556e17(0x1eb)](_0xe9aaa4){}[_0x556e17(0x1bd)](_0x18ba0a){}['onGuildMsgAbFlagChanged'](_0x2bd328){}[_0x556e17(0x1db)](_0x186dc1){}[_0x556e17(0x1d5)](_0x2f4d42){}[_0x556e17(0x1ec)](_0x1f9af6){}[_0x556e17(0x1e9)](_0xa0b40b){}[_0x556e17(0x1d4)](_0x5b65d6){}[_0x556e17(0x1e1)](_0x100373){}[_0x556e17(0x1c9)](_0x423354){}[_0x556e17(0x1e3)](_0x403f54){}['onLogLevelChanged'](_0x237028){}[_0x556e17(0x1e2)](_0x147402){}['onMsgBoxChanged'](_0x45ea25){}[_0x556e17(0x1c8)](_0x1518c4,_0x46009b){}[_0x556e17(0x1e7)](_0x172116){}[_0x556e17(0x1f4)](_0x390505){}['onMsgInfoListUpdate'](_0x154c47){}['onMsgQRCodeStatusChanged'](_0x13af24){}[_0x556e17(0x1bc)](_0x1ca38b,_0xe5d516,_0x5ed323){}[_0x556e17(0x1d1)](_0x5df8be){}[_0x556e17(0x1bf)](_0x5ac82f){}[_0x556e17(0x1c4)](){}[_0x556e17(0x1ca)](){}[_0x556e17(0x1e0)](){}['onReadFeedEventUpdate'](_0x57e9bd){}['onRecvGroupGuildFlag'](_0x37b1a0){}['onRecvMsg'](_0x3d8917){}[_0x556e17(0x1d8)](_0x304051,_0xbbff72,_0x55402d,_0x395faa,_0x5269e4,_0x1258fe){}[_0x556e17(0x1c0)](_0x509dfe){}['onRecvS2CMsg'](_0x216737){}[_0x556e17(0x1c2)](_0x3b286d){}[_0x556e17(0x1d2)](_0x16af03){}['onRichMediaDownloadComplete'](_0x236e1d){}['onRichMediaProgerssUpdate'](_0x1ce612){}[_0x556e17(0x1f2)](_0x3a7d63){}[_0x556e17(0x1d0)](_0x271ed4){}['onSendMsgError'](_0xb1caf3,_0x505fd6,_0x23e9e8,_0x1e33e6){}[_0x556e17(0x1f1)](_0x6cb650,_0x410c07,_0xe5829,_0x1d9f79){}[_0x556e17(0x1ef)](_0x4e6441){}[_0x556e17(0x1f3)](_0x18f4c8){}['onUnreadCntUpdate'](_0x1024c2){}[_0x556e17(0x1e5)](_0x3be5b4){}[_0x556e17(0x1ce)](_0x4959e4){}[_0x556e17(0x1c6)](_0xcb0caa){}['onlineStatusBigIconDownloadPush'](_0x213414,_0x5df867,_0x147aa){}[_0x556e17(0x1be)](_0x3df2c3,_0x3cdbcf,_0xcd07de){}[_0x556e17(0x1ee)](..._0x221465){}[_0x556e17(0x1df)](..._0x545f66){}[_0x556e17(0x1d9)](..._0x47dc1e){}[_0x556e17(0x1da)](..._0x2830bb){}}

View File

@@ -1 +1 @@
function _0x1c02(_0x57b8e7,_0x5ae29c){var _0x258e06=_0x258e();return _0x1c02=function(_0x1c02bf,_0x10a660){_0x1c02bf=_0x1c02bf-0x1b5;var _0x12be10=_0x258e06[_0x1c02bf];return _0x12be10;},_0x1c02(_0x57b8e7,_0x5ae29c);}function _0x258e(){var _0x32eaf3=['12elQKjl','10616duontY','onSelfStatusChanged','10899270jPASsY','onStatusUpdate','91JLsdwL','onProfileSimpleChanged','2067050MgHzrh','3942675XsAcsy','1256884tXgcsy','onStrangerRemarkChanged','244eyoUdV','431672lqEFSp','59592380tsKHDD'];_0x258e=function(){return _0x32eaf3;};return _0x258e();}var _0x83d77c=_0x1c02;(function(_0x3e6634,_0x5f10bf){var _0x46b74d=_0x1c02,_0xb99dae=_0x3e6634();while(!![]){try{var _0x2cf13d=parseInt(_0x46b74d(0x1b9))/0x1*(-parseInt(_0x46b74d(0x1b5))/0x2)+-parseInt(_0x46b74d(0x1c0))/0x3+parseInt(_0x46b74d(0x1c1))/0x4+-parseInt(_0x46b74d(0x1bf))/0x5*(parseInt(_0x46b74d(0x1b8))/0x6)+-parseInt(_0x46b74d(0x1bd))/0x7*(parseInt(_0x46b74d(0x1b6))/0x8)+-parseInt(_0x46b74d(0x1bb))/0x9+parseInt(_0x46b74d(0x1b7))/0xa;if(_0x2cf13d===_0x5f10bf)break;else _0xb99dae['push'](_0xb99dae['shift']());}catch(_0x469dfd){_0xb99dae['push'](_0xb99dae['shift']());}}}(_0x258e,0xe1c5d));export class ProfileListener{[_0x83d77c(0x1be)](..._0x1a79f0){}['onProfileDetailInfoChanged'](_0x42a699){}[_0x83d77c(0x1bc)](..._0x5ed178){}[_0x83d77c(0x1ba)](..._0x282e09){}[_0x83d77c(0x1c2)](..._0x52927d){}}
var _0x20c24e=_0x2335;function _0x2335(_0x477a64,_0x55ffbd){var _0x5e020e=_0x5e02();return _0x2335=function(_0x233509,_0x17e994){_0x233509=_0x233509-0x19f;var _0x35b458=_0x5e020e[_0x233509];return _0x35b458;},_0x2335(_0x477a64,_0x55ffbd);}function _0x5e02(){var _0x238475=['onStatusUpdate','onProfileDetailInfoChanged','58414eDzkZj','5162298aKOpxk','39LqmIxf','onStrangerRemarkChanged','311172MrjgUO','5415728dgckHT','7yQXNeJ','onProfileSimpleChanged','onSelfStatusChanged','3887555ZVcGTk','1058933lVcAaK','28848627zPseLP'];_0x5e02=function(){return _0x238475;};return _0x5e02();}(function(_0x1c949e,_0x251548){var _0xd1d8bf=_0x2335,_0x5f4e51=_0x1c949e();while(!![]){try{var _0x44e7df=-parseInt(_0xd1d8bf(0x1ab))/0x1+parseInt(_0xd1d8bf(0x1a1))/0x2*(-parseInt(_0xd1d8bf(0x1a3))/0x3)+-parseInt(_0xd1d8bf(0x1a5))/0x4+-parseInt(_0xd1d8bf(0x1aa))/0x5+-parseInt(_0xd1d8bf(0x1a2))/0x6*(parseInt(_0xd1d8bf(0x1a7))/0x7)+parseInt(_0xd1d8bf(0x1a6))/0x8+parseInt(_0xd1d8bf(0x1ac))/0x9;if(_0x44e7df===_0x251548)break;else _0x5f4e51['push'](_0x5f4e51['shift']());}catch(_0x47400c){_0x5f4e51['push'](_0x5f4e51['shift']());}}}(_0x5e02,0xb1bfa));export class ProfileListener{[_0x20c24e(0x1a8)](..._0x385e81){}[_0x20c24e(0x1a0)](_0x321a6d){}[_0x20c24e(0x19f)](..._0x269942){}[_0x20c24e(0x1a9)](..._0x3d2feb){}[_0x20c24e(0x1a4)](..._0x420472){}}

View File

@@ -1 +1 @@
function _0x384e(_0x5545a0,_0x12299c){var _0x53299d=_0x5329();return _0x384e=function(_0x384eaf,_0x5a47da){_0x384eaf=_0x384eaf-0x89;var _0x389e9c=_0x53299d[_0x384eaf];return _0x389e9c;},_0x384e(_0x5545a0,_0x12299c);}var _0x24db5f=_0x384e;(function(_0x3e1adf,_0x5c8340){var _0x48e9f0=_0x384e,_0x2a6d38=_0x3e1adf();while(!![]){try{var _0x5117fd=parseInt(_0x48e9f0(0x91))/0x1*(parseInt(_0x48e9f0(0x89))/0x2)+-parseInt(_0x48e9f0(0x92))/0x3*(-parseInt(_0x48e9f0(0x8e))/0x4)+parseInt(_0x48e9f0(0x90))/0x5*(parseInt(_0x48e9f0(0x8f))/0x6)+-parseInt(_0x48e9f0(0x8d))/0x7+-parseInt(_0x48e9f0(0x94))/0x8*(-parseInt(_0x48e9f0(0x8a))/0x9)+-parseInt(_0x48e9f0(0x8c))/0xa*(parseInt(_0x48e9f0(0x96))/0xb)+-parseInt(_0x48e9f0(0x8b))/0xc;if(_0x5117fd===_0x5c8340)break;else _0x2a6d38['push'](_0x2a6d38['shift']());}catch(_0x58f1ae){_0x2a6d38['push'](_0x2a6d38['shift']());}}}(_0x5329,0x5fd2a));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x3836cc){}[_0x24db5f(0x93)](..._0x4e1e1b){}[_0x24db5f(0x95)](..._0x1e4487){}}function _0x5329(){var _0x5e66dc=['onRobotProfileChanged','181533bjslyN','39486VoYOna','5550921vcmPqx','7787580kRABYu','10FbsHBO','3906392xuMHAG','24nokoGc','3830718CeTwsc','5LIIWrW','12GHtSmX','61938yHvgHX','onRobotListChanged','8veFtTt'];_0x5329=function(){return _0x5e66dc;};return _0x5329();}
var _0x151409=_0x31e4;function _0x31e4(_0xb6447b,_0x544c2e){var _0x423b1d=_0x423b();return _0x31e4=function(_0x31e40d,_0x53eec3){_0x31e40d=_0x31e40d-0x17f;var _0x227fec=_0x423b1d[_0x31e40d];return _0x227fec;},_0x31e4(_0xb6447b,_0x544c2e);}(function(_0x32a132,_0x1c0b3d){var _0xb8739d=_0x31e4,_0x48bb64=_0x32a132();while(!![]){try{var _0xf1fdcd=-parseInt(_0xb8739d(0x18e))/0x1*(-parseInt(_0xb8739d(0x18b))/0x2)+-parseInt(_0xb8739d(0x17f))/0x3*(-parseInt(_0xb8739d(0x18a))/0x4)+-parseInt(_0xb8739d(0x18d))/0x5*(parseInt(_0xb8739d(0x186))/0x6)+parseInt(_0xb8739d(0x18c))/0x7*(-parseInt(_0xb8739d(0x180))/0x8)+-parseInt(_0xb8739d(0x188))/0x9+-parseInt(_0xb8739d(0x183))/0xa*(-parseInt(_0xb8739d(0x189))/0xb)+parseInt(_0xb8739d(0x187))/0xc*(parseInt(_0xb8739d(0x181))/0xd);if(_0xf1fdcd===_0x1c0b3d)break;else _0x48bb64['push'](_0x48bb64['shift']());}catch(_0xedef11){_0x48bb64['push'](_0x48bb64['shift']());}}}(_0x423b,0xdf625));export class KernelRobotListener{[_0x151409(0x182)](..._0x318e67){}[_0x151409(0x185)](..._0x5505df){}[_0x151409(0x184)](..._0x18fa0b){}}function _0x423b(){var _0x583605=['15150AWcXOq','2DOhlnK','818469oRvDRQ','8OOIkmS','13HJeNnO','onRobotFriendListChanged','310ZzwMOj','onRobotProfileChanged','onRobotListChanged','648cYJlYd','22218480fizkDQ','16144164aWiYOA','174350ktaBuH','12eOJeza','1074136IXlwvv','8396346URwjwv'];_0x423b=function(){return _0x583605;};return _0x423b();}

View File

@@ -1 +1 @@
function _0x4281(_0x5734cc,_0xe630a9){var _0x1dab68=_0x1dab();return _0x4281=function(_0x4281c7,_0xd3883c){_0x4281c7=_0x4281c7-0xaf;var _0x5835bb=_0x1dab68[_0x4281c7];return _0x5835bb;},_0x4281(_0x5734cc,_0xe630a9);}function _0x1dab(){var _0x486ab4=['1684VakNhd','973uMEqlA','onNTSessionCreate','773137knWaKA','6mVOtAL','3220730nOyaVJ','onSessionInitComplete','2344HpiSOQ','onOpentelemetryInit','1092BDSZir','14431030uuGlfV','3962516tWxWmJ','onUserOnlineResult','118944YCjwop','onGProSessionCreate'];_0x1dab=function(){return _0x486ab4;};return _0x1dab();}var _0x28460f=_0x4281;(function(_0x4cb942,_0x527c2c){var _0x1b61fc=_0x4281,_0x2b4196=_0x4cb942();while(!![]){try{var _0xf12d47=-parseInt(_0x1b61fc(0xb7))/0x1+parseInt(_0x1b61fc(0xb4))/0x2*(parseInt(_0x1b61fc(0xbd))/0x3)+-parseInt(_0x1b61fc(0xb0))/0x4+-parseInt(_0x1b61fc(0xb9))/0x5*(-parseInt(_0x1b61fc(0xb8))/0x6)+-parseInt(_0x1b61fc(0xb5))/0x7*(-parseInt(_0x1b61fc(0xbb))/0x8)+parseInt(_0x1b61fc(0xb2))/0x9+parseInt(_0x1b61fc(0xaf))/0xa;if(_0xf12d47===_0x527c2c)break;else _0x2b4196['push'](_0x2b4196['shift']());}catch(_0x5919de){_0x2b4196['push'](_0x2b4196['shift']());}}}(_0x1dab,0xa6f8a));export class SessionListener{[_0x28460f(0xb6)](_0x382712){}[_0x28460f(0xb3)](_0x4871ac){}[_0x28460f(0xba)](_0x39a5a8){}[_0x28460f(0xbc)](_0x42a4a8){}[_0x28460f(0xb1)](_0x4f0295){}['onGetSelfTinyId'](_0x53abcb){}}
function _0x51b3(_0x589c79,_0xd59039){var _0x3ba815=_0x3ba8();return _0x51b3=function(_0x51b36e,_0x23716b){_0x51b36e=_0x51b36e-0x64;var _0xa3b97f=_0x3ba815[_0x51b36e];return _0xa3b97f;},_0x51b3(_0x589c79,_0xd59039);}function _0x3ba8(){var _0x520cd8=['41930wbyTkt','onOpentelemetryInit','onNTSessionCreate','670668NxMlWm','onGProSessionCreate','297oSeCSw','1614rxZGpO','4aWsaSM','750820vbBNXR','onUserOnlineResult','183476IVVOYO','33OHuWRC','75612wdculc','onSessionInitComplete','2284136AaeGwg','3pmXCLH','6455VPGlkR'];_0x3ba8=function(){return _0x520cd8;};return _0x3ba8();}var _0x260f88=_0x51b3;(function(_0x3ade50,_0x4bb29d){var _0x5a7272=_0x51b3,_0x3e072a=_0x3ade50();while(!![]){try{var _0x17b9dc=parseInt(_0x5a7272(0x69))/0x1*(parseInt(_0x5a7272(0x64))/0x2)+parseInt(_0x5a7272(0x6c))/0x3*(-parseInt(_0x5a7272(0x67))/0x4)+-parseInt(_0x5a7272(0x6d))/0x5*(parseInt(_0x5a7272(0x74))/0x6)+parseInt(_0x5a7272(0x65))/0x7+parseInt(_0x5a7272(0x6b))/0x8+parseInt(_0x5a7272(0x73))/0x9*(-parseInt(_0x5a7272(0x6e))/0xa)+-parseInt(_0x5a7272(0x68))/0xb*(-parseInt(_0x5a7272(0x71))/0xc);if(_0x17b9dc===_0x4bb29d)break;else _0x3e072a['push'](_0x3e072a['shift']());}catch(_0x10518e){_0x3e072a['push'](_0x3e072a['shift']());}}}(_0x3ba8,0x2bfb7));export class SessionListener{[_0x260f88(0x70)](_0xe34710){}[_0x260f88(0x72)](_0x53864b){}[_0x260f88(0x6a)](_0x32e95c){}[_0x260f88(0x6f)](_0x100c43){}[_0x260f88(0x66)](_0x26849e){}['onGetSelfTinyId'](_0x3ad8a2){}}

View File

@@ -1 +1 @@
function _0x49e4(_0x3398dd,_0x112ff9){var _0x68f491=_0x68f4();return _0x49e4=function(_0x49e4eb,_0xfcda6d){_0x49e4eb=_0x49e4eb-0x1cd;var _0x5cc45c=_0x68f491[_0x49e4eb];return _0x5cc45c;},_0x49e4(_0x3398dd,_0x112ff9);}var _0x4e5250=_0x49e4;function _0x68f4(){var _0x38ba99=['5840135bggMoW','onScanCacheProgressChanged','816380FEyjXa','onFinishScan','99GqUdPQ','12uiOaAq','5225885dwdPXn','10080585fqhdAB','onCleanCacheProgressChanged','6yerBkw','16XzQqpZ','102521SqwtmK','7023nxolVY','1492rhRllI','27664728rStmLS','16phqCEO'];_0x68f4=function(){return _0x38ba99;};return _0x68f4();}(function(_0x2cea68,_0x5cd821){var _0x5d6cca=_0x49e4,_0x4c77f6=_0x2cea68();while(!![]){try{var _0x53fa87=parseInt(_0x5d6cca(0x1dc))/0x1*(parseInt(_0x5d6cca(0x1d0))/0x2)+parseInt(_0x5d6cca(0x1cd))/0x3*(parseInt(_0x5d6cca(0x1ce))/0x4)+parseInt(_0x5d6cca(0x1d1))/0x5*(-parseInt(_0x5d6cca(0x1da))/0x6)+-parseInt(_0x5d6cca(0x1d7))/0x7*(parseInt(_0x5d6cca(0x1db))/0x8)+-parseInt(_0x5d6cca(0x1d8))/0x9+-parseInt(_0x5d6cca(0x1d3))/0xa*(-parseInt(_0x5d6cca(0x1d5))/0xb)+-parseInt(_0x5d6cca(0x1d6))/0xc*(-parseInt(_0x5d6cca(0x1cf))/0xd);if(_0x53fa87===_0x5cd821)break;else _0x4c77f6['push'](_0x4c77f6['shift']());}catch(_0x2951a9){_0x4c77f6['push'](_0x4c77f6['shift']());}}}(_0x68f4,0xbd32d));export class StorageCleanListener{[_0x4e5250(0x1d9)](_0x1865a9){}[_0x4e5250(0x1d2)](_0x5ad8c1){}['onCleanCacheStorageChanged'](_0xe0bd52){}[_0x4e5250(0x1d4)](_0x46f44a){}['onChatCleanDone'](_0x4802b5){}}
var _0x24da6e=_0x277b;function _0xfce3(){var _0x4e5a22=['97692YFbhVf','onChatCleanDone','30noVgfs','3278781srwoqV','1680973IywEnM','3192438BsZMTQ','375960fbuhXp','44868faXIPT','onFinishScan','onCleanCacheStorageChanged','238QaUpsj','297976erVset','onScanCacheProgressChanged','120wvcWBa','2ERsMLF','1177TtlqMq'];_0xfce3=function(){return _0x4e5a22;};return _0xfce3();}function _0x277b(_0x168c30,_0x2ab542){var _0xfce356=_0xfce3();return _0x277b=function(_0x277bd6,_0x2b4a3e){_0x277bd6=_0x277bd6-0xd7;var _0x3b896f=_0xfce356[_0x277bd6];return _0x3b896f;},_0x277b(_0x168c30,_0x2ab542);}(function(_0x3440c3,_0x11b9b8){var _0x2af4b9=_0x277b,_0x51ad0f=_0x3440c3();while(!![]){try{var _0xc63726=-parseInt(_0x2af4b9(0xde))/0x1*(-parseInt(_0x2af4b9(0xd8))/0x2)+parseInt(_0x2af4b9(0xdf))/0x3+parseInt(_0x2af4b9(0xe1))/0x4*(-parseInt(_0x2af4b9(0xd7))/0x5)+-parseInt(_0x2af4b9(0xe0))/0x6+-parseInt(_0x2af4b9(0xe4))/0x7*(parseInt(_0x2af4b9(0xe5))/0x8)+parseInt(_0x2af4b9(0xdd))/0x9*(-parseInt(_0x2af4b9(0xdc))/0xa)+-parseInt(_0x2af4b9(0xd9))/0xb*(-parseInt(_0x2af4b9(0xda))/0xc);if(_0xc63726===_0x11b9b8)break;else _0x51ad0f['push'](_0x51ad0f['shift']());}catch(_0x38b4b6){_0x51ad0f['push'](_0x51ad0f['shift']());}}}(_0xfce3,0xe1d55));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x288ce7){}[_0x24da6e(0xe6)](_0x317b53){}[_0x24da6e(0xe3)](_0x1377e5){}[_0x24da6e(0xe2)](_0x3c6d3e){}[_0x24da6e(0xdb)](_0x56fd60){}}

View File

@@ -1 +1 @@
(function(_0x5d6a5c,_0x4aa357){var _0x2c769e=_0x553c,_0x5d1a73=_0x5d6a5c();while(!![]){try{var _0x53640d=parseInt(_0x2c769e(0x1e2))/0x1+-parseInt(_0x2c769e(0x1df))/0x2*(-parseInt(_0x2c769e(0x1e6))/0x3)+parseInt(_0x2c769e(0x1e1))/0x4*(-parseInt(_0x2c769e(0x1e7))/0x5)+-parseInt(_0x2c769e(0x1e9))/0x6*(parseInt(_0x2c769e(0x1e5))/0x7)+-parseInt(_0x2c769e(0x1e0))/0x8*(parseInt(_0x2c769e(0x1ea))/0x9)+-parseInt(_0x2c769e(0x1e3))/0xa+parseInt(_0x2c769e(0x1e4))/0xb*(parseInt(_0x2c769e(0x1e8))/0xc);if(_0x53640d===_0x4aa357)break;else _0x5d1a73['push'](_0x5d1a73['shift']());}catch(_0x1f6500){_0x5d1a73['push'](_0x5d1a73['shift']());}}}(_0x43f4,0xe9005));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x43f4(){var _0x5acd1a=['4263258fTVphn','833103rpcZkp','14746xdNwcG','16HXheKq','4MqVUay','492389hfbaEz','10503400CtkwkQ','11CDBfxg','14JYPlDH','606DTFkpy','6765475rzBqac','35787516VdCodY'];_0x43f4=function(){return _0x5acd1a;};return _0x43f4();}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x553c(_0x1aa9b6,_0x45315e){var _0x43f429=_0x43f4();return _0x553c=function(_0x553cfd,_0x138b1f){_0x553cfd=_0x553cfd-0x1df;var _0x11e00a=_0x43f429[_0x553cfd];return _0x11e00a;},_0x553c(_0x1aa9b6,_0x45315e);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
(function(_0x361eb5,_0xfe18f6){var _0x4947b9=_0x219d,_0x116957=_0x361eb5();while(!![]){try{var _0x418f36=-parseInt(_0x4947b9(0xf8))/0x1*(-parseInt(_0x4947b9(0xf6))/0x2)+parseInt(_0x4947b9(0xf7))/0x3*(parseInt(_0x4947b9(0xfb))/0x4)+-parseInt(_0x4947b9(0xf4))/0x5*(parseInt(_0x4947b9(0xfa))/0x6)+-parseInt(_0x4947b9(0xfe))/0x7+parseInt(_0x4947b9(0xf9))/0x8+-parseInt(_0x4947b9(0xfc))/0x9*(-parseInt(_0x4947b9(0xfd))/0xa)+-parseInt(_0x4947b9(0xf5))/0xb;if(_0x418f36===_0xfe18f6)break;else _0x116957['push'](_0x116957['shift']());}catch(_0xa01026){_0x116957['push'](_0x116957['shift']());}}}(_0x4e23,0x63aee));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x219d(_0xfc35,_0x3743f8){var _0x4e23da=_0x4e23();return _0x219d=function(_0x219ded,_0x20463d){_0x219ded=_0x219ded-0xf4;var _0x341b8d=_0x4e23da[_0x219ded];return _0x341b8d;},_0x219d(_0xfc35,_0x3743f8);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';function _0x4e23(){var _0x5f016a=['14534xJdgla','3qKPQcQ','93TcIDHh','2356256vQcJln','6cLMbMX','640924UGRitL','261bJoyJR','218570dduEts','5400857gOonhZ','8130YlOXJC','6412648FDUBtA'];_0x4e23=function(){return _0x5f016a;};return _0x4e23();}export*from'./NodeIKernelFileAssistantListener';

View File

@@ -11,7 +11,7 @@ export interface NodeIKernelBuddyService {
getBuddyRemark(uid: number): string;
setBuddyRemark(uid: number, remark: string): void;
getAvatarUrl(uid: number): string;
isBuddy(uid: number): boolean;
isBuddy(uid: string): boolean;
getCategoryNameWithUid(uid: number): string;
getTargetBuddySetting(uid: number): unknown;
getTargetBuddySettingByType(uid: number, type: number): unknown;

View File

@@ -46,7 +46,7 @@ export interface NodeIKernelGroupService {
createGroupWithMembers(arg: unknown): void;
quitGroup(groupCode: string): void;
destroyGroup(groupCode: string): void;
getSingleScreenNotifies(arg1: boolean, arg2: string, arg3: number): Promise<GeneralCallResult>;
getSingleScreenNotifies(force: boolean, start_seq: string, num: number): Promise<GeneralCallResult>;
clearGroupNotifies(groupCode: string): void;
getGroupNotifiesUnreadCount(unknown: Boolean): Promise<GeneralCallResult>;
clearGroupNotifiesUnreadCount(groupCode: string): void;

View File

@@ -1,5 +1,8 @@
import { GeneralCallResult } from "./common";
export interface NodeIKernelNodeMiscService {
getMiniAppPath(): unknown;
setMiniAppVersion(version: string): unknown;
wantWinScreenOCR(imagepath: string): Promise<GeneralCallResult>;
SendMiniAppMsg(arg1: string, arg2: string, arg3: string): unknown;
startNewMiniApp(appfile: string, params: string): unknown;
}

View File

@@ -0,0 +1,33 @@
import { Peer } from "../entities";
export interface NodeIKernelRecentContactService {
setGuildDisplayStatus(...args: unknown[]): unknown;
setContactListTop(...args: unknown[]): unknown;
updateRecentContactExtBufForUI(...args: unknown[]): unknown;
upsertRecentContactManually(...args: unknown[]): unknown;
enterOrExitMsgList(...args: unknown[]): unknown;
getRecentContactListSnapShot(...args: unknown[]): unknown;
clearMsgUnreadCount(...args: unknown[]): unknown;
getRecentContactListSyncLimit(count: number): unknown;
jumpToSpecifyRecentContact(...args: unknown[]): unknown;
fetchAndSubscribeABatchOfRecentContact(...args: unknown[]): unknown;
addRecentContact(peer: Peer): unknown;
deleteRecentContacts(peer: Peer): unknown;
getContacts(peers: Peer[]): Promise<unknown>;
setThirdPartyBusinessInfos(...args: unknown[]): unknown;
updateGameMsgConfigs(...args: unknown[]): unknown;
removeKernelRecentContactListener(...args: unknown[]): unknown;
addKernelRecentContactListener(...args: unknown[]): unknown;
clearRecentContactsByChatType(...args: unknown[]): unknown;
upInsertModule(...args: unknown[]): unknown;
jumpToSpecifyRecentContactVer2(...args: unknown[]): unknown;
deleteRecentContactsVer2(...args: unknown[]): unknown;
getRecentContactList(): unknown;
getMsgUnreadCount(): unknown;
clearRecentContacts(): unknown;
getServiceAssistantRecentContactInfos(): unknown;
getRecentContactInfos(): unknown;
getUnreadDetailsInfos(): unknown;
cleanAllModule(): unknown;
setAllGameMsgRead(): unknown;
getRecentContactListSync(): unknown;
}

View File

@@ -0,0 +1 @@
export{};

View File

@@ -1 +1 @@
'use strict';(function(_0x57cb8d,_0x5bf139){var _0x4a3ccd=_0x2475,_0x3821c4=_0x57cb8d();while(!![]){try{var _0x5652d1=-parseInt(_0x4a3ccd(0x9b))/0x1+-parseInt(_0x4a3ccd(0x97))/0x2*(-parseInt(_0x4a3ccd(0x98))/0x3)+-parseInt(_0x4a3ccd(0x92))/0x4+-parseInt(_0x4a3ccd(0x9a))/0x5+parseInt(_0x4a3ccd(0x96))/0x6*(parseInt(_0x4a3ccd(0x95))/0x7)+parseInt(_0x4a3ccd(0x94))/0x8*(parseInt(_0x4a3ccd(0x93))/0x9)+parseInt(_0x4a3ccd(0x99))/0xa;if(_0x5652d1===_0x5bf139)break;else _0x3821c4['push'](_0x3821c4['shift']());}catch(_0x525ea5){_0x3821c4['push'](_0x3821c4['shift']());}}}(_0x6557,0x7dd9c));function _0x6557(){var _0xa1b379=['2469112ryjejX','2331SKTGhK','18856WFqFYx','42ASCsDM','824244lsJfoS','26TYHpBe','177381PfKXPk','4092080SMyxLv','3648045CDLecH','750195Nleizp'];_0x6557=function(){return _0xa1b379;};return _0x6557();}function _0x2475(_0x248485,_0x55c1ea){var _0x65572c=_0x6557();return _0x2475=function(_0x2475a1,_0xe00e35){_0x2475a1=_0x2475a1-0x92;var _0x5bfa54=_0x65572c[_0x2475a1];return _0x5bfa54;},_0x2475(_0x248485,_0x55c1ea);}
'use strict';function _0x46e4(_0x89cf9b,_0x290dcf){var _0x475903=_0x4759();return _0x46e4=function(_0x46e4f5,_0x443dca){_0x46e4f5=_0x46e4f5-0x16f;var _0x517a9f=_0x475903[_0x46e4f5];return _0x517a9f;},_0x46e4(_0x89cf9b,_0x290dcf);}(function(_0x43ddb3,_0x5b6278){var _0x2a337d=_0x46e4,_0x11a1b6=_0x43ddb3();while(!![]){try{var _0x477402=parseInt(_0x2a337d(0x173))/0x1*(parseInt(_0x2a337d(0x171))/0x2)+-parseInt(_0x2a337d(0x177))/0x3*(-parseInt(_0x2a337d(0x17a))/0x4)+parseInt(_0x2a337d(0x172))/0x5*(parseInt(_0x2a337d(0x178))/0x6)+-parseInt(_0x2a337d(0x174))/0x7*(-parseInt(_0x2a337d(0x170))/0x8)+-parseInt(_0x2a337d(0x175))/0x9+-parseInt(_0x2a337d(0x179))/0xa*(-parseInt(_0x2a337d(0x176))/0xb)+-parseInt(_0x2a337d(0x16f))/0xc;if(_0x477402===_0x5b6278)break;else _0x11a1b6['push'](_0x11a1b6['shift']());}catch(_0x4c5bff){_0x11a1b6['push'](_0x11a1b6['shift']());}}}(_0x4759,0x724f2));function _0x4759(){var _0x3c3a7b=['2BZYmGZ','1247771EqLIRs','5345874RYTzjH','8076706uWpxKc','54867GnzGui','2875254eSXZDG','10GvSgqS','96XNQaRD','17399544vgluLD','8LLQYuo','681514sMAaIQ','5vaszwZ'];_0x4759=function(){return _0x3c3a7b;};return _0x4759();}

View File

@@ -1 +1 @@
(function(_0x54b4da,_0x22aa9c){var _0x5efa89=_0x19fc,_0xd5abac=_0x54b4da();while(!![]){try{var _0x2b0e05=-parseInt(_0x5efa89(0xd5))/0x1+parseInt(_0x5efa89(0xd9))/0x2*(parseInt(_0x5efa89(0xd2))/0x3)+-parseInt(_0x5efa89(0xd4))/0x4*(parseInt(_0x5efa89(0xd7))/0x5)+parseInt(_0x5efa89(0xd6))/0x6*(-parseInt(_0x5efa89(0xd1))/0x7)+-parseInt(_0x5efa89(0xd0))/0x8*(-parseInt(_0x5efa89(0xd8))/0x9)+-parseInt(_0x5efa89(0xd3))/0xa+parseInt(_0x5efa89(0xda))/0xb;if(_0x2b0e05===_0x22aa9c)break;else _0xd5abac['push'](_0xd5abac['shift']());}catch(_0x5008a2){_0xd5abac['push'](_0xd5abac['shift']());}}}(_0xb9cf,0x6383b));export var GeneralCallResultStatus;(function(_0x44e834){_0x44e834[_0x44e834['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x19fc(_0x110eb3,_0x2c6a6b){var _0xb9cfd5=_0xb9cf();return _0x19fc=function(_0x19fc04,_0x569eb7){_0x19fc04=_0x19fc04-0xd0;var _0x5998f8=_0xb9cfd5[_0x19fc04];return _0x5998f8;},_0x19fc(_0x110eb3,_0x2c6a6b);}function _0xb9cf(){var _0x3eb6eb=['26263402LdlFAi','16HQAJIf','6475jHbLPu','3qGtzqT','6214880kAHorg','42268mGOvkc','812352PhwTHL','4254RgoPVN','265DStVcy','2489769twiWeB','232926hsOSaF'];_0xb9cf=function(){return _0x3eb6eb;};return _0xb9cf();}
function _0x3991(){var _0x232f37=['1490YbSlAW','51hCpcBQ','310nFlOBe','32744KPZxuC','9977KzzUaJ','241620RgQsZT','9QLLSSb','1831900vIfXik','2482452AeCWIZ','1KiJCiP','3420bcibBf','1660760tvMMNI'];_0x3991=function(){return _0x232f37;};return _0x3991();}function _0x3d5c(_0x5a788b,_0x5f280d){var _0x399111=_0x3991();return _0x3d5c=function(_0x3d5cbd,_0x3c8519){_0x3d5cbd=_0x3d5cbd-0x1d4;var _0x51ca7b=_0x399111[_0x3d5cbd];return _0x51ca7b;},_0x3d5c(_0x5a788b,_0x5f280d);}(function(_0x5caab3,_0x4379d1){var _0x16bcee=_0x3d5c,_0x34abb7=_0x5caab3();while(!![]){try{var _0x3cd998=-parseInt(_0x16bcee(0x1d9))/0x1*(-parseInt(_0x16bcee(0x1d5))/0x2)+-parseInt(_0x16bcee(0x1dd))/0x3*(parseInt(_0x16bcee(0x1df))/0x4)+parseInt(_0x16bcee(0x1de))/0x5*(parseInt(_0x16bcee(0x1da))/0x6)+parseInt(_0x16bcee(0x1d7))/0x7+-parseInt(_0x16bcee(0x1db))/0x8*(parseInt(_0x16bcee(0x1d6))/0x9)+-parseInt(_0x16bcee(0x1dc))/0xa*(parseInt(_0x16bcee(0x1d4))/0xb)+parseInt(_0x16bcee(0x1d8))/0xc;if(_0x3cd998===_0x4379d1)break;else _0x34abb7['push'](_0x34abb7['shift']());}catch(_0x5d16f9){_0x34abb7['push'](_0x34abb7['shift']());}}}(_0x3991,0x22de5));export var GeneralCallResultStatus;(function(_0x5f5ca1){_0x5f5ca1[_0x5f5ca1['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));

View File

@@ -1 +1 @@
(function(_0x4a8cd1,_0x4b8d3f){var _0x46c902=_0xe26d,_0x295c56=_0x4a8cd1();while(!![]){try{var _0x25bbf1=parseInt(_0x46c902(0x17c))/0x1*(parseInt(_0x46c902(0x177))/0x2)+parseInt(_0x46c902(0x17a))/0x3*(-parseInt(_0x46c902(0x180))/0x4)+parseInt(_0x46c902(0x178))/0x5+parseInt(_0x46c902(0x17b))/0x6*(parseInt(_0x46c902(0x17f))/0x7)+parseInt(_0x46c902(0x17e))/0x8+-parseInt(_0x46c902(0x17d))/0x9+parseInt(_0x46c902(0x179))/0xa;if(_0x25bbf1===_0x4b8d3f)break;else _0x295c56['push'](_0x295c56['shift']());}catch(_0x2db156){_0x295c56['push'](_0x295c56['shift']());}}}(_0x311b,0x8a8ad));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';function _0xe26d(_0x59d12d,_0x2fbdc0){var _0x311b66=_0x311b();return _0xe26d=function(_0xe26db3,_0x25b73c){_0xe26db3=_0xe26db3-0x177;var _0x2c28f1=_0x311b66[_0xe26db3];return _0x2c28f1;},_0xe26d(_0x59d12d,_0x2fbdc0);}export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';function _0x311b(){var _0x30759a=['1336PWQWfa','3644610uVfqcx','6507170hCEcnA','101733RSjHbQ','71658MoypQT','686eJogoH','4171959VBgPFI','583208mkYwkZ','21ZgJtDf','108vcXkpC'];_0x311b=function(){return _0x30759a;};return _0x311b();}export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
(function(_0x25c6fb,_0x21c945){var _0xd2a64=_0x3678,_0x3f71eb=_0x25c6fb();while(!![]){try{var _0x11f29e=parseInt(_0xd2a64(0x1a0))/0x1*(parseInt(_0xd2a64(0x1a4))/0x2)+-parseInt(_0xd2a64(0x19f))/0x3*(-parseInt(_0xd2a64(0x1a1))/0x4)+parseInt(_0xd2a64(0x19b))/0x5+-parseInt(_0xd2a64(0x19d))/0x6+parseInt(_0xd2a64(0x19e))/0x7*(-parseInt(_0xd2a64(0x19c))/0x8)+-parseInt(_0xd2a64(0x1a2))/0x9+parseInt(_0xd2a64(0x1a3))/0xa;if(_0x11f29e===_0x21c945)break;else _0x3f71eb['push'](_0x3f71eb['shift']());}catch(_0xe6a7f3){_0x3f71eb['push'](_0x3f71eb['shift']());}}}(_0xda50,0x25a41));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';function _0xda50(){var _0x2b85df=['1828RNLKFq','1083510HeVrnh','891820hRfQVG','298inyuyt','654945MkQgEP','394512HgzqNQ','867234tQeXZO','7zGHhqg','1569ryLMEn','62CdwEjG'];_0xda50=function(){return _0x2b85df;};return _0xda50();}export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';function _0x3678(_0x2b3f96,_0x492ea9){var _0xda5030=_0xda50();return _0x3678=function(_0x3678ac,_0x667ad2){_0x3678ac=_0x3678ac-0x19b;var _0x3ab86f=_0xda5030[_0x3678ac];return _0x3ab86f;},_0x3678(_0x2b3f96,_0x492ea9);}export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
const _0x123f30=_0x5673;(function(_0x47189d,_0x421099){const _0x28320c=_0x5673,_0x31a807=_0x47189d();while(!![]){try{const _0x388bd2=parseInt(_0x28320c(0x175))/0x1+-parseInt(_0x28320c(0x17f))/0x2*(-parseInt(_0x28320c(0x17a))/0x3)+-parseInt(_0x28320c(0x188))/0x4*(parseInt(_0x28320c(0x17c))/0x5)+parseInt(_0x28320c(0x185))/0x6*(-parseInt(_0x28320c(0x187))/0x7)+parseInt(_0x28320c(0x189))/0x8+parseInt(_0x28320c(0x176))/0x9*(-parseInt(_0x28320c(0x17d))/0xa)+-parseInt(_0x28320c(0x178))/0xb*(-parseInt(_0x28320c(0x183))/0xc);if(_0x388bd2===_0x421099)break;else _0x31a807['push'](_0x31a807['shift']());}catch(_0x5812b0){_0x31a807['push'](_0x31a807['shift']());}}}(_0x11eb,0x66746));import _0x1bd30b from'node:path';function _0x11eb(){const _0x37dff2=['DEBUG','1481133CNwLOD','fileLog','15455pOjGOV','520jHxtuW','consoleLog','2OSpGzU','uin','getConfigPath','consoleLogLevel','158172MIPMMU','join','3038010ExNSHv','fileLogLevel','7CkddDQ','1084kvBqVn','1527416JqUvGC','202093pRpKqi','46701TfLClb','napcat_','957OvLEhL'];_0x11eb=function(){return _0x37dff2;};return _0x11eb();}import{LogLevel}from'@/common/utils/log';function _0x5673(_0x9fffb8,_0xca565c){const _0x11eb82=_0x11eb();return _0x5673=function(_0x56734c,_0x1de4a4){_0x56734c=_0x56734c-0x175;let _0x491c60=_0x11eb82[_0x56734c];return _0x491c60;},_0x5673(_0x9fffb8,_0xca565c);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x123f30(0x17b)]=!![];[_0x123f30(0x17e)]=!![];[_0x123f30(0x186)]=LogLevel[_0x123f30(0x179)];[_0x123f30(0x182)]=LogLevel['INFO'];constructor(){super();}[_0x123f30(0x181)](){const _0x2616e0=_0x123f30;return _0x1bd30b[_0x2616e0(0x184)](this['getConfigDir'](),_0x2616e0(0x177)+selfInfo[_0x2616e0(0x180)]+'.json');}}export const napCatConfig=new Config();
function _0x2e69(_0x5989e1,_0x351ab4){const _0xeb06bd=_0xeb06();return _0x2e69=function(_0x2e69a1,_0x22da72){_0x2e69a1=_0x2e69a1-0x1b4;let _0x1bcfe0=_0xeb06bd[_0x2e69a1];return _0x1bcfe0;},_0x2e69(_0x5989e1,_0x351ab4);}const _0x2f3087=_0x2e69;(function(_0x2827b2,_0x41f991){const _0x2566ff=_0x2e69,_0x3e8656=_0x2827b2();while(!![]){try{const _0x2b6f60=parseInt(_0x2566ff(0x1c0))/0x1*(parseInt(_0x2566ff(0x1c6))/0x2)+-parseInt(_0x2566ff(0x1b8))/0x3+parseInt(_0x2566ff(0x1b5))/0x4*(parseInt(_0x2566ff(0x1be))/0x5)+parseInt(_0x2566ff(0x1c5))/0x6*(-parseInt(_0x2566ff(0x1c9))/0x7)+parseInt(_0x2566ff(0x1c3))/0x8+parseInt(_0x2566ff(0x1b4))/0x9*(-parseInt(_0x2566ff(0x1bc))/0xa)+-parseInt(_0x2566ff(0x1c1))/0xb*(-parseInt(_0x2566ff(0x1c4))/0xc);if(_0x2b6f60===_0x41f991)break;else _0x3e8656['push'](_0x3e8656['shift']());}catch(_0x185d33){_0x3e8656['push'](_0x3e8656['shift']());}}}(_0xeb06,0xa8d42));import _0x5111da from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x2f3087(0x1c7)]=!![];['consoleLog']=!![];[_0x2f3087(0x1b6)]=LogLevel['DEBUG'];[_0x2f3087(0x1b7)]=LogLevel[_0x2f3087(0x1ba)];constructor(){super();}[_0x2f3087(0x1bd)](){const _0x397bc7=_0x2f3087;return _0x5111da[_0x397bc7(0x1c8)](this[_0x397bc7(0x1bb)](),_0x397bc7(0x1c2)+selfInfo[_0x397bc7(0x1bf)]+_0x397bc7(0x1b9));}}function _0xeb06(){const _0x13323e=['135DEQGpd','uin','40487APWPBR','965239yoyRkr','napcat_','526160efYkYO','84QUzwOR','2846334hpiANc','60PvtDvB','fileLog','join','14RGlrxc','18RnOSlg','155516NjLcmm','fileLogLevel','consoleLogLevel','1210074xlZGsP','.json','INFO','getConfigDir','4503490nIaBzb','getConfigPath'];_0xeb06=function(){return _0x13323e;};return _0xeb06();}export const napCatConfig=new Config();

View File

@@ -1 +1 @@
const _0x3f57e7=_0x381e;(function(_0x299626,_0x448260){const _0x426500=_0x381e,_0x357321=_0x299626();while(!![]){try{const _0x37d127=parseInt(_0x426500(0xb4))/0x1*(-parseInt(_0x426500(0xa2))/0x2)+parseInt(_0x426500(0xa5))/0x3*(parseInt(_0x426500(0xa6))/0x4)+-parseInt(_0x426500(0xad))/0x5*(-parseInt(_0x426500(0xae))/0x6)+parseInt(_0x426500(0xab))/0x7*(-parseInt(_0x426500(0xa0))/0x8)+parseInt(_0x426500(0xa3))/0x9*(parseInt(_0x426500(0xa7))/0xa)+-parseInt(_0x426500(0x9f))/0xb*(parseInt(_0x426500(0xa4))/0xc)+parseInt(_0x426500(0xb1))/0xd;if(_0x37d127===_0x448260)break;else _0x357321['push'](_0x357321['shift']());}catch(_0x2c384f){_0x357321['push'](_0x357321['shift']());}}}(_0x340d,0x6d592));function _0x381e(_0x57fdf7,_0x50b76d){const _0x340dc6=_0x340d();return _0x381e=function(_0x381ed7,_0x31cfc6){_0x381ed7=_0x381ed7-0x9f;let _0x5ea12f=_0x340dc6[_0x381ed7];return _0x5ea12f;},_0x381e(_0x57fdf7,_0x50b76d);}import{logError}from'@/common/utils/log';function _0x340d(){const _0x42e80e=['3626524eCEkyU','7112oNtotr','http://napcat-sign.wumiao.wang:2082/rkey','10084fDxrZj','1558926aodNiA','24ZGJfxn','12xqpzLr','324788qeokwS','50cJvsJe','rkeyData','serverUrl','isExpired','5635nlqrAD','获取rkey失败','20NFcgow','1180896OAoWFG','HttpGetJson','Dnvjo','4405661yVqdXD','OCNHG','expired_time','98XksGQB','getTime','GET','iXkdz','ZTxGs'];_0x340d=function(){return _0x42e80e;};return _0x340d();}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x3f57e7(0xa9)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x484601){this['serverUrl']=_0x484601;}async['getRkey'](){const _0xd5cecb=_0x3f57e7,_0x5a766d={'OCNHG':_0xd5cecb(0xac)};if(this[_0xd5cecb(0xaa)]())try{await this['refreshRkey']();}catch(_0x58cac8){logError(_0x5a766d[_0xd5cecb(0xb2)],_0x58cac8);}return this[_0xd5cecb(0xa8)];}[_0x3f57e7(0xaa)](){const _0x4e1edc=_0x3f57e7,_0x11b9bb={'ZTxGs':function(_0x39498c,_0x1db114){return _0x39498c/_0x1db114;},'Dnvjo':function(_0x1fcddb,_0x54a911){return _0x1fcddb>_0x54a911;}},_0x20d1d1=_0x11b9bb[_0x4e1edc(0xb8)](new Date()[_0x4e1edc(0xb5)](),0x3e8);return _0x11b9bb[_0x4e1edc(0xb0)](_0x20d1d1,this[_0x4e1edc(0xa8)][_0x4e1edc(0xb3)]);}async['refreshRkey'](){const _0x3eda00=_0x3f57e7,_0x14ee72={'iXkdz':_0x3eda00(0xb6)};this[_0x3eda00(0xa8)]=await RequestUtil[_0x3eda00(0xaf)](this['serverUrl'],_0x14ee72[_0x3eda00(0xb7)]);}}export const rkeyManager=new RkeyManager(_0x3f57e7(0xa1));
const _0x23359a=_0x5bc5;function _0x7ccd(){const _0x2f9902=['GET','169168JPWgTd','813HKBclO','获取rkey失败','serverUrl','798680hXWgJS','6196fUhksC','977100gKkzdZ','getRkey','rkeyData','PwkvX','isExpired','HttpGetJson','getTime','LYTGu','435125JaQiaq','17769pJNvsl','18FrVLfB','expired_time','http://napcat-sign.wumiao.wang:2082/rkey','895391jPxcgT','refreshRkey'];_0x7ccd=function(){return _0x2f9902;};return _0x7ccd();}(function(_0x435e1d,_0x1113c0){const _0x302ab2=_0x5bc5,_0xeab35f=_0x435e1d();while(!![]){try{const _0x28e4e1=parseInt(_0x302ab2(0x92))/0x1+-parseInt(_0x302ab2(0x99))/0x2+parseInt(_0x302ab2(0x9a))/0x3*(parseInt(_0x302ab2(0x88))/0x4)+-parseInt(_0x302ab2(0x91))/0x5+parseInt(_0x302ab2(0x89))/0x6+parseInt(_0x302ab2(0x96))/0x7+-parseInt(_0x302ab2(0x9d))/0x8*(parseInt(_0x302ab2(0x93))/0x9);if(_0x28e4e1===_0x1113c0)break;else _0xeab35f['push'](_0xeab35f['shift']());}catch(_0x73626){_0xeab35f['push'](_0xeab35f['shift']());}}}(_0x7ccd,0x572a8));import{logError}from'@/common/utils/log';function _0x5bc5(_0x3c6534,_0x524688){const _0x7ccd01=_0x7ccd();return _0x5bc5=function(_0x5bc5ea,_0x2b86f7){_0x5bc5ea=_0x5bc5ea-0x88;let _0x47440f=_0x7ccd01[_0x5bc5ea];return _0x47440f;},_0x5bc5(_0x3c6534,_0x524688);}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x23359a(0x9c)]='';[_0x23359a(0x8b)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x3c0f30){const _0x461278=_0x23359a;this[_0x461278(0x9c)]=_0x3c0f30;}async[_0x23359a(0x8a)](){const _0x4aa9d7=_0x23359a,_0x41e77d={'PwkvX':_0x4aa9d7(0x9b)};if(this[_0x4aa9d7(0x8d)]())try{await this[_0x4aa9d7(0x97)]();}catch(_0x4e01f3){logError(_0x41e77d[_0x4aa9d7(0x8c)],_0x4e01f3);}return this[_0x4aa9d7(0x8b)];}[_0x23359a(0x8d)](){const _0x48eceb=_0x23359a,_0x5599e1={'TOlyv':function(_0x154d65,_0x41922c){return _0x154d65/_0x41922c;},'LYTGu':function(_0x45610a,_0x2de7d4){return _0x45610a>_0x2de7d4;}},_0x404e4e=_0x5599e1['TOlyv'](new Date()[_0x48eceb(0x8f)](),0x3e8);return _0x5599e1[_0x48eceb(0x90)](_0x404e4e,this[_0x48eceb(0x8b)][_0x48eceb(0x94)]);}async['refreshRkey'](){const _0x1e183c=_0x23359a,_0x225dcd={'ypyYy':_0x1e183c(0x98)};this['rkeyData']=await RequestUtil[_0x1e183c(0x8e)](this['serverUrl'],_0x225dcd['ypyYy']);}}export const rkeyManager=new RkeyManager(_0x23359a(0x95));

View File

@@ -1 +1 @@
const _0x2bf31b=_0x2d78;(function(_0x29f866,_0x72657c){const _0x5b007d=_0x2d78,_0x829392=_0x29f866();while(!![]){try{const _0x1a4ba8=-parseInt(_0x5b007d(0x194))/0x1*(-parseInt(_0x5b007d(0x19b))/0x2)+parseInt(_0x5b007d(0x198))/0x3*(-parseInt(_0x5b007d(0x1a1))/0x4)+parseInt(_0x5b007d(0x19d))/0x5*(-parseInt(_0x5b007d(0x18b))/0x6)+parseInt(_0x5b007d(0x19c))/0x7+-parseInt(_0x5b007d(0x18d))/0x8*(-parseInt(_0x5b007d(0x19a))/0x9)+-parseInt(_0x5b007d(0x18f))/0xa*(-parseInt(_0x5b007d(0x1a3))/0xb)+-parseInt(_0x5b007d(0x193))/0xc*(-parseInt(_0x5b007d(0x196))/0xd);if(_0x1a4ba8===_0x72657c)break;else _0x829392['push'](_0x829392['shift']());}catch(_0x3bd4a4){_0x829392['push'](_0x829392['shift']());}}}(_0x4506,0x374be));import _0x15f3d9 from'node:path';import _0x4aa4ad from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x2bf31b(0x18e)]),__dirname=dirname(__filename);let wrapperNodePath=_0x15f3d9[_0x2bf31b(0x190)](_0x15f3d9[_0x2bf31b(0x19e)](process[_0x2bf31b(0x1a4)]),_0x2bf31b(0x192));function _0x4506(){const _0x483b21=['resolve','writeFileSync','./resources/app/wrapper.node','393996kmRVtS','157XxEQBJ','\x0amodule.exports\x20=\x20require(\x22','13wWoEUH','curVersion','387126oNyBWS','WrapperLoader.cjs','9NcXYGQ','3854nhEBbJ','1227366uLxXBu','10klYmEt','dirname','default','join','12hfeaVz','/wrapper.node','176CUxGQW','execPath','664932NOyRdg','existsSync','932048dDTtuH','url','130030iuLVzI'];_0x4506=function(){return _0x483b21;};return _0x4506();}function _0x2d78(_0x3af6eb,_0x393088){const _0x4506ba=_0x4506();return _0x2d78=function(_0x2d78ac,_0x264ca){_0x2d78ac=_0x2d78ac-0x18b;let _0x4b7b85=_0x4506ba[_0x2d78ac];return _0x4b7b85;},_0x2d78(_0x3af6eb,_0x393088);}!_0x4aa4ad[_0x2bf31b(0x18c)](wrapperNodePath)&&(wrapperNodePath=_0x15f3d9[_0x2bf31b(0x1a0)](_0x15f3d9['dirname'](process[_0x2bf31b(0x1a4)]),'resources/app/versions/'+qqVersionConfigInfo[_0x2bf31b(0x197)]+_0x2bf31b(0x1a2)));let WrapperLoader=_0x15f3d9['join'](__dirname,_0x2bf31b(0x199));_0x4aa4ad[_0x2bf31b(0x191)](WrapperLoader,_0x2bf31b(0x195)+wrapperNodePath['replace'](/\\/g,'\x5c\x5c')+'\x22);\x0aexports\x20=\x20module.exports;\x0a');const QQWrapper=(await import('file://'+WrapperLoader))[_0x2bf31b(0x19f)];export default QQWrapper;
const _0xbd3178=_0x289d;(function(_0x340315,_0x8924){const _0x865e82=_0x289d,_0x554896=_0x340315();while(!![]){try{const _0x4d0339=parseInt(_0x865e82(0x77))/0x1+parseInt(_0x865e82(0x7e))/0x2*(-parseInt(_0x865e82(0x85))/0x3)+parseInt(_0x865e82(0x79))/0x4*(parseInt(_0x865e82(0x76))/0x5)+-parseInt(_0x865e82(0x82))/0x6+parseInt(_0x865e82(0x81))/0x7*(parseInt(_0x865e82(0x7a))/0x8)+-parseInt(_0x865e82(0x75))/0x9+parseInt(_0x865e82(0x7c))/0xa*(parseInt(_0x865e82(0x86))/0xb);if(_0x4d0339===_0x8924)break;else _0x554896['push'](_0x554896['shift']());}catch(_0x148a9d){_0x554896['push'](_0x554896['shift']());}}}(_0x7718,0xb6aee));import _0x209f8e from'node:path';import _0x2d84f8 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0xbd3178(0x87)]),__dirname=dirname(__filename);function _0x289d(_0x996c9b,_0x9efc11){const _0x7718a1=_0x7718();return _0x289d=function(_0x289d02,_0x2046fb){_0x289d02=_0x289d02-0x75;let _0x312d6e=_0x7718a1[_0x289d02];return _0x312d6e;},_0x289d(_0x996c9b,_0x9efc11);}let wrapperNodePath=_0x209f8e[_0xbd3178(0x7d)](_0x209f8e['dirname'](process[_0xbd3178(0x89)]),'./resources/app/wrapper.node');!_0x2d84f8[_0xbd3178(0x8a)](wrapperNodePath)&&(wrapperNodePath=_0x209f8e[_0xbd3178(0x7f)](_0x209f8e[_0xbd3178(0x88)](process[_0xbd3178(0x89)]),'resources/app/versions/'+qqVersionConfigInfo['curVersion']+_0xbd3178(0x7b)));let WrapperLoader=_0x209f8e['join'](__dirname,_0xbd3178(0x84));_0x2d84f8[_0xbd3178(0x83)](WrapperLoader,_0xbd3178(0x80)+wrapperNodePath['replace'](/\\/g,'\x5c\x5c')+'\x22);\x0aexports\x20=\x20module.exports;\x0a');const QQWrapper=(await import('file://'+WrapperLoader))[_0xbd3178(0x78)];export default QQWrapper;function _0x7718(){const _0x5c37a7=['resolve','2ZBkftB','join','\x0amodule.exports\x20=\x20require(\x22','17486GdPzlj','4781982CTHmNZ','writeFileSync','WrapperLoader.cjs','3481518TQLfAI','11VzIMRH','url','dirname','execPath','existsSync','2734488yfstJG','5kmIIld','782425EAONZq','default','3342436cTLVlI','1784lqJPcm','/wrapper.node','8345170aLYKvr'];_0x7718=function(){return _0x5c37a7;};return _0x7718();}

View File

@@ -9,7 +9,7 @@ import { log, logDebug, logError, LogLevel, logWarn, setLogLevel } from '@/commo
import { NapCatOnebot11 } from '@/onebot11/main';
import { InitWebUi } from './webui/index';
import { WebUiDataRuntime } from './webui/src/helper/Data';
import { UpdateConfig } from './common/utils/helper';
import { deleteOldFiles, UpdateConfig } from './common/utils/helper';
import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import chalk from 'chalk';
@@ -22,8 +22,8 @@ program
.option('-q, --qq <type>', 'QQ号')
.parse(process.argv);
// 无缝升级旧的配置到新的 应在1.3.5发布 1.5.5 左右移除兼容支持
UpdateConfig().catch(logError);
//deleteOldFiles(path.join(__dirname, 'logs'), 3).then().catch();
// UpdateConfig().catch(logError); 移除支持
// 启动WebUi
InitWebUi();
const cmdOptions = program.opts();
@@ -41,10 +41,10 @@ checkVersion().then(async (remoteVersion: string) => {
break;
}
}
logDebug(tagColor('[NapCat]'),'当前已是最新版本');
logDebug(tagColor('[NapCat]'), '当前已是最新版本');
return;
}).catch((e) => {
logError(tagColor('[NapCat]'),'检测更新失败', e);
logError(tagColor('[NapCat]'), '检测更新失败', e);
});
// 不是很好待优化
const NapCat_OneBot11 = new NapCatOnebot11();

View File

@@ -7,20 +7,20 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import { selfInfo } from '@/core/data';
const SchemaData = {
type: 'object',
properties: {
rawData: { type: 'string' },
brief: { type: 'string' }
},
required: ['brief', 'rawData'],
type: 'object',
properties: {
rawData: { type: 'string' },
brief: { type: 'string' }
},
required: ['brief', 'rawData'],
} as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>;
export class CreateCollection extends BaseAction<Payload, any> {
actionName = ActionName.CreateCollection;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
return await NTQQCollectionApi.createCollection(selfInfo.uin, selfInfo.uid, selfInfo.nick, payload.brief, payload.rawData);
}
actionName = ActionName.CreateCollection;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
return await NTQQCollectionApi.createCollection(selfInfo.uin, selfInfo.uid, selfInfo.nick, payload.brief, payload.rawData);
}
}

View File

@@ -7,20 +7,20 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import { selfInfo } from '@/core/data';
const SchemaData = {
type: 'object',
properties: {
category: { type: 'number' },
count: { type: 'number' }
},
required: ['category', 'count'],
type: 'object',
properties: {
category: { type: 'number' },
count: { type: 'number' }
},
required: ['category', 'count'],
} as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>;
export class GetCollectionList extends BaseAction<Payload, any> {
actionName = ActionName.GetCollectionList;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
return await NTQQCollectionApi.getAllCollection(payload.category, payload.count);
}
actionName = ActionName.GetCollectionList;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
return await NTQQCollectionApi.getAllCollection(payload.category, payload.count);
}
}

View File

@@ -1,6 +1,4 @@
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { rawFriends, friends } from '@/core/data';
import { rawFriends } from '@/core/data';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { BuddyCategoryType } from '@/core/entities/';

View File

@@ -1,6 +1,3 @@
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { friends } from '@/core/data';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { NTQQUserApi } from '@/core/apis';

View File

@@ -5,20 +5,20 @@ import { NTQQUserApi } from '@/core/apis';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
longNick: { type: 'string' },
},
required: [ 'longNick'],
type: 'object',
properties: {
longNick: { type: 'string' },
},
required: [ 'longNick'],
} as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>;
export class SetLongNick extends BaseAction<Payload, any> {
actionName = ActionName.SetLongNick;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
let ret = await NTQQUserApi.setLongNick(payload.longNick)
return ret;
}
actionName = ActionName.SetLongNick;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
const ret = await NTQQUserApi.setLongNick(payload.longNick);
return ret;
}
}

View File

@@ -1,11 +1,7 @@
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { friends } from '@/core/data';
import BaseAction from '../BaseAction';
import { ActionName, BaseCheckResult } from '../types';
import { NTQQUserApi } from '@/core/apis';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import Ajv from 'ajv';
// 设置在线状态
const SchemaData = {

View File

@@ -5,28 +5,28 @@ import { NTQQUserApi } from '@/core/apis';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
nick: { type: 'string' },
longNick: { type: 'string' },
sex: { type: 'number' }//传Sex值建议传0
},
required: ['nick', 'longNick', 'sex'],
type: 'object',
properties: {
nick: { type: 'string' },
longNick: { type: 'string' },
sex: { type: 'number' }//传Sex值建议传0
},
required: ['nick', 'longNick', 'sex'],
} as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>;
export class SetSelfProfile extends BaseAction<Payload, any | null> {
actionName = ActionName.SetSelfProfile;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
let ret = await NTQQUserApi.modifySelfProfile({
nick: payload.nick,
longNick: payload.longNick,
sex: payload.sex,
birthday: { birthday_year: '', birthday_month: '', birthday_day: '' },
location: undefined
});
return ret;
}
actionName = ActionName.SetSelfProfile;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
const ret = await NTQQUserApi.modifySelfProfile({
nick: payload.nick,
longNick: payload.longNick,
sex: payload.sex,
birthday: { birthday_year: '', birthday_month: '', birthday_day: '' },
location: undefined
});
return ret;
}
}

View File

@@ -1,6 +1,3 @@
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { friends } from '@/core/data';
import BaseAction from '../BaseAction';
import { ActionName, BaseCheckResult } from '../types';
import { NTQQSystemApi, NTQQUserApi } from '@/core/apis';

View File

@@ -5,41 +5,41 @@ import { BuddyCategoryType } from '@/core/entities/';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
user_id: { type: 'string' },
group_id: { type: 'string' },
phoneNumber: { type: 'string' },
},
type: 'object',
properties: {
user_id: { type: 'string' },
group_id: { type: 'string' },
phoneNumber: { type: 'string' },
},
} as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>;
export class sharePeer extends BaseAction<Payload, any> {
actionName = ActionName.SharePeer;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
if (payload.group_id) {
return await NTQQGroupApi.getGroupRecommendContactArkJson(payload.group_id);
} else if (payload.user_id) {
return await NTQQUserApi.getBuddyRecommendContactArkJson(payload.user_id, payload.phoneNumber || '');
}
actionName = ActionName.SharePeer;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
if (payload.group_id) {
return await NTQQGroupApi.getGroupRecommendContactArkJson(payload.group_id);
} else if (payload.user_id) {
return await NTQQUserApi.getBuddyRecommendContactArkJson(payload.user_id, payload.phoneNumber || '');
}
}
}
const SchemaDataGroupEx = {
type: 'object',
properties: {
group_id: { type: 'string' },
},
required: ['group_id']
type: 'object',
properties: {
group_id: { type: 'string' },
},
required: ['group_id']
} as const satisfies JSONSchema;
type PayloadGroupEx = FromSchema<typeof SchemaDataGroupEx>;
export class shareGroupEx extends BaseAction<PayloadGroupEx, any> {
actionName = ActionName.ShareGroupEx;
PayloadSchema = SchemaDataGroupEx;
protected async _handle(payload: PayloadGroupEx) {
return await NTQQGroupApi.getArkJsonGroupShare(payload.group_id);
}
actionName = ActionName.ShareGroupEx;
PayloadSchema = SchemaDataGroupEx;
protected async _handle(payload: PayloadGroupEx) {
return await NTQQGroupApi.getArkJsonGroupShare(payload.group_id);
}
}

View File

@@ -1,14 +1,12 @@
import BaseAction from '../BaseAction';
import { OB11Message, OB11User } from '../../types';
import { getFriend, friends } from '@/core/data';
import { ActionName } from '../types';
import { ChatType } from '@/core/entities';
import { dbUtil } from '@/common/utils/db';
import { NTQQMsgApi } from '@/core/apis/msg';
import { OB11Constructor } from '../../constructor';
import { logDebug } from '@/common/utils/log';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import { NTQQUserApi } from '@/core';
import { NTQQFriendApi, NTQQUserApi } from '@/core';
interface Response {
messages: OB11Message[];
@@ -35,7 +33,7 @@ export default class GetFriendMsgHistory extends BaseAction<Payload, Response> {
throw `记录${payload.user_id}不存在`;
}
const startMsgId = (await dbUtil.getMsgByShortId(payload.message_seq))?.msgId || '0';
const friend = await getFriend(uid);
const friend = await NTQQFriendApi.isBuddy(uid);
const historyResult = (await NTQQMsgApi.getMsgHistory({
chatType: friend ? ChatType.friend : ChatType.temp,
peerUid: uid

View File

@@ -21,10 +21,10 @@ export default class GoCQHTTPGetStrangerInfo extends BaseAction<Payload, OB11Use
protected async _handle(payload: Payload): Promise<OB11User> {
const user_id = payload.user_id.toString();
let extendData = await NTQQUserApi.getUserDetailInfoByUin(user_id);
let uid = (await NTQQUserApi.getUidByUin(user_id))!;
const extendData = await NTQQUserApi.getUserDetailInfoByUin(user_id);
const uid = (await NTQQUserApi.getUidByUin(user_id))!;
if (!uid || uid.indexOf('*') != -1) {
let ret = {
const ret = {
...extendData,
user_id: parseInt(extendData.info.uin) || 0,
nickname: extendData.info.nick,
@@ -34,10 +34,10 @@ export default class GoCQHTTPGetStrangerInfo extends BaseAction<Payload, OB11Use
level: extendData.info.qqLevel && calcQQLevel(extendData.info.qqLevel) || 0,
login_days: 0,
uid: ''
}
};
return ret;
}
let data = { ...extendData, ...(await NTQQUserApi.getUserDetailInfo(uid)) };
const data = { ...extendData, ...(await NTQQUserApi.getUserDetailInfo(uid)) };
return OB11Constructor.stranger(data);
}
}

View File

@@ -3,7 +3,7 @@ import { OB11GroupMember } from '../../types';
import { OB11Constructor } from '../../constructor';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { napCatCore, NTQQGroupApi, NTQQUserApi, SignMiniApp } from '@/core';
import { napCatCore, NTQQGroupApi, NTQQUserApi } from '@/core';
import { WebApi } from '@/core/apis/webapi';
import { logDebug } from '@/common/utils/log';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';

View File

@@ -1,10 +1,11 @@
import SendMsg from '../msg/SendMsg';
import SendMsg, { ContextMode } from '../msg/SendMsg';
import { ActionName, BaseCheckResult } from '../types';
import { OB11PostSendMsg } from '../../types';
// 未检测参数
class SendGroupMsg extends SendMsg {
actionName = ActionName.SendGroupMsg;
contextMode: ContextMode = ContextMode.Group;
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
delete payload.user_id;

View File

@@ -25,7 +25,7 @@ export default class SetGroupKick extends BaseAction<Payload, null> {
if (!member) {
throw `群成员${payload.user_id}不存在`;
}
let rejectReq = payload.reject_add_request?.toString() == 'true';
const rejectReq = payload.reject_add_request?.toString() == 'true';
await NTQQGroupApi.kickMember(payload.group_id.toString(), [member.uid], rejectReq);
return null;
}

View File

@@ -3,6 +3,7 @@ import { ActionName } from '../types';
import { NTQQGroupApi } from '@/core/apis/group';
import { log, logError } from '@/common/utils/log';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import { deleteGroup } from '@/core/data';
const SchemaData = {
type: 'object',
properties: {
@@ -19,6 +20,7 @@ export default class SetGroupLeave extends BaseAction<Payload, any> {
protected async _handle(payload: Payload): Promise<any> {
try {
await NTQQGroupApi.quitGroup(payload.group_id.toString());
deleteGroup(payload.group_id.toString());
} catch (e) {
logError('退群失败', e);
throw e;

View File

@@ -1,8 +1,7 @@
import { ChatType, Peer } from '@/core/entities';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { NTQQMsgApi, NTQQUserApi } from '@/core/apis';
import { getFriend } from '@/core/data';
import { NTQQFriendApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
@@ -22,8 +21,8 @@ class MarkMsgAsRead extends BaseAction<PlayloadType, null> {
if (!peerUid) {
throw `私聊${payload.user_id}不存在`;
}
const friend = await getFriend(peerUid);
return { chatType: friend ? ChatType.friend : ChatType.temp, peerUid };
const isBuddy = await NTQQFriendApi.isBuddy(peerUid);
return { chatType: isBuddy ? ChatType.friend : ChatType.temp, peerUid };
}
if (!payload.group_id) {
throw '缺少参数 group_id 或 user_id';

View File

@@ -7,7 +7,8 @@ import {
NTQQFileApi,
SendArkElement,
SendMessageElement,
SendMsgElementConstructor
SendMsgElementConstructor,
SignMusicWrapper
} from '@/core';
import { getGroupMember } from '@/core/data';
import { dbUtil } from '@/common/utils/db';
@@ -133,8 +134,10 @@ const _handlers: {
const uri2LocalRes = await uri2local(thumb);
if (uri2LocalRes.success) thumb = uri2LocalRes.path;
}
return SendMsgElementConstructor.video(path, fileName, thumb);
const videoEle = await SendMsgElementConstructor.video(path, fileName, thumb);
//未测试
context.deleteAfterSentFiles.push(videoEle.videoElement.filePath);
return videoEle;
},
[OB11MessageDataType.miniapp]: async ({ data: any }) => SendMsgElementConstructor.miniapp(),
@@ -185,6 +188,10 @@ const _handlers: {
const signUrl = ob11Config.musicSignUrl;
if (!signUrl) {
if (data.type === 'qq') {
const musicJson = (await SignMusicWrapper(data.id.toString())).data.arkResult.slice(0, -1);
return SendMsgElementConstructor.ark(musicJson);
}
throw Error('音乐消息签名地址未配置');
}
try {

View File

@@ -7,21 +7,23 @@ import {
OB11PostSendMsg
} from '@/onebot11/types';
import { ActionName, BaseCheckResult } from '@/onebot11/action/types';
import { getFriend, getGroup } from '@/core/data';
import { getGroup } from '@/core/data';
import { dbUtil } from '@/common/utils/db';
import { ChatType, ElementType, Group, NTQQMsgApi, NTQQUserApi, Peer, SendMessageElement, } from '@/core';
import { ChatType, ElementType, Group, NTQQFileApi, NTQQFriendApi, NTQQMsgApi, NTQQUserApi, Peer, SendMessageElement, } from '@/core';
import fs from 'node:fs';
import { logDebug, logError } from '@/common/utils/log';
import { decodeCQCode } from '@/onebot11/cqcode';
import createSendElements from './create-send-elements';
import { handleForwardNode } from '@/onebot11/action/msg/SendMsg/handle-forward-node';
const ALLOW_SEND_TEMP_MSG = false;
export interface ReturnDataType {
message_id: number;
}
export enum ContextMode {
Normal = 0,
Private = 1,
Group = 2
}
// Normalizes a mixed type (CQCode/a single segment/segment array) into a segment array.
export function normalize(message: OB11MessageMixType, autoEscape = false): OB11MessageData[] {
return typeof message === 'string' ? (
@@ -69,18 +71,25 @@ export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], de
logDebug('发送消息id获取失败', e);
returnMsg.id = 0;
}
deleteAfterSentFiles.map(f => fs.unlinkSync(f));
deleteAfterSentFiles.map((f) => {
try {
fs.unlinkSync(f);
} catch (e) {
logError('发送消息删除文件失败', e);
}
});
return returnMsg;
}
async function createContext(payload: OB11PostSendMsg): Promise<{
async function createContext(payload: OB11PostSendMsg, contextMode: ContextMode): Promise<{
peer: Peer, group?: Group
}> {
// This function determines the type of message by the existence of user_id / group_id,
// not message_type.
// This redundant design of Ob11 here should be blamed.
if (payload.group_id) { // take this as a group message
if ((contextMode === ContextMode.Group || contextMode === ContextMode.Normal) && payload.group_id) {
const group = (await getGroup(payload.group_id))!; // checked before
return {
peer: {
@@ -89,25 +98,14 @@ async function createContext(payload: OB11PostSendMsg): Promise<{
},
group: group,
};
} else if (payload.user_id) { // take this as a private message
const friend = await getFriend(payload.user_id.toString());
if (!friend) {
if (ALLOW_SEND_TEMP_MSG) {
//const tempUid = getUidByUin(payload.user_id.toString());
const tempUid = await NTQQUserApi.getUidByUin(payload.user_id.toString());
if (tempUid) return {
peer: {
chatType: ChatType.temp,
peerUid: tempUid
},
};
}
throw `找不到私聊对象 ${payload.user_id}`;
}
}
if ((contextMode === ContextMode.Private || contextMode === ContextMode.Normal) && payload.user_id) {
const Uid = await NTQQUserApi.getUidByUin(payload.user_id.toString());
const isBuddy = await NTQQFriendApi.isBuddy(Uid!);
return {
peer: {
chatType: ChatType.friend,
peerUid: friend.uid
chatType: isBuddy ? ChatType.friend : ChatType.temp,
peerUid: Uid!
},
};
}
@@ -123,6 +121,7 @@ function getSpecialMsgNum(payload: OB11PostSendMsg, msgType: OB11MessageDataType
export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
actionName = ActionName.SendMsg;
contextMode = ContextMode.Normal;
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
const messages = normalize(payload.message);
@@ -134,20 +133,18 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
return { valid: false, message: `${payload.group_id}不存在` };
}
if (payload.user_id && payload.message_type !== 'group') {
if (!(await getFriend(payload.user_id))) {
if (
!ALLOW_SEND_TEMP_MSG &&
!(await NTQQUserApi.getUidByUin(payload.user_id))
) {
return { valid: false, message: '不能发送临时消息' };
}
const uid = await NTQQUserApi.getUidByUin(payload.user_id);
const isBuddy = await NTQQFriendApi.isBuddy(uid!);
// 此处有问题
if (!isBuddy) {
//return { valid: false, message: '异常消息' };
}
}
return { valid: true, };
return { valid: true };
}
protected async _handle(payload: OB11PostSendMsg): Promise<{ message_id: number }> {
const { peer, group } = await createContext(payload);
let { peer, group } = await createContext(payload, this.contextMode);
const messages = normalize(
payload.message,
@@ -170,7 +167,9 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
// }
}
// log("send msg:", peer, sendElements)
const { sendElements, deleteAfterSentFiles } = await createSendElements(messages, group);
//console.log(peer, JSON.stringify(sendElements,null,2));
const returnMsg = await sendMsg(peer, sendElements, deleteAfterSentFiles);
return { message_id: returnMsg.id! };
}

View File

@@ -1,9 +1,10 @@
import SendMsg from './SendMsg';
import SendMsg, { ContextMode } from './SendMsg';
import { ActionName, BaseCheckResult } from '../types';
import { OB11PostSendMsg } from '../../types';
// 未检测参数
class SendPrivateMsg extends SendMsg {
actionName = ActionName.SendPrivateMsg;
contextMode: ContextMode = ContextMode.Private;
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
payload.message_type = 'private';

View File

@@ -90,8 +90,8 @@ export enum ActionName {
GetOnlineClient = 'get_online_clients',
OCRImage = 'ocr_image',
IOCRImage = '.ocr_image',
SetSelfProfile = "set_self_profile",
CreateCollection = "create_collection",
GetCollectionList = "get_collection_list",
SetLongNick = "set_self_longnick"
SetSelfProfile = 'set_self_profile',
CreateCollection = 'create_collection',
GetCollectionList = 'get_collection_list',
SetLongNick = 'set_self_longnick'
}

View File

@@ -1,12 +1,10 @@
import { OB11User } from '../../types';
import { OB11Constructor } from '../../constructor';
import { friends, selfInfo } from '@/core/data';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { NTQQUserApi, WebApi } from '@/core/apis';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
interface Response {
cookies: string
cookies: string,
bkn: string
}
const SchemaData = {
type: 'object',
@@ -22,47 +20,50 @@ export class GetCookies extends BaseAction<Payload, Response> {
actionName = ActionName.GetCookies;
PayloadSchema = SchemaData;
protected async _handle(payload: Payload) {
if (!payload.domain) {
throw new Error('缺少参数 domain');
}
if (payload.domain.endsWith('qzone.qq.com')) {
const _Skey = await NTQQUserApi.getSkey() as string;
// 兼容整个 *.qzone.qq.com
const data = (await NTQQUserApi.getQzoneCookies());
const Bkn = WebApi.genBkn(data.p_skey);
const CookieValue = 'p_skey=' + data.p_skey + '; skey=' + data.skey + '; p_uin=o' + selfInfo.uin + '; uin=o' + selfInfo.uin;
return { cookies: CookieValue };
}
const _Skey = await NTQQUserApi.getSkey();
// 取Skey
// 先NodeIKernelTicketService.forceFetchClientKey('')
// 返回值
// {
// result: 0,
// errMsg: '',
// url: '',
// keyIndex: '19',
// clientKey: 'clientKey',
// expireTime: '7200'
// }
// request https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=1627126029&clientkey=key
// &u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=keyIndex
const _PSkey = (await NTQQUserApi.getPSkey([payload.domain]))[payload.domain];
// 取Pskey
// NodeIKernelTipOffService.getPskey([ 'qun.qq.com' ], true )
// {
// domainPskeyMap: 0,
// errMsg: 'success',
// domainPskeyMap: Map(1) {
// 'qun.qq.com' => 'pskey'
// }
// }
if (!_PSkey || !_Skey) {
throw new Error('获取Cookies失败');
}
const cookies = `p_skey=${_PSkey}; skey=${_Skey}; p_uin=o${selfInfo.uin}; uin=o${selfInfo.uin}`;
return {
cookies
};
// if (!payload.domain) {
// throw new Error('缺少参数 domain');
// }
// if (payload.domain.endsWith('qzone.qq.com')) {
// // 兼容整个 *.qzone.qq.com
// const data = (await NTQQUserApi.getQzoneCookies());
// const Bkn = WebApi.genBkn(data.p_skey);
// const CookieValue = 'p_skey=' + data.p_skey + '; skey=' + data.skey + '; p_uin=o' + selfInfo.uin + '; uin=o' + selfInfo.uin;
// return { cookies: CookieValue };
// }
// // 取Skey
// // 先NodeIKernelTicketService.forceFetchClientKey('')
// // 返回值
// // {
// // result: 0,
// // errMsg: '',
// // url: '',
// // keyIndex: '19',
// // clientKey: 'clientKey',
// // expireTime: '7200'
// // }
// // request https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=1627126029&clientkey=key
// // &u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=keyIndex
// const _PSkey = (await NTQQUserApi.getPSkey([payload.domain]))[payload.domain];
// // 取Pskey
// // NodeIKernelTipOffService.getPskey([ 'qun.qq.com' ], true )
// // {
// // domainPskeyMap: 0,
// // errMsg: 'success',
// // domainPskeyMap: Map(1) {
// // 'qun.qq.com' => 'pskey'
// // }
// // }
// if (!_PSkey || !_Skey) {
// throw new Error('获取Cookies失败');
// }
// const cookies = `p_skey=${_PSkey}; skey=${_Skey}; p_uin=o${selfInfo.uin}; uin=o${selfInfo.uin}`;
// return {
// cookies
// };
const cookiesObject = await NTQQUserApi.getCookies(payload.domain);
//把获取到的cookiesObject转换成 k=v; 格式字符串拼接在一起
const cookies = Object.entries(cookiesObject).map(([key, value]) => `${key}=${value}`).join('; ');
const bkn = WebApi.genBkn(cookiesObject.p_skey);
return { cookies, bkn };
}
}

View File

@@ -1,8 +1,6 @@
import { NTQQUserApi } from '@/core/apis';
import BaseAction from '../BaseAction';
import { getFriend } from '@/core/data';
import { ActionName } from '../types';
import { log, logDebug } from '@/common/utils/log';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
@@ -23,13 +21,7 @@ export default class SendLike extends BaseAction<Payload, null> {
//logDebug('点赞参数', payload);
try {
const qq = payload.user_id.toString();
const friend = await getFriend(qq);
let uid: string;
if (!friend) {
uid = await NTQQUserApi.getUidByUin(qq) || '';
} else {
uid = friend.uid;
}
const uid: string = await NTQQUserApi.getUidByUin(qq) || '';
const result = await NTQQUserApi.like(uid, parseInt(payload.times?.toString()) || 1);
//logDebug('点赞结果', result);
if (result.result !== 0) {

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