Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5843b7236 | ||
|
|
1c9c574a90 | ||
|
|
39acf20e48 | ||
|
|
52eb6ed5ab | ||
|
|
ee78d2d59d | ||
|
|
60dc5c4a38 | ||
|
|
50a0dc0355 | ||
|
|
3f681ec914 | ||
|
|
0bf499f191 | ||
|
|
389695a0d6 | ||
|
|
07f1afb312 | ||
|
|
ae91e61304 | ||
|
|
6248991b01 | ||
|
|
7f2d57ef62 | ||
|
|
31f8f884f1 | ||
|
|
4f4af5985a | ||
|
|
a716fdf6d4 | ||
|
|
9717f64abd | ||
|
|
adf239183a | ||
|
|
6cf209c79c | ||
|
|
decc5fb3c0 | ||
|
|
1e0820d613 | ||
|
|
70124d5177 | ||
|
|
269de65201 | ||
|
|
1d11abbfb6 | ||
|
|
700f308d6e | ||
|
|
21b6928ca6 | ||
|
|
998c67a649 | ||
|
|
fb99e878b0 | ||
|
|
1619adfc27 | ||
|
|
5510fb473f | ||
|
|
be1878cb2b | ||
|
|
15ab121cbd | ||
|
|
aa79b0e861 | ||
|
|
b80e550bcd | ||
|
|
dbc40b5814 | ||
|
|
0d5696a644 | ||
|
|
ceffa05802 | ||
|
|
d5668920b6 | ||
|
|
516f2da144 | ||
|
|
33c94e1888 | ||
|
|
51ab58cd91 | ||
|
|
aa7798d1d1 | ||
|
|
9067a1fc92 | ||
|
|
4024b6c564 | ||
|
|
d39730928b | ||
|
|
e1f049229c | ||
|
|
8f2676ec19 | ||
|
|
32d26248dc | ||
|
|
16f926401b | ||
|
|
66d60d3599 | ||
|
|
5a35ab6c34 | ||
|
|
ba1542bd31 | ||
|
|
453060945a | ||
|
|
c8351be461 | ||
|
|
9954da22a6 | ||
|
|
907b5611eb | ||
|
|
5f075de212 | ||
|
|
8fcf3c5079 | ||
|
|
07cee90c7a | ||
|
|
75ad495b98 | ||
|
|
0bb7288ad2 | ||
|
|
ad72415532 | ||
|
|
0ad0353fc0 | ||
|
|
9fa0dcd7aa | ||
|
|
1f2e80cd39 | ||
|
|
6cb6034d43 | ||
|
|
25134c6ac6 | ||
|
|
92bf42878a | ||
|
|
9f4582d158 | ||
|
|
68af73970e | ||
|
|
b6ed8d4975 | ||
|
|
d07d3645ce | ||
|
|
123759ab17 | ||
|
|
f2f1f893d8 | ||
|
|
db93a8eed2 | ||
|
|
12ab6d4a7d | ||
|
|
add759e889 | ||
|
|
f315f7977d | ||
|
|
f2f6701ebd | ||
|
|
1a92794d33 | ||
|
|
7640deb798 |
No files matched your search
+1
-1
@@ -14,4 +14,4 @@ dist/
|
||||
|
||||
# Build
|
||||
*.db
|
||||
checkVersion.sh
|
||||
checkVersion.sh
|
||||
@@ -1,6 +1,6 @@
|
||||
# v1.3.9
|
||||
|
||||
QQ Version: Windows 9.9.9-23873 / Linux 3.2.7-23361
|
||||
QQ Version: Windows 9.9.10-23873 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复QQ等级获取与兼容性问题
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.0
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
|
||||
## 新增与调整
|
||||
* 支持空间Cookies获取
|
||||
* 支持获取在线设备 API /get_online_clients
|
||||
* 支持图片OCR API: /.ocr_image /ocr_image
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,14 @@
|
||||
# v1.4.1
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 提高部分Api兼容性
|
||||
* 优化日志膨胀问题
|
||||
* 在线状态刷新问题修复
|
||||
## 新增与调整
|
||||
* 支持非管理群 本地记录时间数据 (建议 **备份配置 清空配置 重新配置**)
|
||||
* 新增英译中接口 Api: /translate_en2zh
|
||||
* 新增群文件管理相关扩展接口 Api: /get_group_file_count /get_group_file_list /set_group_file_folder /del_group_file /del_group_file_folder
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.2
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复获取群文件列表Api
|
||||
* 修复退群通知问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,11 @@
|
||||
# v1.4.3
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 修复名片通知
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
@@ -0,0 +1,10 @@
|
||||
# v1.4.4
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 更新
|
||||
* **重大更新:**更新了版本号
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.5
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 紧急修复二维扫码问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# v1.4.6
|
||||
|
||||
QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
|
||||
|
||||
## 修复与优化
|
||||
* 优化整体稳定性
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
||||
|
||||
+66
-66
@@ -1,66 +1,66 @@
|
||||
{
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.3.9",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
"build:dev": "vite build --mode development",
|
||||
"build:prod": "vite build --mode production",
|
||||
"build": "npm run build:dev",
|
||||
"build:core": "cd ./src/core && npm run build && cd ../.. && node ./script/copy-core.cjs",
|
||||
"build:webui": "cd ./src/webui && vite build",
|
||||
"watch": "npm run watch:dev",
|
||||
"debug-win": "powershell dist/napcat.ps1",
|
||||
"lint": "eslint --fix src/**/*.{js,ts}",
|
||||
"release": "npm run build:prod",
|
||||
"depend": "cd dist && npm install --omit=dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@log4js-node/log4js-api": "^1.0.2",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/qrcode-terminal": "^0.12.2",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"i": "^0.3.7",
|
||||
"javascript-obfuscator": "^4.1.0",
|
||||
"rollup": "^4.13.2",
|
||||
"rollup-plugin-dts": "^6.1.0",
|
||||
"rollup-plugin-obfuscator": "^1.1.0",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.2.6",
|
||||
"vite-plugin-cp": "^4.0.8",
|
||||
"vite-plugin-dts": "^3.8.2",
|
||||
"vite-tsconfig-paths": "^4.3.2",
|
||||
"@protobuf-ts/plugin": "^2.9.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^8.13.0",
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
"fast-xml-parser": "^4.3.6",
|
||||
"file-type": "^19.0.0",
|
||||
"fluent-ffmpeg": "^2.1.2",
|
||||
"image-size": "^1.1.1",
|
||||
"json-schema-to-ts": "^3.1.0",
|
||||
"log4js": "^6.9.1",
|
||||
"qrcode-terminal": "^0.12.0",
|
||||
"silk-wasm": "^3.3.4",
|
||||
"sqlite3": "^5.1.7",
|
||||
"uuid": "^9.0.1",
|
||||
"ws": "^8.16.0"
|
||||
}
|
||||
}
|
||||
{
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.4.6",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
"build:dev": "vite build --mode development",
|
||||
"build:prod": "vite build --mode production",
|
||||
"build": "npm run build:dev",
|
||||
"build:core": "cd ./src/core && npm run build && cd ../.. && node ./script/copy-core.cjs",
|
||||
"build:webui": "cd ./src/webui && vite build",
|
||||
"watch": "npm run watch:dev",
|
||||
"debug-win": "powershell dist/napcat.ps1",
|
||||
"lint": "eslint --fix src/**/*.{js,ts}",
|
||||
"release": "npm run build:prod",
|
||||
"depend": "cd dist && npm install --omit=dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@log4js-node/log4js-api": "^1.0.2",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@rollup/plugin-typescript": "^11.1.6",
|
||||
"@types/cors": "^2.8.17",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/figlet": "^1.5.8",
|
||||
"@types/fluent-ffmpeg": "^2.1.24",
|
||||
"@types/node": "^20.11.30",
|
||||
"@types/qrcode-terminal": "^0.12.2",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"i": "^0.3.7",
|
||||
"javascript-obfuscator": "^4.1.0",
|
||||
"rollup": "^4.13.2",
|
||||
"rollup-plugin-dts": "^6.1.0",
|
||||
"rollup-plugin-obfuscator": "^1.1.0",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.2.6",
|
||||
"vite-plugin-cp": "^4.0.8",
|
||||
"vite-plugin-dts": "^3.8.2",
|
||||
"vite-tsconfig-paths": "^4.3.2",
|
||||
"@protobuf-ts/plugin": "^2.9.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "^8.13.0",
|
||||
"commander": "^12.0.0",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^5.0.0-beta.2",
|
||||
"fast-xml-parser": "^4.3.6",
|
||||
"file-type": "^19.0.0",
|
||||
"fluent-ffmpeg": "^2.1.2",
|
||||
"image-size": "^1.1.1",
|
||||
"json-schema-to-ts": "^3.1.0",
|
||||
"log4js": "^6.9.1",
|
||||
"qrcode-terminal": "^0.12.0",
|
||||
"silk-wasm": "^3.3.4",
|
||||
"sqlite3": "^5.1.7",
|
||||
"uuid": "^9.0.1",
|
||||
"ws": "^8.16.0"
|
||||
}
|
||||
}
|
||||
@@ -37,14 +37,14 @@ export abstract class HttpServerBase {
|
||||
const authHeader = req.get('authorization');
|
||||
if (authHeader) {
|
||||
clientToken = authHeader.split('Bearer ').pop() || '';
|
||||
logDebug('receive http header token', clientToken);
|
||||
//logDebug('receive http header token', clientToken);
|
||||
} else if (req.query.access_token) {
|
||||
if (Array.isArray(req.query.access_token)) {
|
||||
clientToken = req.query.access_token[0].toString();
|
||||
} else {
|
||||
clientToken = req.query.access_token.toString();
|
||||
}
|
||||
logDebug('receive http url token', clientToken);
|
||||
//logDebug('receive http url token', clientToken);
|
||||
}
|
||||
|
||||
if (serverToken && clientToken != serverToken) {
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
import { NodeIKernelMsgListener } from "@/core";
|
||||
import { NodeIQQNTWrapperSession } from "@/core/wrapper";
|
||||
import { randomUUID } from "crypto";
|
||||
|
||||
interface Internal_MapKey {
|
||||
timeout: number,
|
||||
createtime: number,
|
||||
func: Function
|
||||
}
|
||||
|
||||
export class ListenerClassBase {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export interface ListenerIBase {
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-new
|
||||
new(listener: any): ListenerClassBase;
|
||||
}
|
||||
|
||||
export class NTEventWrapper {
|
||||
|
||||
private ListenerMap: { [key: string]: ListenerIBase } | undefined;//ListenerName-Unique -> Listener构造函数
|
||||
private WrapperSession: NodeIQQNTWrapperSession | undefined;//WrapperSession
|
||||
private ListenerManger: Map<string, ListenerClassBase> = new Map<string, ListenerClassBase>(); //ListenerName-Unique -> Listener实例
|
||||
private EventTask = new Map<string, Map<string, Map<string, Internal_MapKey>>>();//tasks ListenerMainName -> ListenerSubName-> uuid -> {timeout,createtime,func}
|
||||
constructor() {
|
||||
|
||||
}
|
||||
createProxyDispatch(ListenerMainName: string) {
|
||||
let current = this;
|
||||
return new Proxy({}, {
|
||||
get(target: any, prop: any, receiver: any) {
|
||||
// console.log('get', prop, typeof target[prop]);
|
||||
if (typeof target[prop] === 'undefined') {
|
||||
// 如果方法不存在,返回一个函数,这个函数调用existentMethod
|
||||
return (...args: any[]) => {
|
||||
current.DispatcherListener.apply(current, [ListenerMainName, prop, ...args]).then();
|
||||
};
|
||||
}
|
||||
// 如果方法存在,正常返回
|
||||
return Reflect.get(target, prop, receiver);
|
||||
}
|
||||
});
|
||||
}
|
||||
init({ ListenerMap, WrapperSession }: { ListenerMap: { [key: string]: typeof ListenerClassBase }, WrapperSession: NodeIQQNTWrapperSession }) {
|
||||
this.ListenerMap = ListenerMap;
|
||||
this.WrapperSession = WrapperSession;
|
||||
}
|
||||
CreatEventFunction<T extends (...args: any) => any>(eventName: string): T | undefined {
|
||||
let eventNameArr = eventName.split('/');
|
||||
type eventType = {
|
||||
[key: string]: () => { [key: string]: (...params: Parameters<T>) => Promise<ReturnType<T>> }
|
||||
}
|
||||
if (eventNameArr.length > 1) {
|
||||
let serviceName = 'get' + eventNameArr[0].replace('NodeIKernel', '');
|
||||
let eventName = eventNameArr[1];
|
||||
//getNodeIKernelGroupListener,GroupService
|
||||
//console.log('2', eventName);
|
||||
let services = (this.WrapperSession as unknown as eventType)[serviceName]();
|
||||
let event = services[eventName];
|
||||
//重新绑定this
|
||||
event = event.bind(services);
|
||||
if (event) {
|
||||
return event as T;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
}
|
||||
CreatListenerFunction<T>(listenerMainName: string, uniqueCode: string = ""): T {
|
||||
let ListenerType = this.ListenerMap![listenerMainName];
|
||||
let Listener = this.ListenerManger.get(listenerMainName + uniqueCode);
|
||||
if (!Listener && ListenerType) {
|
||||
Listener = new ListenerType(this.createProxyDispatch(listenerMainName));
|
||||
let ServiceSubName = listenerMainName.match(/^NodeIKernel(.*?)Listener$/)![1];
|
||||
let Service = "NodeIKernel" + ServiceSubName + "Service/addKernel" + ServiceSubName + "Listener";
|
||||
let addfunc = this.CreatEventFunction<(listener: T) => number>(Service);
|
||||
addfunc!(Listener as T);
|
||||
//console.log(addfunc!(Listener as T));
|
||||
this.ListenerManger.set(listenerMainName + uniqueCode, Listener);
|
||||
}
|
||||
return Listener as T;
|
||||
}
|
||||
//统一回调清理事件
|
||||
async DispatcherListener(ListenerMainName: string, ListenerSubName: string, ...args: any[]) {
|
||||
//console.log(ListenerMainName, this.EventTask.get(ListenerMainName), ListenerSubName, this.EventTask.get(ListenerMainName)?.get(ListenerSubName));
|
||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.forEach((task, uuid) => {
|
||||
//console.log(task.func, uuid, task.createtime, task.timeout);
|
||||
if (task.createtime + task.timeout < Date.now()) {
|
||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.delete(uuid);
|
||||
return;
|
||||
}
|
||||
task.func(...args);
|
||||
})
|
||||
}
|
||||
async CallNoListenerEvent<EventType extends (...args: any[]) => Promise<any>,>(EventName = '', timeout: number = 3000, ...args: Parameters<EventType>) {
|
||||
return new Promise<ReturnType<EventType>>(async (resolve, reject) => {
|
||||
let EventFunc = this.CreatEventFunction<EventType>(EventName);
|
||||
let complete = false;
|
||||
let Timeouter = setTimeout(() => {
|
||||
if (!complete) {
|
||||
reject(new Error('NTEvent EventName:' + EventName + ' timeout'));
|
||||
}
|
||||
}, timeout);
|
||||
let retData = await EventFunc!(...args);
|
||||
complete = true;
|
||||
resolve(retData);
|
||||
});
|
||||
}
|
||||
async CallNormalEvent<EventType extends (...args: any[]) => Promise<any>, ListenerType extends (...args: any[]) => void>(EventName = '', ListenerName = '', waitTimes = 1, timeout: number = 3000, ...args: Parameters<EventType>) {
|
||||
return new Promise<[EventRet: Awaited<ReturnType<EventType>>, ...Parameters<ListenerType>]>(async (resolve, reject) => {
|
||||
const id = randomUUID();
|
||||
let complete = 0;
|
||||
let retData: ArrayLike<Parameters<ListenerType>> | undefined = undefined;
|
||||
let retEvent: any = {};
|
||||
let databack = () => {
|
||||
if (complete < waitTimes) {
|
||||
reject(new Error('NTEvent EventName:' + EventName + ' ListenerName:' + ListenerName + ' timeout'));
|
||||
} else {
|
||||
|
||||
resolve([retEvent as Awaited<ReturnType<EventType>>, ...(retData as Parameters<ListenerType>)]);
|
||||
}
|
||||
}
|
||||
let Timeouter = setTimeout(databack, timeout);
|
||||
|
||||
let ListenerNameList = ListenerName.split('/');
|
||||
let ListenerMainName = ListenerNameList[0];
|
||||
let ListenerSubName = ListenerNameList[1];
|
||||
let eventCallbak = {
|
||||
timeout: timeout,
|
||||
createtime: Date.now(),
|
||||
func: (...args: any[]) => {
|
||||
complete++;
|
||||
//console.log('func', ...args);
|
||||
retData = args as ArrayLike<Parameters<ListenerType>>;
|
||||
if (complete >= waitTimes) {
|
||||
clearTimeout(Timeouter);
|
||||
databack();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!this.EventTask.get(ListenerMainName)) {
|
||||
this.EventTask.set(ListenerMainName, new Map());
|
||||
}
|
||||
if (!(this.EventTask.get(ListenerMainName)?.get(ListenerSubName))) {
|
||||
this.EventTask.get(ListenerMainName)?.set(ListenerSubName, new Map());
|
||||
}
|
||||
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.set(id, eventCallbak);
|
||||
this.CreatListenerFunction(ListenerMainName);
|
||||
let EventFunc = this.CreatEventFunction<EventType>(EventName);
|
||||
retEvent = await EventFunc!(...args);
|
||||
});
|
||||
}
|
||||
}
|
||||
export const NTEventDispatch = new NTEventWrapper();
|
||||
|
||||
// 示例代码 快速创建事件
|
||||
// let NTEvent = new NTEventWrapper();
|
||||
// let TestEvent = NTEvent.CreatEventFunction<(force: boolean) => Promise<Number>>('NodeIKernelProfileLikeService/GetTest');
|
||||
// if (TestEvent) {
|
||||
// TestEvent(true);
|
||||
// }
|
||||
|
||||
// 示例代码 快速创建监听Listener类
|
||||
// let NTEvent = new NTEventWrapper();
|
||||
// NTEvent.CreatListenerFunction<NodeIKernelMsgListener>('NodeIKernelMsgListener', 'core')
|
||||
|
||||
|
||||
// 调用接口
|
||||
//let NTEvent = new NTEventWrapper();
|
||||
//let ret = await NTEvent.CallNormalEvent<(force: boolean) => Promise<Number>, (data1: string, data2: number) => void>('NodeIKernelProfileLikeService/GetTest', 'NodeIKernelMsgListener/onAddSendMsg', 1, 3000, true);
|
||||
|
||||
// 注册监听 解除监听
|
||||
// NTEventDispatch.RigisterListener('NodeIKernelMsgListener/onAddSendMsg','core',cb);
|
||||
// NTEventDispatch.UnRigisterListener('NodeIKernelMsgListener/onAddSendMsg','core');
|
||||
|
||||
// let GetTest = NTEventDispatch.CreatEvent('NodeIKernelProfileLikeService/GetTest','NodeIKernelMsgListener/onAddSendMsg',Mode);
|
||||
// GetTest('test');
|
||||
|
||||
// always模式
|
||||
// NTEventDispatch.CreatEvent('NodeIKernelProfileLikeService/GetTest','NodeIKernelMsgListener/onAddSendMsg',Mode,(...args:any[])=>{ console.log(args) });
|
||||
@@ -0,0 +1,145 @@
|
||||
import { logError, logDebug } from "@/common/utils/log";
|
||||
|
||||
type group_id = number;
|
||||
type user_id = number;
|
||||
|
||||
class cacheNode<T> {
|
||||
value: T;
|
||||
groupId: group_id;
|
||||
userId: user_id;
|
||||
prev: cacheNode<T> | null;
|
||||
next: cacheNode<T> | null;
|
||||
timestamp: number;
|
||||
|
||||
constructor(groupId: group_id, userId: user_id, value: T) {
|
||||
this.groupId = groupId;
|
||||
this.userId = userId;
|
||||
this.value = value;
|
||||
this.prev = null;
|
||||
this.next = null;
|
||||
this.timestamp = Date.now();
|
||||
}
|
||||
}
|
||||
|
||||
type cache<T> = { [key: group_id]: { [key: user_id]: cacheNode<T> } };
|
||||
class LRU<T> {
|
||||
private maxAge: number;
|
||||
private maxSize: number;
|
||||
private currentSize: number;
|
||||
private cache: cache<T>;
|
||||
private head: cacheNode<T> | null = null;
|
||||
private tail: cacheNode<T> | null = null;
|
||||
private onFuncs: ((node: cacheNode<T>) => void)[] = [];
|
||||
|
||||
constructor(maxAge: number = 2e4, maxSize: number = 5e3) {
|
||||
this.maxAge = maxAge;
|
||||
this.maxSize = maxSize;
|
||||
this.cache = Object.create(null);
|
||||
this.currentSize = 0;
|
||||
|
||||
if (maxSize == 0) return;
|
||||
setInterval(() => this.removeExpired(), this.maxAge);
|
||||
}
|
||||
|
||||
// 移除LRU节点
|
||||
private removeLRUNode(node: cacheNode<T>) {
|
||||
logDebug(
|
||||
"removeLRUNode",
|
||||
node.groupId,
|
||||
node.userId,
|
||||
node.value,
|
||||
this.currentSize
|
||||
);
|
||||
node.prev = node.next = null;
|
||||
delete this.cache[node.groupId][node.userId];
|
||||
this.removeNode(node);
|
||||
this.onFuncs.forEach((func) => func(node));
|
||||
this.currentSize--;
|
||||
}
|
||||
|
||||
public on(func: (node: cacheNode<T>) => void) {
|
||||
this.onFuncs.push(func);
|
||||
}
|
||||
|
||||
private removeExpired() {
|
||||
const now = Date.now();
|
||||
let current = this.tail;
|
||||
const nodesToRemove: cacheNode<T>[] = [];
|
||||
let removedCount = 0;
|
||||
|
||||
// 收集需要删除的节点
|
||||
while (current && now - current.timestamp > this.maxAge) {
|
||||
nodesToRemove.push(current);
|
||||
current = current.prev;
|
||||
removedCount++;
|
||||
if (removedCount >= 100) break;
|
||||
}
|
||||
|
||||
// 更新链表指向
|
||||
if (nodesToRemove.length > 0) {
|
||||
const newTail = nodesToRemove[nodesToRemove.length - 1].prev;
|
||||
if (newTail) {
|
||||
newTail.next = null;
|
||||
} else {
|
||||
this.head = null;
|
||||
}
|
||||
this.tail = newTail;
|
||||
}
|
||||
|
||||
nodesToRemove.forEach((node) => {
|
||||
node.prev = node.next = null;
|
||||
delete this.cache[node.groupId][node.userId];
|
||||
|
||||
this.currentSize--;
|
||||
this.onFuncs.forEach((func) => func(node));
|
||||
});
|
||||
}
|
||||
|
||||
private addNode(node: cacheNode<T>) {
|
||||
node.next = this.head;
|
||||
if (this.head) this.head.prev = node;
|
||||
if (!this.tail) this.tail = node;
|
||||
this.head = node;
|
||||
}
|
||||
|
||||
private removeNode(node: cacheNode<T>) {
|
||||
if (node.prev) node.prev.next = node.next;
|
||||
if (node.next) node.next.prev = node.prev;
|
||||
if (node === this.head) this.head = node.next;
|
||||
if (node === this.tail) this.tail = node.prev;
|
||||
}
|
||||
|
||||
private moveToHead(node: cacheNode<T>) {
|
||||
if (this.head === node) return;
|
||||
|
||||
this.removeNode(node);
|
||||
this.addNode(node);
|
||||
node.prev = null;
|
||||
}
|
||||
|
||||
public set(groupId: group_id, userId: user_id, value: T) {
|
||||
if (!this.cache[groupId]) {
|
||||
this.cache[groupId] = Object.create(null);
|
||||
}
|
||||
|
||||
const groupObject = this.cache[groupId];
|
||||
|
||||
if (groupObject[userId]) {
|
||||
const node = groupObject[userId];
|
||||
node.value = value;
|
||||
node.timestamp = Date.now();
|
||||
this.moveToHead(node);
|
||||
} else {
|
||||
const node = new cacheNode(groupId, userId, value);
|
||||
groupObject[userId] = node;
|
||||
this.currentSize++;
|
||||
this.addNode(node);
|
||||
if (this.currentSize > this.maxSize) {
|
||||
const tail = this.tail!;
|
||||
this.removeLRUNode(tail);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default LRU;
|
||||
@@ -0,0 +1,509 @@
|
||||
import { ElementType, FileElement, PicElement, PttElement, RawMessage, VideoElement } from '../../core/src/entities';
|
||||
|
||||
import sqlite3 from 'sqlite3';
|
||||
import { log, logDebug, logError } from '@/common/utils/log';
|
||||
import { NTQQMsgApi } from '@/core';
|
||||
import LRU from "@/common/utils/LRUCache";
|
||||
|
||||
export interface IRember {
|
||||
last_sent_time: number;
|
||||
join_time: number;
|
||||
user_id: number;
|
||||
}
|
||||
|
||||
|
||||
type DBMsg = {
|
||||
id: number,
|
||||
shortId: number,
|
||||
longId: string,
|
||||
seq: number,
|
||||
peerUid: string,
|
||||
chatType: number,
|
||||
}
|
||||
|
||||
type DBFile = {
|
||||
name: string; // 文件名
|
||||
path: string;
|
||||
url: string;
|
||||
size: number;
|
||||
uuid: string;
|
||||
msgId: string;
|
||||
elementId: string;
|
||||
element: PicElement | VideoElement | FileElement | PttElement;
|
||||
elementType: ElementType.PIC | ElementType.VIDEO | ElementType.FILE | ElementType.PTT;
|
||||
}
|
||||
|
||||
|
||||
class DBUtilBase {
|
||||
protected db: sqlite3.Database | undefined;
|
||||
|
||||
async init(dbPath: string) {
|
||||
if (this.db) {
|
||||
return;
|
||||
}
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
this.db = new sqlite3.Database(dbPath, sqlite3.OPEN_READWRITE | sqlite3.OPEN_CREATE, (err) => {
|
||||
if (err) {
|
||||
logError('Could not connect to database', err);
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
this.createTable();
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
protected createTable() {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
close() {
|
||||
this.db?.close();
|
||||
}
|
||||
}
|
||||
|
||||
class DBUtil extends DBUtilBase {
|
||||
private msgCache: Map<string | number, RawMessage> = new Map<string | number, RawMessage>();
|
||||
private globalMsgShortId = -2147483640;
|
||||
private groupIds: number[] = [];
|
||||
private LURCache = new LRU<number>();
|
||||
private LastSentCache = new (class {
|
||||
private cache: { gid: number; uid: number }[] = [];
|
||||
private maxSize: number;
|
||||
|
||||
constructor(maxSize: number = 5000) {
|
||||
this.maxSize = maxSize;
|
||||
}
|
||||
|
||||
get(gid: number, uid: number): boolean {
|
||||
const exists = this.cache.some(
|
||||
(entry) => entry.gid === gid && entry.uid === uid
|
||||
);
|
||||
if (!exists) {
|
||||
this.cache.push({ gid, uid });
|
||||
if (this.cache.length > this.maxSize) {
|
||||
this.cache.shift();
|
||||
}
|
||||
}
|
||||
|
||||
return exists;
|
||||
}
|
||||
})();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
const interval = 1000 * 60 * 10; // 10分钟清理一次缓存
|
||||
setInterval(() => {
|
||||
logDebug('清理消息缓存');
|
||||
this.msgCache.forEach((msg, key) => {
|
||||
if ((Date.now() - parseInt(msg.msgTime) * 1000) > interval) {
|
||||
this.msgCache.delete(key);
|
||||
}
|
||||
});
|
||||
}, interval);
|
||||
}
|
||||
|
||||
async init(dbPath: string) {
|
||||
await super.init(dbPath);
|
||||
this.globalMsgShortId = await this.getCurrentMaxShortId();
|
||||
|
||||
|
||||
// 初始化群缓存列表
|
||||
this.db!.serialize(() => {
|
||||
const sql = `SELECT * FROM sqlite_master WHERE type='table'`;
|
||||
this.db!.all(sql, [], (err, rows: { name: string }[]) => {
|
||||
if (err) return logError(err);
|
||||
rows.forEach((row) => this.groupIds.push(parseInt(row.name)));
|
||||
//logDebug(`已加载 ${groupIds.length} 个群`);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
this.LURCache.on(async (node) => {
|
||||
const { value: time, groupId, userId } = node;
|
||||
|
||||
logDebug("插入发言时间", userId, groupId);
|
||||
await this.createGroupInfoTimeTableIfNotExist(groupId);
|
||||
|
||||
const method = await this.getDataSetMethod(groupId, userId);
|
||||
logDebug("插入发言时间方法判断", userId, groupId, method);
|
||||
|
||||
const sql =
|
||||
method == "update"
|
||||
? `UPDATE "${groupId}" SET last_sent_time = ? WHERE user_id = ?`
|
||||
: `INSERT INTO "${groupId}" (last_sent_time, user_id) VALUES (?, ?)`;
|
||||
|
||||
this.db!.all(sql, [time, userId], (err) => {
|
||||
if (err) {
|
||||
return logError("插入/更新发言时间失败", userId, groupId);
|
||||
}
|
||||
logDebug("插入/更新发言时间成功", userId, groupId);
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
async getDataSetMethod(groupId: number, userId: number) {
|
||||
// 缓存记录
|
||||
if (this.LastSentCache.get(groupId, userId)) {
|
||||
logDebug("缓存命中", userId, groupId);
|
||||
return "update";
|
||||
}
|
||||
|
||||
// 数据库判断
|
||||
return new Promise<"insert" | "update">((resolve, reject) => {
|
||||
this.db!.all(
|
||||
`SELECT * FROM "${groupId}" WHERE user_id = ?`,
|
||||
[userId],
|
||||
(err, rows) => {
|
||||
if (err) {
|
||||
logError("查询发言时间存在失败", userId, groupId, err);
|
||||
return logError("插入发言时间失败", userId, groupId, err);
|
||||
}
|
||||
|
||||
if (rows.length === 0) {
|
||||
logDebug("查询发言时间不存在", userId, groupId);
|
||||
return resolve("insert");
|
||||
}
|
||||
|
||||
logDebug("查询发言时间存在", userId, groupId);
|
||||
resolve("update");
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
async createGroupInfoTimeTableIfNotExist(groupId: number) {
|
||||
const createTableSQL = (groupId: number) =>
|
||||
`CREATE TABLE IF NOT EXISTS "${groupId}" (
|
||||
user_id INTEGER,
|
||||
last_sent_time INTEGER,
|
||||
join_time INTEGER,
|
||||
PRIMARY KEY (user_id)
|
||||
);`;
|
||||
|
||||
if (this.groupIds.includes(groupId)) {
|
||||
return;
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
const sql = createTableSQL(groupId);
|
||||
this.db!.all(sql, (err) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
this.groupIds.push(groupId);
|
||||
resolve(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
protected createTable() {
|
||||
// 消息记录
|
||||
const createTableSQL = `
|
||||
CREATE TABLE IF NOT EXISTS msgs (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
shortId INTEGER NOT NULL UNIQUE,
|
||||
longId TEXT NOT NULL UNIQUE,
|
||||
seq INTEGER NOT NULL,
|
||||
peerUid TEXT NOT NULL,
|
||||
chatType INTEGER NOT NULL
|
||||
)`;
|
||||
this.db!.run(createTableSQL, function (err) {
|
||||
if (err) {
|
||||
logError('Could not create table msgs', err.stack);
|
||||
}
|
||||
});
|
||||
|
||||
// 文件缓存
|
||||
const createFileTableSQL = `
|
||||
CREATE TABLE IF NOT EXISTS files (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL,
|
||||
path TEXT NOT NULL,
|
||||
url TEXT,
|
||||
size INTEGER NOT NULL,
|
||||
uuid TEXT,
|
||||
elementType INTEGER,
|
||||
element TEXT NOT NULL,
|
||||
elementId TEXT NOT NULL,
|
||||
msgId TEXT NOT NULL
|
||||
)`;
|
||||
this.db!.run(createFileTableSQL, function (err) {
|
||||
if (err) {
|
||||
logError('Could not create table files', err);
|
||||
}
|
||||
});
|
||||
|
||||
// 接收到的临时会话消息uid
|
||||
const createTempUinTableSQL = `
|
||||
CREATE TABLE IF NOT EXISTS temp_uins (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
uid TEXT,
|
||||
uin TEXT
|
||||
)`;
|
||||
this.db!.run(createTempUinTableSQL, function (err) {
|
||||
if (err) {
|
||||
logError('Could not create table temp_uins', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private async getCurrentMaxShortId() {
|
||||
return new Promise<number>((resolve, reject) => {
|
||||
this.db!.get('SELECT MAX(shortId) as maxId FROM msgs', (err, row: { maxId: number }) => {
|
||||
if (err) {
|
||||
logDebug('Could not get max short id, Use default -2147483640', err);
|
||||
return resolve(-2147483640);
|
||||
}
|
||||
logDebug('数据库中消息最大短id', row?.maxId);
|
||||
resolve(row?.maxId ?? -2147483640);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private async getMsg(query: string, params: any[]) {
|
||||
const stmt = this.db!.prepare(query);
|
||||
return new Promise<RawMessage | null>((resolve, reject) => {
|
||||
stmt.get(...params, (err: any, row: DBMsg) => {
|
||||
// log("getMsg", row, err);
|
||||
if (err) {
|
||||
logError('Could not get msg', err, query, params);
|
||||
return resolve(null);
|
||||
}
|
||||
if (!row) {
|
||||
// logDebug('不存在数据库中的消息,不进行处理', query, params);
|
||||
resolve(null);
|
||||
return;
|
||||
}
|
||||
const msgId = row.longId;
|
||||
NTQQMsgApi.getMsgsByMsgId({ peerUid: row.peerUid, chatType: row.chatType }, [msgId]).then(res => {
|
||||
const msg = res.msgList[0];
|
||||
if (!msg) {
|
||||
resolve(null);
|
||||
return;
|
||||
}
|
||||
msg.id = row.shortId;
|
||||
resolve(msg);
|
||||
}).catch(e => {
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async getMsgByShortId(shortId: number): Promise<RawMessage | null> {
|
||||
if (this.msgCache.has(shortId)) {
|
||||
return this.msgCache.get(shortId)!;
|
||||
}
|
||||
const getStmt = 'SELECT * FROM msgs WHERE shortId = ?';
|
||||
return this.getMsg(getStmt, [shortId]);
|
||||
}
|
||||
|
||||
async getMsgByLongId(longId: string): Promise<RawMessage | null> {
|
||||
if (this.msgCache.has(longId)) {
|
||||
return this.msgCache.get(longId)!;
|
||||
}
|
||||
return this.getMsg('SELECT * FROM msgs WHERE longId = ?', [longId]);
|
||||
}
|
||||
|
||||
async getMsgBySeq(peerUid: string, seq: string): Promise<RawMessage | null> {
|
||||
const stmt = 'SELECT * FROM msgs WHERE peerUid = ? AND seq = ?';
|
||||
return this.getMsg(stmt, [peerUid, seq]);
|
||||
}
|
||||
|
||||
async addMsg(msg: RawMessage, update = true): Promise<number> {
|
||||
const existMsg = await this.getMsgByLongId(msg.msgId);
|
||||
if (existMsg) {
|
||||
// logDebug('消息已存在,更新数据库', msg.msgId);
|
||||
if (update) this.updateMsg(msg).then();
|
||||
return existMsg.id!;
|
||||
}
|
||||
const stmt = this.db!.prepare('INSERT INTO msgs (shortId, longId, seq, peerUid, chatType) VALUES (?, ?, ?, ?, ?)');
|
||||
// const runAsync = promisify(stmt.run.bind(stmt));
|
||||
const shortId = ++this.globalMsgShortId;
|
||||
msg.id = shortId;
|
||||
//logDebug(`记录消息到数据库, 消息长id: ${msg.msgId}, 短id: ${msg.id}`);
|
||||
this.msgCache.set(shortId, msg);
|
||||
this.msgCache.set(msg.msgId, msg);
|
||||
stmt.run(this.globalMsgShortId, msg.msgId, msg.msgSeq.toString(), msg.peerUid, msg.chatType, (err: any) => {
|
||||
if (err) {
|
||||
if (err.errno === 19) {
|
||||
this.getMsgByLongId(msg.msgId).then((msg: RawMessage | null) => {
|
||||
if (msg) {
|
||||
this.msgCache.set(shortId, msg);
|
||||
this.msgCache.set(msg.msgId, msg);
|
||||
// logDebug('获取消息短id成功', msg.id);
|
||||
} else {
|
||||
logError('db could not get msg by long id', err);
|
||||
}
|
||||
}).catch(e => logError('db getMsgByLongId error', e));
|
||||
} else {
|
||||
logError('db could not add msg', err);
|
||||
}
|
||||
}
|
||||
});
|
||||
return shortId;
|
||||
}
|
||||
|
||||
async updateMsg(msg: RawMessage) {
|
||||
const existMsg = this.msgCache.get(msg.msgId);
|
||||
if (existMsg) {
|
||||
Object.assign(existMsg, msg);
|
||||
}
|
||||
//logDebug(`更新消息, shortId:${msg.id}, seq: ${msg.msgSeq}, msgId: ${msg.msgId}`);
|
||||
const stmt = this.db!.prepare('UPDATE msgs SET seq=? WHERE longId=?');
|
||||
stmt.run(msg.msgSeq, msg.msgId, (err: any) => {
|
||||
if (err) {
|
||||
logError('updateMsg db error', err);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
async addFileCache(file: DBFile) {
|
||||
const stmt = this.db!.prepare('INSERT INTO files (name, path, url, size, uuid, elementType ,element, elementId, msgId) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)');
|
||||
return new Promise((resolve, reject) => {
|
||||
stmt.run(file.name, file.path, file.url, file.size, file.uuid,
|
||||
file.elementType,
|
||||
JSON.stringify(file.element),
|
||||
file.elementId,
|
||||
file.msgId,
|
||||
function (err: any) {
|
||||
if (err) {
|
||||
logError('db could not add file', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private async getFileCache(query: string, params: any[]) {
|
||||
const stmt = this.db!.prepare(query);
|
||||
return new Promise<DBFile | null>((resolve, reject) => {
|
||||
stmt.get(...params, (err: any, row: DBFile & { element: string }) => {
|
||||
if (err) {
|
||||
logError('db could not get file cache', err);
|
||||
reject(err);
|
||||
}
|
||||
if (row) {
|
||||
row.element = JSON.parse(row.element);
|
||||
}
|
||||
resolve(row);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async getFileCacheByName(name: string): Promise<DBFile | null> {
|
||||
return this.getFileCache('SELECT * FROM files WHERE name = ?', [name]);
|
||||
}
|
||||
|
||||
async getFileCacheByUuid(uuid: string): Promise<DBFile | null> {
|
||||
return this.getFileCache('SELECT * FROM files WHERE uuid = ?', [uuid]);
|
||||
}
|
||||
|
||||
// todo: 是否所有的文件都有uuid?语音消息有没有uuid?
|
||||
async updateFileCache(file: DBFile) {
|
||||
const stmt = this.db!.prepare('UPDATE files SET path = ?, url = ? WHERE uuid = ?');
|
||||
return new Promise((resolve, reject) => {
|
||||
stmt.run(file.path, file.url, file.uuid, function (err: any) {
|
||||
if (err) {
|
||||
logError('db could not update file cache', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 被动收到的临时会话消息uin->uid
|
||||
async getReceivedTempUinMap() {
|
||||
const stmt = 'SELECT * FROM temp_uins';
|
||||
return new Promise<Record<string, string>>((resolve, reject) => {
|
||||
this.db!.all(stmt, (err, rows: { uin: string, uid: string }[]) => {
|
||||
if (err) {
|
||||
logError('db could not get temp uin map', err);
|
||||
reject(err);
|
||||
}
|
||||
const map: Record<string, string> = {};
|
||||
rows.forEach(row => {
|
||||
map[row.uin] = row.uid;
|
||||
});
|
||||
resolve(map);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// 通过uin获取临时会话消息uid
|
||||
async getUidByTempUin(uid: string) {
|
||||
const stmt = 'SELECT * FROM temp_uins WHERE uin = ?';
|
||||
return new Promise<string>((resolve, reject) => {
|
||||
this.db!.get(stmt, [uid], (err, row: { uin: string, uid: string }) => {
|
||||
if (err) {
|
||||
logError('db could not get temp uin map', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(row?.uid);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async addTempUin(uin: string, uid: string) {
|
||||
const existUid = await this.getUidByTempUin(uin);
|
||||
if (!existUid) {
|
||||
const stmt = this.db!.prepare('INSERT INTO temp_uins (uin, uid) VALUES (?, ?)');
|
||||
return new Promise((resolve, reject) => {
|
||||
stmt.run(uin, uid, function (err: any) {
|
||||
if (err) {
|
||||
logError('db could not add temp uin', err);
|
||||
reject(err);
|
||||
}
|
||||
resolve(null);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
async getLastSentTimeAndJoinTime(
|
||||
groupId: number
|
||||
): Promise<IRember[]> {
|
||||
logDebug("读取发言时间", groupId);
|
||||
return new Promise<IRember[]>((resolve, reject) => {
|
||||
this.db!.all(`SELECT * FROM "${groupId}" `, (err, rows: IRember[]) => {
|
||||
if (err) {
|
||||
logError("查询发言时间失败", groupId);
|
||||
return resolve([]);
|
||||
}
|
||||
logDebug("查询发言时间成功", groupId, rows);
|
||||
resolve(rows);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
insertLastSentTime(
|
||||
groupId: number,
|
||||
userId: number,
|
||||
time: number
|
||||
) {
|
||||
this.LURCache.set(groupId, userId, time)
|
||||
}
|
||||
async insertJoinTime(
|
||||
groupId: number,
|
||||
userId: number,
|
||||
time: number
|
||||
) {
|
||||
await this.createGroupInfoTimeTableIfNotExist(groupId);
|
||||
this.db!.all(
|
||||
`INSERT OR REPLACE INTO "${groupId}" (user_id, last_sent_time, join_time) VALUES (?,?,?)`,
|
||||
[userId, time, time],
|
||||
(err) => {
|
||||
if (err)
|
||||
logError(err),
|
||||
Promise.reject(),
|
||||
console.log("插入入群时间失败", userId, groupId);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export const dbUtil = new DBUtil();
|
||||
@@ -4,7 +4,7 @@ import crypto from 'crypto';
|
||||
import util from 'util';
|
||||
import path from 'node:path';
|
||||
import { log } from './log';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import * as fileType from 'file-type';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { napCatCore } from '@/core';
|
||||
|
||||
@@ -138,6 +138,10 @@ export function migrateConfig(oldConfig: any) {
|
||||
enable: oldConfig.enableWsReverse,
|
||||
urls: oldConfig.wsReverseUrls,
|
||||
},
|
||||
GroupLocalTime: {
|
||||
Record: false,
|
||||
RecordList: []
|
||||
},
|
||||
debug: oldConfig.debug,
|
||||
heartInterval: oldConfig.heartInterval,
|
||||
messagePostFormat: oldConfig.messagePostFormat,
|
||||
@@ -145,6 +149,7 @@ export function migrateConfig(oldConfig: any) {
|
||||
musicSignUrl: oldConfig.musicSignUrl,
|
||||
reportSelfMessage: oldConfig.reportSelfMessage,
|
||||
token: oldConfig.token,
|
||||
|
||||
};
|
||||
return newConfig;
|
||||
}
|
||||
|
||||
+39
-20
@@ -3,32 +3,51 @@ import http from 'node:http';
|
||||
|
||||
export class RequestUtil {
|
||||
// 适用于获取服务器下发cookies时获取,仅GET
|
||||
static async HttpsGetCookies(url: string): Promise<Map<string, string>> {
|
||||
return new Promise<Map<string, string>>((resolve, reject) => {
|
||||
const protocol = url.startsWith('https://') ? https : http;
|
||||
protocol.get(url, (res) => {
|
||||
const cookiesHeader = res.headers['set-cookie'];
|
||||
if (!cookiesHeader) {
|
||||
resolve(new Map<string, string>());
|
||||
} else {
|
||||
const cookiesMap = new Map<string, string>();
|
||||
cookiesHeader.forEach((cookieStr) => {
|
||||
cookieStr.split(';').forEach((cookiePart) => {
|
||||
const trimmedPart = cookiePart.trim();
|
||||
if (trimmedPart.includes('=')) {
|
||||
const [key, value] = trimmedPart.split('=').map(part => part.trim());
|
||||
cookiesMap.set(key, decodeURIComponent(value)); // 解码cookie值
|
||||
}
|
||||
});
|
||||
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
|
||||
const client = url.startsWith('https') ? https : http;
|
||||
return new Promise((resolve, reject) => {
|
||||
client.get(url, (res) => {
|
||||
let cookies: { [key: string]: string } = {};
|
||||
const handleRedirect = (res: http.IncomingMessage) => {
|
||||
//console.log(res.headers.location);
|
||||
if (res.statusCode === 301 || res.statusCode === 302) {
|
||||
if (res.headers.location) {
|
||||
const redirectUrl = new URL(res.headers.location, url);
|
||||
RequestUtil.HttpsGetCookies(redirectUrl.href).then((redirectCookies) => {
|
||||
// 合并重定向过程中的cookies
|
||||
cookies = { ...cookies, ...redirectCookies };
|
||||
resolve(cookies);
|
||||
});
|
||||
} else {
|
||||
resolve(cookies);
|
||||
}
|
||||
} else {
|
||||
resolve(cookies);
|
||||
}
|
||||
};
|
||||
res.on('data', () => { }); // Necessary to consume the stream
|
||||
res.on('end', () => {
|
||||
handleRedirect(res);
|
||||
});
|
||||
if (res.headers['set-cookie']) {
|
||||
//console.log(res.headers['set-cookie']);
|
||||
res.headers['set-cookie'].forEach((cookie) => {
|
||||
const parts = cookie.split(';')[0].split('=');
|
||||
const key = parts[0];
|
||||
const value = parts[1];
|
||||
if (key && value && key.length > 0 && value.length > 0) {
|
||||
cookies[key] = value;
|
||||
}
|
||||
});
|
||||
resolve(cookiesMap);
|
||||
}
|
||||
}).on('error', (error) => {
|
||||
reject(error);
|
||||
}).on('error', (err) => {
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 请求和回复都是JSON data传原始内容 自动编码json
|
||||
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
|
||||
const option = new URL(url);
|
||||
|
||||
@@ -14,7 +14,7 @@ export async function checkVersion(): Promise<string> {
|
||||
try {
|
||||
version = (await RequestUtil.HttpGetJson<{ version: string }>(url)).version;
|
||||
} catch (e) {
|
||||
logDebug(e);
|
||||
logDebug("检测更新异常",e);
|
||||
}
|
||||
if (version) {
|
||||
resolve(version);
|
||||
|
||||
+1
-1
Submodule src/core updated: 5572791869...a0a4fd1c99.
@@ -1 +1 @@
|
||||
function _0x3ffb(_0x1c9d40,_0x5c0f27){var _0x3f6fc1=_0x3f6f();return _0x3ffb=function(_0x3ffb38,_0x271006){_0x3ffb38=_0x3ffb38-0x106;var _0x4276a5=_0x3f6fc1[_0x3ffb38];return _0x4276a5;},_0x3ffb(_0x1c9d40,_0x5c0f27);}function _0x3f6f(){var _0x424618=['getGroupCode','1741044ILxECp','9UQYNaS','onMSFStatusChange','2991672SkTikU','1460KsUXQA','4776496veTTGZ','12661LifKnO','onMSFSsoError','129RqxIOj','5YyHkMs','445732NKyeiU','17092eYzbuN','2609103PKGyhk'];_0x3f6f=function(){return _0x424618;};return _0x3f6f();}var _0x4b3ca7=_0x3ffb;(function(_0x33ead7,_0x3bd86f){var _0x32553b=_0x3ffb,_0x4adca9=_0x33ead7();while(!![]){try{var _0x3ec3d5=parseInt(_0x32553b(0x108))/0x1+parseInt(_0x32553b(0x10c))/0x2+parseInt(_0x32553b(0x106))/0x3*(-parseInt(_0x32553b(0x109))/0x4)+parseInt(_0x32553b(0x107))/0x5*(parseInt(_0x32553b(0x10f))/0x6)+-parseInt(_0x32553b(0x10a))/0x7+-parseInt(_0x32553b(0x111))/0x8*(parseInt(_0x32553b(0x10d))/0x9)+parseInt(_0x32553b(0x110))/0xa*(-parseInt(_0x32553b(0x112))/0xb);if(_0x3ec3d5===_0x3bd86f)break;else _0x4adca9['push'](_0x4adca9['shift']());}catch(_0x38a67f){_0x4adca9['push'](_0x4adca9['shift']());}}}(_0x3f6f,0x786ea));export class DependsAdapter{[_0x4b3ca7(0x10e)](_0x3c085d,_0x69bfec){}[_0x4b3ca7(0x113)](_0x37eb86){}[_0x4b3ca7(0x10b)](_0x115358){}}
|
||||
function _0x5222(){var _0x3091f8=['6273aTfWba','9981447HMXcwA','2890585oSjsvJ','8TdYIWz','3243588DGNCtB','getGroupCode','43803705QezSUk','1200309ykLrjF','1770620oiFLFj','6070xVmufr','18IROTnB','4AICfZO'];_0x5222=function(){return _0x3091f8;};return _0x5222();}var _0x5fba51=_0x5d34;(function(_0x4bf11c,_0x14198d){var _0x2fd03f=_0x5d34,_0x4d6419=_0x4bf11c();while(!![]){try{var _0x4850c9=parseInt(_0x2fd03f(0xf8))/0x1+-parseInt(_0x2fd03f(0xed))/0x2+-parseInt(_0x2fd03f(0xf5))/0x3*(-parseInt(_0x2fd03f(0xf0))/0x4)+-parseInt(_0x2fd03f(0xf3))/0x5*(-parseInt(_0x2fd03f(0xef))/0x6)+-parseInt(_0x2fd03f(0xf2))/0x7*(-parseInt(_0x2fd03f(0xf4))/0x8)+-parseInt(_0x2fd03f(0xf1))/0x9*(-parseInt(_0x2fd03f(0xee))/0xa)+-parseInt(_0x2fd03f(0xf7))/0xb;if(_0x4850c9===_0x14198d)break;else _0x4d6419['push'](_0x4d6419['shift']());}catch(_0xba978e){_0x4d6419['push'](_0x4d6419['shift']());}}}(_0x5222,0xf380f));function _0x5d34(_0x5ef46e,_0x5e79b3){var _0x522282=_0x5222();return _0x5d34=function(_0x5d3489,_0x588abc){_0x5d3489=_0x5d3489-0xed;var _0x48f8f8=_0x522282[_0x5d3489];return _0x48f8f8;},_0x5d34(_0x5ef46e,_0x5e79b3);}export class DependsAdapter{['onMSFStatusChange'](_0x358442,_0x58882d){}['onMSFSsoError'](_0xfb5a9){}[_0x5fba51(0xf6)](_0x260bf6){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x52b112=_0xd933;(function(_0x4a6d40,_0x4c13c7){var _0xf87581=_0xd933,_0x29b633=_0x4a6d40();while(!![]){try{var _0x30e6af=parseInt(_0xf87581(0xa7))/0x1*(parseInt(_0xf87581(0xa4))/0x2)+-parseInt(_0xf87581(0xa6))/0x3*(parseInt(_0xf87581(0xab))/0x4)+-parseInt(_0xf87581(0xa8))/0x5+-parseInt(_0xf87581(0xaa))/0x6*(parseInt(_0xf87581(0xa1))/0x7)+parseInt(_0xf87581(0xa9))/0x8+-parseInt(_0xf87581(0xa5))/0x9+parseInt(_0xf87581(0xa2))/0xa;if(_0x30e6af===_0x4c13c7)break;else _0x29b633['push'](_0x29b633['shift']());}catch(_0xa6e89a){_0x29b633['push'](_0x29b633['shift']());}}}(_0x24bd,0x4f6e6));function _0xd933(_0x2d09b4,_0x3dd1dd){var _0x24bd66=_0x24bd();return _0xd933=function(_0xd93315,_0x493521){_0xd93315=_0xd93315-0xa0;var _0x158785=_0x24bd66[_0xd93315];return _0x158785;},_0xd933(_0x2d09b4,_0x3dd1dd);}export class DispatcherAdapter{['dispatchRequest'](_0x30d484){}[_0x52b112(0xa0)](_0x5ba9d6){}[_0x52b112(0xa3)](_0x625e47){}}function _0x24bd(){var _0x7d7cd8=['2uOYoUv','4014072veOxGh','19569xyvpdc','381509XEoltP','1035340ogRufz','4053608idUyPQ','6dctSqr','68iHMTrv','dispatchCall','3611804pSiiVh','7170790rxsDql','dispatchCallWithJson'];_0x24bd=function(){return _0x7d7cd8;};return _0x24bd();}
|
||||
var _0x446bc4=_0x23d3;(function(_0x29f86c,_0x5c4b14){var _0x248c41=_0x23d3,_0x2d6705=_0x29f86c();while(!![]){try{var _0x492b46=-parseInt(_0x248c41(0x1e6))/0x1*(parseInt(_0x248c41(0x1f1))/0x2)+parseInt(_0x248c41(0x1ea))/0x3*(-parseInt(_0x248c41(0x1e5))/0x4)+parseInt(_0x248c41(0x1e7))/0x5*(-parseInt(_0x248c41(0x1e4))/0x6)+parseInt(_0x248c41(0x1ee))/0x7*(-parseInt(_0x248c41(0x1e8))/0x8)+-parseInt(_0x248c41(0x1ef))/0x9*(-parseInt(_0x248c41(0x1ec))/0xa)+parseInt(_0x248c41(0x1eb))/0xb+parseInt(_0x248c41(0x1ed))/0xc;if(_0x492b46===_0x5c4b14)break;else _0x2d6705['push'](_0x2d6705['shift']());}catch(_0x19c0ed){_0x2d6705['push'](_0x2d6705['shift']());}}}(_0x31c0,0x869c3));function _0x23d3(_0x4975dd,_0x15298b){var _0x31c0be=_0x31c0();return _0x23d3=function(_0x23d3fb,_0x3a72cc){_0x23d3fb=_0x23d3fb-0x1e3;var _0x3c86b0=_0x31c0be[_0x23d3fb];return _0x3c86b0;},_0x23d3(_0x4975dd,_0x15298b);}export class DispatcherAdapter{[_0x446bc4(0x1f0)](_0x29d72b){}[_0x446bc4(0x1e3)](_0x2e1f1a){}[_0x446bc4(0x1e9)](_0x65ccb0){}}function _0x31c0(){var _0x3b66c2=['11163240gZXndg','418210TdxHIv','24745548UBUMrc','6461469ZxcrWQ','9xVzuwt','dispatchRequest','9686KBUNcw','dispatchCall','1287066gmiUyH','4Yfdlzd','180wspPyu','5lktlSW','8uPKQfS','dispatchCallWithJson','1674327qyXtIY'];_0x31c0=function(){return _0x3b66c2;};return _0x31c0();}
|
||||
@@ -1 +1 @@
|
||||
function _0x50c4(){var _0x3eea2a=['getAppSetting','163730UvfChN','onGetSrvCalTime','onInstallFinished','104088erCANA','fixPicImgType','54toVfOL','1260681vpHdod','onGetOfflineMsg','268416SvTneZ','onLog','onUpdateGeneralFlag','onShowErrUITips','141243xTPnPi','6PeSSJq','170opSVVT','636996Rslxgl','1229680hZXLtw'];_0x50c4=function(){return _0x3eea2a;};return _0x50c4();}function _0x55b6(_0x70c27b,_0x3f3da4){var _0x50c4e0=_0x50c4();return _0x55b6=function(_0x55b601,_0x4f0278){_0x55b601=_0x55b601-0x175;var _0x39478e=_0x50c4e0[_0x55b601];return _0x39478e;},_0x55b6(_0x70c27b,_0x3f3da4);}var _0x33bddf=_0x55b6;(function(_0xba609f,_0x936df){var _0x5e1af5=_0x55b6,_0x41ca77=_0xba609f();while(!![]){try{var _0x47d9b9=parseInt(_0x5e1af5(0x17c))/0x1*(parseInt(_0x5e1af5(0x17d))/0x2)+parseInt(_0x5e1af5(0x176))/0x3+parseInt(_0x5e1af5(0x17f))/0x4+-parseInt(_0x5e1af5(0x17e))/0x5*(parseInt(_0x5e1af5(0x185))/0x6)+-parseInt(_0x5e1af5(0x182))/0x7+-parseInt(_0x5e1af5(0x178))/0x8*(parseInt(_0x5e1af5(0x175))/0x9)+parseInt(_0x5e1af5(0x180))/0xa;if(_0x47d9b9===_0x936df)break;else _0x41ca77['push'](_0x41ca77['shift']());}catch(_0xed31c1){_0x41ca77['push'](_0x41ca77['shift']());}}}(_0x50c4,0x4c157));export class GlobalAdapter{[_0x33bddf(0x179)](..._0x264d21){}[_0x33bddf(0x183)](..._0x2a10a7){}[_0x33bddf(0x17b)](..._0x507c11){}[_0x33bddf(0x186)](..._0x4f66c7){}[_0x33bddf(0x181)](..._0x11b2e5){}[_0x33bddf(0x184)](..._0x29bc58){}[_0x33bddf(0x17a)](..._0x51d8ee){}[_0x33bddf(0x177)](..._0x437666){}}
|
||||
var _0x57f683=_0x159c;(function(_0xd6f12e,_0xd56e15){var _0x2105d2=_0x159c,_0x1a3224=_0xd6f12e();while(!![]){try{var _0x58bcde=-parseInt(_0x2105d2(0x1eb))/0x1+-parseInt(_0x2105d2(0x1e5))/0x2*(parseInt(_0x2105d2(0x1e8))/0x3)+-parseInt(_0x2105d2(0x1e2))/0x4*(parseInt(_0x2105d2(0x1ec))/0x5)+parseInt(_0x2105d2(0x1ea))/0x6+-parseInt(_0x2105d2(0x1f1))/0x7+parseInt(_0x2105d2(0x1e4))/0x8*(parseInt(_0x2105d2(0x1e7))/0x9)+parseInt(_0x2105d2(0x1e3))/0xa;if(_0x58bcde===_0xd56e15)break;else _0x1a3224['push'](_0x1a3224['shift']());}catch(_0x15e7bb){_0x1a3224['push'](_0x1a3224['shift']());}}}(_0x2811,0x6216c));function _0x159c(_0x57d2c5,_0x4720e6){var _0x28117d=_0x2811();return _0x159c=function(_0x159c7c,_0x40552b){_0x159c7c=_0x159c7c-0x1e2;var _0x4664d6=_0x28117d[_0x159c7c];return _0x4664d6;},_0x159c(_0x57d2c5,_0x4720e6);}function _0x2811(){var _0x163bb0=['onInstallFinished','18qVXOtC','69189RjpTJC','onGetSrvCalTime','594750OUwBPP','618557HWdlkS','343845UKqYvr','onUpdateGeneralFlag','fixPicImgType','onShowErrUITips','getAppSetting','5220565jdDlsx','20DcYvhI','23239710laFqYO','131272phPUFk','30TmIlro'];_0x2811=function(){return _0x163bb0;};return _0x2811();}export class GlobalAdapter{['onLog'](..._0x523c0b){}[_0x57f683(0x1e9)](..._0x2bf536){}[_0x57f683(0x1ef)](..._0x485cd2){}[_0x57f683(0x1ee)](..._0x12aa96){}[_0x57f683(0x1f0)](..._0x303573){}[_0x57f683(0x1e6)](..._0x52a026){}[_0x57f683(0x1ed)](..._0x59ab7f){}['onGetOfflineMsg'](..._0x5bc331){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x2cc7(_0x2520ab,_0x5ce3c1){var _0x18ac5f=_0x18ac();return _0x2cc7=function(_0x2cc70c,_0x30e5af){_0x2cc70c=_0x2cc70c-0x105;var _0x4f53d0=_0x18ac5f[_0x2cc70c];return _0x4f53d0;},_0x2cc7(_0x2520ab,_0x5ce3c1);}function _0x18ac(){var _0x10a0e0=['2959586cxfKRA','806004JWBpxd','1467524jEbBvR','50250WfmcKe','1550916wbwZqP','5Shnsog','104106dckgZn','2170856AktLrt'];_0x18ac=function(){return _0x10a0e0;};return _0x18ac();}(function(_0x141983,_0x304f22){var _0xab2e7c=_0x2cc7,_0x5b6cf6=_0x141983();while(!![]){try{var _0x1e9083=-parseInt(_0xab2e7c(0x10b))/0x1+-parseInt(_0xab2e7c(0x109))/0x2+parseInt(_0xab2e7c(0x10c))/0x3+-parseInt(_0xab2e7c(0x10a))/0x4*(-parseInt(_0xab2e7c(0x105))/0x5)+-parseInt(_0xab2e7c(0x106))/0x6+-parseInt(_0xab2e7c(0x108))/0x7+parseInt(_0xab2e7c(0x107))/0x8;if(_0x1e9083===_0x304f22)break;else _0x5b6cf6['push'](_0x5b6cf6['shift']());}catch(_0x812e8b){_0x5b6cf6['push'](_0x5b6cf6['shift']());}}}(_0x18ac,0x3feb1));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
||||
(function(_0x459b6c,_0xbe8aba){var _0x5f4bbd=_0x3502,_0x44fc04=_0x459b6c();while(!![]){try{var _0x54afcd=-parseInt(_0x5f4bbd(0x1ca))/0x1+-parseInt(_0x5f4bbd(0x1d0))/0x2+parseInt(_0x5f4bbd(0x1ce))/0x3+parseInt(_0x5f4bbd(0x1c9))/0x4*(-parseInt(_0x5f4bbd(0x1cf))/0x5)+-parseInt(_0x5f4bbd(0x1d1))/0x6+parseInt(_0x5f4bbd(0x1cc))/0x7*(parseInt(_0x5f4bbd(0x1cb))/0x8)+parseInt(_0x5f4bbd(0x1cd))/0x9;if(_0x54afcd===_0xbe8aba)break;else _0x44fc04['push'](_0x44fc04['shift']());}catch(_0x5739de){_0x44fc04['push'](_0x44fc04['shift']());}}}(_0x5d6f,0x1d0e2));export*from'./NodeIDependsAdapter';function _0x3502(_0x51e4e7,_0x739e67){var _0x5d6f78=_0x5d6f();return _0x3502=function(_0x350229,_0x130029){_0x350229=_0x350229-0x1c9;var _0x3c3026=_0x5d6f78[_0x350229];return _0x3c3026;},_0x3502(_0x51e4e7,_0x739e67);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x5d6f(){var _0x3610ea=['52vRScrw','25856oiAZCW','1368344RjJglV','7Jcuwfz','939915xTemSD','663786JOdCmy','51905luPwgg','109624OShybw','972654VhkBIU'];_0x5d6f=function(){return _0x3610ea;};return _0x5d6f();}
|
||||
@@ -1 +1 @@
|
||||
const _0x485245=_0x5dd2;(function(_0x450d7e,_0x2a2ac2){const _0x5230af=_0x5dd2,_0x502e71=_0x450d7e();while(!![]){try{const _0x258860=parseInt(_0x5230af(0xfc))/0x1*(-parseInt(_0x5230af(0xc3))/0x2)+-parseInt(_0x5230af(0xd0))/0x3*(parseInt(_0x5230af(0xeb))/0x4)+parseInt(_0x5230af(0xc4))/0x5+-parseInt(_0x5230af(0xfe))/0x6+parseInt(_0x5230af(0xfb))/0x7*(-parseInt(_0x5230af(0xee))/0x8)+parseInt(_0x5230af(0x102))/0x9+parseInt(_0x5230af(0xbf))/0xa;if(_0x258860===_0x2a2ac2)break;else _0x502e71['push'](_0x502e71['shift']());}catch(_0x5c6d80){_0x502e71['push'](_0x502e71['shift']());}}}(_0x33f4,0x374de));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x573963 from'path';import _0x333305 from'fs';import _0x50007b from'fs/promises';function _0x5dd2(_0x4f6fda,_0x5dc308){const _0x33f433=_0x33f4();return _0x5dd2=function(_0x5dd2ae,_0x19920b){_0x5dd2ae=_0x5dd2ae-0xb4;let _0x2078f0=_0x33f433[_0x5dd2ae];return _0x2078f0;},_0x5dd2(_0x4f6fda,_0x5dc308);}import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x5c3972 from'file-type';import{MsgListener}from'@/core/listeners';import _0x12b478 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x5bab31=>{const _0x30cc80={'KTdIw':function(_0x16467d,_0x1929fa){return _0x16467d(_0x1929fa);}};for(const [_0x2fd353,_0x14d8a2]of downloadMediaTasks){_0x30cc80['KTdIw'](_0x14d8a2,_0x5bab31),downloadMediaTasks['delete'](_0x2fd353);}},setTimeout(()=>{const _0x37436b=_0x5dd2;napCatCore[_0x37436b(0xcb)](()=>{const _0x580d6f=_0x37436b;napCatCore[_0x580d6f(0xdc)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x485245(0xef)](_0x496a16){const _0x155bc2=_0x485245;return _0x5c3972[_0x155bc2(0xce)](_0x496a16);}static async['copyFile'](_0x11d2a6,_0x1fb488){const _0x1b8806=_0x485245;await napCatCore[_0x1b8806(0xe5)][_0x1b8806(0xe6)](_0x11d2a6,_0x1fb488);}static async[_0x485245(0xd4)](_0x2bd69){const _0x40a789=_0x485245;return await napCatCore[_0x40a789(0xe5)][_0x40a789(0xd4)](_0x2bd69);}static async[_0x485245(0xbb)](_0x556287,_0x35df78=ElementType['PIC'],_0x36f520=0x0){const _0x17e835=_0x485245,_0x214b4f={'AMJyx':function(_0x20de6a,_0x4847a9){return _0x20de6a(_0x4847a9);},'EGeQK':function(_0x52e001,_0x4cf0ed){return _0x52e001===_0x4cf0ed;}},_0x58519c=await _0x214b4f[_0x17e835(0xcf)](calculateFileMD5,_0x556287);let _0x35e10f=(await NTQQFileApi[_0x17e835(0xef)](_0x556287))?.[_0x17e835(0xc5)]||'';_0x35e10f&&(_0x35e10f='.'+_0x35e10f);let _0x56da9e=''+_0x573963[_0x17e835(0xc1)](_0x556287);_0x214b4f[_0x17e835(0xd3)](_0x56da9e['indexOf']('.'),-0x1)&&(_0x56da9e+=_0x35e10f);const _0x51fe3=napCatCore[_0x17e835(0xe2)][_0x17e835(0xc8)]()[_0x17e835(0xf0)]({'md5HexStr':_0x58519c,'fileName':_0x56da9e,'elementType':_0x35df78,'elementSubType':_0x36f520,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x17e835(0xe6)](_0x556287,_0x51fe3);const _0x166fe4=await NTQQFileApi['getFileSize'](_0x556287);return{'md5':_0x58519c,'fileName':_0x56da9e,'path':_0x51fe3,'fileSize':_0x166fe4,'ext':_0x35e10f};}static async[_0x485245(0x101)](_0x1d3986,_0x1ffa66,_0x87bc88,_0x491213,_0x409d94,_0x169e70,_0x11a211=0x3e8*0x3c*0x2,_0x287236=![]){const _0x53b22a=_0x485245,_0xe2b77c={'SjpPl':function(_0x40c8ba,_0x170033,_0x43865c,_0x3fdabb){return _0x40c8ba(_0x170033,_0x43865c,_0x3fdabb);},'dGJni':_0x53b22a(0xdf),'iQJBm':'downloadPath','Sthaq':function(_0x142997,_0x1006e7){return _0x142997(_0x1006e7);},'DdFjy':function(_0x4e1197){return _0x4e1197();},'amRnc':function(_0x1ff505,_0x591e5f,_0x326f65){return _0x1ff505(_0x591e5f,_0x326f65);},'sXMqy':function(_0x360fc8,_0x594954,_0x1d1875,_0x19a7d1,_0x4c63ff,_0x3adf44,_0x273258,_0x48fc1d,_0x53fb11,_0x4985ec){return _0x360fc8(_0x594954,_0x1d1875,_0x19a7d1,_0x4c63ff,_0x3adf44,_0x273258,_0x48fc1d,_0x53fb11,_0x4985ec);},'cxTwX':_0x53b22a(0xd8),'YmenS':_0x53b22a(0xbd)};_0xe2b77c[_0x53b22a(0xba)](logDebug,_0xe2b77c[_0x53b22a(0xf7)],_0x1d3986,_0x1ffa66,_0x87bc88,_0x491213,_0x409d94,_0x169e70,_0x11a211,_0x287236);if(_0x169e70&&_0x333305['existsSync'](_0x169e70)){if(_0x287236)try{await _0x50007b[_0x53b22a(0xd2)](_0x169e70);}catch(_0x5b8a38){}else return _0x169e70;}return _0xe2b77c[_0x53b22a(0xba)](logDebug,_0xe2b77c['YmenS'],_0x1d3986,_0x1ffa66,_0x87bc88,_0x491213,_0x409d94,_0x169e70,_0x11a211,_0x287236),new Promise((_0x1e2179,_0x3097b1)=>{const _0x36614e=_0x53b22a,_0x403504={'epopb':function(_0x4b1f49,_0x37968c,_0x366fa4,_0x47c055){return _0xe2b77c['SjpPl'](_0x4b1f49,_0x37968c,_0x366fa4,_0x47c055);},'eJTEr':_0xe2b77c[_0x36614e(0xd7)],'vmOFr':function(_0x20a4e3,_0x41c712,_0x130b74){return _0x20a4e3(_0x41c712,_0x130b74);},'MHgSB':_0xe2b77c[_0x3Line truncated
|
||||
const _0x17f239=_0x1d55;(function(_0xac84fc,_0x25d7e4){const _0x47c8b3=_0x1d55,_0x1827a7=_0xac84fc();while(!![]){try{const _0xfa315=parseInt(_0x47c8b3(0x156))/0x1*(-parseInt(_0x47c8b3(0x15a))/0x2)+parseInt(_0x47c8b3(0x146))/0x3+parseInt(_0x47c8b3(0x14b))/0x4+parseInt(_0x47c8b3(0x15c))/0x5*(-parseInt(_0x47c8b3(0x158))/0x6)+parseInt(_0x47c8b3(0x165))/0x7*(-parseInt(_0x47c8b3(0x139))/0x8)+-parseInt(_0x47c8b3(0x14e))/0x9+parseInt(_0x47c8b3(0x13a))/0xa*(parseInt(_0x47c8b3(0x131))/0xb);if(_0xfa315===_0x25d7e4)break;else _0x1827a7['push'](_0x1827a7['shift']());}catch(_0x5f4761){_0x1827a7['push'](_0x1827a7['shift']());}}}(_0x3b9a,0xdc9e8));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x59a87d from'path';import _0x376b1d from'fs';import _0x4d5fd5 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x349954 from'file-type';import{MsgListener}from'@/core/listeners';import _0xe191aa from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';function _0x1d55(_0xd13aae,_0x48b60e){const _0x3b9a17=_0x3b9a();return _0x1d55=function(_0x1d5507,_0x30d390){_0x1d5507=_0x1d5507-0x127;let _0x56b3f0=_0x3b9a17[_0x1d5507];return _0x56b3f0;},_0x1d55(_0xd13aae,_0x48b60e);}import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x17f239(0x145)]=_0x3e662f=>{const _0x274c0e=_0x17f239,_0xf5b143={'eEvLU':function(_0xa32d40,_0x428beb){return _0xa32d40(_0x428beb);}};for(const [_0xb91458,_0x5a3b0f]of downloadMediaTasks){_0xf5b143[_0x274c0e(0x163)](_0x5a3b0f,_0x3e662f),downloadMediaTasks['delete'](_0xb91458);}},setTimeout(()=>{const _0x30d390=_0x17f239;napCatCore[_0x30d390(0x147)](()=>{const _0x339fe9=_0x30d390;napCatCore[_0x339fe9(0x129)](downloadMediaListener);});},0x64);function _0x3b9a(){const _0x14f83b=['defaultFileDownloadPath','getChatCacheList','fileUuid','5767692EHGrlO','getRkey','oHBPC','9652743pMcilI','session','addCacheScannedPaths','msgId','getDesktopTmpPath','getMsgService','toUpperCase','getFileSize','338549vVFAtM','getRichMediaFilePathForGuild','260334DuSPEs','getImageSize','8xTkhzW','group_rkey','45xpuCIz','getImageUrl','FkVSb','TVptC','getCacheSessionPathList','clearChatCache','downloadRichMedia','eEvLU','startsWith','21fyYner','umwIP','originImageUrl','tmp','getStorageCleanService','hotUpdate','uploadFile','fileTypeFromFile','addListener','YuTQs','&rkey=','trVQN','copyFile','clearCacheDataByKeys','downloadMedia','md5HexStr','12989042UYFkvp','addCacheScanedPaths','scanCache','unlink','Zvcue','PIC','setCacheSilentScan','bWZcQ','2482824INVjSb','20EVAwlV','/download','set','下载超时','getFileType','WmKTo','PTOze','util','ExGfp','UJWiA','raWoP','onRichMediaDownloadComplete','2545116KgkPVT','onLoginSuccess'];_0x3b9a=function(){return _0x14f83b;};return _0x3b9a();}export class NTQQFileApi{static async[_0x17f239(0x13e)](_0x53b1ee){const _0x4ae3fe=_0x17f239;return _0x349954[_0x4ae3fe(0x128)](_0x53b1ee);}static async[_0x17f239(0x12d)](_0x5372ea,_0x47ed4a){const _0x2eec95=_0x17f239;await napCatCore[_0x2eec95(0x141)][_0x2eec95(0x12d)](_0x5372ea,_0x47ed4a);}static async[_0x17f239(0x155)](_0x3a032c){const _0x5e7af5=_0x17f239;return await napCatCore['util'][_0x5e7af5(0x155)](_0x3a032c);}static async[_0x17f239(0x127)](_0x5d3224,_0x1a1238=ElementType[_0x17f239(0x136)],_0x3adc00=0x0){const _0x38ed29=_0x17f239,_0x4c74aa={'raWoP':function(_0x2f2318,_0x52e9ce){return _0x2f2318+_0x52e9ce;}},_0x10a611=await calculateFileMD5(_0x5d3224);let _0x3150d0=(await NTQQFileApi[_0x38ed29(0x13e)](_0x5d3224))?.['ext']||'';_0x3150d0&&(_0x3150d0=_0x4c74aa[_0x38ed29(0x144)]('.',_0x3150d0));let _0x56e01b=''+_0x59a87d['basename'](_0x5d3224);_0x56e01b['indexOf']('.')===-0x1&&(_0x56e01b+=_0x3150d0);const _0x5c4ae0=napCatCore[_0x38ed29(0x14f)][_0x38ed29(0x153)]()[_0x38ed29(0x157)]({'md5HexStr':_0x10a611,'fileName':_0x56e01b,'elementType':_0x1a1238,'elementSubType':_0x3adc00,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x38ed29(0x12d)](_0x5d3224,_0x5c4ae0);const _0x425ebe=await NTQQFileApi['getFileSize'](_0x5d3224);return{'md5':_0x10a611,'fileName':_0x56e01b,'path':_0x5c4ae0,'fileSize':_0x425ebe,'ext':_0x3150d0};}static async[_0x17f239(0x12f)](_0x3d5afa,_0x40c54d,_0x4ca2cc,_0x3f2e0a,_0x110772,_0x471bee,_0x1f68fb=0x3e8*0x3c*0x2,_0x30a0b0=![]){const _0xa45622=_0x17f239,_0x5a0602={'WmKTo':function(_0x561a36,_0x58fc61){return _0x561a36===_0x58fc61;},'TVptC':function(_0x5a6754,_0x3ae947){return _0x5a6754(_0x3ae947);},'oHBPC':function(_0x4ec32b,_0x444f5a){return _0x4ec32b(_0x444f5a);},'umwIP':_0xa45622(0x13d),'BFvIb':function(_0x150f67){return _0x150f67();},'trVQN':function(_0x480287,_0x2190a2,_0x47924d){return _0x480287(_0x2190a2,_0x47924d);}};if(_0x471bee&&_0x376b1d['existsSync'](_0x471bee)){Line truncated
|
||||
@@ -1 +1 @@
|
||||
const _0x1797a0=_0x7579;(function(_0x4a00c9,_0x1a1bcf){const _0x4f7461=_0x7579,_0x3ab7bf=_0x4a00c9();while(!![]){try{const _0x5127a1=-parseInt(_0x4f7461(0xc0))/0x1+-parseInt(_0x4f7461(0xce))/0x2+-parseInt(_0x4f7461(0xca))/0x3+-parseInt(_0x4f7461(0xd5))/0x4+-parseInt(_0x4f7461(0xdc))/0x5+-parseInt(_0x4f7461(0xd7))/0x6+parseInt(_0x4f7461(0xc1))/0x7;if(_0x5127a1===_0x1a1bcf)break;else _0x3ab7bf['push'](_0x3ab7bf['shift']());}catch(_0x3b477f){_0x3ab7bf['push'](_0x3ab7bf['shift']());}}}(_0x38c8,0x1a6d1));import{BuddyListener,napCatCore}from'@/core';function _0x38c8(){const _0x10c91e=['getFriends','获取好友列表完成','ctBpC','onLoginSuccess','friendUid','set','713392fKCymF','uid','607770AgbOMf','开始获取好友列表','push','onBuddyListChange','SBtQW','340480axdnze','reqTime','getBuddyList','buddyList','94497USEBdn','5330262pmqsLp','Lbdfb','BMXGx','uin','then','获取好友列表超时','MherE','QOggR','session','260637funfGr','getBuddyService','MJWcD','handleFriendRequest','248220ncLXgZ'];_0x38c8=function(){return _0x10c91e;};return _0x38c8();}import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';function _0x7579(_0x595e4d,_0x2b9809){const _0x38c8d8=_0x38c8();return _0x7579=function(_0x75790d,_0x26832b){_0x75790d=_0x75790d-0xc0;let _0x1d57ed=_0x38c8d8[_0x75790d];return _0x1d57ed;},_0x7579(_0x595e4d,_0x2b9809);}const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x1797a0(0xda)]=_0x397554=>{const _0x3a1160=_0x1797a0,_0x483bd1={'BMXGx':function(_0x7f1a28,_0xf6c771){return _0x7f1a28(_0xf6c771);}};for(const [_0x3011d4,_0x109955]of buddyChangeTasks){_0x483bd1[_0x3a1160(0xc3)](_0x109955,_0x397554),buddyChangeTasks['delete'](_0x3011d4);}},setTimeout(()=>{const _0xdbd5b2=_0x1797a0;napCatCore[_0xdbd5b2(0xd2)](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x1797a0(0xcf)](_0x3e89fb=![]){const _0x5d7f15=_0x1797a0,_0x3241ae={'Lbdfb':function(_0x1cd2be,_0x3fd31a,_0x34022c){return _0x1cd2be(_0x3fd31a,_0x34022c);},'MherE':_0x5d7f15(0xd0),'SBtQW':function(_0x34b8dd,_0x2c8fc0,_0x22c34c){return _0x34b8dd(_0x2c8fc0,_0x22c34c);},'Kjaux':function(_0x2b59ba,_0x1dc4eb){return _0x2b59ba(_0x1dc4eb);},'ctBpC':_0x5d7f15(0xc6),'ygIll':function(_0xb4e617){return _0xb4e617();}};return new Promise((_0x435b37,_0x2f980c)=>{const _0x39913b=_0x5d7f15,_0x39f420={'MJWcD':function(_0x56d04d,_0x2d94f5){return _0x3241ae['Kjaux'](_0x56d04d,_0x2d94f5);},'QOggR':_0x3241ae[_0x39913b(0xd1)]};let _0x376d2e=![];setTimeout(()=>{const _0xe1411b=_0x39913b;!_0x376d2e&&(logDebug(_0xe1411b(0xc6)),_0x39f420[_0xe1411b(0xcc)](_0x2f980c,_0x39f420[_0xe1411b(0xc8)]));},0x1388);const _0x8c6619=[],_0x43bf21=_0x59f7b3=>{const _0x2ceb9a=_0x39913b;for(const _0x4375a9 of _0x59f7b3){for(const _0x137b40 of _0x4375a9[_0x2ceb9a(0xdf)]){_0x8c6619[_0x2ceb9a(0xd9)](_0x137b40),uid2UinMap[_0x137b40[_0x2ceb9a(0xd6)]]=_0x137b40[_0x2ceb9a(0xc4)];}}_0x376d2e=!![],_0x3241ae[_0x2ceb9a(0xc2)](logDebug,_0x3241ae[_0x2ceb9a(0xc7)],_0x8c6619),_0x435b37(_0x8c6619);};buddyChangeTasks[_0x39913b(0xd4)](_0x3241ae['ygIll'](randomUUID),_0x43bf21),napCatCore[_0x39913b(0xc9)][_0x39913b(0xcb)]()[_0x39913b(0xde)](_0x3e89fb)[_0x39913b(0xc5)](_0x472491=>{const _0x2905b9=_0x39913b;_0x3241ae[_0x2905b9(0xdb)](logDebug,_0x2905b9(0xd8),_0x472491);});});}static async[_0x1797a0(0xcd)](_0x39ccf9,_0xd0ee6f){const _0x96ed9a=_0x1797a0;napCatCore['session'][_0x96ed9a(0xcb)]()?.['approvalFriendRequest']({'friendUid':_0x39ccf9[_0x96ed9a(0xd3)],'reqTime':_0x39ccf9[_0x96ed9a(0xdd)],'accept':_0xd0ee6f});}}
|
||||
function _0x16e3(_0x2cac3f,_0x3950e4){const _0x5d91a3=_0x5d91();return _0x16e3=function(_0x16e37f,_0x41e584){_0x16e37f=_0x16e37f-0x108;let _0x3d98b3=_0x5d91a3[_0x16e37f];return _0x3d98b3;},_0x16e3(_0x2cac3f,_0x3950e4);}const _0x64ac8=_0x16e3;(function(_0x37e875,_0x53b9da){const _0x34f5e9=_0x16e3,_0x1125cc=_0x37e875();while(!![]){try{const _0xfe587f=parseInt(_0x34f5e9(0x109))/0x1+-parseInt(_0x34f5e9(0x10a))/0x2+-parseInt(_0x34f5e9(0x115))/0x3+-parseInt(_0x34f5e9(0x111))/0x4*(-parseInt(_0x34f5e9(0x11b))/0x5)+parseInt(_0x34f5e9(0x116))/0x6+parseInt(_0x34f5e9(0x114))/0x7+-parseInt(_0x34f5e9(0x113))/0x8;if(_0xfe587f===_0x53b9da)break;else _0x1125cc['push'](_0x1125cc['shift']());}catch(_0x4d1972){_0x1125cc['push'](_0x1125cc['shift']());}}}(_0x5d91,0x20979));import{napCatCore}from'@/core';function _0x5d91(){const _0x325d8b=['1356866JiZmvw','410358GYbZyu','1138656WGuhKJ','NodeIKernelBuddyListener/onBuddyListChange','friendUid','zlzYv','getFriends','3590uMjIMR','session','139807KQwyoc','33122ikfAGj','approvalFriendRequest','buddyList','uid','handleFriendRequest','uin','getBuddyService','320HrBzKd','NodeIKernelBuddyService/getBuddyList','2352136fLPXwu'];_0x5d91=function(){return _0x325d8b;};return _0x5d91();}import{uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQFriendApi{static async[_0x64ac8(0x11a)](_0x53e4b8=![]){const _0x4e4c14=_0x64ac8,_0x5e5549={'zlzYv':_0x4e4c14(0x112),'dANZY':_0x4e4c14(0x117)};let [_0x477ee8,_0x1ba15b]=await NTEventDispatch['CallNormalEvent'](_0x5e5549[_0x4e4c14(0x119)],_0x5e5549['dANZY'],0x1,0x1388,_0x53e4b8);const _0x5643f1=[];for(const _0x3bd7ad of _0x1ba15b){for(const _0x5e8771 of _0x3bd7ad[_0x4e4c14(0x10c)]){_0x5643f1['push'](_0x5e8771),uid2UinMap[_0x5e8771[_0x4e4c14(0x10d)]]=_0x5e8771[_0x4e4c14(0x10f)];}}return _0x5643f1;}static async[_0x64ac8(0x10e)](_0x243564,_0x13e0f7){const _0x682b79=_0x64ac8;napCatCore[_0x682b79(0x108)][_0x682b79(0x110)]()?.[_0x682b79(0x10b)]({'friendUid':_0x243564[_0x682b79(0x118)],'reqTime':_0x243564['reqTime'],'accept':_0x13e0f7});}}
|
||||
Vendored
+24
@@ -1,9 +1,33 @@
|
||||
import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities';
|
||||
export declare class NTQQGroupApi {
|
||||
static getGroups(forced?: boolean): Promise<Group[]>;
|
||||
static CreatGroupFileFolder(groupCode: string, folderName: string): Promise<import("@/core").GeneralCallResult & {
|
||||
resultWithGroupItem: {
|
||||
result: any;
|
||||
groupItem: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFile(groupCode: string, files: string[]): Promise<import("@/core").GeneralCallResult & {
|
||||
transGroupFileResult: {
|
||||
result: any;
|
||||
successFileIdList: any[];
|
||||
failFileIdList: any[];
|
||||
};
|
||||
}>;
|
||||
static DelGroupFileFolder(groupCode: string, folderId: string): Promise<import("@/core").GeneralCallResult & {
|
||||
groupFileCommonResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
};
|
||||
}>;
|
||||
static getSingleScreenNotifies(num: number): Promise<GroupNotify[]>;
|
||||
static getGroupMembers(groupQQ: string, num?: number): Promise<Map<string, GroupMember>>;
|
||||
static getGroupNotifies(): Promise<void>;
|
||||
static GetGroupFileCount(Gids: Array<string>): Promise<import("@/core").GeneralCallResult & {
|
||||
groupCodes: string[];
|
||||
groupFileCounts: number[];
|
||||
}>;
|
||||
static getGroupIgnoreNotifies(): Promise<void>;
|
||||
static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise<import("@/core").GeneralCallResult & {
|
||||
errCode: number;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x47989f=_0x2497;(function(_0x3e286d,_0x2872cb){const _0x13c72f=_0x2497,_0xf0cee0=_0x3e286d();while(!![]){try{const _0x22c698=parseInt(_0x13c72f(0x157))/0x1*(parseInt(_0x13c72f(0x162))/0x2)+-parseInt(_0x13c72f(0x136))/0x3+parseInt(_0x13c72f(0x15c))/0x4+parseInt(_0x13c72f(0x164))/0x5+-parseInt(_0x13c72f(0x13a))/0x6*(parseInt(_0x13c72f(0x142))/0x7)+parseInt(_0x13c72f(0x137))/0x8*(-parseInt(_0x13c72f(0x135))/0x9)+-parseInt(_0x13c72f(0x174))/0xa;if(_0x22c698===_0x2872cb)break;else _0xf0cee0['push'](_0xf0cee0['shift']());}catch(_0x42ab71){_0xf0cee0['push'](_0xf0cee0['shift']());}}}(_0x3d8b,0xb1c88));function _0x3d8b(){const _0x3af18f=['186AclOiX','qun.qq.com','quitGroup','getNextMemberList','uid','then','operateSysNotify','banGroup','323330kIxJvQ','infos','session','modifyMemberRole','getPSkey','rvGsS','xBvLh','oZzfD','获取群系统消息列表超时','uploadGroupBulletinPic','获取群列表完成','CSKZH','group','setMemberRole','avUvu',')成员列表结果:','setGroupTitle','BHawD','addListener','setMemberShutUp','获取群列表超时','1qjWxvR','获取群成员列表出错,','XkHft','onLoginSuccess','onGroupSingleScreenNotifies','5003852NiQLaP','setGroupName','获取群(','createMemberListScene','getGroupMembers','setGroupShutUp','2357854QloYRp','UeUxU','6559835CvTfHT','getSingleScreenNotifies','获取群系统消息列表完成','getGroupNotifies','cmaja','dXkHs','result','type','set','modifyGroupName','forEach','kickMember','PIlpo','gaxBG','IHcJU','MQhYj','1971260rnLwaY','modifyMemberCardName','seq','handleGroupRequest','onGroupListUpdate','okptT','YcBIl','finish:\x20','DlqQY','AYdxL','9ozNlOx','3846909ORQiCr','818704dyqIrM','getGroupService','banMember'];_0x3d8b=function(){return _0x3af18f;};return _0x3d8b();}import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';function _0x2497(_0x52d952,_0x3b2ec0){const _0x3d8bcc=_0x3d8b();return _0x2497=function(_0x249754,_0x57a67c){_0x249754=_0x249754-0x12c;let _0x13bd43=_0x3d8bcc[_0x249754];return _0x13bd43;},_0x2497(_0x52d952,_0x3b2ec0);}import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),SingleScreenNotifiesTasks=new Map(),groupListener=new GroupListener();groupListener[_0x47989f(0x15b)]=(_0x1b9d39,_0x309581,_0x1a9354)=>{const _0x4ccbb5=_0x47989f,_0x1b8f69={'AYdxL':function(_0x5c0fa5,_0x195652,_0xb74407,_0x41bd9c){return _0x5c0fa5(_0x195652,_0xb74407,_0x41bd9c);}};for(const [_0xc59198,_0x309d46]of SingleScreenNotifiesTasks){_0x1b8f69[_0x4ccbb5(0x134)](_0x309d46,_0x1b9d39,_0x309581,_0x1a9354),groupMemberTasks['delete'](_0xc59198);}},groupListener[_0x47989f(0x12f)]=(_0x1be154,_0x133da7)=>{for(const [_0x56414c,_0x1b0dab]of groupMemberTasks){_0x1b0dab(_0x1be154,_0x133da7),groupMemberTasks['delete'](_0x56414c);}},setTimeout(()=>{const _0x3abb73=_0x47989f;napCatCore[_0x3abb73(0x15a)](()=>{const _0x4772d0=_0x3abb73;napCatCore[_0x4772d0(0x154)](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0x1ee0bb=![]){const _0x908fea={'oZzfD':'获取群列表超时','PIlpo':function(_0x533287,_0x44cca5){return _0x533287(_0x44cca5);},'MQhYj':function(_0x205ef0,_0x30785e,_0x2ca25e){return _0x205ef0(_0x30785e,_0x2ca25e);},'gaxBG':function(_0x29f15a){return _0x29f15a();}};let _0x1caf22=![];return new Promise((_0x5ae193,_0x361b89)=>{const _0xc1baff=_0x2497,_0x4d1d34={'CSKZH':function(_0x43ca2a,_0x1d175e){return _0x908fea['PIlpo'](_0x43ca2a,_0x1d175e);}};_0x908fea[_0xc1baff(0x173)](setTimeout,()=>{const _0x37a9c8=_0xc1baff;!_0x1caf22&&(logDebug(_0x908fea[_0x37a9c8(0x149)]),_0x908fea[_0x37a9c8(0x170)](_0x361b89,_0x37a9c8(0x156)));},0x1388);const _0x1a6eaa=(_0x48d4ed,_0x1347fc)=>{const _0x5845bb=_0xc1baff;_0x1caf22=!![],logDebug(_0x5845bb(0x14c),_0x1347fc),_0x4d1d34[_0x5845bb(0x14d)](_0x5ae193,_0x1347fc);};groupMemberTasks[_0xc1baff(0x16c)](_0x908fea[_0xc1baff(0x171)](randomUUID),_0x1a6eaa),napCatCore['session']['getGroupService']()['getGroupList'](_0x1ee0bb)[_0xc1baff(0x13f)]();});}static async[_0x47989f(0x165)](_0x4e511b){const _0x55000b=_0x47989f,_0x1208bf={'YcBIl':function(_0xb90dae,_0x7c2089){return _0xb90dae(_0x7c2089);},'dXkHs':_0x55000b(0x14a),'avUvu':function(_0x145125,_0x328298){return _0x145125(_0x328298);},'xBvLh':function(_0xb638ee,_0x404e52,_0x38ac39){return _0xb638ee(_0x404e52,_0x38ac39);},'cmaja':_0x55000b(0x166),'DlqQY':function(_0x514937,_0x41faf9,_0x4473ce){return _0x514937(_0x41faf9,_0x4473ce);},'CxrsH':function(_0x6ddf4e){return _0x6ddf4e();}},_0x307614=napCatCore[_0x55000b(0x144)][_0x55000b(0x138)]();return new Promise((_0x222536,_0x41c7bd)=>{const _0x5ce269=_0x55000b;let _0x4c4a82=![];_0x1208bf[_0x5ce269(0x133)](setTimeout,()=>{const _0x5c5bae=_0x5ce269;!_0x4c4a82&&(_0x1208bf[_0x5c5bae(0x131)](logDebug,_0x1208bf['dXkHs']),_0x1208bf[_0x5c5bae(0x150)](_0x41c7bd,_0x1208bf[_0x5c5bae(0x169)]));},0x1388);const _0x4bca98=(_0xf50943,_0x3e98c3,_0xd63c3a)=>{const _0xcf1c24=_0x5ce269;_0x4c4a82=!![],_0x1208bf[_0xcf1c24(0x148)Line truncated
|
||||
const _0xec3c7d=_0x2d76;(function(_0x2b89ff,_0x5a9369){const _0x2dabc6=_0x2d76,_0x3057aa=_0x2b89ff();while(!![]){try{const _0x56bf2f=-parseInt(_0x2dabc6(0x1cf))/0x1+parseInt(_0x2dabc6(0x1bc))/0x2+-parseInt(_0x2dabc6(0x1c7))/0x3+parseInt(_0x2dabc6(0x1b7))/0x4+parseInt(_0x2dabc6(0x1c8))/0x5+-parseInt(_0x2dabc6(0x19e))/0x6+parseInt(_0x2dabc6(0x1a9))/0x7;if(_0x56bf2f===_0x5a9369)break;else _0x3057aa['push'](_0x3057aa['shift']());}catch(_0x31509f){_0x3057aa['push'](_0x3057aa['shift']());}}}(_0x182b,0xd492d));import{NTQQUserApi,napCatCore}from'@/core';function _0x182b(){const _0x435c3d=['session','getGroups','deleteGroupFile','SGchY','getGroupIgnoreNotifies','getGroupMembers','sDtEk','获取群成员列表出错,','deleteGroupFolder','DelGroupFileFolder','647192NXPicO','FDCzB','setMemberCard','getGroupNotifies','errMsg','2294916VWuBkQ','QHCPQ','banGroup','publishGroupBulletin','modifyMemberRole','forEach','NodeIKernelGroupListener/onGroupListUpdate','CreatGroupFileFolder','modifyMemberCardName','uin','DelGroupFile','3860058CnLzKn','4559405JWTjyL','ShUZa','type','infos','getRichMediaService','createGroupFolder','getSingleScreenNotifies','1717772pkbJGk','getGroupService','setMemberRole','modifyGroupName','uploadGroupBulletinPic','dQvMF','result','CallNormalEvent','8736714SBCTen','errCode','createMemberListScene','groupMemberList_MainWindow','NodeIKernelGroupService/getSingleScreenNotifies','NodeIKernelGroupService/getGroupList','handleGroupRequest','setGroupShutUp','NodeIKernelGroupListener/onGroupSingleScreenNotifies','batchGetGroupFileCount','VGlgT','21770987gOEYaE','group','kickMember','qun.qq.com'];_0x182b=function(){return _0x435c3d;};return _0x182b();}function _0x2d76(_0x1f0d28,_0x4e9100){const _0x182ba4=_0x182b();return _0x2d76=function(_0x2d768a,_0xdb7ef7){_0x2d768a=_0x2d768a-0x19e;let _0x43eca1=_0x182ba4[_0x2d768a];return _0x43eca1;},_0x2d76(_0x1f0d28,_0x4e9100);}import{uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQGroupApi{static async[_0xec3c7d(0x1ae)](_0x3f8932=![]){const _0x15989d=_0xec3c7d,_0x269eae={'kxlYp':_0x15989d(0x1a3)};let [_0x31bfb0,_0x45fd0d,_0x3a87f4]=await NTEventDispatch['CallNormalEvent'](_0x269eae['kxlYp'],_0x15989d(0x1c2),0x1,0x1388,_0x3f8932);return _0x3a87f4;}static async[_0xec3c7d(0x1c3)](_0x341c3a,_0x5402e3){const _0x42e68f=_0xec3c7d;return napCatCore[_0x42e68f(0x1ad)][_0x42e68f(0x1cc)]()[_0x42e68f(0x1cd)](_0x341c3a,_0x5402e3);}static async[_0xec3c7d(0x1c6)](_0x779f66,_0x57872e){const _0x486d15=_0xec3c7d;return napCatCore[_0x486d15(0x1ad)][_0x486d15(0x1cc)]()[_0x486d15(0x1af)](_0x779f66,[0x66],_0x57872e);}static async[_0xec3c7d(0x1b6)](_0x49f9e7,_0x5b7790){const _0x1cf353=_0xec3c7d;return napCatCore['session'][_0x1cf353(0x1cc)]()[_0x1cf353(0x1b5)](_0x49f9e7,_0x5b7790);}static async[_0xec3c7d(0x1ce)](_0x2c0603){const _0x14c4d0=_0xec3c7d,_0x243f69={'SGchY':_0x14c4d0(0x1a2),'QHCPQ':_0x14c4d0(0x1a6)};let [_0xb9bce0,_0x308ecd,_0x214522,_0x4bdbe0]=await NTEventDispatch[_0x14c4d0(0x1d6)](_0x243f69[_0x14c4d0(0x1b0)],_0x243f69[_0x14c4d0(0x1bd)],0x1,0x1388,![],'',_0x2c0603);return _0x4bdbe0;}static async[_0xec3c7d(0x1b2)](_0x437367,_0x84f008=0xbb8){const _0x141329=_0xec3c7d,_0x1129a1={'FCewO':function(_0x1b4881,_0x55435b){return _0x1b4881!==_0x55435b;},'nMfEW':function(_0x347c7d,_0x503d1f){return _0x347c7d+_0x503d1f;},'ShUZa':_0x141329(0x1b4)},_0x43578d=napCatCore[_0x141329(0x1ad)][_0x141329(0x1d0)](),_0x54fcb8=_0x43578d[_0x141329(0x1a0)](_0x437367,_0x141329(0x1a1)),_0x1dbffd=await _0x43578d['getNextMemberList'](_0x54fcb8,undefined,_0x84f008);if(_0x1129a1['FCewO'](_0x1dbffd[_0x141329(0x19f)],0x0))throw _0x1129a1['nMfEW'](_0x1129a1[_0x141329(0x1c9)],_0x1dbffd[_0x141329(0x1bb)]);return _0x1dbffd[_0x141329(0x1d5)]['infos'][_0x141329(0x1c1)](_0x551145=>{const _0x569b09=_0x141329;uid2UinMap[_0x551145['uid']]=_0x551145[_0x569b09(0x1c5)];}),_0x1dbffd['result'][_0x141329(0x1cb)];}static async[_0xec3c7d(0x1ba)](){}static async['GetGroupFileCount'](_0x359a78){const _0x257892=_0xec3c7d;return napCatCore['session'][_0x257892(0x1cc)]()[_0x257892(0x1a7)](_0x359a78);}static async[_0xec3c7d(0x1b1)](){}static async[_0xec3c7d(0x1d3)](_0x4e11cc,_0x34f8e1){const _0x27fd6b=_0xec3c7d,_0x549ca2={'FDCzB':'qun.qq.com'},_0x4c402d=(await NTQQUserApi['getPSkey']([_0x549ca2[_0x27fd6b(0x1b8)]]))[_0x549ca2[_0x27fd6b(0x1b8)]];return napCatCore[_0x27fd6b(0x1ad)][_0x27fd6b(0x1d0)]()['uploadGroupBulletinPic'](_0x4e11cc,_0x4c402d,_0x34f8e1);}static async[_0xec3c7d(0x1a4)](_0x3d2ec8,_0x4d9c4a,_0x697353){const _0x922ce6=_0xec3c7d,_0x5c569e={'dQvMF':function(_0x43279b,_0x481c51){return _0x43279b||_0x481c51;}};return napCatCore[_0x922ce6(0x1ad)]['getGroupService']()['operateSysNotify'](![],{'operateType':_0x4d9c4a,'targetMsg':{'seq':_0x3d2ec8['seq'],'type':_0x3d2ec8[_0x922ce6(0x1ca)],'groupCode':_0x3d2ec8[_0x922ce6(0x1aa)]['groupCode'],'postscript':_0x5c569e[_0x922ce6(0x1d4)](_0x697353,'')}});}static async['quitGroup'](_0x4786c7){const _0x151d75=_0xec3c7d;return napCatCore['sesLine truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x1105e4,_0x20d2af){var _0x476949=_0x5d6d,_0x2b96e5=_0x1105e4();while(!![]){try{var _0x1f09e2=parseInt(_0x476949(0x19f))/0x1*(-parseInt(_0x476949(0x196))/0x2)+-parseInt(_0x476949(0x19e))/0x3*(-parseInt(_0x476949(0x197))/0x4)+-parseInt(_0x476949(0x19b))/0x5+parseInt(_0x476949(0x199))/0x6+parseInt(_0x476949(0x198))/0x7+-parseInt(_0x476949(0x19a))/0x8*(-parseInt(_0x476949(0x19d))/0x9)+-parseInt(_0x476949(0x19c))/0xa;if(_0x1f09e2===_0x20d2af)break;else _0x2b96e5['push'](_0x2b96e5['shift']());}catch(_0x154754){_0x2b96e5['push'](_0x2b96e5['shift']());}}}(_0x1c47,0x83c3e));export*from'./file';function _0x5d6d(_0x2f1df9,_0xe64233){var _0x1c4767=_0x1c47();return _0x5d6d=function(_0x5d6d7c,_0x338475){_0x5d6d7c=_0x5d6d7c-0x196;var _0x282e21=_0x1c4767[_0x5d6d7c];return _0x282e21;},_0x5d6d(_0x2f1df9,_0xe64233);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';function _0x1c47(){var _0x5e51b8=['1285053KkKMMU','1374738CZfBXm','453976NhQeLP','1285170PoALbZ','6373660RZXiQX','72HqEeCa','366BSLZDb','13093JWjawp','12OHSuVp','21180ZQlwjF'];_0x1c47=function(){return _0x5e51b8;};return _0x1c47();}export*from'./sign';export*from'./system';
|
||||
(function(_0x2b687f,_0x36155e){var _0x2a495c=_0x5e8b,_0x1af3d6=_0x2b687f();while(!![]){try{var _0x57bc47=parseInt(_0x2a495c(0x6d))/0x1+-parseInt(_0x2a495c(0x74))/0x2*(-parseInt(_0x2a495c(0x6e))/0x3)+-parseInt(_0x2a495c(0x75))/0x4+parseInt(_0x2a495c(0x72))/0x5+-parseInt(_0x2a495c(0x6c))/0x6*(-parseInt(_0x2a495c(0x71))/0x7)+-parseInt(_0x2a495c(0x6f))/0x8*(parseInt(_0x2a495c(0x70))/0x9)+-parseInt(_0x2a495c(0x76))/0xa*(parseInt(_0x2a495c(0x73))/0xb);if(_0x57bc47===_0x36155e)break;else _0x1af3d6['push'](_0x1af3d6['shift']());}catch(_0x4a0474){_0x1af3d6['push'](_0x1af3d6['shift']());}}}(_0x28b0,0x8098f));export*from'./file';export*from'./friend';function _0x5e8b(_0x4dbf5e,_0x40ff6a){var _0x28b071=_0x28b0();return _0x5e8b=function(_0x5e8bd0,_0x398021){_0x5e8bd0=_0x5e8bd0-0x6c;var _0x416fc4=_0x28b071[_0x5e8bd0];return _0x416fc4;},_0x5e8b(_0x4dbf5e,_0x40ff6a);}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x28b0(){var _0x4863b3=['30StkYjn','1135768WXsnad','9CwEkei','133hhFQQI','3556650vFJLxQ','11gXuNxp','102074fiGDhE','1009820BNwrhv','19514420WHHuFL','200778uMPPKC','1015106FJwFaR'];_0x28b0=function(){return _0x4863b3;};return _0x28b0();}export*from'./system';
|
||||
Vendored
+2
-1
@@ -1,4 +1,4 @@
|
||||
import { Peer, RawMessage, SendMessageElement } from '@/core/entities';
|
||||
import { GetFileListParam, Peer, RawMessage, SendMessageElement } from '@/core/entities';
|
||||
import { GeneralCallResult } from '@/core/services/common';
|
||||
export declare class NTQQMsgApi {
|
||||
static setEmojiLike(peer: Peer, msgSeq: string, emojiId: string, set?: boolean): Promise<unknown>;
|
||||
@@ -14,6 +14,7 @@ export declare class NTQQMsgApi {
|
||||
static activateChat(peer: Peer): Promise<void>;
|
||||
static activateChatAndGetHistory(peer: Peer): Promise<void>;
|
||||
static setMsgRead(peer: Peer): Promise<GeneralCallResult>;
|
||||
static getGroupFileList(GroupCode: string, params: GetFileListParam): Promise<any[]>;
|
||||
static getMsgHistory(peer: Peer, msgId: string, count: number): Promise<GeneralCallResult & {
|
||||
msgList: RawMessage[];
|
||||
}>;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0xf3bc69=_0x5213;function _0x564c(){const _0x1a1b10=['HMADX','GQKeR','parse','gMHZn','getMsgService','转发消息超时','getMultiMsg','addListener','getMsgsIncludeSelf','fcoZb','map','pOJad','elements','getMsgsByMsgId','bAfUG','msgId','senderUid','delete','3744wFBLqL','iUGUu','VRzKc','activateChat','getMsgsBySeqAndCount','1121650ktDmTL','activateChatAndGetHistory','32479gNqwTW','setMsgRead','6oYuxkq','app','arkElement','recallMsg','8827YTRsnr','com.tencent.multimsg','forwardMsg','set','2776326piCZBw','QYJmr','onLoginSuccess','发送超时','forEach','sendMsg','sendStatus','chatType','length','catch','KFznr','bytesData','wfWvg','767144qodJoJ','WcrRj','tFZAa','peerUid','session','onMsgInfoListUpdate','nick','mqLMy','223366lIyNLf','toString','jajAU','setMsgEmojiLikes','getMsgHistory','fetchRecentContact','then','OvGOY','oPEBg','GbykS','klDHN','7648416HLoBLt'];_0x564c=function(){return _0x1a1b10;};return _0x564c();}(function(_0x75e5ac,_0x187fba){const _0x55f306=_0x5213,_0x29c820=_0x75e5ac();while(!![]){try{const _0x444f6a=-parseInt(_0x55f306(0xd3))/0x1+-parseInt(_0x55f306(0xf2))/0x2*(parseInt(_0x55f306(0xd5))/0x3)+-parseInt(_0x55f306(0xea))/0x4+-parseInt(_0x55f306(0xd1))/0x5+-parseInt(_0x55f306(0xdd))/0x6+-parseInt(_0x55f306(0xd9))/0x7*(-parseInt(_0x55f306(0xcc))/0x8)+parseInt(_0x55f306(0xb9))/0x9;if(_0x444f6a===_0x187fba)break;else _0x29c820['push'](_0x29c820['shift']());}catch(_0x306183){_0x29c820['push'](_0x29c820['shift']());}}}(_0x564c,0x4a88a));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x5213(_0x18d469,_0x204c8f){const _0x564c21=_0x564c();return _0x5213=function(_0x5213a0,_0x30d580){_0x5213a0=_0x5213a0-0xb6;let _0x55beaa=_0x564c21[_0x5213a0];return _0x55beaa;},_0x5213(_0x18d469,_0x204c8f);}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x168dd3=>{const _0x338641=_0x5213,_0x1fade7={'glxWl':function(_0x6a7ae8,_0x5795a1){return _0x6a7ae8(_0x5795a1);},'wfWvg':function(_0x558e73,_0x59b355){return _0x558e73 instanceof _0x59b355;}};for(const [_0x1354ed,_0x28a591]of sentMsgTasks){_0x1fade7['glxWl'](_0x28a591,_0x168dd3),sentMsgTasks[_0x338641(0xcb)](_0x1354ed);}if(sendMessagePool[_0x168dd3['peerUid']]){const _0x29b9c6=sendMessagePool[_0x168dd3[_0x338641(0xed)]]?.(_0x168dd3);_0x1fade7[_0x338641(0xe9)](_0x29b9c6,Promise)&&_0x29b9c6[_0x338641(0xf8)]()[_0x338641(0xe6)](logError);}},msgListener[_0xf3bc69(0xef)]=_0x108bfa=>{const _0x5436e0=_0xf3bc69,_0x30764e={'sPsnf':function(_0x49aefc,_0x3ca2f2){return _0x49aefc(_0x3ca2f2);}};_0x108bfa[_0x5436e0(0xe1)](_0xbfbdc9=>{const _0x215111=_0x5436e0,_0x266366={'psomE':function(_0x8cd6d6,_0x414d65){return _0x8cd6d6(_0x414d65);},'mqLMy':function(_0x53ae56,_0x653934){return _0x53ae56 instanceof _0x653934;},'aAsDV':function(_0xba773f,_0x441037){return _0x30764e['sPsnf'](_0xba773f,_0x441037);}};new Promise((_0x33c519,_0x134930)=>{const _0x5d4dda=_0x5213;for(const _0x2862dc in sendSuccessCBMap){const _0x155a27=sendSuccessCBMap[_0x2862dc],_0x56370f=_0x266366['psomE'](_0x155a27,_0xbfbdc9),_0x4a3bb0=_0x89a2ea=>{_0x89a2ea&&delete sendSuccessCBMap[_0x2862dc];};_0x266366[_0x5d4dda(0xf1)](_0x56370f,Promise)?_0x56370f[_0x5d4dda(0xf8)](_0x4a3bb0):_0x266366['aAsDV'](_0x4a3bb0,_0x56370f);}})['then']()[_0x215111(0xe6)](log);});},setTimeout(()=>{const _0x444c64=_0xf3bc69;napCatCore[_0x444c64(0xdf)](()=>{const _0x5481e8=_0x444c64;napCatCore[_0x5481e8(0xc1)](msgListener);});},0x64);export class NTQQMsgApi{static async['setEmojiLike'](_0x41c036,_0x1171cf,_0x2df937,_0x5f7d94=!![]){const _0x4244ef=_0xf3bc69;return _0x2df937=_0x2df937[_0x4244ef(0xf3)](),napCatCore[_0x4244ef(0xee)]['getMsgService']()[_0x4244ef(0xf5)](_0x41c036,_0x1171cf,_0x2df937,_0x2df937[_0x4244ef(0xe5)]>0x3?'2':'1',_0x5f7d94);}static async[_0xf3bc69(0xc0)](_0x42f9e4,_0x1df48a,_0x1538e2){const _0x24a07e=_0xf3bc69;return napCatCore[_0x24a07e(0xee)][_0x24a07e(0xbe)]()[_0x24a07e(0xc0)](_0x42f9e4,_0x1df48a,_0x1538e2);}static async[_0xf3bc69(0xc7)](_0x5c4600,_0x5d3648){const _0x25edd4=_0xf3bc69;return await napCatCore[_0x25edd4(0xee)][_0x25edd4(0xbe)]()[_0x25edd4(0xc7)](_0x5c4600,_0x5d3648);}static async[_0xf3bc69(0xd0)](_0x50271f,_0x42e70c,_0x297b7b,_0xa026fa,_0x454a83){const _0x3a4f0e=_0xf3bc69;return await napCatCore[_0x3a4f0e(0xee)][_0x3a4f0e(0xbe)]()[_0x3a4f0e(0xd0)](_0x50271f,_0x42e70c,_0x297b7b,_0xa026fa,_0x454a83);}static async[_0xf3bc69(0xcf)](_0x425682){}static async[_0xf3bc69(0xd2)](_0x26020b){}static async[_0xf3bc69(0xd4)](_0x126804){const _0x2a07ab=_0xf3bc69;return napCatCore['session'][_0x2a07ab(0xbe)]()['setMsgRead'](_0x126804);}static async[_0xf3bc69(0xf6)](_0x1fe37b,_0x1f0195,_0x3557f4){const _0x36d995=_0xf3bc69;return napCatCore[_0x36d995(0xee)][_0x36d995(0xbe)]()[_0x36d995(0xc2)](_0x1fe37b,_0x1f0195,_0x3557f4,!![]);}static async[_0xf3bc69(0xf7)Line truncated
|
||||
const _0x3d216d=_0x5be6;(function(_0x2a222f,_0x386945){const _0x2c92d0=_0x5be6,_0x5a3416=_0x2a222f();while(!![]){try{const _0x43a903=parseInt(_0x2c92d0(0x1c7))/0x1*(-parseInt(_0x2c92d0(0x1cb))/0x2)+parseInt(_0x2c92d0(0x1b2))/0x3+parseInt(_0x2c92d0(0x1a8))/0x4*(-parseInt(_0x2c92d0(0x1d8))/0x5)+parseInt(_0x2c92d0(0x1b9))/0x6*(parseInt(_0x2c92d0(0x1b4))/0x7)+-parseInt(_0x2c92d0(0x1c8))/0x8*(-parseInt(_0x2c92d0(0x19e))/0x9)+parseInt(_0x2c92d0(0x1a4))/0xa+-parseInt(_0x2c92d0(0x1d7))/0xb*(parseInt(_0x2c92d0(0x1aa))/0xc);if(_0x43a903===_0x386945)break;else _0x5a3416['push'](_0x5a3416['shift']());}catch(_0xa1212e){_0x5a3416['push'](_0x5a3416['shift']());}}}(_0x4474,0xf189a));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x4474(){const _0x4a17c7=['Ljpje','multiForwardMsgWithComment','getGroupFileList','9jrmofF','sendStatus','bytesData','sendMsg','find','then','8330840RClGVb','onMsgInfoListUpdate','发送超时','cBXZm','28PHoXNA','addListener','320316obCNWd','getMsgHistory','elements','wFmrW','length','FdsKW','getMsgService','IMCtg','5704203VBKmbB','forEach','2797501ChpFUo','com.tencent.multimsg','arkElement','delete','onLoginSuccess','12KejFGY','getRichMediaService','TGFCM','msgId','map','fGfYN','cbTfj','item','ZgIIY','getMsgsIncludeSelf','fetchRecentContact','activateChat','vNVQq','GrEzB','99539YEcpeH','4891832GEZoVn','LJoNN','catch','38khslTD','UggUH','getMsgsBySeqAndCount','转发消息超时','uid','peerUid','TdtHP','setMsgEmojiLikes','recallMsg','senderUid','getMsgsByMsgId','setMsgRead','11sYohVa','884270uxNWHf','onGroupFileInfoUpdate','getMultiMsg','set','toString','app','jUPIO','session','activateChatAndGetHistory','forwardMsg'];_0x4474=function(){return _0x4a17c7;};return _0x4474();}const sendMessagePool={},sendSuccessCBMap={},GroupFileInfoUpdateTasks=new Map(),sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x3d216d(0x1d9)]=_0x1c2ef2=>{const _0x2d65f2=_0x3d216d,_0x376399={'wFmrW':function(_0x39b0ac,_0x889978){return _0x39b0ac(_0x889978);}};for(const [_0x148819,_0x2214ac]of GroupFileInfoUpdateTasks){_0x376399[_0x2d65f2(0x1ad)](_0x2214ac,_0x1c2ef2),GroupFileInfoUpdateTasks[_0x2d65f2(0x1b7)](_0x148819);}},msgListener['onAddSendMsg']=_0x3c80fe=>{const _0x5a499b=_0x3d216d,_0x23e9ad={'mFWzb':function(_0x2896cb,_0x1e6055){return _0x2896cb(_0x1e6055);}};for(const [_0x4c68ae,_0x524ba8]of sentMsgTasks){_0x23e9ad['mFWzb'](_0x524ba8,_0x3c80fe),sentMsgTasks[_0x5a499b(0x1b7)](_0x4c68ae);}if(sendMessagePool[_0x3c80fe[_0x5a499b(0x1d0)]]){const _0x2e98cd=sendMessagePool[_0x3c80fe[_0x5a499b(0x1d0)]]?.(_0x3c80fe);_0x2e98cd instanceof Promise&&_0x2e98cd[_0x5a499b(0x1a3)]()[_0x5a499b(0x1ca)](logError);}},msgListener[_0x3d216d(0x1a5)]=_0x4e9797=>{const _0x5e8fd0=_0x3d216d,_0x537278={'Ljpje':function(_0xe6e41c,_0x5069ef){return _0xe6e41c(_0x5069ef);}};_0x4e9797[_0x5e8fd0(0x1b3)](_0x12d6a6=>{const _0x2110bb=_0x5e8fd0,_0xf362ca={'jUPIO':function(_0x1b6e3d,_0x1dc52a){const _0x18b498=_0x5be6;return _0x537278[_0x18b498(0x19b)](_0x1b6e3d,_0x1dc52a);}};new Promise((_0x30271c,_0x4a37e6)=>{const _0x13e989=_0x5be6;for(const _0x4d73ed in sendSuccessCBMap){const _0x2e9c91=sendSuccessCBMap[_0x4d73ed],_0x1e5ab5=_0xf362ca[_0x13e989(0x197)](_0x2e9c91,_0x12d6a6),_0x554344=_0x1253cb=>{_0x1253cb&&delete sendSuccessCBMap[_0x4d73ed];};_0x1e5ab5 instanceof Promise?_0x1e5ab5[_0x13e989(0x1a3)](_0x554344):_0x554344(_0x1e5ab5);}})[_0x2110bb(0x1a3)]()[_0x2110bb(0x1ca)](log);});},setTimeout(()=>{const _0x4acf35=_0x3d216d;napCatCore[_0x4acf35(0x1b8)](()=>{const _0x2a8752=_0x4acf35;napCatCore[_0x2a8752(0x1a9)](msgListener);});},0x64);function _0x5be6(_0x126c98,_0x53eca7){const _0x44743a=_0x4474();return _0x5be6=function(_0x5be642,_0x3248c5){_0x5be642=_0x5be642-0x197;let _0x47f46d=_0x44743a[_0x5be642];return _0x47f46d;},_0x5be6(_0x126c98,_0x53eca7);}export class NTQQMsgApi{static async['setEmojiLike'](_0x104772,_0x3998a0,_0x3b5216,_0x456f75=!![]){const _0x4f2f7a=_0x3d216d;return _0x3b5216=_0x3b5216[_0x4f2f7a(0x1dc)](),napCatCore[_0x4f2f7a(0x198)][_0x4f2f7a(0x1b0)]()[_0x4f2f7a(0x1d2)](_0x104772,_0x3998a0,_0x3b5216,_0x3b5216[_0x4f2f7a(0x1ae)]>0x3?'2':'1',_0x456f75);}static async[_0x3d216d(0x1da)](_0x49eeee,_0xbe5a62,_0x4ad2be){const _0x49a1a6=_0x3d216d;return napCatCore['session'][_0x49a1a6(0x1b0)]()[_0x49a1a6(0x1da)](_0x49eeee,_0xbe5a62,_0x4ad2be);}static async['getMsgsByMsgId'](_0x4cea22,_0xccfe51){const _0x2c4632=_0x3d216d;return await napCatCore[_0x2c4632(0x198)]['getMsgService']()[_0x2c4632(0x1d5)](_0x4cea22,_0xccfe51);}static async[_0x3d216d(0x1cd)](_0x42ae8c,_0x90814c,_0x3150a8,_0x16c6ca,_0x18f203){const _0x161658=_0x3d216d;return await napCatCore['session']['getMsgService']()[_0x161658(0x1cd)](_0x42ae8c,_0x90814c,_0x3150a8,_0x16c6ca,_0x18f203);}static async[_0x3d216d(0x1c4)](_0x78fd79){}static async[_0x3d216d(0x199)](_0x4f36f1){}static async['setMsgRLine truncated
|
||||
Vendored
+11
@@ -10,3 +10,14 @@ export interface CustomMusicSignPostData {
|
||||
image?: string;
|
||||
singer?: string;
|
||||
}
|
||||
export interface MiniAppLuaJsonType {
|
||||
prompt: string;
|
||||
title: string;
|
||||
preview: string;
|
||||
jumpUrl: string;
|
||||
tag: string;
|
||||
tagIcon: string;
|
||||
source: string;
|
||||
sourcelogo: string;
|
||||
}
|
||||
export declare function SignMiniApp(CardData: MiniAppLuaJsonType): Promise<string>;
|
||||
@@ -1 +1 @@
|
||||
export{};
|
||||
(function(_0x57745a,_0x1a3c84){const _0x2277fc=_0x1a0e,_0x2d9c64=_0x57745a();while(!![]){try{const _0x1effcc=-parseInt(_0x2277fc(0x164))/0x1*(parseInt(_0x2277fc(0x157))/0x2)+parseInt(_0x2277fc(0x180))/0x3*(-parseInt(_0x2277fc(0x160))/0x4)+parseInt(_0x2277fc(0x183))/0x5*(parseInt(_0x2277fc(0x182))/0x6)+parseInt(_0x2277fc(0x17a))/0x7+-parseInt(_0x2277fc(0x16c))/0x8+-parseInt(_0x2277fc(0x16e))/0x9+parseInt(_0x2277fc(0x168))/0xa*(parseInt(_0x2277fc(0x161))/0xb);if(_0x1effcc===_0x1a3c84)break;else _0x2d9c64['push'](_0x2d9c64['shift']());}catch(_0x5e1791){_0x2d9c64['push'](_0x2d9c64['shift']());}}}(_0x21f4,0xacd09));import{logDebug}from'@/common/utils/log';function _0x21f4(){const _0x42bb31=['p_skey','sourcelogo','skey','353454PwuBmL','&ark=','6fnKqAa','1557445ceixFn','bvqVR','getQzoneCookies','\x5c/\x5c/','6WsmDjc',';\x20p_uin=o','getSkey','UWGgQ',';\x20uin=o','dqQFX','vKtNy','prompt','GET','24tkOImJ','364749mNlpAs','jumpUrl','GIZPu','127661YWBBmO','mGSXm','stringify','signed_ark','710gCpWvv','tianxuan.imgJumpArk','title','preview','535984KtRFYr','source','9009027RNpBAr','MiniApp\x20JSON\x20消息生成失败','tag','replace','gMdSV','FpoJe','MOTyE','XRUAa','genBkn','HouMH','miniapp','XvEMd','1399741aFLNRy','https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','uin'];_0x21f4=function(){return _0x42bb31;};return _0x21f4();}import{NTQQUserApi}from'./user';function _0x1a0e(_0x10c532,_0x2cda74){const _0x21f438=_0x21f4();return _0x1a0e=function(_0x1a0e4c,_0xeae817){_0x1a0e4c=_0x1a0e4c-0x157;let _0x39783d=_0x21f438[_0x1a0e4c];return _0x39783d;},_0x1a0e(_0x10c532,_0x2cda74);}import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';export async function SignMiniApp(_0x562e1a){const _0x11c92b=_0x1a0e,_0x36180b={'XRUAa':_0x11c92b(0x169),'mGSXm':_0x11c92b(0x178),'GIZPu':'normal','MOTyE':_0x11c92b(0x186),'XvEMd':function(_0x2c07ff,_0x95d6fc){return _0x2c07ff+_0x95d6fc;},'UWGgQ':function(_0x55f76f,_0x382560){return _0x55f76f+_0x382560;},'vKtNy':'p_skey=','FpoJe':';\x20skey=','gMdSV':_0x11c92b(0x158),'lnlLx':_0x11c92b(0x15b),'HouMH':function(_0x399641,_0x317dc2){return _0x399641+_0x317dc2;},'ilxji':function(_0x11d6fb,_0x35d8cf){return _0x11d6fb+_0x35d8cf;},'xaIfm':function(_0x464a77,_0x5cf494){return _0x464a77(_0x5cf494);},'bvqVR':_0x11c92b(0x15f),'dqQFX':_0x11c92b(0x16f)};let _0x50da80={'app':'com.tencent.miniapp.lua','bizsrc':_0x36180b[_0x11c92b(0x175)],'view':_0x36180b[_0x11c92b(0x165)],'prompt':_0x562e1a[_0x11c92b(0x15e)],'config':{'type':_0x36180b[_0x11c92b(0x163)],'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x562e1a[_0x11c92b(0x16a)],'preview':_0x562e1a[_0x11c92b(0x16b)][_0x11c92b(0x171)](/\\/g,_0x36180b[_0x11c92b(0x174)]),'jumpUrl':_0x562e1a[_0x11c92b(0x162)]['replace'](/\\/g,_0x11c92b(0x186)),'tag':_0x562e1a[_0x11c92b(0x170)],'tagIcon':_0x562e1a['tagIcon'][_0x11c92b(0x171)](/\\/g,_0x36180b[_0x11c92b(0x174)]),'source':_0x562e1a[_0x11c92b(0x16d)],'sourcelogo':_0x562e1a[_0x11c92b(0x17e)][_0x11c92b(0x171)](/\\/g,_0x11c92b(0x186))}}};const _0x19a52a=await NTQQUserApi[_0x11c92b(0x159)]();let _0x5c56b0=await NTQQUserApi[_0x11c92b(0x185)]();const _0x148dab=WebApi[_0x11c92b(0x176)](_0x5c56b0[_0x11c92b(0x17d)]),_0x577015=_0x36180b['XvEMd'](_0x36180b['XvEMd'](_0x36180b[_0x11c92b(0x15a)](_0x36180b[_0x11c92b(0x179)](_0x36180b[_0x11c92b(0x15a)](_0x36180b['XvEMd'](_0x36180b[_0x11c92b(0x179)](_0x36180b[_0x11c92b(0x15d)],_0x5c56b0['p_skey']),_0x36180b[_0x11c92b(0x173)]),_0x5c56b0[_0x11c92b(0x17f)]),_0x36180b[_0x11c92b(0x172)]),selfInfo[_0x11c92b(0x17c)]),_0x36180b['lnlLx']),selfInfo[_0x11c92b(0x17c)]);let _0x5765c6=_0x36180b[_0x11c92b(0x177)](_0x36180b['ilxji'](_0x11c92b(0x17b)+_0x148dab,_0x11c92b(0x181)),_0x36180b['xaIfm'](encodeURIComponent,JSON[_0x11c92b(0x166)](_0x50da80))),_0x47ae97='';try{let _0x3f0e2f=await RequestUtil['HttpGetJson'](_0x5765c6,_0x36180b[_0x11c92b(0x184)],undefined,{'Cookie':_0x577015});_0x47ae97=_0x3f0e2f['data'][_0x11c92b(0x167)];}catch(_0x5c0005){logDebug(_0x36180b[_0x11c92b(0x15c)],_0x5c0005);}return _0x47ae97;}
|
||||
Vendored
+4
@@ -1,3 +1,7 @@
|
||||
export declare class NTQQSystemApi {
|
||||
static hasOtherRunningQQProcess(): Promise<boolean>;
|
||||
static ORCImage(filePath: string): Promise<import("@/core").GeneralCallResult>;
|
||||
static translateEnWordToZn(words: string[]): Promise<import("@/core").GeneralCallResult & {
|
||||
words: string[];
|
||||
}>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
var _0x15f4ac=_0x248d;function _0x248d(_0x40641c,_0x299721){var _0x132379=_0x1323();return _0x248d=function(_0x248d91,_0x4df1fb){_0x248d91=_0x248d91-0x1d7;var _0x4fb3b4=_0x132379[_0x248d91];return _0x4fb3b4;},_0x248d(_0x40641c,_0x299721);}function _0x1323(){var _0xf05135=['8536570vozBEX','1590316ofXmsX','584jWxGgb','1242775GQCxtc','hasOtherRunningQQProcess','12cvVYKV','6232842EkRxea','3692856HmepTO','util','447309IptMuU','507242sxGsVf'];_0x1323=function(){return _0xf05135;};return _0x1323();}(function(_0x391324,_0x2270f8){var _0x178db8=_0x248d,_0x1511f4=_0x391324();while(!![]){try{var _0x25d336=parseInt(_0x178db8(0x1dd))/0x1+parseInt(_0x178db8(0x1db))/0x2+parseInt(_0x178db8(0x1d8))/0x3+-parseInt(_0x178db8(0x1e1))/0x4*(parseInt(_0x178db8(0x1df))/0x5)+parseInt(_0x178db8(0x1d7))/0x6+parseInt(_0x178db8(0x1dc))/0x7+-parseInt(_0x178db8(0x1de))/0x8*(parseInt(_0x178db8(0x1da))/0x9);if(_0x25d336===_0x2270f8)break;else _0x1511f4['push'](_0x1511f4['shift']());}catch(_0x5962d5){_0x1511f4['push'](_0x1511f4['shift']());}}}(_0x1323,0xea388));import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x15f4ac(0x1e0)](){var _0x11bc1d=_0x15f4ac;return napCatCore[_0x11bc1d(0x1d9)][_0x11bc1d(0x1e0)]();}}
|
||||
var _0x46f4c6=_0x5595;(function(_0x44dd50,_0x3b947d){var _0x490293=_0x5595,_0x36a92f=_0x44dd50();while(!![]){try{var _0xe91141=-parseInt(_0x490293(0x1b7))/0x1+parseInt(_0x490293(0x1b5))/0x2+-parseInt(_0x490293(0x1bc))/0x3*(-parseInt(_0x490293(0x1b4))/0x4)+-parseInt(_0x490293(0x1b3))/0x5+parseInt(_0x490293(0x1ba))/0x6*(parseInt(_0x490293(0x1be))/0x7)+-parseInt(_0x490293(0x1c0))/0x8+parseInt(_0x490293(0x1b6))/0x9*(parseInt(_0x490293(0x1b9))/0xa);if(_0xe91141===_0x3b947d)break;else _0x36a92f['push'](_0x36a92f['shift']());}catch(_0x301625){_0x36a92f['push'](_0x36a92f['shift']());}}}(_0x208f,0x77b48));import{napCatCore}from'@/core';function _0x208f(){var _0x173e6f=['203538HburDh','session','2072955IZgqrb','util','182ZHpPcJ','translateEnWordToZn','7188528oMkiTL','getRichMediaService','wantWinScreenOCR','getNodeMiscService','3149375lfaGAY','4wyaoob','1814032hTGpsF','9ZJfcNu','666193IiHbMy','ORCImage','2049470ufpuRa'];_0x208f=function(){return _0x173e6f;};return _0x208f();}function _0x5595(_0x4385e4,_0x290d58){var _0x208f62=_0x208f();return _0x5595=function(_0x55954f,_0x1e15da){_0x55954f=_0x55954f-0x1b2;var _0x3c1fc1=_0x208f62[_0x55954f];return _0x3c1fc1;},_0x5595(_0x4385e4,_0x290d58);}export class NTQQSystemApi{static async['hasOtherRunningQQProcess'](){var _0x1c1b60=_0x5595;return napCatCore[_0x1c1b60(0x1bd)]['hasOtherRunningQQProcess']();}static async[_0x46f4c6(0x1b8)](_0x847f46){var _0x3690a4=_0x46f4c6;return napCatCore[_0x3690a4(0x1bb)][_0x3690a4(0x1b2)]()[_0x3690a4(0x1c2)](_0x847f46);}static async[_0x46f4c6(0x1bf)](_0x5ec62f){var _0x4775af=_0x46f4c6;return napCatCore[_0x4775af(0x1bb)][_0x4775af(0x1c1)]()[_0x4775af(0x1bf)](_0x5ec62f);}}
|
||||
Vendored
+3
@@ -18,5 +18,8 @@ export declare class NTQQUserApi {
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getRobotUinRange(): Promise<Array<any>>;
|
||||
static getQzoneCookies(): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getSkey(cached?: boolean): Promise<string | undefined>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x213328=_0x3b6d;(function(_0x166ade,_0x3a4656){const _0x4a2405=_0x3b6d,_0x41b8e2=_0x166ade();while(!![]){try{const _0x1390aa=-parseInt(_0x4a2405(0x1c6))/0x1+parseInt(_0x4a2405(0x1bf))/0x2+parseInt(_0x4a2405(0x1bd))/0x3+parseInt(_0x4a2405(0x1d9))/0x4+-parseInt(_0x4a2405(0x1b6))/0x5*(parseInt(_0x4a2405(0x1ca))/0x6)+-parseInt(_0x4a2405(0x1c9))/0x7+-parseInt(_0x4a2405(0x1c1))/0x8*(-parseInt(_0x4a2405(0x1a8))/0x9);if(_0x1390aa===_0x3a4656)break;else _0x41b8e2['push'](_0x41b8e2['shift']());}catch(_0x3c4656){_0x41b8e2['push'](_0x41b8e2['shift']());}}}(_0x2179,0xa5907));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';function _0x3b6d(_0x1042e1,_0x39a681){const _0x217907=_0x2179();return _0x3b6d=function(_0x3b6d11,_0x39e026){_0x3b6d11=_0x3b6d11-0x18e;let _0x31e16=_0x217907[_0x3b6d11];return _0x31e16;},_0x3b6d(_0x1042e1,_0x39a681);}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';function _0x2179(){const _0x5b96af=['uin','pAjCE','getPSkey','vjqcm','eHiDN','entries','assign','4250292TLADvY','keyIndex','getUserDetailInfo\x20timeout','fromEntries','skey','onLoginSuccess','DqEiW','getProfileLikeService','yYBTv','&clientkey=','mqZNt','dJHYS','YfzSk','UXFkN','PskeyData','pCDcW','iFDaU','lXjFO','getMsgService','setBuddyProfileLike','getRobotUinRange','getUserDetailInfoWithBizInfo','forceFetchClientKey','ZzGIE','uid','like','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getPskey','4568931ITGoGt','setHeader','addListener','response','PskeyTime','HttpsGetCookies','onProfileDetailInfoChanged','session','then','ObKoM','getRobotService','getUserDetailInfo','length','robotUinRanges','4245fzlpBP','CreatTime','getProfileService','errMsg','CUeRh','rJVIN','set','3879603eqIDaD','get','323180UiGUgC','OUOGC','8StsFGm','vWQif','getUserInfo','forEach','delete','1328932NxdAjk','domainPskeyMap','获取Pskey失败','3601381zCcdFc','3558VQefEG','Skey','setStatus','now','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getSelfInfo','mLCAG','请求获取Skey时失败'];_0x2179=function(){return _0x5b96af;};return _0x2179();}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x213328(0x1ae)]=_0x1c846f=>{const _0x5e09bd=_0x213328;userInfoCache[_0x1c846f[_0x5e09bd(0x1a4)]]=_0x1c846f,userDetailHandlers[_0x5e09bd(0x1c4)](_0x18c672=>_0x18c672(_0x1c846f));},setTimeout(()=>{const _0x21e7c5=_0x213328;napCatCore[_0x21e7c5(0x191)](()=>{const _0x29c7d3=_0x21e7c5;napCatCore[_0x29c7d3(0x1aa)](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x514b7f,_0x15e74e,_0x10243c){const _0x11250a=_0x213328;return napCatCore[_0x11250a(0x1af)][_0x11250a(0x19e)]()[_0x11250a(0x1cc)]({'status':_0x514b7f,'extStatus':_0x15e74e,'batteryStatus':_0x10243c});}static async[_0x213328(0x1a5)](_0x97f4c8,_0x473333=0x1){const _0x5a8a5a=_0x213328;return napCatCore[_0x5a8a5a(0x1af)][_0x5a8a5a(0x193)]()[_0x5a8a5a(0x19f)]({'friendUid':_0x97f4c8,'sourceId':0x47,'doLikeCount':_0x473333,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x161fcc){const _0x379fa3=_0x213328,_0x5b47ad=napCatCore[_0x379fa3(0x1af)][_0x379fa3(0x1b8)]()[_0x379fa3(0x1a9)](_0x161fcc);return{'result':_0x5b47ad?.['result'],'errMsg':_0x5b47ad?.['errMsg']};}static async[_0x213328(0x1cf)](){}static async[_0x213328(0x1c3)](_0x4a36aa){}static async[_0x213328(0x1b3)](_0x10465f){const _0x3a6597=_0x213328,_0x44347a={'UXFkN':function(_0x39980c,_0x2d37a6){return _0x39980c===_0x2d37a6;},'vjqcm':function(_0x17373b,_0x1f0749){return _0x17373b(_0x1f0749);},'mLCAG':function(_0x1f36b3,_0x1bc760){return _0x1f36b3(_0x1bc760);},'ZzGIE':_0x3a6597(0x18e),'iFDaU':function(_0x10be20){return _0x10be20();},'DqEiW':function(_0x46f38e,_0x1cd824,_0x11e693){return _0x46f38e(_0x1cd824,_0x11e693);}},_0x44cf53=napCatCore[_0x3a6597(0x1af)]['getProfileService']();return new Promise((_0x7bb83a,_0x32237a)=>{const _0x573de2=_0x3a6597,_0x49cd29={'ObKoM':function(_0x44dbf4,_0x2ad7c0){const _0x5f53ef=_0x3b6d;return _0x44347a[_0x5f53ef(0x1d0)](_0x44dbf4,_0x2ad7c0);},'CUeRh':_0x44347a[_0x573de2(0x1a3)]},_0x1b718d=_0x44347a[_0x573de2(0x19c)](randomUUID);let _0x1d0ffd=![],_0xd39a0d=undefined,_0x31a8cd=!![];_0x44347a[_0x573de2(0x192)](setTimeout,()=>{const _0x18cc09=_0x573de2;!_0x1d0ffd&&(_0xd39a0d?_0x49cd29[_0x18cc09(0x1b1)](_0x7bb83a,_0xd39a0d):_0x49cd29[_0x18cc09(0x1b1)](_0x32237a,_0x49cd29[_0x18cc09(0x1ba)])),userDetailHandlers[_0x18cc09(0x1c5)](_0x1b718d);},0x1388),userDetailHandlers['set'](_0x1b718d,_0x516dbc=>{const _0x2d5352=_0x573de2;_0x44347a[_0x2d5352(0x199)](_0x516dbc[_0x2d5352(0x1a4)],_0x10465f)&&(uid2UinMap[_0x10465f]=_0x516dbc[_0x2d5352(0x1d2)],_0x31a8cd?(_0xd39a0d=_0x516dbc,_0x31a8cd=![]):(_0x1d0ffd=!![],_0x44347a[_0x2d5352(0x1d5)](_0x7bb83a,_0x516dbc)));}),_0x44cf53[_0x573de2(0x1a1)](_0x10465f,[0Line truncated
|
||||
const _0x59ced5=_0xf436;function _0x87da(){const _0x4c01a=['https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','now','6mGnyQY','TUbaE','clientKey','160788XJhGWD','getProfileService','jcfUZ','getRobotService','getPSkey','6364593mEEDtV','getMsgService','session','set','PskeyData','like','%2Finfocenter&keyindex=19%27','3660920cTtZyM','setBuddyProfileLike','setHeader','ILbtl','getPskey','hmiKq','getQzoneCookies','ueaPw','YqVzG','KeyIndex','wWCBK','7953470boCsBW','getUserDetailInfoWithBizInfo','push','addListener','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','LXDCD','getRobotUinRange','请求获取Cookies时失败','获取Pskey失败','uid','then','onProfileDetailInfoChanged','cASdC','getUserDetailInfo','JLvsK','PskeyTime','572654BTEmCr','2634876vXXfGT','domainPskeyMap','uNQti','uin','result','42JRbvxE','getSelfInfo','assign','DdThE','8uglprL','forEach','robotUinRanges','getTicketService','length','skey','EiHRT','forceFetchClientKey','EkuEs','setStatus','getProfileLikeService','FMdrr','CreatTime','uvlQT','cSMuK','HttpsGetCookies','setQQAvatar','setSelfOnlineStatus','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','请求获取Skey时失败','243818uVwFVl','keyIndex','BHpcP','entries','errMsg','Eqdbj','Skey','response'];_0x87da=function(){return _0x4c01a;};return _0x87da();}(function(_0x5d2b45,_0x2e458f){const _0x3a7029=_0xf436,_0x4fcafc=_0x5d2b45();while(!![]){try{const _0x16f533=parseInt(_0x3a7029(0x92))/0x1+-parseInt(_0x3a7029(0xb0))/0x2*(parseInt(_0x3a7029(0xba))/0x3)+parseInt(_0x3a7029(0x93))/0x4+parseInt(_0x3a7029(0xc9))/0x5+parseInt(_0x3a7029(0xbd))/0x6*(parseInt(_0x3a7029(0x98))/0x7)+parseInt(_0x3a7029(0x9c))/0x8*(-parseInt(_0x3a7029(0xc2))/0x9)+-parseInt(_0x3a7029(0xd4))/0xa;if(_0x16f533===_0x2e458f)break;else _0x4fcafc['push'](_0x4fcafc['shift']());}catch(_0x412c21){_0x4fcafc['push'](_0x4fcafc['shift']());}}}(_0x87da,0x5c493));function _0xf436(_0x9336eb,_0x262b61){const _0x87dacd=_0x87da();return _0xf436=function(_0xf43679,_0xafb6ab){_0xf43679=_0xf43679-0x91;let _0x4e933d=_0x87dacd[_0xf43679];return _0x4e933d;},_0xf436(_0x9336eb,_0x262b61);}import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x59ced5(0xdf)]=_0x21e8f8=>{const _0x164ec4=_0x59ced5;userInfoCache[_0x21e8f8[_0x164ec4(0xdd)]]=_0x21e8f8,userDetailHandlers[_0x164ec4(0x9d)](_0x25044c=>_0x25044c(_0x21e8f8));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x3eaea8=_0xf436;napCatCore[_0x3eaea8(0xd7)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x59ced5(0xad)](_0xdf5d41,_0x217ec3,_0x2573ab){const _0x19718d=_0x59ced5;return napCatCore[_0x19718d(0xc4)][_0x19718d(0xc3)]()[_0x19718d(0xa5)]({'status':_0xdf5d41,'extStatus':_0x217ec3,'batteryStatus':_0x2573ab});}static async[_0x59ced5(0xc7)](_0x1d02d6,_0x43dd79=0x1){const _0x555586=_0x59ced5;return napCatCore[_0x555586(0xc4)][_0x555586(0xa6)]()[_0x555586(0xca)]({'friendUid':_0x1d02d6,'sourceId':0x47,'doLikeCount':_0x43dd79,'doLikeTollCount':0x0});}static async[_0x59ced5(0xac)](_0x5ea0aa){const _0x2e445f=_0x59ced5,_0x4edfdc=napCatCore[_0x2e445f(0xc4)][_0x2e445f(0xbe)]()[_0x2e445f(0xcb)](_0x5ea0aa);return{'result':_0x4edfdc?.[_0x2e445f(0x97)],'errMsg':_0x4edfdc?.[_0x2e445f(0xb4)]};}static async[_0x59ced5(0x99)](){}static async['getUserInfo'](_0x1f6b5b){}static async[_0x59ced5(0xe1)](_0x292532){const _0x215e96=_0x59ced5,_0x4999a9={'DdThE':function(_0x27e667,_0x1683ec){return _0x27e667(_0x1683ec);},'jcfUZ':function(_0x5b1d74,_0x5d9ce8,_0x56790e){return _0x5b1d74(_0x5d9ce8,_0x56790e);}},_0x5167f1=napCatCore[_0x215e96(0xc4)][_0x215e96(0xbe)]();return new Promise((_0x3381b4,_0x41170c)=>{const _0x57884f=_0x215e96,_0x33d351={'oQsLM':function(_0x56352d,_0x358e54){const _0x21ea4d=_0xf436;return _0x4999a9[_0x21ea4d(0x9b)](_0x56352d,_0x358e54);},'ZAWnW':function(_0x592da0,_0x1bd37c){return _0x4999a9['DdThE'](_0x592da0,_0x1bd37c);}},_0x18f5b6=randomUUID();let _0x2294fd=![],_0x1ed154=undefined,_0x3e16dd=!![];_0x4999a9[_0x57884f(0xbf)](setTimeout,()=>{!_0x2294fd&&(_0x1ed154?_0x33d351['oQsLM'](_0x3381b4,_0x1ed154):_0x33d351['ZAWnW'](_0x41170c,'getUserDetailInfo\x20timeout')),userDetailHandlers['delete'](_0x18f5b6);},0x1388),userDetailHandlers[_0x57884f(0xc5)](_0x18f5b6,_0x398eec=>{const _0x1e982f=_0x57884f;_0x398eec[_0x1e982f(0xdd)]===_0x292532&&(uid2UinMap[_0x292532]=_0x398eec[_0x1e982f(0x96)],_0x3e16dd?(_0x1ed154=_0x398eec,_0x3e16dd=![]):(_0x2294fd=!![],_0x3381b4(_0x398eec)));}),_0x5167f1[_0x57884f(0xd5)](_0x292532,[0x0])[_0x57884f(0xde)](_0x44b9f2=>{});});}static async[_0x59ced5(0xc1)](_0x3001f4,_0x4c4832=!![]){const _0x5525a9=_0x59ced5,_0x24abc2={'yJBQd':function(_0x3230ab,_0x3ba8ad){return _0x3230ab|Line truncated
|
||||
@@ -1 +1 @@
|
||||
const _0x4da497=_0x3f66;function _0x3f66(_0x369036,_0x52fae2){const _0x1096af=_0x1096();return _0x3f66=function(_0x3f668a,_0x3e6a4f){_0x3f668a=_0x3f668a-0x1a7;let _0x1b25db=_0x1096af[_0x3f668a];return _0x1b25db;},_0x3f66(_0x369036,_0x52fae2);}(function(_0x530dde,_0x29117b){const _0x57b72e=_0x3f66,_0x1cb1ea=_0x530dde();while(!![]){try{const _0x1900b4=parseInt(_0x57b72e(0x1e2))/0x1+-parseInt(_0x57b72e(0x1b0))/0x2*(parseInt(_0x57b72e(0x1c7))/0x3)+-parseInt(_0x57b72e(0x22b))/0x4+parseInt(_0x57b72e(0x217))/0x5*(parseInt(_0x57b72e(0x212))/0x6)+parseInt(_0x57b72e(0x1d5))/0x7+parseInt(_0x57b72e(0x1eb))/0x8+parseInt(_0x57b72e(0x1ba))/0x9*(-parseInt(_0x57b72e(0x1dd))/0xa);if(_0x1900b4===_0x29117b)break;else _0x1cb1ea['push'](_0x1cb1ea['shift']());}catch(_0x1b3f6a){_0x1cb1ea['push'](_0x1cb1ea['shift']());}}}(_0x1096,0x6d792));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';function _0x1096(){const _0x444e9e=['uAZVB','EPeXV','IrfoE','ZISFo','talkative_list','bHtTb','10gncyLB','PUcyT','ypFTA','Ymkkk','bYYUf','813207ApafhC','GroupTime','genBkn','RcvtS','KcmPx','split','oPQzt','HttpGetText','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','1739920qtMrCm','YWXFz','&text=','Dxyri','NLJfh',';\x20skey=','TALKACTIVE','YBTWR','getGroupMembers','Ouppi','ZpjKz','name','get','fiRrW','hKoWN','CxLmT','UMtnE','https://qun.qq.com/interactive/honorlist?gc=','DyZia','p_skey=','获取群聊炽焰失败','MBXsA','获取龙王信息失败','YuzXd','zMxQN','Qsoge','OMQcW','INXJf','获取快乐源泉失败','charCodeAt',';\x20p_uin=o','talkativeList','VVtJv','POST','mJcZN','ZgFRS','set','qxqOX','JUAXb','2028qiXWDG','khGCn','XLutX','NcdjQ','uin','6220OouTjO','WGOad','qun.qq.com','GroupData','strong_newbie','CRCGF','&group_code=','yEiUh','OBmAR','OUeGG','PbIGA','trim','SOdBX','retcode','getGrouptNotice','Khotv','JkAMm','OKPzX','IHhrD','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','1755484bNpqsp','PERFROMER','ceil','all','current_talkative','Upeiu','&end=','avatar','xlGIU','HaJdB','获取当前群荣耀失败','ZGODk','KqRRB','JewcB','getPSkey','hiRNq','ALL','INRgR','count','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','parse','rFcif','getSkey','UdUYH','emotion','gzbVC','talkative','获取群聊之火失败','FzOcX','ghLeX','emotion_list','&sort=1&gc=','&bkn=',';\x20uin=o','legend','now','toString','push','14xuqsWp','vcQjt','performer_list','iMjDl','setGroupNotice','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','pBHXE','mems','GET','VYePr','1696347iivkVH','OKdwK','BkAol','EMOTION','oAclt','RNpYQ','STORONGE_NEWBI','LoJbL','QDQyd','errcode','jqSOp','mdeZg','actorList','287598utGHXe','XFMfh','getGroupHonorInfo','pZgxZ','YJNuJ','desc','qAVVi','lrWxk','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','description','IPOjT','LEGEND','esbAt','HttpGetJson','2069543CjZqIV','strong_newbie_list'];_0x1096=function(){return _0x444e9e;};return _0x1096();}export var WebHonorType;(function(_0xe019e6){const _0x1ad7df=_0x3f66,_0x2479c2={'OUeGG':'0|2|3|5|4|1','UMtnE':_0x1ad7df(0x23b),'Khotv':_0x1ad7df(0x243),'UlMMa':'performer','wJhuR':_0x1ad7df(0x1ac)},_0x26711e=_0x2479c2[_0x1ad7df(0x220)][_0x1ad7df(0x1e7)]('|');let _0xfdd62a=0x0;while(!![]){switch(_0x26711e[_0xfdd62a++]){case'0':_0xe019e6[_0x2479c2[_0x1ad7df(0x1fb)]]=_0x1ad7df(0x22e);continue;case'1':_0xe019e6[_0x1ad7df(0x1bd)]=_0x2479c2[_0x1ad7df(0x226)];continue;case'2':_0xe019e6[_0x1ad7df(0x1f1)]=_0x1ad7df(0x245);continue;case'3':_0xe019e6[_0x1ad7df(0x22c)]=_0x2479c2['UlMMa'];continue;case'4':_0xe019e6[_0x1ad7df(0x1c0)]=_0x1ad7df(0x21b);continue;case'5':_0xe019e6[_0x1ad7df(0x1d2)]=_0x2479c2['wJhuR'];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x560725,_0x1ed693){const _0xd99d07=_0x3f66,_0x55c354={'HaJdB':_0xd99d07(0x219),'LoJbL':function(_0x336d2e,_0x2fa220){return _0x336d2e+_0x2fa220;},'fWiPh':function(_0x57966d,_0x35f166){return _0x57966d+_0x35f166;},'EPeXV':function(_0x3c8620,_0x21887b){return _0x3c8620+_0x21887b;},'YBTWR':function(_0x246c13,_0x573e5b){return _0x246c13+_0x573e5b;},'kPgCm':_0xd99d07(0x209),'ZpjKz':_0xd99d07(0x1ab),'DyZia':function(_0x376028,_0x366e2a){return _0x376028||_0x366e2a;},'OBmAR':function(_0x8de9b5,_0x5a7692){return _0x8de9b5+_0x5a7692;},'ZISFo':function(_0x509da0,_0x4e4082){return _0x509da0+_0x4e4082;},'iwHzK':_0xd99d07(0x23e),'xlGIU':_0xd99d07(0x21d),'NcdjQ':'&page_start=','ypFTA':'&page_limit=20','bHtTb':'GET','FzOcX':function(_0x25f324,_0x31d681){return _0x25f324!==_0x31d681;}},_0x13ee39=(await NTQQUserApi[_0xd99d07(0x239)]([_0x55c354[_0xd99d07(0x234)]]))[_0x55c354[_0xd99d07(0x234)]],_0x330eee=await NTQQUserApi['getSkey'](),_0x398645=_0x55c354[_0xd99d07(0x1c1)](_0x55c354[_0xd99d07(0x1c1)](_0x55c354['fWiPh'](_0x55c354[_0xd99d07(0x1c1)](_0x55c354[_0xd99d07(0x1d8)Line truncated
|
||||
const _0x4ce027=_0x5de1;function _0x5de1(_0x10b4da,_0x41835d){const _0x4bd438=_0x4bd4();return _0x5de1=function(_0x5de1ea,_0x27523f){_0x5de1ea=_0x5de1ea-0xaa;let _0x1dc8c4=_0x4bd438[_0x5de1ea];return _0x1dc8c4;},_0x5de1(_0x10b4da,_0x41835d);}(function(_0x577ffc,_0x295c9){const _0x5c29ae=_0x5de1,_0x13e591=_0x577ffc();while(!![]){try{const _0x9cf89d=parseInt(_0x5c29ae(0xe5))/0x1+-parseInt(_0x5c29ae(0x120))/0x2+parseInt(_0x5c29ae(0x13f))/0x3+parseInt(_0x5c29ae(0xb7))/0x4+-parseInt(_0x5c29ae(0xaa))/0x5*(-parseInt(_0x5c29ae(0xac))/0x6)+parseInt(_0x5c29ae(0x111))/0x7*(parseInt(_0x5c29ae(0x114))/0x8)+-parseInt(_0x5c29ae(0x12c))/0x9;if(_0x9cf89d===_0x295c9)break;else _0x13e591['push'](_0x13e591['shift']());}catch(_0x50c1e6){_0x13e591['push'](_0x13e591['shift']());}}}(_0x4bd4,0x5a8a3));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';function _0x4bd4(){const _0x4db29d=['5BEFzML','uXlRO','2722626GNOlDZ','performer_list','get','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','NniOT','emotion','count','NopuH','获取群聊之火失败','match','MooId','917312kkaYCm','EMOTION','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','nTeOK','jUXsO','ZcVwG','all','VOgaF','FbGni',';\x20uin=o','OhAUn','mnsfP','qun.qq.com','bHOjP','OJUZB','genBkn','talkativeList','now','QKLiA','retcode','getGroupHonorInfo','p_skey=','CWiNG','ALL','eZDzi','qRSJK','JjchA','getPSkey','PERFROMER','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','HxpNX',';\x20skey=','UpEwQ','wrxpI','set','获取群聊炽焰失败','emotion_list',';\x20p_uin=o','trim','xGImL','MNoOZ','KYjkP','GroupData','qvHrj','mems','tbopV','555050hSBZKv','TALKACTIVE','sZaoa','WHjTU','STORONGE_NEWBI','description','gqXMu','PNLfU','fovkB','pfgYx','wHsWo','tQVON','push','GET','legend','CmaGp','legend_list','TKUkC','lHwgv','hyyLt','sQzfB','KqHKm','strong_newbie_list','setGroupNotice','talkative_list','FCRkp','MTmNy','ZPdST','avatar','hPeus','TlhUm','PrdQW','gVtgg','current_talkative','EdxgA','wOcok','获取当前群荣耀失败','uTWqU','teRxV','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','desc','bwzDe','HttpGetJson','ieFXn','4254663xCdjHf','DxVkG','kscDr','8lmwbmM','YuJiB','&page_limit=20','name','wqVVu','GroupTime','charCodeAt','FWoXu','GOaKy','VePEr','hlbPK','yPZrS','381816agOsNw','imbXq','uin','actorList','SrLnB','uwhCJ','elpQs','cylNq','POST','ahvUO','getGrouptNotice','LEGEND','17471133OvBohT','toString','https://qun.qq.com/interactive/honorlist?gc=','performer','zmmIY','parse','DADCB','fEgOH','qid=','errcode','talkative','awtvl','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','mXooA','sQNOO','&bkn=','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','getSkey','fDgJR','1971114czMPCv','tNVJg','nckre','&qid='];_0x4bd4=function(){return _0x4db29d;};return _0x4bd4();}export var WebHonorType;(function(_0x548e8e){const _0xdb3ccd=_0x5de1,_0x3fb0c1={'PrdQW':_0xdb3ccd(0xce),'GcVPy':_0xdb3ccd(0xbd),'xaeuo':_0xdb3ccd(0xe6),'DxVkG':_0xdb3ccd(0x136),'eiIIe':_0xdb3ccd(0xd3),'DADCB':_0xdb3ccd(0x12b),'wOcok':_0xdb3ccd(0xf3),'lHwgv':_0xdb3ccd(0xe9),'awtvl':'strong_newbie','sQzfB':'EMOTION','xGImL':_0xdb3ccd(0xb1)};_0x548e8e[_0x3fb0c1[_0xdb3ccd(0x104)]]=_0x3fb0c1['GcVPy'],_0x548e8e[_0x3fb0c1['xaeuo']]=_0x3fb0c1[_0xdb3ccd(0x112)],_0x548e8e[_0x3fb0c1['eiIIe']]=_0xdb3ccd(0x12f),_0x548e8e[_0x3fb0c1[_0xdb3ccd(0x132)]]=_0x3fb0c1[_0xdb3ccd(0x108)],_0x548e8e[_0x3fb0c1[_0xdb3ccd(0xf7)]]=_0x3fb0c1[_0xdb3ccd(0x137)],_0x548e8e[_0x3fb0c1[_0xdb3ccd(0xf9)]]=_0x3fb0c1[_0xdb3ccd(0xde)];}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x36584b,_0x25684d){const _0x142dc9=_0x5de1,_0x23296b={'bwzDe':_0x142dc9(0xc3),'SrLnB':function(_0x1ec5af,_0xcf724e){return _0x1ec5af+_0xcf724e;},'CmaGp':function(_0x5f0854,_0x305d46){return _0x5f0854+_0x305d46;},'WFZRg':function(_0x12e048,_0xfffcbc){return _0x12e048+_0xfffcbc;},'TlhUm':function(_0x53f397,_0x1a525f){return _0x53f397+_0x1a525f;},'qRSJK':function(_0x3472af,_0x43b900){return _0x3472af+_0x43b900;},'KYjkP':_0x142dc9(0xcc),'hkrPA':_0x142dc9(0xd6),'GOaKy':';\x20p_uin=o','pfgYx':';\x20uin=o','OhAUn':function(_0x166245,_0x189c59){return _0x166245+_0x189c59;},'tNVJg':function(_0x47c2b1,_0x1f77ee){return _0x47c2b1+_0x1f77ee;},'hPeus':function(_0x504adf,_0x43b57c){return _0x504adf+_0x43b57c;},'qvHrj':function(_0x4f3a91,_0x154174){return _0x4f3a91+_0x154174;},'ZGuRN':'&group_code=','jUXsO':'&page_start=','nTeOK':_0x142dc9(0x116),'cBQCm':_0x142dc9(0xf2)},_0x259c9d=(await NTQQUserApi[_0x142dc9(0xd2)]([_0x23296b[_0x142dc9(0x10e)]]))[_0x23296b[_0x142dc9(0x10e)]],_0x47cd57=await NTQQUserApi[_0x142dc9(0x13d)](),_0x233f45=_0x23296b[_0x142dc9(0x124)](_0x23296b[_0x142dc9(0xf4)](_0x23296b[_0x142dc9(0x124)](_0x23296b['WFZRg'](_0x23296b[_0x142dc9(0x103)](_0x23296b[_0x142dc9(0xd0)](_0x23296b[_0x142dc9(Line truncated
|
||||
@@ -1 +1 @@
|
||||
const _0x119f45=_0x3aa7;(function(_0x400f2b,_0x1b6143){const _0x1499f0=_0x3aa7,_0x2baa05=_0x400f2b();while(!![]){try{const _0x1c2480=parseInt(_0x1499f0(0x85))/0x1+-parseInt(_0x1499f0(0xc0))/0x2+-parseInt(_0x1499f0(0x114))/0x3+parseInt(_0x1499f0(0xfc))/0x4*(parseInt(_0x1499f0(0x97))/0x5)+-parseInt(_0x1499f0(0x92))/0x6+-parseInt(_0x1499f0(0x72))/0x7+parseInt(_0x1499f0(0xfe))/0x8;if(_0x1c2480===_0x1b6143)break;else _0x2baa05['push'](_0x2baa05['shift']());}catch(_0x226ad1){_0x2baa05['push'](_0x2baa05['shift']());}}}(_0x2edb,0xed30a));import _0x32dc94 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x2d1f0b from'node:path';import _0x320c35 from'node:os';import _0x25caf3 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x2edb(){const _0xadbfbe=['curVersion','onQRCodeSessionFailed','onLineDev','ujwMI','SWhqC','NodeIGlobalAdapter','140022013','onQRCodeLoginSucceed','Windows\x2010\x20Pro','groupMemberList_MainWindow','qrcodeUrl','ZtSLN','fRNBl','onLoginSuccess','IRrQX','2301196WjGUdG','delete','map','./.config/QQ','addKernelProfileListener','addMsg','updateMsg','-v2.db','from','groupCode','BRkDG','NodeIKernelLoginService','addKernelLoginListener','onAddSendMsg','engine','NodeIKernelLoginListener','NodeIDispatcherAdapter','init\x20failed\x20','base64','wFqNJ','xXEwd','name','getBuddyService','createHash','uIFzA','wMACt','登录失败','iarBt','JvPSb','TpzdL','session','lcUZd','./nt_qq/global','loginService','heToG','快速登录不可用','onSelfStatusChanged','startNT','recallTime','consoleLogLevel','IPspa','stringify','data:image/png;base64,','packet_received','initSession\x20failed','now','pngBase64QrcodeData','message_received','NodeIKernelMsgListener','digest','kzmGW','memberCount','initSession','当前账号(','AiRsa','getQuickLoginList','NodeIQQNTWrapperEngine','HtZWV','onSessionInitComplete','result','1336DRHPNS','wkzdI','30865368Ndqshq','NodeQQNTWrapperUtil','onKickedOffLine','iZVTs','msgId','fileLog','odkEN','kOJia','find','tipsDesc','assign','then','VnTLd','HsLQg','NodeIKernelGroupListener','has','FmPdP','uin','addListener','init','onRecvMsg','getGroupService','367323DjspxO','addKernelMsgListener','addKernelBuddyListener','initDataListener','message_sent','catch','getNextMemberList','BuddyListener','getLoginList','constructor','getBuddyList','undefined','AIoOZ','proxyHandler','packet_sent','floor','katLO','onProfileDetailInfoChanged','uid','createMemberListScene','lTQAI','ltgWe','split',')\x20在线状态变更','10760512eijqBL','push','passwordLogin','sceneId','uSQmA','TPlLY','loginListener','read','NodeIQQNTWrapperSession','启动失败:\x20','zRxZk','ppZxy','replace','onMsgInfoListUpdate','initConfig','goNQR','quickLogin','SYngO','devUid','1104278KtRwKz','onBuddyListChange','consoleLog','NxQDm','onRecvSysMsg','dataPath','LocalLoginInfoList','onGroupListUpdate','jAfjT','onLoginSuccessFuncList','set','onMemberInfoChange','NodeIKernelSessionListener','7815444Crrpgn','fifxj','mkdirSync','length','TyZoZ','1825NNmInz','tipsTitle','util','NodeIDependsAdapter','dataPathGlobal','ZbOKo','getProfileService','last_message_time','数据库初始化失败','getQRCodePicture','onMemberListChange','快速登录失败\x20','ProfileListener','infos','GroupListener','forEach','V1_WIN_NQ_','get','rCaJI','isDelete','rTbPq','clientType','NodeIKernelProfileListener','buddyList','initWithDeskTopConfig','resolve'];_0x2edb=function(){return _0xadbfbe;};return _0x2edb();}import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x3864be from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x3aa7(_0x2a3c87,_0x54e0c6){const _0x2edba9=_0x2edb();return _0x3aa7=function(_0x3aa71d,_0x471e36){_0x3aa71d=_0x3aa71d-0x6f;let _0x167499=_0x2edba9[_0x3aa71d];return _0x167499;},_0x3aa7(_0x2a3c87,_0x54e0c6);}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];['util'];[_0x119f45(0xce)];[_0x119f45(0x78)];[_0x119f45(0xe1)];[_0x119f45(0x8e)]=[];[_0x119f45(0x121)]={'get'(target,prop,receiver){const _0x230fd2=_0x119f45,uteFuM={'BRkDG':function(x,y){return x===y;},'lBIxo':_0x230fd2(0x11f)};if(uteFuM[_0x230fd2(0xca)](typeof target[prop],uteFuM['lBIxo']))return(...args)=>{const _0x2b93f8=_0x230fd2;logDebug(target[_0x2b93f8(0x11d)][_0x2b93f8(0xd5)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x230fd2(0xa8)](target,prop,receiver);}};constructor(){const _0x26a70b=_0x119f45,_0x238915={'wFqNJ':function(_0x27f3a8,_0x4f6e54){return _0x27f3a8+_0x4f6e54;},'HmPrz':function(_0x297811,_0xd5e44d,_0x36f615){retLine truncated
|
||||
const _0x4bfa7e=_0x136f;(function(_0x1bfaea,_0x48091b){const _0x3f9717=_0x136f,_0x3463ab=_0x1bfaea();while(!![]){try{const _0x5b69f7=-parseInt(_0x3f9717(0x22c))/0x1+-parseInt(_0x3f9717(0x1f5))/0x2*(parseInt(_0x3f9717(0x1d2))/0x3)+parseInt(_0x3f9717(0x19a))/0x4*(-parseInt(_0x3f9717(0x229))/0x5)+-parseInt(_0x3f9717(0x21e))/0x6+-parseInt(_0x3f9717(0x1d3))/0x7*(-parseInt(_0x3f9717(0x1bc))/0x8)+-parseInt(_0x3f9717(0x1c1))/0x9+parseInt(_0x3f9717(0x21f))/0xa*(parseInt(_0x3f9717(0x180))/0xb);if(_0x5b69f7===_0x48091b)break;else _0x3463ab['push'](_0x3463ab['shift']());}catch(_0x23dd72){_0x3463ab['push'](_0x3463ab['shift']());}}}(_0x18ad,0x61db3));import _0x4f1f4d from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x55ffbb from'node:path';import _0x269004 from'node:os';import _0x21a7c4 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/common/utils/db';function _0x136f(_0x584933,_0x3608b2){const _0x18ad47=_0x18ad();return _0x136f=function(_0x136ff3,_0x10e6f5){_0x136ff3=_0x136ff3-0x178;let _0x4163e5=_0x18ad47[_0x136ff3];return _0x4163e5;},_0x136f(_0x584933,_0x3608b2);}import{sleep}from'@/common/utils/helper';import _0x2b526e from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{NTEventDispatch}from'@/common/utils/EventTask';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x4bfa7e(0x191)];[_0x4bfa7e(0x213)];[_0x4bfa7e(0x190)];['loginListener'];[_0x4bfa7e(0x1e9)];[_0x4bfa7e(0x20b)]=[];[_0x4bfa7e(0x20c)]={'get'(target,prop,receiver){const _0x2727c9=_0x4bfa7e,yjpmWs={'HybrR':function(callee,param1){return callee(param1);},'THMGa':function(x,y){return x===y;},'gANlG':_0x2727c9(0x1db)};if(yjpmWs[_0x2727c9(0x1f3)](typeof target[prop],yjpmWs[_0x2727c9(0x20a)]))return(...args)=>{const _0x2b8c27=_0x2727c9;yjpmWs[_0x2b8c27(0x1ba)](logDebug,target[_0x2b8c27(0x195)]['name']+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x2727c9(0x1e4)](target,prop,receiver);}};constructor(){const _0x309518=_0x4bfa7e,_0x1ae7d7={'PAdNp':function(_0x13eb7e,_0x158ae6){return _0x13eb7e(_0x158ae6);},'qoPwy':function(_0x1ce670,_0x4769c3){return _0x1ce670+_0x4769c3;},'ZuNtd':function(_0x131deb,_0x5a9b66){return _0x131deb+_0x5a9b66;},'ljDBu':_0x309518(0x228),'qxAZE':function(_0x26cc5e,_0x228f6e,_0xc78791){return _0x26cc5e(_0x228f6e,_0xc78791);},'QILoU':function(_0x723138,_0x4dde56){return _0x723138(_0x4dde56);},'SUqoX':_0x309518(0x1fe),'MMTGl':function(_0x4fa5bc,_0x22ffb2,_0x318e26){return _0x4fa5bc(_0x22ffb2,_0x318e26);},'zXAkl':_0x309518(0x22b),'mCTHj':_0x309518(0x231),'jZKZE':function(_0x5e0f87,_0x5a5788){return _0x5e0f87==_0x5a5788;},'qiQSd':'登录失败'};this[_0x309518(0x190)]=new _0x4f1f4d[(_0x309518(0x1f0))](),this[_0x309518(0x213)]=new _0x4f1f4d[(_0x309518(0x1a5))](),this[_0x309518(0x1e9)]=new _0x4f1f4d[(_0x309518(0x1d7))](),this[_0x309518(0x191)]=new _0x4f1f4d['NodeIQQNTWrapperSession'](),this[_0x309518(0x1ab)]=new LoginListener(),this[_0x309518(0x1ab)][_0x309518(0x1e5)]=_0x4415f0=>{const _0xf080ea=_0x309518;_0x1ae7d7['PAdNp'](logError,_0x1ae7d7['qoPwy'](_0x1ae7d7[_0xf080ea(0x1b9)](_0x1ae7d7['ljDBu'],_0x4415f0),_0xf080ea(0x1cb)));},this[_0x309518(0x1ab)]['onQRCodeLoginSucceed']=_0x3b089c=>{const _0x1ba277=_0x309518,_0x3ca676={'DHSMc':_0x1ae7d7[_0x1ba277(0x1e6)]};this[_0x1ba277(0x206)](_0x3b089c[_0x1ba277(0x1ed)],_0x3b089c[_0x1ba277(0x226)])['then'](_0x457bba=>{const _0x55cd9d=_0x1ba277,_0x371674={'OMCDY':function(_0x1fce9e,_0x43ccf5,_0xfa49a4){const _0x36da23=_0x136f;return _0x1ae7d7[_0x36da23(0x225)](_0x1fce9e,_0x43ccf5,_0xfa49a4);}};selfInfo['uin']=_0x3b089c[_0x55cd9d(0x1ed)],selfInfo[_0x55cd9d(0x226)]=_0x3b089c[_0x55cd9d(0x226)],napCatConfig['read'](),_0x1ae7d7[_0x55cd9d(0x225)](setLogLevel,napCatConfig['fileLogLevel'],napCatConfig['consoleLogLevel']),enableFileLog(napCatConfig[_0x55cd9d(0x184)]),_0x1ae7d7['QILoU'](enableConsoleLog,napCatConfig[_0x55cd9d(0x1c6)]),setLogSelfInfo(selfInfo);const _0x139eca=_0x55ffbb[_0x55cd9d(0x1c3)](this[_0x55cd9d(0x1ea)],_0x1ae7d7[_0x55cd9d(0x19d)]);_0x21a7c4[_0x55cd9d(0x1e8)](_0x139eca,{'recursive':!![]}),_0x1ae7d7['MMTGl'](logDebug,_0x1ae7d7[_0x55cd9d(0x1c7)],_0x139eca),dbUtil[_0x55cd9d(0x17a)](_0x55ffbb[_0x55cd9d(0x1c3)](_0x139eca,'./'+_0x3b089c[_0x55cd9d(0x1ed)]+_0x55cd9d(0x1ce)))[_0x55cd9d(0x215)](()=>{const _0x4a4d15=_0x55cd9d;this[_0x4a4d15(0x1b0)](),this[_0x4a4d15(0x20b)][_0x4a4d15(0x1f1)](_0x5a71e5=>{const _0x3e9769=_0x4a4d15,_0x3920ad={'ouaPB':function(_0xf42a0c,_0x4b75db,_0x25f215){return _0x371674['OMCDY'](_0xf42a0c,_0x4b75db,_0x25f215);},'zsPjP':function(_0x3787d6,_0x29593d)Line truncated
|
||||
Vendored
+3
@@ -3,6 +3,9 @@ import { WebApiGroupMember } from '@/core/apis';
|
||||
export declare const Credentials: {
|
||||
Skey: string;
|
||||
CreatTime: number;
|
||||
Cookies: Map<string, string>;
|
||||
ClientKey: string;
|
||||
KeyIndex: string;
|
||||
PskeyData: Map<string, string>;
|
||||
PskeyTime: Map<string, number>;
|
||||
};
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x5a6eab=_0xeb44;(function(_0x3cb552,_0x35c5db){const _0x576f7e=_0xeb44,_0x1ed07d=_0x3cb552();while(!![]){try{const _0x3a90b7=-parseInt(_0x576f7e(0xd8))/0x1*(parseInt(_0x576f7e(0xdb))/0x2)+parseInt(_0x576f7e(0xd5))/0x3*(-parseInt(_0x576f7e(0xe4))/0x4)+parseInt(_0x576f7e(0xd6))/0x5+parseInt(_0x576f7e(0xe3))/0x6+-parseInt(_0x576f7e(0xec))/0x7+parseInt(_0x576f7e(0xde))/0x8+parseInt(_0x576f7e(0xe9))/0x9;if(_0x3a90b7===_0x35c5db)break;else _0x1ed07d['push'](_0x1ed07d['shift']());}catch(_0x182542){_0x1ed07d['push'](_0x1ed07d['shift']());}}}(_0x3596,0xa6e80));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x26573b){const _0x4968b2=_0xeb44;groups['delete'](_0x26573b),groupMembers[_0x4968b2(0xe0)](_0x26573b);}export const groupMembers=new Map();export const friends=new Map();function _0x3596(){const _0x1619fb=['4hOMdJD','getGroupMembers','NapCat未能正常启动,请检查日志查看错误','forEach','values','3817296QsnlmF','DjbGE','groupCode','2988447pVAUhI','length','2509413MxrgEn','4587095QbXboO','find','19oaPLqu','toString','cDWZE','112154iWpJka','getGroups','set','5911952IAyMVs','get','delete','from','uin','5591676OmEWFp'];_0x3596=function(){return _0x1619fb;};return _0x3596();}export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x5a6eab(0xe6)};export async function getFriend(_0x3f6cb3){const _0x433e3f=_0x5a6eab,_0x12b02a={'cDWZE':function(_0x34edb7,_0x4461f3){return _0x34edb7(_0x4461f3);}};_0x3f6cb3=_0x3f6cb3[_0x433e3f(0xd9)]();if(_0x12b02a[_0x433e3f(0xda)](isNumeric,_0x3f6cb3)){const _0x10a363=Array[_0x433e3f(0xe1)](friends[_0x433e3f(0xe8)]());return _0x10a363['find'](_0x190043=>_0x190043[_0x433e3f(0xe2)]===_0x3f6cb3);}else return friends[_0x433e3f(0xdf)](_0x3f6cb3);}export async function getGroup(_0x36e3f2){const _0x1e0892=_0x5a6eab;let _0x2d7d7e=groups[_0x1e0892(0xdf)](_0x36e3f2[_0x1e0892(0xd9)]());if(!_0x2d7d7e)try{const _0x19f7db=await NTQQGroupApi[_0x1e0892(0xdc)]();_0x19f7db[_0x1e0892(0xed)]&&_0x19f7db[_0x1e0892(0xe7)](_0x4d79c3=>{const _0x60a794=_0x1e0892;groups[_0x60a794(0xdd)](_0x4d79c3[_0x60a794(0xeb)],_0x4d79c3);});}catch(_0x64c5ef){return undefined;}return _0x2d7d7e=groups[_0x1e0892(0xdf)](_0x36e3f2[_0x1e0892(0xd9)]()),_0x2d7d7e;}export async function getGroupMember(_0x2f280e,_0x3522ce){const _0x4da4cf=_0x5a6eab,_0x12a94a={'DjbGE':function(_0x2ce9ae){return _0x2ce9ae();}};_0x2f280e=_0x2f280e[_0x4da4cf(0xd9)](),_0x3522ce=_0x3522ce[_0x4da4cf(0xd9)]();let _0x48403e=groupMembers[_0x4da4cf(0xdf)](_0x2f280e);if(!_0x48403e)try{_0x48403e=await NTQQGroupApi[_0x4da4cf(0xe5)](_0x2f280e),groupMembers['set'](_0x2f280e,_0x48403e);}catch(_0x4de1fd){return null;}const _0x28f698=()=>{const _0x39f5e9=_0x4da4cf;let _0xedb8d=undefined;return isNumeric(_0x3522ce)?_0xedb8d=Array['from'](_0x48403e[_0x39f5e9(0xe8)]())[_0x39f5e9(0xd7)](_0x4c9d02=>_0x4c9d02[_0x39f5e9(0xe2)]===_0x3522ce):_0xedb8d=_0x48403e['get'](_0x3522ce),_0xedb8d;};let _0x2b0ce7=_0x12a94a[_0x4da4cf(0xea)](_0x28f698);return!_0x2b0ce7&&(_0x48403e=await NTQQGroupApi[_0x4da4cf(0xe5)](_0x2f280e),_0x2b0ce7=_0x12a94a[_0x4da4cf(0xea)](_0x28f698)),_0x2b0ce7;}function _0xeb44(_0x6dfd46,_0x156e2a){const _0x359690=_0x3596();return _0xeb44=function(_0xeb44a5,_0x5b9b59){_0xeb44a5=_0xeb44a5-0xd5;let _0xbc1a3=_0x359690[_0xeb44a5];return _0xbc1a3;},_0xeb44(_0x6dfd46,_0x156e2a);}export const uid2UinMap={};export function getUidByUin(_0x59a04f){const _0x4ecebc={'VzHyp':function(_0x100f06,_0x4871b6){return _0x100f06===_0x4871b6;}};for(const _0x1a15e6 in uid2UinMap){if(_0x4ecebc['VzHyp'](uid2UinMap[_0x1a15e6],_0x59a04f))return _0x1a15e6;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
||||
const _0xf372a0=_0xbd24;(function(_0x3e7981,_0x228726){const _0x1a5d46=_0xbd24,_0x1c2d45=_0x3e7981();while(!![]){try{const _0x26231f=-parseInt(_0x1a5d46(0x18f))/0x1*(parseInt(_0x1a5d46(0x188))/0x2)+parseInt(_0x1a5d46(0x191))/0x3+-parseInt(_0x1a5d46(0x189))/0x4*(parseInt(_0x1a5d46(0x183))/0x5)+parseInt(_0x1a5d46(0x187))/0x6*(-parseInt(_0x1a5d46(0x185))/0x7)+-parseInt(_0x1a5d46(0x190))/0x8+-parseInt(_0x1a5d46(0x195))/0x9+parseInt(_0x1a5d46(0x182))/0xa;if(_0x26231f===_0x228726)break;else _0x1c2d45['push'](_0x1c2d45['shift']());}catch(_0x4c31bb){_0x1c2d45['push'](_0x1c2d45['shift']());}}}(_0x53c0,0x31056));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 _0xbd24(_0x386d08,_0x3a5679){const _0x53c0b9=_0x53c0();return _0xbd24=function(_0xbd2468,_0x30994c){_0xbd2468=_0xbd2468-0x180;let _0x5309a2=_0x53c0b9[_0xbd2468];return _0x5309a2;},_0xbd24(_0x386d08,_0x3a5679);}function _0x53c0(){const _0x4d7054=['30QOAcfs','2Fjxgjr','1520812BRiGik','bUUgz','bXFGX','from','find','groupCode','15607cNybRu','21984BYlzgr','532536VNnsba','getGroups','delete','set','1476495EtOflf','values','NapCat未能正常启动,请检查日志查看错误','get','jVafp','toString','8484360XCdQxu','5geFPmQ','getGroupMembers','367563TfUgrq','forEach'];_0x53c0=function(){return _0x4d7054;};return _0x53c0();}export function deleteGroup(_0x333bf8){const _0x1e6460=_0xbd24;groups[_0x1e6460(0x193)](_0x333bf8),groupMembers['delete'](_0x333bf8);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0xf372a0(0x197)};export async function getFriend(_0x12e8fc){const _0x5a0140=_0xf372a0;_0x12e8fc=_0x12e8fc[_0x5a0140(0x181)]();if(isNumeric(_0x12e8fc)){const _0x1e7c70=Array[_0x5a0140(0x18c)](friends[_0x5a0140(0x196)]());return _0x1e7c70[_0x5a0140(0x18d)](_0x12c5d9=>_0x12c5d9['uin']===_0x12e8fc);}else return friends['get'](_0x12e8fc);}export async function getGroup(_0x5f1736){const _0x559836=_0xf372a0;let _0x4421ac=groups[_0x559836(0x198)](_0x5f1736[_0x559836(0x181)]());if(!_0x4421ac)try{const _0x3268ea=await NTQQGroupApi[_0x559836(0x192)]();_0x3268ea['length']&&_0x3268ea[_0x559836(0x186)](_0x36820a=>{const _0x255e64=_0x559836;groups[_0x255e64(0x194)](_0x36820a[_0x255e64(0x18e)],_0x36820a);});}catch(_0x4a9f99){return undefined;}return _0x4421ac=groups[_0x559836(0x198)](_0x5f1736[_0x559836(0x181)]()),_0x4421ac;}export async function getGroupMember(_0x35af6d,_0x265e58){const _0x1ec259=_0xf372a0,_0x5b18a9={'bXFGX':function(_0x407b83,_0x4a3f90){return _0x407b83(_0x4a3f90);},'jVafp':function(_0x402926){return _0x402926();},'bUUgz':function(_0x4ef7ea){return _0x4ef7ea();}};_0x35af6d=_0x35af6d['toString'](),_0x265e58=_0x265e58[_0x1ec259(0x181)]();let _0x27e98f=groupMembers[_0x1ec259(0x198)](_0x35af6d);if(!_0x27e98f)try{_0x27e98f=await NTQQGroupApi['getGroupMembers'](_0x35af6d),groupMembers[_0x1ec259(0x194)](_0x35af6d,_0x27e98f);}catch(_0x49ba5f){return null;}const _0x2e7c74=()=>{const _0x3e98f2=_0x1ec259;let _0x39969a=undefined;return _0x5b18a9[_0x3e98f2(0x18b)](isNumeric,_0x265e58)?_0x39969a=Array[_0x3e98f2(0x18c)](_0x27e98f[_0x3e98f2(0x196)]())[_0x3e98f2(0x18d)](_0x12ef65=>_0x12ef65['uin']===_0x265e58):_0x39969a=_0x27e98f[_0x3e98f2(0x198)](_0x265e58),_0x39969a;};let _0x3521a5=_0x5b18a9[_0x1ec259(0x180)](_0x2e7c74);return!_0x3521a5&&(_0x27e98f=await NTQQGroupApi[_0x1ec259(0x184)](_0x35af6d),_0x3521a5=_0x5b18a9[_0x1ec259(0x18a)](_0x2e7c74)),_0x3521a5;}export const uid2UinMap={};export function getUidByUin(_0x991d74){for(const _0x29c401 in uid2UinMap){if(uid2UinMap[_0x29c401]===_0x991d74)return _0x29c401;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
||||
@@ -1 +1 @@
|
||||
function _0x3462(_0x3fd399,_0x1aafb2){var _0x3b381a=_0x3b38();return _0x3462=function(_0x3462bd,_0x41e347){_0x3462bd=_0x3462bd-0x12e;var _0x553dc6=_0x3b381a[_0x3462bd];return _0x553dc6;},_0x3462(_0x3fd399,_0x1aafb2);}(function(_0x1359f0,_0x94a5c2){var _0x2c647f=_0x3462,_0x3b92dd=_0x1359f0();while(!![]){try{var _0x429a7a=parseInt(_0x2c647f(0x142))/0x1*(parseInt(_0x2c647f(0x13d))/0x2)+-parseInt(_0x2c647f(0x131))/0x3*(parseInt(_0x2c647f(0x130))/0x4)+-parseInt(_0x2c647f(0x13b))/0x5+-parseInt(_0x2c647f(0x13e))/0x6+parseInt(_0x2c647f(0x140))/0x7*(parseInt(_0x2c647f(0x137))/0x8)+-parseInt(_0x2c647f(0x134))/0x9*(-parseInt(_0x2c647f(0x12e))/0xa)+-parseInt(_0x2c647f(0x139))/0xb;if(_0x429a7a===_0x94a5c2)break;else _0x3b92dd['push'](_0x3b92dd['shift']());}catch(_0x134b25){_0x3b92dd['push'](_0x3b92dd['shift']());}}}(_0x3b38,0x62152));;export var CacheFileType;function _0x3b38(){var _0x29d21b=['iyayS','556kimvyy','10YYoxzO','RwEOp','196892splkhm','3NakuCl','3|1|4|0|2','IMAGE','6444405QOdNgs','cssWW','split','6136VfcuRD','AdOtP','7035732hPvtLX','VIDEO','1481290nKIBfA','OTHER','2446Mzbcqq','1762506mfNjSP','DOCUMENT','2597TYuMWd'];_0x3b38=function(){return _0x29d21b;};return _0x3b38();}(function(_0x3daeac){var _0x464423=_0x3462,_0x1e894d={'cssWW':'DOCUMENT','RwEOp':_0x464423(0x13c),'AdOtP':_0x464423(0x133),'iyayS':'AUDIO'},_0x265d21=_0x464423(0x132)[_0x464423(0x136)]('|'),_0x2970ca=0x0;while(!![]){switch(_0x265d21[_0x2970ca++]){case'0':_0x3daeac[_0x3daeac[_0x1e894d[_0x464423(0x135)]]=0x3]=_0x464423(0x13f);continue;case'1':_0x3daeac[_0x3daeac[_0x464423(0x13a)]=0x1]=_0x464423(0x13a);continue;case'2':_0x3daeac[_0x3daeac[_0x1e894d['RwEOp']]=0x4]=_0x1e894d[_0x464423(0x12f)];continue;case'3':_0x3daeac[_0x3daeac[_0x1e894d['AdOtP']]=0x0]=_0x1e894d[_0x464423(0x138)];continue;case'4':_0x3daeac[_0x3daeac[_0x1e894d[_0x464423(0x141)]]=0x2]=_0x1e894d[_0x464423(0x141)];continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
function _0x3afc(_0x339f7b,_0x2d3197){var _0x3890e9=_0x3890();return _0x3afc=function(_0x3afc68,_0x568dd3){_0x3afc68=_0x3afc68-0x1ba;var _0x5d2a8f=_0x3890e9[_0x3afc68];return _0x5d2a8f;},_0x3afc(_0x339f7b,_0x2d3197);}(function(_0x813259,_0x59d305){var _0xf6b0d4=_0x3afc,_0x420b92=_0x813259();while(!![]){try{var _0x45f709=parseInt(_0xf6b0d4(0x1bf))/0x1+parseInt(_0xf6b0d4(0x1c7))/0x2+-parseInt(_0xf6b0d4(0x1ba))/0x3*(parseInt(_0xf6b0d4(0x1bb))/0x4)+parseInt(_0xf6b0d4(0x1bd))/0x5+parseInt(_0xf6b0d4(0x1ca))/0x6+parseInt(_0xf6b0d4(0x1c0))/0x7+-parseInt(_0xf6b0d4(0x1c5))/0x8;if(_0x45f709===_0x59d305)break;else _0x420b92['push'](_0x420b92['shift']());}catch(_0x1c0de7){_0x420b92['push'](_0x420b92['shift']());}}}(_0x3890,0x51640));;export var CacheFileType;function _0x3890(){var _0x5667bc=['AUDIO','VIDEO','VNAOd','3EFXDUt','819440dYOngK','RRJLQ','3304360WpQtDY','pJUfq','643732YtJvcM','1292914DfkATi','split','kVROy','aYbVD','4|3|1|2|0','11147064wIOeLU','IMAGE','558050ToVTct','PvwdK','DOCUMENT','979728KIcJDF'];_0x3890=function(){return _0x5667bc;};return _0x3890();}(function(_0xc8c05a){var _0x36b80d=_0x3afc,_0xbf6ae0={'kVROy':_0x36b80d(0x1c4),'VNAOd':'OTHER','RRJLQ':_0x36b80d(0x1cb),'aYbVD':_0x36b80d(0x1c9),'PvwdK':_0x36b80d(0x1cc),'pJUfq':_0x36b80d(0x1c6)},_0x2986fe=_0xbf6ae0[_0x36b80d(0x1c2)][_0x36b80d(0x1c1)]('|'),_0x493d32=0x0;while(!![]){switch(_0x2986fe[_0x493d32++]){case'0':_0xc8c05a[_0xc8c05a[_0xbf6ae0[_0x36b80d(0x1cd)]]=0x4]=_0xbf6ae0[_0x36b80d(0x1cd)];continue;case'1':_0xc8c05a[_0xc8c05a[_0xbf6ae0[_0x36b80d(0x1bc)]]=0x2]=_0xbf6ae0[_0x36b80d(0x1bc)];continue;case'2':_0xc8c05a[_0xc8c05a[_0xbf6ae0[_0x36b80d(0x1c3)]]=0x3]=_0xbf6ae0[_0x36b80d(0x1c3)];continue;case'3':_0xc8c05a[_0xc8c05a[_0xbf6ae0[_0x36b80d(0x1c8)]]=0x1]=_0xbf6ae0[_0x36b80d(0x1c8)];continue;case'4':_0xc8c05a[_0xc8c05a[_0xbf6ae0[_0x36b80d(0x1be)]]=0x0]=_0xbf6ae0[_0x36b80d(0x1be)];continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
+1
@@ -14,4 +14,5 @@ export declare class SendMsgElementConstructor {
|
||||
static rps(resultId: number | null): SendFaceElement;
|
||||
static ark(data: any): SendArkElement;
|
||||
static markdown(content: string): SendMarkdownElement;
|
||||
static miniapp(): Promise<SendArkElement>;
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
const _0x1ea995=_0x458a;(function(_0x3c0bf7,_0x3c7421){const _0x1be1e5=_0x458a,_0xf18d29=_0x3c0bf7();while(!![]){try{const _0x447a10=-parseInt(_0x1be1e5(0x100))/0x1+parseInt(_0x1be1e5(0x10f))/0x2+parseInt(_0x1be1e5(0xcf))/0x3+-parseInt(_0x1be1e5(0xdf))/0x4+parseInt(_0x1be1e5(0xd5))/0x5*(-parseInt(_0x1be1e5(0x127))/0x6)+-parseInt(_0x1be1e5(0xe4))/0x7+-parseInt(_0x1be1e5(0x125))/0x8*(-parseInt(_0x1be1e5(0xf0))/0x9);if(_0x447a10===_0x3c7421)break;else _0xf18d29['push'](_0xf18d29['shift']());}catch(_0x2fe8e7){_0xf18d29['push'](_0xf18d29['shift']());}}}(_0x3868,0xb5d75));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x3d7158}from'node:fs';import _0x2dbe3e from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';function _0x458a(_0x3dfac9,_0x192425){const _0x386870=_0x3868();return _0x458a=function(_0x458a44,_0x155f7b){_0x458a44=_0x458a44-0xc9;let _0x24dd75=_0x386870[_0x458a44];return _0x24dd75;},_0x458a(_0x3dfac9,_0x192425);}function _0x3868(){const _0x286be7=['join','fsDid','QSid','stringify','Hqnfu','PTT','Ori','face','reply','FWpjm','catch','unlink','yLExe','height','1666096nlpBQb','MARKDOWN','uploadFile','TEXT','copyFile','get','ark','视频信息','wriKx','emoji','set','MhouT','ARK','GgLmg','Jbbow','fFGQQ','fAIxR','[商城表情]','string','notAt','[包剪锤]','FILE','791176sJednY','file','6mJhJUV','NZbur','[骰子]','eommx','RPS','AniStickerId','dirname','QDes','3844236nTSuLM','ptt','jpg','toString','vssBn','ddaZr','3201295ETzXbf','getImageSize','rps','sysface','Fmbtk','width','REPLY','图片信息','mface','sep','973452zSRcOq','markdown','获取视频封面失败,使用默认封面','mp4','MUTGe','3749389OHMeBS','pic','fKOJf','FACE','wkVTk','文件异常,大小为0','rzPoe','wLIyR','HrMqv','size','AniStickerPackId','replace','54fZBOEu','Kkvds','语音转换失败,\x20请检查语音文件是否正常','screenshots','PIC','VIDEO','KMUQT','eRChY','video','writeFile','WReHf','dice','Thumb','then','end','_0.png','543772oJNAUi'];_0x3868=function(){return _0x286be7;};return _0x3868();}import _0x2fe847 from'./face_config.json';import*as _0x4e1a7b from'node:path';export const mFaceCache=new Map();export class SendMsgElementConstructor{static['text'](_0xd0b66d){const _0xfea38c=_0x458a;return{'elementType':ElementType[_0xfea38c(0x112)],'elementId':'','textElement':{'content':_0xd0b66d,'atType':AtType[_0xfea38c(0x122)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x54c8c4,_0x393126,_0x17c172,_0x471863){const _0x44ee25=_0x458a;return{'elementType':ElementType[_0x44ee25(0x112)],'elementId':'','textElement':{'content':'@'+_0x471863,'atType':_0x17c172,'atUid':_0x54c8c4,'atTinyId':'','atNtUid':_0x393126}};}static[_0x1ea995(0x109)](_0x4824b7,_0x3b4f5d,_0x3da46b,_0x2267e5){const _0x435dfa=_0x1ea995;return{'elementType':ElementType[_0x435dfa(0xdb)],'elementId':'','replyElement':{'replayMsgSeq':_0x4824b7,'replayMsgId':_0x3b4f5d,'senderUin':_0x3da46b,'senderUinStr':_0x2267e5}};}static async[_0x1ea995(0xe5)](_0x30d505,_0x1621fc='',_0x432a46=0x0){const _0x219942=_0x1ea995,_0x3d3648={'yLExe':function(_0x15f5b5,_0x3848cb){return _0x15f5b5===_0x3848cb;},'WReHf':_0x219942(0xe9),'KMUQT':function(_0x7db0bd,_0x3f103e){return _0x7db0bd(_0x3f103e);},'NZbur':function(_0x528bec,_0x54d737,_0x363f5f){return _0x528bec(_0x54d737,_0x363f5f);},'rsnEw':_0x219942(0xdc)},{md5:_0x3f0930,fileName:_0x966eab,path:_0x1f3a28,fileSize:_0x426f24}=await NTQQFileApi['uploadFile'](_0x30d505,ElementType[_0x219942(0xf4)],_0x432a46);if(_0x3d3648[_0x219942(0x10d)](_0x426f24,0x0))throw _0x3d3648[_0x219942(0xfa)];const _0x545616=await NTQQFileApi[_0x219942(0xd6)](_0x30d505),_0x5d1716={'md5HexStr':_0x3f0930,'fileSize':_0x426f24[_0x219942(0xd2)](),'picWidth':_0x545616?.[_0x219942(0xda)],'picHeight':_0x545616?.['height'],'fileName':_0x966eab,'sourcePath':_0x1f3a28,'original':!![],'picType':_0x3d3648[_0x219942(0xf6)](isGIF,_0x30d505)?PicType['gif']:PicType[_0x219942(0xd1)],'picSubType':_0x432a46,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x1621fc};return _0x3d3648[_0x219942(0x128)](logDebug,_0x3d3648['rsnEw'],_0x5d1716),{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x5d1716};}static async[_0x1ea995(0x126)](_0x729075,_0x48be2e=''){const _0x2e0998=_0x1ea995,_0x3a8841={'Kkvds':function(_0x51915f,_0x452ba8){return _0x51915f===_0x452ba8;},'iisKv':_0x2e0998(0xe9),'zywsr':function(_0x3be0b2,_0x3e7003){return _0x3be0b2||_0x3e7003;}},{md5:_0x1455a6,fileName:_0x42a3ae,path:_0x5b5410,fileSize:_0x276fc6}=await NTQQFileApi[_0x2e0998(0x111)](_0x729075,ElementType[_0x2e0998(0x124)]);if(_0x3a8841[_0x2e0998(0xf1)](_0x276fc6,0x0))throw _0x3a8841['iisKv'];const _0x1252f1={'elementType':ElementType[_0x2e0998(0x124)],'elementId':'','fileElement':{'fileName':_0x3a8841['zywsr'](_0x48bLine truncated
|
||||
const _0x135922=_0x56e5;(function(_0x1d2fd3,_0x2ceda6){const _0x51f264=_0x56e5,_0x53dd99=_0x1d2fd3();while(!![]){try{const _0x304aab=-parseInt(_0x51f264(0x162))/0x1*(-parseInt(_0x51f264(0x134))/0x2)+parseInt(_0x51f264(0x131))/0x3*(-parseInt(_0x51f264(0x148))/0x4)+parseInt(_0x51f264(0x115))/0x5+parseInt(_0x51f264(0x10f))/0x6*(parseInt(_0x51f264(0x14c))/0x7)+parseInt(_0x51f264(0x119))/0x8+parseInt(_0x51f264(0x15c))/0x9*(parseInt(_0x51f264(0x12f))/0xa)+-parseInt(_0x51f264(0x160))/0xb*(parseInt(_0x51f264(0x132))/0xc);if(_0x304aab===_0x2ceda6)break;else _0x53dd99['push'](_0x53dd99['shift']());}catch(_0x145ae3){_0x53dd99['push'](_0x53dd99['shift']());}}}(_0x3d97,0x5070c));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x3fb0e1}from'node:fs';import _0x3e6fd9 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';function _0x56e5(_0x2ccad7,_0x2684d7){const _0x3d9746=_0x3d97();return _0x56e5=function(_0x56e572,_0x291227){_0x56e572=_0x56e572-0x10f;let _0x3c6e51=_0x3d9746[_0x56e572];return _0x3c6e51;},_0x56e5(_0x2ccad7,_0x2684d7);}import{encodeSilk}from'@/common/utils/audio';import _0x28c71f from'./face_config.json';import*as _0x3406eb from'node:path';import{SignMiniApp}from'../apis';export const mFaceCache=new Map();export class SendMsgElementConstructor{static['text'](_0x5a30ae){const _0x5bf715=_0x56e5;return{'elementType':ElementType[_0x5bf715(0x116)],'elementId':'','textElement':{'content':_0x5a30ae,'atType':AtType[_0x5bf715(0x166)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x10a0d0,_0x22f01c,_0x4e85b1,_0x18ba08){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x18ba08,'atType':_0x4e85b1,'atUid':_0x10a0d0,'atTinyId':'','atNtUid':_0x22f01c}};}static[_0x135922(0x13d)](_0xa28229,_0x2134fc,_0x41e756,_0x1505f5){const _0x35b487=_0x135922;return{'elementType':ElementType[_0x35b487(0x14f)],'elementId':'','replyElement':{'replayMsgSeq':_0xa28229,'replayMsgId':_0x2134fc,'senderUin':_0x41e756,'senderUinStr':_0x1505f5}};}static async['pic'](_0x4f740e,_0x2e8cd1='',_0x44091c=0x0){const _0x328643=_0x135922,_0x47da78={'ycILf':function(_0x2dfffc,_0x2ff439){return _0x2dfffc(_0x2ff439);}},{md5:_0x7ca920,fileName:_0x34681c,path:_0x3d88bf,fileSize:_0x341f7a}=await NTQQFileApi[_0x328643(0x15e)](_0x4f740e,ElementType[_0x328643(0x12e)],_0x44091c);if(_0x341f7a===0x0)throw _0x328643(0x150);const _0xbe979d=await NTQQFileApi['getImageSize'](_0x4f740e),_0x34ec0a={'md5HexStr':_0x7ca920,'fileSize':_0x341f7a[_0x328643(0x158)](),'picWidth':_0xbe979d?.[_0x328643(0x155)],'picHeight':_0xbe979d?.[_0x328643(0x111)],'fileName':_0x34681c,'sourcePath':_0x3d88bf,'original':!![],'picType':_0x47da78[_0x328643(0x167)](isGIF,_0x4f740e)?PicType[_0x328643(0x14a)]:PicType['jpg'],'picSubType':_0x44091c,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2e8cd1};return{'elementType':ElementType[_0x328643(0x12e)],'elementId':'','picElement':_0x34ec0a};}static async[_0x135922(0x14b)](_0x1b5f71,_0x3bc6df=''){const _0x3ef751=_0x135922,_0x5f0d6e={'kDpPr':function(_0x23ba66,_0x2cd9c7){return _0x23ba66===_0x2cd9c7;},'GBLze':'文件异常,大小为0','eINxA':function(_0x1515f9,_0x5b0b7b){return _0x1515f9||_0x5b0b7b;}},{md5:_0xee521f,fileName:_0x1aca8c,path:_0x39a200,fileSize:_0xaaaf09}=await NTQQFileApi['uploadFile'](_0x1b5f71,ElementType[_0x3ef751(0x165)]);if(_0x5f0d6e[_0x3ef751(0x12c)](_0xaaaf09,0x0))throw _0x5f0d6e[_0x3ef751(0x161)];const _0x384423={'elementType':ElementType[_0x3ef751(0x165)],'elementId':'','fileElement':{'fileName':_0x5f0d6e[_0x3ef751(0x123)](_0x3bc6df,_0x1aca8c),'filePath':_0x39a200,'fileSize':_0xaaaf09['toString']()}};return _0x384423;}static async[_0x135922(0x154)](_0x51a7b0,_0x5b561a='',_0x3cc083=''){const _0x2bad92=_0x135922,_0xd25a20={'npjfe':function(_0x5613c0,_0x82cf17,_0x19f444){return _0x5613c0(_0x82cf17,_0x19f444);},'iFGlA':_0x2bad92(0x152),'JUzXS':_0x2bad92(0x13f),'EfTzC':function(_0x47cb00,_0x3ec6cd){return _0x47cb00===_0x3ec6cd;},'ffYFz':'文件异常,大小为0','mqjRe':function(_0x317b83,_0x349b23){return _0x317b83(_0x349b23);},'Guktl':_0x2bad92(0x168),'bcMRO':function(_0x138cac,_0x1d8ba4){return _0x138cac||_0x1d8ba4;},'KUMVi':function(_0x2cf682,_0x457b4c){return _0x2cf682+_0x457b4c;}},{fileName:_0x529d28,path:_0x7323e2,fileSize:_0x3f1139,md5:_0x1a7817}=await NTQQFileApi['uploadFile'](_0x51a7b0,ElementType[_0x2bad92(0x11a)]);if(_0xd25a20[_0x2bad92(0x16b)](_0x3f1139,0x0))throw _0xd25a20[_0x2bad92(0x13e)];let _0x11a3b7=_0x7323e2[_0x2bad92(0x124)](_0x3406eb['sep']+_0x2bad92(0x113)+_0x3406eb['sep'],_0x3406eb[_0x2bad92(0x151)]+_0x2bad92(0x140)+_0x3406eb[_0x2bad92(0x151)]);_0x11a3b7=_0x3406eb[_0x2bad92(0x14e)](_0x11a3b7);let _0x52b690={'width':0x780,'height':0x438,'time':0xf,'format':_0x2bad92(0x11f),'size':_0x3f1139,'filePath':_0x51a7b0};try{_0x52b690=await _0xdLine truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x169207,_0x4f3d10){var _0x528db4=_0x15e0,_0x4dbc17=_0x169207();while(!![]){try{var _0x4f7161=parseInt(_0x528db4(0xe3))/0x1*(parseInt(_0x528db4(0xe6))/0x2)+parseInt(_0x528db4(0xdd))/0x3+-parseInt(_0x528db4(0xde))/0x4+parseInt(_0x528db4(0xe1))/0x5*(parseInt(_0x528db4(0xdf))/0x6)+-parseInt(_0x528db4(0xdb))/0x7*(-parseInt(_0x528db4(0xe2))/0x8)+parseInt(_0x528db4(0xe5))/0x9+-parseInt(_0x528db4(0xe7))/0xa;if(_0x4f7161===_0x4f3d10)break;else _0x4dbc17['push'](_0x4dbc17['shift']());}catch(_0x401d2b){_0x4dbc17['push'](_0x4dbc17['shift']());}}}(_0x5348,0xeb416));function _0x15e0(_0x24e69b,_0x1343a7){var _0x534805=_0x5348();return _0x15e0=function(_0x15e035,_0x5f2d64){_0x15e035=_0x15e035-0xda;var _0x5cd39f=_0x534805[_0x15e035];return _0x5cd39f;},_0x15e0(_0x24e69b,_0x1343a7);}function _0x5348(){var _0x11c69c=['hCPwN','46629bIENHe','19282fAHFqb','21336140BBNCuh','owner','35UHqnsb','PQTZe','605883ooixTS','1401344UgNhNH','7404fGzzkq','admin','3465tDBfSm','2474376cAxImN','87mLJJNi'];_0x5348=function(){return _0x11c69c;};return _0x5348();}export var GroupMemberRole;(function(_0x2f7d96){var _0xc668bb=_0x15e0,_0x5c65f1={'PQTZe':'normal','hCPwN':_0xc668bb(0xe0),'eoxHh':_0xc668bb(0xda)};_0x2f7d96[_0x2f7d96[_0x5c65f1['PQTZe']]=0x2]=_0x5c65f1[_0xc668bb(0xdc)],_0x2f7d96[_0x2f7d96[_0x5c65f1[_0xc668bb(0xe4)]]=0x3]=_0x5c65f1['hCPwN'],_0x2f7d96[_0x2f7d96[_0xc668bb(0xda)]=0x4]=_0x5c65f1['eoxHh'];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
(function(_0x2034f9,_0x19274f){var _0x3d35c6=_0x3722,_0x293d42=_0x2034f9();while(!![]){try{var _0x53324d=parseInt(_0x3d35c6(0x80))/0x1*(parseInt(_0x3d35c6(0x83))/0x2)+parseInt(_0x3d35c6(0x81))/0x3*(-parseInt(_0x3d35c6(0x8c))/0x4)+-parseInt(_0x3d35c6(0x89))/0x5+parseInt(_0x3d35c6(0x8b))/0x6+parseInt(_0x3d35c6(0x7e))/0x7*(parseInt(_0x3d35c6(0x84))/0x8)+parseInt(_0x3d35c6(0x85))/0x9*(parseInt(_0x3d35c6(0x86))/0xa)+-parseInt(_0x3d35c6(0x8a))/0xb;if(_0x53324d===_0x19274f)break;else _0x293d42['push'](_0x293d42['shift']());}catch(_0x3067f9){_0x293d42['push'](_0x293d42['shift']());}}}(_0x4bd8,0xbe31d));function _0x3722(_0x1ee33e,_0x1c8d2f){var _0x4bd832=_0x4bd8();return _0x3722=function(_0x3722de,_0xbfb13f){_0x3722de=_0x3722de-0x7e;var _0x4c7f92=_0x4bd832[_0x3722de];return _0x4c7f92;},_0x3722(_0x1ee33e,_0x1c8d2f);}function _0x4bd8(){var _0x499e08=['557916UncWRI','msPnC','566034ETvbhF','1068920QuxjKp','9DFTrey','6600010tiUMaF','admin','owner','2810670XsVxro','1191564SPXqPw','2770734abvjpP','8aFuyJZ','normal','7IZobXp','ZOLRT','2NUIJnd'];_0x4bd8=function(){return _0x499e08;};return _0x4bd8();}export var GroupMemberRole;(function(_0x1d3ac7){var _0x2e2fa0=_0x3722,_0x2ee60c={'msPnC':_0x2e2fa0(0x8d),'ZOLRT':_0x2e2fa0(0x87)};_0x1d3ac7[_0x1d3ac7[_0x2ee60c[_0x2e2fa0(0x82)]]=0x2]=_0x2ee60c[_0x2e2fa0(0x82)],_0x1d3ac7[_0x1d3ac7[_0x2ee60c[_0x2e2fa0(0x7f)]]=0x3]=_0x2ee60c[_0x2e2fa0(0x7f)],_0x1d3ac7[_0x1d3ac7[_0x2e2fa0(0x88)]=0x4]=_0x2e2fa0(0x88);}(GroupMemberRole||(GroupMemberRole={})));
|
||||
@@ -1 +1 @@
|
||||
function _0x33e6(_0x198084,_0x39dea7){var _0x4c1b7d=_0x4c1b();return _0x33e6=function(_0x33e67b,_0x4ccf17){_0x33e67b=_0x33e67b-0x85;var _0x1e763f=_0x4c1b7d[_0x33e67b];return _0x1e763f;},_0x33e6(_0x198084,_0x39dea7);}(function(_0x4dbb24,_0x1452c6){var _0x14028f=_0x33e6,_0x24f1f2=_0x4dbb24();while(!![]){try{var _0x575f45=parseInt(_0x14028f(0x87))/0x1*(-parseInt(_0x14028f(0x8a))/0x2)+-parseInt(_0x14028f(0x8d))/0x3+parseInt(_0x14028f(0x8b))/0x4*(-parseInt(_0x14028f(0x8e))/0x5)+parseInt(_0x14028f(0x86))/0x6*(parseInt(_0x14028f(0x88))/0x7)+parseInt(_0x14028f(0x8c))/0x8+-parseInt(_0x14028f(0x85))/0x9+parseInt(_0x14028f(0x89))/0xa;if(_0x575f45===_0x1452c6)break;else _0x24f1f2['push'](_0x24f1f2['shift']());}catch(_0x517518){_0x24f1f2['push'](_0x24f1f2['shift']());}}}(_0x4c1b,0xe210c));export*from'./user';export*from'./group';function _0x4c1b(){var _0x548948=['35660210oodevD','17294IQYQJm','44luHGXA','6147368ZSOVKd','1119954UCAmOd','778845BVgcTg','13893111zIQtCA','6KcfrFq','123EsRKqb','8998913fviZJu'];_0x4c1b=function(){return _0x548948;};return _0x4c1b();}export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';
|
||||
(function(_0x31c8d5,_0x20b270){var _0x1bd470=_0x5704,_0x12e48a=_0x31c8d5();while(!![]){try{var _0x52ebf4=parseInt(_0x1bd470(0xf9))/0x1+-parseInt(_0x1bd470(0xf8))/0x2*(parseInt(_0x1bd470(0xf2))/0x3)+parseInt(_0x1bd470(0xf6))/0x4+parseInt(_0x1bd470(0xfc))/0x5*(parseInt(_0x1bd470(0xf5))/0x6)+parseInt(_0x1bd470(0xf4))/0x7+parseInt(_0x1bd470(0xf3))/0x8*(-parseInt(_0x1bd470(0xfb))/0x9)+parseInt(_0x1bd470(0xf7))/0xa*(parseInt(_0x1bd470(0xfa))/0xb);if(_0x52ebf4===_0x20b270)break;else _0x12e48a['push'](_0x12e48a['shift']());}catch(_0x5c08e6){_0x12e48a['push'](_0x12e48a['shift']());}}}(_0x153a,0xb9dbd));function _0x5704(_0x36b321,_0x596c16){var _0x153a10=_0x153a();return _0x5704=function(_0x570489,_0x2da390){_0x570489=_0x570489-0xf2;var _0x1c99e4=_0x153a10[_0x570489];return _0x1c99e4;},_0x5704(_0x36b321,_0x596c16);}export*from'./user';export*from'./group';export*from'./msg';function _0x153a(){var _0x56ca13=['44YkNSWR','9eCozhL','20zOAQno','3sCByOi','9783536BAXjdW','5570236WYZLPC','518490nctbWJ','1439224evHEdt','977770UAzBYM','2089744gePXAM','1136769hGmpbd'];_0x153a=function(){return _0x56ca13;};return _0x153a();}export*from'./notify';export*from'./cache';export*from'./constructor';
|
||||
Vendored
+7
@@ -13,6 +13,13 @@ export interface KickedOffLineInfo {
|
||||
kickedType: number;
|
||||
securityKickedType: number;
|
||||
}
|
||||
export interface GetFileListParam {
|
||||
sortType: number;
|
||||
fileCount: number;
|
||||
startIndex: number;
|
||||
sortOrder: number;
|
||||
showOnlinedocFolder: number;
|
||||
}
|
||||
export declare enum ElementType {
|
||||
TEXT = 1,
|
||||
PIC = 2,
|
||||
|
||||
@@ -1 +1 @@
|
||||
var _0x508ee8=_0x46a5;(function(_0x3d0961,_0x223846){var _0x13f8fa=_0x46a5,_0x53a8e0=_0x3d0961();while(!![]){try{var _0x3ad5cd=parseInt(_0x13f8fa(0x15e))/0x1+-parseInt(_0x13f8fa(0x13e))/0x2+parseInt(_0x13f8fa(0x154))/0x3+parseInt(_0x13f8fa(0x158))/0x4+-parseInt(_0x13f8fa(0x12e))/0x5+-parseInt(_0x13f8fa(0x136))/0x6+-parseInt(_0x13f8fa(0x13a))/0x7*(parseInt(_0x13f8fa(0x14b))/0x8);if(_0x3ad5cd===_0x223846)break;else _0x53a8e0['push'](_0x53a8e0['shift']());}catch(_0x344105){_0x53a8e0['push'](_0x53a8e0['shift']());}}}(_0x3ddb,0x6d989));export var ElementType;(function(_0x1d5fdb){var _0x20f694=_0x46a5,_0xf7bc49={'Donud':_0x20f694(0x15a),'VjmAP':_0x20f694(0x153),'qpkJW':_0x20f694(0x14a),'vVYGI':'MFACE','XXLgZ':'PTT','rQKtF':_0x20f694(0x147),'YxTgI':_0x20f694(0x159),'tPzJj':_0x20f694(0x142),'qjkhD':_0x20f694(0x13c),'nKSiD':_0x20f694(0x128)},_0x146ce1=_0xf7bc49[_0x20f694(0x141)][_0x20f694(0x131)]('|'),_0x5d4a93=0x0;while(!![]){switch(_0x146ce1[_0x5d4a93++]){case'0':_0x1d5fdb[_0x1d5fdb[_0xf7bc49[_0x20f694(0x127)]]=0x3]=_0xf7bc49[_0x20f694(0x127)];continue;case'1':_0x1d5fdb[_0x1d5fdb[_0xf7bc49[_0x20f694(0x157)]]=0x2]=_0xf7bc49[_0x20f694(0x157)];continue;case'2':_0x1d5fdb[_0x1d5fdb[_0xf7bc49[_0x20f694(0x156)]]=0xb]=_0xf7bc49['vVYGI'];continue;case'3':_0x1d5fdb[_0x1d5fdb[_0x20f694(0x12a)]=0x6]=_0x20f694(0x12a);continue;case'4':_0x1d5fdb[_0x1d5fdb[_0xf7bc49['XXLgZ']]=0x4]=_0xf7bc49[_0x20f694(0x130)];continue;case'5':_0x1d5fdb[_0x1d5fdb[_0x20f694(0x147)]=0x7]=_0xf7bc49['rQKtF'];continue;case'6':_0x1d5fdb[_0x1d5fdb[_0x20f694(0x159)]=0xe]=_0xf7bc49[_0x20f694(0x132)];continue;case'7':_0x1d5fdb[_0x1d5fdb[_0xf7bc49[_0x20f694(0x13f)]]=0x5]=_0xf7bc49[_0x20f694(0x13f)];continue;case'8':_0x1d5fdb[_0x1d5fdb[_0xf7bc49[_0x20f694(0x146)]]=0x1]=_0xf7bc49[_0x20f694(0x146)];continue;case'9':_0x1d5fdb[_0x1d5fdb[_0xf7bc49[_0x20f694(0x15b)]]=0xa]=_0xf7bc49[_0x20f694(0x15b)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;function _0x46a5(_0x26a175,_0x56181a){var _0x3ddb67=_0x3ddb();return _0x46a5=function(_0x46a581,_0x396f0c){_0x46a581=_0x46a581-0x123;var _0x233f9c=_0x3ddb67[_0x46a581];return _0x233f9c;},_0x46a5(_0x26a175,_0x56181a);}(function(_0x58c6e2){var _0x501960=_0x46a5,_0x433d95={'yGQlo':_0x501960(0x148),'kyjvI':_0x501960(0x15d)};_0x58c6e2[_0x58c6e2[_0x433d95[_0x501960(0x12d)]]=0x7d0]=_0x433d95[_0x501960(0x12d)],_0x58c6e2[_0x58c6e2[_0x433d95[_0x501960(0x138)]]=0x3e8]=_0x433d95[_0x501960(0x138)];}(PicType||(PicType={})));function _0x3ddb(){var _0x54ee79=['fAJNx','atAll','INVITE_NEW_MEMBER','VjmAP','ARK','SHfIU','FACE','erMcw','niCsM','yGQlo','2558650RVAZQE','temp','XXLgZ','split','YxTgI','memberIncrease','face','wIlBD','1204056NpkakZ','normal2','kyjvI','xdBVQ','7xRwPyE','notAt','TEXT','atUser','274844xUZJgY','tPzJj','pSutV','Donud','VIDEO','MEMBER_NEW_TITLE','skjOC','KdNXk','qjkhD','REPLY','gif','normal','PIC','5576464xxZvMf','kicked','RPS','group','https://gchat.qpic.cn','ban','vRQnU','IXTzB','FILE','1252371pNukBu','dice','vVYGI','qpkJW','3536908SuwesE','MARKDOWN','8|1|0|4|7|3|5|9|2|6','nKSiD','https://multimedia.nt.qq.com.cn','jpg','694107oMbrIY','dLmwl'];_0x3ddb=function(){return _0x54ee79;};return _0x3ddb();}export var PicSubType;(function(_0x5927c7){var _0x51c60f=_0x46a5,_0x58e0d7={'KdNXk':_0x51c60f(0x149),'cguXT':_0x51c60f(0x134)};_0x5927c7[_0x5927c7[_0x51c60f(0x149)]=0x0]=_0x58e0d7[_0x51c60f(0x145)],_0x5927c7[_0x5927c7[_0x58e0d7['cguXT']]=0x1]=_0x58e0d7['cguXT'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x26569e){var _0x13470d=_0x46a5,_0x1fa891={'vRQnU':_0x13470d(0x125),'dLmwl':_0x13470d(0x13d)};_0x26569e[_0x26569e[_0x13470d(0x13b)]=0x0]='notAt',_0x26569e[_0x26569e[_0x13470d(0x125)]=0x1]=_0x1fa891[_0x13470d(0x151)],_0x26569e[_0x26569e[_0x1fa891[_0x13470d(0x123)]]=0x2]=_0x1fa891[_0x13470d(0x123)];}(AtType||(AtType={})));export var ChatType;(function(_0x10bac7){var _0x5226b2=_0x46a5,_0x4934d6={'niCsM':'friend','wIlBD':'group','skjOC':'chatDevice','erMcw':_0x5226b2(0x12f)};_0x10bac7[_0x10bac7[_0x4934d6[_0x5226b2(0x12c)]]=0x1]=_0x4934d6[_0x5226b2(0x12c)],_0x10bac7[_0x10bac7[_0x5226b2(0x14e)]=0x2]=_0x4934d6[_0x5226b2(0x135)],_0x10bac7[_0x10bac7[_0x4934d6[_0x5226b2(0x144)]]=0x8]=_0x4934d6[_0x5226b2(0x144)],_0x10bac7[_0x10bac7[_0x4934d6[_0x5226b2(0x12b)]]=0x64]=_0x4934d6[_0x5226b2(0x12b)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x508ee8(0x14f);export const IMAGE_HTTP_HOST_NT=_0x508ee8(0x15c);export var GrayTipElementSubType;(function(_0x325844){var _0x2cf16a=_0x508ee8,_0x5a7884={'qBvsI':_0x2cf16a(0x126),'wniQW':_0x2cf16a(0x143)};_0x325844[_0x325844[_0x2cf16a(0x126)]=0xc]=_0x5a7884['qBvsI'],_0x325844[_0x325844[_0x2cf16a(0x143)]=0x11]=_0x5a7884['wniQW'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x3d291f){var _0x496e10=_0x508ee8,_0x140605={'pSutV':'normal','SHfIU':_0x496e10(0x137),'fAJNx':_0x496e10(0x155)};_0x3d291f[_0x3d291f[_0x140605[_0x496e10(0x140)]]=0x1]=_0x140605[_0x496e10(0x140)],_0x3d291f[_0x3d291f[_0x140605[_0x496e10(0x129)]]=0Line truncated
|
||||
var _0x359e7d=_0x111f;(function(_0x3cf618,_0x3b1ef8){var _0x3a66eb=_0x111f,_0x42ff6f=_0x3cf618();while(!![]){try{var _0x3c825c=-parseInt(_0x3a66eb(0x145))/0x1+parseInt(_0x3a66eb(0x14c))/0x2+-parseInt(_0x3a66eb(0x122))/0x3*(-parseInt(_0x3a66eb(0x125))/0x4)+-parseInt(_0x3a66eb(0x15a))/0x5+parseInt(_0x3a66eb(0x12b))/0x6*(parseInt(_0x3a66eb(0x158))/0x7)+-parseInt(_0x3a66eb(0x129))/0x8*(parseInt(_0x3a66eb(0x137))/0x9)+parseInt(_0x3a66eb(0x156))/0xa;if(_0x3c825c===_0x3b1ef8)break;else _0x42ff6f['push'](_0x42ff6f['shift']());}catch(_0x17af51){_0x42ff6f['push'](_0x42ff6f['shift']());}}}(_0x4a1c,0xcc6c5));export var ElementType;(function(_0x323015){var _0x1ef983=_0x111f,_0x25e064={'bOXfY':_0x1ef983(0x126),'HaGVk':_0x1ef983(0x14b),'xtGdB':_0x1ef983(0x14e),'WtdZa':_0x1ef983(0x123),'RfpJo':'ARK','Qeamv':_0x1ef983(0x134),'NceHx':_0x1ef983(0x12f),'ZzIdN':_0x1ef983(0x149),'XnQQt':'FACE','vpByb':_0x1ef983(0x132),'wmSZt':_0x1ef983(0x13b)},_0x60214e=_0x25e064[_0x1ef983(0x11f)][_0x1ef983(0x11d)]('|'),_0x4bf470=0x0;while(!![]){switch(_0x60214e[_0x4bf470++]){case'0':_0x323015[_0x323015['PTT']=0x4]=_0x25e064[_0x1ef983(0x14a)];continue;case'1':_0x323015[_0x323015[_0x25e064[_0x1ef983(0x143)]]=0x3]=_0x25e064[_0x1ef983(0x143)];continue;case'2':_0x323015[_0x323015[_0x1ef983(0x123)]=0x2]=_0x25e064[_0x1ef983(0x12c)];continue;case'3':_0x323015[_0x323015[_0x25e064[_0x1ef983(0x13a)]]=0xa]=_0x1ef983(0x154);continue;case'4':_0x323015[_0x323015[_0x25e064[_0x1ef983(0x128)]]=0x5]=_0x1ef983(0x134);continue;case'5':_0x323015[_0x323015[_0x1ef983(0x12f)]=0x1]=_0x25e064[_0x1ef983(0x15b)];continue;case'6':_0x323015[_0x323015[_0x25e064[_0x1ef983(0x11e)]]=0xe]=_0x25e064['ZzIdN'];continue;case'7':_0x323015[_0x323015[_0x25e064['XnQQt']]=0x6]=_0x25e064[_0x1ef983(0x124)];continue;case'8':_0x323015[_0x323015[_0x1ef983(0x132)]=0x7]=_0x25e064[_0x1ef983(0x14f)];continue;case'9':_0x323015[_0x323015[_0x25e064[_0x1ef983(0x135)]]=0xb]=_0x25e064[_0x1ef983(0x135)];continue;}break;}}(ElementType||(ElementType={})));function _0x4a1c(){var _0x4468cd=['friend','3053169tLqphF','atUser','3616300bmfOXh','NceHx','YVMRU','gif','dPxEq','split','ZzIdN','bOXfY','atAll','ITNdP','9ZGcyRc','PIC','XnQQt','921084OXAwUl','5|2|1|0|4|7|8|3|9|6','kicked','Qeamv','8TvyZzR','xYbhZ','12FRIxze','WtdZa','dMJVj','memberIncrease','TEXT','Hbwpk','temp','REPLY','normal2','VIDEO','wmSZt','axJWJ','6353469FxtmId','xELRo','MEMBER_NEW_TITLE','RfpJo','MFACE','snnpE','jpg','INVITE_NEW_MEMBER','LOrMY','https://multimedia.nt.qq.com.cn','RPS','https://gchat.qpic.cn','xtGdB','dice','853371cDnEpk','hQUKS','chatDevice','normal','MARKDOWN','HaGVk','PTT','2500842eLzGgd','ban','FILE','vpByb','BNbQh','JJzmr','UWhRd','EdEjn','ARK','tJhjg','3063210uUrBEY'];_0x4a1c=function(){return _0x4468cd;};return _0x4a1c();}export var PicType;(function(_0x56be8b){var _0x5ababd=_0x111f,_0x33d63b={'maLEd':_0x5ababd(0x11b),'dMJVj':_0x5ababd(0x13d)};_0x56be8b[_0x56be8b[_0x33d63b['maLEd']]=0x7d0]=_0x33d63b['maLEd'],_0x56be8b[_0x56be8b[_0x33d63b[_0x5ababd(0x12d)]]=0x3e8]=_0x33d63b[_0x5ababd(0x12d)];}(PicType||(PicType={})));export var PicSubType;(function(_0x47bccb){var _0x3a66a9=_0x111f,_0x5d78b8={'BNbQh':'normal','xYbhZ':'face'};_0x47bccb[_0x47bccb[_0x3a66a9(0x148)]=0x0]=_0x5d78b8[_0x3a66a9(0x150)],_0x47bccb[_0x47bccb[_0x5d78b8[_0x3a66a9(0x12a)]]=0x1]=_0x5d78b8[_0x3a66a9(0x12a)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x40855e){var _0x3bfe46=_0x111f,_0x2e61cf={'xrcFT':_0x3bfe46(0x120),'igiFS':_0x3bfe46(0x159)};_0x40855e[_0x40855e['notAt']=0x0]='notAt',_0x40855e[_0x40855e[_0x2e61cf['xrcFT']]=0x1]=_0x2e61cf['xrcFT'],_0x40855e[_0x40855e[_0x2e61cf['igiFS']]=0x2]=_0x2e61cf['igiFS'];}(AtType||(AtType={})));function _0x111f(_0x2c94ca,_0x295cd2){var _0x4a1c4f=_0x4a1c();return _0x111f=function(_0x111f6,_0x549a67){_0x111f6=_0x111f6-0x11a;var _0x8b9395=_0x4a1c4f[_0x111f6];return _0x8b9395;},_0x111f(_0x2c94ca,_0x295cd2);}export var ChatType;(function(_0xe08cc0){var _0x92f602=_0x111f,_0x40168c={'ITNdP':'friend','EdEjn':'group','YVMRU':'chatDevice','snnpE':_0x92f602(0x131)};_0xe08cc0[_0xe08cc0[_0x40168c[_0x92f602(0x121)]]=0x1]=_0x92f602(0x157),_0xe08cc0[_0xe08cc0[_0x40168c[_0x92f602(0x153)]]=0x2]=_0x40168c[_0x92f602(0x153)],_0xe08cc0[_0xe08cc0[_0x92f602(0x147)]=0x8]=_0x40168c[_0x92f602(0x11a)],_0xe08cc0[_0xe08cc0[_0x40168c[_0x92f602(0x13c)]]=0x64]=_0x92f602(0x131);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x359e7d(0x142);export const IMAGE_HTTP_HOST_NT=_0x359e7d(0x140);export var GrayTipElementSubType;(function(_0x2d1eba){var _0x3b9788=_0x359e7d,_0x3afe64={'dPxEq':_0x3b9788(0x13e),'UWhRd':_0x3b9788(0x139)};_0x2d1eba[_0x2d1eba['INVITE_NEW_MEMBER']=0xc]=_0x3afe64[_0x3b9788(0x11c)],_0x2d1eba[_0x2d1eba[_0x3afe64[_0x3b9788(0x152)]]=0x11]=_0x3afe64[_0x3b9788(0x152)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x5ad841){var _0x5c23db=_0x359e7d,_0x57ea7f={'Hbwpk':_0x5c23db(0x148),'hQUKS':_0x5c23db(0x133),'LOrMY':'dice'};_0x5ad841[_0x5ad841[_0x57ea7f[_0x5c23db(0x130)]]=0x1]=Line truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0x58e66b,_0x1508dc){var _0x3fa1d0=_0x4588,_0x338bd9=_0x58e66b();while(!![]){try{var _0x5adf63=parseInt(_0x3fa1d0(0x104))/0x1*(parseInt(_0x3fa1d0(0xec))/0x2)+parseInt(_0x3fa1d0(0xf7))/0x3+parseInt(_0x3fa1d0(0xfa))/0x4*(parseInt(_0x3fa1d0(0xee))/0x5)+-parseInt(_0x3fa1d0(0x10a))/0x6*(parseInt(_0x3fa1d0(0xf3))/0x7)+-parseInt(_0x3fa1d0(0xf5))/0x8+-parseInt(_0x3fa1d0(0xfd))/0x9+-parseInt(_0x3fa1d0(0xef))/0xa*(-parseInt(_0x3fa1d0(0x108))/0xb);if(_0x5adf63===_0x1508dc)break;else _0x338bd9['push'](_0x338bd9['shift']());}catch(_0x41a3a1){_0x338bd9['push'](_0x338bd9['shift']());}}}(_0x4de7,0x83659));export var GroupNotifyTypes;function _0x4588(_0x4c3d88,_0x312d56){var _0x4de7c3=_0x4de7();return _0x4588=function(_0x4588b8,_0x4a8ce4){_0x4588b8=_0x4588b8-0xec;var _0x47be03=_0x4de7c3[_0x4588b8];return _0x47be03;},_0x4588(_0x4c3d88,_0x312d56);}(function(_0x67f101){var _0x468bde=_0x4588,_0xbe098a={'Sfgnd':_0x468bde(0x102),'ZZkkf':'INVITED_JOIN','EaFRW':_0x468bde(0xff),'FjezN':_0x468bde(0xfe),'TlZNZ':_0x468bde(0xf6),'tkkke':_0x468bde(0x10b),'zNcij':'ADMIN_UNSET','SESVB':'ADMIN_UNSET_OTHER'};_0x67f101[_0x67f101[_0xbe098a[_0x468bde(0x106)]]=0x1]=_0xbe098a[_0x468bde(0x106)],_0x67f101[_0x67f101[_0xbe098a[_0x468bde(0xed)]]=0x4]=_0xbe098a[_0x468bde(0xed)],_0x67f101[_0x67f101[_0xbe098a[_0x468bde(0xfb)]]=0x7]=_0xbe098a[_0x468bde(0xfb)],_0x67f101[_0x67f101['ADMIN_SET']=0x8]=_0xbe098a[_0x468bde(0xf2)],_0x67f101[_0x67f101[_0xbe098a['TlZNZ']]=0x9]=_0xbe098a[_0x468bde(0x107)],_0x67f101[_0x67f101[_0xbe098a[_0x468bde(0xfc)]]=0xb]=_0xbe098a['tkkke'],_0x67f101[_0x67f101[_0xbe098a[_0x468bde(0x100)]]=0xc]=_0x468bde(0xf4),_0x67f101[_0x67f101[_0xbe098a[_0x468bde(0x109)]]=0xd]=_0xbe098a[_0x468bde(0x109)];}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x4de7(){var _0x9e9549=['MEMBER_EXIT','rkJwO','316622wJZxRO','ZZkkf','895OVYNuj','1610Xsuumu','rNnUI','IGNORE','FjezN','3916388TpsWlf','ADMIN_UNSET','3147480ypJAQl','KICK_MEMBER','333786pItAvA','hYQEA','REJECT','23404tNitCy','EaFRW','tkkke','9402417SHoDVU','ADMIN_SET','JOIN_REQUEST','zNcij','WAIT_HANDLE','INVITE_ME','wFcwO','1nMpnMr','reject','Sfgnd','TlZNZ','83281EaevqW','SESVB','6agvJNu'];_0x4de7=function(){return _0x9e9549;};return _0x4de7();}export var GroupNotifyStatus;(function(_0x275760){var _0xc921fb=_0x4588,_0x472158={'rkJwO':_0xc921fb(0xf1),'GjwXI':_0xc921fb(0x101),'hYQEA':'APPROVE','rNnUI':_0xc921fb(0xf9)};_0x275760[_0x275760[_0x472158['rkJwO']]=0x0]=_0x472158[_0xc921fb(0x10c)],_0x275760[_0x275760[_0x472158['GjwXI']]=0x1]=_0x472158['GjwXI'],_0x275760[_0x275760[_0x472158['hYQEA']]=0x2]=_0x472158[_0xc921fb(0xf8)],_0x275760[_0x275760[_0x472158[_0xc921fb(0xf0)]]=0x3]=_0x472158[_0xc921fb(0xf0)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x460991){var _0xf35c87=_0x4588,_0x560e6d={'wFcwO':'approve','MAGkQ':_0xf35c87(0x105)};_0x460991[_0x460991[_0x560e6d[_0xf35c87(0x103)]]=0x1]=_0x560e6d[_0xf35c87(0x103)],_0x460991[_0x460991[_0xf35c87(0x105)]=0x2]=_0x560e6d['MAGkQ'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
||||
(function(_0x11bd49,_0x4a6b55){var _0x1140aa=_0xb159,_0x5488b9=_0x11bd49();while(!![]){try{var _0x281b74=-parseInt(_0x1140aa(0xcf))/0x1*(-parseInt(_0x1140aa(0xe1))/0x2)+parseInt(_0x1140aa(0xea))/0x3*(-parseInt(_0x1140aa(0xf4))/0x4)+parseInt(_0x1140aa(0xec))/0x5+-parseInt(_0x1140aa(0xe4))/0x6+-parseInt(_0x1140aa(0xe2))/0x7+parseInt(_0x1140aa(0xdd))/0x8*(parseInt(_0x1140aa(0xeb))/0x9)+parseInt(_0x1140aa(0xd1))/0xa*(parseInt(_0x1140aa(0xd8))/0xb);if(_0x281b74===_0x4a6b55)break;else _0x5488b9['push'](_0x5488b9['shift']());}catch(_0x6300ee){_0x5488b9['push'](_0x5488b9['shift']());}}}(_0x21b9,0x291cf));export var GroupNotifyTypes;(function(_0x1213d0){var _0x1e2c99=_0xb159,_0x3c6cf9={'KBkLF':_0x1e2c99(0xdc),'ufAPI':_0x1e2c99(0xe6),'jCVFk':_0x1e2c99(0xe9),'szena':'ADMIN_SET','dqDvM':'INVITE_ME','Ecpkw':_0x1e2c99(0xd0),'dSjzj':_0x1e2c99(0xd5),'tJSjf':_0x1e2c99(0xf0)},_0x839c25='4|6|0|3|1|5|2|7'[_0x1e2c99(0xd3)]('|'),_0x55c032=0x0;while(!![]){switch(_0x839c25[_0x55c032++]){case'0':_0x1213d0[_0x1213d0['JOIN_REQUEST']=0x7]=_0x3c6cf9[_0x1e2c99(0xe0)];continue;case'1':_0x1213d0[_0x1213d0[_0x3c6cf9[_0x1e2c99(0xda)]]=0x9]=_0x3c6cf9[_0x1e2c99(0xda)];continue;case'2':_0x1213d0[_0x1213d0[_0x3c6cf9[_0x1e2c99(0xdf)]]=0xc]=_0x3c6cf9[_0x1e2c99(0xdf)];continue;case'3':_0x1213d0[_0x1213d0[_0x3c6cf9[_0x1e2c99(0xef)]]=0x8]=_0x1e2c99(0xe7);continue;case'4':_0x1213d0[_0x1213d0[_0x3c6cf9[_0x1e2c99(0xe5)]]=0x1]=_0x3c6cf9[_0x1e2c99(0xe5)];continue;case'5':_0x1213d0[_0x1213d0[_0x3c6cf9[_0x1e2c99(0xd6)]]=0xb]=_0x3c6cf9[_0x1e2c99(0xd6)];continue;case'6':_0x1213d0[_0x1213d0['INVITED_JOIN']=0x4]=_0x3c6cf9[_0x1e2c99(0xd9)];continue;case'7':_0x1213d0[_0x1213d0[_0x3c6cf9[_0x1e2c99(0xf1)]]=0xd]=_0x3c6cf9[_0x1e2c99(0xf1)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0xb159(_0x3693bf,_0xc16c38){var _0x21b991=_0x21b9();return _0xb159=function(_0xb159b1,_0x2f2f3e){_0xb159b1=_0xb159b1-0xce;var _0x2ef46a=_0x21b991[_0xb159b1];return _0x2ef46a;},_0xb159(_0x3693bf,_0xc16c38);}export var GroupNotifyStatus;(function(_0x4adee5){var _0x622076=_0xb159,_0x5efb83={'ZmiXQ':_0x622076(0xee),'rcuor':_0x622076(0xdb),'BAJDf':_0x622076(0xde),'AOCHp':_0x622076(0xe8)};_0x4adee5[_0x4adee5['IGNORE']=0x0]=_0x5efb83[_0x622076(0xf3)],_0x4adee5[_0x4adee5[_0x622076(0xdb)]=0x1]=_0x5efb83[_0x622076(0xed)],_0x4adee5[_0x4adee5[_0x5efb83[_0x622076(0xd2)]]=0x2]=_0x622076(0xde),_0x4adee5[_0x4adee5['REJECT']=0x3]=_0x5efb83[_0x622076(0xe3)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x2faf71){var _0x4896a5=_0xb159,_0xdce34a={'MPvyq':_0x4896a5(0xd7),'oOdGz':_0x4896a5(0xd4)};_0x2faf71[_0x2faf71[_0xdce34a[_0x4896a5(0xce)]]=0x1]=_0x4896a5(0xd7),_0x2faf71[_0x2faf71[_0xdce34a[_0x4896a5(0xf2)]]=0x2]=_0xdce34a[_0x4896a5(0xf2)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x21b9(){var _0x44cbcf=['1437510HLIpru','rcuor','IGNORE','szena','ADMIN_UNSET_OTHER','tJSjf','oOdGz','ZmiXQ','4yMIRuo','MPvyq','8MnJAun','MEMBER_EXIT','1281070PsMhOV','BAJDf','split','reject','INVITED_JOIN','Ecpkw','approve','11TIHNkM','dSjzj','ufAPI','WAIT_HANDLE','JOIN_REQUEST','576824pVCRPz','APPROVE','jCVFk','KBkLF','3340pPKQVs','581245EIjuhA','AOCHp','1924284fCoUKm','dqDvM','KICK_MEMBER','ADMIN_SET','REJECT','ADMIN_UNSET','219390PfjxtG','27iqVTDB'];_0x21b9=function(){return _0x44cbcf;};return _0x21b9();}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x1af837,_0x513d25){var _0x182d12=_0x4ce2,_0x35a06e=_0x1af837();while(!![]){try{var _0x5554a9=parseInt(_0x182d12(0x129))/0x1*(parseInt(_0x182d12(0x128))/0x2)+-parseInt(_0x182d12(0x11d))/0x3*(-parseInt(_0x182d12(0x12b))/0x4)+parseInt(_0x182d12(0x124))/0x5*(-parseInt(_0x182d12(0x126))/0x6)+-parseInt(_0x182d12(0x11f))/0x7*(parseInt(_0x182d12(0x11b))/0x8)+parseInt(_0x182d12(0x122))/0x9*(parseInt(_0x182d12(0x121))/0xa)+parseInt(_0x182d12(0x123))/0xb*(parseInt(_0x182d12(0x127))/0xc)+-parseInt(_0x182d12(0x11c))/0xd;if(_0x5554a9===_0x513d25)break;else _0x35a06e['push'](_0x35a06e['shift']());}catch(_0x13a3e9){_0x35a06e['push'](_0x35a06e['shift']());}}}(_0x4acb,0xa5324));function _0x4ce2(_0x54cac0,_0x92b011){var _0x4acba9=_0x4acb();return _0x4ce2=function(_0x4ce2a7,_0x56441d){_0x4ce2a7=_0x4ce2a7-0x11b;var _0x40255c=_0x4acba9[_0x4ce2a7];return _0x40255c;},_0x4ce2(_0x54cac0,_0x92b011);}export var Sex;(function(_0x116ef4){var _0x47250b=_0x4ce2,_0x3289a9={'DIQVZ':'male','SlTgL':_0x47250b(0x125),'ipDcX':_0x47250b(0x12a)};_0x116ef4[_0x116ef4[_0x3289a9[_0x47250b(0x120)]]=0x1]=_0x3289a9[_0x47250b(0x120)],_0x116ef4[_0x116ef4['female']=0x2]=_0x3289a9[_0x47250b(0x11e)],_0x116ef4[_0x116ef4[_0x3289a9[_0x47250b(0x12c)]]=0xff]=_0x47250b(0x12a);}(Sex||(Sex={})));function _0x4acb(){var _0x1ee556=['230593kaEsqb','25lwwnBc','female','471894LaXFCp','348biHRDw','2XnnvaC','960569vwItRA','unknown','40YZzxAk','ipDcX','6305336hbBBxR','20576543GqSSgg','164865OvLnqe','SlTgL','7ymZVAz','DIQVZ','13228210IsIOpS','9DyMHZD'];_0x4acb=function(){return _0x1ee556;};return _0x4acb();}
|
||||
(function(_0x3ee976,_0xa64d14){var _0xec1edf=_0x25c0,_0x2bd8fa=_0x3ee976();while(!![]){try{var _0x5705=-parseInt(_0xec1edf(0xc7))/0x1+parseInt(_0xec1edf(0xcd))/0x2+parseInt(_0xec1edf(0xce))/0x3*(-parseInt(_0xec1edf(0xc6))/0x4)+parseInt(_0xec1edf(0xc2))/0x5+-parseInt(_0xec1edf(0xcb))/0x6*(-parseInt(_0xec1edf(0xc3))/0x7)+-parseInt(_0xec1edf(0xc9))/0x8*(-parseInt(_0xec1edf(0xc5))/0x9)+-parseInt(_0xec1edf(0xcc))/0xa;if(_0x5705===_0xa64d14)break;else _0x2bd8fa['push'](_0x2bd8fa['shift']());}catch(_0x143f7d){_0x2bd8fa['push'](_0x2bd8fa['shift']());}}}(_0x2e55,0x6fb6c));export var Sex;function _0x25c0(_0x17fdd9,_0x2880bb){var _0x2e5508=_0x2e55();return _0x25c0=function(_0x25c032,_0x470880){_0x25c032=_0x25c032-0xc2;var _0x4f2ae6=_0x2e5508[_0x25c032];return _0x4f2ae6;},_0x25c0(_0x17fdd9,_0x2880bb);}function _0x2e55(){var _0x3be66c=['1260096VULntu','129HBtsVI','NFUlN','292765zAIUff','7WruVck','male','341973LBJSdT','76672ShnRlQ','127472rYNDnT','tucCh','104MsmiMj','unknown','1987314GIRmDo','1045050UDRkcl'];_0x2e55=function(){return _0x3be66c;};return _0x2e55();}(function(_0x2dd864){var _0x4790a8=_0x25c0,_0x36e2b1={'eSSAt':_0x4790a8(0xc4),'NFUlN':'female','tucCh':_0x4790a8(0xca)};_0x2dd864[_0x2dd864[_0x36e2b1['eSSAt']]=0x1]=_0x4790a8(0xc4),_0x2dd864[_0x2dd864[_0x36e2b1['NFUlN']]=0x2]=_0x36e2b1[_0x4790a8(0xcf)],_0x2dd864[_0x2dd864[_0x36e2b1[_0x4790a8(0xc8)]]=0xff]='unknown';}(Sex||(Sex={})));
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
(function(_0x413b0d,_0x896b2c){const _0x2d5716=_0x54a5,_0x287aa4=_0x413b0d();while(!![]){try{const _0x135df2=parseInt(_0x2d5716(0x49b))/0x1*(-parseInt(_0x2d5716(0x9e0))/0x2)+parseInt(_0x2d5716(0x282))/0x3+parseInt(_0x2d5716(0x781))/0x4+-parseInt(_0x2d5716(0x786))/0x5*(-parseInt(_0x2d5716(0x2b0))/0x6)+-parseInt(_0x2d5716(0x295))/0x7+parseInt(_0x2d5716(0x802))/0x8+parseInt(_0x2d5716(0x674))/0x9*(-parseInt(_0x2d5716(0x5aa))/0xa);if(_0x135df2===_0x896b2c)break;else _0x287aa4['push'](_0x287aa4['shift']());}catch(_0x208c65){_0x287aa4['push'](_0x287aa4['shift']());}}}(_0x5db7,0xb3a86));function _0x4455(){const _0x1656e9=_0x54a5,_0x74c402={'sKVvH':_0x1656e9(0x419),'SENgz':'eZlqJ','xErYr':'yYUhi','OJuyN':_0x1656e9(0xc69),'OYmWg':_0x1656e9(0xa0b),'bJpfU':_0x1656e9(0xaad),'lLLCi':'MfpZf','NPtSg':_0x1656e9(0x79e),'TxiEh':_0x1656e9(0x784),'jgUJm':_0x1656e9(0x266),'IvTKm':_0x1656e9(0x4b6),'xjWvm':_0x1656e9(0x92e),'yDAdH':_0x1656e9(0xab4),'NMGvV':'yajAw','hFDsN':_0x1656e9(0x323),'mFsac':_0x1656e9(0x414),'VJMjK':_0x1656e9(0xa73),'ipeSP':_0x1656e9(0x202),'dtLyn':_0x1656e9(0x5d0),'uKLwN':_0x1656e9(0xb0c),'VVELE':'ULlde','mEeKl':_0x1656e9(0xb77),'XrZza':'ZtzDx','hNWXm':'RLZhH','uRAOt':_0x1656e9(0x41d),'lDpMf':_0x1656e9(0x1e2),'RCELr':_0x1656e9(0x963),'Zrxci':_0x1656e9(0x6c0),'TbIbb':_0x1656e9(0x805),'uQKDB':_0x1656e9(0x8a1),'WOYIh':'lHhHZ','hOJRI':_0x1656e9(0xada),'eKqLE':_0x1656e9(0x264),'UERiU':_0x1656e9(0x639),'febpT':'Hdjzk','fVwfv':'kNOAZ','bHWML':_0x1656e9(0xbc9),'zqChE':'ycYkr','rbqax':_0x1656e9(0xaae),'PQWvo':'iQMBV','Qxyic':'OWmEl','sHIEd':_0x1656e9(0x828),'unUQh':_0x1656e9(0x2be),'ccqTH':_0x1656e9(0x49e),'nyFMX':_0x1656e9(0x557),'PyiqD':_0x1656e9(0x24f),'RndEw':_0x1656e9(0xb7a),'NGLvM':_0x1656e9(0x60a),'CTwns':'IoqVQ','RpRJj':'cCBZm','koCmW':_0x1656e9(0xb50),'HslsA':_0x1656e9(0x344),'vIZqr':_0x1656e9(0x8b4),'Qwxxc':'vYHrB','zElXd':_0x1656e9(0x5bf),'GNjlw':_0x1656e9(0x5d8),'XveqN':_0x1656e9(0x454),'ktOZX':'ehTGZ','gSySn':'Nchvv','ZDSsL':_0x1656e9(0x951),'SVNjq':'11405wNOmiJ','qgmLz':'sBuoV','KIJzI':_0x1656e9(0xaa9),'mvLow':_0x1656e9(0xc4d),'JiwBF':_0x1656e9(0x5ec),'ydgZj':_0x1656e9(0x45b),'KCOyl':_0x1656e9(0x71f),'NgmgW':'mtuUT','JYvNq':_0x1656e9(0xc72),'RhdUf':_0x1656e9(0x23f),'jTcJN':_0x1656e9(0x998),'mXGWO':_0x1656e9(0x59d),'CsFLO':_0x1656e9(0x67e),'cSZjf':_0x1656e9(0x4f6),'caQfE':'sATWZ','JoZdo':'EHaZA','OqIPD':_0x1656e9(0x8a4),'igyim':_0x1656e9(0x3da),'lSbzH':_0x1656e9(0xa81),'QgFBs':_0x1656e9(0x813),'hUGGw':_0x1656e9(0x31e),'apnkH':_0x1656e9(0x3a2),'HLdsQ':'HzXFe','ZuvmJ':_0x1656e9(0x683),'htvRl':_0x1656e9(0x593),'cQAMV':_0x1656e9(0x31b),'ULRjQ':_0x1656e9(0xbff),'eJqqg':_0x1656e9(0x241),'Aqcob':_0x1656e9(0x4bb),'rSLQc':'XMsrt','SiPiF':_0x1656e9(0x877),'NVQjF':_0x1656e9(0x5a7),'zopcp':_0x1656e9(0x627),'jyGFU':_0x1656e9(0x204),'mHSlt':_0x1656e9(0x9bd),'bikpP':_0x1656e9(0xba3),'DoRnf':_0x1656e9(0xb78),'aoEIh':_0x1656e9(0xc00),'bsjDc':'lzhZz','JTgdm':_0x1656e9(0x9f8),'DqaiK':'oprEB','NktFT':_0x1656e9(0x860),'nCzGN':'AfbAS','EPVsU':_0x1656e9(0x2dc),'hGohA':'MoeHoo','dsouA':_0x1656e9(0x6a4),'bNFRH':_0x1656e9(0x285),'VzgaJ':'MDZtC','uIwEw':_0x1656e9(0x760),'IQarJ':_0x1656e9(0x782),'YGuLv':_0x1656e9(0x6bd),'urgIB':_0x1656e9(0xb19),'zejVm':_0x1656e9(0x914),'aMxfS':_0x1656e9(0xb5a),'vaXIp':_0x1656e9(0x6c6),'aXhii':'FYFOR','DEZhl':_0x1656e9(0x5da),'bEYII':_0x1656e9(0x752),'TpTrh':'UqiIN','TfEvv':_0x1656e9(0x3f5),'BzNRL':_0x1656e9(0x349),'ewUYT':_0x1656e9(0x616),'VwxDZ':_0x1656e9(0xbc1),'GGdYD':'BUZDg','hNRKc':_0x1656e9(0x98a),'tmFUH':_0x1656e9(0x430),'dEety':'npccY','bOpPw':_0x1656e9(0x2df),'wAwGj':'ZlSDC','sLGFT':_0x1656e9(0xb79),'yZDEX':'hsjhd','sNhld':'rRFeM','XfnwF':'dAnwO','niFnt':'pYKKa','xfzue':'dDACf','eLPiT':_0x1656e9(0x88c),'Jhhrv':_0x1656e9(0x954),'qDbMq':_0x1656e9(0x95d),'ragFT':_0x1656e9(0x5b6),'wSVPN':_0x1656e9(0x262),'mRwGb':_0x1656e9(0x240),'yYvNN':_0x1656e9(0x88b),'piKyi':_0x1656e9(0x46c),'OjiMz':'ijBhA','udCMo':_0x1656e9(0x34e),'pORgr':_0x1656e9(0x431),'vOlNZ':'aDhgR','BBWuP':_0x1656e9(0x31d),'NhmDa':_0x1656e9(0x70d),'RadEC':_0x1656e9(0xa22),'XqYcA':_0x1656e9(0x774),'SKVMw':'LkpuE','SzZdY':'GGQqL','vsZVC':'avcYQ','XEgvS':_0x1656e9(0x459),'zOpOf':_0x1656e9(0x861),'OHiEw':_0x1656e9(0x9a7),'PkSfz':_0x1656e9(0x632),'YHAtE':'YIRVz','OocLZ':_0x1656e9(0x1f9),'UAhsR':_0x1656e9(0x6bb),'XjfqS':'FqQRW','YKetz':_0x1656e9(0x239),'oEhDX':_0x1656e9(0x3dc),'dbWdf':'mZOIN','DqPXD':_0x1656e9(0x64a),'UGneW':_0x1656e9(0x85b),'pZiWb':_0x1656e9(0x474),'zrtWJ':_0x1656e9(0x57b),'HUcZi':'nzYGT','jqMvM':'XvKZQ','NpnkI':_0x1656e9(0x2ee),'poOHI':_0x1656e9(0x9d0),'FOEjA':'xwRqh','ehFlB':_0x1656e9(0x432),'AnXEx':'HFmaX','AIvMh':_0x1656e9(0xa05),'ZjeHX':'sQkYA','vEpoc':_0x1656e9(0x370),'bYyBE':_0x1656e9(0x4b5),'VKvzO':'eYmmu','gpFsr':_0x1656e9(0xb2f),'bjahJ':_0x1656e9(0x5a1),'MuUDz':'oQPcw','XXTqY':_0x1656e9(0x602),'CNFGq':_0x1656e9(0xae1),'bfJQe':'9583SvfIBZ','oxaTY':_0x1656e9(0x9f7),'SNqvC':'sLYTB','KzZuL':_0x1656e9(0x7c1),'UGRzu':_0x1656e9(0x4f9),'qAazw':'urmaS','ACxIf':_0x1656e9(0x248),'aEDkl':_0x1656e9(0x7b7),'vSiFA':_0x1656e9(0Line truncated
|
||||
(function(_0xecc14b,_0x3eaadd){const _0x450571=_0x31cb,_0x46704d=_0xecc14b();while(!![]){try{const _0x2da692=-parseInt(_0x450571(0xf853))/0x1*(parseInt(_0x450571(0xf0bb))/0x2)+parseInt(_0x450571(0xdd64))/0x3+parseInt(_0x450571(0x8a6b))/0x4+parseInt(_0x450571(0x9d5c))/0x5*(parseInt(_0x450571(0x64c3))/0x6)+-parseInt(_0x450571(0xcc5d))/0x7+-parseInt(_0x450571(0x124d5))/0x8*(parseInt(_0x450571(0x7f2c))/0x9)+-parseInt(_0x450571(0xc601))/0xa*(parseInt(_0x450571(0xb33a))/0xb);if(_0x2da692===_0x3eaadd)break;else _0x46704d['push'](_0x46704d['shift']());}catch(_0x5c25b3){_0x46704d['push'](_0x46704d['shift']());}}}(_0x2854,0x51567),(function(_0x2f3480,_0x3fb59a){const _0x58a096=_0x31cb,_0x12e9a8={'cnhiJ':function(_0x1f37fd,_0x5af66e){return _0x1f37fd+_0x5af66e;},'PnoIu':function(_0x335c1d,_0x51a508){return _0x335c1d/_0x51a508;},'Kscii':function(_0x3b4d79,_0x4919fa){return _0x3b4d79(_0x4919fa);},'JWRaU':function(_0x29db1c,_0x2fd84e){return _0x29db1c(_0x2fd84e);},'XBzVb':function(_0x42ff41,_0xa2cf09){return _0x42ff41*_0xa2cf09;},'jujCR':function(_0xad690d,_0x3d33c5){return _0xad690d(_0x3d33c5);},'MbBYy':function(_0x34c31a,_0x31f30f){return _0x34c31a(_0x31f30f);},'RNvTY':function(_0x4fc1b2,_0x2477ce){return _0x4fc1b2(_0x2477ce);},'ePucJ':function(_0x5e5881,_0x82239e){return _0x5e5881/_0x82239e;},'rWacQ':function(_0x412b60,_0x3b5a4d){return _0x412b60(_0x3b5a4d);},'hKPaR':function(_0xd247c0,_0x4af46c){return _0xd247c0(_0x4af46c);},'fHvHb':function(_0x2296ba,_0xff4cc){return _0x2296ba(_0xff4cc);},'tWwUo':function(_0x5d7068,_0x4d5129){return _0x5d7068(_0x4d5129);},'ZBkXK':function(_0x35f30b,_0x4096fe){return _0x35f30b===_0x4096fe;},'UsQXy':_0x58a096(0xca69),'DpVIi':_0x58a096(0x58bc)},_0x106fb8=_0x3685,_0x53c231=_0x2f3480();while(!![]){try{const _0x3c6447=_0x12e9a8[_0x58a096(0x3aca)](_0x12e9a8[_0x58a096(0x3aca)](_0x12e9a8[_0x58a096(0x3aca)](_0x12e9a8[_0x58a096(0x4cdd)](-_0x12e9a8[_0x58a096(0xddff)](parseInt,_0x12e9a8['JWRaU'](_0x106fb8,0x2fc3)),0x1),_0x12e9a8[_0x58a096(0x104d1)](-_0x12e9a8[_0x58a096(0xddff)](parseInt,_0x12e9a8['JWRaU'](_0x106fb8,0x34b5))/0x2,_0x12e9a8[_0x58a096(0x4cdd)](-_0x12e9a8[_0x58a096(0xddff)](parseInt,_0x106fb8(0x4135)),0x3)))+_0x12e9a8[_0x58a096(0x4cdd)](-parseInt(_0x12e9a8['jujCR'](_0x106fb8,0x35f0)),0x4)+_0x12e9a8[_0x58a096(0x4cdd)](-_0x12e9a8[_0x58a096(0x2883)](parseInt,_0x12e9a8['RNvTY'](_0x106fb8,0x5e4)),0x5),_0x12e9a8[_0x58a096(0x104d1)](_0x12e9a8['ePucJ'](-parseInt(_0x12e9a8[_0x58a096(0x8e08)](_0x106fb8,0x2aa6)),0x6),-parseInt(_0x12e9a8[_0x58a096(0xe9da)](_0x106fb8,0x5d68))/0x7)),_0x12e9a8['ePucJ'](-_0x12e9a8[_0x58a096(0x53f)](parseInt,_0x106fb8(0x2ab4)),0x8))+_0x12e9a8[_0x58a096(0x104d1)](_0x12e9a8[_0x58a096(0x53f)](parseInt,_0x12e9a8[_0x58a096(0x7160)](_0x106fb8,0x178c))/0x9,_0x12e9a8[_0x58a096(0x4cdd)](_0x12e9a8[_0x58a096(0x3b92)](parseInt,_0x12e9a8[_0x58a096(0x3b92)](_0x106fb8,0x5425)),0xa));if(_0x12e9a8['ZBkXK'](_0x3c6447,_0x3fb59a))break;else _0x53c231['push'](_0x53c231[_0x12e9a8[_0x58a096(0x1900)]]());}catch(_0x1b20d3){_0x53c231[_0x12e9a8['DpVIi']](_0x53c231[_0x12e9a8[_0x58a096(0x1900)]]());}}}(_0x221b,0x5ab78),(function(_0x3f4964,_0x2a5e07){const _0x272551=_0x31cb,_0x54942d={'fIewB':function(_0x3f10e9){return _0x3f10e9();},'cRzao':function(_0x83ebf3,_0x45e63c){return _0x83ebf3+_0x45e63c;},'dNuaN':function(_0x4e9e17,_0x5ebe2c){return _0x4e9e17(_0x5ebe2c);},'IqPWT':function(_0x101ab3,_0x1d5fe6){return _0x101ab3/_0x1d5fe6;},'NsaRb':function(_0x357af9,_0x389866){return _0x357af9*_0x389866;},'NAHGp':function(_0x22ad8a,_0x2f61c6){return _0x22ad8a===_0x2f61c6;},'jGHDO':_0x272551(0x58bc),'nQXFK':_0x272551(0xca69),'XDtAK':function(_0x429657,_0x5ec6c5){return _0x429657(_0x5ec6c5);},'bDADF':function(_0xa331e5,_0xd543b3){return _0xa331e5(_0xd543b3);},'ouGSv':function(_0x3f803c,_0x4d8a3f){return _0x3f803c(_0x4d8a3f);},'yDGFc':function(_0x17d559,_0x4770d5){return _0x17d559/_0x4770d5;},'UlSEW':_0x272551(0xe959),'uIDIs':function(_0x562179,_0x1f4c4f){return _0x562179(_0x1f4c4f);},'MTYnx':function(_0x3c297c,_0x768e29){return _0x3c297c(_0x768e29);},'pqnhE':'RNBBn','qoxNS':function(_0x384c0b,_0x13fcd0){return _0x384c0b(_0x13fcd0);},'dBpiV':function(_0x36929b,_0x16a4f9){return _0x36929b(_0x16a4f9);},'wfpfp':function(_0x273dd5,_0x494379){return _0x273dd5(_0x494379);},'XFxnQ':function(_0x3ff21e,_0x50fa3b){return _0x3ff21e(_0x50fa3b);},'SHetw':'PQeDS','UHOOG':function(_0x388737,_0x4b3fb5){return _0x388737(_0x4b3fb5);},'pkHXk':function(_0x1f9ead,_0x3f26c5){return _0x1f9ead(_0x3f26c5);},'VbIaw':function(_0x39be6e,_0x509397){return _0x39be6e(_0x509397);},'sMOsR':function(_0xdc0321,_0x2cf6a0){return _0xdc0321(_0x2cf6a0);},'kmPxr':function(_0x3c6c5a,_0x2d0054){return _0x3c6c5a(_0x2d0054);}},_0x8508f7=_0x3685,_0xea5aa7={'aWimB':function(_0x36f5e7){const _0x51e0ba=_0x272551;return _0x54942d[_0x51e0ba(0xa081)](_0x36f5e7);},'HWMxo':function(_0xb95006,_0x215c7c){return _0xb95006+_0x215c7c;},'jlBap':function(_0x1ea0c8,_0x417a30){return _0x54942d['cRzao'](_0x1ea0c8,_0x417a30);},'OlAja':function(_0x267541,_0x34dc63){returLine truncated
|
||||
@@ -1 +1 @@
|
||||
(function(_0xf5230e,_0x1a711f){var _0x45c08e=_0x1d9a,_0x1a0770=_0xf5230e();while(!![]){try{var _0x146447=parseInt(_0x45c08e(0xdc))/0x1*(-parseInt(_0x45c08e(0xdf))/0x2)+-parseInt(_0x45c08e(0xe4))/0x3+-parseInt(_0x45c08e(0xe2))/0x4*(parseInt(_0x45c08e(0xe5))/0x5)+-parseInt(_0x45c08e(0xde))/0x6+-parseInt(_0x45c08e(0xe1))/0x7+parseInt(_0x45c08e(0xdd))/0x8*(-parseInt(_0x45c08e(0xe3))/0x9)+parseInt(_0x45c08e(0xe0))/0xa;if(_0x146447===_0x1a711f)break;else _0x1a0770['push'](_0x1a0770['shift']());}catch(_0x1bb271){_0x1a0770['push'](_0x1a0770['shift']());}}}(_0x34a8,0x7ee7e));import _0x20f3c3 from'./wrapper';function _0x34a8(){var _0x3b4880=['65784WPvert','2394696FyKgrm','343444NdbUYO','26602630oRZgUX','355831ThnHGD','4yCmbGT','621wmawQP','1244484MBgsnO','1824245ZqUqfN','2aXgicK'];_0x34a8=function(){return _0x3b4880;};return _0x34a8();}export*from'./adapters';export*from'./apis';export*from'./entities';function _0x1d9a(_0x536804,_0x4f9c9a){var _0x34a86e=_0x34a8();return _0x1d9a=function(_0x1d9a67,_0x4d0c36){_0x1d9a67=_0x1d9a67-0xdc;var _0x4f64b3=_0x34a86e[_0x1d9a67];return _0x4f64b3;},_0x1d9a(_0x536804,_0x4f9c9a);}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{_0x20f3c3 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
(function(_0x37e38c,_0x46b592){var _0x1ad48d=_0x1fc3,_0x3b8733=_0x37e38c();while(!![]){try{var _0x7c7bc0=parseInt(_0x1ad48d(0x1a9))/0x1*(parseInt(_0x1ad48d(0x1a4))/0x2)+-parseInt(_0x1ad48d(0x1a1))/0x3*(parseInt(_0x1ad48d(0x1a6))/0x4)+parseInt(_0x1ad48d(0x1a8))/0x5+-parseInt(_0x1ad48d(0x1a5))/0x6+parseInt(_0x1ad48d(0x1a7))/0x7*(parseInt(_0x1ad48d(0x1a2))/0x8)+parseInt(_0x1ad48d(0x1aa))/0x9*(-parseInt(_0x1ad48d(0x1a0))/0xa)+parseInt(_0x1ad48d(0x1a3))/0xb;if(_0x7c7bc0===_0x46b592)break;else _0x3b8733['push'](_0x3b8733['shift']());}catch(_0x237e37){_0x3b8733['push'](_0x3b8733['shift']());}}}(_0x26db,0x26046));import _0x1f10ff from'./wrapper';export*from'./adapters';function _0x1fc3(_0x516520,_0x465eaa){var _0x26db91=_0x26db();return _0x1fc3=function(_0x1fc324,_0xfeb36d){_0x1fc324=_0x1fc324-0x1a0;var _0x2fc4db=_0x26db91[_0x1fc324];return _0x2fc4db;},_0x1fc3(_0x516520,_0x465eaa);}function _0x26db(){var _0x21f0d7=['45ZpGKQN','466510yoNTNh','9GNsqeC','64PjrFGv','4209821sygikX','6AkkaNJ','1841946OcaNvT','192036YXZJBv','153643jhwZcT','1007925jClIza','26701CaIPmu'];_0x26db=function(){return _0x21f0d7;};return _0x26db();}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{_0x1f10ff as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
@@ -1 +1 @@
|
||||
var _0x146546=_0x5bad;function _0x10f8(){var _0x5511b5=['onCheckBuddySettingResult','8276fZQTGm','onBuddyListChange','onDelBatchBuddyInfos','3324216RsNvkt','onBlockChanged','onBuddyInfoChange','314wcqwxk','12SsIuWy','onAvatarUrlUpdated','onSmartInfos','3207465MLShpe','1364136EwwdBZ','onDoubtBuddyReqUnreadNumChange','onBuddyReqChange','112323hJmuEQ','onBuddyRemarkUpdated','onDoubtBuddyReqChange','551432iOlOQu','onBuddyDetailInfoChange','onAddBuddyNeedVerify','8258730yaxGQB','onSpacePermissionInfos','onAddMeSettingChanged'];_0x10f8=function(){return _0x5511b5;};return _0x10f8();}function _0x5bad(_0x116ec8,_0x29d7da){var _0x10f88b=_0x10f8();return _0x5bad=function(_0x5badc4,_0x191a50){_0x5badc4=_0x5badc4-0x94;var _0x334eb0=_0x10f88b[_0x5badc4];return _0x334eb0;},_0x5bad(_0x116ec8,_0x29d7da);}(function(_0x55112b,_0x467ec9){var _0x346d44=_0x5bad,_0x3fba42=_0x55112b();while(!![]){try{var _0x406063=parseInt(_0x346d44(0xa5))/0x1*(-parseInt(_0x346d44(0xab))/0x2)+-parseInt(_0x346d44(0x9b))/0x3*(-parseInt(_0x346d44(0x94))/0x4)+parseInt(_0x346d44(0xa1))/0x5+parseInt(_0x346d44(0x98))/0x6+parseInt(_0x346d44(0x9e))/0x7+parseInt(_0x346d44(0xa8))/0x8+-parseInt(_0x346d44(0x97))/0x9;if(_0x406063===_0x467ec9)break;else _0x3fba42['push'](_0x3fba42['shift']());}catch(_0x175d4b){_0x3fba42['push'](_0x3fba42['shift']());}}}(_0x10f8,0xcaa3b));export class BuddyListener{[_0x146546(0xa0)](_0x35c4ef){}[_0x146546(0xa3)](_0x269d81){}[_0x146546(0x95)](_0x59f3bc){}[_0x146546(0xa9)](_0x5018f1){}[_0x146546(0x9f)](_0x580806){}[_0x146546(0xaa)](_0xe05173){}[_0x146546(0xa6)](_0x9f817d){}[_0x146546(0x9c)](_0x31931e){}[_0x146546(0x9a)](_0x37fbc4){}['onBuddyReqUnreadCntChange'](_0x491580){}[_0x146546(0xa4)](_0x539f7c){}[_0x146546(0xa7)](_0x33764e){}[_0x146546(0x9d)](_0x44eca8){}[_0x146546(0x99)](_0x42b075){}['onNickUpdated'](_0x3087c0){}[_0x146546(0x96)](_0x56acf0){}[_0x146546(0xa2)](_0x64ef1b){}}
|
||||
var _0x292e66=_0x408c;(function(_0x5d01e5,_0x5b3407){var _0x5d9314=_0x408c,_0x5cbe11=_0x5d01e5();while(!![]){try{var _0x20fbf4=-parseInt(_0x5d9314(0x16b))/0x1+parseInt(_0x5d9314(0x158))/0x2+-parseInt(_0x5d9314(0x15d))/0x3+parseInt(_0x5d9314(0x161))/0x4+-parseInt(_0x5d9314(0x155))/0x5*(parseInt(_0x5d9314(0x167))/0x6)+parseInt(_0x5d9314(0x162))/0x7*(-parseInt(_0x5d9314(0x16a))/0x8)+parseInt(_0x5d9314(0x168))/0x9;if(_0x20fbf4===_0x5b3407)break;else _0x5cbe11['push'](_0x5cbe11['shift']());}catch(_0x44361e){_0x5cbe11['push'](_0x5cbe11['shift']());}}}(_0x9247,0x6796b));export class BuddyListener{[_0x292e66(0x157)](_0x410666){}['onAddMeSettingChanged'](_0x1ee735){}[_0x292e66(0x159)](_0x41a79d){}[_0x292e66(0x15e)](_0x4da590){}[_0x292e66(0x15c)](_0x5e88a5){}['onBuddyInfoChange'](_0x63ad24){}[_0x292e66(0x15a)](_0x1f487d){}[_0x292e66(0x165)](_0x1ade44){}['onBuddyReqChange'](_0x3da30d){}[_0x292e66(0x163)](_0x3ff216){}[_0x292e66(0x160)](_0x424323){}[_0x292e66(0x164)](_0x3640c1){}[_0x292e66(0x169)](_0x435444){}[_0x292e66(0x156)](_0x47c732){}[_0x292e66(0x15b)](_0x840f06){}[_0x292e66(0x15f)](_0x33e96d){}[_0x292e66(0x166)](_0x1f9127){}}function _0x408c(_0x2b4739,_0x21388f){var _0x92478b=_0x9247();return _0x408c=function(_0x408c30,_0x2a8add){_0x408c30=_0x408c30-0x155;var _0x451a53=_0x92478b[_0x408c30];return _0x451a53;},_0x408c(_0x2b4739,_0x21388f);}function _0x9247(){var _0x4d2755=['754527KgATFb','95dbDbOu','onDoubtBuddyReqUnreadNumChange','onAddBuddyNeedVerify','1663772CIeVOt','onAvatarUrlUpdated','onBuddyListChange','onNickUpdated','onBuddyDetailInfoChange','738636qYwbLb','onBlockChanged','onSmartInfos','onCheckBuddySettingResult','1362460vDnpGk','7kAhBlU','onBuddyReqUnreadCntChange','onDelBatchBuddyInfos','onBuddyRemarkUpdated','onSpacePermissionInfos','38478XIaISJ','5825007QVYHPs','onDoubtBuddyReqChange','2182712ELxQsd'];_0x9247=function(){return _0x4d2755;};return _0x9247();}
|
||||
@@ -1 +1 @@
|
||||
var _0x24d655=_0x3301;(function(_0x298f77,_0x1d37d9){var _0x4fc2c4=_0x3301,_0x4c0720=_0x298f77();while(!![]){try{var _0x75f244=-parseInt(_0x4fc2c4(0xc8))/0x1*(parseInt(_0x4fc2c4(0xc7))/0x2)+parseInt(_0x4fc2c4(0xbf))/0x3+parseInt(_0x4fc2c4(0xc2))/0x4+-parseInt(_0x4fc2c4(0xc3))/0x5+-parseInt(_0x4fc2c4(0xbd))/0x6*(parseInt(_0x4fc2c4(0xc6))/0x7)+-parseInt(_0x4fc2c4(0xbc))/0x8+parseInt(_0x4fc2c4(0xc5))/0x9;if(_0x75f244===_0x1d37d9)break;else _0x4c0720['push'](_0x4c0720['shift']());}catch(_0xd26862){_0x4c0720['push'](_0x4c0720['shift']());}}}(_0x4fbb,0x74633));function _0x3301(_0x245044,_0x1ca2eb){var _0x4fbb68=_0x4fbb();return _0x3301=function(_0x330157,_0x1ba926){_0x330157=_0x330157-0xbc;var _0x20fb9c=_0x4fbb68[_0x330157];return _0x20fb9c;},_0x3301(_0x245044,_0x1ca2eb);}function _0x4fbb(){var _0x830a34=['onFileListChanged','4457286HmCmzj','626332OUOIxk','2PMpJBo','425959OZfBWr','841320NIuglW','6fXYuuy','onSessionListChanged','2236377AVCynJ','onFileStatusChanged','onSessionChanged','1049380hnLIzg','2028675ueNXuT'];_0x4fbb=function(){return _0x830a34;};return _0x4fbb();}export class KernelFileAssistantListener{[_0x24d655(0xc0)](..._0x37af7a){}[_0x24d655(0xbe)](..._0x7a3bef){}[_0x24d655(0xc1)](..._0x5dc330){}[_0x24d655(0xc4)](..._0x37d639){}['onFileSearch'](..._0x44ef18){}}
|
||||
var _0x1adcbf=_0x1b9b;(function(_0xca21c7,_0x160d92){var _0x19ced5=_0x1b9b,_0x9aa90a=_0xca21c7();while(!![]){try{var _0x1d5774=-parseInt(_0x19ced5(0x175))/0x1*(parseInt(_0x19ced5(0x17e))/0x2)+parseInt(_0x19ced5(0x178))/0x3*(parseInt(_0x19ced5(0x177))/0x4)+parseInt(_0x19ced5(0x17b))/0x5+parseInt(_0x19ced5(0x17f))/0x6*(parseInt(_0x19ced5(0x180))/0x7)+parseInt(_0x19ced5(0x176))/0x8+parseInt(_0x19ced5(0x179))/0x9+-parseInt(_0x19ced5(0x181))/0xa*(parseInt(_0x19ced5(0x17c))/0xb);if(_0x1d5774===_0x160d92)break;else _0x9aa90a['push'](_0x9aa90a['shift']());}catch(_0x47b6d9){_0x9aa90a['push'](_0x9aa90a['shift']());}}}(_0xe79e,0x933c4));function _0xe79e(){var _0x3e245d=['6139152QawvHJ','8516wmUcin','1287mBugaw','10121778FinZwJ','onSessionListChanged','1788210TLwlms','19420753DBHaDu','onFileSearch','2042442OcBbVA','1360806qxjsRO','7HHPthi','10UDEYho','1siONvR'];_0xe79e=function(){return _0x3e245d;};return _0xe79e();}function _0x1b9b(_0x11c4ac,_0x107115){var _0xe79e5f=_0xe79e();return _0x1b9b=function(_0x1b9b32,_0xb2be5a){_0x1b9b32=_0x1b9b32-0x175;var _0x445aab=_0xe79e5f[_0x1b9b32];return _0x445aab;},_0x1b9b(_0x11c4ac,_0x107115);}export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x49cc07){}[_0x1adcbf(0x17a)](..._0x2f732c){}['onSessionChanged'](..._0x50aa79){}['onFileListChanged'](..._0x261e02){}[_0x1adcbf(0x17d)](..._0x2a3c4e){}}
|
||||
@@ -1 +1 @@
|
||||
function _0x565a(){var _0x107f2f=['onGroupNotifiesUpdated','onGroupsMsgMaskResult','onShutUpMemberListChanged:','onMemberListChange:','onGetGroupBulletinListResult:','onGroupBulletinRichMediaDownloadComplete:','81385GvJZbs','onGroupBulletinChange:','HVbYQ','tkAQu','7rwnYYl','onGroupBulletinRichMediaDownloadComplete','onGroupListUpdate:','213354stmYas','onGroupBulletinRichMediaProgressUpdate:','onGroupSingleScreenNotifies:','gpKhm','onGroupNotifiesUnreadCountUpdated:','RQAfB','onGroupBulletinChange','riQBt','onGroupBulletinRichMediaProgressUpdate','onGroupAllInfoChange:','onGroupMemberLevelInfoChange','694941XLYMbB','onJoinGroupNotify','onGroupBulletinRemindNotify','OlfzS','onMemberInfoChange:','1477434jpDHSc','mwcmh','onGroupBulletinRemindNotify:','onGroupExtListUpdate','onGroupNotifiesUpdated:','184DQkBFo','onGroupFirstBulletinNotify','onGroupsMsgMaskResult:','onGroupArkInviteStateResult','lAsRp','onMemberInfoChange','onGroupDetailInfoChange','onGroupStatisticInfoChange','onGroupSingleScreenNotifies','onJoinGroupNoVerifyFlag','onOTY','onGroupMemberLevelInfoChange:','onJoinGroupNotify:','onGroupDetailInfoChange:','onGroupAllInfoChange','2943640cDXVcZ','270dILNGw','eTmPH','onGroupStatisticInfoChange:','onGroupListUpdate','onGroupExtListUpdate:','IbZkF','onGroupConfMemberChange','iFVaq','onGroupFirstBulletinNotify:','onShutUpMemberListChanged','onGroupNotifiesUnreadCountUpdated','903280MBIYJI','log','201582GOPvDd','onSearchMemberChange:','onGetGroupBulletinListResult','onMemberListChange','fGoEf','mMFpw','onSearchMemberChange'];_0x565a=function(){return _0x107f2f;};return _0x565a();}function _0x3abd(_0x407c04,_0x265482){var _0x565a56=_0x565a();return _0x3abd=function(_0x3abd17,_0x34a2c2){_0x3abd17=_0x3abd17-0x137;var _0x2e6fa8=_0x565a56[_0x3abd17];return _0x2e6fa8;},_0x3abd(_0x407c04,_0x265482);}var _0x4325f5=_0x3abd;(function(_0x59a7f2,_0x3b9e66){var _0x50129a=_0x3abd,_0x1a7abc=_0x59a7f2();while(!![]){try{var _0x1cd692=parseInt(_0x50129a(0x17b))/0x1+parseInt(_0x50129a(0x15a))/0x2+parseInt(_0x50129a(0x15c))/0x3+parseInt(_0x50129a(0x13f))/0x4*(-parseInt(_0x50129a(0x169))/0x5)+parseInt(_0x50129a(0x13a))/0x6+-parseInt(_0x50129a(0x16d))/0x7*(parseInt(_0x50129a(0x14e))/0x8)+parseInt(_0x50129a(0x170))/0x9*(parseInt(_0x50129a(0x14f))/0xa);if(_0x1cd692===_0x3b9e66)break;else _0x1a7abc['push'](_0x1a7abc['shift']());}catch(_0x46f2cf){_0x1a7abc['push'](_0x1a7abc['shift']());}}}(_0x565a,0xf0153));export class GroupListener{[_0x4325f5(0x17a)](..._0x472b19){}[_0x4325f5(0x15e)](..._0x42c0a3){}['onGroupAllInfoChange'](..._0x21f35f){}[_0x4325f5(0x176)](..._0xe311f7){}['onGroupBulletinRemindNotify'](..._0x169b05){}[_0x4325f5(0x142)](..._0x28a382){}[_0x4325f5(0x16e)](..._0x24cc47){}[_0x4325f5(0x155)](..._0x18b230){}[_0x4325f5(0x145)](..._0x3828b3){}[_0x4325f5(0x13d)](..._0x5a7378){}[_0x4325f5(0x140)](..._0x53062d){}[_0x4325f5(0x152)](_0x1c54ae,_0x49dce3){}[_0x4325f5(0x163)](_0x519cc2,_0x3803fe){}[_0x4325f5(0x178)](..._0x192bbc){}['onGroupNotifiesUnreadCountUpdated'](..._0x427211){}['onGroupSingleScreenNotifies'](_0x502f81,_0x18d294,_0x23a273){}[_0x4325f5(0x164)](..._0x304ea5){}['onGroupStatisticInfoChange'](..._0x980ba8){}['onJoinGroupNotify'](..._0x41a81f){}[_0x4325f5(0x148)](..._0x9e3301){}[_0x4325f5(0x144)](_0x190e77,_0x50cb94,_0x178509){}[_0x4325f5(0x15f)](_0x4ac768){}[_0x4325f5(0x162)](..._0x25e985){}['onShutUpMemberListChanged'](..._0x7cf600){}}export class DebugGroupListener{[_0x4325f5(0x17a)](..._0xbcf44c){var _0x17f49d=_0x4325f5,_0x3ea221={'Kggyk':_0x17f49d(0x14a)};console[_0x17f49d(0x15b)](_0x3ea221['Kggyk'],..._0xbcf44c);}[_0x4325f5(0x15e)](..._0xaa53f2){var _0x5b7b3d=_0x4325f5;console[_0x5b7b3d(0x15b)](_0x5b7b3d(0x167),..._0xaa53f2);}[_0x4325f5(0x14d)](..._0x15e832){var _0x41d1b4=_0x4325f5,_0x46931c={'CVAPg':_0x41d1b4(0x179)};console[_0x41d1b4(0x15b)](_0x46931c['CVAPg'],..._0x15e832);}[_0x4325f5(0x176)](..._0x5ebb4a){var _0x3cefb5=_0x4325f5;console[_0x3cefb5(0x15b)](_0x3cefb5(0x16a),..._0x5ebb4a);}[_0x4325f5(0x137)](..._0x4525a2){var _0x3a123b=_0x4325f5,_0x3e4487={'tkAQu':_0x3a123b(0x13c)};console[_0x3a123b(0x15b)](_0x3e4487[_0x3a123b(0x16c)],..._0x4525a2);}[_0x4325f5(0x142)](..._0x343082){var _0x350df9=_0x4325f5,_0x56ad41={'fGoEf':'onGroupArkInviteStateResult:'};console[_0x350df9(0x15b)](_0x56ad41[_0x350df9(0x160)],..._0x343082);}[_0x4325f5(0x16e)](..._0x1dd13f){var _0xfd13c6=_0x4325f5,_0x2cc52c={'riQBt':_0xfd13c6(0x168)};console['log'](_0x2cc52c[_0xfd13c6(0x177)],..._0x1dd13f);}[_0x4325f5(0x155)](..._0x5f00a2){var _0x1f7a29=_0x4325f5,_0x389271={'iFVaq':'onGroupConfMemberChange:'};console[_0x1f7a29(0x15b)](_0x389271[_0x1f7a29(0x156)],..._0x5f00a2);}[_0x4325f5(0x145)](..._0x40ac10){var _0x5a1785=_0x4325f5;console['log'](_0x5a1785(0x14c),..._0x40ac10);}[_0x4325f5(0x13d)](..._0x95a6f9){var _0x3ea6cd=_0x4325f5,_0xe2c50a={'lAsRp':_0x3ea6cd(0x153)};console[_0x3ea6cd(0x15b)](_0xe2c50a[_0x3ea6cd(0x143)],..._0x95a6f9);}[_0x4325f5(0x140)](..._0x72ff4f){var _0x530c3e=_0x4325f5,_0x3ddd07={'gpKhm':_0x530c3e(0x157)};console[_0xLine truncated
|
||||
var _0x45c6fd=_0x4afb;function _0x4afb(_0x128d80,_0x536c80){var _0x6e12e9=_0x6e12();return _0x4afb=function(_0x4afbb8,_0x1b8dba){_0x4afbb8=_0x4afbb8-0x19b;var _0x4eb82f=_0x6e12e9[_0x4afbb8];return _0x4eb82f;},_0x4afb(_0x128d80,_0x536c80);}(function(_0x4ebaf9,_0x5da66f){var _0x391e1c=_0x4afb,_0x2ba5ab=_0x4ebaf9();while(!![]){try{var _0x588696=-parseInt(_0x391e1c(0x19c))/0x1*(-parseInt(_0x391e1c(0x1aa))/0x2)+parseInt(_0x391e1c(0x19d))/0x3+-parseInt(_0x391e1c(0x1a6))/0x4+parseInt(_0x391e1c(0x1c6))/0x5+parseInt(_0x391e1c(0x1bf))/0x6*(parseInt(_0x391e1c(0x1b8))/0x7)+parseInt(_0x391e1c(0x1ca))/0x8+parseInt(_0x391e1c(0x1b0))/0x9*(-parseInt(_0x391e1c(0x1ac))/0xa);if(_0x588696===_0x5da66f)break;else _0x2ba5ab['push'](_0x2ba5ab['shift']());}catch(_0x317fba){_0x2ba5ab['push'](_0x2ba5ab['shift']());}}}(_0x6e12,0x4c78a));function _0x6e12(){var _0x8c6c5e=['onShutUpMemberListChanged','24wSzRje','onGroupBulletinRichMediaDownloadComplete','venrb','onGroupStatisticInfoChange','onGroupExtListUpdate:','pHhwj','onGroupArkInviteStateResult','907035KODyda','onJoinGroupNotify:','onGroupNotifiesUpdated:','onGroupConfMemberChange:','90176zDrcve','onGroupListUpdate:','onGetGroupBulletinListResult','onMemberInfoChange','log','jahJE','uReCS','onGroupNotifiesUnreadCountUpdated','zfmRu','onMemberInfoChange:','onGroupSingleScreenNotifies:','onGroupListUpdate','onShutUpMemberListChanged:','onSearchMemberChange','1FgRLhO','1659246uJaKfG','MzyMe','onGroupFirstBulletinNotify:','onGroupBulletinChange','onGroupAllInfoChange','onGroupDetailInfoChange','onGroupExtListUpdate','onGroupSingleScreenNotifies','onGroupMemberLevelInfoChange:','908012Hwhukl','onGroupAllInfoChange:','izUOa','onSearchMemberChange:','932732sxOaiR','onMemberListChange:','285980WSRvvS','onGroupArkInviteStateResult:','onGroupBulletinChange:','onMemberListChange','261oszkzb','wwAVH','onGroupNotifiesUpdated','onGroupBulletinRemindNotify','KvSAK','onGroupMemberLevelInfoChange','onGroupBulletinRichMediaDownloadComplete:','onGroupFirstBulletinNotify','275527hIaomB','onGroupStatisticInfoChange:','onGroupConfMemberChange','onJoinGroupNotify','onGroupBulletinRichMediaProgressUpdate','onJoinGroupNoVerifyFlag:'];_0x6e12=function(){return _0x8c6c5e;};return _0x6e12();}export class GroupListener{[_0x45c6fd(0x1b5)](..._0x326153){}[_0x45c6fd(0x1cc)](..._0x5205c1){}['onGroupAllInfoChange'](..._0x11d0d2){}[_0x45c6fd(0x1a0)](..._0x2b1f9b){}[_0x45c6fd(0x1b3)](..._0x14dad5){}[_0x45c6fd(0x1c5)](..._0x4c2c2e){}[_0x45c6fd(0x1c0)](..._0x555b74){}[_0x45c6fd(0x1ba)](..._0x20118d){}[_0x45c6fd(0x1a2)](..._0x2bc25a){}[_0x45c6fd(0x1a3)](..._0x1b518b){}[_0x45c6fd(0x1b7)](..._0x8af8c3){}[_0x45c6fd(0x1d5)](_0x5cffbc,_0x94dc02){}['onGroupNotifiesUpdated'](_0x364917,_0x3591dd){}['onGroupBulletinRichMediaProgressUpdate'](..._0x47e949){}[_0x45c6fd(0x1d1)](..._0xddcf97){}[_0x45c6fd(0x1a4)](_0x43deae,_0x44ccc4,_0x20bae1){}['onGroupsMsgMaskResult'](..._0x2cb6f1){}[_0x45c6fd(0x1c2)](..._0x570f0a){}['onJoinGroupNotify'](..._0x4b1467){}['onJoinGroupNoVerifyFlag'](..._0x520e9e){}['onMemberInfoChange'](_0x2c9291,_0x3701b2,_0x583871){}[_0x45c6fd(0x1af)](_0x508f25){}[_0x45c6fd(0x19b)](..._0x2dcc0d){}[_0x45c6fd(0x1be)](..._0x3484c2){}}export class DebugGroupListener{['onGroupMemberLevelInfoChange'](..._0x5cf702){var _0x55a16e=_0x45c6fd,_0x3948d8={'jahJE':_0x55a16e(0x1a5)};console['log'](_0x3948d8[_0x55a16e(0x1cf)],..._0x5cf702);}[_0x45c6fd(0x1cc)](..._0x271576){var _0x26f41d=_0x45c6fd;console[_0x26f41d(0x1ce)]('onGetGroupBulletinListResult:',..._0x271576);}[_0x45c6fd(0x1a1)](..._0x198db6){var _0xb2ec1c=_0x45c6fd,_0x1dbd6f={'pHhwj':_0xb2ec1c(0x1a7)};console[_0xb2ec1c(0x1ce)](_0x1dbd6f[_0xb2ec1c(0x1c4)],..._0x198db6);}[_0x45c6fd(0x1a0)](..._0x4cacbf){var _0x567b08=_0x45c6fd,_0x186dda={'MzyMe':_0x567b08(0x1ae)};console['log'](_0x186dda[_0x567b08(0x19e)],..._0x4cacbf);}[_0x45c6fd(0x1b3)](..._0x41e52c){var _0xb64e69=_0x45c6fd,_0x154c1c={'KvSAK':'onGroupBulletinRemindNotify:'};console[_0xb64e69(0x1ce)](_0x154c1c[_0xb64e69(0x1b4)],..._0x41e52c);}[_0x45c6fd(0x1c5)](..._0x16ab83){var _0x533e00=_0x45c6fd,_0x1e17d3={'uReCS':_0x533e00(0x1ad)};console['log'](_0x1e17d3[_0x533e00(0x1d0)],..._0x16ab83);}['onGroupBulletinRichMediaDownloadComplete'](..._0x436127){var _0x43ee10=_0x45c6fd,_0x4f6b64={'BpTLB':_0x43ee10(0x1b6)};console[_0x43ee10(0x1ce)](_0x4f6b64['BpTLB'],..._0x436127);}['onGroupConfMemberChange'](..._0x12c2ff){var _0x370acb=_0x45c6fd;console[_0x370acb(0x1ce)](_0x370acb(0x1c9),..._0x12c2ff);}[_0x45c6fd(0x1a2)](..._0x2fc3cc){var _0x53878b=_0x45c6fd;console[_0x53878b(0x1ce)]('onGroupDetailInfoChange:',..._0x2fc3cc);}['onGroupExtListUpdate'](..._0x51ad2c){var _0x20e283=_0x45c6fd;console[_0x20e283(0x1ce)](_0x20e283(0x1c3),..._0x51ad2c);}['onGroupFirstBulletinNotify'](..._0x122bfd){var _0x122775=_0x45c6fd,_0x596d68={'wwAVH':_0x122775(0x19f)};console[_0x122775(0x1ce)](_0x596d68[_0x122775(0x1b1)],..._0x122bfd);}[_0x45c6fd(0x1d5)](..._0x472d75){var _0x283dfb=_0x45c6fd;console[_0x283dfb(0x1ce)](_0x283dfb(0x1cb),..._0x472d75);}[_0x45c6fdLine truncated
|
||||
@@ -1 +1 @@
|
||||
var _0x5773a6=_0x27a8;function _0x27a8(_0x2c36f3,_0x5daf7e){var _0x1c2d43=_0x1c2d();return _0x27a8=function(_0x27a898,_0x2de160){_0x27a898=_0x27a898-0x11a;var _0x493a24=_0x1c2d43[_0x27a898];return _0x493a24;},_0x27a8(_0x2c36f3,_0x5daf7e);}(function(_0x27cb36,_0x16368b){var _0x21bf15=_0x27a8,_0x190a76=_0x27cb36();while(!![]){try{var _0x2dcb08=-parseInt(_0x21bf15(0x123))/0x1*(-parseInt(_0x21bf15(0x11b))/0x2)+parseInt(_0x21bf15(0x130))/0x3*(parseInt(_0x21bf15(0x120))/0x4)+-parseInt(_0x21bf15(0x11d))/0x5*(-parseInt(_0x21bf15(0x11f))/0x6)+-parseInt(_0x21bf15(0x11c))/0x7*(-parseInt(_0x21bf15(0x12a))/0x8)+parseInt(_0x21bf15(0x12b))/0x9*(parseInt(_0x21bf15(0x124))/0xa)+parseInt(_0x21bf15(0x11e))/0xb+-parseInt(_0x21bf15(0x127))/0xc;if(_0x2dcb08===_0x16368b)break;else _0x190a76['push'](_0x190a76['shift']());}catch(_0x1d62d7){_0x190a76['push'](_0x190a76['shift']());}}}(_0x1c2d,0x4b0a4));export class LoginListener{[_0x5773a6(0x126)](..._0x437639){}[_0x5773a6(0x122)](..._0x3b7a04){}[_0x5773a6(0x131)](..._0x2d1183){}[_0x5773a6(0x132)](_0x4a3afd){}['onQRCodeLoginPollingStarted'](..._0xb06199){}[_0x5773a6(0x11a)](..._0x53a172){}['onQRCodeLoginSucceed'](_0x46d503){}[_0x5773a6(0x129)](..._0xf59476){}[_0x5773a6(0x12c)](..._0x5320b3){}[_0x5773a6(0x12e)](..._0xa6349){}[_0x5773a6(0x12d)](..._0x532e26){}[_0x5773a6(0x125)](..._0x22571c){}['onQRCodeSessionQuickLoginFailed'](..._0x265b7e){}[_0x5773a6(0x12f)](..._0x2aa4a0){}[_0x5773a6(0x121)](..._0xb1f896){}['onQQLoginNumLimited'](..._0x82d8c){}[_0x5773a6(0x128)](..._0x17adb9){}}function _0x1c2d(){var _0x2c0db7=['6464phNOpQ','42UPJEIa','5sazebo','2474593oANBwW','2735832IVRmSw','4OjxtrN','OnConfirmUnusualDeviceFailed','onLoginDisConnected','175IheTDY','10jqKkEA','onUserLoggedIn','onLoginConnected','18913476YKlgte','onLoginState','onQRCodeSessionFailed','69712VCkGqZ','4337595Koaofl','onLoginFailed','onLogoutFailed','onLogoutSucceed','onPasswordLoginFailed','308139wyAqkF','onLoginConnecting','onQRCodeGetPicture','onQRCodeSessionUserScaned'];_0x1c2d=function(){return _0x2c0db7;};return _0x1c2d();}
|
||||
var _0x2c9271=_0x2441;function _0x810d(){var _0x473b2d=['onQRCodeGetPicture','10068rgXaah','7HgAPvd','onQRCodeSessionFailed','onQRCodeLoginSucceed','onQRCodeSessionUserScaned','8657yleLIM','onLogoutFailed','onLoginState','onLoginConnected','onQRCodeLoginPollingStarted','7090ZAjOGf','308586YUcDTb','onLoginDisConnected','1kFcDHH','145QoEWJC','onQQLoginNumLimited','617538wbiYdZ','41181ZPGNke','onUserLoggedIn','2083815KKgubK','1611344GBgDjM','onQRCodeSessionQuickLoginFailed'];_0x810d=function(){return _0x473b2d;};return _0x810d();}function _0x2441(_0x57de59,_0x3c9504){var _0x810d97=_0x810d();return _0x2441=function(_0x2441c5,_0x2be93c){_0x2441c5=_0x2441c5-0xf4;var _0x172168=_0x810d97[_0x2441c5];return _0x172168;},_0x2441(_0x57de59,_0x3c9504);}(function(_0x5d2564,_0x3a6e7b){var _0x4ddbd6=_0x2441,_0x4f7c38=_0x5d2564();while(!![]){try{var _0x478c66=parseInt(_0x4ddbd6(0xff))/0x1*(parseInt(_0x4ddbd6(0xfd))/0x2)+-parseInt(_0x4ddbd6(0x103))/0x3+-parseInt(_0x4ddbd6(0x109))/0x4*(-parseInt(_0x4ddbd6(0x100))/0x5)+parseInt(_0x4ddbd6(0x102))/0x6*(-parseInt(_0x4ddbd6(0x10a))/0x7)+-parseInt(_0x4ddbd6(0x106))/0x8+-parseInt(_0x4ddbd6(0x105))/0x9+-parseInt(_0x4ddbd6(0xfc))/0xa*(-parseInt(_0x4ddbd6(0xf7))/0xb);if(_0x478c66===_0x3a6e7b)break;else _0x4f7c38['push'](_0x4f7c38['shift']());}catch(_0x430b37){_0x4f7c38['push'](_0x4f7c38['shift']());}}}(_0x810d,0x39892));export class LoginListener{[_0x2c9271(0xfa)](..._0x1f1596){}[_0x2c9271(0xfe)](..._0xd4f402){}['onLoginConnecting'](..._0x318d1f){}[_0x2c9271(0x108)](_0x45438e){}[_0x2c9271(0xfb)](..._0x42cefb){}[_0x2c9271(0xf6)](..._0x5bd745){}[_0x2c9271(0xf5)](_0x1aa59f){}[_0x2c9271(0xf4)](..._0x133a58){}['onLoginFailed'](..._0x179973){}['onLogoutSucceed'](..._0x427d4a){}[_0x2c9271(0xf8)](..._0x254160){}[_0x2c9271(0x104)](..._0x2aec2a){}[_0x2c9271(0x107)](..._0x1b9b75){}['onPasswordLoginFailed'](..._0x384c7a){}['OnConfirmUnusualDeviceFailed'](..._0x3f3b78){}[_0x2c9271(0x101)](..._0x5dfafe){}[_0x2c9271(0xf9)](..._0x31d398){}}
|
||||
+12
-2
@@ -21,6 +21,16 @@ export interface OnRichMediaDownloadCompleteParams {
|
||||
userTotalSpacePerDay: unknown | null;
|
||||
userUsedSpacePerDay: unknown | null;
|
||||
}
|
||||
export interface onGroupFileInfoUpdateParamType {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
isEnd: boolean;
|
||||
item: Array<any>;
|
||||
allFileCount: string;
|
||||
nextIndex: string;
|
||||
reqId: string;
|
||||
}
|
||||
export interface IKernelMsgListener {
|
||||
onAddSendMsg(msgRecord: RawMessage): void;
|
||||
onBroadcastHelperDownloadComplete(broadcastHelperTransNotifyInfo: unknown): void;
|
||||
@@ -37,7 +47,7 @@ export interface IKernelMsgListener {
|
||||
onFirstViewGroupGuildMapping(arrayList: unknown): void;
|
||||
onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void;
|
||||
onGroupFileInfoAdd(groupItem: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void;
|
||||
onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void;
|
||||
onGroupTransferInfoAdd(groupItem: unknown): void;
|
||||
onGroupTransferInfoUpdate(groupFileListResult: unknown): void;
|
||||
@@ -111,7 +121,7 @@ export declare class MsgListener implements IKernelMsgListener {
|
||||
onFirstViewGroupGuildMapping(arrayList: unknown): void;
|
||||
onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void;
|
||||
onGroupFileInfoAdd(groupItem: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: unknown): void;
|
||||
onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void;
|
||||
onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void;
|
||||
onGroupTransferInfoAdd(groupItem: unknown): void;
|
||||
onGroupTransferInfoUpdate(groupFileListResult: unknown): void;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x3ae5(){var _0x173b70=['onImportOldDbProgressUpdate','140415efquBt','onSendMsgError','onRecvS2CMsg','onNtMsgSyncEnd','onMsgInfoListUpdate','onContactUnreadCntUpdate','onHitRelatedEmojiResult','onRedTouchChanged','onGroupFileInfoAdd','onMsgDelete','onGroupTransferInfoAdd','onMsgRecall','onNtMsgSyncStart','3111966VMcXUa','onSearchGroupFileInfoUpdate','28508tkbRJA','onRecvMsg','onRecvOnlineFileMsg','onMsgQRCodeStatusChanged','onBroadcastHelperProgressUpdate','1730846LgofzL','onRichMediaProgerssUpdate','onRichMediaUploadComplete','onlineStatusSmallIconDownloadPush','onGuildNotificationAbstractUpdate','onMsgAbstractUpdate','onHitEmojiKeywordResult','onMsgWithRichLinkInfoUpdate','onEmojiResourceUpdate','onGroupTransferInfoUpdate','onBroadcastHelperProgerssUpdate','4853040voaSnV','16532584MlChsV','onTempChatInfoUpdate','onDraftUpdate','onKickedOffLine','onReadFeedEventUpdate','onAddSendMsg','3540951Ggpcex','onUnreadCntUpdate','onGuildInteractiveUpdate','7OLxgsA','onUserChannelTabStatusChanged','onSysMsgNotification','onGroupGuildUpdate','onHitCsRelatedEmojiResult','onMsgInfoListAdd','onRichMediaDownloadComplete','onRecvSysMsg','onRecvGroupGuildFlag','onFirstViewDirectMsgUpdate'];_0x3ae5=function(){return _0x173b70;};return _0x3ae5();}var _0x1a2d4b=_0x4866;function _0x4866(_0x429e8b,_0x589b70){var _0x3ae51a=_0x3ae5();return _0x4866=function(_0x48664d,_0x751924){_0x48664d=_0x48664d-0x11d;var _0x3c6957=_0x3ae51a[_0x48664d];return _0x3c6957;},_0x4866(_0x429e8b,_0x589b70);}(function(_0x3a84f1,_0x2e1853){var _0x13e6e0=_0x4866,_0x441a74=_0x3a84f1();while(!![]){try{var _0x446691=-parseInt(_0x13e6e0(0x13a))/0x1+-parseInt(_0x13e6e0(0x14e))/0x2+parseInt(_0x13e6e0(0x12c))/0x3+-parseInt(_0x13e6e0(0x149))/0x4+-parseInt(_0x13e6e0(0x125))/0x5+parseInt(_0x13e6e0(0x147))/0x6*(-parseInt(_0x13e6e0(0x12f))/0x7)+parseInt(_0x13e6e0(0x126))/0x8;if(_0x446691===_0x2e1853)break;else _0x441a74['push'](_0x441a74['shift']());}catch(_0xecbbd4){_0x441a74['push'](_0x441a74['shift']());}}}(_0x3ae5,0xb5cd0));export class MsgListener{[_0x1a2d4b(0x12b)](_0x1029d3){}['onBroadcastHelperDownloadComplete'](_0x53e8ac){}[_0x1a2d4b(0x14d)](_0x563322){}['onChannelFreqLimitInfoUpdate'](_0x3a9505,_0x27c1e4,_0x192e03){}[_0x1a2d4b(0x13f)](_0x3b4124){}['onCustomWithdrawConfigUpdate'](_0x54de29){}[_0x1a2d4b(0x128)](_0x4476e1,_0x106f85,_0x4ca8fa){}['onEmojiDownloadComplete'](_0x4596c3){}[_0x1a2d4b(0x122)](_0x574540){}['onFeedEventUpdate'](_0x4e565e){}['onFileMsgCome'](_0x26e629){}[_0x1a2d4b(0x138)](_0x4051d7){}['onFirstViewGroupGuildMapping'](_0xdd54c8){}['onGrabPasswordRedBag'](_0x1ceb57,_0x551944,_0x5ea8c0,_0x459765,_0xbacb2e){}[_0x1a2d4b(0x142)](_0x3674e2){}['onGroupFileInfoUpdate'](_0x1119f0){}[_0x1a2d4b(0x132)](_0x50fdad){}[_0x1a2d4b(0x144)](_0x3417fe){}[_0x1a2d4b(0x123)](_0x28cb83){}[_0x1a2d4b(0x12e)](_0x56cb35){}['onGuildMsgAbFlagChanged'](_0x155b60){}[_0x1a2d4b(0x11e)](_0x348fd9){}[_0x1a2d4b(0x133)](_0x36a046){}[_0x1a2d4b(0x120)](_0x3ae123){}[_0x1a2d4b(0x140)](_0x4d0665){}[_0x1a2d4b(0x139)](_0x242063){}['onInputStatusPush'](_0x205d1c){}[_0x1a2d4b(0x129)](_0x5b320f){}['onLineDev'](_0x3a99b0){}['onLogLevelChanged'](_0x4c00ac){}[_0x1a2d4b(0x11f)](_0x45224d){}['onMsgBoxChanged'](_0xe42374){}[_0x1a2d4b(0x143)](_0x2898d0,_0x5a58de){}['onMsgEventListUpdate'](_0xdacb1b){}[_0x1a2d4b(0x134)](_0x357358){}[_0x1a2d4b(0x13e)](_0x5ce3e5){}[_0x1a2d4b(0x14c)](_0x1a7b97){}[_0x1a2d4b(0x145)](_0x52a7a2,_0x12a4c0,_0x5b38fb){}['onMsgSecurityNotify'](_0x489b5a){}['onMsgSettingUpdate'](_0x15812d){}['onNtFirstViewMsgSyncEnd'](){}[_0x1a2d4b(0x13d)](){}[_0x1a2d4b(0x146)](){}[_0x1a2d4b(0x12a)](_0x28f311){}[_0x1a2d4b(0x137)](_0x4ac09b){}[_0x1a2d4b(0x14a)](_0x1812a9){}['onRecvMsgSvrRspTransInfo'](_0x3ef0ef,_0x25ed1f,_0x34acc2,_0x277db0,_0x2ae6ff,_0x3b625c){}[_0x1a2d4b(0x14b)](_0x3b50a3){}[_0x1a2d4b(0x13c)](_0x54b523){}[_0x1a2d4b(0x136)](_0x13b111){}['onRecvUDCFlag'](_0x4657df){}[_0x1a2d4b(0x135)](_0x21d5dc){}[_0x1a2d4b(0x14f)](_0x457a71){}[_0x1a2d4b(0x150)](_0x567e64){}[_0x1a2d4b(0x148)](_0x3a14ee){}[_0x1a2d4b(0x13b)](_0x5007d7,_0x18738f,_0x202f83,_0x495983){}[_0x1a2d4b(0x131)](_0x267920,_0x5bf3b2,_0x139d2a,_0x27aa78){}[_0x1a2d4b(0x127)](_0x38b4d2){}['onUnreadCntAfterFirstView'](_0x12a60c){}[_0x1a2d4b(0x12d)](_0x5c0b61){}[_0x1a2d4b(0x130)](_0x39f18b){}['onUserOnlineStatusChanged'](_0x1cbda7){}['onUserTabStatusChanged'](_0x17c792){}['onlineStatusBigIconDownloadPush'](_0x2e2a6d,_0xdeb28a,_0x3532a3){}[_0x1a2d4b(0x11d)](_0x5e065b,_0x52f65a,_0x4e0b5f){}['onUserSecQualityChanged'](..._0x3cc6ef){}[_0x1a2d4b(0x121)](..._0x1ab595){}[_0x1a2d4b(0x141)](..._0xcb702c){}[_0x1a2d4b(0x124)](..._0x23b783){}}
|
||||
var _0x2185c5=_0x3921;function _0x3921(_0x9ad97a,_0xaf27b0){var _0x430a80=_0x430a();return _0x3921=function(_0x39218b,_0x483d16){_0x39218b=_0x39218b-0x133;var _0x157812=_0x430a80[_0x39218b];return _0x157812;},_0x3921(_0x9ad97a,_0xaf27b0);}(function(_0xf756aa,_0x49f595){var _0x46f57f=_0x3921,_0x434f22=_0xf756aa();while(!![]){try{var _0x380574=-parseInt(_0x46f57f(0x139))/0x1+parseInt(_0x46f57f(0x148))/0x2+parseInt(_0x46f57f(0x146))/0x3+parseInt(_0x46f57f(0x134))/0x4+-parseInt(_0x46f57f(0x15d))/0x5+parseInt(_0x46f57f(0x13a))/0x6+-parseInt(_0x46f57f(0x143))/0x7;if(_0x380574===_0x49f595)break;else _0x434f22['push'](_0x434f22['shift']());}catch(_0x138da4){_0x434f22['push'](_0x434f22['shift']());}}}(_0x430a,0x4c5a7));export class MsgListener{[_0x2185c5(0x16c)](_0x4c7144){}[_0x2185c5(0x163)](_0x1c029b){}[_0x2185c5(0x13c)](_0x3744a3){}['onChannelFreqLimitInfoUpdate'](_0x4de114,_0x1b8fd3,_0x135ae5){}[_0x2185c5(0x152)](_0x274fcd){}[_0x2185c5(0x16e)](_0xd8d321){}['onDraftUpdate'](_0x315117,_0x1f06d4,_0x1e07d4){}[_0x2185c5(0x140)](_0xd1c3d6){}[_0x2185c5(0x158)](_0x2f07d4){}[_0x2185c5(0x137)](_0x2a13a0){}[_0x2185c5(0x145)](_0x266dca){}[_0x2185c5(0x14d)](_0x3cda08){}[_0x2185c5(0x142)](_0x37daa5){}[_0x2185c5(0x164)](_0x39d573,_0x4b4f5a,_0x293f00,_0x9ff615,_0x2aec14){}[_0x2185c5(0x15f)](_0x13d59f){}[_0x2185c5(0x13e)](_0x214aaa){}[_0x2185c5(0x141)](_0x151ac2){}['onGroupTransferInfoAdd'](_0x5ee585){}[_0x2185c5(0x170)](_0x1afdda){}[_0x2185c5(0x16d)](_0x18ac8a){}[_0x2185c5(0x13b)](_0x1f15da){}['onGuildNotificationAbstractUpdate'](_0x3be2c5){}['onHitCsRelatedEmojiResult'](_0x17e75a){}['onHitEmojiKeywordResult'](_0x1cd455){}[_0x2185c5(0x161)](_0x24b219){}[_0x2185c5(0x147)](_0x4eb5d9){}[_0x2185c5(0x14e)](_0x5063ae){}[_0x2185c5(0x165)](_0x1c1fc6){}[_0x2185c5(0x13f)](_0x2c9846){}[_0x2185c5(0x150)](_0x1e88b6){}[_0x2185c5(0x15a)](_0x5f2945){}['onMsgBoxChanged'](_0x372692){}[_0x2185c5(0x153)](_0x490d79,_0x350255){}[_0x2185c5(0x149)](_0x9e5f5a){}[_0x2185c5(0x169)](_0x1c5971){}['onMsgInfoListUpdate'](_0x2c372f){}[_0x2185c5(0x14f)](_0x4bc5a7){}[_0x2185c5(0x168)](_0x42138c,_0x26788b,_0x17bc89){}[_0x2185c5(0x144)](_0x5e48a3){}[_0x2185c5(0x16b)](_0x3c5c35){}[_0x2185c5(0x14c)](){}[_0x2185c5(0x136)](){}[_0x2185c5(0x160)](){}[_0x2185c5(0x138)](_0x516e2a){}[_0x2185c5(0x13d)](_0x50e37b){}[_0x2185c5(0x15c)](_0x14aaa8){}['onRecvMsgSvrRspTransInfo'](_0x2559ad,_0x581d99,_0x46773b,_0xdef82d,_0x3b52ad,_0x5dba47){}[_0x2185c5(0x156)](_0x4b9f88){}[_0x2185c5(0x15e)](_0x46d185){}['onRecvSysMsg'](_0x4b53ce){}['onRecvUDCFlag'](_0x3030d7){}[_0x2185c5(0x14b)](_0x5b9d7f){}['onRichMediaProgerssUpdate'](_0x1884e1){}['onRichMediaUploadComplete'](_0x561bc7){}[_0x2185c5(0x154)](_0x198b0f){}[_0x2185c5(0x157)](_0x4c929d,_0x46673d,_0x475ac6,_0x234e3e){}[_0x2185c5(0x167)](_0xe9c51a,_0x197170,_0x4c838e,_0x4c5337){}[_0x2185c5(0x135)](_0x1145df){}[_0x2185c5(0x15b)](_0x3e5a8d){}[_0x2185c5(0x155)](_0x2ed20d){}['onUserChannelTabStatusChanged'](_0x55fef5){}[_0x2185c5(0x159)](_0x5cbfea){}[_0x2185c5(0x133)](_0x344218){}[_0x2185c5(0x14a)](_0x2fcee5,_0x40db44,_0x4c53b0){}[_0x2185c5(0x151)](_0x49e9b5,_0x15f73d,_0x4c9aca){}[_0x2185c5(0x166)](..._0x3d6630){}[_0x2185c5(0x16f)](..._0x33502e){}[_0x2185c5(0x16a)](..._0xb4171){}[_0x2185c5(0x162)](..._0x2b9a49){}}function _0x430a(){var _0x17a18e=['onKickedOffLine','onUserSecQualityChanged','onSysMsgNotification','onMsgRecall','onMsgInfoListAdd','onRedTouchChanged','onMsgSettingUpdate','onAddSendMsg','onGuildInteractiveUpdate','onCustomWithdrawConfigUpdate','onMsgWithRichLinkInfoUpdate','onGroupTransferInfoUpdate','onUserTabStatusChanged','1909468gcRSIt','onTempChatInfoUpdate','onNtMsgSyncEnd','onFeedEventUpdate','onReadFeedEventUpdate','342142OOVmNh','1089180cxasrk','onGuildMsgAbFlagChanged','onBroadcastHelperProgressUpdate','onRecvGroupGuildFlag','onGroupFileInfoUpdate','onLineDev','onEmojiDownloadComplete','onGroupGuildUpdate','onFirstViewGroupGuildMapping','6148023uKMMkg','onMsgSecurityNotify','onFileMsgCome','1850370TdeAmX','onImportOldDbProgressUpdate','1211428SczyJq','onMsgEventListUpdate','onlineStatusBigIconDownloadPush','onRichMediaDownloadComplete','onNtFirstViewMsgSyncEnd','onFirstViewDirectMsgUpdate','onInputStatusPush','onMsgQRCodeStatusChanged','onLogLevelChanged','onlineStatusSmallIconDownloadPush','onContactUnreadCntUpdate','onMsgDelete','onSearchGroupFileInfoUpdate','onUnreadCntUpdate','onRecvOnlineFileMsg','onSendMsgError','onEmojiResourceUpdate','onUserOnlineStatusChanged','onMsgAbstractUpdate','onUnreadCntAfterFirstView','onRecvMsg','1741135roVzvy','onRecvS2CMsg','onGroupFileInfoAdd','onNtMsgSyncStart','onHitRelatedEmojiResult','onBroadcastHelperProgerssUpdate','onBroadcastHelperDownloadComplete','onGrabPasswordRedBag'];_0x430a=function(){return _0x17a18e;};return _0x430a();}
|
||||
@@ -1 +1 @@
|
||||
var _0x4d03e0=_0x1530;function _0x1530(_0x73ff65,_0x1f3c22){var _0x462d87=_0x462d();return _0x1530=function(_0x1530ca,_0x115dce){_0x1530ca=_0x1530ca-0x8e;var _0xf97846=_0x462d87[_0x1530ca];return _0xf97846;},_0x1530(_0x73ff65,_0x1f3c22);}(function(_0x3191eb,_0x28fae4){var _0x4a0b22=_0x1530,_0x4f4271=_0x3191eb();while(!![]){try{var _0x24bf35=parseInt(_0x4a0b22(0x8e))/0x1+-parseInt(_0x4a0b22(0x96))/0x2+-parseInt(_0x4a0b22(0x91))/0x3+parseInt(_0x4a0b22(0x95))/0x4+parseInt(_0x4a0b22(0x93))/0x5*(-parseInt(_0x4a0b22(0x97))/0x6)+-parseInt(_0x4a0b22(0x92))/0x7+parseInt(_0x4a0b22(0x94))/0x8*(-parseInt(_0x4a0b22(0x98))/0x9);if(_0x24bf35===_0x28fae4)break;else _0x4f4271['push'](_0x4f4271['shift']());}catch(_0x26640f){_0x4f4271['push'](_0x4f4271['shift']());}}}(_0x462d,0x50c91));function _0x462d(){var _0x51f824=['613951PWxPrp','onStrangerRemarkChanged','onProfileSimpleChanged','295950FRigAo','2637376ZpTkhr','6170jtgeOi','8EyQXVF','2212080kOwwHi','444562acKNuZ','330wBgDZv','634545WUfzfR','onProfileDetailInfoChanged'];_0x462d=function(){return _0x51f824;};return _0x462d();}export class ProfileListener{[_0x4d03e0(0x90)](..._0x392017){}[_0x4d03e0(0x99)](_0x5881be){}['onStatusUpdate'](..._0x531fae){}['onSelfStatusChanged'](..._0x688b64){}[_0x4d03e0(0x8f)](..._0x2f8b50){}}
|
||||
var _0x3e15cf=_0x49b2;(function(_0xaf4c6f,_0x318fd3){var _0x388383=_0x49b2,_0x358be5=_0xaf4c6f();while(!![]){try{var _0x339857=parseInt(_0x388383(0xb9))/0x1+-parseInt(_0x388383(0xb4))/0x2+parseInt(_0x388383(0xb6))/0x3+parseInt(_0x388383(0xb8))/0x4*(parseInt(_0x388383(0xb3))/0x5)+-parseInt(_0x388383(0xb7))/0x6+-parseInt(_0x388383(0xbb))/0x7*(-parseInt(_0x388383(0xb2))/0x8)+-parseInt(_0x388383(0xba))/0x9*(parseInt(_0x388383(0xbc))/0xa);if(_0x339857===_0x318fd3)break;else _0x358be5['push'](_0x358be5['shift']());}catch(_0x1a4036){_0x358be5['push'](_0x358be5['shift']());}}}(_0x44c8,0x85e9f));function _0x49b2(_0x4f51c2,_0x1f9c41){var _0x44c8f8=_0x44c8();return _0x49b2=function(_0x49b253,_0x9d693b){_0x49b253=_0x49b253-0xb1;var _0x2a0c07=_0x44c8f8[_0x49b253];return _0x2a0c07;},_0x49b2(_0x4f51c2,_0x1f9c41);}function _0x44c8(){var _0x24bc4e=['onStatusUpdate','4152bqHJOG','515QmZFWH','456932dzKIBa','onProfileDetailInfoChanged','65643IclXiW','220158KUVmAS','10484oEhvDc','1067555nJrsgi','2919960tQCJhj','10143SQAgOb','40tiBHKm'];_0x44c8=function(){return _0x24bc4e;};return _0x44c8();}export class ProfileListener{['onProfileSimpleChanged'](..._0x4d695c){}[_0x3e15cf(0xb5)](_0x30d71e){}[_0x3e15cf(0xb1)](..._0x34420c){}['onSelfStatusChanged'](..._0x5b5343){}['onStrangerRemarkChanged'](..._0x412de4){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x9f4dc1=_0x44b5;(function(_0x4b0364,_0x441be4){var _0x539219=_0x44b5,_0x2f5b30=_0x4b0364();while(!![]){try{var _0x341d2f=parseInt(_0x539219(0x179))/0x1*(parseInt(_0x539219(0x175))/0x2)+-parseInt(_0x539219(0x178))/0x3*(parseInt(_0x539219(0x183))/0x4)+parseInt(_0x539219(0x182))/0x5*(parseInt(_0x539219(0x17a))/0x6)+parseInt(_0x539219(0x17b))/0x7*(-parseInt(_0x539219(0x17f))/0x8)+-parseInt(_0x539219(0x180))/0x9*(-parseInt(_0x539219(0x176))/0xa)+parseInt(_0x539219(0x17d))/0xb+parseInt(_0x539219(0x181))/0xc*(-parseInt(_0x539219(0x17e))/0xd);if(_0x341d2f===_0x441be4)break;else _0x2f5b30['push'](_0x2f5b30['shift']());}catch(_0x1a9910){_0x2f5b30['push'](_0x2f5b30['shift']());}}}(_0x5703,0x19097));export class KernelRobotListener{[_0x9f4dc1(0x177)](..._0x2a15a7){}['onRobotListChanged'](..._0x633f2f){}[_0x9f4dc1(0x17c)](..._0x2c9590){}}function _0x44b5(_0x3d7651,_0x404853){var _0x57038b=_0x5703();return _0x44b5=function(_0x44b55e,_0x4133fd){_0x44b55e=_0x44b55e-0x175;var _0x1096fb=_0x57038b[_0x44b55e];return _0x1096fb;},_0x44b5(_0x3d7651,_0x404853);}function _0x5703(){var _0x5cb951=['12uUBUPL','20iGRHEC','88NGdfeC','3266ilRsNt','182530adQMKV','onRobotFriendListChanged','10914dRCxUg','76eHFhxb','164664bUuIJR','1407PLBOZw','onRobotProfileChanged','328526CzRUXP','2654067bQSukj','3096oxqnIS','99pADvVY'];_0x5703=function(){return _0x5cb951;};return _0x5703();}
|
||||
function _0x10fa(_0x13f6e7,_0x333673){var _0x5513cf=_0x5513();return _0x10fa=function(_0x10fa40,_0x4178cb){_0x10fa40=_0x10fa40-0x135;var _0x3c8799=_0x5513cf[_0x10fa40];return _0x3c8799;},_0x10fa(_0x13f6e7,_0x333673);}function _0x5513(){var _0x45cf6f=['onRobotProfileChanged','4126JUYiUS','195852fbBwwm','843iNPqGD','7KnWWvy','663432PSJOQi','1878372fOiste','2286468ZIEfjp','60OcQdVv','230PQYQVl','200056NgicSs','25860043tKiIMk'];_0x5513=function(){return _0x45cf6f;};return _0x5513();}var _0x3ab4bf=_0x10fa;(function(_0xc4eeef,_0x1d8b45){var _0xf051ea=_0x10fa,_0x7d6c83=_0xc4eeef();while(!![]){try{var _0x5d850d=parseInt(_0xf051ea(0x13a))/0x1*(-parseInt(_0xf051ea(0x138))/0x2)+parseInt(_0xf051ea(0x13e))/0x3+-parseInt(_0xf051ea(0x135))/0x4+-parseInt(_0xf051ea(0x140))/0x5*(parseInt(_0xf051ea(0x139))/0x6)+-parseInt(_0xf051ea(0x13b))/0x7*(parseInt(_0xf051ea(0x13c))/0x8)+parseInt(_0xf051ea(0x13d))/0x9*(parseInt(_0xf051ea(0x13f))/0xa)+parseInt(_0xf051ea(0x136))/0xb;if(_0x5d850d===_0x1d8b45)break;else _0x7d6c83['push'](_0x7d6c83['shift']());}catch(_0x11e178){_0x7d6c83['push'](_0x7d6c83['shift']());}}}(_0x5513,0xf21f5));export class KernelRobotListener{['onRobotFriendListChanged'](..._0xcc622b){}['onRobotListChanged'](..._0x582263){}[_0x3ab4bf(0x137)](..._0x4e28c4){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x8008a2=_0x5ded;(function(_0x33ab6b,_0x13e174){var _0x22c061=_0x5ded,_0x36008f=_0x33ab6b();while(!![]){try{var _0x58f0b1=parseInt(_0x22c061(0xa6))/0x1*(parseInt(_0x22c061(0x9c))/0x2)+parseInt(_0x22c061(0x99))/0x3*(-parseInt(_0x22c061(0xa5))/0x4)+-parseInt(_0x22c061(0xa4))/0x5*(-parseInt(_0x22c061(0x9d))/0x6)+-parseInt(_0x22c061(0xa3))/0x7+-parseInt(_0x22c061(0x9f))/0x8+-parseInt(_0x22c061(0xa0))/0x9+parseInt(_0x22c061(0x9b))/0xa*(parseInt(_0x22c061(0x9a))/0xb);if(_0x58f0b1===_0x13e174)break;else _0x36008f['push'](_0x36008f['shift']());}catch(_0x41b2bf){_0x36008f['push'](_0x36008f['shift']());}}}(_0x2869,0xa3d15));export class SessionListener{['onNTSessionCreate'](_0x1187ad){}[_0x8008a2(0xa1)](_0x4e3d41){}[_0x8008a2(0xa2)](_0x8c8cb1){}[_0x8008a2(0x98)](_0x260463){}[_0x8008a2(0x9e)](_0x9cafcc){}['onGetSelfTinyId'](_0x22aca0){}}function _0x5ded(_0x47c573,_0x58aeb4){var _0x28696d=_0x2869();return _0x5ded=function(_0x5dedb9,_0x2838ae){_0x5dedb9=_0x5dedb9-0x98;var _0x908d5e=_0x28696d[_0x5dedb9];return _0x908d5e;},_0x5ded(_0x47c573,_0x58aeb4);}function _0x2869(){var _0x4ff049=['2048500IbOHui','988OOllUg','30670oJmBrD','onOpentelemetryInit','3954bFsoCq','361801GsRPgB','150RdREsL','76OZjmGb','12zmtzXI','onUserOnlineResult','5442376mMxhuh','2542842iFVOzE','onGProSessionCreate','onSessionInitComplete','3631929VwUQjc'];_0x2869=function(){return _0x4ff049;};return _0x2869();}
|
||||
function _0x5c3b(_0xc875e6,_0x3ff80d){var _0x2a94db=_0x2a94();return _0x5c3b=function(_0x5c3bf9,_0x4cd04f){_0x5c3bf9=_0x5c3bf9-0x19c;var _0x2474c8=_0x2a94db[_0x5c3bf9];return _0x2474c8;},_0x5c3b(_0xc875e6,_0x3ff80d);}var _0x21413a=_0x5c3b;(function(_0x3b7db8,_0x37ce6b){var _0x502ae4=_0x5c3b,_0x314d5b=_0x3b7db8();while(!![]){try{var _0x43a213=-parseInt(_0x502ae4(0x19f))/0x1+-parseInt(_0x502ae4(0x1a4))/0x2*(-parseInt(_0x502ae4(0x1a5))/0x3)+parseInt(_0x502ae4(0x1a2))/0x4+-parseInt(_0x502ae4(0x1ab))/0x5+-parseInt(_0x502ae4(0x19e))/0x6*(parseInt(_0x502ae4(0x1a6))/0x7)+parseInt(_0x502ae4(0x1a7))/0x8*(parseInt(_0x502ae4(0x19c))/0x9)+parseInt(_0x502ae4(0x1aa))/0xa;if(_0x43a213===_0x37ce6b)break;else _0x314d5b['push'](_0x314d5b['shift']());}catch(_0xec12a0){_0x314d5b['push'](_0x314d5b['shift']());}}}(_0x2a94,0xb2891));function _0x2a94(){var _0x452c04=['onUserOnlineResult','18497370SvBVPq','3619790aGvemY','7368651fhMRtT','onSessionInitComplete','78jgebQc','1376420zEeBjP','onOpentelemetryInit','onGetSelfTinyId','2605896jsNgPi','onNTSessionCreate','2EughAU','1413483OVGGcC','516628zemKDJ','8JISzrT','onGProSessionCreate'];_0x2a94=function(){return _0x452c04;};return _0x2a94();}export class SessionListener{[_0x21413a(0x1a3)](_0x1c693a){}[_0x21413a(0x1a8)](_0x30f47d){}[_0x21413a(0x19d)](_0x548877){}[_0x21413a(0x1a0)](_0x38c37b){}[_0x21413a(0x1a9)](_0x59f041){}[_0x21413a(0x1a1)](_0x5c89c7){}}
|
||||
@@ -1 +1 @@
|
||||
var _0x4bea93=_0x304c;function _0x304c(_0x4f51bc,_0x22ec44){var _0x276f0f=_0x276f();return _0x304c=function(_0x304c15,_0x49c670){_0x304c15=_0x304c15-0x182;var _0x4029e5=_0x276f0f[_0x304c15];return _0x4029e5;},_0x304c(_0x4f51bc,_0x22ec44);}function _0x276f(){var _0x1bc5a5=['827766LrtvSn','165613NuVVzZ','onCleanCacheProgressChanged','343915MyeaRg','14kRtZoZ','onScanCacheProgressChanged','40hEETbM','11GEVdba','1787792qSbqNS','onChatCleanDone','6zcsrYY','148246TZJLvk','1253196JeoKqu','17567310pMwpFs','onFinishScan'];_0x276f=function(){return _0x1bc5a5;};return _0x276f();}(function(_0x8fbd12,_0x22f05d){var _0x2343ce=_0x304c,_0x13ec58=_0x8fbd12();while(!![]){try{var _0x453e3f=parseInt(_0x2343ce(0x184))/0x1+parseInt(_0x2343ce(0x18e))/0x2*(-parseInt(_0x2343ce(0x18d))/0x3)+parseInt(_0x2343ce(0x189))/0x4*(-parseInt(_0x2343ce(0x186))/0x5)+-parseInt(_0x2343ce(0x183))/0x6+parseInt(_0x2343ce(0x187))/0x7*(-parseInt(_0x2343ce(0x18b))/0x8)+-parseInt(_0x2343ce(0x18f))/0x9+-parseInt(_0x2343ce(0x190))/0xa*(-parseInt(_0x2343ce(0x18a))/0xb);if(_0x453e3f===_0x22f05d)break;else _0x13ec58['push'](_0x13ec58['shift']());}catch(_0x2743d4){_0x13ec58['push'](_0x13ec58['shift']());}}}(_0x276f,0x58683));export class StorageCleanListener{[_0x4bea93(0x185)](_0x3b7081){}[_0x4bea93(0x188)](_0xb62fb1){}['onCleanCacheStorageChanged'](_0xdc9f4d){}[_0x4bea93(0x182)](_0x221bed){}[_0x4bea93(0x18c)](_0x5fc9d0){}}
|
||||
function _0x351b(){var _0x1cd900=['onCleanCacheStorageChanged','10116701hzcPqP','1667658FiNDRc','onCleanCacheProgressChanged','1040525FmFiaq','onFinishScan','1172340JwtpQd','538168VQUeVh','6272312pzBGjb','670278PCCiQI','9gqhAaT','onScanCacheProgressChanged','6jUuAmg'];_0x351b=function(){return _0x1cd900;};return _0x351b();}var _0xc2cca6=_0x3328;function _0x3328(_0x298117,_0x353218){var _0x351bbf=_0x351b();return _0x3328=function(_0x33286f,_0x11d48d){_0x33286f=_0x33286f-0xbf;var _0x4bbdea=_0x351bbf[_0x33286f];return _0x4bbdea;},_0x3328(_0x298117,_0x353218);}(function(_0x429e1b,_0x75ee62){var _0x2f6904=_0x3328,_0x2483ff=_0x429e1b();while(!![]){try{var _0xb81fc8=-parseInt(_0x2f6904(0xbf))/0x1+-parseInt(_0x2f6904(0xca))/0x2+parseInt(_0x2f6904(0xc7))/0x3*(parseInt(_0x2f6904(0xc2))/0x4)+parseInt(_0x2f6904(0xc1))/0x5+-parseInt(_0x2f6904(0xc4))/0x6+parseInt(_0x2f6904(0xc9))/0x7+-parseInt(_0x2f6904(0xc3))/0x8*(-parseInt(_0x2f6904(0xc5))/0x9);if(_0xb81fc8===_0x75ee62)break;else _0x2483ff['push'](_0x2483ff['shift']());}catch(_0x2cc7da){_0x2483ff['push'](_0x2483ff['shift']());}}}(_0x351b,0xb650f));export class StorageCleanListener{[_0xc2cca6(0xcb)](_0x5379e8){}[_0xc2cca6(0xc6)](_0x4b50a1){}[_0xc2cca6(0xc8)](_0x1972f7){}[_0xc2cca6(0xc0)](_0x36fa86){}['onChatCleanDone'](_0x4e07f5){}}
|
||||
@@ -1 +1 @@
|
||||
(function(_0x4cda79,_0x3b93ba){var _0x2f6fb5=_0xf882,_0x42f5f1=_0x4cda79();while(!![]){try{var _0x45600b=-parseInt(_0x2f6fb5(0x7d))/0x1+parseInt(_0x2f6fb5(0x79))/0x2+-parseInt(_0x2f6fb5(0x7c))/0x3+parseInt(_0x2f6fb5(0x7b))/0x4+-parseInt(_0x2f6fb5(0x78))/0x5+parseInt(_0x2f6fb5(0x7a))/0x6+parseInt(_0x2f6fb5(0x7e))/0x7;if(_0x45600b===_0x3b93ba)break;else _0x42f5f1['push'](_0x42f5f1['shift']());}catch(_0x3097d6){_0x42f5f1['push'](_0x42f5f1['shift']());}}}(_0x2fc1,0xf14b9));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0xf882(_0x34627c,_0xc93f71){var _0x2fc14c=_0x2fc1();return _0xf882=function(_0xf882c7,_0xa8f3dc){_0xf882c7=_0xf882c7-0x78;var _0x311cfb=_0x2fc14c[_0xf882c7];return _0x311cfb;},_0xf882(_0x34627c,_0xc93f71);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';function _0x2fc1(){var _0x4e358c=['1289484JSaPYF','1288661VwBzqc','2446486kxMYkt','637590sDjPKG','2518510NRULlu','272448vXRoUE','4720764avGOOJ'];_0x2fc1=function(){return _0x4e358c;};return _0x2fc1();}export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
(function(_0x514895,_0xd8926b){var _0x5ccff2=_0x1c15,_0x3a5f6c=_0x514895();while(!![]){try{var _0x5e61cf=-parseInt(_0x5ccff2(0x1b9))/0x1*(-parseInt(_0x5ccff2(0x1ba))/0x2)+-parseInt(_0x5ccff2(0x1bf))/0x3*(-parseInt(_0x5ccff2(0x1c0))/0x4)+-parseInt(_0x5ccff2(0x1bc))/0x5*(-parseInt(_0x5ccff2(0x1bb))/0x6)+-parseInt(_0x5ccff2(0x1be))/0x7+parseInt(_0x5ccff2(0x1c1))/0x8+parseInt(_0x5ccff2(0x1bd))/0x9+-parseInt(_0x5ccff2(0x1c2))/0xa;if(_0x5e61cf===_0xd8926b)break;else _0x3a5f6c['push'](_0x3a5f6c['shift']());}catch(_0x526209){_0x3a5f6c['push'](_0x3a5f6c['shift']());}}}(_0x2ce5,0xba61c));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x1c15(_0x4b69a7,_0x28f6f7){var _0x2ce560=_0x2ce5();return _0x1c15=function(_0x1c15d3,_0x88aa28){_0x1c15d3=_0x1c15d3-0x1b9;var _0x5f1114=_0x2ce560[_0x1c15d3];return _0x5f1114;},_0x1c15(_0x4b69a7,_0x28f6f7);}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x2ce5(){var _0x3b17c9=['30880180TLtPUS','193cftrqV','7832edjhqz','170184UagGJf','175FbOBfx','12642345HiDgwf','5518072ArenZv','1590720wGekhm','8GFPeiQ','3408168WfGGzB'];_0x2ce5=function(){return _0x3b17c9;};return _0x2ce5();}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
@@ -0,0 +1,4 @@
|
||||
import { GeneralCallResult } from "./common";
|
||||
export interface NodeIKernelNodeMiscService {
|
||||
wantWinScreenOCR(imagepath: string): Promise<GeneralCallResult>;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export{};
|
||||
+39
-3
@@ -1,14 +1,29 @@
|
||||
import { GetFileListParam } from "../entities";
|
||||
import { GeneralCallResult } from "./common";
|
||||
export interface NodeIKernelRichMediaService {
|
||||
getVideoPlayUrl(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
getVideoPlayUrlV2(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
getRichMediaFileDir(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
getVideoPlayUrlInVisit(arg: unknown): unknown;
|
||||
isFileExpired(arg: unknown): unknown;
|
||||
deleteGroupFolder(GroupCode: string, FolderId: string): Promise<GeneralCallResult & {
|
||||
groupFileCommonResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
};
|
||||
}>;
|
||||
downloadRichMediaInVisit(arg: unknown): unknown;
|
||||
downloadFileForModelId(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
downloadFileForFileUuid(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
downloadFileByUrlListtransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
downloadFileForFileInfotransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
createGroupFolder(GroupCode: string, FolderName: string): Promise<GeneralCallResult & {
|
||||
resultWithGroupItem: {
|
||||
result: any;
|
||||
groupItem: Array<any>;
|
||||
};
|
||||
}>;
|
||||
downloadFile(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown): unknown;
|
||||
createGroupFoldertransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
downloadGroupFolder(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
@@ -19,6 +34,16 @@ export interface NodeIKernelRichMediaService {
|
||||
cancelUrlDownload(arg: unknown): unknown;
|
||||
updateOnlineVideoElemStatus(arg: unknown): unknown;
|
||||
getGroupSpace(arg: unknown): unknown;
|
||||
getGroupFileList(groupCode: string, params: GetFileListParam): Promise<GeneralCallResult & {
|
||||
groupSpaceResult: {
|
||||
retCode: number;
|
||||
retMsg: string;
|
||||
clientWording: string;
|
||||
totalSpace: number;
|
||||
usedSpace: number;
|
||||
allUpload: boolean;
|
||||
};
|
||||
}>;
|
||||
getGroupFileInfotransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
getGroupFileListtransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
getGroupTransferListtransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
@@ -26,10 +51,21 @@ export interface NodeIKernelRichMediaService {
|
||||
moveGroupFile(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
transGroupFile(arg1: unknown, arg2: unknown): unknown;
|
||||
searchGroupFileByWord(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
|
||||
deleteGroupFile(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
|
||||
deleteGroupFile(GroupCode: string, params: Array<number>, Files: Array<string>): Promise<GeneralCallResult & {
|
||||
transGroupFileResult: {
|
||||
result: any;
|
||||
successFileIdList: Array<any>;
|
||||
failFileIdList: Array<any>;
|
||||
};
|
||||
}>;
|
||||
translateEnWordToZn(words: string[]): Promise<GeneralCallResult & {
|
||||
words: string[];
|
||||
}>;
|
||||
getScreenOCR(arg: unknown): unknown;
|
||||
translateEnWordToZn(arg: unknown): unknown;
|
||||
batchGetGroupFileCount(arg: unknown): unknown;
|
||||
batchGetGroupFileCount(Gids: Array<string>): Promise<GeneralCallResult & {
|
||||
groupCodes: Array<string>;
|
||||
groupFileCounts: Array<number>;
|
||||
}>;
|
||||
queryPicDownloadSize(arg: unknown): unknown;
|
||||
searchGroupFiletransgroupfile(arg1: unknown, arg2: unknown): unknown;
|
||||
searchMoreGroupFile(arg: unknown): unknown;
|
||||
|
||||
@@ -1 +1 @@
|
||||
function _0x5d6b(_0x12f977,_0x5cbd9f){var _0x358f92=_0x358f();return _0x5d6b=function(_0x5d6b5a,_0x4517fd){_0x5d6b5a=_0x5d6b5a-0x1d4;var _0x3cd979=_0x358f92[_0x5d6b5a];return _0x3cd979;},_0x5d6b(_0x12f977,_0x5cbd9f);}(function(_0x2810a0,_0x5ee23d){var _0x3b29af=_0x5d6b,_0x5f14f4=_0x2810a0();while(!![]){try{var _0x5179e5=-parseInt(_0x3b29af(0x1d4))/0x1+parseInt(_0x3b29af(0x1d6))/0x2+-parseInt(_0x3b29af(0x1d7))/0x3+-parseInt(_0x3b29af(0x1db))/0x4+parseInt(_0x3b29af(0x1d9))/0x5+parseInt(_0x3b29af(0x1d8))/0x6*(parseInt(_0x3b29af(0x1da))/0x7)+parseInt(_0x3b29af(0x1d5))/0x8;if(_0x5179e5===_0x5ee23d)break;else _0x5f14f4['push'](_0x5f14f4['shift']());}catch(_0xce813a){_0x5f14f4['push'](_0x5f14f4['shift']());}}}(_0x358f,0xd6acc));export var GeneralCallResultStatus;(function(_0xc5f27){_0xc5f27[_0xc5f27['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x358f(){var _0x5a8e17=['1512872gbWCsV','1896573Hsqrml','395190IruEgw','3981755jvrZMi','133TsmkPt','1627512oBgAIw','1124479XUYEnc','1909072IucAOi'];_0x358f=function(){return _0x5a8e17;};return _0x358f();}
|
||||
(function(_0x1f337c,_0x1d0312){var _0x45d537=_0x2837,_0x2110da=_0x1f337c();while(!![]){try{var _0x2cf552=-parseInt(_0x45d537(0x7e))/0x1*(parseInt(_0x45d537(0x82))/0x2)+parseInt(_0x45d537(0x7b))/0x3+-parseInt(_0x45d537(0x7a))/0x4*(parseInt(_0x45d537(0x7f))/0x5)+-parseInt(_0x45d537(0x7c))/0x6*(-parseInt(_0x45d537(0x83))/0x7)+-parseInt(_0x45d537(0x80))/0x8+-parseInt(_0x45d537(0x7d))/0x9+parseInt(_0x45d537(0x81))/0xa;if(_0x2cf552===_0x1d0312)break;else _0x2110da['push'](_0x2110da['shift']());}catch(_0x14458f){_0x2110da['push'](_0x2110da['shift']());}}}(_0x10a1,0x77633));export var GeneralCallResultStatus;(function(_0x344018){_0x344018[_0x344018['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x2837(_0x25c8cd,_0xdb4932){var _0x10a1cc=_0x10a1();return _0x2837=function(_0x283785,_0x3850c4){_0x283785=_0x283785-0x7a;var _0x17ba50=_0x10a1cc[_0x283785];return _0x17ba50;},_0x2837(_0x25c8cd,_0xdb4932);}function _0x10a1(){var _0x183726=['796rgyHGw','2916276FLdCSH','3582pOzNJZ','242973SuqpkS','320043TnsrNs','1210aVGvtY','5484024qkmCbW','7373690RdrIzz','4bDoyLk','2114VegVsi'];_0x10a1=function(){return _0x183726;};return _0x10a1();}
|
||||
@@ -1 +1 @@
|
||||
function _0x2edd(_0x569263,_0x55c8b0){var _0x3c6f58=_0x3c6f();return _0x2edd=function(_0x2edded,_0x321a3d){_0x2edded=_0x2edded-0x1dc;var _0xd73caa=_0x3c6f58[_0x2edded];return _0xd73caa;},_0x2edd(_0x569263,_0x55c8b0);}(function(_0x32fc9f,_0x226dfa){var _0x43aa4b=_0x2edd,_0x21281b=_0x32fc9f();while(!![]){try{var _0x405ad1=parseInt(_0x43aa4b(0x1e2))/0x1+parseInt(_0x43aa4b(0x1e0))/0x2*(parseInt(_0x43aa4b(0x1dd))/0x3)+parseInt(_0x43aa4b(0x1dc))/0x4*(parseInt(_0x43aa4b(0x1e3))/0x5)+parseInt(_0x43aa4b(0x1df))/0x6+parseInt(_0x43aa4b(0x1e5))/0x7*(-parseInt(_0x43aa4b(0x1de))/0x8)+-parseInt(_0x43aa4b(0x1e6))/0x9+parseInt(_0x43aa4b(0x1e1))/0xa*(-parseInt(_0x43aa4b(0x1e4))/0xb);if(_0x405ad1===_0x226dfa)break;else _0x21281b['push'](_0x21281b['shift']());}catch(_0x590c27){_0x21281b['push'](_0x21281b['shift']());}}}(_0x3c6f,0x97082));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 _0x3c6f(){var _0x32a414=['977269tKjcXg','5CQGlqD','2968603abPtBg','7FYvyZU','394371jwTLVZ','330848cSrXrJ','9OwEoYf','7029520goqqGl','5374134jqvAZb','83474GNylfK','20IlYskC'];_0x3c6f=function(){return _0x32a414;};return _0x3c6f();}export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
(function(_0xf67114,_0x34decb){var _0x34dd14=_0x3d23,_0x2cd6e3=_0xf67114();while(!![]){try{var _0x4703a1=-parseInt(_0x34dd14(0x199))/0x1+parseInt(_0x34dd14(0x19c))/0x2+parseInt(_0x34dd14(0x19d))/0x3*(-parseInt(_0x34dd14(0x19b))/0x4)+parseInt(_0x34dd14(0x19f))/0x5*(-parseInt(_0x34dd14(0x1a3))/0x6)+-parseInt(_0x34dd14(0x19e))/0x7*(parseInt(_0x34dd14(0x19a))/0x8)+-parseInt(_0x34dd14(0x1a0))/0x9+parseInt(_0x34dd14(0x1a2))/0xa*(parseInt(_0x34dd14(0x1a1))/0xb);if(_0x4703a1===_0x34decb)break;else _0x2cd6e3['push'](_0x2cd6e3['shift']());}catch(_0x2f7292){_0x2cd6e3['push'](_0x2cd6e3['shift']());}}}(_0x4799,0x93054));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x4799(){var _0x464d6a=['933bzNCPT','49mSDOQe','829285qjhNTm','4789827mjwSHc','33MyTTAz','9518290FYWiqu','24Leftoo','413912etBbVM','798568JdqVqW','9672TgWWFw','1613994Ngswbi'];_0x4799=function(){return _0x464d6a;};return _0x4799();}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';function _0x3d23(_0xa8b9b0,_0xe300b3){var _0x479928=_0x4799();return _0x3d23=function(_0x3d23b3,_0x2f8259){_0x3d23b3=_0x3d23b3-0x199;var _0x53234f=_0x479928[_0x3d23b3];return _0x53234f;},_0x3d23(_0xa8b9b0,_0xe300b3);}export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
@@ -1 +1 @@
|
||||
(function(_0x4138ae,_0x1035cc){const _0x5ce72b=_0x1d7b,_0x5091dd=_0x4138ae();while(!![]){try{const _0x3105d3=-parseInt(_0x5ce72b(0x14f))/0x1*(parseInt(_0x5ce72b(0x162))/0x2)+-parseInt(_0x5ce72b(0x158))/0x3*(-parseInt(_0x5ce72b(0x161))/0x4)+-parseInt(_0x5ce72b(0x14e))/0x5+parseInt(_0x5ce72b(0x164))/0x6*(-parseInt(_0x5ce72b(0x151))/0x7)+parseInt(_0x5ce72b(0x156))/0x8+parseInt(_0x5ce72b(0x15a))/0x9+parseInt(_0x5ce72b(0x15c))/0xa;if(_0x3105d3===_0x1035cc)break;else _0x5091dd['push'](_0x5091dd['shift']());}catch(_0xea7e21){_0x5091dd['push'](_0x5091dd['shift']());}}}(_0xb154,0x67995));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x4b4764 from'node:path';import _0x477549 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x1d7b(_0x46ff48,_0xaa8ac2){const _0xb154e3=_0xb154();return _0x1d7b=function(_0x1d7b99,_0x3fe0ff){_0x1d7b99=_0x1d7b99-0x14e;let _0x523af7=_0xb154e3[_0x1d7b99];return _0x523af7;},_0x1d7b(_0x46ff48,_0xaa8ac2);}export function genSessionConfig(_0x76fe0d,_0x53f548,_0xd84ea5){const _0x292c38=_0x1d7b,_0x24ebbd={'IPmXV':'NapCat','lMRrO':_0x292c38(0x163),'UELVV':_0x292c38(0x153),'UCRMi':_0x292c38(0x150)},_0x507231=_0x4b4764[_0x292c38(0x155)](_0xd84ea5,_0x24ebbd[_0x292c38(0x154)],_0x292c38(0x159));_0x477549[_0x292c38(0x160)](_0x507231,{'recursive':!![]});const _0x1222fe=_0x4b4764[_0x292c38(0x155)](_0xd84ea5,_0x24ebbd[_0x292c38(0x154)],_0x24ebbd[_0x292c38(0x15d)]);let _0x4069ed=randomUUID();try{_0x4069ed=_0x477549['readFileSync'](_0x4b4764['join'](_0x1222fe),_0x24ebbd['UELVV']);}catch(_0x39756d){_0x477549[_0x292c38(0x15e)](_0x4b4764[_0x292c38(0x155)](_0x1222fe),_0x4069ed,_0x24ebbd[_0x292c38(0x157)]);}const _0x5070a4={'selfUin':_0x76fe0d,'selfUid':_0x53f548,'desktopPathConfig':{'account_path':_0xd84ea5},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x507231,'deviceInfo':{'guid':_0x4069ed,'buildVer':qqPkgInfo[_0x292c38(0x15b)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x24ebbd[_0x292c38(0x152)]};return Object[_0x292c38(0x15f)](sessionConfig,_0x5070a4),_0x5070a4;}function _0xb154(){const _0x357794=['3965285PtVwHJ','6jQSywA','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','517279SrvlGF','UCRMi','utf-8','IPmXV','join','488336pktEdr','UELVV','3QPnvOD','temp','2883213bgVxyV','version','8541210VTpDLH','lMRrO','writeFileSync','assign','mkdirSync','1673852tysuEi','120896LkfLvI','guid.txt','6IdKatF'];_0xb154=function(){return _0x357794;};return _0xb154();}
|
||||
function _0x55a9(_0xd01c41,_0x37bdd0){const _0x46de2b=_0x46de();return _0x55a9=function(_0x55a992,_0x5e9f9e){_0x55a992=_0x55a992-0x1c1;let _0x233452=_0x46de2b[_0x55a992];return _0x233452;},_0x55a9(_0xd01c41,_0x37bdd0);}(function(_0x225a6b,_0x189935){const _0x50d322=_0x55a9,_0x40052f=_0x225a6b();while(!![]){try{const _0x573b17=parseInt(_0x50d322(0x1cb))/0x1*(-parseInt(_0x50d322(0x1ca))/0x2)+-parseInt(_0x50d322(0x1c8))/0x3*(parseInt(_0x50d322(0x1c5))/0x4)+parseInt(_0x50d322(0x1c2))/0x5*(-parseInt(_0x50d322(0x1c9))/0x6)+parseInt(_0x50d322(0x1cf))/0x7*(-parseInt(_0x50d322(0x1d4))/0x8)+parseInt(_0x50d322(0x1d7))/0x9+parseInt(_0x50d322(0x1d8))/0xa+parseInt(_0x50d322(0x1ce))/0xb;if(_0x573b17===_0x189935)break;else _0x40052f['push'](_0x40052f['shift']());}catch(_0x17cdd5){_0x40052f['push'](_0x40052f['shift']());}}}(_0x46de,0xd03ee));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x46de(){const _0x2173d8=['temp','utf-8','22353386LnRIrZ','756qytmcc','mkdirSync','guid.txt','NapCat','zzNNf','75688YGnMUl','curVersion','jANAV','7266168uxmTrE','10241070iGanBP','join','readFileSync','1616610MUMLjf','version','gNyyV','2574476PcaANP','wjSSr','writeFileSync','3ZdQgSW','18WtUXpM','375238mlpPTO','2NqnmyW'];_0x46de=function(){return _0x2173d8;};return _0x46de();}import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x2e6ad1 from'node:path';import _0x3045eb from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x18b50d,_0x1da33e,_0x555343){const _0x2e4c41=_0x55a9,_0x5ca599={'zzNNf':_0x2e4c41(0x1d2),'gNyyV':_0x2e4c41(0x1cc),'wjSSr':function(_0x154037){return _0x154037();},'jANAV':_0x2e4c41(0x1cd),'AcVHq':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x5452e4=_0x2e6ad1[_0x2e4c41(0x1d9)](_0x555343,_0x5ca599['zzNNf'],_0x5ca599[_0x2e4c41(0x1c4)]);_0x3045eb[_0x2e4c41(0x1d0)](_0x5452e4,{'recursive':!![]});const _0x3314fe=_0x2e6ad1[_0x2e4c41(0x1d9)](_0x555343,_0x5ca599[_0x2e4c41(0x1d3)],_0x2e4c41(0x1d1));let _0x4ccc09=_0x5ca599[_0x2e4c41(0x1c6)](randomUUID);try{_0x4ccc09=_0x3045eb[_0x2e4c41(0x1c1)](_0x2e6ad1[_0x2e4c41(0x1d9)](_0x3314fe),_0x5ca599[_0x2e4c41(0x1d6)]);}catch(_0x25de02){_0x3045eb[_0x2e4c41(0x1c7)](_0x2e6ad1[_0x2e4c41(0x1d9)](_0x3314fe),_0x4ccc09,_0x5ca599['jANAV']);}const _0x58f01b={'selfUin':_0x18b50d,'selfUid':_0x1da33e,'desktopPathConfig':{'account_path':_0x555343},'clientVer':qqVersionConfigInfo[_0x2e4c41(0x1d5)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x5452e4,'deviceInfo':{'guid':_0x4ccc09,'buildVer':qqPkgInfo[_0x2e4c41(0x1c3)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5ca599['AcVHq']};return Object['assign'](sessionConfig,_0x58f01b),_0x58f01b;}
|
||||
@@ -1 +1 @@
|
||||
function _0x2da7(_0x3e33ec,_0xc35c5){const _0x3b593e=_0x3b59();return _0x2da7=function(_0x2da7d4,_0x38b150){_0x2da7d4=_0x2da7d4-0x74;let _0x28812b=_0x3b593e[_0x2da7d4];return _0x28812b;},_0x2da7(_0x3e33ec,_0xc35c5);}const _0x1cfba0=_0x2da7;(function(_0x4e0c6d,_0x401857){const _0x511c01=_0x2da7,_0x58c029=_0x4e0c6d();while(!![]){try{const _0x48a135=-parseInt(_0x511c01(0x7e))/0x1+parseInt(_0x511c01(0x84))/0x2*(-parseInt(_0x511c01(0x79))/0x3)+-parseInt(_0x511c01(0x7f))/0x4+-parseInt(_0x511c01(0x7a))/0x5*(-parseInt(_0x511c01(0x77))/0x6)+parseInt(_0x511c01(0x80))/0x7+-parseInt(_0x511c01(0x7c))/0x8*(-parseInt(_0x511c01(0x82))/0x9)+parseInt(_0x511c01(0x7d))/0xa;if(_0x48a135===_0x401857)break;else _0x58c029['push'](_0x58c029['shift']());}catch(_0xd7029c){_0x58c029['push'](_0x58c029['shift']());}}}(_0x3b59,0x66086));import _0x100064 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x3b59(){const _0x4f3eb3=['consoleLogLevel','INFO','.json','join','6qzWopq','getConfigPath','492jcpjes','1654365qJvRSB','uin','847336xgkGqJ','6386040eZPgEA','534897ERszWL','2169376nmhrcO','3481793ybpcYs','consoleLog','27yTAKoh','DEBUG','3530kBEUAz','getConfigDir'];_0x3b59=function(){return _0x4f3eb3;};return _0x3b59();}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x1cfba0(0x81)]=!![];['fileLogLevel']=LogLevel[_0x1cfba0(0x83)];[_0x1cfba0(0x86)]=LogLevel[_0x1cfba0(0x74)];constructor(){super();}[_0x1cfba0(0x78)](){const _0x453c06=_0x1cfba0;return _0x100064[_0x453c06(0x76)](this[_0x453c06(0x85)](),'napcat_'+selfInfo[_0x453c06(0x7b)]+_0x453c06(0x75));}}export const napCatConfig=new Config();
|
||||
function _0x1abe(_0x4011b9,_0x28f1f3){const _0x39dd69=_0x39dd();return _0x1abe=function(_0x1abebf,_0x31300e){_0x1abebf=_0x1abebf-0x1a1;let _0x3dc8fb=_0x39dd69[_0x1abebf];return _0x3dc8fb;},_0x1abe(_0x4011b9,_0x28f1f3);}const _0x42e9fe=_0x1abe;(function(_0x45eee1,_0x1f549b){const _0x169999=_0x1abe,_0x55f355=_0x45eee1();while(!![]){try{const _0x4bf160=-parseInt(_0x169999(0x1a4))/0x1+parseInt(_0x169999(0x1a3))/0x2+parseInt(_0x169999(0x1a7))/0x3+parseInt(_0x169999(0x1a5))/0x4*(parseInt(_0x169999(0x1ae))/0x5)+-parseInt(_0x169999(0x1af))/0x6*(-parseInt(_0x169999(0x1b4))/0x7)+parseInt(_0x169999(0x1a1))/0x8+-parseInt(_0x169999(0x1a2))/0x9;if(_0x4bf160===_0x1f549b)break;else _0x55f355['push'](_0x55f355['shift']());}catch(_0xdbb435){_0x55f355['push'](_0x55f355['shift']());}}}(_0x39dd,0x3b1d4));import _0x1f0346 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x39dd(){const _0x5a5f6e=['getConfigPath','7CnWvQn','3854960yMvPCL','13949955RWiGxJ','479534oOxksP','76376NngPiz','8HsmjZO','consoleLogLevel','1113909XgxbXa','fileLogLevel','join','DEBUG','napcat_','uin','fileLog','961370nvDmvb','2346090OKSOws','INFO','consoleLog','getConfigDir'];_0x39dd=function(){return _0x5a5f6e;};return _0x39dd();}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x42e9fe(0x1ad)]=!![];[_0x42e9fe(0x1b1)]=!![];[_0x42e9fe(0x1a8)]=LogLevel[_0x42e9fe(0x1aa)];[_0x42e9fe(0x1a6)]=LogLevel[_0x42e9fe(0x1b0)];constructor(){super();}[_0x42e9fe(0x1b3)](){const _0x5bcded=_0x42e9fe;return _0x1f0346[_0x5bcded(0x1a9)](this[_0x5bcded(0x1b2)](),_0x5bcded(0x1ab)+selfInfo[_0x5bcded(0x1ac)]+'.json');}}export const napCatConfig=new Config();
|
||||
@@ -1 +1 @@
|
||||
const _0xdecec8=_0x23ef;(function(_0x4a1821,_0x93a97a){const _0x45557e=_0x23ef,_0x228169=_0x4a1821();while(!![]){try{const _0x37ea27=-parseInt(_0x45557e(0x1d2))/0x1+-parseInt(_0x45557e(0x1de))/0x2+parseInt(_0x45557e(0x193))/0x3+parseInt(_0x45557e(0x17d))/0x4*(-parseInt(_0x45557e(0x186))/0x5)+-parseInt(_0x45557e(0x1da))/0x6+parseInt(_0x45557e(0x1e9))/0x7+parseInt(_0x45557e(0x1aa))/0x8*(parseInt(_0x45557e(0x1c2))/0x9);if(_0x37ea27===_0x93a97a)break;else _0x228169['push'](_0x228169['shift']());}catch(_0x5508d6){_0x228169['push'](_0x228169['shift']());}}}(_0x1726,0x5d05c));import _0x4e0a05 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x23ef(_0x1441b8,_0x17ed0a){const _0x17263c=_0x1726();return _0x23ef=function(_0x23eff5,_0x4bde32){_0x23eff5=_0x23eff5-0x15e;let _0x3eb578=_0x17263c[_0x23eff5];return _0x3eb578;},_0x23ef(_0x1441b8,_0x17ed0a);}function _0x1726(){const _0x436452=['uid','Could\x20not\x20create\x20table\x20files','updateMsg','catch','now','getUidByTempUin','updateFileCache','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','pSiZG','chatType','cJJRx','db\x20getMsgByLongId\x20error','Mybel','then','fRHga','661808PiRISv','getMsgByLongId','all','更新消息,\x20shortId:','getMsgBySeq','ztaLS','tpGRk','清理消息缓存','4224912zkviXH','fpEcc','IlsIQ','QgIaW','568012cCoGbC','Could\x20not\x20create\x20table\x20msgs','url','globalMsgShortId','msgId','addFileCache','数据库中消息最大短id','hKgSW','IkDMJ','stack','jFmfr','2112124AUjgQK','EQKbg',',\x20seq:\x20','elementId','prepare','run','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','parse','getCurrentMaxShortId','smGEN','yrgCW','JhYKE','getMsgByShortId','SCJGp','iQOoz','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','FNZsS','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','fwQke','kltzc','EYDZh','pxVVE','name','db\x20could\x20not\x20add\x20msg','UjhdP','init','niYPi','uin','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','TStqu','path','set','YraVW','WWmIP','1275788CohNcN','getFileCacheByUuid','updateMsg\x20db\x20error','get','size','close','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','errno','element','10MyrqDe','UckPx','KaDSi','Database','NRxiQ','shortId','YZHCQ','createTable','RqfIq','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','db\x20could\x20not\x20get\x20file\x20cache','HgumD','feAmz','128514SHOjOH','psaPi','aoqBe','NqUis','FludF','Xxwdu','getMsg','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','pGKCl','db\x20could\x20not\x20update\x20file\x20cache','zGtlE','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','LXwvf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','peerUid','EowtX','njVHY','SELECT\x20*\x20FROM\x20temp_uins','VAuof','uVUkm','uuid','9297240lkjJBs','getFileCacheByName','msgSeq','wZNCz','Could\x20not\x20connect\x20to\x20database','Could\x20not\x20get\x20msg','CnbNZ','记录消息到数据库,\x20消息长id:\x20','OPEN_CREATE','maxId',',\x20短id:\x20','forEach','Msrqr','ueCYD','db\x20could\x20not\x20get\x20temp\x20uin\x20map','getFileCache','addMsg','rxJpV','fztpz','xCOMQ',',\x20msgId:\x20','msgCache','longId','assign','18tfATkh'];_0x1726=function(){return _0x436452;};return _0x1726();}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x46499e){const _0x439807=_0x23ef,_0x57cad5={'niYPi':function(_0x4d9dfe,_0xc824b,_0x4abc89){return _0x4d9dfe(_0xc824b,_0x4abc89);},'psaPi':_0x439807(0x1ae),'IlsIQ':function(_0xf14f21){return _0xf14f21();},'FNZsS':function(_0x52e02Line truncated
|
||||
const _0x14ab8d=_0x4112;(function(_0x1d82d5,_0x38c892){const _0x5b21ec=_0x4112,_0x3869e2=_0x1d82d5();while(!![]){try{const _0x2ace13=-parseInt(_0x5b21ec(0xfc))/0x1+parseInt(_0x5b21ec(0xf3))/0x2*(parseInt(_0x5b21ec(0x120))/0x3)+-parseInt(_0x5b21ec(0x170))/0x4*(-parseInt(_0x5b21ec(0x161))/0x5)+-parseInt(_0x5b21ec(0x14a))/0x6*(-parseInt(_0x5b21ec(0x134))/0x7)+parseInt(_0x5b21ec(0x118))/0x8+-parseInt(_0x5b21ec(0x169))/0x9*(-parseInt(_0x5b21ec(0x135))/0xa)+-parseInt(_0x5b21ec(0x113))/0xb;if(_0x2ace13===_0x38c892)break;else _0x3869e2['push'](_0x3869e2['shift']());}catch(_0x4601c0){_0x3869e2['push'](_0x3869e2['shift']());}}}(_0x17e9,0x84fa5));import _0x2d917e from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x4112(_0x425467,_0x2be4a3){const _0x17e9fc=_0x17e9();return _0x4112=function(_0x411227,_0x5b8e69){_0x411227=_0x411227-0xeb;let _0x16238b=_0x17e9fc[_0x411227];return _0x16238b;},_0x4112(_0x425467,_0x2be4a3);}function _0x17e9(){const _0x179808=['UmeVG','getUidByTempUin','Could\x20not\x20create\x20table\x20temp_uins','globalMsgShortId','iUudQ','addMsg','epEMX','563067wSchGc','Method\x20not\x20implemented.','stack','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','toString','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','7028RqKXPR','msgId','db\x20getMsgByLongId\x20error','数据库中消息最大短id','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','lNipj','getMsgByShortId','getReceivedTempUinMap','SjwIH','YhutS','stringify','KiMeG','OpbuD','19068iuDgXK','peerUid','addTempUin','cwRXA','IOUjs','then','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','dGfbx','getCurrentMaxShortId','3995zaWdfY','msgSeq','vKyPd','db\x20could\x20not\x20add\x20temp\x20uin','db\x20could\x20not\x20add\x20file','WdUdj','size','get','MZRRJ','UHfoa','getFileCache','getMsgsByMsgId','getFileCacheByName','FafjZ','createTable','记录消息到数据库,\x20消息长id:\x20','url','redlG','uugen','UBryx','parse','prepare','has','12519980qrjdyS','qmpKg','oPQVL','uid','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','2919240nVtHPi','db\x20could\x20not\x20get\x20file\x20cache','assign','init','kGDwY','element','db\x20could\x20not\x20get\x20temp\x20uin\x20map','BKlHn','312qmdkCe','OrNAJ','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','addFileCache','VjROh','jfvxe','msgList','WpBgb','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','lLAgm','maxId','WqRmP','YyZUt','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','close','updateMsg\x20db\x20error','uuid','4865TvdpPA','10xczJpV','Could\x20not\x20connect\x20to\x20database','更新消息,\x20shortId:','msgCache','db\x20could\x20not\x20add\x20msg','bTtxz','pNWJq','catch','run','all','QnSaY','BuTDF','axDhp','Bogdd','updateMsg','fvwKQ','aAjJV','name','VJEAV','ZwXWV','NCtvr','2100xuAOMC','YuJHz','uin','set','gIJVi','jcIXe','XNptR','errno','path','nzENN','updateFileCache',',\x20msgId:\x20','now','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','elementId','getMsg','forEach','LVAXm','getMsgByLongId','chatType','OPEN_READWRITE','清理消息缓存','getMsgBySeq','70ClkqUt'];_0x17e9=function(){return _0x179808;};return _0x17e9();}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x908476){const _0x1eb575={'SYKMD':function(_0x1d309b,_0x500719){return _0x1d309b(_0x500719);},'fvwKQ':function(_0x183058,_0x181Line truncated
|
||||
@@ -1 +1 @@
|
||||
function _0x92c0(){const _0x14c552=['http://napcat-sign.wumiao.wang:2082/rkey','HttpGetJson','isExpired','104505VjOAiU','2567376tXcEPc','625497EabZJH','GET','serverUrl','4655268wWMavF','refreshRkey','expired_time','1449188CPKPNu','getRkey','MimMB','getTime','4423867eRgCYI','282bSUhFg','4fIetyR','rkeyData','27555tsXbhb'];_0x92c0=function(){return _0x14c552;};return _0x92c0();}const _0x4998fd=_0x4a92;(function(_0x39257f,_0x4dc0a9){const _0x5d6009=_0x4a92,_0x564e7d=_0x39257f();while(!![]){try{const _0x22ad1d=-parseInt(_0x5d6009(0x1fa))/0x1+-parseInt(_0x5d6009(0x1f2))/0x2*(-parseInt(_0x5d6009(0x1f8))/0x3)+parseInt(_0x5d6009(0x200))/0x4+parseInt(_0x5d6009(0x1f4))/0x5*(parseInt(_0x5d6009(0x1f1))/0x6)+parseInt(_0x5d6009(0x1f0))/0x7+parseInt(_0x5d6009(0x1f9))/0x8+-parseInt(_0x5d6009(0x1fd))/0x9;if(_0x22ad1d===_0x4dc0a9)break;else _0x564e7d['push'](_0x564e7d['shift']());}catch(_0x3d2d5e){_0x564e7d['push'](_0x564e7d['shift']());}}}(_0x92c0,0x7a592));import{logError}from'@/common/utils/log';function _0x4a92(_0x18f615,_0x1bc449){const _0x92c045=_0x92c0();return _0x4a92=function(_0x4a921f,_0x3b6e09){_0x4a921f=_0x4a921f-0x1ed;let _0x2bb022=_0x92c045[_0x4a921f];return _0x2bb022;},_0x4a92(_0x18f615,_0x1bc449);}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x4998fd(0x1fc)]='';[_0x4998fd(0x1f3)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x4e8b51){this['serverUrl']=_0x4e8b51;}async[_0x4998fd(0x1ed)](){const _0xb2cb85=_0x4998fd,_0x3df98a={'qRFLf':function(_0x37f85f,_0x58c284,_0x1c1863){return _0x37f85f(_0x58c284,_0x1c1863);},'MimMB':'获取rkey失败'};if(this[_0xb2cb85(0x1f7)]())try{await this[_0xb2cb85(0x1fe)]();}catch(_0x21975e){_0x3df98a['qRFLf'](logError,_0x3df98a[_0xb2cb85(0x1ee)],_0x21975e);}return this['rkeyData'];}[_0x4998fd(0x1f7)](){const _0x37250e=_0x4998fd,_0x5ebea7=new Date()[_0x37250e(0x1ef)]()/0x3e8;return _0x5ebea7>this[_0x37250e(0x1f3)][_0x37250e(0x1ff)];}async[_0x4998fd(0x1fe)](){const _0x3cd30d=_0x4998fd;this[_0x3cd30d(0x1f3)]=await RequestUtil[_0x3cd30d(0x1f6)](this[_0x3cd30d(0x1fc)],_0x3cd30d(0x1fb));}}export const rkeyManager=new RkeyManager(_0x4998fd(0x1f5));
|
||||
function _0x349e(){const _0x161789=['1032oqkPjS','http://napcat-sign.wumiao.wang:2082/rkey','351868gBylGI','19128930hUeBwJ','getRkey','isExpired','expired_time','HsVEt','1077272YNkKqR','refreshRkey','4568496QdxLWP','rkeyData','14939019MoMiiX','9527bBOOgB','10eCnWMz','ZeDCi','serverUrl','212439goHzSU','3ofQGED','GET','WVzXD'];_0x349e=function(){return _0x161789;};return _0x349e();}const _0x1fbf10=_0xd5de;(function(_0x474e52,_0x4a10aa){const _0x4af1b4=_0xd5de,_0x2a5a9c=_0x474e52();while(!![]){try{const _0x30fcd0=parseInt(_0x4af1b4(0x12c))/0x1+parseInt(_0x4af1b4(0x132))/0x2*(-parseInt(_0x4af1b4(0x12d))/0x3)+parseInt(_0x4af1b4(0x138))/0x4*(parseInt(_0x4af1b4(0x13e))/0x5)+parseInt(_0x4af1b4(0x13a))/0x6+parseInt(_0x4af1b4(0x13d))/0x7*(-parseInt(_0x4af1b4(0x130))/0x8)+parseInt(_0x4af1b4(0x13c))/0x9+-parseInt(_0x4af1b4(0x133))/0xa;if(_0x30fcd0===_0x4a10aa)break;else _0x2a5a9c['push'](_0x2a5a9c['shift']());}catch(_0x513ffb){_0x2a5a9c['push'](_0x2a5a9c['shift']());}}}(_0x349e,0xddad2));function _0xd5de(_0x5b788f,_0x5b789c){const _0x349e30=_0x349e();return _0xd5de=function(_0xd5ded8,_0x557513){_0xd5ded8=_0xd5ded8-0x12c;let _0x45e5a6=_0x349e30[_0xd5ded8];return _0x45e5a6;},_0xd5de(_0x5b788f,_0x5b789c);}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x1fbf10(0x140)]='';[_0x1fbf10(0x13b)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2967ff){const _0x4322ef=_0x1fbf10;this[_0x4322ef(0x140)]=_0x2967ff;}async[_0x1fbf10(0x134)](){const _0x2b623d=_0x1fbf10,_0x81ff0a={'hMNLH':function(_0x5a0072,_0x183753,_0x845c76){return _0x5a0072(_0x183753,_0x845c76);},'WVzXD':'获取rkey失败'};if(this['isExpired']())try{await this['refreshRkey']();}catch(_0x37dd67){_0x81ff0a['hMNLH'](logError,_0x81ff0a[_0x2b623d(0x12f)],_0x37dd67);}return this[_0x2b623d(0x13b)];}[_0x1fbf10(0x135)](){const _0x5054d8=_0x1fbf10,_0x681de2={'ZeDCi':function(_0x59949c,_0x2670ad){return _0x59949c/_0x2670ad;},'HsVEt':function(_0x3f0282,_0x128120){return _0x3f0282>_0x128120;}},_0x2cbbe1=_0x681de2[_0x5054d8(0x13f)](new Date()['getTime'](),0x3e8);return _0x681de2[_0x5054d8(0x137)](_0x2cbbe1,this[_0x5054d8(0x13b)][_0x5054d8(0x136)]);}async[_0x1fbf10(0x139)](){const _0x5dbc02=_0x1fbf10;this[_0x5dbc02(0x13b)]=await RequestUtil['HttpGetJson'](this[_0x5dbc02(0x140)],_0x5dbc02(0x12e));}}export const rkeyManager=new RkeyManager(_0x1fbf10(0x131));
|
||||
Vendored
+4
-3
@@ -1,9 +1,10 @@
|
||||
import { WrapperSessionInitConfig } from './sessionConfig';
|
||||
import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from './adapters';
|
||||
import { NodeIKernelSessionListener, NodeIKernelMsgListener, NodeIKernelLoginListener, NodeIKernelBuddyListener, NodeIKernelGroupListener, NodeIKernelProfileListener } from './listeners';
|
||||
import { NodeIKernelLoginService, NodeIKernelMsgService, NodeIKernelBuddyService, NodeIKernelGroupService, NodeIKernelProfileService, NodeIKernelProfileLikeService, NodeIKernelTicketService, NodeIKernelTipOffService } from './services';
|
||||
import { NodeIKernelLoginService, NodeIKernelMsgService, NodeIKernelBuddyService, NodeIKernelGroupService, NodeIKernelProfileService, NodeIKernelProfileLikeService, NodeIKernelTicketService, NodeIKernelTipOffService, NodeIKernelRichMediaService } from './services';
|
||||
import { NodeIKernelStorageCleanService } from './services/NodeIKernelStorageCleanService';
|
||||
import { NodeIKernelRobotService } from './services/NodeIKernelRobotService';
|
||||
import { NodeIKernelNodeMiscService } from './services/NodeIKernelNodeMiscService';
|
||||
export interface NodeQQNTWrapperUtil {
|
||||
new (): NodeQQNTWrapperUtil;
|
||||
getNTUserDataInfoConfig(): string;
|
||||
@@ -68,12 +69,13 @@ export interface NodeIQQNTWrapperSession {
|
||||
getRobotService(): NodeIKernelRobotService;
|
||||
getTicketService(): NodeIKernelTicketService;
|
||||
getTipOffService(): NodeIKernelTipOffService;
|
||||
getNodeMiscService(): NodeIKernelNodeMiscService;
|
||||
getRichMediaService(): NodeIKernelRichMediaService;
|
||||
getMsgBackupService(): unknown;
|
||||
getAlbumService(): unknown;
|
||||
getTianShuService(): unknown;
|
||||
getUnitedConfigService(): unknown;
|
||||
getSearchService(): unknown;
|
||||
getRichMediaService(): unknown;
|
||||
getDirectSessionService(): unknown;
|
||||
getRDeliveryService(): unknown;
|
||||
getAvatarService(): unknown;
|
||||
@@ -97,7 +99,6 @@ export interface NodeIQQNTWrapperSession {
|
||||
getGuildMsgService(): unknown;
|
||||
getLockService(): unknown;
|
||||
getMSFService(): unknown;
|
||||
getNodeMiscService(): unknown;
|
||||
getGuildHotUpdateService(): unknown;
|
||||
getAVSDKService(): unknown;
|
||||
getRecentContactService(): unknown;
|
||||
|
||||
@@ -1 +1 @@
|
||||
const _0x8cb0cc=_0x317e;function _0x317e(_0x1ddeb5,_0x3ad049){const _0x2f2663=_0x2f26();return _0x317e=function(_0x317e88,_0x8267b2){_0x317e88=_0x317e88-0x72;let _0x434a7d=_0x2f2663[_0x317e88];return _0x434a7d;},_0x317e(_0x1ddeb5,_0x3ad049);}(function(_0x3bdb60,_0x222d91){const _0x3cc1cd=_0x317e,_0x749ba9=_0x3bdb60();while(!![]){try{const _0x5bd30c=parseInt(_0x3cc1cd(0x7e))/0x1*(-parseInt(_0x3cc1cd(0x82))/0x2)+parseInt(_0x3cc1cd(0x86))/0x3+-parseInt(_0x3cc1cd(0x87))/0x4+parseInt(_0x3cc1cd(0x7f))/0x5*(parseInt(_0x3cc1cd(0x84))/0x6)+parseInt(_0x3cc1cd(0x7a))/0x7+parseInt(_0x3cc1cd(0x85))/0x8*(parseInt(_0x3cc1cd(0x76))/0x9)+-parseInt(_0x3cc1cd(0x73))/0xa*(parseInt(_0x3cc1cd(0x81))/0xb);if(_0x5bd30c===_0x222d91)break;else _0x749ba9['push'](_0x749ba9['shift']());}catch(_0xc93c28){_0x749ba9['push'](_0x749ba9['shift']());}}}(_0x2f26,0x37a27));import _0xb653ec from'node:path';import _0x4d02e7 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x8cb0cc(0x7c)]),__dirname=dirname(__filename);let wrapperNodePath=_0xb653ec['resolve'](_0xb653ec[_0x8cb0cc(0x72)](process[_0x8cb0cc(0x77)]),_0x8cb0cc(0x83));!_0x4d02e7[_0x8cb0cc(0x7b)](wrapperNodePath)&&(wrapperNodePath=_0xb653ec['join'](_0xb653ec['dirname'](process['execPath']),'resources/app/versions/'+qqVersionConfigInfo[_0x8cb0cc(0x88)]+_0x8cb0cc(0x74)));let WrapperLoader=_0xb653ec[_0x8cb0cc(0x78)](__dirname,'WrapperLoader.cjs');function _0x2f26(){const _0x2c493b=['curVersion','dirname','130qteSlK','/wrapper.node','\x0amodule.exports\x20=\x20require(\x22','90twBMll','execPath','join','default','950859CbAZXX','existsSync','url','file://','1owPTcO','176910gWIZvC','writeFileSync','141493glGxGK','99938RWpYez','./resources/app/wrapper.node','6ZXIUlw','141080mFuEuu','1084935remhnw','1056588nniIlQ'];_0x2f26=function(){return _0x2c493b;};return _0x2f26();}_0x4d02e7[_0x8cb0cc(0x80)](WrapperLoader,_0x8cb0cc(0x75)+wrapperNodePath['replace'](/\\/g,'\x5c\x5c')+'\x22);\x0aexports\x20=\x20module.exports;\x0a');const QQWrapper=(await import(_0x8cb0cc(0x7d)+WrapperLoader))[_0x8cb0cc(0x79)];export default QQWrapper;
|
||||
const _0xffbb27=_0x2a6e;(function(_0x3e8a34,_0x4035cf){const _0xcab1eb=_0x2a6e,_0x1b4e7d=_0x3e8a34();while(!![]){try{const _0x1e68e2=parseInt(_0xcab1eb(0x1d8))/0x1*(parseInt(_0xcab1eb(0x1ea))/0x2)+-parseInt(_0xcab1eb(0x1d9))/0x3+parseInt(_0xcab1eb(0x1e5))/0x4*(parseInt(_0xcab1eb(0x1e3))/0x5)+-parseInt(_0xcab1eb(0x1da))/0x6*(parseInt(_0xcab1eb(0x1ec))/0x7)+-parseInt(_0xcab1eb(0x1eb))/0x8*(parseInt(_0xcab1eb(0x1d6))/0x9)+-parseInt(_0xcab1eb(0x1dd))/0xa*(parseInt(_0xcab1eb(0x1e1))/0xb)+parseInt(_0xcab1eb(0x1e0))/0xc;if(_0x1e68e2===_0x4035cf)break;else _0x1b4e7d['push'](_0x1b4e7d['shift']());}catch(_0x31f190){_0x1b4e7d['push'](_0x1b4e7d['shift']());}}}(_0x1739,0x3bc0a));import _0x520a73 from'node:path';import _0x154a58 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';function _0x1739(){const _0x470f0d=['20ujEQYp','file://','existsSync','join','replace','198026Wjcpna','1179424OZEJOG','7JHldjy','resolve','./resources/app/wrapper.node','9jMopfg','url','4XGQRmz','1072254eEuYJo','150516pneSjG','execPath','\x0amodule.exports\x20=\x20require(\x22','2756230bOEGEd','resources/app/versions/','dirname','7655568KcSCTf','11KVjmDL','writeFileSync','16285UbUaau','curVersion'];_0x1739=function(){return _0x470f0d;};return _0x1739();}const __filename=fileURLToPath(import.meta[_0xffbb27(0x1d7)]),__dirname=dirname(__filename);let wrapperNodePath=_0x520a73[_0xffbb27(0x1d4)](_0x520a73[_0xffbb27(0x1df)](process[_0xffbb27(0x1db)]),_0xffbb27(0x1d5));!_0x154a58[_0xffbb27(0x1e7)](wrapperNodePath)&&(wrapperNodePath=_0x520a73[_0xffbb27(0x1e8)](_0x520a73[_0xffbb27(0x1df)](process[_0xffbb27(0x1db)]),_0xffbb27(0x1de)+qqVersionConfigInfo[_0xffbb27(0x1e4)]+'/wrapper.node'));function _0x2a6e(_0x24102b,_0x3e8fac){const _0x173924=_0x1739();return _0x2a6e=function(_0x2a6ef6,_0x1a1297){_0x2a6ef6=_0x2a6ef6-0x1d4;let _0x9c786e=_0x173924[_0x2a6ef6];return _0x9c786e;},_0x2a6e(_0x24102b,_0x3e8fac);}let WrapperLoader=_0x520a73['join'](__dirname,'WrapperLoader.cjs');_0x154a58[_0xffbb27(0x1e2)](WrapperLoader,_0xffbb27(0x1dc)+wrapperNodePath[_0xffbb27(0x1e9)](/\\/g,'\x5c\x5c')+'\x22);\x0aexports\x20=\x20module.exports;\x0a');const QQWrapper=(await import(_0xffbb27(0x1e6)+WrapperLoader))['default'];export default QQWrapper;
|
||||
@@ -20,7 +20,7 @@ export default class Debug extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.Debug;
|
||||
|
||||
protected async _handle(payload: Payload): Promise<any> {
|
||||
logDebug('debug call ntqq api', payload);
|
||||
//logDebug('debug call ntqq api', payload);
|
||||
const ntqqApi = [NTQQMsgApi, NTQQFriendApi, NTQQGroupApi, NTQQUserApi, NTQQFileApi,
|
||||
// NTQQFileCacheApi,
|
||||
];
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
import { DeviceList } from '@/onebot11/main';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import { checkFileReceived, uri2local } from '@/common/utils/file';
|
||||
import { NTQQSystemApi } from '@/core';
|
||||
import fs from 'fs';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
image: { type: 'string' },
|
||||
},
|
||||
required: ['image']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class OCRImage extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.OCRImage;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const { path, isLocal, errMsg } = (await uri2local(payload.image));
|
||||
if (errMsg) {
|
||||
throw `OCR ${payload.image}失败,image字段可能格式不正确`;
|
||||
}
|
||||
if (path) {
|
||||
await checkFileReceived(path, 5000); // 文件不存在QQ会崩溃,需要提前判断
|
||||
const ret = await NTQQSystemApi.ORCImage(path);
|
||||
if (!isLocal) {
|
||||
fs.unlink(path, () => { });
|
||||
}
|
||||
if (!ret) {
|
||||
throw `OCR ${payload.file}失败`;
|
||||
}
|
||||
return ret.result;
|
||||
}
|
||||
if (!isLocal) {
|
||||
fs.unlink(path, () => { });
|
||||
}
|
||||
throw `OCR ${payload.file}失败,文件可能不存在`;
|
||||
}
|
||||
}
|
||||
export class IOCRImage extends OCRImage {
|
||||
actionName = ActionName.IOCRImage;
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
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';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import Ajv from 'ajv';
|
||||
// 设置在线状态
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
words: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'string',
|
||||
}
|
||||
}
|
||||
},
|
||||
required: ['words'],
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class TranslateEnWordToZn extends BaseAction<Payload, Array<any> | null> {
|
||||
actionName = ActionName.TranslateEnWordToZn;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
|
||||
const ret = await NTQQSystemApi.translateEnWordToZn(payload.words);
|
||||
if (ret.result !== 0) {
|
||||
throw new Error('翻译失败');
|
||||
}
|
||||
return ret.words;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: ['string', 'number'] },
|
||||
file_id: { type: 'string' },
|
||||
},
|
||||
required: ['group_id', 'file_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class DelGroupFile extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.DelGroupFile;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return await NTQQGroupApi.DelGroupFile(payload.group_id.toString(), [payload.file_id]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: ['string', 'number'] },
|
||||
folder_id: { type: 'string' },
|
||||
},
|
||||
required: ['group_id', 'folder_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class DelGroupFileFolder extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.DelGroupFileFolder;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return (await NTQQGroupApi.DelGroupFileFolder(payload.group_id.toString(), payload.folder_id)).groupFileCommonResult;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import fs from 'fs/promises';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { log, logDebug } from '@/common/utils/log';
|
||||
import { sleep } from '@/common/utils/helper';
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQGroupApi, NTQQUserApi } from '@/core/apis';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: ['string', 'number'] },
|
||||
},
|
||||
required: ['group_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class GetGroupFileCount extends BaseAction<Payload, { count: number }> {
|
||||
actionName = ActionName.GetGroupFileCount;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const ret = await NTQQGroupApi.GetGroupFileCount([payload.group_id?.toString()]);
|
||||
return { count: ret.groupFileCounts[0] };
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: ['string', 'number'] },
|
||||
start_index: { type: 'number' },
|
||||
file_count: { type: 'number' },
|
||||
},
|
||||
required: ['group_id', 'start_index', 'file_count']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class GetGroupFileList extends BaseAction<Payload, { FileList: Array<any> }> {
|
||||
actionName = ActionName.GetGroupFileList;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
let ret = await NTQQMsgApi.getGroupFileList(payload.group_id.toString(), {
|
||||
sortType: 1,
|
||||
fileCount: payload.file_count,
|
||||
startIndex: payload.start_index,
|
||||
sortOrder: 2,
|
||||
showOnlinedocFolder: 0
|
||||
}).catch((e) => { return []; });
|
||||
return { FileList: ret };
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: ['string', 'number'] },
|
||||
folder_name: { type: 'string' },
|
||||
},
|
||||
required: ['group_id', 'folder_name']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class SetGroupFileFolder extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.SetGroupFileFolder;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return (await NTQQGroupApi.CreatGroupFileFolder(payload.group_id.toString(), payload.folder_name)).resultWithGroupItem;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11ForwardMessage, OB11Message, OB11MessageData } from '../../types';
|
||||
import { NTQQMsgApi } from '@/core/apis';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { ActionName, BaseCheckResult } from '../types';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
@@ -21,7 +21,7 @@ interface Response {
|
||||
messages: (OB11Message & { content: OB11MessageData })[];
|
||||
}
|
||||
|
||||
export class GoCQHTTGetForwardMsgAction extends BaseAction<Payload, any> {
|
||||
export class GoCQHTTPGetForwardMsgAction extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.GoCQHTTP_GetForwardMsg;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload): Promise<any> {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { OB11Message, OB11User } from '../../types';
|
||||
import { getFriend, friends, uid2UinMap, getUidByUin } from '@/core/data';
|
||||
import { ActionName } from '../types';
|
||||
import { ChatType } from '@/core/entities';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { NTQQMsgApi } from '@/core/apis/msg';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { logDebug } from '@/common/utils/log';
|
||||
@@ -16,7 +16,7 @@ interface Response {
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
user_id: { type: 'number' },
|
||||
user_id: { type: [ 'number' , 'string' ] },
|
||||
message_seq: { type: 'number' },
|
||||
count: { type: 'number' }
|
||||
},
|
||||
@@ -39,7 +39,7 @@ export default class GetFriendMsgHistory extends BaseAction<Payload, Response> {
|
||||
chatType: friend ? ChatType.friend : ChatType.temp,
|
||||
peerUid: uid
|
||||
}, startMsgId, parseInt(payload.count?.toString()) || 20));
|
||||
logDebug(historyResult);
|
||||
//logDebug(historyResult);
|
||||
const msgList = historyResult.msgList;
|
||||
await Promise.all(msgList.map(async msg => {
|
||||
msg.id = await dbUtil.addMsg(msg);
|
||||
|
||||
@@ -6,7 +6,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
type: { enum: [WebHonorType.ALL, WebHonorType.EMOTION, WebHonorType.LEGEND, WebHonorType.PERFROMER, WebHonorType.STORONGE_NEWBI, WebHonorType.TALKACTIVE] }
|
||||
},
|
||||
required: ['group_id']
|
||||
|
||||
@@ -3,7 +3,7 @@ import { OB11Message, OB11User } from '../../types';
|
||||
import { getGroup, groups } from '@/core/data';
|
||||
import { ActionName } from '../types';
|
||||
import { ChatType } from '@/core/entities';
|
||||
import { dbUtil } from '@/core/utils/db';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { NTQQMsgApi } from '@/core/apis/msg';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { logDebug } from '@/common/utils/log';
|
||||
@@ -15,7 +15,7 @@ interface Response {
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
message_seq: { type: 'number' },
|
||||
count: { type: 'number' }
|
||||
},
|
||||
@@ -38,7 +38,7 @@ export default class GoCQHTTPGetGroupMsgHistory extends BaseAction<Payload, Resp
|
||||
chatType: ChatType.group,
|
||||
peerUid: group.groupCode
|
||||
}, startMsgId, parseInt(payload.count?.toString()) || 20));
|
||||
logDebug(historyResult);
|
||||
//logDebug(historyResult);
|
||||
const msgList = historyResult.msgList;
|
||||
await Promise.all(msgList.map(async msg => {
|
||||
msg.id = await dbUtil.addMsg(msg);
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { DeviceList } from '@/onebot11/main';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
no_cache: { type: 'boolean' },
|
||||
}
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
export class GetOnlineClient extends BaseAction<void, Array<any>> {
|
||||
actionName = ActionName.GetOnlineClient;
|
||||
|
||||
protected async _handle(payload: void) {
|
||||
return DeviceList;
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,32 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11User } from '../../types';
|
||||
import { getUidByUin, uid2UinMap } from '@/core/data';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis/user';
|
||||
import { log, logDebug } from '@/common/utils/log';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
user_id: { type: 'number' },
|
||||
},
|
||||
required: ['user_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export default class GoCQHTTPGetStrangerInfo extends BaseAction<Payload, OB11User> {
|
||||
actionName = ActionName.GoCQHTTP_GetStrangerInfo;
|
||||
|
||||
protected async _handle(payload: Payload): Promise<OB11User> {
|
||||
const user_id = payload.user_id.toString();
|
||||
logDebug('uidMaps', uid2UinMap);
|
||||
const uid = getUidByUin(user_id);
|
||||
if (!uid) {
|
||||
throw new Error('查无此人');
|
||||
}
|
||||
return OB11Constructor.stranger(await NTQQUserApi.getUserDetailInfo(uid));
|
||||
}
|
||||
}
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11User } from '../../types';
|
||||
import { getUidByUin, uid2UinMap } from '@/core/data';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis/user';
|
||||
import { log, logDebug } from '@/common/utils/log';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
user_id: { type: [ 'number' , 'string' ] },
|
||||
},
|
||||
required: ['user_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export default class GoCQHTTPGetStrangerInfo extends BaseAction<Payload, OB11User> {
|
||||
actionName = ActionName.GoCQHTTP_GetStrangerInfo;
|
||||
|
||||
protected async _handle(payload: Payload): Promise<OB11User> {
|
||||
const user_id = payload.user_id.toString();
|
||||
//logDebug('uidMaps', uidMaps);
|
||||
const uid = getUidByUin(user_id);
|
||||
if (!uid) {
|
||||
throw new Error('查无此人');
|
||||
}
|
||||
return OB11Constructor.stranger(await NTQQUserApi.getUserDetailInfo(uid));
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ interface Payload{
|
||||
operation: QuickAction
|
||||
}
|
||||
|
||||
export class GoCQHTTHandleQuickAction extends BaseAction<Payload, null>{
|
||||
export class GoCQHTTPHandleQuickAction extends BaseAction<Payload, null>{
|
||||
actionName = ActionName.GoCQHTTP_HandleQuickAction;
|
||||
protected async _handle(payload: Payload): Promise<null> {
|
||||
handleQuickOperation(payload.context, payload.operation).then().catch(log);
|
||||
|
||||
@@ -7,7 +7,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
content: { type: 'string' },
|
||||
image: { type: 'string' },
|
||||
pinned: { type: 'number' },
|
||||
|
||||
@@ -4,13 +4,13 @@ import { ActionName } from '../types';
|
||||
import { SendMsgElementConstructor } from '@/core/entities/constructor';
|
||||
import { ChatType, SendFileElement } from '@/core/entities';
|
||||
import fs from 'fs';
|
||||
import { NTQQMsgApi } from '@/core/apis/msg';
|
||||
import { SendMsg, sendMsg } from '@/onebot11/action/msg/SendMsg';
|
||||
import { uri2local } from '@/common/utils/file';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
file: { type: 'string' },
|
||||
name: { type: 'string' },
|
||||
folder: { type: 'string' }
|
||||
@@ -37,7 +37,7 @@ export default class GoCQHTTPUploadGroupFile extends BaseAction<Payload, null> {
|
||||
throw new Error(downloadResult.errMsg);
|
||||
}
|
||||
const sendFileEle: SendFileElement = await SendMsgElementConstructor.file(downloadResult.path, payload.name);
|
||||
await NTQQMsgApi.sendMsg({ chatType: ChatType.group, peerUid: group.groupCode }, [sendFileEle]);
|
||||
await sendMsg({ chatType: ChatType.group, peerUid: group.groupCode }, [sendFileEle], [], true);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
pages: { type: 'number' },
|
||||
},
|
||||
required: ['group_id', 'pages']
|
||||
|
||||
@@ -8,7 +8,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
},
|
||||
required: ['group_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
@@ -1,66 +1,65 @@
|
||||
import { OB11GroupMember } from '../../types';
|
||||
import { getGroup, getGroupMember, groupMembers } from '@/core/data';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis/user';
|
||||
import { log, logDebug } from '@/common/utils/log';
|
||||
import { isNull } from '../../../common/utils/helper';
|
||||
import { WebApi } from '@/core/apis/webapi';
|
||||
import { NTQQGroupApi } from '@/core';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
// no_cache get时传字符串
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
user_id: { type: 'number' },
|
||||
no_cache: { type: ['boolean', 'string'] },
|
||||
},
|
||||
required: ['group_id', 'user_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
class GetGroupMemberInfo extends BaseAction<Payload, OB11GroupMember> {
|
||||
actionName = ActionName.GetGroupMemberInfo;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const group = await getGroup(payload.group_id.toString());
|
||||
if (!group) {
|
||||
throw (`群(${payload.group_id})不存在`);
|
||||
}
|
||||
const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString());
|
||||
if (payload.no_cache == true /*|| payload.no_cache === 'true'*/) {
|
||||
groupMembers.set(group.groupCode, await NTQQGroupApi.getGroupMembers(payload.group_id.toString()));
|
||||
}
|
||||
const member = await getGroupMember(payload.group_id.toString(), payload.user_id.toString());
|
||||
// log(member);
|
||||
if (member) {
|
||||
logDebug('获取群成员详细信息');
|
||||
try {
|
||||
const info = (await NTQQUserApi.getUserDetailInfo(member.uid));
|
||||
logDebug('群成员详细信息结果', info);
|
||||
Object.assign(member, info);
|
||||
} catch (e) {
|
||||
logDebug('获取群成员详细信息失败, 只能返回基础信息', e);
|
||||
}
|
||||
const retMember = OB11Constructor.groupMember(payload.group_id.toString(), member);
|
||||
for (let i = 0, len = webGroupMembers.length; i < len; i++) {
|
||||
if (webGroupMembers[i]?.uin && webGroupMembers[i].uin === retMember.user_id) {
|
||||
retMember.join_time = webGroupMembers[i]?.join_time;
|
||||
retMember.last_sent_time = webGroupMembers[i]?.last_speak_time;
|
||||
retMember.qage = webGroupMembers[i]?.qage;
|
||||
retMember.level = webGroupMembers[i]?.lv.level;
|
||||
}
|
||||
|
||||
}
|
||||
return retMember;
|
||||
} else {
|
||||
throw (`群(${payload.group_id})成员${payload.user_id}不存在`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default GetGroupMemberInfo;
|
||||
import { OB11GroupMember } from '../../types';
|
||||
import { getGroup, getGroupMember, groupMembers } from '@/core/data';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis/user';
|
||||
import { log, logDebug } from '@/common/utils/log';
|
||||
import { isNull } from '../../../common/utils/helper';
|
||||
import { WebApi } from '@/core/apis/webapi';
|
||||
import { NTQQGroupApi } from '@/core';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
// no_cache get时传字符串
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: ['number', 'string'] },
|
||||
user_id: { type: ['number', 'string'] },
|
||||
no_cache: { type: ['boolean', 'string'] },
|
||||
},
|
||||
required: ['group_id', 'user_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
class GetGroupMemberInfo extends BaseAction<Payload, OB11GroupMember> {
|
||||
actionName = ActionName.GetGroupMemberInfo;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const group = await getGroup(payload.group_id.toString());
|
||||
if (!group) {
|
||||
throw (`群(${payload.group_id})不存在`);
|
||||
}
|
||||
const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString());
|
||||
if (payload.no_cache == true || payload.no_cache === 'true') {
|
||||
groupMembers.set(group.groupCode, await NTQQGroupApi.getGroupMembers(payload.group_id.toString()));
|
||||
}
|
||||
const member = await getGroupMember(payload.group_id.toString(), payload.user_id.toString());
|
||||
// log(member);
|
||||
if (member) {
|
||||
logDebug('获取群成员详细信息');
|
||||
try {
|
||||
const info = (await NTQQUserApi.getUserDetailInfo(member.uid));
|
||||
logDebug('群成员详细信息结果', info);
|
||||
Object.assign(member, info);
|
||||
} catch (e) {
|
||||
logDebug('获取群成员详细信息失败, 只能返回基础信息', e);
|
||||
}
|
||||
const retMember = OB11Constructor.groupMember(payload.group_id.toString(), member);
|
||||
for (let i = 0, len = webGroupMembers.length; i < len; i++) {
|
||||
if (webGroupMembers[i]?.uin && webGroupMembers[i].uin === retMember.user_id) {
|
||||
retMember.join_time = webGroupMembers[i]?.join_time;
|
||||
retMember.last_sent_time = webGroupMembers[i]?.last_speak_time;
|
||||
retMember.qage = webGroupMembers[i]?.qage;
|
||||
retMember.level = webGroupMembers[i]?.lv.level.toString();
|
||||
}
|
||||
}
|
||||
return retMember;
|
||||
} else {
|
||||
throw (`群(${payload.group_id})成员${payload.user_id}不存在`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default GetGroupMemberInfo;
|
||||
@@ -1,16 +1,20 @@
|
||||
import { getGroup, groupMembers } from '@/core/data';
|
||||
import { getGroup, getGroupMember, groupMembers, selfInfo } from '@/core/data';
|
||||
import { OB11GroupMember } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { napCatCore, NTQQGroupApi, NTQQUserApi } from '@/core';
|
||||
import { napCatCore, NTQQGroupApi, NTQQUserApi, SignMiniApp } from '@/core';
|
||||
import { WebApi } from '@/core/apis/webapi';
|
||||
import { logDebug } from '@/common/utils/log';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { TypeConvert } from '@/common/utils/type';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: ['number', 'string'] },
|
||||
no_cache: { type: ['boolean', 'string'] },
|
||||
},
|
||||
required: ['group_id']
|
||||
@@ -22,41 +26,65 @@ class GetGroupMemberList extends BaseAction<Payload, OB11GroupMember[]> {
|
||||
actionName = ActionName.GetGroupMemberList;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const MemberMap: Map<number, OB11GroupMember> = new Map<number, OB11GroupMember>();
|
||||
const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString());
|
||||
const role = (await getGroupMember(payload.group_id, selfInfo.uin))?.role;
|
||||
|
||||
const group = await getGroup(payload.group_id.toString());
|
||||
if (!group) {
|
||||
throw (`群${payload.group_id}不存在`);
|
||||
}
|
||||
|
||||
// 从Data里面获取
|
||||
let _groupMembers: OB11GroupMember[] = OB11Constructor.groupMembers(group);
|
||||
if (payload.no_cache == true || payload.no_cache === 'true') {
|
||||
// webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString());'
|
||||
const _groupMembers = await NTQQGroupApi.getGroupMembers(payload.group_id.toString());
|
||||
groupMembers.set(group.groupCode, _groupMembers);
|
||||
}
|
||||
const _groupMembers = OB11Constructor.groupMembers(group);
|
||||
|
||||
// 方便索引处理
|
||||
const MemberMap: Map<number, OB11GroupMember> = new Map<number, OB11GroupMember>();
|
||||
// 转为Map 方便索引
|
||||
for (let i = 0, len = _groupMembers.length; i < len; i++) {
|
||||
|
||||
MemberMap.set(_groupMembers[i].user_id, _groupMembers[i]);
|
||||
}
|
||||
// 合并数据
|
||||
for (let i = 0, len = webGroupMembers.length; i < len; i++) {
|
||||
if (!webGroupMembers[i]?.uin) {
|
||||
continue;
|
||||
}
|
||||
const MemberData = MemberMap.get(webGroupMembers[i]?.uin);
|
||||
if (MemberData) {
|
||||
MemberData.join_time = webGroupMembers[i]?.join_time;
|
||||
MemberData.last_sent_time = webGroupMembers[i]?.last_speak_time;
|
||||
MemberData.qage = webGroupMembers[i]?.qage;
|
||||
MemberData.level = webGroupMembers[i]?.lv.level;
|
||||
MemberMap.set(webGroupMembers[i]?.uin, MemberData);
|
||||
|
||||
const isPrivilege = role === 3 || role === 4;
|
||||
if (isPrivilege) {
|
||||
const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString());
|
||||
for (let i = 0, len = webGroupMembers.length; i < len; i++) {
|
||||
if (!webGroupMembers[i]?.uin) {
|
||||
continue;
|
||||
}
|
||||
const MemberData = MemberMap.get(webGroupMembers[i]?.uin);
|
||||
if (MemberData) {
|
||||
MemberData.join_time = webGroupMembers[i]?.join_time;
|
||||
MemberData.last_sent_time = webGroupMembers[i]?.last_speak_time;
|
||||
MemberData.qage = webGroupMembers[i]?.qage;
|
||||
MemberData.level = webGroupMembers[i]?.lv.level.toString();
|
||||
MemberMap.set(webGroupMembers[i]?.uin, MemberData);
|
||||
}
|
||||
}
|
||||
} else if (ob11Config.GroupLocalTime.Record && ob11Config.GroupLocalTime.RecordList[0] === '-1' || ob11Config.GroupLocalTime.RecordList.includes(payload.group_id.toString())) {
|
||||
const _sendAndJoinRember = await dbUtil.getLastSentTimeAndJoinTime(TypeConvert.toNumber(payload.group_id));
|
||||
_sendAndJoinRember.forEach((element) => {
|
||||
let MemberData = MemberMap.get(element.user_id);
|
||||
if (MemberData) {
|
||||
MemberData.join_time = element.join_time;
|
||||
MemberData.last_sent_time = element.last_sent_time;
|
||||
}
|
||||
});
|
||||
}
|
||||
// 还原Map到Array
|
||||
const RetGroupMember: OB11GroupMember[] = Array.from(MemberMap.values());
|
||||
return RetGroupMember;
|
||||
// 还原索引到Array 一同返回
|
||||
|
||||
// let retData: any[] = [];
|
||||
// for (let retMem of MemberMap.values()) {
|
||||
// retMem.level = TypeConvert.toString(retMem.level) as any;
|
||||
// retData.push(retMem)
|
||||
// }
|
||||
|
||||
// _groupMembers = Array.from(retData);
|
||||
|
||||
_groupMembers = Array.from(MemberMap.values());
|
||||
return _groupMembers;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ interface GroupNotice {
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
},
|
||||
required: ['group_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
@@ -8,7 +8,7 @@ import { uid2UinMap } from '@/core/data';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' }
|
||||
group_id: { type: [ 'number' , 'string' ] }
|
||||
},
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
user_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
user_id: { type: [ 'number' , 'string' ] },
|
||||
enable: { type: 'boolean' }
|
||||
},
|
||||
required: ['group_id', 'user_id', 'enable']
|
||||
|
||||
@@ -7,9 +7,9 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
user_id: { type: 'number' },
|
||||
duration: { type: 'number' }
|
||||
group_id: { type: ['number', 'string'] },
|
||||
user_id: { type: ['number', 'string'] },
|
||||
duration: { type: ['number', 'string'] }
|
||||
},
|
||||
required: ['group_id', 'user_id', 'duration']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
@@ -7,8 +7,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'number' },
|
||||
user_id: { type: 'number' },
|
||||
group_id: { type: [ 'number' , 'string' ] },
|
||||
user_id: { type: [ 'number' , 'string' ] },
|
||||
card: { type: 'string' }
|
||||
},
|
||||
required: ['group_id', 'user_id', 'card']
|
||||
|
||||
Loaded 100 of 135 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user