mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Compare commits
38 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bf10ce9f1e | ||
![]() |
ccf521d0a8 | ||
![]() |
6075d98eaa | ||
![]() |
a3801fc243 | ||
![]() |
a1f0c05f3a | ||
![]() |
a568c96929 | ||
![]() |
d58bcf3c0e | ||
![]() |
985f2e6436 | ||
![]() |
ad441fa793 | ||
![]() |
316300cc86 | ||
![]() |
5c4f37b234 | ||
![]() |
77b51a072d | ||
![]() |
2536e1ae6a | ||
![]() |
14822c9599 | ||
![]() |
e53c37adc9 | ||
![]() |
c37539354c | ||
![]() |
ae0277f33c | ||
![]() |
b863896249 | ||
![]() |
5b42f8b743 | ||
![]() |
3883fab614 | ||
![]() |
61d6bcec4b | ||
![]() |
3b5902b033 | ||
![]() |
3a88c21a3b | ||
![]() |
91a5055dee | ||
![]() |
7befd1469f | ||
![]() |
c72ebe495c | ||
![]() |
19e06b97e6 | ||
![]() |
7519825303 | ||
![]() |
d9315bf309 | ||
![]() |
8c36c809a0 | ||
![]() |
8138aa3cb2 | ||
![]() |
87aef3ca78 | ||
![]() |
a3f1d26d6b | ||
![]() |
06cebc5670 | ||
![]() |
867fd62d77 | ||
![]() |
650cdf2916 | ||
![]() |
ebf461f2fd | ||
![]() |
27fa319b2a |
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -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
69
.github/workflows/test.yml
vendored
Normal 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
|
13
docs/changelogs/CHANGELOG.v1.6.2.md
Normal file
13
docs/changelogs/CHANGELOG.v1.6.2.md
Normal 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)
|
@@ -1,6 +1,6 @@
|
||||
# v1.5.6
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
|
||||
|
||||
## 修复与优化
|
||||
* 修复一些问题
|
11
docs/changelogs/old/CHANGELOG.v1.5.7.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.5.7.md
Normal 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)
|
14
docs/changelogs/old/CHANGELOG.v1.5.8.md
Normal file
14
docs/changelogs/old/CHANGELOG.v1.5.8.md
Normal 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)
|
12
docs/changelogs/old/CHANGELOG.v1.5.9.md
Normal file
12
docs/changelogs/old/CHANGELOG.v1.5.9.md
Normal 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)
|
11
docs/changelogs/old/CHANGELOG.v1.6.0.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.6.0.md
Normal 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)
|
11
docs/changelogs/old/CHANGELOG.v1.6.1.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.6.1.md
Normal 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)
|
1
docs/develop/碎碎的研究记录.md
Normal file
1
docs/develop/碎碎的研究记录.md
Normal file
@@ -0,0 +1 @@
|
||||
getMsgUniqueId 传入时间 产出一个唯一ID 发送消息作为一个参数
|
@@ -2,7 +2,7 @@
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.5.6",
|
||||
"version": "1.6.2",
|
||||
"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",
|
||||
|
@@ -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();
|
17
src/common/utils/Packet.ts
Normal file
17
src/common/utils/Packet.ts
Normal 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{
|
||||
|
||||
}
|
@@ -65,9 +65,13 @@ export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toSt
|
||||
// platVer: '10.0.26100',
|
||||
// clientVer: '9.9.9-23159',
|
||||
|
||||
// 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;
|
||||
|
@@ -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 = {
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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'
|
||||
|
@@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
2
src/core
2
src/core
Submodule src/core updated: 4df3fea47c...8f96c803b3
@@ -1 +1 @@
|
||||
var _0x5daf60=_0xf130;function _0xf130(_0x5aba6b,_0x2da99a){var _0x33d41a=_0x33d4();return _0xf130=function(_0xf13007,_0x22a283){_0xf13007=_0xf13007-0xe5;var _0x3c4d22=_0x33d41a[_0xf13007];return _0x3c4d22;},_0xf130(_0x5aba6b,_0x2da99a);}(function(_0x766d05,_0x3fb57d){var _0x53e091=_0xf130,_0x489945=_0x766d05();while(!![]){try{var _0xe36748=-parseInt(_0x53e091(0xed))/0x1+parseInt(_0x53e091(0xea))/0x2+-parseInt(_0x53e091(0xe9))/0x3*(-parseInt(_0x53e091(0xeb))/0x4)+-parseInt(_0x53e091(0xe8))/0x5+parseInt(_0x53e091(0xf0))/0x6*(-parseInt(_0x53e091(0xe7))/0x7)+-parseInt(_0x53e091(0xee))/0x8+parseInt(_0x53e091(0xec))/0x9;if(_0xe36748===_0x3fb57d)break;else _0x489945['push'](_0x489945['shift']());}catch(_0x30aacf){_0x489945['push'](_0x489945['shift']());}}}(_0x33d4,0x1ead7));export class DependsAdapter{[_0x5daf60(0xe5)](_0xa0058e,_0x3600a1){}[_0x5daf60(0xe6)](_0x348363){}[_0x5daf60(0xef)](_0x204292){}}function _0x33d4(){var _0x49d45c=['219395XymPAD','33xKAgLL','159856uAUczW','34268fiVkzX','3445191kRIxPL','228722umUXvP','1128496fVpmLM','getGroupCode','18FwcbMu','onMSFStatusChange','onMSFSsoError','41174mHKvzA'];_0x33d4=function(){return _0x49d45c;};return _0x33d4();}
|
||||
function _0x44cc(_0x312a21,_0x4a967e){var _0x271440=_0x2714();return _0x44cc=function(_0x44ccfa,_0x175bc8){_0x44ccfa=_0x44ccfa-0x19b;var _0x5df6b4=_0x271440[_0x44ccfa];return _0x5df6b4;},_0x44cc(_0x312a21,_0x4a967e);}var _0x111909=_0x44cc;(function(_0x256b3f,_0xe4a1f5){var _0x12e8c9=_0x44cc,_0x5474d2=_0x256b3f();while(!![]){try{var _0x2d1507=parseInt(_0x12e8c9(0x19d))/0x1+parseInt(_0x12e8c9(0x1a0))/0x2+-parseInt(_0x12e8c9(0x19c))/0x3*(parseInt(_0x12e8c9(0x1a3))/0x4)+-parseInt(_0x12e8c9(0x19f))/0x5+-parseInt(_0x12e8c9(0x1a7))/0x6+-parseInt(_0x12e8c9(0x1a2))/0x7*(-parseInt(_0x12e8c9(0x1a4))/0x8)+parseInt(_0x12e8c9(0x19b))/0x9*(parseInt(_0x12e8c9(0x1a5))/0xa);if(_0x2d1507===_0xe4a1f5)break;else _0x5474d2['push'](_0x5474d2['shift']());}catch(_0x2b5e38){_0x5474d2['push'](_0x5474d2['shift']());}}}(_0x2714,0x87334));function _0x2714(){var _0x3e0a77=['45OTVTgb','66663ehCFfg','256629rzqRMK','onMSFSsoError','3371445OMKryH','2059244LQuEby','getGroupCode','7565579olrbTG','192mKBIhe','8KqNScg','72210NlTlCz','onMSFStatusChange','650856uWSapS'];_0x2714=function(){return _0x3e0a77;};return _0x2714();}export class DependsAdapter{[_0x111909(0x1a6)](_0x513186,_0x2cd9df){}[_0x111909(0x19e)](_0x17b3a0){}[_0x111909(0x1a1)](_0x11bddb){}}
|
@@ -1 +1 @@
|
||||
var _0x214073=_0x2b60;(function(_0x5e20f9,_0x20e9be){var _0x454329=_0x2b60,_0x300af1=_0x5e20f9();while(!![]){try{var _0x43a03a=-parseInt(_0x454329(0x1ed))/0x1+parseInt(_0x454329(0x1ee))/0x2*(-parseInt(_0x454329(0x1ec))/0x3)+parseInt(_0x454329(0x1f2))/0x4*(-parseInt(_0x454329(0x1f6))/0x5)+-parseInt(_0x454329(0x1f7))/0x6+parseInt(_0x454329(0x1f5))/0x7*(parseInt(_0x454329(0x1f0))/0x8)+parseInt(_0x454329(0x1f3))/0x9*(parseInt(_0x454329(0x1ef))/0xa)+-parseInt(_0x454329(0x1f4))/0xb*(-parseInt(_0x454329(0x1f8))/0xc);if(_0x43a03a===_0x20e9be)break;else _0x300af1['push'](_0x300af1['shift']());}catch(_0x27b22f){_0x300af1['push'](_0x300af1['shift']());}}}(_0x2d6a,0x347a9));function _0x2d6a(){var _0x2818e0=['70861OHGMJT','190378vcnJXJ','20jJxrgK','8ueFxDz','dispatchCall','8376nVDfrE','1098459UJbRaq','267663KVUxuI','904582avcoHF','270NAgmBg','2341452hzQpYq','252zEhNCo','dispatchCallWithJson','3QqtZgA'];_0x2d6a=function(){return _0x2818e0;};return _0x2d6a();}function _0x2b60(_0xc105d,_0xe30940){var _0x2d6a55=_0x2d6a();return _0x2b60=function(_0x2b601f,_0x49675f){_0x2b601f=_0x2b601f-0x1eb;var _0x1d1834=_0x2d6a55[_0x2b601f];return _0x1d1834;},_0x2b60(_0xc105d,_0xe30940);}export class DispatcherAdapter{['dispatchRequest'](_0x111dd9){}[_0x214073(0x1f1)](_0x18169d){}[_0x214073(0x1eb)](_0x51c38b){}}
|
||||
var _0x346107=_0x4418;(function(_0x328c74,_0x4720a0){var _0x473a2b=_0x4418,_0x1efd0b=_0x328c74();while(!![]){try{var _0x4c072a=parseInt(_0x473a2b(0x9e))/0x1+parseInt(_0x473a2b(0xa7))/0x2+parseInt(_0x473a2b(0xa2))/0x3*(parseInt(_0x473a2b(0xa8))/0x4)+parseInt(_0x473a2b(0xa3))/0x5*(parseInt(_0x473a2b(0x9f))/0x6)+-parseInt(_0x473a2b(0xa4))/0x7+parseInt(_0x473a2b(0xa6))/0x8*(-parseInt(_0x473a2b(0xa9))/0x9)+-parseInt(_0x473a2b(0x9d))/0xa*(parseInt(_0x473a2b(0xa1))/0xb);if(_0x4c072a===_0x4720a0)break;else _0x1efd0b['push'](_0x1efd0b['shift']());}catch(_0x32a7c3){_0x1efd0b['push'](_0x1efd0b['shift']());}}}(_0x5807,0xe39d2));function _0x5807(){var _0x41799f=['66GQaKcl','dispatchRequest','385bbfoBZ','41646dCrmvH','497105BZjEjv','7775432sdgevn','dispatchCallWithJson','48RCySUZ','3234922CDacKn','168uOoQdf','560997Yzzevs','dispatchCall','363370aTDqlK','394739JgeIhV'];_0x5807=function(){return _0x41799f;};return _0x5807();}function _0x4418(_0x511331,_0xc30b97){var _0x580734=_0x5807();return _0x4418=function(_0x4418ec,_0x4b6813){_0x4418ec=_0x4418ec-0x9d;var _0x44bc71=_0x580734[_0x4418ec];return _0x44bc71;},_0x4418(_0x511331,_0xc30b97);}export class DispatcherAdapter{[_0x346107(0xa0)](_0x5bd2df){}[_0x346107(0xaa)](_0x351ce1){}[_0x346107(0xa5)](_0x4d6e22){}}
|
@@ -1 +1 @@
|
||||
function _0x29a4(){var _0x4115a3=['onInstallFinished','1713439MGzBmu','onGetSrvCalTime','20871irfequ','onGetOfflineMsg','4417902FqFeVv','1454436HqaUue','32hDspNg','226UKRZEW','onLog','fixPicImgType','890570gYImtR','12QweuxK','11471200nCCMiZ','288797EFwPxm','onShowErrUITips'];_0x29a4=function(){return _0x4115a3;};return _0x29a4();}function _0x3867(_0x57eca4,_0x3eb361){var _0x29a40a=_0x29a4();return _0x3867=function(_0x3867dd,_0x5af69a){_0x3867dd=_0x3867dd-0xcc;var _0x1caec7=_0x29a40a[_0x3867dd];return _0x1caec7;},_0x3867(_0x57eca4,_0x3eb361);}var _0x1d3ddc=_0x3867;(function(_0x4c9783,_0x4e47e2){var _0x336723=_0x3867,_0x409951=_0x4c9783();while(!![]){try{var _0x404267=-parseInt(_0x336723(0xd9))/0x1+-parseInt(_0x336723(0xd3))/0x2*(-parseInt(_0x336723(0xce))/0x3)+parseInt(_0x336723(0xd7))/0x4*(parseInt(_0x336723(0xd6))/0x5)+parseInt(_0x336723(0xd1))/0x6+parseInt(_0x336723(0xcc))/0x7*(parseInt(_0x336723(0xd2))/0x8)+-parseInt(_0x336723(0xd0))/0x9+-parseInt(_0x336723(0xd8))/0xa;if(_0x404267===_0x4e47e2)break;else _0x409951['push'](_0x409951['shift']());}catch(_0x3efa39){_0x409951['push'](_0x409951['shift']());}}}(_0x29a4,0x96322));export class GlobalAdapter{[_0x1d3ddc(0xd4)](..._0x4e53c0){}[_0x1d3ddc(0xcd)](..._0x1a5737){}[_0x1d3ddc(0xda)](..._0x11032a){}[_0x1d3ddc(0xd5)](..._0x4df954){}['getAppSetting'](..._0x68bfa3){}[_0x1d3ddc(0xdb)](..._0x54e795){}['onUpdateGeneralFlag'](..._0x30e16c){}[_0x1d3ddc(0xcf)](..._0x4e0105){}}
|
||||
var _0x2ce042=_0x39ea;(function(_0x1bd126,_0xdfd05c){var _0x3f5b29=_0x39ea,_0x562474=_0x1bd126();while(!![]){try{var _0x12e705=parseInt(_0x3f5b29(0xe0))/0x1*(parseInt(_0x3f5b29(0xdb))/0x2)+-parseInt(_0x3f5b29(0xda))/0x3*(-parseInt(_0x3f5b29(0xe5))/0x4)+-parseInt(_0x3f5b29(0xe8))/0x5*(-parseInt(_0x3f5b29(0xea))/0x6)+-parseInt(_0x3f5b29(0xeb))/0x7*(-parseInt(_0x3f5b29(0xdd))/0x8)+parseInt(_0x3f5b29(0xec))/0x9+parseInt(_0x3f5b29(0xe7))/0xa+-parseInt(_0x3f5b29(0xdc))/0xb*(parseInt(_0x3f5b29(0xe9))/0xc);if(_0x12e705===_0xdfd05c)break;else _0x562474['push'](_0x562474['shift']());}catch(_0x321fa7){_0x562474['push'](_0x562474['shift']());}}}(_0x5128,0xbe05a));function _0x39ea(_0x411eaf,_0x2a77d6){var _0x51288e=_0x5128();return _0x39ea=function(_0x39ea4c,_0x48db1f){_0x39ea4c=_0x39ea4c-0xda;var _0x4aec8a=_0x51288e[_0x39ea4c];return _0x4aec8a;},_0x39ea(_0x411eaf,_0x2a77d6);}function _0x5128(){var _0x3eab9d=['2989048awVdbH','getAppSetting','fixPicImgType','14NJZFVJ','onGetSrvCalTime','onGetOfflineMsg','onShowErrUITips','onUpdateGeneralFlag','4628LNHMjb','onLog','7362570OPxGun','262910MeMbOW','2964xuPLiO','156EHEYzY','7SbAnmy','10836486qhReRE','2118iSWMyP','131014srNfzD','206492gwLiOI'];_0x5128=function(){return _0x3eab9d;};return _0x5128();}export class GlobalAdapter{[_0x2ce042(0xe6)](..._0x3a478d){}[_0x2ce042(0xe1)](..._0x6ddd78){}[_0x2ce042(0xe3)](..._0x3bec44){}[_0x2ce042(0xdf)](..._0x392b76){}[_0x2ce042(0xde)](..._0x134c3d){}['onInstallFinished'](..._0x4d4c5e){}[_0x2ce042(0xe4)](..._0x1b6e37){}[_0x2ce042(0xe2)](..._0x2bd438){}}
|
@@ -1 +1 @@
|
||||
(function(_0x5f4fa8,_0x494d4d){var _0x5de5e8=_0x301f,_0x5092f2=_0x5f4fa8();while(!![]){try{var _0x35baf9=parseInt(_0x5de5e8(0x174))/0x1*(-parseInt(_0x5de5e8(0x179))/0x2)+parseInt(_0x5de5e8(0x178))/0x3*(parseInt(_0x5de5e8(0x170))/0x4)+parseInt(_0x5de5e8(0x171))/0x5*(-parseInt(_0x5de5e8(0x176))/0x6)+parseInt(_0x5de5e8(0x177))/0x7+parseInt(_0x5de5e8(0x172))/0x8*(parseInt(_0x5de5e8(0x175))/0x9)+-parseInt(_0x5de5e8(0x17a))/0xa+parseInt(_0x5de5e8(0x173))/0xb;if(_0x35baf9===_0x494d4d)break;else _0x5092f2['push'](_0x5092f2['shift']());}catch(_0x4b5a76){_0x5092f2['push'](_0x5092f2['shift']());}}}(_0x20b5,0xb660b));export*from'./NodeIDependsAdapter';function _0x20b5(){var _0xdeaed9=['24407493DhjXSh','46519PWknJP','9EhXwdy','2144580DTVnDt','610302XAFkzu','20676LsqFRK','20JXDzYc','3766870ffaLSo','40WhQAvx','15oiNZsQ','2289736iQxHbn'];_0x20b5=function(){return _0xdeaed9;};return _0x20b5();}function _0x301f(_0x19d93c,_0x4c79fa){var _0x20b560=_0x20b5();return _0x301f=function(_0x301f97,_0x367937){_0x301f97=_0x301f97-0x170;var _0x2758b3=_0x20b560[_0x301f97];return _0x2758b3;},_0x301f(_0x19d93c,_0x4c79fa);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
||||
(function(_0x35e939,_0x4e8800){var _0x22a5ad=_0x302a,_0x14a603=_0x35e939();while(!![]){try{var _0x56d49d=-parseInt(_0x22a5ad(0x1e0))/0x1*(-parseInt(_0x22a5ad(0x1dd))/0x2)+parseInt(_0x22a5ad(0x1db))/0x3+parseInt(_0x22a5ad(0x1e3))/0x4*(parseInt(_0x22a5ad(0x1df))/0x5)+parseInt(_0x22a5ad(0x1e4))/0x6*(parseInt(_0x22a5ad(0x1e2))/0x7)+-parseInt(_0x22a5ad(0x1e1))/0x8*(-parseInt(_0x22a5ad(0x1dc))/0x9)+parseInt(_0x22a5ad(0x1e5))/0xa*(parseInt(_0x22a5ad(0x1de))/0xb)+-parseInt(_0x22a5ad(0x1e6))/0xc;if(_0x56d49d===_0x4e8800)break;else _0x14a603['push'](_0x14a603['shift']());}catch(_0x551840){_0x14a603['push'](_0x14a603['shift']());}}}(_0x22f0,0x9736d));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x22f0(){var _0x1dbb93=['6VoAqEd','46490UGawKA','41540844qmnKzw','3273075GrOaCM','243lZroCR','948WKPLmW','1023JGjAJh','1215jkzgPE','781bcQyyV','342616QEQIVI','5799801fMbZzm','3336YNUayX'];_0x22f0=function(){return _0x1dbb93;};return _0x22f0();}function _0x302a(_0x5f46a6,_0x247bc9){var _0x22f085=_0x22f0();return _0x302a=function(_0x302ac7,_0x455f6a){_0x302ac7=_0x302ac7-0x1db;var _0x43782d=_0x22f085[_0x302ac7];return _0x43782d;},_0x302a(_0x5f46a6,_0x247bc9);}export*from'./NodeIGlobalAdapter';
|
@@ -1 +1 @@
|
||||
function _0x35eb(_0x2cb710,_0x5e82c0){const _0x1479e0=_0x1479();return _0x35eb=function(_0x35eb4c,_0x3356e8){_0x35eb4c=_0x35eb4c-0x160;let _0x4e079d=_0x1479e0[_0x35eb4c];return _0x4e079d;},_0x35eb(_0x2cb710,_0x5e82c0);}function _0x1479(){const _0x480c9e=['770292xhxxMd','now','160385kefZUm','toString','6129837DLduDg','session','64SKZecH','48uTLypr','createCollection','2039374zdwDXS','1grdznu','641938iVQvYn','24VBqhlv','458600MjoPNr','182868RkJXOz','10jhlHjH','getCollectionItemList','getCollectionService'];_0x1479=function(){return _0x480c9e;};return _0x1479();}const _0x16047e=_0x35eb;(function(_0x44cc82,_0x173648){const _0x39e690=_0x35eb,_0x206728=_0x44cc82();while(!![]){try{const _0x42ba66=parseInt(_0x39e690(0x170))/0x1*(parseInt(_0x39e690(0x16f))/0x2)+-parseInt(_0x39e690(0x166))/0x3+parseInt(_0x39e690(0x16c))/0x4*(-parseInt(_0x39e690(0x168))/0x5)+-parseInt(_0x39e690(0x160))/0x6*(parseInt(_0x39e690(0x162))/0x7)+parseInt(_0x39e690(0x161))/0x8+-parseInt(_0x39e690(0x16a))/0x9*(-parseInt(_0x39e690(0x163))/0xa)+-parseInt(_0x39e690(0x171))/0xb*(parseInt(_0x39e690(0x16d))/0xc);if(_0x42ba66===_0x173648)break;else _0x206728['push'](_0x206728['shift']());}catch(_0x24420f){_0x206728['push'](_0x206728['shift']());}}}(_0x1479,0x9ebc5));import{napCatCore}from'..';export class NTQQCollectionApi{static async[_0x16047e(0x16e)](_0x345384,_0x526380,_0x4ca5ac,_0x24f57c,_0x393b53){const _0x179ba0=_0x16047e;let _0x31c83a={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x345384,'strId':_0x4ca5ac,'groupId':'0','groupName':'','uid':_0x526380},'customGroupId':'0','createTime':Date['now']()['toString'](),'sequence':Date[_0x179ba0(0x167)]()[_0x179ba0(0x169)]()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x24f57c,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x393b53,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore[_0x179ba0(0x16b)][_0x179ba0(0x165)]()['createNewCollectionItem'](_0x31c83a);}static async['getAllCollection'](_0x5b62ec=0x0,_0x4ac328=0x32){const _0x5c04b8=_0x16047e;let _0x17dfb2={'category':_0x5b62ec,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x4ac328,'searchDown':!![]};return napCatCore[_0x5c04b8(0x16b)][_0x5c04b8(0x165)]()[_0x5c04b8(0x164)](_0x17dfb2);}}
|
||||
const _0x16c2fd=_0x34a7;(function(_0x251413,_0x5bddaa){const _0xa77281=_0x34a7,_0x1d65a9=_0x251413();while(!![]){try{const _0x5b614c=parseInt(_0xa77281(0xbb))/0x1*(parseInt(_0xa77281(0xad))/0x2)+-parseInt(_0xa77281(0xaa))/0x3*(parseInt(_0xa77281(0xb0))/0x4)+-parseInt(_0xa77281(0xb4))/0x5*(parseInt(_0xa77281(0xb7))/0x6)+-parseInt(_0xa77281(0xac))/0x7*(parseInt(_0xa77281(0xae))/0x8)+-parseInt(_0xa77281(0xb1))/0x9*(parseInt(_0xa77281(0xab))/0xa)+parseInt(_0xa77281(0xb8))/0xb+parseInt(_0xa77281(0xb3))/0xc;if(_0x5b614c===_0x5bddaa)break;else _0x1d65a9['push'](_0x1d65a9['shift']());}catch(_0x2722b0){_0x1d65a9['push'](_0x1d65a9['shift']());}}}(_0x4a88,0x398a9));import{napCatCore}from'..';function _0x34a7(_0x580e45,_0x3cc50f){const _0x4a88e8=_0x4a88();return _0x34a7=function(_0x34a7a8,_0x31197a){_0x34a7a8=_0x34a7a8-0xaa;let _0x17b5f8=_0x4a88e8[_0x34a7a8];return _0x17b5f8;},_0x34a7(_0x580e45,_0x3cc50f);}function _0x4a88(){const _0x818f1c=['getAllCollection','getCollectionItemList','11576atRObe','39QifNsH','10ljSGOB','182LAuboJ','48bPNDoz','64888xyySTm','getCollectionService','5384Ejpvlu','2744541mUwpGH','session','7295928jPFFyI','5tnIUAc','createNewCollectionItem','toString','2474574OPBACY','3251963WAoBip'];_0x4a88=function(){return _0x818f1c;};return _0x4a88();}export class NTQQCollectionApi{static async['createCollection'](_0x7fcb0,_0x92a47,_0x5db959,_0x53727c,_0x8a9e08){const _0x45d31f=_0x34a7;let _0x2be63d={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x7fcb0,'strId':_0x5db959,'groupId':'0','groupName':'','uid':_0x92a47},'customGroupId':'0','createTime':Date['now']()['toString'](),'sequence':Date['now']()[_0x45d31f(0xb6)]()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x53727c,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x8a9e08,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore['session'][_0x45d31f(0xaf)]()[_0x45d31f(0xb5)](_0x2be63d);}static async[_0x16c2fd(0xb9)](_0x90524d=0x0,_0x3bca62=0x32){const _0x1c1bcb=_0x16c2fd;let _0x1e1a24={'category':_0x90524d,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x3bca62,'searchDown':!![]};return napCatCore[_0x1c1bcb(0xb2)][_0x1c1bcb(0xaf)]()[_0x1c1bcb(0xba)](_0x1e1a24);}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x1a44(_0x1f1675,_0x83bd5){const _0xe9eef=_0xe9ee();return _0x1a44=function(_0x1a4428,_0x1b811b){_0x1a4428=_0x1a4428-0x16f;let _0x3f3d81=_0xe9eef[_0x1a4428];return _0x3f3d81;},_0x1a44(_0x1f1675,_0x83bd5);}const _0x93afbf=_0x1a44;(function(_0xac8491,_0x52fc93){const _0x2d29fa=_0x1a44,_0x5bf2f6=_0xac8491();while(!![]){try{const _0x4acc42=-parseInt(_0x2d29fa(0x179))/0x1+parseInt(_0x2d29fa(0x17d))/0x2*(parseInt(_0x2d29fa(0x170))/0x3)+-parseInt(_0x2d29fa(0x185))/0x4+-parseInt(_0x2d29fa(0x183))/0x5*(-parseInt(_0x2d29fa(0x177))/0x6)+-parseInt(_0x2d29fa(0x178))/0x7*(parseInt(_0x2d29fa(0x186))/0x8)+parseInt(_0x2d29fa(0x16f))/0x9*(-parseInt(_0x2d29fa(0x180))/0xa)+parseInt(_0x2d29fa(0x17c))/0xb;if(_0x4acc42===_0x52fc93)break;else _0x5bf2f6['push'](_0x5bf2f6['shift']());}catch(_0x12996b){_0x5bf2f6['push'](_0x5bf2f6['shift']());}}}(_0xe9ee,0x9a69d));function _0xe9ee(){const _0x2245a0=['71010trKnGM','getFriends','NodeIKernelBuddyService/getBuddyList','approvalFriendRequest','CallNormalEvent','isBuddy','push','275178IrUDoQ','623MMPxwq','408994YFdugo','split','NodeIKernelBuddyListener/onBuddyListChange','32730544MNzYzF','14fHNJfL','length','JIuBh','1410BLNxxK','session','handleFriendRequest','110lmNWnw','buddyList','3855392iETfXK','85928EUZROO','getBuddyService','75888GuQkuN'];_0xe9ee=function(){return _0x2245a0;};return _0xe9ee();}import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQFriendApi{static async[_0x93afbf(0x175)](_0x268d1e){const _0xd7b31b=_0x93afbf;return napCatCore['session'][_0xd7b31b(0x187)]()[_0xd7b31b(0x175)](_0x268d1e);}static async[_0x93afbf(0x171)](_0x2f6e18=![]){const _0x3007e5=_0x93afbf,_0x43e871={'JIuBh':_0x3007e5(0x17b)};let [_0xb58467,_0x5ebc85]=await NTEventDispatch[_0x3007e5(0x174)](_0x3007e5(0x172),_0x43e871[_0x3007e5(0x17f)],0x1,0x1388,_0x2f6e18);const _0x2d3bd0=[];for(const _0x578294 of _0x5ebc85){for(const _0x5cab41 of _0x578294[_0x3007e5(0x184)]){_0x2d3bd0[_0x3007e5(0x176)](_0x5cab41);}}return _0x2d3bd0;}static async[_0x93afbf(0x182)](_0x529c43,_0x29fa8a){const _0x5be223=_0x93afbf,_0x20323a={'vCgQu':function(_0x247b05,_0x54a1fd){return _0x247b05<_0x54a1fd;}};let _0x23fd0b=_0x529c43[_0x5be223(0x17a)]('|');if(_0x20323a['vCgQu'](_0x23fd0b[_0x5be223(0x17e)],0x2))return;let _0x178ba3=_0x23fd0b[0x0],_0x3ae0ce=_0x23fd0b[0x1];napCatCore[_0x5be223(0x181)][_0x5be223(0x187)]()?.[_0x5be223(0x173)]({'friendUid':_0x178ba3,'reqTime':_0x3ae0ce,'accept':_0x29fa8a});}}
|
||||
function _0x3f8b(_0x3adbc0,_0x52ba9f){const _0x2f6006=_0x2f60();return _0x3f8b=function(_0x3f8b4b,_0x123fe6){_0x3f8b4b=_0x3f8b4b-0x191;let _0x3b5014=_0x2f6006[_0x3f8b4b];return _0x3b5014;},_0x3f8b(_0x3adbc0,_0x52ba9f);}const _0x207047=_0x3f8b;(function(_0x36b8ae,_0x5535ef){const _0xc4c448=_0x3f8b,_0x42e757=_0x36b8ae();while(!![]){try{const _0x1113ac=parseInt(_0xc4c448(0x1a5))/0x1*(-parseInt(_0xc4c448(0x1a4))/0x2)+-parseInt(_0xc4c448(0x19d))/0x3+-parseInt(_0xc4c448(0x1a0))/0x4+parseInt(_0xc4c448(0x1a3))/0x5*(parseInt(_0xc4c448(0x194))/0x6)+parseInt(_0xc4c448(0x197))/0x7+-parseInt(_0xc4c448(0x195))/0x8*(parseInt(_0xc4c448(0x19f))/0x9)+-parseInt(_0xc4c448(0x19e))/0xa;if(_0x1113ac===_0x5535ef)break;else _0x42e757['push'](_0x42e757['shift']());}catch(_0x1bce5d){_0x42e757['push'](_0x42e757['shift']());}}}(_0x2f60,0xa44c9));import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';function _0x2f60(){const _0x3b7fb0=['NodeIKernelBuddyService/getBuddyList','72UFtzvh','802192FJTSbN','getBuddyService','6412791VOZzJM','ECFcX','buddyList','ANcGc','getFriends','approvalFriendRequest','418362xpVKXJ','4159360gxRcyX','18Bekjtt','786840pcosLf','handleFriendRequest','session','489045FqidJh','464204cafDBG','2ewqxTT','NodeIKernelBuddyListener/onBuddyListChange','isBuddy','CallNormalEvent'];_0x2f60=function(){return _0x3b7fb0;};return _0x2f60();}export class NTQQFriendApi{static async[_0x207047(0x191)](_0x2472ec){const _0xeb3355=_0x207047;return napCatCore[_0xeb3355(0x1a2)][_0xeb3355(0x196)]()[_0xeb3355(0x191)](_0x2472ec);}static async[_0x207047(0x19b)](_0x494409=![]){const _0x5d0dd2=_0x207047,_0x560e71={'ANcGc':_0x5d0dd2(0x193),'ECFcX':_0x5d0dd2(0x1a6)};let [_0x5759c7,_0x5938cd]=await NTEventDispatch[_0x5d0dd2(0x192)](_0x560e71[_0x5d0dd2(0x19a)],_0x560e71[_0x5d0dd2(0x198)],0x1,0x1388,_0x494409);const _0x1a44b1=[];for(const _0x4e20e9 of _0x5938cd){for(const _0x4a5f6e of _0x4e20e9[_0x5d0dd2(0x199)]){_0x1a44b1['push'](_0x4a5f6e);}}return _0x1a44b1;}static async[_0x207047(0x1a1)](_0x2b4dce,_0x230686){const _0x360bab=_0x207047,_0xd973ae={'pYazX':function(_0x364927,_0x3a91a8){return _0x364927<_0x3a91a8;}};let _0x33a653=_0x2b4dce['split']('|');if(_0xd973ae['pYazX'](_0x33a653['length'],0x2))return;let _0x26800e=_0x33a653[0x0],_0x1ee74e=_0x33a653[0x1];napCatCore['session']['getBuddyService']()?.[_0x360bab(0x19c)]({'friendUid':_0x26800e,'reqTime':_0x1ee74e,'accept':_0x230686});}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0x1cbddc,_0x590de3){var _0x68e0d5=_0x4b49,_0x4b8aee=_0x1cbddc();while(!![]){try{var _0x1b5afd=-parseInt(_0x68e0d5(0x1d5))/0x1*(parseInt(_0x68e0d5(0x1d3))/0x2)+parseInt(_0x68e0d5(0x1d4))/0x3+-parseInt(_0x68e0d5(0x1da))/0x4*(parseInt(_0x68e0d5(0x1d8))/0x5)+parseInt(_0x68e0d5(0x1d7))/0x6+parseInt(_0x68e0d5(0x1d9))/0x7+-parseInt(_0x68e0d5(0x1d6))/0x8+parseInt(_0x68e0d5(0x1db))/0x9;if(_0x1b5afd===_0x590de3)break;else _0x4b8aee['push'](_0x4b8aee['shift']());}catch(_0x29807e){_0x4b8aee['push'](_0x4b8aee['shift']());}}}(_0x3215,0x82bea));export*from'./file';function _0x4b49(_0x19865a,_0xdb1188){var _0x3215e1=_0x3215();return _0x4b49=function(_0x4b4913,_0x5acb79){_0x4b4913=_0x4b4913-0x1d3;var _0x5faede=_0x3215e1[_0x4b4913];return _0x5faede;},_0x4b49(_0x19865a,_0xdb1188);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';function _0x3215(){var _0x2fbf37=['9408312sGSrEc','26XIJhMD','1626636oMZwGW','71959foJKOd','8126280vfDvrU','3862014hZwPOx','30YqHcLB','7197365bohcMc','515108dpbXXZ'];_0x3215=function(){return _0x2fbf37;};return _0x3215();}export*from'./webapi';export*from'./sign';export*from'./system';
|
||||
(function(_0x320c16,_0x3b3f4d){var _0x2f20ec=_0x5714,_0x4b0e9f=_0x320c16();while(!![]){try{var _0x402ee9=-parseInt(_0x2f20ec(0xb2))/0x1+parseInt(_0x2f20ec(0xb3))/0x2+parseInt(_0x2f20ec(0xb0))/0x3*(-parseInt(_0x2f20ec(0xb4))/0x4)+parseInt(_0x2f20ec(0xb5))/0x5+-parseInt(_0x2f20ec(0xae))/0x6+-parseInt(_0x2f20ec(0xad))/0x7*(parseInt(_0x2f20ec(0xb1))/0x8)+-parseInt(_0x2f20ec(0xac))/0x9*(-parseInt(_0x2f20ec(0xaf))/0xa);if(_0x402ee9===_0x3b3f4d)break;else _0x4b0e9f['push'](_0x4b0e9f['shift']());}catch(_0x142bec){_0x4b0e9f['push'](_0x4b0e9f['shift']());}}}(_0xe84f,0x484a4));export*from'./file';export*from'./friend';export*from'./group';function _0x5714(_0x3feed1,_0x4ca4c4){var _0xe84f68=_0xe84f();return _0x5714=function(_0x571489,_0x29e2a3){_0x571489=_0x571489-0xac;var _0x4a7ec9=_0xe84f68[_0x571489];return _0x4a7ec9;},_0x5714(_0x3feed1,_0x4ca4c4);}export*from'./msg';export*from'./user';export*from'./webapi';function _0xe84f(){var _0x342365=['532154urThnn','278952YomVkd','1961260ohXVxW','2097DwqDGq','35wSQklh','1367538lsKzQU','4660OZCYxD','9STGFUv','31024iFbXSj','14280kuolAE'];_0xe84f=function(){return _0x342365;};return _0xe84f();}export*from'./sign';export*from'./system';
|
File diff suppressed because one or more lines are too long
20
src/core.lib/src/apis/sign.d.ts
vendored
20
src/core.lib/src/apis/sign.d.ts
vendored
@@ -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
1
src/core.lib/src/apis/system.d.ts
vendored
1
src/core.lib/src/apis/system.d.ts
vendored
@@ -9,4 +9,5 @@ export declare class NTQQSystemApi {
|
||||
static getArkJsonCollection(cid: string): Promise<GeneralCallResult & {
|
||||
arkJson: string;
|
||||
}>;
|
||||
static BootMiniApp(appfile: string, params: string): Promise<unknown>;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
const _0x155ab2=_0x5adb;(function(_0x4e21ef,_0x353977){const _0x4d8c45=_0x5adb,_0x13ba08=_0x4e21ef();while(!![]){try{const _0x339059=parseInt(_0x4d8c45(0xe6))/0x1+-parseInt(_0x4d8c45(0xd9))/0x2+-parseInt(_0x4d8c45(0xdf))/0x3*(parseInt(_0x4d8c45(0xe2))/0x4)+parseInt(_0x4d8c45(0xe0))/0x5*(-parseInt(_0x4d8c45(0xe5))/0x6)+-parseInt(_0x4d8c45(0xdd))/0x7*(-parseInt(_0x4d8c45(0xda))/0x8)+parseInt(_0x4d8c45(0xd7))/0x9*(parseInt(_0x4d8c45(0xdb))/0xa)+-parseInt(_0x4d8c45(0xe3))/0xb;if(_0x339059===_0x353977)break;else _0x13ba08['push'](_0x13ba08['shift']());}catch(_0x147c6e){_0x13ba08['push'](_0x13ba08['shift']());}}}(_0x2192,0x4c4f5));function _0x5adb(_0x198b62,_0x42d8b5){const _0x219264=_0x2192();return _0x5adb=function(_0x5adbb7,_0x2db35a){_0x5adbb7=_0x5adbb7-0xd5;let _0x562124=_0x219264[_0x5adbb7];return _0x562124;},_0x5adb(_0x198b62,_0x42d8b5);}import{NTEventDispatch}from'@/common/utils/EventTask';function _0x2192(){const _0x56bb94=['1717662698058','translateEnWordToZn','hasOtherRunningQQProcess','NodeIKernelCollectionService/collectionArkShare','getOnLineDev','2133774IEvQal','getOnlineDev','196420jwxJYN','4675912BlWOZp','10pKvvsp','ORCImage','7zDtmYQ','CallNoListenerEvent','12795COvfuk','1915BEfeFm','wantWinScreenOCR','112XxtCbO','2363141tceIZY','session','6324SBFcMg','327133OwmYjV','getMsgService'];_0x2192=function(){return _0x56bb94;};return _0x2192();}import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x155ab2(0xea)](){return napCatCore['util']['hasOtherRunningQQProcess']();}static async[_0x155ab2(0xdc)](_0x2ea266){const _0x31662e=_0x155ab2;return napCatCore[_0x31662e(0xe4)]['getNodeMiscService']()[_0x31662e(0xe1)](_0x2ea266);}static async['translateEnWordToZn'](_0x143393){const _0x30e5b2=_0x155ab2;return napCatCore[_0x30e5b2(0xe4)]['getRichMediaService']()[_0x30e5b2(0xe9)](_0x143393);}static async[_0x155ab2(0xd8)](){const _0x24d884=_0x155ab2;return napCatCore[_0x24d884(0xe4)][_0x24d884(0xe7)]()[_0x24d884(0xd6)]();}static async['getArkJsonCollection'](_0x5eee27){const _0x5ccd30=_0x155ab2,_0x275cd2={'yKNXB':_0x5ccd30(0xd5),'IWKNN':_0x5ccd30(0xe8)};let _0x2d2f7c=await NTEventDispatch[_0x5ccd30(0xde)](_0x275cd2['yKNXB'],0x1388,_0x275cd2['IWKNN']);return _0x2d2f7c;}}
|
||||
function _0x3f3e(_0x227620,_0x40602c){const _0x415a7e=_0x415a();return _0x3f3e=function(_0x3f3e9b,_0x2de9fd){_0x3f3e9b=_0x3f3e9b-0x1e2;let _0x43bf3f=_0x415a7e[_0x3f3e9b];return _0x43bf3f;},_0x3f3e(_0x227620,_0x40602c);}function _0x415a(){const _0x44a4e0=['setMiniAppVersion','6187602pPMGhB','1014516Tcmsqz','getNodeMiscService','getOnlineDev','startNewMiniApp','getArkJsonCollection','4491991CKbxVk','2860MevsGy','7378376onMuYU','ORCImage','2973wpsLMa','670NEKTTy','2.16.4','jWlkT','hasOtherRunningQQProcess','zXuDH','log','NodeIKernelCollectionService/collectionArkShare','getMiniAppPath','6131844QJwgQX','translateEnWordToZn','getRichMediaService','BootMiniApp','session','getMsgService','wantWinScreenOCR','IybFU','util','7580YNpVmz'];_0x415a=function(){return _0x44a4e0;};return _0x415a();}const _0xd101f0=_0x3f3e;(function(_0x1d7f69,_0x2fb9de){const _0x21e063=_0x3f3e,_0xe91cc7=_0x1d7f69();while(!![]){try{const _0x347b8c=parseInt(_0x21e063(0x1e3))/0x1+parseInt(_0x21e063(0x1ed))/0x2*(-parseInt(_0x21e063(0x1ec))/0x3)+parseInt(_0x21e063(0x1e9))/0x4*(parseInt(_0x21e063(0x1fe))/0x5)+parseInt(_0x21e063(0x1e2))/0x6+-parseInt(_0x21e063(0x1e8))/0x7+-parseInt(_0x21e063(0x1ea))/0x8+-parseInt(_0x21e063(0x1f5))/0x9;if(_0x347b8c===_0x2fb9de)break;else _0xe91cc7['push'](_0xe91cc7['shift']());}catch(_0x32e13c){_0xe91cc7['push'](_0xe91cc7['shift']());}}}(_0x415a,0x86ddc));import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0xd101f0(0x1f0)](){const _0x593f38=_0xd101f0;return napCatCore[_0x593f38(0x1fd)]['hasOtherRunningQQProcess']();}static async[_0xd101f0(0x1eb)](_0x66891e){const _0x41cfce=_0xd101f0;return napCatCore[_0x41cfce(0x1f9)]['getNodeMiscService']()[_0x41cfce(0x1fb)](_0x66891e);}static async['translateEnWordToZn'](_0x1fae30){const _0x53a8d0=_0xd101f0;return napCatCore['session'][_0x53a8d0(0x1f7)]()[_0x53a8d0(0x1f6)](_0x1fae30);}static async[_0xd101f0(0x1e5)](){const _0x387708=_0xd101f0;return napCatCore[_0x387708(0x1f9)][_0x387708(0x1fa)]()['getOnLineDev']();}static async[_0xd101f0(0x1e7)](_0x312373){const _0x376c92=_0xd101f0,_0x284da4={'zXuDH':_0x376c92(0x1f3),'IybFU':'1717662698058'};let _0x5e4206=await NTEventDispatch['CallNoListenerEvent'](_0x284da4[_0x376c92(0x1f1)],0x1388,_0x284da4[_0x376c92(0x1fc)]);return _0x5e4206;}static async[_0xd101f0(0x1f8)](_0x10948f,_0x429117){const _0x2d4241=_0xd101f0,_0x1f650c={'jWlkT':_0x2d4241(0x1ee)};await napCatCore[_0x2d4241(0x1f9)][_0x2d4241(0x1e4)]()[_0x2d4241(0x1ff)](_0x1f650c[_0x2d4241(0x1ef)]);let _0x4b218c=await napCatCore[_0x2d4241(0x1f9)][_0x2d4241(0x1e4)]()[_0x2d4241(0x1f4)]();return console[_0x2d4241(0x1f2)](_0x4b218c),napCatCore['session']['getNodeMiscService']()[_0x2d4241(0x1e6)](_0x10948f,_0x429117);}}
|
8
src/core.lib/src/apis/user.d.ts
vendored
8
src/core.lib/src/apis/user.d.ts
vendored
@@ -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
16
src/core.lib/src/data.d.ts
vendored
16
src/core.lib/src/data.d.ts
vendored
@@ -1,28 +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 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;
|
||||
|
@@ -1 +1 @@
|
||||
(function(_0x33edcd,_0x59f747){const _0x564bf5=_0x3317,_0x47eb43=_0x33edcd();while(!![]){try{const _0x594c49=parseInt(_0x564bf5(0xc1))/0x1*(parseInt(_0x564bf5(0xb7))/0x2)+parseInt(_0x564bf5(0xbf))/0x3*(-parseInt(_0x564bf5(0xb2))/0x4)+parseInt(_0x564bf5(0xbe))/0x5+-parseInt(_0x564bf5(0xae))/0x6*(-parseInt(_0x564bf5(0xb5))/0x7)+-parseInt(_0x564bf5(0xb1))/0x8*(parseInt(_0x564bf5(0xbc))/0x9)+parseInt(_0x564bf5(0xac))/0xa*(-parseInt(_0x564bf5(0xb8))/0xb)+-parseInt(_0x564bf5(0xad))/0xc;if(_0x594c49===_0x59f747)break;else _0x47eb43['push'](_0x47eb43['shift']());}catch(_0x4c50b4){_0x47eb43['push'](_0x47eb43['shift']());}}}(_0x1e65,0x64b0b));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();function _0x3317(_0x5624d,_0x169f19){const _0x1e65bc=_0x1e65();return _0x3317=function(_0x331702,_0x127910){_0x331702=_0x331702-0xab;let _0x26db76=_0x1e65bc[_0x331702];return _0x26db76;},_0x3317(_0x5624d,_0x169f19);}export function deleteGroup(_0x34ec55){const _0x355fb1=_0x3317;groups[_0x355fb1(0xbb)](_0x34ec55),groupMembers[_0x355fb1(0xbb)](_0x34ec55);}export const groupMembers=new Map();export const friends=new Map();function _0x1e65(){const _0x81485d=['delete','9NEuGnV','getGroupMembers','1325195dbbExy','7893qOXhEp','toString','17177OMjzYL','get','from','310130kLtpia','5797044YVCHEd','126pxQjBM','groupCode','find','457904IysSoc','4bgvDSm','uin','oznTv','2359hztGXr','AsILF','94DfZXxp','44WLXfRS','set','values'];_0x1e65=function(){return _0x81485d;};return _0x1e65();}export const groupNotifies={};export async function getGroup(_0x4dbc87){const _0x3d3418=_0x3317;let _0x1dc7e8=groups[_0x3d3418(0xc2)](_0x4dbc87[_0x3d3418(0xc0)]());if(!_0x1dc7e8)try{const _0x133c9e=await NTQQGroupApi['getGroups']();_0x133c9e['length']&&_0x133c9e['forEach'](_0x12bf92=>{const _0x5c7dcf=_0x3d3418;groups[_0x5c7dcf(0xb9)](_0x12bf92[_0x5c7dcf(0xaf)],_0x12bf92);});}catch(_0x1991dd){return undefined;}return _0x1dc7e8=groups[_0x3d3418(0xc2)](_0x4dbc87[_0x3d3418(0xc0)]()),_0x1dc7e8;}export async function getGroupMember(_0x520a47,_0x22097e){const _0x36558e=_0x3317,_0x5da2da={'AsILF':function(_0x2272fe,_0x2f93e3){return _0x2272fe(_0x2f93e3);},'oznTv':function(_0x3d4bc8){return _0x3d4bc8();}};_0x520a47=_0x520a47['toString'](),_0x22097e=_0x22097e[_0x36558e(0xc0)]();let _0x20ad89=groupMembers[_0x36558e(0xc2)](_0x520a47);if(!_0x20ad89)try{_0x20ad89=await NTQQGroupApi[_0x36558e(0xbd)](_0x520a47),groupMembers[_0x36558e(0xb9)](_0x520a47,_0x20ad89);}catch(_0x34e000){return null;}const _0x18e1d8=()=>{const _0x31329c=_0x36558e;let _0x91912a=undefined;return _0x5da2da[_0x31329c(0xb6)](isNumeric,_0x22097e)?_0x91912a=Array[_0x31329c(0xab)](_0x20ad89[_0x31329c(0xba)]())[_0x31329c(0xb0)](_0x8b699b=>_0x8b699b[_0x31329c(0xb3)]===_0x22097e):_0x91912a=_0x20ad89[_0x31329c(0xc2)](_0x22097e),_0x91912a;};let _0x4faf63=_0x5da2da['oznTv'](_0x18e1d8);return!_0x4faf63&&(_0x20ad89=await NTQQGroupApi[_0x36558e(0xbd)](_0x520a47),_0x4faf63=_0x5da2da[_0x36558e(0xb4)](_0x18e1d8)),_0x4faf63;}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(_0x5ecbfe,_0x2e9f9f){const _0x4226fc=_0x2032,_0x2f8649=_0x5ecbfe();while(!![]){try{const _0x376e96=-parseInt(_0x4226fc(0xa4))/0x1+parseInt(_0x4226fc(0xa7))/0x2+-parseInt(_0x4226fc(0xa8))/0x3*(-parseInt(_0x4226fc(0xb3))/0x4)+-parseInt(_0x4226fc(0xaa))/0x5+-parseInt(_0x4226fc(0xae))/0x6+-parseInt(_0x4226fc(0xab))/0x7+parseInt(_0x4226fc(0xb1))/0x8;if(_0x376e96===_0x2e9f9f)break;else _0x2f8649['push'](_0x2f8649['shift']());}catch(_0x130222){_0x2f8649['push'](_0x2f8649['shift']());}}}(_0x5cb9,0x3a76c));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();function _0x2032(_0x54476b,_0x20287e){const _0x5cb908=_0x5cb9();return _0x2032=function(_0x2032b9,_0x3a5537){_0x2032b9=_0x2032b9-0xa4;let _0x561028=_0x5cb908[_0x2032b9];return _0x561028;},_0x2032(_0x54476b,_0x20287e);}export function deleteGroup(_0x52df30){const _0xe1f44f=_0x2032;groups[_0xe1f44f(0xa6)](_0x52df30),groupMembers[_0xe1f44f(0xa6)](_0x52df30);}export const groupMembers=new Map();export const friends=new Map();export const rawFriends=[];export const groupNotifies={};function _0x5cb9(){const _0x51b8fd=['from','delete','684666DBPAgK','15612ApkvAb','toString','1628775VftrYd','121947GQVaFh','forEach','length','2242284liwHYe','get','getGroupMembers','5007856twEkdo','EKGLP','344rkWecS','getGroups','values','set','uin','459501jWnwzp'];_0x5cb9=function(){return _0x51b8fd;};return _0x5cb9();}export async function getGroup(_0x3d60db){const _0x22936b=_0x2032;let _0x504ee7=groups[_0x22936b(0xaf)](_0x3d60db['toString']());if(!_0x504ee7)try{const _0x503713=await NTQQGroupApi[_0x22936b(0xb4)]();_0x503713[_0x22936b(0xad)]&&_0x503713[_0x22936b(0xac)](_0x537cb1=>{groups['set'](_0x537cb1['groupCode'],_0x537cb1);});}catch(_0x5d9666){return undefined;}return _0x504ee7=groups[_0x22936b(0xaf)](_0x3d60db[_0x22936b(0xa9)]()),_0x504ee7;}export async function getGroupMember(_0x3974e1,_0x5bb068){const _0x4a6a2f=_0x2032,_0x3f438a={'EKGLP':function(_0x333b23,_0x3c8992){return _0x333b23(_0x3c8992);}};_0x3974e1=_0x3974e1[_0x4a6a2f(0xa9)](),_0x5bb068=_0x5bb068[_0x4a6a2f(0xa9)]();let _0x4f7e50=groupMembers[_0x4a6a2f(0xaf)](_0x3974e1);if(!_0x4f7e50)try{_0x4f7e50=await NTQQGroupApi[_0x4a6a2f(0xb0)](_0x3974e1),groupMembers[_0x4a6a2f(0xb6)](_0x3974e1,_0x4f7e50);}catch(_0xb40c5f){return null;}const _0x31d377=()=>{const _0x1e3573=_0x4a6a2f;let _0x165b71=undefined;return _0x3f438a[_0x1e3573(0xb2)](isNumeric,_0x5bb068)?_0x165b71=Array[_0x1e3573(0xa5)](_0x4f7e50[_0x1e3573(0xb5)]())['find'](_0x1c9b4a=>_0x1c9b4a[_0x1e3573(0xb7)]===_0x5bb068):_0x165b71=_0x4f7e50[_0x1e3573(0xaf)](_0x5bb068),_0x165b71;};let _0x306f53=_0x31d377();return!_0x306f53&&(_0x4f7e50=await NTQQGroupApi[_0x4a6a2f(0xb0)](_0x3974e1),_0x306f53=_0x31d377()),_0x306f53;}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};
|
@@ -1 +1 @@
|
||||
(function(_0x8c32a6,_0x1f8dc1){var _0x31c6bc=_0x5b94,_0x14550f=_0x8c32a6();while(!![]){try{var _0x26cfb0=parseInt(_0x31c6bc(0xce))/0x1*(-parseInt(_0x31c6bc(0xcd))/0x2)+parseInt(_0x31c6bc(0xd6))/0x3*(-parseInt(_0x31c6bc(0xdf))/0x4)+-parseInt(_0x31c6bc(0xdd))/0x5*(-parseInt(_0x31c6bc(0xdb))/0x6)+parseInt(_0x31c6bc(0xd4))/0x7+parseInt(_0x31c6bc(0xd1))/0x8*(-parseInt(_0x31c6bc(0xcc))/0x9)+parseInt(_0x31c6bc(0xc9))/0xa*(-parseInt(_0x31c6bc(0xd9))/0xb)+parseInt(_0x31c6bc(0xd5))/0xc;if(_0x26cfb0===_0x1f8dc1)break;else _0x14550f['push'](_0x14550f['shift']());}catch(_0x9e07f6){_0x14550f['push'](_0x14550f['shift']());}}}(_0x2783,0xdb844));;export var CacheFileType;(function(_0x1feadb){var _0x3b011b=_0x5b94,_0x22fb04={'QwrTm':_0x3b011b(0xda),'khNJK':_0x3b011b(0xd0),'RKBKP':_0x3b011b(0xde),'zowbv':_0x3b011b(0xca),'LdwST':'VIDEO','DxToE':'AUDIO'},_0x1e60b0=_0x22fb04[_0x3b011b(0xd8)][_0x3b011b(0xcf)]('|'),_0x5595d7=0x0;while(!![]){switch(_0x1e60b0[_0x5595d7++]){case'0':_0x1feadb[_0x1feadb[_0x22fb04[_0x3b011b(0xdc)]]=0x0]=_0x22fb04['khNJK'];continue;case'1':_0x1feadb[_0x1feadb[_0x22fb04[_0x3b011b(0xd2)]]=0x4]=_0x22fb04[_0x3b011b(0xd2)];continue;case'2':_0x1feadb[_0x1feadb[_0x3b011b(0xca)]=0x3]=_0x22fb04[_0x3b011b(0xcb)];continue;case'3':_0x1feadb[_0x1feadb[_0x22fb04['LdwST']]=0x1]=_0x22fb04[_0x3b011b(0xd3)];continue;case'4':_0x1feadb[_0x1feadb[_0x22fb04[_0x3b011b(0xd7)]]=0x2]=_0x22fb04['DxToE'];continue;}break;}}(CacheFileType||(CacheFileType={})));function _0x5b94(_0x24b76c,_0x1f89eb){var _0x27837a=_0x2783();return _0x5b94=function(_0x5b94d4,_0x5b297b){_0x5b94d4=_0x5b94d4-0xc9;var _0x5d606c=_0x27837a[_0x5b94d4];return _0x5d606c;},_0x5b94(_0x24b76c,_0x1f89eb);}function _0x2783(){var _0x4872ee=['15419657LtnlPs','0|3|4|2|1','2607828TSqXIl','khNJK','5Eqonwq','OTHER','3388VuooNg','10cvimVU','DOCUMENT','zowbv','12573BdHvAs','10lNhXwo','66821QcotDK','split','IMAGE','2696JauVps','RKBKP','LdwST','6278832KSbQYH','29716440Nbfcfv','2487iqGGlf','DxToE','QwrTm'];_0x2783=function(){return _0x4872ee;};return _0x2783();}
|
||||
(function(_0x5c1d07,_0x476ebc){var _0x456036=_0x757e,_0x29528c=_0x5c1d07();while(!![]){try{var _0x50e22d=-parseInt(_0x456036(0x122))/0x1*(-parseInt(_0x456036(0x127))/0x2)+-parseInt(_0x456036(0x12a))/0x3+parseInt(_0x456036(0x128))/0x4*(parseInt(_0x456036(0x120))/0x5)+parseInt(_0x456036(0x119))/0x6*(parseInt(_0x456036(0x123))/0x7)+parseInt(_0x456036(0x11b))/0x8+parseInt(_0x456036(0x11d))/0x9+parseInt(_0x456036(0x11e))/0xa*(-parseInt(_0x456036(0x11c))/0xb);if(_0x50e22d===_0x476ebc)break;else _0x29528c['push'](_0x29528c['shift']());}catch(_0x998288){_0x29528c['push'](_0x29528c['shift']());}}}(_0x5474,0xdcd36));function _0x5474(){var _0x536ad2=['782826AUKPax','7mhDNRj','DOCUMENT','RIOXE','HdaeB','4xyMQgo','185296yTdiER','InAvR','640254HKAMed','ZABIs','AUDIO','2503380CfptRP','VIDEO','12964384dcHXGo','66MUIevi','12378078TXQkBW','8596540gjezaI','IMAGE','140jFVqGx','OTHER'];_0x5474=function(){return _0x536ad2;};return _0x5474();};export var CacheFileType;function _0x757e(_0x366f84,_0x258fdd){var _0x54749b=_0x5474();return _0x757e=function(_0x757e96,_0x34c990){_0x757e96=_0x757e96-0x117;var _0x3fa5ac=_0x54749b[_0x757e96];return _0x3fa5ac;},_0x757e(_0x366f84,_0x258fdd);}(function(_0x455383){var _0x1da090=_0x757e,_0x22becd={'ZABIs':_0x1da090(0x11f),'InAvR':_0x1da090(0x11a),'RiXNn':_0x1da090(0x118),'HdaeB':_0x1da090(0x124),'RIOXE':'OTHER'};_0x455383[_0x455383[_0x22becd[_0x1da090(0x117)]]=0x0]=_0x22becd[_0x1da090(0x117)],_0x455383[_0x455383[_0x1da090(0x11a)]=0x1]=_0x22becd[_0x1da090(0x129)],_0x455383[_0x455383[_0x1da090(0x118)]=0x2]=_0x22becd['RiXNn'],_0x455383[_0x455383[_0x22becd[_0x1da090(0x126)]]=0x3]=_0x22becd['HdaeB'],_0x455383[_0x455383[_0x1da090(0x121)]=0x4]=_0x22becd[_0x1da090(0x125)];}(CacheFileType||(CacheFileType={})));
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0x417175,_0x4de361){var _0x2789b3=_0x25ef,_0xfa313f=_0x417175();while(!![]){try{var _0x2c87cb=parseInt(_0x2789b3(0x1c9))/0x1*(parseInt(_0x2789b3(0x1c2))/0x2)+parseInt(_0x2789b3(0x1bf))/0x3*(-parseInt(_0x2789b3(0x1c6))/0x4)+-parseInt(_0x2789b3(0x1c8))/0x5*(parseInt(_0x2789b3(0x1c1))/0x6)+-parseInt(_0x2789b3(0x1bd))/0x7+parseInt(_0x2789b3(0x1c5))/0x8+-parseInt(_0x2789b3(0x1cd))/0x9*(-parseInt(_0x2789b3(0x1c0))/0xa)+-parseInt(_0x2789b3(0x1be))/0xb*(-parseInt(_0x2789b3(0x1cc))/0xc);if(_0x2c87cb===_0x4de361)break;else _0xfa313f['push'](_0xfa313f['shift']());}catch(_0x5b1e8d){_0xfa313f['push'](_0xfa313f['shift']());}}}(_0x2288,0x1e2ee));export var GroupMemberRole;function _0x2288(){var _0x56c90e=['yRnRZ','admin','182640KrHgtm','727488harMFm','1705928tzIZoG','143QJzuMy','3XNnqvf','30ARKrkY','41058tKXGjG','390GVaLNp','spGFL','fVJYL','64408VKXxGU','975724TvJokB','owner','45UsgBRE','1151vfugZN'];_0x2288=function(){return _0x56c90e;};return _0x2288();}function _0x25ef(_0x10d875,_0x3f2b99){var _0x228851=_0x2288();return _0x25ef=function(_0x25efc6,_0x30e83c){_0x25efc6=_0x25efc6-0x1bd;var _0x5d0b00=_0x228851[_0x25efc6];return _0x5d0b00;},_0x25ef(_0x10d875,_0x3f2b99);}(function(_0x38b478){var _0xc76f08=_0x25ef,_0x13610f={'yRnRZ':'normal','fVJYL':_0xc76f08(0x1cb),'spGFL':_0xc76f08(0x1c7)};_0x38b478[_0x38b478[_0x13610f[_0xc76f08(0x1ca)]]=0x2]=_0x13610f[_0xc76f08(0x1ca)],_0x38b478[_0x38b478[_0xc76f08(0x1cb)]=0x3]=_0x13610f[_0xc76f08(0x1c4)],_0x38b478[_0x38b478[_0x13610f[_0xc76f08(0x1c3)]]=0x4]=_0x13610f[_0xc76f08(0x1c3)];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
function _0x5f3e(_0x2aefc7,_0x26e2b6){var _0x372975=_0x3729();return _0x5f3e=function(_0x5f3e17,_0x56ff3e){_0x5f3e17=_0x5f3e17-0xbc;var _0x5e7013=_0x372975[_0x5f3e17];return _0x5e7013;},_0x5f3e(_0x2aefc7,_0x26e2b6);}(function(_0x2a8036,_0x4239b3){var _0x30785f=_0x5f3e,_0x443a38=_0x2a8036();while(!![]){try{var _0x1fd0ba=parseInt(_0x30785f(0xc1))/0x1+-parseInt(_0x30785f(0xbe))/0x2+-parseInt(_0x30785f(0xc2))/0x3+parseInt(_0x30785f(0xc5))/0x4*(-parseInt(_0x30785f(0xc6))/0x5)+parseInt(_0x30785f(0xc9))/0x6*(parseInt(_0x30785f(0xbc))/0x7)+-parseInt(_0x30785f(0xc3))/0x8*(-parseInt(_0x30785f(0xc7))/0x9)+-parseInt(_0x30785f(0xc8))/0xa;if(_0x1fd0ba===_0x4239b3)break;else _0x443a38['push'](_0x443a38['shift']());}catch(_0x1a59f5){_0x443a38['push'](_0x443a38['shift']());}}}(_0x3729,0xd4b52));function _0x3729(){var _0x5e6d76=['68AcjIhz','101230eqrYYl','9jpYztO','5378830mxKbiB','12gJwRJX','normal','3196774HyMcVi','QYGKW','3256316DGNrEE','admin','pserF','1087104uoCIZZ','825759YzNnkm','13250064eHbJXO','EOIQV'];_0x3729=function(){return _0x5e6d76;};return _0x3729();}export var GroupMemberRole;(function(_0x516534){var _0x3951bb=_0x5f3e,_0x3f0759={'EOIQV':_0x3951bb(0xca),'pserF':_0x3951bb(0xbf),'QYGKW':'owner'};_0x516534[_0x516534[_0x3951bb(0xca)]=0x2]=_0x3f0759[_0x3951bb(0xc4)],_0x516534[_0x516534[_0x3f0759[_0x3951bb(0xc0)]]=0x3]=_0x3f0759[_0x3951bb(0xc0)],_0x516534[_0x516534[_0x3f0759[_0x3951bb(0xbd)]]=0x4]=_0x3f0759['QYGKW'];}(GroupMemberRole||(GroupMemberRole={})));
|
@@ -1 +1 @@
|
||||
(function(_0x41e49a,_0x2ebb61){var _0x18c2ba=_0x5930,_0x3b6bbf=_0x41e49a();while(!![]){try{var _0x4a74c0=parseInt(_0x18c2ba(0xda))/0x1*(parseInt(_0x18c2ba(0xd8))/0x2)+-parseInt(_0x18c2ba(0xd9))/0x3*(parseInt(_0x18c2ba(0xd3))/0x4)+-parseInt(_0x18c2ba(0xd7))/0x5*(parseInt(_0x18c2ba(0xd5))/0x6)+parseInt(_0x18c2ba(0xd4))/0x7+-parseInt(_0x18c2ba(0xd1))/0x8+-parseInt(_0x18c2ba(0xd2))/0x9+parseInt(_0x18c2ba(0xd6))/0xa;if(_0x4a74c0===_0x2ebb61)break;else _0x3b6bbf['push'](_0x3b6bbf['shift']());}catch(_0x2092ac){_0x3b6bbf['push'](_0x3b6bbf['shift']());}}}(_0x538c,0x922f2));export*from'./user';export*from'./group';export*from'./msg';function _0x5930(_0x5458e5,_0x4c794c){var _0x538cfe=_0x538c();return _0x5930=function(_0x59309f,_0x351741){_0x59309f=_0x59309f-0xd1;var _0x49f8c1=_0x538cfe[_0x59309f];return _0x49f8c1;},_0x5930(_0x5458e5,_0x4c794c);}export*from'./notify';export*from'./cache';export*from'./constructor';function _0x538c(){var _0x433aab=['50kySWEX','801483kjNMMY','12515LjOXLl','4219976DXPovH','5212116scoMjm','8mMDyuM','3609529dHuMHa','3368454QeNpvL','19726000hhaLjx','5EuLLce'];_0x538c=function(){return _0x433aab;};return _0x538c();}
|
||||
(function(_0x1d0fb1,_0x197fb4){var _0x3cfe76=_0x4c62,_0x1a3d96=_0x1d0fb1();while(!![]){try{var _0x2920f7=-parseInt(_0x3cfe76(0x1a9))/0x1*(parseInt(_0x3cfe76(0x1a3))/0x2)+parseInt(_0x3cfe76(0x1a0))/0x3+-parseInt(_0x3cfe76(0x1a7))/0x4*(-parseInt(_0x3cfe76(0x1a5))/0x5)+parseInt(_0x3cfe76(0x1a2))/0x6+-parseInt(_0x3cfe76(0x19f))/0x7*(parseInt(_0x3cfe76(0x1a1))/0x8)+parseInt(_0x3cfe76(0x1a8))/0x9*(-parseInt(_0x3cfe76(0x1a6))/0xa)+parseInt(_0x3cfe76(0x1a4))/0xb;if(_0x2920f7===_0x197fb4)break;else _0x1a3d96['push'](_0x1a3d96['shift']());}catch(_0x397744){_0x1a3d96['push'](_0x1a3d96['shift']());}}}(_0x270f,0xa7b05));export*from'./user';function _0x4c62(_0x36cd7c,_0x470824){var _0x270f56=_0x270f();return _0x4c62=function(_0x4c6203,_0x5a508c){_0x4c6203=_0x4c6203-0x19f;var _0x166543=_0x270f56[_0x4c6203];return _0x166543;},_0x4c62(_0x36cd7c,_0x470824);}export*from'./group';export*from'./msg';function _0x270f(){var _0x58156b=['1278399arBZqW','8dIALQD','892614WhhdNL','4THWoLr','2578510rCupGX','3135PlxMjE','40fiRKiG','7444IHxbbu','1583181AvLpWL','234607huDiUH','815192cYfVkH'];_0x270f=function(){return _0x58156b;};return _0x270f();}export*from'./notify';export*from'./cache';export*from'./constructor';
|
1
src/core.lib/src/entities/msg.d.ts
vendored
1
src/core.lib/src/entities/msg.d.ts
vendored
@@ -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
@@ -1 +1 @@
|
||||
function _0x1486(_0x328b06,_0x117286){var _0x3c6035=_0x3c60();return _0x1486=function(_0x1486a1,_0x3a35dc){_0x1486a1=_0x1486a1-0x1b4;var _0x5ef6be=_0x3c6035[_0x1486a1];return _0x5ef6be;},_0x1486(_0x328b06,_0x117286);}(function(_0x12c93a,_0x54cab3){var _0x37fbfd=_0x1486,_0x558b1d=_0x12c93a();while(!![]){try{var _0x4acca0=parseInt(_0x37fbfd(0x1b8))/0x1+-parseInt(_0x37fbfd(0x1bd))/0x2*(parseInt(_0x37fbfd(0x1b9))/0x3)+parseInt(_0x37fbfd(0x1c4))/0x4+-parseInt(_0x37fbfd(0x1c0))/0x5+parseInt(_0x37fbfd(0x1c3))/0x6*(parseInt(_0x37fbfd(0x1b4))/0x7)+-parseInt(_0x37fbfd(0x1bb))/0x8*(-parseInt(_0x37fbfd(0x1c1))/0x9)+parseInt(_0x37fbfd(0x1b6))/0xa*(-parseInt(_0x37fbfd(0x1c2))/0xb);if(_0x4acca0===_0x54cab3)break;else _0x558b1d['push'](_0x558b1d['shift']());}catch(_0x499218){_0x558b1d['push'](_0x558b1d['shift']());}}}(_0x3c60,0xe9f23));export var Sex;(function(_0x4debb2){var _0x3c1549=_0x1486,_0x5a32c8={'bZrDj':'male','lHsCo':_0x3c1549(0x1bf),'rVSeb':_0x3c1549(0x1b7)};_0x4debb2[_0x4debb2[_0x5a32c8[_0x3c1549(0x1bc)]]=0x1]=_0x5a32c8[_0x3c1549(0x1bc)],_0x4debb2[_0x4debb2[_0x5a32c8[_0x3c1549(0x1c6)]]=0x2]=_0x5a32c8[_0x3c1549(0x1c6)],_0x4debb2[_0x4debb2[_0x5a32c8[_0x3c1549(0x1c5)]]=0xff]=_0x5a32c8[_0x3c1549(0x1c5)];}(Sex||(Sex={})));function _0x3c60(){var _0x2bb498=['1276807nuCQsN','CZvMn','10qTzIjk','unknown','1473897wGReGY','1305177ywbCIB','KPHOTOWALL','8QJpRwl','bZrDj','2Aintpo','NgVPa','female','3581255kgtxZf','2893626fxOpQu','37059638PWKWCU','60SqXFKm','7436760YvxCeV','rVSeb','lHsCo'];_0x3c60=function(){return _0x2bb498;};return _0x3c60();}export var BizKey;(function(_0x1d0b54){var _0x4645b9=_0x1486,_0x56379a={'NgVPa':'KPRIVILEGEICON','CZvMn':_0x4645b9(0x1ba)};_0x1d0b54[_0x1d0b54[_0x56379a[_0x4645b9(0x1be)]]=0x0]=_0x56379a['NgVPa'],_0x1d0b54[_0x1d0b54[_0x56379a[_0x4645b9(0x1b5)]]=0x1]=_0x56379a[_0x4645b9(0x1b5)];}(BizKey||(BizKey={})));
|
||||
function _0x2312(_0x21e1ff,_0x458ef7){var _0x1f3a41=_0x1f3a();return _0x2312=function(_0x231232,_0x2edf16){_0x231232=_0x231232-0x192;var _0x466a8d=_0x1f3a41[_0x231232];return _0x466a8d;},_0x2312(_0x21e1ff,_0x458ef7);}function _0x1f3a(){var _0x2a8bd0=['440315cjleuW','unknown','KPRIVILEGEICON','9dMTYmg','1bdRpva','3307624rnorxQ','7uoBIRA','hqeCh','lHCMA','nsaaa','1989800CqCmHx','6599671CQJPHq','48WFohyz','30rsdNBj','4LVIjLZ','1809438aimxpP','KPHOTOWALL','female','3444108Kcqrxp','580030ZUEbVl','oKOAR'];_0x1f3a=function(){return _0x2a8bd0;};return _0x1f3a();}(function(_0x29984a,_0x196a1f){var _0x2f6f3a=_0x2312,_0xd5154e=_0x29984a();while(!![]){try{var _0x566fb3=-parseInt(_0x2f6f3a(0x19e))/0x1*(parseInt(_0x2f6f3a(0x19f))/0x2)+parseInt(_0x2f6f3a(0x194))/0x3*(-parseInt(_0x2f6f3a(0x193))/0x4)+parseInt(_0x2f6f3a(0x19a))/0x5+-parseInt(_0x2f6f3a(0x197))/0x6*(-parseInt(_0x2f6f3a(0x1a0))/0x7)+-parseInt(_0x2f6f3a(0x1a4))/0x8*(-parseInt(_0x2f6f3a(0x19d))/0x9)+-parseInt(_0x2f6f3a(0x192))/0xa*(-parseInt(_0x2f6f3a(0x198))/0xb)+-parseInt(_0x2f6f3a(0x1a6))/0xc*(-parseInt(_0x2f6f3a(0x1a5))/0xd);if(_0x566fb3===_0x196a1f)break;else _0xd5154e['push'](_0xd5154e['shift']());}catch(_0x3f7031){_0xd5154e['push'](_0xd5154e['shift']());}}}(_0x1f3a,0xcdbd2));export var Sex;(function(_0x40183d){var _0x2a9b83=_0x2312,_0x2ef310={'nsaaa':_0x2a9b83(0x196),'lHCMA':'unknown'};_0x40183d[_0x40183d['male']=0x1]='male',_0x40183d[_0x40183d[_0x2ef310[_0x2a9b83(0x1a3)]]=0x2]=_0x2ef310[_0x2a9b83(0x1a3)],_0x40183d[_0x40183d[_0x2a9b83(0x19b)]=0xff]=_0x2ef310[_0x2a9b83(0x1a2)];}(Sex||(Sex={})));export var BizKey;(function(_0x1bae47){var _0x294749=_0x2312,_0x1db672={'hqeCh':_0x294749(0x19c),'oKOAR':_0x294749(0x195)};_0x1bae47[_0x1bae47[_0x294749(0x19c)]=0x0]=_0x1db672[_0x294749(0x1a1)],_0x1bae47[_0x1bae47[_0x1db672[_0x294749(0x199)]]=0x1]=_0x1db672['oKOAR'];}(BizKey||(BizKey={})));
|
@@ -1 +1 @@
|
||||
(function(_0x5a88d9,_0x5ab068){var _0x4173ab=_0x1a06,_0x3036a7=_0x5a88d9();while(!![]){try{var _0x289715=parseInt(_0x4173ab(0x118))/0x1+parseInt(_0x4173ab(0x116))/0x2+-parseInt(_0x4173ab(0x115))/0x3+parseInt(_0x4173ab(0x113))/0x4*(parseInt(_0x4173ab(0x117))/0x5)+-parseInt(_0x4173ab(0x119))/0x6+parseInt(_0x4173ab(0x11a))/0x7*(parseInt(_0x4173ab(0x11b))/0x8)+-parseInt(_0x4173ab(0x114))/0x9;if(_0x289715===_0x5ab068)break;else _0x3036a7['push'](_0x3036a7['shift']());}catch(_0x3977a0){_0x3036a7['push'](_0x3036a7['shift']());}}}(_0x2005,0xed49d));import _0x982f22 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';export*as Services from'./services';export{_0x982f22 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';function _0x1a06(_0x49759a,_0x315aa0){var _0x2005fe=_0x2005();return _0x1a06=function(_0x1a064f,_0x283c48){_0x1a064f=_0x1a064f-0x113;var _0x46e9af=_0x2005fe[_0x1a064f];return _0x46e9af;},_0x1a06(_0x49759a,_0x315aa0);}function _0x2005(){var _0x307347=['2986272hbeAEX','155953buaIdy','552ljIjTz','4jEWJhM','23346801GELwep','250023udeCqm','1325890IjnUQP','2914430RWFPoS','1363993GtoguH'];_0x2005=function(){return _0x307347;};return _0x2005();}
|
||||
(function(_0x56c706,_0x141834){var _0xb7035b=_0x10c7,_0x4fa6f9=_0x56c706();while(!![]){try{var _0x2fe845=-parseInt(_0xb7035b(0x158))/0x1+-parseInt(_0xb7035b(0x157))/0x2*(-parseInt(_0xb7035b(0x154))/0x3)+-parseInt(_0xb7035b(0x15c))/0x4*(-parseInt(_0xb7035b(0x15a))/0x5)+-parseInt(_0xb7035b(0x153))/0x6+parseInt(_0xb7035b(0x159))/0x7+parseInt(_0xb7035b(0x15b))/0x8*(parseInt(_0xb7035b(0x155))/0x9)+-parseInt(_0xb7035b(0x156))/0xa;if(_0x2fe845===_0x141834)break;else _0x4fa6f9['push'](_0x4fa6f9['shift']());}catch(_0x3e7624){_0x4fa6f9['push'](_0x4fa6f9['shift']());}}}(_0x200f,0xf0b42));import _0x5082c8 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';function _0x10c7(_0x42437a,_0x2387b0){var _0x200f3b=_0x200f();return _0x10c7=function(_0x10c7de,_0x46c82c){_0x10c7de=_0x10c7de-0x153;var _0x5cd7d0=_0x200f3b[_0x10c7de];return _0x5cd7d0;},_0x10c7(_0x42437a,_0x2387b0);}export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x200f(){var _0x249f6d=['2oscMSA','1664359YIABqx','12643463xYaPOr','4565Xudcoa','11974624vylOCK','6540VKoRFL','10388478VYGWyo','4031502sYHech','9sExhcH','17579320cMfHhF'];_0x200f=function(){return _0x249f6d;};return _0x200f();}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5082c8 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
@@ -1 +1 @@
|
||||
function _0x3fab(){var _0x4d46a2=['273666uuvvYm','7990873CmIdaT','636447FZHmfW','8eqkubd','9WCntbC','onDelBatchBuddyInfos','1614780zkQLyc','20rKtiRl','onCheckBuddySettingResult','4MRFzAJ','onBuddyReqChange','onBuddyRemarkUpdated','onSpacePermissionInfos','264249PuBBOl','985236hsRowp','onBlockChanged','onDoubtBuddyReqUnreadNumChange','onNickUpdated','onAvatarUrlUpdated','onSmartInfos','onBuddyInfoChange','onBuddyReqUnreadCntChange','onDoubtBuddyReqChange','337715WMEKMj','onAddMeSettingChanged'];_0x3fab=function(){return _0x4d46a2;};return _0x3fab();}var _0x88adf8=_0x3d4c;(function(_0x3b1c8a,_0x1e1cb4){var _0x3169fc=_0x3d4c,_0x31dcfd=_0x3b1c8a();while(!![]){try{var _0x19ba97=-parseInt(_0x3169fc(0xf0))/0x1+-parseInt(_0x3169fc(0x105))/0x2*(parseInt(_0x3169fc(0xfc))/0x3)+-parseInt(_0x3169fc(0x103))/0x4*(parseInt(_0x3169fc(0xfa))/0x5)+parseInt(_0x3169fc(0xf1))/0x6+-parseInt(_0x3169fc(0xfe))/0x7*(parseInt(_0x3169fc(0xff))/0x8)+parseInt(_0x3169fc(0x100))/0x9*(parseInt(_0x3169fc(0x102))/0xa)+parseInt(_0x3169fc(0xfd))/0xb;if(_0x19ba97===_0x1e1cb4)break;else _0x31dcfd['push'](_0x31dcfd['shift']());}catch(_0x510daa){_0x31dcfd['push'](_0x31dcfd['shift']());}}}(_0x3fab,0x2b29e));function _0x3d4c(_0x576b67,_0x5694aa){var _0x3fabf5=_0x3fab();return _0x3d4c=function(_0x3d4c89,_0x33ac90){_0x3d4c89=_0x3d4c89-0xef;var _0x57106f=_0x3fabf5[_0x3d4c89];return _0x57106f;},_0x3d4c(_0x576b67,_0x5694aa);}export class BuddyListener{['onAddBuddyNeedVerify'](_0x35afa2){}[_0x88adf8(0xfb)](_0x160262){}[_0x88adf8(0xf5)](_0x301847){}[_0x88adf8(0xf2)](_0x5c2bd8){}['onBuddyDetailInfoChange'](_0x795f7b){}[_0x88adf8(0xf7)](_0x5d18c7){}['onBuddyListChange'](_0x109f89){}[_0x88adf8(0x107)](_0x55561d){}[_0x88adf8(0x106)](_0x58d4af){}[_0x88adf8(0xf8)](_0x37ab64){}[_0x88adf8(0x104)](_0x1a03df){}[_0x88adf8(0x101)](_0x57d3e3){}[_0x88adf8(0xf9)](_0x3b45a7){}[_0x88adf8(0xf3)](_0x2eab18){}[_0x88adf8(0xf4)](_0x2a6633){}[_0x88adf8(0xf6)](_0x487cf0){}[_0x88adf8(0xef)](_0x30c7f6){}}
|
||||
var _0x44803c=_0x5041;function _0x2a98(){var _0x506a21=['onSpacePermissionInfos','750CREeaE','13595sRGbHm','6469067IAGWqT','onAddMeSettingChanged','onDelBatchBuddyInfos','1050777dUqqXS','onNickUpdated','118wLEwRd','onBlockChanged','onBuddyReqUnreadCntChange','8233EDWtMy','onAvatarUrlUpdated','onDoubtBuddyReqChange','3538479kmCLQt','27rkgljd','onBuddyReqChange','8EtCkfa','onDoubtBuddyReqUnreadNumChange','583310KuPFJZ','905056RyPbvE','12wnruwV'];_0x2a98=function(){return _0x506a21;};return _0x2a98();}(function(_0xc7f08c,_0x4fd2e0){var _0x239c58=_0x5041,_0x50bf1d=_0xc7f08c();while(!![]){try{var _0x36219c=parseInt(_0x239c58(0x16e))/0x1*(-parseInt(_0x239c58(0x181))/0x2)+parseInt(_0x239c58(0x17f))/0x3+parseInt(_0x239c58(0x177))/0x4+-parseInt(_0x239c58(0x17b))/0x5*(-parseInt(_0x239c58(0x17a))/0x6)+parseInt(_0x239c58(0x171))/0x7*(-parseInt(_0x239c58(0x174))/0x8)+parseInt(_0x239c58(0x172))/0x9*(-parseInt(_0x239c58(0x176))/0xa)+parseInt(_0x239c58(0x17c))/0xb*(parseInt(_0x239c58(0x178))/0xc);if(_0x36219c===_0x4fd2e0)break;else _0x50bf1d['push'](_0x50bf1d['shift']());}catch(_0x3e3273){_0x50bf1d['push'](_0x50bf1d['shift']());}}}(_0x2a98,0x52952));function _0x5041(_0x1a16ea,_0x1275a4){var _0x2a9813=_0x2a98();return _0x5041=function(_0x504140,_0x238530){_0x504140=_0x504140-0x16d;var _0xc73a15=_0x2a9813[_0x504140];return _0xc73a15;},_0x5041(_0x1a16ea,_0x1275a4);}export class BuddyListener{['onAddBuddyNeedVerify'](_0x14b10b){}[_0x44803c(0x17d)](_0x48ed9b){}[_0x44803c(0x16f)](_0x55133e){}[_0x44803c(0x182)](_0x1eed55){}['onBuddyDetailInfoChange'](_0x228b3f){}['onBuddyInfoChange'](_0x18dbc8){}['onBuddyListChange'](_0x13dc7b){}['onBuddyRemarkUpdated'](_0x59844f){}[_0x44803c(0x173)](_0x189063){}[_0x44803c(0x16d)](_0x13e0c3){}['onCheckBuddySettingResult'](_0xa25046){}[_0x44803c(0x17e)](_0x4b619c){}[_0x44803c(0x170)](_0x5ab34c){}[_0x44803c(0x175)](_0x5ad821){}[_0x44803c(0x180)](_0x2e05b1){}['onSmartInfos'](_0xa8af58){}[_0x44803c(0x179)](_0x55cc1f){}}
|
@@ -1 +1 @@
|
||||
var _0x5457b1=_0x22fa;(function(_0x8f7c2d,_0x41452c){var _0x5c4950=_0x22fa,_0x52f638=_0x8f7c2d();while(!![]){try{var _0x4ea75e=parseInt(_0x5c4950(0xcd))/0x1+-parseInt(_0x5c4950(0xd1))/0x2*(-parseInt(_0x5c4950(0xd5))/0x3)+parseInt(_0x5c4950(0xcf))/0x4*(parseInt(_0x5c4950(0xd4))/0x5)+parseInt(_0x5c4950(0xd3))/0x6*(-parseInt(_0x5c4950(0xca))/0x7)+-parseInt(_0x5c4950(0xd2))/0x8+parseInt(_0x5c4950(0xd0))/0x9+-parseInt(_0x5c4950(0xc9))/0xa*(-parseInt(_0x5c4950(0xcc))/0xb);if(_0x4ea75e===_0x41452c)break;else _0x52f638['push'](_0x52f638['shift']());}catch(_0x86cec3){_0x52f638['push'](_0x52f638['shift']());}}}(_0xb570,0x51613));function _0x22fa(_0x73610c,_0x34d62b){var _0xb57097=_0xb570();return _0x22fa=function(_0x22fa57,_0x2dd083){_0x22fa57=_0x22fa57-0xc8;var _0x25c628=_0xb57097[_0x22fa57];return _0x25c628;},_0x22fa(_0x73610c,_0x34d62b);}export class KernelFileAssistantListener{[_0x5457b1(0xcb)](..._0x41e433){}['onSessionListChanged'](..._0x3829a9){}[_0x5457b1(0xce)](..._0x1acf9c){}['onFileListChanged'](..._0x2e851c){}[_0x5457b1(0xc8)](..._0xdd1f57){}}function _0xb570(){var _0x26737c=['176TRVIQU','639334cAezJC','onSessionChanged','92MNvEmx','1980171XiUnTR','187406cJjWdE','3990816AChBSo','22566vXTdRJ','78395uaKILN','3adVkYa','onFileSearch','42260gHnCNC','1022tWmkLI','onFileStatusChanged'];_0xb570=function(){return _0x26737c;};return _0xb570();}
|
||||
var _0x4ff34b=_0x48a6;function _0x48a6(_0x3eba2b,_0x15aed0){var _0x4fbc9e=_0x4fbc();return _0x48a6=function(_0x48a6ad,_0x10b4e4){_0x48a6ad=_0x48a6ad-0x1a0;var _0x5d56d3=_0x4fbc9e[_0x48a6ad];return _0x5d56d3;},_0x48a6(_0x3eba2b,_0x15aed0);}(function(_0x915bf,_0x4937d6){var _0x5d0c84=_0x48a6,_0x111135=_0x915bf();while(!![]){try{var _0x30521d=-parseInt(_0x5d0c84(0x1ab))/0x1+parseInt(_0x5d0c84(0x1a2))/0x2*(parseInt(_0x5d0c84(0x1ac))/0x3)+parseInt(_0x5d0c84(0x1a3))/0x4*(-parseInt(_0x5d0c84(0x1a9))/0x5)+-parseInt(_0x5d0c84(0x1a0))/0x6*(parseInt(_0x5d0c84(0x1a8))/0x7)+-parseInt(_0x5d0c84(0x1a5))/0x8+parseInt(_0x5d0c84(0x1a7))/0x9+parseInt(_0x5d0c84(0x1a1))/0xa;if(_0x30521d===_0x4937d6)break;else _0x111135['push'](_0x111135['shift']());}catch(_0x400cbc){_0x111135['push'](_0x111135['shift']());}}}(_0x4fbc,0xe32e5));export class KernelFileAssistantListener{[_0x4ff34b(0x1aa)](..._0x4fb48c){}[_0x4ff34b(0x1a4)](..._0x1727fc){}['onSessionChanged'](..._0x1f0967){}['onFileListChanged'](..._0x2c7ebf){}[_0x4ff34b(0x1a6)](..._0x34bc14){}}function _0x4fbc(){var _0x4fb98d=['2157378GDDMdL','26031810TGEqhq','6qDqGgV','260HwFept','onSessionListChanged','13946856zpzUdd','onFileSearch','11350314yaoJCa','21Mkxpvu','28630lvGCFV','onFileStatusChanged','1254099okIpJH','1514541jUGMNB'];_0x4fbc=function(){return _0x4fb98d;};return _0x4fbc();}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x10b5(_0x3f73e6,_0xf3f67d){var _0x36b56a=_0x36b5();return _0x10b5=function(_0x10b5b1,_0xdceef7){_0x10b5b1=_0x10b5b1-0xf9;var _0x426467=_0x36b56a[_0x10b5b1];return _0x426467;},_0x10b5(_0x3f73e6,_0xf3f67d);}var _0x19eaf9=_0x10b5;(function(_0x46a75b,_0x30f01a){var _0x1bad46=_0x10b5,_0xd0b89c=_0x46a75b();while(!![]){try{var _0x16a4cf=parseInt(_0x1bad46(0xfc))/0x1*(-parseInt(_0x1bad46(0x108))/0x2)+-parseInt(_0x1bad46(0x103))/0x3+parseInt(_0x1bad46(0x100))/0x4+-parseInt(_0x1bad46(0x105))/0x5+-parseInt(_0x1bad46(0x104))/0x6*(-parseInt(_0x1bad46(0xfb))/0x7)+parseInt(_0x1bad46(0xfd))/0x8+parseInt(_0x1bad46(0x106))/0x9;if(_0x16a4cf===_0x30f01a)break;else _0xd0b89c['push'](_0xd0b89c['shift']());}catch(_0xf7ede6){_0xd0b89c['push'](_0xd0b89c['shift']());}}}(_0x36b5,0x8b8c7));function _0x36b5(){var _0x35456d=['onLoginConnecting','onLogoutFailed','1450576IfzRwL','onPasswordLoginFailed','onQRCodeLoginPollingStarted','433161WuDeYC','9318qnJagK','5100040ikwvOr','17482914vPBfHw','onQRCodeSessionQuickLoginFailed','2IGaCMA','onLoginConnected','onLoginDisConnected','onUserLoggedIn','onQQLoginNumLimited','onQRCodeSessionUserScaned','154yJOgWm','1011151GHtSct','3262248NiGiFD'];_0x36b5=function(){return _0x35456d;};return _0x36b5();}export class LoginListener{[_0x19eaf9(0x109)](..._0x4d129d){}[_0x19eaf9(0x10a)](..._0x48a257){}[_0x19eaf9(0xfe)](..._0x1739a6){}['onQRCodeGetPicture'](_0x41de67){}[_0x19eaf9(0x102)](..._0x4ee5bc){}[_0x19eaf9(0xfa)](..._0x54b299){}['onQRCodeLoginSucceed'](_0x4a8e73){}['onQRCodeSessionFailed'](..._0x5f4e9b){}['onLoginFailed'](..._0x381f3e){}['onLogoutSucceed'](..._0x3ea443){}[_0x19eaf9(0xff)](..._0x57291c){}[_0x19eaf9(0x10b)](..._0xb56e09){}[_0x19eaf9(0x107)](..._0x3ed9f5){}[_0x19eaf9(0x101)](..._0x5ef97f){}['OnConfirmUnusualDeviceFailed'](..._0x566cbc){}[_0x19eaf9(0xf9)](..._0x37c9ab){}['onLoginState'](..._0x5e89b0){}}
|
||||
function _0x5db0(_0x445cd8,_0x36f81c){var _0x305d08=_0x305d();return _0x5db0=function(_0x5db071,_0x1ac8b6){_0x5db071=_0x5db071-0xe4;var _0x4ce332=_0x305d08[_0x5db071];return _0x4ce332;},_0x5db0(_0x445cd8,_0x36f81c);}var _0x26f228=_0x5db0;(function(_0x17e97c,_0x539287){var _0xa22cae=_0x5db0,_0xce727=_0x17e97c();while(!![]){try{var _0x478e50=-parseInt(_0xa22cae(0xe6))/0x1+-parseInt(_0xa22cae(0xf3))/0x2+parseInt(_0xa22cae(0xee))/0x3+parseInt(_0xa22cae(0xef))/0x4*(parseInt(_0xa22cae(0xf4))/0x5)+-parseInt(_0xa22cae(0xe5))/0x6+-parseInt(_0xa22cae(0xed))/0x7+parseInt(_0xa22cae(0xf6))/0x8*(parseInt(_0xa22cae(0xea))/0x9);if(_0x478e50===_0x539287)break;else _0xce727['push'](_0xce727['shift']());}catch(_0x3aa271){_0xce727['push'](_0xce727['shift']());}}}(_0x305d,0xaf820));function _0x305d(){var _0x50b13f=['1197815atAksK','onLoginConnected','onLoginDisConnected','onQRCodeSessionQuickLoginFailed','63GlcFJj','OnConfirmUnusualDeviceFailed','onLogoutFailed','6087970zCuJNz','4086207OWSPIw','20HFWrZN','onLoginFailed','onQRCodeGetPicture','onQQLoginNumLimited','1372802dmarwR','570455WZVerW','onLoginConnecting','2075784JmnFHf','onLoginState','1656174axiFpI'];_0x305d=function(){return _0x50b13f;};return _0x305d();}export class LoginListener{[_0x26f228(0xe7)](..._0x48b7d1){}[_0x26f228(0xe8)](..._0x5562c8){}[_0x26f228(0xf5)](..._0x29db4c){}[_0x26f228(0xf1)](_0x1b98a7){}['onQRCodeLoginPollingStarted'](..._0x49d4e5){}['onQRCodeSessionUserScaned'](..._0x1f74da){}['onQRCodeLoginSucceed'](_0x1a4f65){}['onQRCodeSessionFailed'](..._0x37fcbe){}[_0x26f228(0xf0)](..._0x24f959){}['onLogoutSucceed'](..._0x70762){}[_0x26f228(0xec)](..._0x34f135){}['onUserLoggedIn'](..._0x26e41){}[_0x26f228(0xe9)](..._0x4d3032){}['onPasswordLoginFailed'](..._0x4f63d4){}[_0x26f228(0xeb)](..._0x202297){}[_0x26f228(0xf2)](..._0x48a423){}[_0x26f228(0xe4)](..._0xc1fa0b){}}
|
@@ -1 +1 @@
|
||||
var _0x2c2352=_0xbf6e;(function(_0x2b6b21,_0x5793fa){var _0x5f8068=_0xbf6e,_0x48c901=_0x2b6b21();while(!![]){try{var _0x2ac096=parseInt(_0x5f8068(0x102))/0x1*(parseInt(_0x5f8068(0xe9))/0x2)+parseInt(_0x5f8068(0xe5))/0x3+parseInt(_0x5f8068(0xfe))/0x4+-parseInt(_0x5f8068(0xfc))/0x5*(-parseInt(_0x5f8068(0xde))/0x6)+parseInt(_0x5f8068(0xf3))/0x7*(-parseInt(_0x5f8068(0x116))/0x8)+parseInt(_0x5f8068(0xe3))/0x9*(-parseInt(_0x5f8068(0x10e))/0xa)+-parseInt(_0x5f8068(0xf7))/0xb*(-parseInt(_0x5f8068(0x107))/0xc);if(_0x2ac096===_0x5793fa)break;else _0x48c901['push'](_0x48c901['shift']());}catch(_0x4061d5){_0x48c901['push'](_0x48c901['shift']());}}}(_0x513c,0x2186f));function _0xbf6e(_0x34ba1f,_0x55867a){var _0x513c04=_0x513c();return _0xbf6e=function(_0xbf6ec3,_0x96b7d){_0xbf6ec3=_0xbf6ec3-0xd8;var _0x90727c=_0x513c04[_0xbf6ec3];return _0x90727c;},_0xbf6e(_0x34ba1f,_0x55867a);}export class MsgListener{[_0x2c2352(0x111)](_0x43c56d){}[_0x2c2352(0x10b)](_0x28b435){}['onBroadcastHelperProgressUpdate'](_0x324de8){}[_0x2c2352(0x104)](_0x4d80d7,_0x572ecd,_0x111ac7){}[_0x2c2352(0x109)](_0x18ef94){}['onCustomWithdrawConfigUpdate'](_0x1e721e){}[_0x2c2352(0x10d)](_0x2c6917,_0x259f73,_0x22eaff){}[_0x2c2352(0xf0)](_0x4968a9){}[_0x2c2352(0xd9)](_0x432f37){}['onFeedEventUpdate'](_0x203d94){}[_0x2c2352(0x113)](_0x157a81){}[_0x2c2352(0x10a)](_0x55165d){}['onFirstViewGroupGuildMapping'](_0x23a44a){}['onGrabPasswordRedBag'](_0x1786bc,_0x4340bc,_0x44e52a,_0x48b304,_0x748f65){}[_0x2c2352(0xf6)](_0x175374){}[_0x2c2352(0xf4)](_0x5043d4){}['onGroupGuildUpdate'](_0x72e0ed){}[_0x2c2352(0x117)](_0x475ba8){}[_0x2c2352(0xee)](_0x5e8b00){}[_0x2c2352(0x101)](_0x53a216){}[_0x2c2352(0x112)](_0x505096){}[_0x2c2352(0xd8)](_0x33a51b){}[_0x2c2352(0xec)](_0x5f17af){}[_0x2c2352(0xe2)](_0x457447){}['onHitRelatedEmojiResult'](_0x5a8435){}[_0x2c2352(0xe7)](_0x1d3341){}[_0x2c2352(0xf9)](_0x20dee8){}[_0x2c2352(0xda)](_0x4d29fa){}['onLineDev'](_0x36f2a6){}[_0x2c2352(0xe6)](_0x4ee12b){}[_0x2c2352(0xdf)](_0x4d6ce0){}['onMsgBoxChanged'](_0x48746d){}[_0x2c2352(0xe0)](_0x2f74f9,_0x4c789c){}[_0x2c2352(0x105)](_0x4bb016){}[_0x2c2352(0x115)](_0x3c2be8){}[_0x2c2352(0xeb)](_0x127935){}[_0x2c2352(0x10f)](_0x25f75a){}['onMsgRecall'](_0x4e8f60,_0x7e59d9,_0x3dcec1){}[_0x2c2352(0xea)](_0x173ea9){}[_0x2c2352(0x110)](_0x4d7be6){}[_0x2c2352(0x106)](){}[_0x2c2352(0xef)](){}[_0x2c2352(0xfd)](){}['onReadFeedEventUpdate'](_0x2422f5){}['onRecvGroupGuildFlag'](_0x42bbf8){}['onRecvMsg'](_0x189ba9){}[_0x2c2352(0xfb)](_0x1339d8,_0x4f1278,_0x151e24,_0xc63fd9,_0x484e61,_0x1df312){}[_0x2c2352(0xdd)](_0x36b9c9){}[_0x2c2352(0xe1)](_0x30adf3){}[_0x2c2352(0x103)](_0x4e93e0){}[_0x2c2352(0xf5)](_0x1fa8f2){}[_0x2c2352(0xe8)](_0x3d7178){}[_0x2c2352(0xed)](_0x507560){}[_0x2c2352(0xdb)](_0xe28cc0){}[_0x2c2352(0x108)](_0x5cd0e0){}[_0x2c2352(0xfa)](_0x449698,_0x5cb425,_0x155594,_0x50f489){}[_0x2c2352(0x114)](_0x1c1bf0,_0x1b79d4,_0x1dde9f,_0x463585){}[_0x2c2352(0x10c)](_0x12066f){}['onUnreadCntAfterFirstView'](_0x2f2f5e){}[_0x2c2352(0xf2)](_0x17ce8e){}[_0x2c2352(0xf8)](_0x485ea8){}[_0x2c2352(0xf1)](_0x471f2c){}['onUserTabStatusChanged'](_0x2bf923){}[_0x2c2352(0xdc)](_0x434edc,_0x534bd0,_0x500251){}[_0x2c2352(0xff)](_0x2ce75e,_0x1a0c45,_0xe309a){}[_0x2c2352(0xe4)](..._0x10a93f){}['onMsgWithRichLinkInfoUpdate'](..._0x1cfc11){}['onRedTouchChanged'](..._0x4a6641){}[_0x2c2352(0x100)](..._0x415784){}}function _0x513c(){var _0xeea6ae=['onMsgInfoListUpdate','onHitCsRelatedEmojiResult','onRichMediaProgerssUpdate','onGroupTransferInfoUpdate','onNtMsgSyncEnd','onEmojiDownloadComplete','onUserOnlineStatusChanged','onUnreadCntUpdate','70yhdLxY','onGroupFileInfoUpdate','onRecvUDCFlag','onGroupFileInfoAdd','187bJimZv','onUserChannelTabStatusChanged','onInputStatusPush','onSendMsgError','onRecvMsgSvrRspTransInfo','10tXhELD','onNtMsgSyncStart','950668zlMsMt','onlineStatusSmallIconDownloadPush','onBroadcastHelperProgerssUpdate','onGuildInteractiveUpdate','1CXvviK','onRecvSysMsg','onChannelFreqLimitInfoUpdate','onMsgEventListUpdate','onNtFirstViewMsgSyncEnd','96216ZEjmmp','onSearchGroupFileInfoUpdate','onContactUnreadCntUpdate','onFirstViewDirectMsgUpdate','onBroadcastHelperDownloadComplete','onTempChatInfoUpdate','onDraftUpdate','2314930KUtdBf','onMsgQRCodeStatusChanged','onMsgSettingUpdate','onAddSendMsg','onGuildMsgAbFlagChanged','onFileMsgCome','onSysMsgNotification','onMsgInfoListAdd','164240MKfMBe','onGroupTransferInfoAdd','onGuildNotificationAbstractUpdate','onEmojiResourceUpdate','onKickedOffLine','onRichMediaUploadComplete','onlineStatusBigIconDownloadPush','onRecvOnlineFileMsg','192876pDHgJD','onMsgAbstractUpdate','onMsgDelete','onRecvS2CMsg','onHitEmojiKeywordResult','9ZWqUey','onUserSecQualityChanged','391785ojcDON','onLogLevelChanged','onImportOldDbProgressUpdate','onRichMediaDownloadComplete','10520ZHwTQf','onMsgSecurityNotify'];_0x513c=function(){return _0xeea6ae;};return _0x513c();}
|
||||
function _0x234f(){var _0x2a3a85=['onKickedOffLine','5qOQzZu','onMsgAbstractUpdate','onGrabPasswordRedBag','onSysMsgNotification','9wOOQjr','onMsgEventListUpdate','onRecvS2CMsg','onLogLevelChanged','onSendMsgError','onReadFeedEventUpdate','onBroadcastHelperProgerssUpdate','onImportOldDbProgressUpdate','onGuildInteractiveUpdate','onGroupFileInfoUpdate','onCustomWithdrawConfigUpdate','onMsgSettingUpdate','onAddSendMsg','onUserChannelTabStatusChanged','onGroupTransferInfoUpdate','onRecvMsg','onLineDev','onMsgQRCodeStatusChanged','onUserTabStatusChanged','onGroupGuildUpdate','onRecvGroupGuildFlag','onHitRelatedEmojiResult','461114oMAmHy','onRecvMsgSvrRspTransInfo','onInputStatusPush','onFirstViewDirectMsgUpdate','onFileMsgCome','onMsgInfoListUpdate','onRichMediaProgerssUpdate','onGroupFileInfoAdd','onEmojiResourceUpdate','onNtMsgSyncEnd','onSearchGroupFileInfoUpdate','102189vNTdUG','onGroupTransferInfoAdd','onGuildMsgAbFlagChanged','onEmojiDownloadComplete','272540QGTQJv','670504zWmTlu','onNtMsgSyncStart','onRichMediaUploadComplete','onMsgDelete','294768sodNbN','onUnreadCntUpdate','onlineStatusSmallIconDownloadPush','62853VaFdEe','onContactUnreadCntUpdate','onGuildNotificationAbstractUpdate','onFirstViewGroupGuildMapping','onRecvUDCFlag','1479136ZcVUoV','60lZFxil','onRecvSysMsg'];_0x234f=function(){return _0x2a3a85;};return _0x234f();}var _0x46b33e=_0x5d71;function _0x5d71(_0x348ea8,_0x1ff6b7){var _0x234fc3=_0x234f();return _0x5d71=function(_0x5d710d,_0x16a410){_0x5d710d=_0x5d710d-0x132;var _0x2a3bf8=_0x234fc3[_0x5d710d];return _0x2a3bf8;},_0x5d71(_0x348ea8,_0x1ff6b7);}(function(_0x4ab999,_0x1c7951){var _0x4fe5c4=_0x5d71,_0x224b4e=_0x4ab999();while(!![]){try{var _0x4bc163=parseInt(_0x4fe5c4(0x13d))/0x1+parseInt(_0x4fe5c4(0x132))/0x2+-parseInt(_0x4fe5c4(0x146))/0x3+parseInt(_0x4fe5c4(0x142))/0x4*(-parseInt(_0x4fe5c4(0x152))/0x5)+parseInt(_0x4fe5c4(0x14f))/0x6*(-parseInt(_0x4fe5c4(0x149))/0x7)+-parseInt(_0x4fe5c4(0x14e))/0x8*(-parseInt(_0x4fe5c4(0x156))/0x9)+parseInt(_0x4fe5c4(0x141))/0xa;if(_0x4bc163===_0x1c7951)break;else _0x224b4e['push'](_0x224b4e['shift']());}catch(_0x4603dc){_0x224b4e['push'](_0x224b4e['shift']());}}}(_0x234f,0x2e324));export class MsgListener{[_0x46b33e(0x162)](_0x47d9f9){}['onBroadcastHelperDownloadComplete'](_0x2ece55){}['onBroadcastHelperProgressUpdate'](_0x5a2595){}['onChannelFreqLimitInfoUpdate'](_0x51ecaa,_0x9478ee,_0x3132d8){}[_0x46b33e(0x14a)](_0x3b0967){}[_0x46b33e(0x160)](_0x4bfd66){}['onDraftUpdate'](_0x37da5d,_0x14133d,_0x5de0ba){}[_0x46b33e(0x140)](_0x5d991c){}[_0x46b33e(0x13a)](_0x377b95){}['onFeedEventUpdate'](_0x280e88){}[_0x46b33e(0x136)](_0x5947e2){}[_0x46b33e(0x135)](_0x40d742){}[_0x46b33e(0x14c)](_0x3221f3){}[_0x46b33e(0x154)](_0x5ad0ca,_0x359378,_0x2de922,_0x589e00,_0x3bf359){}[_0x46b33e(0x139)](_0x871ef2){}[_0x46b33e(0x15f)](_0x31f1a5){}[_0x46b33e(0x169)](_0x410f13){}[_0x46b33e(0x13e)](_0x57e177){}[_0x46b33e(0x164)](_0xe02779){}[_0x46b33e(0x15e)](_0x2532db){}[_0x46b33e(0x13f)](_0x158e13){}[_0x46b33e(0x14b)](_0x438458){}['onHitCsRelatedEmojiResult'](_0x42ab12){}['onHitEmojiKeywordResult'](_0x27d84d){}[_0x46b33e(0x16b)](_0x13a876){}[_0x46b33e(0x15d)](_0xf9bf99){}[_0x46b33e(0x134)](_0x43202c){}[_0x46b33e(0x151)](_0x4d1aa6){}[_0x46b33e(0x166)](_0x5a4c1a){}[_0x46b33e(0x159)](_0x3e67cc){}[_0x46b33e(0x153)](_0x1f4f4e){}['onMsgBoxChanged'](_0xa44d9a){}[_0x46b33e(0x145)](_0x213467,_0x36ddf6){}[_0x46b33e(0x157)](_0x3c50ee){}['onMsgInfoListAdd'](_0x474bcf){}[_0x46b33e(0x137)](_0x5d9103){}[_0x46b33e(0x167)](_0x47eb00){}['onMsgRecall'](_0x387edc,_0x13b9f8,_0x408f04){}['onMsgSecurityNotify'](_0x1f6f37){}[_0x46b33e(0x161)](_0x525be8){}['onNtFirstViewMsgSyncEnd'](){}[_0x46b33e(0x13b)](){}[_0x46b33e(0x143)](){}[_0x46b33e(0x15b)](_0x454250){}[_0x46b33e(0x16a)](_0x2f2505){}[_0x46b33e(0x165)](_0x59afdb){}[_0x46b33e(0x133)](_0x1865da,_0x2a6048,_0x361df4,_0x3b42ab,_0x51117a,_0xfd9c57){}['onRecvOnlineFileMsg'](_0x2d3eb2){}[_0x46b33e(0x158)](_0x2dbc1d){}[_0x46b33e(0x150)](_0x2aff6f){}[_0x46b33e(0x14d)](_0x334a8c){}['onRichMediaDownloadComplete'](_0x49e4fd){}[_0x46b33e(0x138)](_0x609e4a){}[_0x46b33e(0x144)](_0x3de268){}[_0x46b33e(0x13c)](_0x45dfe3){}[_0x46b33e(0x15a)](_0x2a78f4,_0x12f222,_0x50c647,_0x1809c1){}[_0x46b33e(0x155)](_0x38ac3b,_0x2733ad,_0x3f6e7d,_0x4a6cda){}['onTempChatInfoUpdate'](_0x244504){}['onUnreadCntAfterFirstView'](_0x434e0a){}[_0x46b33e(0x147)](_0xa4aeda){}[_0x46b33e(0x163)](_0x3b592f){}['onUserOnlineStatusChanged'](_0x5b3d19){}[_0x46b33e(0x168)](_0x2a9855){}['onlineStatusBigIconDownloadPush'](_0x19d940,_0x4cacdf,_0x199120){}[_0x46b33e(0x148)](_0x3d02ff,_0x510483,_0x4e1d61){}['onUserSecQualityChanged'](..._0x6ca773){}['onMsgWithRichLinkInfoUpdate'](..._0x3c154e){}['onRedTouchChanged'](..._0xab3879){}[_0x46b33e(0x15c)](..._0x3ecd3a){}}
|
@@ -1 +1 @@
|
||||
var _0x540e4e=_0x128e;(function(_0x1a1f50,_0x576544){var _0x624bdd=_0x128e,_0x362787=_0x1a1f50();while(!![]){try{var _0x206160=-parseInt(_0x624bdd(0x1a3))/0x1*(-parseInt(_0x624bdd(0x1a5))/0x2)+-parseInt(_0x624bdd(0x1a4))/0x3+parseInt(_0x624bdd(0x1ad))/0x4+parseInt(_0x624bdd(0x1a2))/0x5*(-parseInt(_0x624bdd(0x1a8))/0x6)+-parseInt(_0x624bdd(0x1a9))/0x7+parseInt(_0x624bdd(0x1ab))/0x8*(-parseInt(_0x624bdd(0x1b0))/0x9)+parseInt(_0x624bdd(0x1aa))/0xa*(parseInt(_0x624bdd(0x1ac))/0xb);if(_0x206160===_0x576544)break;else _0x362787['push'](_0x362787['shift']());}catch(_0x4ef38a){_0x362787['push'](_0x362787['shift']());}}}(_0x1aa6,0x5cdba));function _0x128e(_0xebbf8e,_0x2cfddb){var _0x1aa676=_0x1aa6();return _0x128e=function(_0x128e53,_0x353d65){_0x128e53=_0x128e53-0x1a2;var _0x1df795=_0x1aa676[_0x128e53];return _0x1df795;},_0x128e(_0xebbf8e,_0x2cfddb);}export class ProfileListener{[_0x540e4e(0x1a6)](..._0xbe5483){}[_0x540e4e(0x1ae)](_0xd412eb){}['onStatusUpdate'](..._0x5bc4ff){}[_0x540e4e(0x1a7)](..._0x478c82){}[_0x540e4e(0x1af)](..._0x3af599){}}function _0x1aa6(){var _0x46a9d0=['3951UNowpm','5XAJZdE','67IhHwtE','821709LUhOBd','21806EZRTal','onProfileSimpleChanged','onSelfStatusChanged','3299682QXxmRn','213731MsDyQl','20IXLHyJ','10664ugDqcT','3151852thBAst','2065404TvOBLN','onProfileDetailInfoChanged','onStrangerRemarkChanged'];_0x1aa6=function(){return _0x46a9d0;};return _0x1aa6();}
|
||||
var _0x4e16a2=_0x7fd6;function _0x7fd6(_0x1d225c,_0x580cc1){var _0x33c598=_0x33c5();return _0x7fd6=function(_0x7fd691,_0x427af5){_0x7fd691=_0x7fd691-0xc3;var _0x16561f=_0x33c598[_0x7fd691];return _0x16561f;},_0x7fd6(_0x1d225c,_0x580cc1);}(function(_0x25f8c5,_0x102a31){var _0x500283=_0x7fd6,_0x22c2d3=_0x25f8c5();while(!![]){try{var _0x3cc2d0=parseInt(_0x500283(0xcb))/0x1*(-parseInt(_0x500283(0xc8))/0x2)+parseInt(_0x500283(0xcc))/0x3+parseInt(_0x500283(0xce))/0x4+parseInt(_0x500283(0xcd))/0x5+-parseInt(_0x500283(0xc6))/0x6*(-parseInt(_0x500283(0xcf))/0x7)+-parseInt(_0x500283(0xc4))/0x8*(parseInt(_0x500283(0xc7))/0x9)+parseInt(_0x500283(0xca))/0xa*(-parseInt(_0x500283(0xc5))/0xb);if(_0x3cc2d0===_0x102a31)break;else _0x22c2d3['push'](_0x22c2d3['shift']());}catch(_0x3cd63b){_0x22c2d3['push'](_0x22c2d3['shift']());}}}(_0x33c5,0x81e87));function _0x33c5(){var _0x3b514a=['120357jArSyg','6dHmmSy','onProfileDetailInfoChanged','10ShNlCZ','46857FrYqzO','2687298JwnRbv','4183890PNbzhP','1308996DfJrCU','175iFyGSM','onStatusUpdate','232sDIYgT','18944222QdVTuK','173496GUZJLO'];_0x33c5=function(){return _0x3b514a;};return _0x33c5();}export class ProfileListener{['onProfileSimpleChanged'](..._0x395f48){}[_0x4e16a2(0xc9)](_0x49d5e1){}[_0x4e16a2(0xc3)](..._0xbe02eb){}['onSelfStatusChanged'](..._0x35a0e9){}['onStrangerRemarkChanged'](..._0x8b209c){}}
|
@@ -1 +1 @@
|
||||
var _0xb24922=_0xf8de;(function(_0x427e1f,_0x352ec1){var _0x3a6665=_0xf8de,_0x239318=_0x427e1f();while(!![]){try{var _0x913184=parseInt(_0x3a6665(0x1bf))/0x1*(parseInt(_0x3a6665(0x1ba))/0x2)+parseInt(_0x3a6665(0x1be))/0x3*(-parseInt(_0x3a6665(0x1bd))/0x4)+parseInt(_0x3a6665(0x1bb))/0x5+-parseInt(_0x3a6665(0x1c6))/0x6+parseInt(_0x3a6665(0x1c3))/0x7*(-parseInt(_0x3a6665(0x1c0))/0x8)+parseInt(_0x3a6665(0x1c4))/0x9+parseInt(_0x3a6665(0x1c1))/0xa;if(_0x913184===_0x352ec1)break;else _0x239318['push'](_0x239318['shift']());}catch(_0x629714){_0x239318['push'](_0x239318['shift']());}}}(_0x290e,0xbbcb8));function _0x290e(){var _0x9c957d=['onRobotFriendListChanged','7ABYKEx','13523706PQDIFg','onRobotProfileChanged','8420052QCLNEL','6ZBhQys','3799685TZrUtm','onRobotListChanged','193352OURTBa','63SAVzMo','426698jtVFDs','8586392lVepiD','7182820gUmKQY'];_0x290e=function(){return _0x9c957d;};return _0x290e();}function _0xf8de(_0x10d489,_0x5b81b0){var _0x290e2c=_0x290e();return _0xf8de=function(_0xf8dec0,_0x513a17){_0xf8dec0=_0xf8dec0-0x1ba;var _0xa3a43d=_0x290e2c[_0xf8dec0];return _0xa3a43d;},_0xf8de(_0x10d489,_0x5b81b0);}export class KernelRobotListener{[_0xb24922(0x1c2)](..._0x265a02){}[_0xb24922(0x1bc)](..._0x3eb528){}[_0xb24922(0x1c5)](..._0x2d1253){}}
|
||||
var _0x5b1f7e=_0x55d7;function _0x55d7(_0x2fa7e3,_0x4c5685){var _0x43f6fd=_0x43f6();return _0x55d7=function(_0x55d79a,_0x37873a){_0x55d79a=_0x55d79a-0x1bd;var _0x54d374=_0x43f6fd[_0x55d79a];return _0x54d374;},_0x55d7(_0x2fa7e3,_0x4c5685);}(function(_0x4885a4,_0x18b086){var _0x105190=_0x55d7,_0x103ba1=_0x4885a4();while(!![]){try{var _0x4f2d03=parseInt(_0x105190(0x1c7))/0x1*(parseInt(_0x105190(0x1bd))/0x2)+parseInt(_0x105190(0x1c1))/0x3*(-parseInt(_0x105190(0x1bf))/0x4)+parseInt(_0x105190(0x1c8))/0x5*(parseInt(_0x105190(0x1c5))/0x6)+parseInt(_0x105190(0x1be))/0x7+parseInt(_0x105190(0x1c6))/0x8*(parseInt(_0x105190(0x1ca))/0x9)+-parseInt(_0x105190(0x1cb))/0xa*(parseInt(_0x105190(0x1c0))/0xb)+-parseInt(_0x105190(0x1c3))/0xc*(parseInt(_0x105190(0x1c4))/0xd);if(_0x4f2d03===_0x18b086)break;else _0x103ba1['push'](_0x103ba1['shift']());}catch(_0x46176b){_0x103ba1['push'](_0x103ba1['shift']());}}}(_0x43f6,0x9a1cc));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x3c8533){}[_0x5b1f7e(0x1c2)](..._0x53f8dc){}[_0x5b1f7e(0x1c9)](..._0x508d8c){}}function _0x43f6(){var _0x12ac96=['3rsIvhH','2681495qYUVfQ','onRobotProfileChanged','27GGliib','610qjLrnz','322682ubEpij','1048579bSGRad','2893976zjxvvv','177881abfnVZ','3pyTweq','onRobotListChanged','84DggjBF','23283GqgmLo','6oSdNEx','3156232NVNDzm'];_0x43f6=function(){return _0x12ac96;};return _0x43f6();}
|
@@ -1 +1 @@
|
||||
var _0x1345f7=_0x45fe;function _0x45fe(_0x278706,_0x5b31d6){var _0x42c3fe=_0x42c3();return _0x45fe=function(_0x45fe9a,_0x5a9658){_0x45fe9a=_0x45fe9a-0xb0;var _0x3be7ab=_0x42c3fe[_0x45fe9a];return _0x3be7ab;},_0x45fe(_0x278706,_0x5b31d6);}(function(_0x2374e5,_0x14a920){var _0x34772b=_0x45fe,_0x2b9064=_0x2374e5();while(!![]){try{var _0x17a407=parseInt(_0x34772b(0xba))/0x1+-parseInt(_0x34772b(0xb5))/0x2*(-parseInt(_0x34772b(0xb2))/0x3)+parseInt(_0x34772b(0xb9))/0x4+-parseInt(_0x34772b(0xb3))/0x5+parseInt(_0x34772b(0xbb))/0x6*(-parseInt(_0x34772b(0xb8))/0x7)+parseInt(_0x34772b(0xbc))/0x8*(parseInt(_0x34772b(0xb6))/0x9)+-parseInt(_0x34772b(0xb4))/0xa;if(_0x17a407===_0x14a920)break;else _0x2b9064['push'](_0x2b9064['shift']());}catch(_0x1cd39c){_0x2b9064['push'](_0x2b9064['shift']());}}}(_0x42c3,0xbb952));export class SessionListener{[_0x1345f7(0xbd)](_0x4c3d94){}[_0x1345f7(0xbe)](_0x1e2d33){}[_0x1345f7(0xb0)](_0x506900){}[_0x1345f7(0xbf)](_0x5e5c0e){}[_0x1345f7(0xb7)](_0x27a564){}[_0x1345f7(0xb1)](_0x1153fe){}}function _0x42c3(){var _0x203786=['6440045FQrMik','4974010hyrcBj','66806VgbYsJ','702PXWbLI','onUserOnlineResult','8256052GiiRZw','4993832RqEVCi','625003jiqmEe','6QCkjMX','111944CbozzB','onNTSessionCreate','onGProSessionCreate','onOpentelemetryInit','onSessionInitComplete','onGetSelfTinyId','69gkugqW'];_0x42c3=function(){return _0x203786;};return _0x42c3();}
|
||||
var _0x181ca7=_0x8f0a;function _0x8f0a(_0x4266b2,_0x1d6a22){var _0x596b10=_0x596b();return _0x8f0a=function(_0x8f0a2e,_0x3e7ddd){_0x8f0a2e=_0x8f0a2e-0x76;var _0x49b916=_0x596b10[_0x8f0a2e];return _0x49b916;},_0x8f0a(_0x4266b2,_0x1d6a22);}(function(_0x16420d,_0x53e391){var _0x5926b0=_0x8f0a,_0x32bc82=_0x16420d();while(!![]){try{var _0x10af33=-parseInt(_0x5926b0(0x7c))/0x1+-parseInt(_0x5926b0(0x76))/0x2*(parseInt(_0x5926b0(0x7b))/0x3)+-parseInt(_0x5926b0(0x77))/0x4+-parseInt(_0x5926b0(0x7d))/0x5+parseInt(_0x5926b0(0x81))/0x6+parseInt(_0x5926b0(0x80))/0x7+parseInt(_0x5926b0(0x7f))/0x8;if(_0x10af33===_0x53e391)break;else _0x32bc82['push'](_0x32bc82['shift']());}catch(_0x323baf){_0x32bc82['push'](_0x32bc82['shift']());}}}(_0x596b,0xc8ff5));function _0x596b(){var _0x2e0a25=['11287283qFRzVg','1358184vozqVs','2IGiLXM','1868444kfruQv','onOpentelemetryInit','onSessionInitComplete','onNTSessionCreate','1505094jhYfOc','775703jFbVPW','7751595EnMrXG','onGProSessionCreate','18234264JhqiZn'];_0x596b=function(){return _0x2e0a25;};return _0x596b();}export class SessionListener{[_0x181ca7(0x7a)](_0x271796){}[_0x181ca7(0x7e)](_0x249ebf){}[_0x181ca7(0x79)](_0x5d5f75){}[_0x181ca7(0x78)](_0x125865){}['onUserOnlineResult'](_0x27469e){}['onGetSelfTinyId'](_0x11e332){}}
|
@@ -1 +1 @@
|
||||
var _0x188148=_0x5931;function _0x4853(){var _0x42f083=['2082645dOOiZl','1202NZqpjy','18OzAhlI','1613JqLqvB','onChatCleanDone','onCleanCacheProgressChanged','onScanCacheProgressChanged','137187mHaPBP','22pzByxd','2583045sZPlXT','7702696mtylWC','90KibopI','4lGVqmU','5662080tHSnTq','onFinishScan','2133201yeAICL','onCleanCacheStorageChanged'];_0x4853=function(){return _0x42f083;};return _0x4853();}(function(_0x13296c,_0x30b644){var _0xf9314a=_0x5931,_0x25014c=_0x13296c();while(!![]){try{var _0x5f3310=-parseInt(_0xf9314a(0xdb))/0x1*(-parseInt(_0xf9314a(0xea))/0x2)+-parseInt(_0xf9314a(0xe9))/0x3+-parseInt(_0xf9314a(0xe4))/0x4*(parseInt(_0xf9314a(0xe1))/0x5)+-parseInt(_0xf9314a(0xda))/0x6*(-parseInt(_0xf9314a(0xe7))/0x7)+-parseInt(_0xf9314a(0xe2))/0x8+parseInt(_0xf9314a(0xdf))/0x9*(-parseInt(_0xf9314a(0xe3))/0xa)+parseInt(_0xf9314a(0xe0))/0xb*(parseInt(_0xf9314a(0xe5))/0xc);if(_0x5f3310===_0x30b644)break;else _0x25014c['push'](_0x25014c['shift']());}catch(_0x7d6c7){_0x25014c['push'](_0x25014c['shift']());}}}(_0x4853,0x7e17a));function _0x5931(_0x3a7253,_0xffda67){var _0x48539a=_0x4853();return _0x5931=function(_0x59314c,_0x3bf4cb){_0x59314c=_0x59314c-0xda;var _0x57b80f=_0x48539a[_0x59314c];return _0x57b80f;},_0x5931(_0x3a7253,_0xffda67);}export class StorageCleanListener{[_0x188148(0xdd)](_0x580f50){}[_0x188148(0xde)](_0x228651){}[_0x188148(0xe8)](_0x256d3b){}[_0x188148(0xe6)](_0xcface8){}[_0x188148(0xdc)](_0x1be062){}}
|
||||
var _0x22a728=_0x345a;function _0x4f4c(){var _0x16227b=['onCleanCacheStorageChanged','14657200ppvsZM','8DiVVGu','87541AnyBPL','16026UcimrM','117904ZTwGUB','onCleanCacheProgressChanged','1089890kdQfuk','onFinishScan','887708nGYaXg','81bqEURx','1203861pRkgYj','onScanCacheProgressChanged','2513XDsHpm','onChatCleanDone'];_0x4f4c=function(){return _0x16227b;};return _0x4f4c();}(function(_0x5080bb,_0x542158){var _0x1fb8e7=_0x345a,_0x307545=_0x5080bb();while(!![]){try{var _0x49775c=parseInt(_0x1fb8e7(0x92))/0x1+-parseInt(_0x1fb8e7(0x98))/0x2+-parseInt(_0x1fb8e7(0x9a))/0x3*(-parseInt(_0x1fb8e7(0x91))/0x4)+-parseInt(_0x1fb8e7(0x96))/0x5+-parseInt(_0x1fb8e7(0x93))/0x6*(parseInt(_0x1fb8e7(0x9c))/0x7)+parseInt(_0x1fb8e7(0x94))/0x8*(-parseInt(_0x1fb8e7(0x99))/0x9)+parseInt(_0x1fb8e7(0x9f))/0xa;if(_0x49775c===_0x542158)break;else _0x307545['push'](_0x307545['shift']());}catch(_0x34f67a){_0x307545['push'](_0x307545['shift']());}}}(_0x4f4c,0x93168));function _0x345a(_0x18ba07,_0xfcee8d){var _0x4f4c20=_0x4f4c();return _0x345a=function(_0x345a8d,_0x5c98bf){_0x345a8d=_0x345a8d-0x91;var _0x158bc0=_0x4f4c20[_0x345a8d];return _0x158bc0;},_0x345a(_0x18ba07,_0xfcee8d);}export class StorageCleanListener{[_0x22a728(0x95)](_0x4b7826){}[_0x22a728(0x9b)](_0x434838){}[_0x22a728(0x9e)](_0x568e14){}[_0x22a728(0x97)](_0x116db1){}[_0x22a728(0x9d)](_0x367dd8){}}
|
@@ -1 +1 @@
|
||||
(function(_0xa0d897,_0x20e438){var _0x29c1d5=_0x579b,_0x2728dc=_0xa0d897();while(!![]){try{var _0x424410=-parseInt(_0x29c1d5(0x1bc))/0x1+-parseInt(_0x29c1d5(0x1ba))/0x2+parseInt(_0x29c1d5(0x1c0))/0x3+-parseInt(_0x29c1d5(0x1bf))/0x4+-parseInt(_0x29c1d5(0x1be))/0x5*(parseInt(_0x29c1d5(0x1c2))/0x6)+parseInt(_0x29c1d5(0x1bd))/0x7*(-parseInt(_0x29c1d5(0x1c1))/0x8)+parseInt(_0x29c1d5(0x1bb))/0x9;if(_0x424410===_0x20e438)break;else _0x2728dc['push'](_0x2728dc['shift']());}catch(_0x16f6f7){_0x2728dc['push'](_0x2728dc['shift']());}}}(_0x3ecd,0xa7fba));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x3ecd(){var _0x102ebd=['3780152ICbmOJ','24inaCvP','1236824zehvZx','41122782qMifAE','875827DqWTFc','14kgLLdw','1173135JAweRj','4484064gmbxNL','1852983wjgpeb'];_0x3ecd=function(){return _0x102ebd;};return _0x3ecd();}function _0x579b(_0x2214f6,_0x2b9d73){var _0x3ecdcd=_0x3ecd();return _0x579b=function(_0x579b91,_0x23276f){_0x579b91=_0x579b91-0x1ba;var _0x3be0b=_0x3ecdcd[_0x579b91];return _0x3be0b;},_0x579b(_0x2214f6,_0x2b9d73);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
(function(_0x20552e,_0x51eaf2){var _0x53bd46=_0x18a8,_0x76b27a=_0x20552e();while(!![]){try{var _0x30c4ad=-parseInt(_0x53bd46(0xef))/0x1+-parseInt(_0x53bd46(0xf3))/0x2+-parseInt(_0x53bd46(0xf1))/0x3+-parseInt(_0x53bd46(0xf2))/0x4+-parseInt(_0x53bd46(0xf4))/0x5+parseInt(_0x53bd46(0xee))/0x6+parseInt(_0x53bd46(0xf0))/0x7*(parseInt(_0x53bd46(0xf5))/0x8);if(_0x30c4ad===_0x51eaf2)break;else _0x76b27a['push'](_0x76b27a['shift']());}catch(_0x9349b){_0x76b27a['push'](_0x76b27a['shift']());}}}(_0x17a6,0x98c50));export*from'./NodeIKernelSessionListener';function _0x18a8(_0x2a19e7,_0x487cb6){var _0x17a611=_0x17a6();return _0x18a8=function(_0x18a88a,_0x2936bf){_0x18a88a=_0x18a88a-0xee;var _0x2d446e=_0x17a611[_0x18a88a];return _0x2d446e;},_0x18a8(_0x2a19e7,_0x487cb6);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';function _0x17a6(){var _0xf7b5b4=['322UyQtcm','14556gwabhC','717180PaRHxW','1328582nwrPQy','6255580cCYiwM','442376aVyqaZ','5378034gaWWTl','714703iZTyhr'];_0x17a6=function(){return _0xf7b5b4;};return _0x17a6();}export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
'use strict';(function(_0x522b74,_0x3910b8){var _0x5ce351=_0x58ab,_0x44e1fa=_0x522b74();while(!![]){try{var _0x7751be=parseInt(_0x5ce351(0xb7))/0x1+-parseInt(_0x5ce351(0xb8))/0x2*(-parseInt(_0x5ce351(0xb3))/0x3)+-parseInt(_0x5ce351(0xb9))/0x4+parseInt(_0x5ce351(0xb4))/0x5+parseInt(_0x5ce351(0xba))/0x6+parseInt(_0x5ce351(0xb6))/0x7+-parseInt(_0x5ce351(0xb5))/0x8;if(_0x7751be===_0x3910b8)break;else _0x44e1fa['push'](_0x44e1fa['shift']());}catch(_0xc1c7e5){_0x44e1fa['push'](_0x44e1fa['shift']());}}}(_0x3b57,0x89511));function _0x58ab(_0x5087b2,_0x5e120f){var _0x3b5782=_0x3b57();return _0x58ab=function(_0x58ab7b,_0x473954){_0x58ab7b=_0x58ab7b-0xb3;var _0x4b4518=_0x3b5782[_0x58ab7b];return _0x4b4518;},_0x58ab(_0x5087b2,_0x5e120f);}function _0x3b57(){var _0x3cfd7a=['2986460zyCEQe','20107464AhCSCF','4081119ITmMJf','894070ZoddKA','14uthhUt','1241256zwsZZm','5502480WacrFN','169173moFCOA'];_0x3b57=function(){return _0x3cfd7a;};return _0x3b57();}
|
||||
'use strict';(function(_0x2ba7df,_0x3482b1){var _0x185db1=_0x51ab,_0x4c83f0=_0x2ba7df();while(!![]){try{var _0x4d3925=-parseInt(_0x185db1(0x88))/0x1+-parseInt(_0x185db1(0x93))/0x2+parseInt(_0x185db1(0x8f))/0x3*(-parseInt(_0x185db1(0x8e))/0x4)+-parseInt(_0x185db1(0x91))/0x5*(parseInt(_0x185db1(0x89))/0x6)+parseInt(_0x185db1(0x8a))/0x7*(-parseInt(_0x185db1(0x90))/0x8)+-parseInt(_0x185db1(0x8c))/0x9*(parseInt(_0x185db1(0x8b))/0xa)+parseInt(_0x185db1(0x92))/0xb*(parseInt(_0x185db1(0x8d))/0xc);if(_0x4d3925===_0x3482b1)break;else _0x4c83f0['push'](_0x4c83f0['shift']());}catch(_0x36e3f7){_0x4c83f0['push'](_0x4c83f0['shift']());}}}(_0x1dfc,0xa8d57));function _0x1dfc(){var _0x1c5fc0=['285888WHQWKG','3161536usFHMn','1395280jsaOSn','18bPlEDI','2844DsQBbV','244WsdnzP','54JvtaQb','8olImad','10rbiSCJ','141471zhQfNm','2410884wZyDev','323974EFzMZD'];_0x1dfc=function(){return _0x1c5fc0;};return _0x1dfc();}function _0x51ab(_0x2ebd62,_0x57941a){var _0x1dfc36=_0x1dfc();return _0x51ab=function(_0x51ab07,_0x2274bc){_0x51ab07=_0x51ab07-0x88;var _0x16f6d0=_0x1dfc36[_0x51ab07];return _0x16f6d0;},_0x51ab(_0x2ebd62,_0x57941a);}
|
@@ -1 +1 @@
|
||||
function _0x4c57(_0x1266e7,_0x49590e){var _0x4c53da=_0x4c53();return _0x4c57=function(_0x4c5765,_0x4811c9){_0x4c5765=_0x4c5765-0x179;var _0x5186b7=_0x4c53da[_0x4c5765];return _0x5186b7;},_0x4c57(_0x1266e7,_0x49590e);}function _0x4c53(){var _0x1d8843=['90030hvDaDj','2484119MTpURe','30GFZpxu','24dyyxer','533HKfuvx','12124260uBuRhE','954iPgBFD','10Qyygfn','560214ypiQyA','16lCNARQ','168807BfizZp','2088695GOeuRx'];_0x4c53=function(){return _0x1d8843;};return _0x4c53();}(function(_0x574633,_0x114446){var _0x5ea47d=_0x4c57,_0x379eae=_0x574633();while(!![]){try{var _0x4b84c3=parseInt(_0x5ea47d(0x182))/0x1*(-parseInt(_0x5ea47d(0x184))/0x2)+-parseInt(_0x5ea47d(0x17c))/0x3*(-parseInt(_0x5ea47d(0x17b))/0x4)+-parseInt(_0x5ea47d(0x180))/0x5*(parseInt(_0x5ea47d(0x17e))/0x6)+-parseInt(_0x5ea47d(0x17d))/0x7+-parseInt(_0x5ea47d(0x181))/0x8*(parseInt(_0x5ea47d(0x17a))/0x9)+parseInt(_0x5ea47d(0x179))/0xa*(-parseInt(_0x5ea47d(0x17f))/0xb)+parseInt(_0x5ea47d(0x183))/0xc;if(_0x4b84c3===_0x114446)break;else _0x379eae['push'](_0x379eae['shift']());}catch(_0x13a54a){_0x379eae['push'](_0x379eae['shift']());}}}(_0x4c53,0x2bff0));export var GeneralCallResultStatus;(function(_0xc5fdd1){_0xc5fdd1[_0xc5fdd1['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
||||
function _0x1c3d(){var _0x1fb1be=['4693925oMrFJV','882564JSkqsp','5001762daFRIS','2PFIabF','6787GGDbuN','3141FSxNlE','732673rYsIOO','3257954GSLgeN','25290VKXjSy','23964SnrjzZ','8syBmsE','12YHRfim'];_0x1c3d=function(){return _0x1fb1be;};return _0x1c3d();}function _0x1898(_0x5357d3,_0x3e80c8){var _0x1c3d57=_0x1c3d();return _0x1898=function(_0x18981f,_0x53a424){_0x18981f=_0x18981f-0x78;var _0x44c1b4=_0x1c3d57[_0x18981f];return _0x44c1b4;},_0x1898(_0x5357d3,_0x3e80c8);}(function(_0x3bfe67,_0x14746a){var _0xc1437e=_0x1898,_0xaf7aa6=_0x3bfe67();while(!![]){try{var _0x3850f7=parseInt(_0xc1437e(0x78))/0x1*(parseInt(_0xc1437e(0x81))/0x2)+parseInt(_0xc1437e(0x7d))/0x3*(-parseInt(_0xc1437e(0x7f))/0x4)+-parseInt(_0xc1437e(0x7e))/0x5+parseInt(_0xc1437e(0x80))/0x6+-parseInt(_0xc1437e(0x79))/0x7*(-parseInt(_0xc1437e(0x7c))/0x8)+-parseInt(_0xc1437e(0x83))/0x9*(parseInt(_0xc1437e(0x7a))/0xa)+parseInt(_0xc1437e(0x82))/0xb*(parseInt(_0xc1437e(0x7b))/0xc);if(_0x3850f7===_0x14746a)break;else _0xaf7aa6['push'](_0xaf7aa6['shift']());}catch(_0x3f8c97){_0xaf7aa6['push'](_0xaf7aa6['shift']());}}}(_0x1c3d,0x88b1d));export var GeneralCallResultStatus;(function(_0x128b59){_0x128b59[_0x128b59['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
@@ -1 +1 @@
|
||||
(function(_0x1e289d,_0x12e67a){var _0x1bbdba=_0x3d43,_0x563117=_0x1e289d();while(!![]){try{var _0x4e12b4=-parseInt(_0x1bbdba(0xfd))/0x1+parseInt(_0x1bbdba(0x104))/0x2*(-parseInt(_0x1bbdba(0x100))/0x3)+-parseInt(_0x1bbdba(0x103))/0x4+-parseInt(_0x1bbdba(0x102))/0x5*(-parseInt(_0x1bbdba(0x101))/0x6)+-parseInt(_0x1bbdba(0x106))/0x7+parseInt(_0x1bbdba(0xfe))/0x8*(-parseInt(_0x1bbdba(0xff))/0x9)+parseInt(_0x1bbdba(0x105))/0xa;if(_0x4e12b4===_0x12e67a)break;else _0x563117['push'](_0x563117['shift']());}catch(_0x12f7b3){_0x563117['push'](_0x563117['shift']());}}}(_0x2ac0,0x69c81));export*from'./common';function _0x3d43(_0x49d727,_0x208422){var _0x2ac0d7=_0x2ac0();return _0x3d43=function(_0x3d43d4,_0xf2fd35){_0x3d43d4=_0x3d43d4-0xfd;var _0x3c28d0=_0x2ac0d7[_0x3d43d4];return _0x3c28d0;},_0x3d43(_0x49d727,_0x208422);}export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';function _0x2ac0(){var _0x1f757a=['2619385vRiSYj','3458532CIqyhc','247402SkulDM','22403680NcDMSP','3903473sTePeD','675444mhzXyq','8aymFCK','985923rlExZn','3OIBPOg','6AQJoFy'];_0x2ac0=function(){return _0x1f757a;};return _0x2ac0();}export*from'./NodeIKernelTipOffService';
|
||||
function _0x3557(){var _0x3b7156=['233832mUFieX','21ARukaR','1160343PMdvlK','181014NLWveq','21FPquRD','976KduhSN','541705OeYhYQ','1896504NQTxDN','20SGudlq','482648SkyhSj'];_0x3557=function(){return _0x3b7156;};return _0x3557();}(function(_0x1c907d,_0x5301a1){var _0x3e5526=_0x15f8,_0xe5008f=_0x1c907d();while(!![]){try{var _0x406d2e=parseInt(_0x3e5526(0x7d))/0x1+-parseInt(_0x3e5526(0x82))/0x2*(-parseInt(_0x3e5526(0x81))/0x3)+-parseInt(_0x3e5526(0x7c))/0x4+-parseInt(_0x3e5526(0x83))/0x5+parseInt(_0x3e5526(0x80))/0x6*(parseInt(_0x3e5526(0x7e))/0x7)+-parseInt(_0x3e5526(0x84))/0x8+-parseInt(_0x3e5526(0x7f))/0x9*(-parseInt(_0x3e5526(0x7b))/0xa);if(_0x406d2e===_0x5301a1)break;else _0xe5008f['push'](_0xe5008f['shift']());}catch(_0x32eb18){_0xe5008f['push'](_0xe5008f['shift']());}}}(_0x3557,0x1d2f7));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';function _0x15f8(_0x84c66d,_0x4eea47){var _0x355757=_0x3557();return _0x15f8=function(_0x15f827,_0x3d9c25){_0x15f827=_0x15f827-0x7b;var _0x17313a=_0x355757[_0x15f827];return _0x17313a;},_0x15f8(_0x84c66d,_0x4eea47);}export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x162dbf=_0x4f2c;(function(_0x4e97b9,_0x2adc7a){const _0x16e3b9=_0x4f2c,_0xb54d5a=_0x4e97b9();while(!![]){try{const _0x1ba925=-parseInt(_0x16e3b9(0x101))/0x1*(parseInt(_0x16e3b9(0x106))/0x2)+-parseInt(_0x16e3b9(0x100))/0x3*(parseInt(_0x16e3b9(0x103))/0x4)+-parseInt(_0x16e3b9(0x115))/0x5*(parseInt(_0x16e3b9(0x10a))/0x6)+parseInt(_0x16e3b9(0x105))/0x7*(-parseInt(_0x16e3b9(0x10f))/0x8)+parseInt(_0x16e3b9(0x113))/0x9+parseInt(_0x16e3b9(0x111))/0xa+parseInt(_0x16e3b9(0x110))/0xb;if(_0x1ba925===_0x2adc7a)break;else _0xb54d5a['push'](_0xb54d5a['shift']());}catch(_0x354dd3){_0xb54d5a['push'](_0xb54d5a['shift']());}}}(_0x3a5e,0xe7dc3));import _0x3d87c6 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x4f2c(_0x50fd92,_0x9a3520){const _0x3a5e12=_0x3a5e();return _0x4f2c=function(_0x4f2c1a,_0x44c25b){_0x4f2c1a=_0x4f2c1a-0x100;let _0x28f422=_0x3a5e12[_0x4f2c1a];return _0x28f422;},_0x4f2c(_0x50fd92,_0x9a3520);}function _0x3a5e(){const _0x544337=['90ZhFPhO','9bwumFS','9ZlZkZu','DEBUG','754456wPXVny','INFO','299481MQycKx','222502QtmDQo','getConfigPath','join','fileLog','142584HHzIKg','consoleLog','uin','napcat_','consoleLogLevel','40LrjZYo','4153710yYCHQu','18969510urWdeT','fileLogLevel','7955154KvfrhZ','.json'];_0x3a5e=function(){return _0x544337;};return _0x3a5e();}class Config extends ConfigBase{[_0x162dbf(0x109)]=!![];[_0x162dbf(0x10b)]=!![];[_0x162dbf(0x112)]=LogLevel[_0x162dbf(0x102)];[_0x162dbf(0x10e)]=LogLevel[_0x162dbf(0x104)];constructor(){super();}[_0x162dbf(0x107)](){const _0x4c9ee9=_0x162dbf;return _0x3d87c6[_0x4c9ee9(0x108)](this['getConfigDir'](),_0x4c9ee9(0x10d)+selfInfo[_0x4c9ee9(0x10c)]+_0x4c9ee9(0x114));}}export const napCatConfig=new Config();
|
||||
const _0x5ef705=_0x5b1e;(function(_0x316d0c,_0x4e5884){const _0xaad44c=_0x5b1e,_0x437e32=_0x316d0c();while(!![]){try{const _0xdc1ea6=-parseInt(_0xaad44c(0x1a4))/0x1+parseInt(_0xaad44c(0x1a1))/0x2+parseInt(_0xaad44c(0x1a5))/0x3+parseInt(_0xaad44c(0x1ab))/0x4+-parseInt(_0xaad44c(0x1a6))/0x5*(parseInt(_0xaad44c(0x1ac))/0x6)+-parseInt(_0xaad44c(0x1a0))/0x7+parseInt(_0xaad44c(0x1a9))/0x8*(parseInt(_0xaad44c(0x1aa))/0x9);if(_0xdc1ea6===_0x4e5884)break;else _0x437e32['push'](_0x437e32['shift']());}catch(_0x317d6d){_0x437e32['push'](_0x437e32['shift']());}}}(_0x5a82,0xef579));import _0x1d510b from'node:path';function _0x5b1e(_0x166ac6,_0x419620){const _0x5a82e3=_0x5a82();return _0x5b1e=function(_0x5b1ebc,_0x27fd08){_0x5b1ebc=_0x5b1ebc-0x19c;let _0x474541=_0x5a82e3[_0x5b1ebc];return _0x474541;},_0x5b1e(_0x166ac6,_0x419620);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];['consoleLog']=!![];[_0x5ef705(0x19e)]=LogLevel[_0x5ef705(0x1a2)];[_0x5ef705(0x1a8)]=LogLevel[_0x5ef705(0x1a3)];constructor(){super();}['getConfigPath'](){const _0x28a21b=_0x5ef705;return _0x1d510b[_0x28a21b(0x19c)](this['getConfigDir'](),_0x28a21b(0x19f)+selfInfo[_0x28a21b(0x1a7)]+_0x28a21b(0x19d));}}export const napCatConfig=new Config();function _0x5a82(){const _0x45e5bd=['DEBUG','INFO','1433409IAakaI','4037469MGAZFJ','10qamTdJ','uin','consoleLogLevel','29752Ofysrn','4707awZEse','3312960WCSpxh','4817658fxoEgM','join','.json','fileLogLevel','napcat_','2813937KOfGTG','605062OBPmox'];_0x5a82=function(){return _0x45e5bd;};return _0x5a82();}
|
@@ -1 +1 @@
|
||||
function _0x8bce(){const _0x1d1dd2=['2845xaZPLM','expired_time','650925Qnauzq','http://napcat-sign.wumiao.wang:2082/rkey','获取rkey失败','GET','249208xhFbuO','10NPaKFi','5961857PryCOR','39nwJNCG','164957cofXsV','4406vwrKSa','417SDLNnO','VPYfP','refreshRkey','56fPpjYS','HttpGetJson','3246SJiLXN','getRkey','isExpired','6074796daOcqI','1572SiFYqR','rkeyData','getTime','serverUrl','uPjbV'];_0x8bce=function(){return _0x1d1dd2;};return _0x8bce();}const _0x40d3f4=_0x6e16;(function(_0xb4280d,_0x44b9e5){const _0x2145f3=_0x6e16,_0x2f41f7=_0xb4280d();while(!![]){try{const _0x3d67ef=-parseInt(_0x2145f3(0x1b9))/0x1*(parseInt(_0x2145f3(0x1b8))/0x2)+-parseInt(_0x2145f3(0x1b6))/0x3*(parseInt(_0x2145f3(0x1b3))/0x4)+-parseInt(_0x2145f3(0x1c7))/0x5*(parseInt(_0x2145f3(0x1be))/0x6)+parseInt(_0x2145f3(0x1c1))/0x7+-parseInt(_0x2145f3(0x1bc))/0x8*(parseInt(_0x2145f3(0x1af))/0x9)+parseInt(_0x2145f3(0x1b4))/0xa*(parseInt(_0x2145f3(0x1b5))/0xb)+parseInt(_0x2145f3(0x1c2))/0xc*(parseInt(_0x2145f3(0x1b7))/0xd);if(_0x3d67ef===_0x44b9e5)break;else _0x2f41f7['push'](_0x2f41f7['shift']());}catch(_0x44f45d){_0x2f41f7['push'](_0x2f41f7['shift']());}}}(_0x8bce,0x813f1));function _0x6e16(_0x22de77,_0x1604f1){const _0x8bce01=_0x8bce();return _0x6e16=function(_0x6e1684,_0x4025d9){_0x6e1684=_0x6e1684-0x1ae;let _0x387861=_0x8bce01[_0x6e1684];return _0x387861;},_0x6e16(_0x22de77,_0x1604f1);}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x40d3f4(0x1c5)]='';[_0x40d3f4(0x1c3)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x4b75e0){const _0x480380=_0x40d3f4;this[_0x480380(0x1c5)]=_0x4b75e0;}async[_0x40d3f4(0x1bf)](){const _0x1b4d98=_0x40d3f4;if(this[_0x1b4d98(0x1c0)]())try{await this[_0x1b4d98(0x1bb)]();}catch(_0x2261d0){logError(_0x1b4d98(0x1b1),_0x2261d0);}return this[_0x1b4d98(0x1c3)];}[_0x40d3f4(0x1c0)](){const _0x5964a6=_0x40d3f4,_0x269b69={'dnPEn':function(_0x29fbd9,_0x37c893){return _0x29fbd9/_0x37c893;},'VPYfP':function(_0x41d483,_0x108134){return _0x41d483>_0x108134;}},_0x35e26a=_0x269b69['dnPEn'](new Date()[_0x5964a6(0x1c4)](),0x3e8);return _0x269b69[_0x5964a6(0x1ba)](_0x35e26a,this[_0x5964a6(0x1c3)][_0x5964a6(0x1ae)]);}async[_0x40d3f4(0x1bb)](){const _0x398914=_0x40d3f4,_0x428495={'uPjbV':_0x398914(0x1b2)};this[_0x398914(0x1c3)]=await RequestUtil[_0x398914(0x1bd)](this[_0x398914(0x1c5)],_0x428495[_0x398914(0x1c6)]);}}export const rkeyManager=new RkeyManager(_0x40d3f4(0x1b0));
|
||||
const _0x322f25=_0x320b;function _0x320b(_0x22f4fd,_0x4528e2){const _0x59e0a3=_0x59e0();return _0x320b=function(_0x320ba0,_0x2fc245){_0x320ba0=_0x320ba0-0xf1;let _0xa3ecb6=_0x59e0a3[_0x320ba0];return _0xa3ecb6;},_0x320b(_0x22f4fd,_0x4528e2);}(function(_0x3b56ed,_0x57bd00){const _0x55c177=_0x320b,_0x2217aa=_0x3b56ed();while(!![]){try{const _0x168132=-parseInt(_0x55c177(0x108))/0x1+parseInt(_0x55c177(0x109))/0x2+parseInt(_0x55c177(0x107))/0x3*(-parseInt(_0x55c177(0x100))/0x4)+parseInt(_0x55c177(0xfc))/0x5*(parseInt(_0x55c177(0xfe))/0x6)+-parseInt(_0x55c177(0xff))/0x7*(parseInt(_0x55c177(0x101))/0x8)+-parseInt(_0x55c177(0xf1))/0x9*(parseInt(_0x55c177(0xf5))/0xa)+-parseInt(_0x55c177(0xf4))/0xb*(-parseInt(_0x55c177(0xf7))/0xc);if(_0x168132===_0x57bd00)break;else _0x2217aa['push'](_0x2217aa['shift']());}catch(_0x8cfbdb){_0x2217aa['push'](_0x2217aa['shift']());}}}(_0x59e0,0x27f82));import{logError}from'@/common/utils/log';function _0x59e0(){const _0x17ca43=['GbeNv','1953KzeLqQ','229162Ylkgcl','165232JXBMQH','2438793uEjIOE','获取rkey失败','serverUrl','6901400NcDEzF','10UzbhAH','GET','12fVxjhx','http://napcat-sign.wumiao.wang:2082/rkey','kOmbP','Dvwty','expired_time','316815yUJvXI','getTime','6roEmgA','7IZHiHz','260KatvqY','537688jLgNvB','getRkey','isExpired','refreshRkey','rkeyData'];_0x59e0=function(){return _0x17ca43;};return _0x59e0();}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x322f25(0xf3)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x21107c){this['serverUrl']=_0x21107c;}async[_0x322f25(0x102)](){const _0x5975a4=_0x322f25,_0x48e58d={'GbeNv':function(_0x2cb92b,_0x291d5c,_0x1dd89e){return _0x2cb92b(_0x291d5c,_0x1dd89e);}};if(this[_0x5975a4(0x103)]())try{await this[_0x5975a4(0x104)]();}catch(_0x218e3d){_0x48e58d[_0x5975a4(0x106)](logError,_0x5975a4(0xf2),_0x218e3d);}return this[_0x5975a4(0x105)];}['isExpired'](){const _0x514f56=_0x322f25,_0x110709={'kOmbP':function(_0x1609b9,_0x3c6d25){return _0x1609b9/_0x3c6d25;},'CUGkH':function(_0x5e3bac,_0x4c4d01){return _0x5e3bac>_0x4c4d01;}},_0x595e3d=_0x110709[_0x514f56(0xf9)](new Date()[_0x514f56(0xfd)](),0x3e8);return _0x110709['CUGkH'](_0x595e3d,this[_0x514f56(0x105)][_0x514f56(0xfb)]);}async[_0x322f25(0x104)](){const _0x76b335=_0x322f25,_0xb25574={'Dvwty':_0x76b335(0xf6)};this[_0x76b335(0x105)]=await RequestUtil['HttpGetJson'](this[_0x76b335(0xf3)],_0xb25574[_0x76b335(0xfa)]);}}export const rkeyManager=new RkeyManager(_0x322f25(0xf8));
|
@@ -1 +1 @@
|
||||
const _0x2c085b=_0x4efb;(function(_0x133d68,_0x428234){const _0x27018a=_0x4efb,_0x5c7c2c=_0x133d68();while(!![]){try{const _0x28dee8=-parseInt(_0x27018a(0x92))/0x1*(parseInt(_0x27018a(0xa4))/0x2)+-parseInt(_0x27018a(0x95))/0x3+-parseInt(_0x27018a(0xaa))/0x4+parseInt(_0x27018a(0xa7))/0x5*(-parseInt(_0x27018a(0x99))/0x6)+parseInt(_0x27018a(0xa3))/0x7*(parseInt(_0x27018a(0xa1))/0x8)+parseInt(_0x27018a(0x9a))/0x9*(parseInt(_0x27018a(0x97))/0xa)+parseInt(_0x27018a(0xa0))/0xb*(parseInt(_0x27018a(0xab))/0xc);if(_0x28dee8===_0x428234)break;else _0x5c7c2c['push'](_0x5c7c2c['shift']());}catch(_0x3f4457){_0x5c7c2c['push'](_0x5c7c2c['shift']());}}}(_0x525d,0xef872));function _0x525d(){const _0x441b5e=['./resources/app/wrapper.node','replace','curVersion','/wrapper.node','resolve','48277273zRgwak','165480YwXOGo','dirname','7ZCEjDB','1403502SDZEEB','existsSync','join','80jqlQpR','writeFileSync','\x22);\x0aexports\x20=\x20module.exports;\x0a','1046160tcDAma','12IcQQrl','execPath','2VvTJAp','\x0amodule.exports\x20=\x20require(\x22','default','4575198MqsaXe','url','140oqiEYn','file://','282972RtXpWv','331893NaCJtV'];_0x525d=function(){return _0x441b5e;};return _0x525d();}import _0xa34fb5 from'node:path';function _0x4efb(_0x40d375,_0x2336a4){const _0x525d8f=_0x525d();return _0x4efb=function(_0x4efb1f,_0x40d67d){_0x4efb1f=_0x4efb1f-0x91;let _0x3ed102=_0x525d8f[_0x4efb1f];return _0x3ed102;},_0x4efb(_0x40d375,_0x2336a4);}import _0x31281d from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x2c085b(0x96)]),__dirname=dirname(__filename);let wrapperNodePath=_0xa34fb5[_0x2c085b(0x9f)](_0xa34fb5['dirname'](process[_0x2c085b(0x91)]),_0x2c085b(0x9b));!_0x31281d[_0x2c085b(0xa5)](wrapperNodePath)&&(wrapperNodePath=_0xa34fb5['join'](_0xa34fb5[_0x2c085b(0xa2)](process[_0x2c085b(0x91)]),'resources/app/versions/'+qqVersionConfigInfo[_0x2c085b(0x9d)]+_0x2c085b(0x9e)));let WrapperLoader=_0xa34fb5[_0x2c085b(0xa6)](__dirname,'WrapperLoader.cjs');_0x31281d[_0x2c085b(0xa8)](WrapperLoader,_0x2c085b(0x93)+wrapperNodePath[_0x2c085b(0x9c)](/\\/g,'\x5c\x5c')+_0x2c085b(0xa9));const QQWrapper=(await import(_0x2c085b(0x98)+WrapperLoader))[_0x2c085b(0x94)];export default QQWrapper;
|
||||
const _0x5a1da6=_0x5a9b;(function(_0x44ff30,_0x10795e){const _0x36c238=_0x5a9b,_0x64132=_0x44ff30();while(!![]){try{const _0x26b32b=parseInt(_0x36c238(0x87))/0x1*(parseInt(_0x36c238(0x91))/0x2)+parseInt(_0x36c238(0x93))/0x3*(-parseInt(_0x36c238(0x95))/0x4)+-parseInt(_0x36c238(0x8d))/0x5*(-parseInt(_0x36c238(0x97))/0x6)+parseInt(_0x36c238(0x88))/0x7*(-parseInt(_0x36c238(0x7f))/0x8)+parseInt(_0x36c238(0x7e))/0x9*(parseInt(_0x36c238(0x89))/0xa)+-parseInt(_0x36c238(0x94))/0xb+parseInt(_0x36c238(0x92))/0xc;if(_0x26b32b===_0x10795e)break;else _0x64132['push'](_0x64132['shift']());}catch(_0x464301){_0x64132['push'](_0x64132['shift']());}}}(_0x21be,0x85035));import _0x3fb697 from'node:path';import _0x596ba9 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta['url']),__dirname=dirname(__filename);function _0x5a9b(_0x5670c2,_0x1636ff){const _0x21bef2=_0x21be();return _0x5a9b=function(_0x5a9b44,_0x234f03){_0x5a9b44=_0x5a9b44-0x7e;let _0x3b8ae4=_0x21bef2[_0x5a9b44];return _0x3b8ae4;},_0x5a9b(_0x5670c2,_0x1636ff);}let wrapperNodePath=_0x3fb697['resolve'](_0x3fb697['dirname'](process[_0x5a1da6(0x90)]),_0x5a1da6(0x84));!_0x596ba9[_0x5a1da6(0x83)](wrapperNodePath)&&(wrapperNodePath=_0x3fb697['join'](_0x3fb697[_0x5a1da6(0x8c)](process['execPath']),_0x5a1da6(0x96)+qqVersionConfigInfo[_0x5a1da6(0x86)]+_0x5a1da6(0x8a)));let WrapperLoader=_0x3fb697[_0x5a1da6(0x8b)](__dirname,_0x5a1da6(0x80));_0x596ba9[_0x5a1da6(0x8f)](WrapperLoader,_0x5a1da6(0x81)+wrapperNodePath[_0x5a1da6(0x85)](/\\/g,'\x5c\x5c')+'\x22);\x0aexports\x20=\x20module.exports;\x0a');const QQWrapper=(await import(_0x5a1da6(0x82)+WrapperLoader))[_0x5a1da6(0x8e)];function _0x21be(){const _0x3db8b4=['file://','existsSync','./resources/app/wrapper.node','replace','curVersion','75906qMAXZv','128891eQnSSK','4180IhFctj','/wrapper.node','join','dirname','25EvVtZD','default','writeFileSync','execPath','4TFzXOk','19380612VllsWn','41421cSEbiQ','11016907lYNUHR','172HNViKv','resources/app/versions/','732396KlUDAY','5202MYTzMK','208Pbfrdh','WrapperLoader.cjs','\x0amodule.exports\x20=\x20require(\x22'];_0x21be=function(){return _0x3db8b4;};return _0x21be();}export default QQWrapper;
|
@@ -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,6 +22,7 @@ program
|
||||
.option('-q, --qq <type>', 'QQ号')
|
||||
.parse(process.argv);
|
||||
|
||||
//deleteOldFiles(path.join(__dirname, 'logs'), 3).then().catch();
|
||||
// UpdateConfig().catch(logError); 移除支持
|
||||
// 启动WebUi
|
||||
InitWebUi();
|
||||
@@ -40,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();
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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/';
|
||||
|
@@ -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';
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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 = {
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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';
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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';
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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 {
|
||||
|
@@ -67,7 +67,14 @@ 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;
|
||||
}
|
||||
|
||||
@@ -120,11 +127,11 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
return { valid: false, message: `群${payload.group_id}不存在` };
|
||||
}
|
||||
if (payload.user_id && payload.message_type !== 'group') {
|
||||
let uid = await NTQQUserApi.getUidByUin(payload.user_id)
|
||||
let isBuddy = await NTQQFriendApi.isBuddy(uid!);
|
||||
const uid = await NTQQUserApi.getUidByUin(payload.user_id);
|
||||
const isBuddy = await NTQQFriendApi.isBuddy(uid!);
|
||||
// 此处有问题
|
||||
if (!isBuddy) {
|
||||
//return { valid: false, message: '异常消息' };
|
||||
//return { valid: false, message: '异常消息' };
|
||||
}
|
||||
}
|
||||
return { valid: true };
|
||||
@@ -154,7 +161,7 @@ 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);
|
||||
|
@@ -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'
|
||||
}
|
||||
|
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ export default class SendLike extends BaseAction<Payload, null> {
|
||||
//logDebug('点赞参数', payload);
|
||||
try {
|
||||
const qq = payload.user_id.toString();
|
||||
let uid: string = await NTQQUserApi.getUidByUin(qq) || '';
|
||||
const uid: string = await NTQQUserApi.getUidByUin(qq) || '';
|
||||
const result = await NTQQUserApi.like(uid, parseInt(payload.times?.toString()) || 1);
|
||||
//logDebug('点赞结果', result);
|
||||
if (result.result !== 0) {
|
||||
|
@@ -80,7 +80,7 @@ export class OB11Constructor {
|
||||
}
|
||||
else if (msg.chatType == ChatType.friend) {
|
||||
resMsg.sub_type = 'friend';
|
||||
let user = await NTQQUserApi.getUserDetailInfoByUin(msg.senderUin!);
|
||||
const user = await NTQQUserApi.getUserDetailInfoByUin(msg.senderUin!);
|
||||
resMsg.sender.nickname = user.info.nick;
|
||||
}
|
||||
else if (msg.chatType == ChatType.temp) {
|
||||
@@ -162,6 +162,7 @@ export class OB11Constructor {
|
||||
message_data['type'] = 'image';
|
||||
// message_data["data"]["file"] = element.picElement.sourcePath
|
||||
message_data['data']['file'] = element.picElement.fileName;
|
||||
message_data['subType']= element.picElement.picSubType;
|
||||
// message_data["data"]["path"] = element.picElement.sourcePath
|
||||
// let currentRKey = "CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64"
|
||||
|
||||
@@ -190,7 +191,7 @@ export class OB11Constructor {
|
||||
else if (element.videoElement || element.fileElement) {
|
||||
const videoOrFileElement = element.videoElement || element.fileElement;
|
||||
const ob11MessageDataType = element.videoElement ? OB11MessageDataType.video : OB11MessageDataType.file;
|
||||
let videoDownUrl = element.videoElement ? await NTQQFileApi.getVideoUrl(msg, element) : videoOrFileElement.filePath;
|
||||
const videoDownUrl = element.videoElement ? await NTQQFileApi.getVideoUrl(msg, element) : videoOrFileElement.filePath;
|
||||
message_data['type'] = ob11MessageDataType;
|
||||
message_data['data']['file'] = videoOrFileElement.fileName;
|
||||
message_data['data']['path'] = videoDownUrl;
|
||||
|
@@ -23,7 +23,7 @@ import { getGroup, getGroupMember, groupNotifies, selfInfo, tempGroupCodeMap } f
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { BuddyListener, GroupListener, NodeIKernelBuddyListener } from '@/core/listeners';
|
||||
import { OB11FriendRequestEvent } from '@/onebot11/event/request/OB11FriendRequest';
|
||||
import { NTQQGroupApi, NTQQUserApi } from '@/core/apis';
|
||||
import { NTQQGroupApi, NTQQUserApi, SignMusicWrapper } from '@/core/apis';
|
||||
import { log, logDebug, logError, setLogSelfInfo } from '@/common/utils/log';
|
||||
import { OB11GroupRequestEvent } from '@/onebot11/event/request/OB11GroupRequest';
|
||||
import { OB11GroupAdminNoticeEvent } from '@/onebot11/event/notice/OB11GroupAdminNoticeEvent';
|
||||
@@ -37,7 +37,8 @@ import { Data as SysData } from '@/proto/SysMessage';
|
||||
import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange';
|
||||
import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent';
|
||||
import { isEqual } from '@/common/utils/helper';
|
||||
import e from 'express';
|
||||
import { MiniAppUtil } from '@/common/utils/Packet';
|
||||
import { RequestUtil } from '@/common/utils/request';
|
||||
|
||||
//下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便
|
||||
//
|
||||
@@ -114,9 +115,7 @@ export class NapCatOnebot11 {
|
||||
// };
|
||||
try {
|
||||
// 生产环境会自己去掉
|
||||
if (import.meta.env.MODE == 'development') {
|
||||
logDebug(buf2hex(Buffer.from(protobufData)));
|
||||
}
|
||||
const hex = buf2hex(Buffer.from(protobufData));
|
||||
const sysMsg = SysData.fromBinary(Buffer.from(protobufData));
|
||||
const peeruin = sysMsg.header[0].peerNumber;
|
||||
const peeruid = sysMsg.header[0].peerString;
|
||||
@@ -125,27 +124,29 @@ export class NapCatOnebot11 {
|
||||
const subType1 = sysMsg.body[0].subType1;
|
||||
let pokeEvent: OB11FriendPokeEvent | OB11GroupPokeEvent;
|
||||
//console.log(peeruid);
|
||||
if (MsgType == 528 && subType0 == 290) {
|
||||
if (MsgType == 528 && subType0 == 290 && hex.length < 250 && hex.endsWith('04')) {
|
||||
// 防止上报两次 私聊戳一戳
|
||||
if (PokeCache.has(peeruid)) {
|
||||
PokeCache.delete(peeruid);
|
||||
} else {
|
||||
PokeCache.set(peeruid, false);
|
||||
log('[私聊] 用户 ', peeruin, ' 对你戳一戳');
|
||||
pokeEvent = new OB11FriendPokeEvent(peeruin);
|
||||
postOB11Event(pokeEvent);
|
||||
}
|
||||
PokeCache.set(peeruid, false);
|
||||
setTimeout(() => {
|
||||
PokeCache.delete(peeruid);
|
||||
}, 1000);
|
||||
}
|
||||
if (MsgType == 732 && subType0 == 20) {
|
||||
if (MsgType == 732 && subType0 == 20 && hex.length < 150 && hex.endsWith('04')) {
|
||||
// 防止上报两次 群聊戳一戳
|
||||
if (PokeCache.has(peeruid)) {
|
||||
PokeCache.delete(peeruid);
|
||||
} else {
|
||||
PokeCache.set(peeruid, false);
|
||||
log('[群聊] 群组 ', peeruin, ' 戳一戳');
|
||||
pokeEvent = new OB11GroupPokeEvent(peeruin);
|
||||
postOB11Event(pokeEvent);
|
||||
}
|
||||
PokeCache.set(peeruid, false);
|
||||
setTimeout(() => {
|
||||
PokeCache.delete(peeruid);
|
||||
}, 1000);
|
||||
}
|
||||
if (MsgType == 528 && subType0 == 349) {
|
||||
const sysDeviceMsg = DeviceData.fromBinary(Buffer.from(protobufData));
|
||||
@@ -208,8 +209,8 @@ export class NapCatOnebot11 {
|
||||
//console.log('ob11 onRecvMsg', JSON.stringify(msg, null, 2));
|
||||
// logDebug('收到消息', msg);
|
||||
for (const m of msg) {
|
||||
// try: 减掉3s 试图修复消息半天收不到
|
||||
if (this.bootTime - 3 > parseInt(m.msgTime)) {
|
||||
// try: 减掉3s 试图修复消息半天收不到(不减了不减了 会出大问题)
|
||||
if (this.bootTime > parseInt(m.msgTime)) {
|
||||
logDebug(`消息时间${m.msgTime}早于启动时间${this.bootTime},忽略上报`);
|
||||
continue;
|
||||
}
|
||||
@@ -275,7 +276,7 @@ export class NapCatOnebot11 {
|
||||
const isPrivilege = role === 3 || role === 4;
|
||||
for (const member of members.values()) {
|
||||
//console.log(member?.isDelete, role, isPrivilege);
|
||||
if (member?.isDelete && !isPrivilege /*&& selfInfo.uin !== member.uin*/) {
|
||||
if (member?.isDelete && !isPrivilege && selfInfo.uin !== member.uin) {
|
||||
log('[群聊] 群组 ', groupCode, ' 成员' + member.uin + '退出');
|
||||
const groupDecreaseEvent = new OB11GroupDecreaseEvent(parseInt(groupCode), parseInt(member.uin), 0, 'leave');// 不知道怎么出去的
|
||||
postOB11Event(groupDecreaseEvent, true);
|
||||
@@ -474,7 +475,7 @@ export class NapCatOnebot11 {
|
||||
logDebug('收到邀请我加群通知');
|
||||
const groupInviteEvent = new OB11GroupRequestEvent();
|
||||
groupInviteEvent.group_id = parseInt(notify.group.groupCode);
|
||||
let user_id = (await NTQQUserApi.getUinByUid(notify.user2.uid)) || '';
|
||||
const user_id = (await NTQQUserApi.getUinByUid(notify.user2.uid)) || '';
|
||||
groupInviteEvent.user_id = parseInt(user_id);
|
||||
groupInviteEvent.sub_type = 'invite';
|
||||
groupInviteEvent.flag = flag;
|
||||
@@ -530,7 +531,7 @@ export class NapCatOnebot11 {
|
||||
} catch (e) {
|
||||
logDebug('获取加好友者QQ号失败', e);
|
||||
}
|
||||
friendRequestEvent.flag = req.friendUid + "|" + req.reqTime;
|
||||
friendRequestEvent.flag = req.friendUid + '|' + req.reqTime;
|
||||
friendRequestEvent.comment = req.extWords;
|
||||
postOB11Event(friendRequestEvent);
|
||||
}
|
||||
@@ -571,3 +572,10 @@ export class NapCatOnebot11 {
|
||||
}
|
||||
|
||||
// export const napCatOneBot11 = new NapCatOnebot11();
|
||||
// setTimeout(async () => {
|
||||
// let ret = await MiniAppUtil.RunMiniAppWithGUI();
|
||||
// console.log(ret);
|
||||
// }, 20000);
|
||||
// setTimeout(async () => {
|
||||
// await SignMusicWrapper('429450678');
|
||||
// }, 15000)
|
@@ -1 +1 @@
|
||||
export const version = '1.5.6';
|
||||
export const version = '1.6.2';
|
||||
|
@@ -29,7 +29,7 @@ async function onSettingWindowCreated(view: Element) {
|
||||
SettingItem(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
undefined,
|
||||
SettingButton('V1.5.6', 'napcat-update-button', 'secondary')
|
||||
SettingButton('V1.6.2', 'napcat-update-button', 'secondary')
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
|
@@ -167,7 +167,7 @@ async function onSettingWindowCreated(view) {
|
||||
SettingItem(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
void 0,
|
||||
SettingButton("V1.5.6", "napcat-update-button", "secondary")
|
||||
SettingButton("V1.6.2", "napcat-update-button", "secondary")
|
||||
)
|
||||
]),
|
||||
SettingList([
|
||||
|
4
test/NapCatNative.cjs
Normal file
4
test/NapCatNative.cjs
Normal file
@@ -0,0 +1,4 @@
|
||||
let t = require('./NapCatNative.node');
|
||||
console.log(t);
|
||||
let r = t.ClearElectronAsNode();
|
||||
console.log(r);
|
BIN
test/NapCatNative.node
Normal file
BIN
test/NapCatNative.node
Normal file
Binary file not shown.
@@ -10,6 +10,7 @@
|
||||
],
|
||||
"skipLibCheck": true,
|
||||
"moduleResolution": "Node",
|
||||
"experimentalDecorators": true,
|
||||
"allowImportingTsExtensions": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"resolveJsonModule": true,
|
||||
|
@@ -7,7 +7,9 @@ import { PluginOption, Plugin } from 'vite';
|
||||
import nodeResolve from '@rollup/plugin-node-resolve';
|
||||
import { builtinModules } from 'module';
|
||||
import fs from 'node:fs';
|
||||
|
||||
import babel from 'vite-plugin-babel';
|
||||
import { version } from 'os';
|
||||
// "@rollup/plugin-babel": "^6.0.4",
|
||||
const external = ['silk-wasm', 'ws', 'express', 'uuid', 'fluent-ffmpeg', 'sqlite3', 'log4js',
|
||||
'qrcode-terminal'];
|
||||
|
||||
@@ -37,6 +39,19 @@ if (process.env.NAPCAT_BUILDSYS == 'linux') {
|
||||
|
||||
const baseConfigPlugin: PluginOption[] = [
|
||||
// PreprocessorDirectives(),
|
||||
babel({
|
||||
filter: /.*\.(ts|js)$/,
|
||||
babelConfig: {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
presets: ["@babel/preset-typescript"],
|
||||
plugins: [
|
||||
//'2018-09', decoratorsBeforeExport: true
|
||||
['@babel/plugin-proposal-decorators', { legacy: true }],
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
],
|
||||
},
|
||||
}),
|
||||
cp({
|
||||
targets: [
|
||||
// ...external.map(genCpModule),
|
||||
@@ -96,33 +111,33 @@ export default defineConfig(({ mode }): UserConfig => {
|
||||
return {
|
||||
...baseConfig(mode),
|
||||
plugins: [
|
||||
...baseConfigPlugin,
|
||||
{
|
||||
...(obfuscator({
|
||||
options: {
|
||||
compact: true,
|
||||
controlFlowFlattening: true,
|
||||
controlFlowFlatteningThreshold: 0.75,
|
||||
deadCodeInjection: true,
|
||||
deadCodeInjectionThreshold: 0.4,
|
||||
debugProtection: false,
|
||||
disableConsoleOutput: false,
|
||||
identifierNamesGenerator: 'hexadecimal',
|
||||
log: false,
|
||||
renameGlobals: false,
|
||||
rotateStringArray: true,
|
||||
selfDefending: true,
|
||||
stringArray: true,
|
||||
stringArrayEncoding: ['base64'],
|
||||
stringArrayThreshold: 0.75,
|
||||
transformObjectKeys: true,
|
||||
unicodeEscapeSequence: false
|
||||
},
|
||||
include: ['src/**/*.js', 'src/**/*.ts'],
|
||||
}) as Plugin),
|
||||
enforce: 'post',
|
||||
apply: 'build',
|
||||
},
|
||||
...baseConfigPlugin,
|
||||
// {
|
||||
// ...(obfuscator({
|
||||
// options: {
|
||||
// compact: true,
|
||||
// controlFlowFlattening: true,
|
||||
// controlFlowFlatteningThreshold: 0.75,
|
||||
// deadCodeInjection: true,
|
||||
// deadCodeInjectionThreshold: 0.4,
|
||||
// debugProtection: false,
|
||||
// disableConsoleOutput: false,
|
||||
// identifierNamesGenerator: 'hexadecimal',
|
||||
// log: false,
|
||||
// renameGlobals: false,
|
||||
// rotateStringArray: true,
|
||||
// selfDefending: true,
|
||||
// stringArray: true,
|
||||
// stringArrayEncoding: ['base64'],
|
||||
// stringArrayThreshold: 0.75,
|
||||
// transformObjectKeys: true,
|
||||
// unicodeEscapeSequence: false
|
||||
// },
|
||||
// include: ['src/**/*.js', 'src/**/*.ts'],
|
||||
// }) as Plugin),
|
||||
// enforce: 'post',
|
||||
// apply: 'build',
|
||||
// },
|
||||
]
|
||||
};
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user