mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Compare commits
35 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2536e1ae6a | ||
![]() |
14822c9599 | ||
![]() |
e53c37adc9 | ||
![]() |
c37539354c | ||
![]() |
ae0277f33c | ||
![]() |
b863896249 | ||
![]() |
5b42f8b743 | ||
![]() |
3883fab614 | ||
![]() |
61d6bcec4b | ||
![]() |
3b5902b033 | ||
![]() |
3a88c21a3b | ||
![]() |
91a5055dee | ||
![]() |
7befd1469f | ||
![]() |
c72ebe495c | ||
![]() |
19e06b97e6 | ||
![]() |
7519825303 | ||
![]() |
d9315bf309 | ||
![]() |
8c36c809a0 | ||
![]() |
8138aa3cb2 | ||
![]() |
87aef3ca78 | ||
![]() |
a3f1d26d6b | ||
![]() |
06cebc5670 | ||
![]() |
867fd62d77 | ||
![]() |
650cdf2916 | ||
![]() |
ebf461f2fd | ||
![]() |
27fa319b2a | ||
![]() |
d95ac894f4 | ||
![]() |
ae84a8dd11 | ||
![]() |
2fc963f986 | ||
![]() |
be1f938ebd | ||
![]() |
cccf4d503d | ||
![]() |
9dad2a8ac6 | ||
![]() |
75af104f07 | ||
![]() |
76ecba245b | ||
![]() |
3697c2ced8 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target_platform: [win32]
|
||||
target_arch: [x64]
|
||||
target_arch: [x64,ia32]
|
||||
steps:
|
||||
- name: Clone Main Repository
|
||||
uses: actions/checkout@v4
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -72,7 +72,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target_platform: [win32]
|
||||
target_arch: [x64]
|
||||
target_arch: [x64,ia32]
|
||||
steps:
|
||||
- name: Clone Main Repository
|
||||
uses: actions/checkout@v4
|
||||
|
11
docs/changelogs/CHANGELOG.v1.6.0.md
Normal file
11
docs/changelogs/CHANGELOG.v1.6.0.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1.6.1
|
||||
|
||||
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
|
||||
|
||||
## 修复与优化
|
||||
|
||||
|
||||
## 新增与调整
|
||||
* 修复poke异常事件
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
11
docs/changelogs/old/CHANGELOG.v1.5.5.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.5.5.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1.5.5
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-23568
|
||||
|
||||
## 修复与优化
|
||||
* 紧急修复一些问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
11
docs/changelogs/old/CHANGELOG.v1.5.6.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.5.6.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1.5.6
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
|
||||
|
||||
## 修复与优化
|
||||
* 修复一些问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
11
docs/changelogs/old/CHANGELOG.v1.5.7.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.5.7.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1.5.7
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
|
||||
|
||||
## 修复与优化
|
||||
* 修复一些问题
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
14
docs/changelogs/old/CHANGELOG.v1.5.8.md
Normal file
14
docs/changelogs/old/CHANGELOG.v1.5.8.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# v1.5.8
|
||||
|
||||
QQ Version: Windows 9.9.11-24568 / Linux 3.2.9-24568
|
||||
|
||||
## 修复与优化
|
||||
* 修复视频文件残留问题
|
||||
* 重构 getcookies接口 支持大部分常见域
|
||||
|
||||
## 新增与调整
|
||||
* 日志大小限制
|
||||
* 支持 QQ音乐 卡片 无签名支持时 启用内置方法(缺点没有封面 限速1min/条)
|
||||
* 支持Window X86-32机器
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
12
docs/changelogs/old/CHANGELOG.v1.5.9.md
Normal file
12
docs/changelogs/old/CHANGELOG.v1.5.9.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# v1.5.9
|
||||
|
||||
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
|
||||
|
||||
## 修复与优化
|
||||
* 优化缓存问题
|
||||
* 修复poke异常上报
|
||||
|
||||
## 新增与调整
|
||||
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
11
docs/changelogs/old/CHANGELOG.v1.6.0.md
Normal file
11
docs/changelogs/old/CHANGELOG.v1.6.0.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# v1.6.0
|
||||
|
||||
QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
|
||||
|
||||
## 修复与优化
|
||||
|
||||
|
||||
## 新增与调整
|
||||
* 新增图片subtype属性 区分表情图片与商城图片
|
||||
|
||||
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)
|
@@ -2,7 +2,7 @@
|
||||
"name": "napcat",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "1.5.4",
|
||||
"version": "1.6.1",
|
||||
"scripts": {
|
||||
"watch:dev": "vite --mode development",
|
||||
"watch:prod": "vite --mode production",
|
||||
@@ -18,6 +18,11 @@
|
||||
"depend": "cd dist && npm install --omit=dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.7",
|
||||
"@babel/preset-typescript": "^7.24.7",
|
||||
"vite-plugin-babel": "^1.2.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
||||
"@babel/plugin-proposal-decorators": "^7.24.7",
|
||||
"@log4js-node/log4js-api": "^1.0.2",
|
||||
"@protobuf-ts/plugin": "^2.9.4",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
|
@@ -1,53 +1,53 @@
|
||||
import crypto from 'crypto';
|
||||
|
||||
class LimitedHashTable<K, V> {
|
||||
private keyToValue: Map<K, V> = new Map();
|
||||
private valueToKey: Map<V, K> = new Map();
|
||||
private maxSize: number;
|
||||
private KeyQueneList: K[] = [];
|
||||
private ValueQueneList: V[] = [];
|
||||
constructor(maxSize: number) {
|
||||
this.maxSize = maxSize;
|
||||
}
|
||||
set(key: K, value: V): void {
|
||||
this.keyToValue.set(key, value);
|
||||
this.valueToKey.set(value, key);
|
||||
if (this.KeyQueneList.length >= this.maxSize || this.ValueQueneList.length >= this.maxSize) {
|
||||
this.KeyQueneList.shift();
|
||||
this.ValueQueneList.shift();
|
||||
}
|
||||
private keyToValue: Map<K, V> = new Map();
|
||||
private valueToKey: Map<V, K> = new Map();
|
||||
private maxSize: number;
|
||||
private KeyQueneList: K[] = [];
|
||||
private ValueQueneList: V[] = [];
|
||||
constructor(maxSize: number) {
|
||||
this.maxSize = maxSize;
|
||||
}
|
||||
set(key: K, value: V): void {
|
||||
this.keyToValue.set(key, value);
|
||||
this.valueToKey.set(value, key);
|
||||
if (this.KeyQueneList.length >= this.maxSize || this.ValueQueneList.length >= this.maxSize) {
|
||||
this.KeyQueneList.shift();
|
||||
this.ValueQueneList.shift();
|
||||
}
|
||||
}
|
||||
|
||||
getValue(key: K): V | undefined {
|
||||
return this.keyToValue.get(key);
|
||||
}
|
||||
getValue(key: K): V | undefined {
|
||||
return this.keyToValue.get(key);
|
||||
}
|
||||
|
||||
getKey(value: V): K | undefined {
|
||||
return this.valueToKey.get(value);
|
||||
}
|
||||
getKey(value: V): K | undefined {
|
||||
return this.valueToKey.get(value);
|
||||
}
|
||||
|
||||
delete(key: K): void {
|
||||
const value = this.keyToValue.get(key);
|
||||
if (value !== undefined) {
|
||||
this.keyToValue.delete(key);
|
||||
this.valueToKey.delete(value);
|
||||
}
|
||||
delete(key: K): void {
|
||||
const value = this.keyToValue.get(key);
|
||||
if (value !== undefined) {
|
||||
this.keyToValue.delete(key);
|
||||
this.valueToKey.delete(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class MessageUniqueWrapper {
|
||||
private msgIdMap: LimitedHashTable<number, string> = new LimitedHashTable(1000);
|
||||
createMsg(MsgId: string) {
|
||||
let ShortId = parseInt(crypto.createHash('sha1').update('2345').digest('hex').slice(0, 8), 16);
|
||||
this.msgIdMap.set(ShortId, MsgId);
|
||||
return ShortId;
|
||||
}
|
||||
getMsgIdByShortId(ShortId: number) {
|
||||
return this.msgIdMap.getValue(ShortId);
|
||||
}
|
||||
getShortIdByMsgId(MsgId: string) {
|
||||
return this.msgIdMap.getKey(MsgId);
|
||||
}
|
||||
private msgIdMap: LimitedHashTable<number, string> = new LimitedHashTable(1000);
|
||||
createMsg(MsgId: string) {
|
||||
const ShortId = parseInt(crypto.createHash('sha1').update('2345').digest('hex').slice(0, 8), 16);
|
||||
this.msgIdMap.set(ShortId, MsgId);
|
||||
return ShortId;
|
||||
}
|
||||
getMsgIdByShortId(ShortId: number) {
|
||||
return this.msgIdMap.getValue(ShortId);
|
||||
}
|
||||
getShortIdByMsgId(MsgId: string) {
|
||||
return this.msgIdMap.getKey(MsgId);
|
||||
}
|
||||
}
|
||||
|
||||
export const MessageUnique = new MessageUniqueWrapper();
|
17
src/common/utils/Packet.ts
Normal file
17
src/common/utils/Packet.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// 方案一 MiniApp发包方案
|
||||
// 前置条件: 处于GUI环境 存在MiniApp
|
||||
|
||||
import { NTQQSystemApi } from '@/core';
|
||||
|
||||
// 前排提示: 开发验证仅Win平台开展
|
||||
export class MiniAppUtil {
|
||||
static async RunMiniAppWithGUI() {
|
||||
//process.env.ELECTRON_RUN_AS_NODE = undefined;//没用还是得自己用cpp之类的语言写个程序转发参数
|
||||
return NTQQSystemApi.BootMiniApp(process.execPath, 'miniapp://open/1007?url=https%3A%2F%2Fm.q.qq.com%2Fa%2Fs%2Fedd0a83d3b8afe233dfa07adaaf8033f%3Fscene%3D1007%26min_refer%3D10001');
|
||||
}
|
||||
}
|
||||
// 方案二 MiniApp发包方案 替代MiniApp方案
|
||||
// 前置条件: 无
|
||||
export class MojoMiniAppUtil{
|
||||
|
||||
}
|
@@ -38,11 +38,11 @@ type QQVersionConfigInfo = {
|
||||
}
|
||||
|
||||
let _qqVersionConfigInfo: QQVersionConfigInfo = {
|
||||
'baseVersion': '9.9.9-23361',
|
||||
'curVersion': '9.9.9-23361',
|
||||
'baseVersion': '9.9.11-24568',
|
||||
'curVersion': '9.9.11-24568',
|
||||
'prevVersion': '',
|
||||
'onErrorVersions': [],
|
||||
'buildId': '23361'
|
||||
'buildId': '24568'
|
||||
};
|
||||
|
||||
if (fs.existsSync(configVersionInfoPath)) {
|
||||
@@ -55,7 +55,7 @@ if (fs.existsSync(configVersionInfoPath)) {
|
||||
}
|
||||
|
||||
export const qqVersionConfigInfo: QQVersionConfigInfo = _qqVersionConfigInfo;
|
||||
|
||||
//V1_WIN_NQ_9.9.11_24568_GW_B
|
||||
export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toString());
|
||||
// platform_type: 3,
|
||||
// app_type: 4,
|
||||
@@ -65,9 +65,13 @@ export const qqPkgInfo: QQPkgInfo = JSON.parse(fs.readFileSync(pkgInfoPath).toSt
|
||||
// platVer: '10.0.26100',
|
||||
// clientVer: '9.9.9-23159',
|
||||
|
||||
let _appid: string = '537216417'; // 默认为 Windows 平台的 appid
|
||||
// Linux
|
||||
// app_version: '3.2.9-24568',
|
||||
// qua: 'V1_LNX_NQ_3.2.9_24568_GW_B',
|
||||
|
||||
let _appid: string = '537226369'; // 默认为 Windows 平台的 appid
|
||||
if (systemPlatform === 'linux') {
|
||||
_appid = '537213827';
|
||||
_appid = '537226441';
|
||||
}
|
||||
// todo: mac 平台的 appid
|
||||
export const appid = _appid;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import fs from 'fs';
|
||||
import fsPromise from 'fs/promises';
|
||||
import fsPromise, { stat } from 'fs/promises';
|
||||
import crypto from 'crypto';
|
||||
import util from 'util';
|
||||
import path from 'node:path';
|
||||
@@ -50,7 +50,40 @@ export function checkFileReceived(path: string, timeout: number = 3000): Promise
|
||||
check();
|
||||
});
|
||||
}
|
||||
// 定义一个异步函数来检查文件是否存在
|
||||
export async function checkFileReceived2(path: string, timeout: number = 3000): Promise<void> {
|
||||
// 使用 Promise.race 来同时进行文件状态检查和超时计时
|
||||
// Promise.race 会返回第一个解决(resolve)或拒绝(reject)的 Promise
|
||||
await Promise.race([
|
||||
checkFile(path),
|
||||
timeoutPromise(timeout, `文件不存在: ${path}`),
|
||||
]);
|
||||
}
|
||||
|
||||
// 转换超时时间至 Promise
|
||||
function timeoutPromise(timeout: number, errorMsg: string): Promise<void> {
|
||||
return new Promise((_, reject) => {
|
||||
setTimeout(() => {
|
||||
reject(new Error(errorMsg));
|
||||
}, timeout);
|
||||
});
|
||||
}
|
||||
|
||||
// 异步检查文件是否存在
|
||||
async function checkFile(path: string): Promise<void> {
|
||||
try {
|
||||
await stat(path);
|
||||
} catch (error: any) {
|
||||
if (error.code === 'ENOENT') {
|
||||
// 如果文件不存在,则抛出一个错误
|
||||
throw new Error(`文件不存在: ${path}`);
|
||||
} else {
|
||||
// 对于 stat 调用的其他错误,重新抛出
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
// 如果文件存在,则无需做任何事情,Promise 解决(resolve)自身
|
||||
}
|
||||
export async function file2base64(path: string) {
|
||||
const readFile = util.promisify(fs.readFile);
|
||||
const result = {
|
||||
|
@@ -4,7 +4,7 @@ import fs from 'fs/promises';
|
||||
import { log, logDebug } from './log';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
import * as fsPromise from 'node:fs/promises';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
@@ -43,8 +43,88 @@ export function truncateString(obj: any, maxLength = 500) {
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
export function simpleDecorator(target: any, context: any) {
|
||||
}
|
||||
|
||||
// export function CacheClassFunc(ttl: number = 3600 * 1000, customKey: string = '') {
|
||||
// const cache = new Map<string, { expiry: number; value: any }>();
|
||||
// return function CacheClassFuncDecorator(originalMethod: Function, context: ClassMethodDecoratorContext) {
|
||||
// async function CacheClassFuncDecoratorInternal(this: any, ...args: any[]) {
|
||||
// const key = `${customKey}${String(context.name)}.(${args.map(arg => JSON.stringify(arg)).join(', ')})`;
|
||||
// const cachedValue = cache.get(key);
|
||||
// if (cachedValue && cachedValue.expiry > Date.now()) {
|
||||
// return cachedValue.value;
|
||||
// }
|
||||
// const result = originalMethod.call(this, ...args);
|
||||
// cache.set(key, { expiry: Date.now() + ttl, value: result });
|
||||
// return result;
|
||||
// }
|
||||
// return CacheClassFuncDecoratorInternal;
|
||||
// }
|
||||
// }
|
||||
export function CacheClassFuncAsync(ttl: number = 3600 * 1000, customKey: string = '') {
|
||||
//console.log('CacheClassFuncAsync', ttl, customKey);
|
||||
function logExecutionTime(target: any, methodName: string, descriptor: PropertyDescriptor) {
|
||||
//console.log('logExecutionTime', target, methodName, descriptor);
|
||||
const cache = new Map<string, { expiry: number; value: any }>();
|
||||
const originalMethod = descriptor.value;
|
||||
descriptor.value = async function (...args: any[]) {
|
||||
const key = `${customKey}${String(methodName)}.(${args.map(arg => JSON.stringify(arg)).join(', ')})`;
|
||||
cache.forEach((value, key) => {
|
||||
if (value.expiry < Date.now()) {
|
||||
cache.delete(key);
|
||||
}
|
||||
});
|
||||
const cachedValue = cache.get(key);
|
||||
if (cachedValue && cachedValue.expiry > Date.now()) {
|
||||
return cachedValue.value;
|
||||
}
|
||||
// const start = Date.now();
|
||||
const result = await originalMethod.apply(this, args);
|
||||
// const end = Date.now();
|
||||
// console.log(`Method ${methodName} executed in ${end - start} ms.`);
|
||||
cache.set(key, { expiry: Date.now() + ttl, value: result });
|
||||
return result;
|
||||
};
|
||||
}
|
||||
return logExecutionTime;
|
||||
}
|
||||
|
||||
// export function CacheClassFuncAsync(ttl: number = 3600 * 1000, customKey: string = ''): any {
|
||||
// const cache = new Map<string, { expiry: number; value: any }>();
|
||||
|
||||
// // 注意:在JavaScript装饰器中,我们通常不直接处理ClassMethodDecoratorContext这样的类型,
|
||||
// // 因为装饰器的参数通常是目标类(对于类装饰器)、属性名(对于属性装饰器)等。
|
||||
// // 对于方法装饰器,我们关注的是方法本身及其描述符。
|
||||
// // 但这里我们维持原逻辑,假设有一个自定义的处理上下文的方式。
|
||||
|
||||
// return function (originalMethod: Function): any {
|
||||
// console.log(originalMethod);
|
||||
// // 由于JavaScript装饰器原生不支持异步直接定义,我们保持async定义以便处理异步方法。
|
||||
// async function decoratorWrapper(this: any, ...args: any[]): Promise<any> {
|
||||
// console.log(...args);
|
||||
// const key = `${customKey}${originalMethod.name}.(${args.map(arg => JSON.stringify(arg)).join(', ')})`;
|
||||
// const cachedValue = cache.get(key);
|
||||
// // 遍历cache 清除expiry内容
|
||||
// cache.forEach((value, key) => {
|
||||
// if (value.expiry < Date.now()) {
|
||||
// cache.delete(key);
|
||||
// }
|
||||
// });
|
||||
// if (cachedValue && cachedValue.expiry > Date.now()) {
|
||||
// return cachedValue.value;
|
||||
// }
|
||||
|
||||
// // 直接await异步方法的结果
|
||||
// const result = await originalMethod.apply(this, args);
|
||||
// cache.set(key, { expiry: Date.now() + ttl, value: result });
|
||||
// return result;
|
||||
// }
|
||||
|
||||
// // 返回装饰后的方法,保持与原方法相同的名称和描述符(如果需要更精细的控制,可以考虑使用Object.getOwnPropertyDescriptor等)
|
||||
// return decoratorWrapper;
|
||||
// };
|
||||
// }
|
||||
|
||||
/**
|
||||
* 函数缓存装饰器,根据方法名、参数、自定义key生成缓存键,在一定时间内返回缓存结果
|
||||
@@ -181,4 +261,26 @@ export function isEqual(obj1: any, obj2: any) {
|
||||
if (!isEqual(obj1[key], obj2[key])) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
export async function deleteOldFiles(directoryPath: string, daysThreshold: number) {
|
||||
try {
|
||||
const files = await fsPromise.readdir(directoryPath);
|
||||
|
||||
for (const file of files) {
|
||||
const filePath = path.join(directoryPath, file);
|
||||
const stats = await fsPromise.stat(filePath);
|
||||
const lastModifiedTime = stats.mtimeMs;
|
||||
const currentTime = Date.now();
|
||||
const timeDifference = currentTime - lastModifiedTime;
|
||||
const daysDifference = timeDifference / (1000 * 60 * 60 * 24);
|
||||
|
||||
if (daysDifference > daysThreshold) {
|
||||
await fsPromise.unlink(filePath); // Delete the file
|
||||
//console.log(`Deleted: ${filePath}`);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
//console.error('Error deleting files:', error);
|
||||
}
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ const logConfig: Configuration = {
|
||||
FileAppender: { // 输出到文件的appender
|
||||
type: 'file',
|
||||
filename: logPath, // 指定日志文件的位置和文件名
|
||||
maxLoogSize: 10485760, // 日志文件的最大大小(单位:字节),这里设置为10MB
|
||||
maxLogSize: 10485760, // 日志文件的最大大小(单位:字节),这里设置为10MB
|
||||
layout: {
|
||||
type: 'pattern',
|
||||
pattern: '%d{yyyy-MM-dd hh:mm:ss} [%p] %X{userInfo} | %m'
|
||||
|
@@ -1,6 +1,9 @@
|
||||
import https from 'node:https';
|
||||
import http from 'node:http';
|
||||
|
||||
import fs, { readFileSync } from 'node:fs';
|
||||
import { NTQQUserApi } from '@/core';
|
||||
import path from 'node:path';
|
||||
import { request } from 'node:http';
|
||||
export class RequestUtil {
|
||||
// 适用于获取服务器下发cookies时获取,仅GET
|
||||
static async HttpsGetCookies(url: string): Promise<{ [key: string]: string }> {
|
||||
@@ -49,7 +52,7 @@ export class RequestUtil {
|
||||
|
||||
|
||||
// 请求和回复都是JSON data传原始内容 自动编码json
|
||||
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
|
||||
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: { [key: string]: string } = {}, isJsonRet: boolean = true, isArgJson: boolean = true): Promise<T> {
|
||||
const option = new URL(url);
|
||||
const protocol = url.startsWith('https://') ? https : http;
|
||||
const options = {
|
||||
@@ -59,6 +62,10 @@ export class RequestUtil {
|
||||
method: method,
|
||||
headers: headers
|
||||
};
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// 'Content-Length': Buffer.byteLength(postData),
|
||||
// },
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = protocol.request(options, (res: any) => {
|
||||
let responseBody = '';
|
||||
@@ -100,7 +107,85 @@ export class RequestUtil {
|
||||
}
|
||||
|
||||
// 请求返回都是原始内容
|
||||
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}) {
|
||||
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: { [key: string]: string } = {}) {
|
||||
return this.HttpGetJson<string>(url, method, data, headers, false, false);
|
||||
}
|
||||
|
||||
static async createFormData(boundary: string, filePath: string): Promise<Buffer> {
|
||||
let type = 'image/png';
|
||||
if (filePath.endsWith('.jpg')) {
|
||||
type = 'image/jpeg';
|
||||
}
|
||||
const formDataParts = [
|
||||
`------${boundary}\r\n`,
|
||||
`Content-Disposition: form-data; name="share_image"; filename="${filePath}"\r\n`,
|
||||
'Content-Type: ' + type + '\r\n\r\n'
|
||||
];
|
||||
|
||||
const fileContent = readFileSync(filePath);
|
||||
const footer = `\r\n------${boundary}--`;
|
||||
return Buffer.concat([
|
||||
Buffer.from(formDataParts.join(''), 'utf8'),
|
||||
fileContent,
|
||||
Buffer.from(footer, 'utf8')
|
||||
]);
|
||||
}
|
||||
|
||||
static async uploadImageForOpenPlatform(filePath: string): Promise<string> {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
type retType = { retcode: number, result?: { url: string } };
|
||||
try {
|
||||
const cookies = Object.entries(await NTQQUserApi.getCookies('connect.qq.com')).map(([key, value]) => `${key}=${value}`).join('; ');
|
||||
const options = {
|
||||
hostname: 'cgi.connect.qq.com',
|
||||
port: 443,
|
||||
path: '/qqconnectopen/upload_share_image',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Referer': 'https://cgi.connect.qq.com',
|
||||
'Cookie': cookies,
|
||||
'Accept': '*/*',
|
||||
'Connection': 'keep-alive',
|
||||
'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'
|
||||
}
|
||||
};
|
||||
const req = https.request(options, async (res) => {
|
||||
let responseBody = '';
|
||||
|
||||
res.on('data', (chunk: string | Buffer) => {
|
||||
responseBody += chunk.toString();
|
||||
});
|
||||
|
||||
res.on('end', () => {
|
||||
try {
|
||||
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
||||
const responseJson = JSON.parse(responseBody) as retType;
|
||||
resolve(responseJson.result!.url!);
|
||||
} else {
|
||||
reject(new Error(`Unexpected status code: ${res.statusCode}`));
|
||||
}
|
||||
} catch (parseError) {
|
||||
reject(parseError);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
req.on('error', (error) => {
|
||||
console.error('Error during upload:', error);
|
||||
});
|
||||
|
||||
const body = await RequestUtil.createFormData('WebKitFormBoundary7MA4YWxkTrZu0gW', filePath);
|
||||
// req.setHeader('Content-Length', Buffer.byteLength(body));
|
||||
// console.log(`Prepared data size: ${Buffer.byteLength(body)} bytes`);
|
||||
req.write(body);
|
||||
req.end();
|
||||
return;
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
}
|
||||
return undefined;
|
||||
});
|
||||
}
|
||||
}
|
2
src/core
2
src/core
Submodule src/core updated: c1e008275e...eec6f2a5c0
@@ -1 +1 @@
|
||||
function _0x3c8f(_0x2ecaae,_0x2ceb4c){var _0x588542=_0x5885();return _0x3c8f=function(_0x3c8f3f,_0x2d929c){_0x3c8f3f=_0x3c8f3f-0x19a;var _0x414c8e=_0x588542[_0x3c8f3f];return _0x414c8e;},_0x3c8f(_0x2ecaae,_0x2ceb4c);}function _0x5885(){var _0x2a1712=['305850yFDSJe','59596muzjSp','1431282AwrmBO','1190cCqUWG','186LEPYUp','4JUUycs','79981tGNsYY','168KYSunN','168763AyGbhS','onMSFSsoError','12734696mYoCeZ','84591jjpZge','60vDiNGE','onMSFStatusChange','60XTBoAG'];_0x5885=function(){return _0x2a1712;};return _0x5885();}var _0x44d240=_0x3c8f;(function(_0x5d80a2,_0x55dfc3){var _0x1c6158=_0x3c8f,_0x4ccedd=_0x5d80a2();while(!![]){try{var _0x4c2e8e=-parseInt(_0x1c6158(0x1a2))/0x1*(parseInt(_0x1c6158(0x1a6))/0x2)+parseInt(_0x1c6158(0x1a7))/0x3*(parseInt(_0x1c6158(0x19b))/0x4)+-parseInt(_0x1c6158(0x1a5))/0x5*(parseInt(_0x1c6158(0x19a))/0x6)+-parseInt(_0x1c6158(0x19e))/0x7+-parseInt(_0x1c6158(0x19d))/0x8*(-parseInt(_0x1c6158(0x1a1))/0x9)+-parseInt(_0x1c6158(0x1a8))/0xa*(parseInt(_0x1c6158(0x19c))/0xb)+parseInt(_0x1c6158(0x1a4))/0xc*(parseInt(_0x1c6158(0x1a0))/0xd);if(_0x4c2e8e===_0x55dfc3)break;else _0x4ccedd['push'](_0x4ccedd['shift']());}catch(_0xb091b0){_0x4ccedd['push'](_0x4ccedd['shift']());}}}(_0x5885,0xf3e0d));export class DependsAdapter{[_0x44d240(0x1a3)](_0x1a2c55,_0xbcbc2f){}[_0x44d240(0x19f)](_0x1516d2){}['getGroupCode'](_0x3de94f){}}
|
||||
var _0xcc391f=_0x1dbc;function _0x52b6(){var _0x415ac1=['getGroupCode','688761AQTgdS','onMSFStatusChange','4780153elzsdz','104jUCcYC','335227uPPfBg','976830pbzGRQ','5625055eKGJTT','5073624gTujzP','6DxfcvM','5630040LsNiIa'];_0x52b6=function(){return _0x415ac1;};return _0x52b6();}function _0x1dbc(_0x2e7338,_0x3c3487){var _0x52b69c=_0x52b6();return _0x1dbc=function(_0x1dbc94,_0x5792b5){_0x1dbc94=_0x1dbc94-0xbe;var _0x2be02b=_0x52b69c[_0x1dbc94];return _0x2be02b;},_0x1dbc(_0x2e7338,_0x3c3487);}(function(_0x1457cf,_0x101874){var _0x174c51=_0x1dbc,_0x5a350c=_0x1457cf();while(!![]){try{var _0x4060d=parseInt(_0x174c51(0xc4))/0x1+parseInt(_0x174c51(0xc5))/0x2*(parseInt(_0x174c51(0xc8))/0x3)+parseInt(_0x174c51(0xc7))/0x4+-parseInt(_0x174c51(0xc6))/0x5+-parseInt(_0x174c51(0xbe))/0x6+-parseInt(_0x174c51(0xc2))/0x7+parseInt(_0x174c51(0xc3))/0x8*(parseInt(_0x174c51(0xc0))/0x9);if(_0x4060d===_0x101874)break;else _0x5a350c['push'](_0x5a350c['shift']());}catch(_0x33aafc){_0x5a350c['push'](_0x5a350c['shift']());}}}(_0x52b6,0xca6b6));export class DependsAdapter{[_0xcc391f(0xc1)](_0x160645,_0x5838f1){}['onMSFSsoError'](_0x502d99){}[_0xcc391f(0xbf)](_0x45bdb6){}}
|
@@ -1 +1 @@
|
||||
function _0x35eb(){var _0x296a20=['1530561mJVyDI','dispatchCall','121220VrTEao','11245157zUpFiw','3246zsGpsE','2238832WZFYTY','145kSwhyX','130nPiWVu','dispatchRequest','748KyMYVr','290727OxSfGD','412452jsiYqf'];_0x35eb=function(){return _0x296a20;};return _0x35eb();}var _0x3b93d2=_0x339d;(function(_0x4f6e43,_0x1ab230){var _0x360ba1=_0x339d,_0x4f2c6f=_0x4f6e43();while(!![]){try{var _0x2bd2ee=-parseInt(_0x360ba1(0x156))/0x1*(-parseInt(_0x360ba1(0x15b))/0x2)+parseInt(_0x360ba1(0x152))/0x3+parseInt(_0x360ba1(0x154))/0x4*(parseInt(_0x360ba1(0x158))/0x5)+parseInt(_0x360ba1(0x15d))/0x6+-parseInt(_0x360ba1(0x155))/0x7+parseInt(_0x360ba1(0x157))/0x8+parseInt(_0x360ba1(0x15c))/0x9*(-parseInt(_0x360ba1(0x159))/0xa);if(_0x2bd2ee===_0x1ab230)break;else _0x4f2c6f['push'](_0x4f2c6f['shift']());}catch(_0x1cdc57){_0x4f2c6f['push'](_0x4f2c6f['shift']());}}}(_0x35eb,0xe1e3a));function _0x339d(_0x5768c4,_0x32f7c0){var _0x35eb3b=_0x35eb();return _0x339d=function(_0x339dff,_0x5c3a59){_0x339dff=_0x339dff-0x152;var _0x48f70a=_0x35eb3b[_0x339dff];return _0x48f70a;},_0x339d(_0x5768c4,_0x32f7c0);}export class DispatcherAdapter{[_0x3b93d2(0x15a)](_0x5b01fe){}[_0x3b93d2(0x153)](_0x7a40ea){}['dispatchCallWithJson'](_0xaa1c71){}}
|
||||
var _0x24dc95=_0x585a;function _0x585a(_0x98cee9,_0x215212){var _0x1e1827=_0x1e18();return _0x585a=function(_0x585a22,_0x290a2f){_0x585a22=_0x585a22-0x146;var _0x206eae=_0x1e1827[_0x585a22];return _0x206eae;},_0x585a(_0x98cee9,_0x215212);}(function(_0x2602b9,_0x23ed1f){var _0x29821b=_0x585a,_0xf0f43=_0x2602b9();while(!![]){try{var _0x39040d=parseInt(_0x29821b(0x14b))/0x1+parseInt(_0x29821b(0x149))/0x2+-parseInt(_0x29821b(0x150))/0x3*(-parseInt(_0x29821b(0x14f))/0x4)+-parseInt(_0x29821b(0x14d))/0x5+-parseInt(_0x29821b(0x146))/0x6+parseInt(_0x29821b(0x147))/0x7+-parseInt(_0x29821b(0x148))/0x8;if(_0x39040d===_0x23ed1f)break;else _0xf0f43['push'](_0xf0f43['shift']());}catch(_0x4448d5){_0xf0f43['push'](_0xf0f43['shift']());}}}(_0x1e18,0x9a7c0));function _0x1e18(){var _0x1859c2=['1072386zxkYvO','1702120yxKQxg','594584YdGdNa','584644jnxrqu','dispatchCallWithJson','197388uWeHvx','dispatchRequest','1250350nrYfbC','dispatchCall','8gExNtR','604533fSuWEr'];_0x1e18=function(){return _0x1859c2;};return _0x1e18();}export class DispatcherAdapter{[_0x24dc95(0x14c)](_0x251321){}[_0x24dc95(0x14e)](_0x525c84){}[_0x24dc95(0x14a)](_0x222c8d){}}
|
@@ -1 +1 @@
|
||||
function _0x11ad(){var _0x34d0a6=['6xCDsEr','140mcRkGC','29800tAIvjn','onGetOfflineMsg','2213561yTPzXw','2098768TybPiY','onShowErrUITips','9GhpylT','onUpdateGeneralFlag','1994mZmbfN','getAppSetting','onLog','2709520VILgyr','4616810gonLXN','195UjxGIl','868350uMQVbJ'];_0x11ad=function(){return _0x34d0a6;};return _0x11ad();}var _0xdacd7f=_0x4d4e;(function(_0x540323,_0x1715d3){var _0x5c1808=_0x4d4e,_0x15bdef=_0x540323();while(!![]){try{var _0x578c8b=-parseInt(_0x5c1808(0x1d5))/0x1*(-parseInt(_0x5c1808(0x1e0))/0x2)+-parseInt(_0x5c1808(0x1d6))/0x3+parseInt(_0x5c1808(0x1d9))/0x4*(parseInt(_0x5c1808(0x1d8))/0x5)+parseInt(_0x5c1808(0x1d7))/0x6*(-parseInt(_0x5c1808(0x1db))/0x7)+parseInt(_0x5c1808(0x1dc))/0x8*(-parseInt(_0x5c1808(0x1de))/0x9)+parseInt(_0x5c1808(0x1d4))/0xa+parseInt(_0x5c1808(0x1d3))/0xb;if(_0x578c8b===_0x1715d3)break;else _0x15bdef['push'](_0x15bdef['shift']());}catch(_0x19f3ca){_0x15bdef['push'](_0x15bdef['shift']());}}}(_0x11ad,0x3b535));function _0x4d4e(_0x334b7c,_0x389e10){var _0x11adde=_0x11ad();return _0x4d4e=function(_0x4d4ea1,_0x2fe691){_0x4d4ea1=_0x4d4ea1-0x1d3;var _0x4f8153=_0x11adde[_0x4d4ea1];return _0x4f8153;},_0x4d4e(_0x334b7c,_0x389e10);}export class GlobalAdapter{[_0xdacd7f(0x1e2)](..._0xf2bc04){}['onGetSrvCalTime'](..._0x1db136){}[_0xdacd7f(0x1dd)](..._0x4c7ba5){}['fixPicImgType'](..._0xe3c749){}[_0xdacd7f(0x1e1)](..._0x5db4ef){}['onInstallFinished'](..._0x3931ac){}[_0xdacd7f(0x1df)](..._0xe5bc7f){}[_0xdacd7f(0x1da)](..._0x470274){}}
|
||||
function _0x5cfc(_0x1a414e,_0x2b6945){var _0x4561bc=_0x4561();return _0x5cfc=function(_0x5cfc0a,_0x39f2fa){_0x5cfc0a=_0x5cfc0a-0xdc;var _0x29bccb=_0x4561bc[_0x5cfc0a];return _0x29bccb;},_0x5cfc(_0x1a414e,_0x2b6945);}var _0x13ad04=_0x5cfc;(function(_0x39368b,_0x1c4f7a){var _0x240e55=_0x5cfc,_0xa55402=_0x39368b();while(!![]){try{var _0x19ea16=parseInt(_0x240e55(0xe7))/0x1+parseInt(_0x240e55(0xe1))/0x2+-parseInt(_0x240e55(0xe4))/0x3*(-parseInt(_0x240e55(0xe6))/0x4)+parseInt(_0x240e55(0xdf))/0x5+-parseInt(_0x240e55(0xdc))/0x6+-parseInt(_0x240e55(0xe2))/0x7+parseInt(_0x240e55(0xe3))/0x8;if(_0x19ea16===_0x1c4f7a)break;else _0xa55402['push'](_0xa55402['shift']());}catch(_0x1e89fd){_0xa55402['push'](_0xa55402['shift']());}}}(_0x4561,0x3ebcd));function _0x4561(){var _0x4c7d39=['1071210VcxehC','818592ZGlgqp','126aNfYQt','onUpdateGeneralFlag','47692ndSNHo','178420OjINhX','2616834RVkoeU','onLog','onShowErrUITips','303535qZPoZF','onGetOfflineMsg','7850wMzNtw'];_0x4561=function(){return _0x4c7d39;};return _0x4561();}export class GlobalAdapter{[_0x13ad04(0xdd)](..._0x3e119a){}['onGetSrvCalTime'](..._0x18ecc5){}[_0x13ad04(0xde)](..._0x100e62){}['fixPicImgType'](..._0x2cde61){}['getAppSetting'](..._0x33e2eb){}['onInstallFinished'](..._0x223f3d){}[_0x13ad04(0xe5)](..._0x43f8e2){}[_0x13ad04(0xe0)](..._0x907c35){}}
|
@@ -1 +1 @@
|
||||
(function(_0x3ee2c1,_0x22e284){var _0x5de5a5=_0x5b90,_0x29f9cb=_0x3ee2c1();while(!![]){try{var _0x4fce40=-parseInt(_0x5de5a5(0xdf))/0x1+parseInt(_0x5de5a5(0xd8))/0x2*(-parseInt(_0x5de5a5(0xd7))/0x3)+-parseInt(_0x5de5a5(0xdb))/0x4*(parseInt(_0x5de5a5(0xda))/0x5)+parseInt(_0x5de5a5(0xd9))/0x6*(parseInt(_0x5de5a5(0xe0))/0x7)+-parseInt(_0x5de5a5(0xdc))/0x8+-parseInt(_0x5de5a5(0xde))/0x9+parseInt(_0x5de5a5(0xdd))/0xa;if(_0x4fce40===_0x22e284)break;else _0x29f9cb['push'](_0x29f9cb['shift']());}catch(_0x466415){_0x29f9cb['push'](_0x29f9cb['shift']());}}}(_0x3fc6,0x561ff));function _0x5b90(_0x7bf68b,_0x2a163f){var _0x3fc629=_0x3fc6();return _0x5b90=function(_0x5b90b9,_0x30891e){_0x5b90b9=_0x5b90b9-0xd7;var _0x39ca11=_0x3fc629[_0x5b90b9];return _0x39ca11;},_0x5b90(_0x7bf68b,_0x2a163f);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x3fc6(){var _0x4c3af1=['22dzXbYi','480ZLVobT','685925GcxbTx','20HWLwkm','6976GyRYjv','14535020GfCgEQ','2404008GSaJyS','450959nuaUas','36099LPQuWF','29571KucceM'];_0x3fc6=function(){return _0x4c3af1;};return _0x3fc6();}
|
||||
(function(_0x3bd320,_0x59cad1){var _0x5b8350=_0x2e39,_0x5f2fbc=_0x3bd320();while(!![]){try{var _0x48276f=-parseInt(_0x5b8350(0x129))/0x1+parseInt(_0x5b8350(0x12a))/0x2+-parseInt(_0x5b8350(0x12c))/0x3+-parseInt(_0x5b8350(0x12b))/0x4*(parseInt(_0x5b8350(0x12f))/0x5)+parseInt(_0x5b8350(0x127))/0x6*(parseInt(_0x5b8350(0x12d))/0x7)+parseInt(_0x5b8350(0x126))/0x8+-parseInt(_0x5b8350(0x12e))/0x9*(-parseInt(_0x5b8350(0x128))/0xa);if(_0x48276f===_0x59cad1)break;else _0x5f2fbc['push'](_0x5f2fbc['shift']());}catch(_0x5c216f){_0x5f2fbc['push'](_0x5f2fbc['shift']());}}}(_0xf9fd,0xae9e1));function _0x2e39(_0x4fe14e,_0x2ce9ef){var _0xf9fd06=_0xf9fd();return _0x2e39=function(_0x2e3985,_0x1300b5){_0x2e3985=_0x2e3985-0x126;var _0x458d58=_0xf9fd06[_0x2e3985];return _0x458d58;},_0x2e39(_0x4fe14e,_0x2ce9ef);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0xf9fd(){var _0x113674=['9Psfnwm','1255gvGSSW','8940456QkCTfV','546MtNrzV','3069540AuWaws','149260sAWoZS','472274vEalJO','14696sQGKES','3882108rVTCKd','109235UStmLQ'];_0xf9fd=function(){return _0x113674;};return _0xf9fd();}export*from'./NodeIGlobalAdapter';
|
@@ -1 +1 @@
|
||||
const _0x5487a7=_0x5085;function _0x2e74(){const _0x46d98e=['16594919HkXQos','1489832DCGmGo','30folMBf','2180492aZhIvN','getCollectionService','toString','createCollection','1891782NSJmjZ','4531910iVkapI','294707GOLBBz','now','createNewCollectionItem','6525360PVaFhk','getAllCollection','12mTXuNp','1BYKoMp','6kNfZgk','50UwMSqL','getCollectionItemList'];_0x2e74=function(){return _0x46d98e;};return _0x2e74();}function _0x5085(_0x5a94df,_0x1c3ddb){const _0x2e74f5=_0x2e74();return _0x5085=function(_0x5085d8,_0x30fc83){_0x5085d8=_0x5085d8-0xad;let _0x20eb8a=_0x2e74f5[_0x5085d8];return _0x20eb8a;},_0x5085(_0x5a94df,_0x1c3ddb);}(function(_0x9e2d51,_0x1eb11c){const _0x37026c=_0x5085,_0x38901b=_0x9e2d51();while(!![]){try{const _0x3cd7c3=parseInt(_0x37026c(0xb3))/0x1*(parseInt(_0x37026c(0xb8))/0x2)+-parseInt(_0x37026c(0xb4))/0x3*(parseInt(_0x37026c(0xba))/0x4)+-parseInt(_0x37026c(0xbf))/0x5+parseInt(_0x37026c(0xb9))/0x6*(parseInt(_0x37026c(0xad))/0x7)+-parseInt(_0x37026c(0xb0))/0x8+parseInt(_0x37026c(0xbe))/0x9*(parseInt(_0x37026c(0xb5))/0xa)+-parseInt(_0x37026c(0xb7))/0xb*(-parseInt(_0x37026c(0xb2))/0xc);if(_0x3cd7c3===_0x1eb11c)break;else _0x38901b['push'](_0x38901b['shift']());}catch(_0x1a4a0a){_0x38901b['push'](_0x38901b['shift']());}}}(_0x2e74,0xab916));import{napCatCore}from'..';export class NTQQCollectionApi{static async[_0x5487a7(0xbd)](_0x552f14,_0x298ad9,_0x1c29f9,_0x436515,_0x33c134){const _0x49e155=_0x5487a7;let _0x30de78={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0x552f14,'strId':_0x1c29f9,'groupId':'0','groupName':'','uid':_0x298ad9},'customGroupId':'0','createTime':Date[_0x49e155(0xae)]()['toString'](),'sequence':Date['now']()[_0x49e155(0xbc)]()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x436515,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x33c134,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore['session'][_0x49e155(0xbb)]()[_0x49e155(0xaf)](_0x30de78);}static async[_0x5487a7(0xb1)](_0x3b96a5=0x0,_0x5bba58=0x32){const _0x4352a4=_0x5487a7;let _0x5e34eb={'category':_0x3b96a5,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x5bba58,'searchDown':!![]};return napCatCore['session']['getCollectionService']()[_0x4352a4(0xb6)](_0x5e34eb);}}
|
||||
const _0xb3b733=_0x45ad;(function(_0x4bffd0,_0x176a97){const _0x5ae4cb=_0x45ad,_0x19227e=_0x4bffd0();while(!![]){try{const _0x232a10=parseInt(_0x5ae4cb(0x9e))/0x1*(-parseInt(_0x5ae4cb(0xa3))/0x2)+parseInt(_0x5ae4cb(0x9f))/0x3+-parseInt(_0x5ae4cb(0x98))/0x4+-parseInt(_0x5ae4cb(0xa4))/0x5*(parseInt(_0x5ae4cb(0xa1))/0x6)+parseInt(_0x5ae4cb(0x9a))/0x7+-parseInt(_0x5ae4cb(0x9c))/0x8+-parseInt(_0x5ae4cb(0x9b))/0x9*(-parseInt(_0x5ae4cb(0xa2))/0xa);if(_0x232a10===_0x176a97)break;else _0x19227e['push'](_0x19227e['shift']());}catch(_0x5a2898){_0x19227e['push'](_0x19227e['shift']());}}}(_0x3563,0x5c34e));function _0x3563(){const _0x2b00dc=['now','483126HtoXls','9LnNbBO','3145248lVakQe','getCollectionItemList','1GKTnyB','1666581DNwykv','getCollectionService','24QkRxvQ','10785410wJqEAX','34634zixcbT','782685ybfoFF','createCollection','toString','session','1155148LpPQiB'];_0x3563=function(){return _0x2b00dc;};return _0x3563();}function _0x45ad(_0x1f4c0f,_0x339836){const _0x356308=_0x3563();return _0x45ad=function(_0x45ad53,_0x31dee2){_0x45ad53=_0x45ad53-0x96;let _0x9ded03=_0x356308[_0x45ad53];return _0x9ded03;},_0x45ad(_0x1f4c0f,_0x339836);}import{napCatCore}from'..';export class NTQQCollectionApi{static async[_0xb3b733(0xa5)](_0xc13a04,_0x336a77,_0xa0ed04,_0x57ade0,_0x49485d){const _0x1b5d4d=_0xb3b733;let _0x57b825={'commInfo':{'bid':0x1,'category':0x2,'author':{'type':0x1,'numId':_0xc13a04,'strId':_0xa0ed04,'groupId':'0','groupName':'','uid':_0x336a77},'customGroupId':'0','createTime':Date[_0x1b5d4d(0x99)]()['toString'](),'sequence':Date['now']()[_0x1b5d4d(0x96)]()},'richMediaSummary':{'originalUri':'','publisher':'','richMediaVersion':0x0,'subTitle':'','title':'','brief':_0x57ade0,'picList':[],'contentType':0x1},'richMediaContent':{'rawData':_0x49485d,'bizDataList':[],'picList':[],'fileList':[]},'need_share_url':![]};return napCatCore[_0x1b5d4d(0x97)]['getCollectionService']()['createNewCollectionItem'](_0x57b825);}static async['getAllCollection'](_0x258049=0x0,_0x39c346=0x32){const _0x2dbee4=_0xb3b733;let _0x497dec={'category':_0x258049,'groupId':-0x1,'forceSync':!![],'forceFromDb':![],'timeStamp':'0','count':_0x39c346,'searchDown':!![]};return napCatCore[_0x2dbee4(0x97)][_0x2dbee4(0xa0)]()[_0x2dbee4(0x9d)](_0x497dec);}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x343597=_0x2fe1;(function(_0x27e301,_0x3dbc31){const _0x354009=_0x2fe1,_0x2df822=_0x27e301();while(!![]){try{const _0x394e71=-parseInt(_0x354009(0x139))/0x1*(parseInt(_0x354009(0x135))/0x2)+parseInt(_0x354009(0x130))/0x3+-parseInt(_0x354009(0x133))/0x4*(parseInt(_0x354009(0x13e))/0x5)+parseInt(_0x354009(0x140))/0x6*(-parseInt(_0x354009(0x13d))/0x7)+-parseInt(_0x354009(0x13a))/0x8*(-parseInt(_0x354009(0x142))/0x9)+parseInt(_0x354009(0x12b))/0xa+parseInt(_0x354009(0x132))/0xb;if(_0x394e71===_0x3dbc31)break;else _0x2df822['push'](_0x2df822['shift']());}catch(_0x325b5b){_0x2df822['push'](_0x2df822['shift']());}}}(_0x1c44,0x34116));function _0x2fe1(_0x4e3995,_0x5cfc6d){const _0x1c44e3=_0x1c44();return _0x2fe1=function(_0x2fe1b9,_0x2da706){_0x2fe1b9=_0x2fe1b9-0x12a;let _0x3cab6e=_0x1c44e3[_0x2fe1b9];return _0x3cab6e;},_0x2fe1(_0x4e3995,_0x5cfc6d);}import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';function _0x1c44(){const _0x3d27e2=['567069zoyKjE','woktW','3883143TzRnOP','188bHJexU','isBuddy','6770JfFaPv','NodeIKernelBuddyListener/onBuddyListChange','session','WVjRh','58rowUWq','648ERYOba','CallNormalEvent','buddyList','70NGigat','26305ijRuCK','YQvnm','19356pOsRmu','handleFriendRequest','10260VzPXsd','approvalFriendRequest','547510bUQSFS','split','length','push','getFriends'];_0x1c44=function(){return _0x3d27e2;};return _0x1c44();}export class NTQQFriendApi{static async['isBuddy'](_0x122fe7){const _0x36038b=_0x2fe1;return napCatCore['session']['getBuddyService']()[_0x36038b(0x134)](_0x122fe7);}static async[_0x343597(0x12f)](_0x35ab57=![]){const _0x5a689d=_0x343597,_0x32015e={'woktW':'NodeIKernelBuddyService/getBuddyList','WVjRh':_0x5a689d(0x136)};let [_0x3a8119,_0x836d87]=await NTEventDispatch[_0x5a689d(0x13b)](_0x32015e[_0x5a689d(0x131)],_0x32015e[_0x5a689d(0x138)],0x1,0x1388,_0x35ab57);const _0x33f0a7=[];for(const _0xa6a733 of _0x836d87){for(const _0x20e884 of _0xa6a733[_0x5a689d(0x13c)]){_0x33f0a7[_0x5a689d(0x12e)](_0x20e884);}}return _0x33f0a7;}static async[_0x343597(0x141)](_0x146d46,_0x436eb7){const _0x2beb1b=_0x343597,_0xad5228={'YQvnm':function(_0x19264c,_0x1f7e05){return _0x19264c<_0x1f7e05;}};let _0x1e2ab8=_0x146d46[_0x2beb1b(0x12c)]('|');if(_0xad5228[_0x2beb1b(0x13f)](_0x1e2ab8[_0x2beb1b(0x12d)],0x2))return;let _0x46d7d3=_0x1e2ab8[0x0],_0xfa95b3=_0x1e2ab8[0x1];napCatCore[_0x2beb1b(0x137)]['getBuddyService']()?.[_0x2beb1b(0x12a)]({'friendUid':_0x46d7d3,'reqTime':_0xfa95b3,'accept':_0x436eb7});}}
|
||||
function _0x572e(){const _0x148979=['1156458bEJCcO','zhkSh','isBuddy','4883408mjKJUx','NodeIKernelBuddyListener/onBuddyListChange','4923304MUIyrf','push','getBuddyService','CallNormalEvent','session','NodeIKernelBuddyService/getBuddyList','2128800couLCr','10xtggtF','getFriends','3019086EwvboM','3531879AMsxZr','siGMJ','split','length','1CiZNwY','LkFJX','3QCxwZb','2281635HvFgDb'];_0x572e=function(){return _0x148979;};return _0x572e();}const _0x52bfd4=_0x7c45;function _0x7c45(_0x56d024,_0x107e94){const _0x572ed3=_0x572e();return _0x7c45=function(_0x7c4507,_0xf08bc4){_0x7c4507=_0x7c4507-0x179;let _0x4657f2=_0x572ed3[_0x7c4507];return _0x4657f2;},_0x7c45(_0x56d024,_0x107e94);}(function(_0x33f803,_0x59681e){const _0x2c8e3a=_0x7c45,_0x4c1f51=_0x33f803();while(!![]){try{const _0x9751db=-parseInt(_0x2c8e3a(0x186))/0x1*(parseInt(_0x2c8e3a(0x18a))/0x2)+parseInt(_0x2c8e3a(0x188))/0x3*(parseInt(_0x2c8e3a(0x18f))/0x4)+parseInt(_0x2c8e3a(0x189))/0x5+parseInt(_0x2c8e3a(0x17e))/0x6+parseInt(_0x2c8e3a(0x181))/0x7+-parseInt(_0x2c8e3a(0x18d))/0x8+parseInt(_0x2c8e3a(0x182))/0x9*(-parseInt(_0x2c8e3a(0x17f))/0xa);if(_0x9751db===_0x59681e)break;else _0x4c1f51['push'](_0x4c1f51['shift']());}catch(_0x53ed90){_0x4c1f51['push'](_0x4c1f51['shift']());}}}(_0x572e,0xd9d05));import{napCatCore}from'@/core';import{NTEventDispatch}from'@/common/utils/EventTask';export class NTQQFriendApi{static async[_0x52bfd4(0x18c)](_0x567d71){const _0xffd032=_0x52bfd4;return napCatCore[_0xffd032(0x17c)]['getBuddyService']()[_0xffd032(0x18c)](_0x567d71);}static async[_0x52bfd4(0x180)](_0x447f3a=![]){const _0x2dfee7=_0x52bfd4,_0x278a6e={'LkFJX':_0x2dfee7(0x17d),'zhkSh':_0x2dfee7(0x18e)};let [_0x583242,_0x58cd69]=await NTEventDispatch[_0x2dfee7(0x17b)](_0x278a6e[_0x2dfee7(0x187)],_0x278a6e[_0x2dfee7(0x18b)],0x1,0x1388,_0x447f3a);const _0x2fc3f0=[];for(const _0x1fbe49 of _0x58cd69){for(const _0x27baef of _0x1fbe49['buddyList']){_0x2fc3f0[_0x2dfee7(0x179)](_0x27baef);}}return _0x2fc3f0;}static async['handleFriendRequest'](_0x538183,_0x52f244){const _0x125cc8=_0x52bfd4,_0x51590b={'siGMJ':function(_0x100047,_0x97eb59){return _0x100047<_0x97eb59;}};let _0x4d8606=_0x538183[_0x125cc8(0x184)]('|');if(_0x51590b[_0x125cc8(0x183)](_0x4d8606[_0x125cc8(0x185)],0x2))return;let _0x49e576=_0x4d8606[0x0],_0x1b4e84=_0x4d8606[0x1];napCatCore[_0x125cc8(0x17c)][_0x125cc8(0x17a)]()?.['approvalFriendRequest']({'friendUid':_0x49e576,'reqTime':_0x1b4e84,'accept':_0x52f244});}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0xbbd8f3,_0x289d53){var _0x439079=_0xd9fa,_0x4fce38=_0xbbd8f3();while(!![]){try{var _0x1e030f=-parseInt(_0x439079(0xea))/0x1*(-parseInt(_0x439079(0xeb))/0x2)+-parseInt(_0x439079(0xe6))/0x3+-parseInt(_0x439079(0xee))/0x4+-parseInt(_0x439079(0xe5))/0x5*(-parseInt(_0x439079(0xe9))/0x6)+parseInt(_0x439079(0xe7))/0x7*(-parseInt(_0x439079(0xe4))/0x8)+parseInt(_0x439079(0xed))/0x9*(-parseInt(_0x439079(0xec))/0xa)+-parseInt(_0x439079(0xe8))/0xb;if(_0x1e030f===_0x289d53)break;else _0x4fce38['push'](_0x4fce38['shift']());}catch(_0x17d728){_0x4fce38['push'](_0x4fce38['shift']());}}}(_0xad8d,0x9e890));export*from'./file';export*from'./friend';function _0xad8d(){var _0x44de3f=['663111jVmUpR','1279588ttrcct','665744ZpGGuS','3172335JciHUa','1914258inlLlI','35diurnl','1244804ogAozF','12pblUWD','1015021nHFNLT','2lZwcnX','20KHZQAM'];_0xad8d=function(){return _0x44de3f;};return _0xad8d();}export*from'./group';function _0xd9fa(_0x3181ba,_0x24cc98){var _0xad8d4a=_0xad8d();return _0xd9fa=function(_0xd9fa84,_0x28d717){_0xd9fa84=_0xd9fa84-0xe4;var _0x266ec1=_0xad8d4a[_0xd9fa84];return _0x266ec1;},_0xd9fa(_0x3181ba,_0x24cc98);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system';
|
||||
(function(_0x15ce39,_0x13199b){var _0x4c22b3=_0xadf5,_0x2951c6=_0x15ce39();while(!![]){try{var _0x273778=parseInt(_0x4c22b3(0x15d))/0x1*(-parseInt(_0x4c22b3(0x160))/0x2)+-parseInt(_0x4c22b3(0x15f))/0x3+-parseInt(_0x4c22b3(0x162))/0x4+-parseInt(_0x4c22b3(0x15a))/0x5*(-parseInt(_0x4c22b3(0x15b))/0x6)+parseInt(_0x4c22b3(0x159))/0x7+parseInt(_0x4c22b3(0x15c))/0x8*(parseInt(_0x4c22b3(0x161))/0x9)+parseInt(_0x4c22b3(0x158))/0xa*(-parseInt(_0x4c22b3(0x15e))/0xb);if(_0x273778===_0x13199b)break;else _0x2951c6['push'](_0x2951c6['shift']());}catch(_0x4a9e88){_0x2951c6['push'](_0x2951c6['shift']());}}}(_0x6b56,0x1d080));export*from'./file';export*from'./friend';function _0xadf5(_0xe85888,_0x18b3b9){var _0x6b56db=_0x6b56();return _0xadf5=function(_0xadf584,_0x15ac02){_0xadf584=_0xadf584-0x158;var _0xbb2ac2=_0x6b56db[_0xadf584];return _0xbb2ac2;},_0xadf5(_0xe85888,_0x18b3b9);}function _0x6b56(){var _0x4e2e8e=['3930fQOinP','407064cMrPYp','15fUHMJF','355902nohPBG','32oIFdwa','9457vpjIhu','99gBukQY','556590KGOdrS','2bzftJU','498429htphvM','560764TpbQoN'];_0x6b56=function(){return _0x4e2e8e;};return _0x6b56();}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system';
|
File diff suppressed because one or more lines are too long
20
src/core.lib/src/apis/sign.d.ts
vendored
20
src/core.lib/src/apis/sign.d.ts
vendored
@@ -21,3 +21,23 @@ export interface MiniAppLuaJsonType {
|
||||
sourcelogo: string;
|
||||
}
|
||||
export declare function SignMiniApp(CardData: MiniAppLuaJsonType): Promise<string>;
|
||||
export declare function SignMusicInternal(songname: string, singer: string, cover: string, songmid: string, songmusic: string): Promise<{
|
||||
code: number;
|
||||
data: {
|
||||
arkResult: string;
|
||||
};
|
||||
}>;
|
||||
export declare function CreateMusicThridWay0(id?: string, mid?: string): Promise<{
|
||||
mid: string;
|
||||
name?: string | undefined;
|
||||
singer?: string | undefined;
|
||||
url?: string | undefined;
|
||||
cover?: string | undefined;
|
||||
}>;
|
||||
export declare function CreateMusicThridWay1(id?: string, mid?: string): Promise<void>;
|
||||
export declare function SignMusicWrapper(id?: string): Promise<{
|
||||
code: number;
|
||||
data: {
|
||||
arkResult: string;
|
||||
};
|
||||
}>;
|
||||
|
File diff suppressed because one or more lines are too long
1
src/core.lib/src/apis/system.d.ts
vendored
1
src/core.lib/src/apis/system.d.ts
vendored
@@ -9,4 +9,5 @@ export declare class NTQQSystemApi {
|
||||
static getArkJsonCollection(cid: string): Promise<GeneralCallResult & {
|
||||
arkJson: string;
|
||||
}>;
|
||||
static BootMiniApp(appfile: string, params: string): Promise<unknown>;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
const _0x3fc7b9=_0x384a;function _0x384a(_0x50589e,_0xbd758d){const _0x47095a=_0x4709();return _0x384a=function(_0x384a3d,_0x1b02dd){_0x384a3d=_0x384a3d-0x76;let _0x4b165e=_0x47095a[_0x384a3d];return _0x4b165e;},_0x384a(_0x50589e,_0xbd758d);}(function(_0x49bff2,_0x2ebc1e){const _0x3c9f83=_0x384a,_0x32eaff=_0x49bff2();while(!![]){try{const _0x3cc04d=parseInt(_0x3c9f83(0x7f))/0x1*(-parseInt(_0x3c9f83(0x7e))/0x2)+-parseInt(_0x3c9f83(0x87))/0x3+-parseInt(_0x3c9f83(0x81))/0x4*(-parseInt(_0x3c9f83(0x84))/0x5)+parseInt(_0x3c9f83(0x83))/0x6*(parseInt(_0x3c9f83(0x8c))/0x7)+-parseInt(_0x3c9f83(0x89))/0x8+parseInt(_0x3c9f83(0x7d))/0x9*(-parseInt(_0x3c9f83(0x8b))/0xa)+parseInt(_0x3c9f83(0x79))/0xb;if(_0x3cc04d===_0x2ebc1e)break;else _0x32eaff['push'](_0x32eaff['shift']());}catch(_0x1fee33){_0x32eaff['push'](_0x32eaff['shift']());}}}(_0x4709,0xae877));function _0x4709(){const _0x12cba7=['19896404jcGDXb','wantWinScreenOCR','translateEnWordToZn','TaqkD','522mgYaaa','654CCYpUT','1419VLNTQE','session','668Kzvzab','getArkJsonCollection','8138226uemieZ','31375PGVfOl','getRichMediaService','1717662698058','1456713HSlLvt','getOnlineDev','9512216qPGtpU','CallNoListenerEvent','234410omYkWn','7liviFl','util','getNodeMiscService','ORCImage','hasOtherRunningQQProcess'];_0x4709=function(){return _0x12cba7;};return _0x4709();}import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x3fc7b9(0x78)](){const _0x214987=_0x3fc7b9;return napCatCore[_0x214987(0x8d)][_0x214987(0x78)]();}static async[_0x3fc7b9(0x77)](_0x3d1f2f){const _0x7fc008=_0x3fc7b9;return napCatCore[_0x7fc008(0x80)][_0x7fc008(0x76)]()[_0x7fc008(0x7a)](_0x3d1f2f);}static async[_0x3fc7b9(0x7b)](_0x2294ed){const _0x589fdf=_0x3fc7b9;return napCatCore[_0x589fdf(0x80)][_0x589fdf(0x85)]()[_0x589fdf(0x7b)](_0x2294ed);}static async[_0x3fc7b9(0x88)](){const _0x188b11=_0x3fc7b9;return napCatCore[_0x188b11(0x80)]['getMsgService']()['getOnLineDev']();}static async[_0x3fc7b9(0x82)](_0xec65a2){const _0x1f9ecd=_0x3fc7b9,_0x28aba4={'TaqkD':'NodeIKernelCollectionService/collectionArkShare','tVFFZ':_0x1f9ecd(0x86)};let _0x1e6bde=await NTEventDispatch[_0x1f9ecd(0x8a)](_0x28aba4[_0x1f9ecd(0x7c)],0x1388,_0x28aba4['tVFFZ']);return _0x1e6bde;}}
|
||||
const _0xd859fc=_0x27c0;(function(_0x19ec60,_0x1340d9){const _0x53807a=_0x27c0,_0x589f6a=_0x19ec60();while(!![]){try{const _0x450fe3=parseInt(_0x53807a(0x1d3))/0x1+-parseInt(_0x53807a(0x1dc))/0x2*(parseInt(_0x53807a(0x1d5))/0x3)+parseInt(_0x53807a(0x1d1))/0x4*(-parseInt(_0x53807a(0x1ce))/0x5)+parseInt(_0x53807a(0x1e0))/0x6+-parseInt(_0x53807a(0x1df))/0x7*(-parseInt(_0x53807a(0x1d2))/0x8)+parseInt(_0x53807a(0x1d0))/0x9+-parseInt(_0x53807a(0x1e2))/0xa;if(_0x450fe3===_0x1340d9)break;else _0x589f6a['push'](_0x589f6a['shift']());}catch(_0x5d2186){_0x589f6a['push'](_0x589f6a['shift']());}}}(_0x1cd5,0x8e049));import{NTEventDispatch}from'@/common/utils/EventTask';import{napCatCore}from'@/core';function _0x27c0(_0xdb50cc,_0x3c6ddd){const _0x1cd504=_0x1cd5();return _0x27c0=function(_0x27c07a,_0x338a39){_0x27c07a=_0x27c07a-0x1c9;let _0x1d8fdd=_0x1cd504[_0x27c07a];return _0x1d8fdd;},_0x27c0(_0xdb50cc,_0x3c6ddd);}function _0x1cd5(){const _0x44d371=['getNodeMiscService','util','80521wpTPdK','5307684DwKiXT','getRichMediaService','15344410wBAEVs','getOnLineDev','aaWSB','NodeIKernelCollectionService/collectionArkShare','wantWinScreenOCR','hasOtherRunningQQProcess','235qqyPQJ','session','5299326IZjbvb','31412fPwsGq','704fgVNNV','386427cRltiW','2.16.4','580323gWozXc','CallNoListenerEvent','startNewMiniApp','setMiniAppVersion','getOnlineDev','BootMiniApp','translateEnWordToZn','4DxeBNp'];_0x1cd5=function(){return _0x44d371;};return _0x1cd5();}export class NTQQSystemApi{static async[_0xd859fc(0x1cd)](){const _0x28feba=_0xd859fc;return napCatCore[_0x28feba(0x1de)][_0x28feba(0x1cd)]();}static async['ORCImage'](_0x10fcc3){const _0x5bd5e6=_0xd859fc;return napCatCore['session'][_0x5bd5e6(0x1dd)]()[_0x5bd5e6(0x1cc)](_0x10fcc3);}static async[_0xd859fc(0x1db)](_0x8c6ade){const _0x176f7b=_0xd859fc;return napCatCore['session'][_0x176f7b(0x1e1)]()['translateEnWordToZn'](_0x8c6ade);}static async[_0xd859fc(0x1d9)](){const _0x33a331=_0xd859fc;return napCatCore[_0x33a331(0x1cf)]['getMsgService']()[_0x33a331(0x1c9)]();}static async['getArkJsonCollection'](_0x1683d5){const _0x168187=_0xd859fc,_0x22487d={'aaWSB':_0x168187(0x1cb),'ToPFw':'1717662698058'};let _0x31b204=await NTEventDispatch[_0x168187(0x1d6)](_0x22487d[_0x168187(0x1ca)],0x1388,_0x22487d['ToPFw']);return _0x31b204;}static async[_0xd859fc(0x1da)](_0x50e076,_0xe84000){const _0x1f5c3d=_0xd859fc;await napCatCore['session'][_0x1f5c3d(0x1dd)]()[_0x1f5c3d(0x1d8)](_0x1f5c3d(0x1d4));let _0x2133c5=await napCatCore[_0x1f5c3d(0x1cf)][_0x1f5c3d(0x1dd)]()['getMiniAppPath']();return console['log'](_0x2133c5),napCatCore['session'][_0x1f5c3d(0x1dd)]()[_0x1f5c3d(0x1d7)](_0x50e076,_0xe84000);}}
|
8
src/core.lib/src/apis/user.d.ts
vendored
8
src/core.lib/src/apis/user.d.ts
vendored
@@ -17,15 +17,19 @@ export declare class NTQQUserApi {
|
||||
static getUserInfo(uid: string): Promise<void>;
|
||||
static getUserDetailInfo(uid: string): Promise<User>;
|
||||
static modifySelfProfile(param: ModifyProfileParams): Promise<GeneralCallResult>;
|
||||
static getPSkey(domainList: string[], cached?: boolean): Promise<{
|
||||
static getCookies(domain: string): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getPSkey(domainList: string[]): Promise<GeneralCallResult & {
|
||||
domainPskeyMap: Map<string, string>;
|
||||
}>;
|
||||
static getRobotUinRange(): Promise<Array<any>>;
|
||||
static getQzoneCookies(): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getSkey(cached?: boolean): Promise<string | undefined>;
|
||||
static getSkey(): Promise<string | undefined>;
|
||||
static getUidByUin(Uin: string): Promise<string | undefined>;
|
||||
static getUinByUid(Uid: string | undefined): Promise<string | undefined>;
|
||||
static getUserDetailInfoByUin(Uin: string): Promise<UserDetailInfoByUin>;
|
||||
static forceFetchClientKey(): Promise<import("@/core").forceFetchClientKeyRetType>;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
16
src/core.lib/src/data.d.ts
vendored
16
src/core.lib/src/data.d.ts
vendored
@@ -1,28 +1,14 @@
|
||||
import { type Friend, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities';
|
||||
import { WebApiGroupMember } from '@/core/apis';
|
||||
export declare const Credentials: {
|
||||
Skey: string;
|
||||
CreatTime: number;
|
||||
Cookies: Map<string, string>;
|
||||
ClientKey: string;
|
||||
KeyIndex: string;
|
||||
PskeyData: Map<string, string>;
|
||||
PskeyTime: Map<string, number>;
|
||||
};
|
||||
export declare const WebGroupData: {
|
||||
GroupData: Map<string, WebApiGroupMember[]>;
|
||||
GroupTime: Map<string, number>;
|
||||
};
|
||||
export declare const selfInfo: SelfInfo;
|
||||
export declare const groups: Map<string, Group>;
|
||||
export declare function deleteGroup(groupQQ: string): void;
|
||||
export declare const groupMembers: Map<string, Map<string, GroupMember>>;
|
||||
export declare const friends: Map<string, Friend>;
|
||||
export declare const rawFriends: Array<BuddyCategoryType>;
|
||||
export declare const groupNotifies: Record<string, GroupNotify>;
|
||||
export declare function getGroup(qq: string | number): Promise<Group | undefined>;
|
||||
export declare function getGroupMember(groupQQ: string | number, memberUinOrUid: string | number): Promise<GroupMember | null | undefined>;
|
||||
export declare const tempGroupCodeMap: Record<string, string>;
|
||||
export declare const rawFriends: Array<BuddyCategoryType>;
|
||||
export declare const stat: {
|
||||
packet_received: number;
|
||||
packet_sent: number;
|
||||
|
@@ -1 +1 @@
|
||||
(function(_0x507c55,_0xe76747){const _0x4e4e9e=_0x2e30,_0x4b62ac=_0x507c55();while(!![]){try{const _0x386c5f=-parseInt(_0x4e4e9e(0x17f))/0x1*(parseInt(_0x4e4e9e(0x189))/0x2)+parseInt(_0x4e4e9e(0x18b))/0x3*(parseInt(_0x4e4e9e(0x183))/0x4)+parseInt(_0x4e4e9e(0x184))/0x5+-parseInt(_0x4e4e9e(0x191))/0x6+parseInt(_0x4e4e9e(0x185))/0x7*(-parseInt(_0x4e4e9e(0x18f))/0x8)+-parseInt(_0x4e4e9e(0x180))/0x9+parseInt(_0x4e4e9e(0x192))/0xa;if(_0x386c5f===_0xe76747)break;else _0x4b62ac['push'](_0x4b62ac['shift']());}catch(_0x254d56){_0x4b62ac['push'](_0x4b62ac['shift']());}}}(_0x1961,0x4906a));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()};function _0x2e30(_0x3bed39,_0x5b4501){const _0x1961d0=_0x1961();return _0x2e30=function(_0x2e30f1,_0x15de76){_0x2e30f1=_0x2e30f1-0x17e;let _0x310a9f=_0x1961d0[_0x2e30f1];return _0x310a9f;},_0x2e30(_0x3bed39,_0x5b4501);}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x37e81e){const _0x30124f=_0x2e30;groups[_0x30124f(0x187)](_0x37e81e),groupMembers['delete'](_0x37e81e);}export const groupMembers=new Map();export const friends=new Map();export const groupNotifies={};export async function getGroup(_0x467c99){const _0x23a892=_0x2e30;let _0x36554b=groups['get'](_0x467c99[_0x23a892(0x188)]());if(!_0x36554b)try{const _0x31841e=await NTQQGroupApi[_0x23a892(0x17e)]();_0x31841e[_0x23a892(0x190)]&&_0x31841e[_0x23a892(0x18d)](_0x163452=>{const _0x35cc3b=_0x23a892;groups['set'](_0x163452[_0x35cc3b(0x182)],_0x163452);});}catch(_0x404582){return undefined;}return _0x36554b=groups['get'](_0x467c99[_0x23a892(0x188)]()),_0x36554b;}export async function getGroupMember(_0x431789,_0x1ee32c){const _0x6ce565=_0x2e30,_0x5b8518={'dhdHT':function(_0x212e55){return _0x212e55();}};_0x431789=_0x431789[_0x6ce565(0x188)](),_0x1ee32c=_0x1ee32c[_0x6ce565(0x188)]();let _0x3189b5=groupMembers[_0x6ce565(0x181)](_0x431789);if(!_0x3189b5)try{_0x3189b5=await NTQQGroupApi[_0x6ce565(0x18e)](_0x431789),groupMembers[_0x6ce565(0x18c)](_0x431789,_0x3189b5);}catch(_0xe7c056){return null;}const _0x58b980=()=>{const _0x623f3c=_0x6ce565;let _0x30c57c=undefined;return isNumeric(_0x1ee32c)?_0x30c57c=Array[_0x623f3c(0x186)](_0x3189b5[_0x623f3c(0x193)]())['find'](_0xefd20f=>_0xefd20f['uin']===_0x1ee32c):_0x30c57c=_0x3189b5[_0x623f3c(0x181)](_0x1ee32c),_0x30c57c;};let _0x646ab1=_0x5b8518[_0x6ce565(0x18a)](_0x58b980);return!_0x646ab1&&(_0x3189b5=await NTQQGroupApi[_0x6ce565(0x18e)](_0x431789),_0x646ab1=_0x58b980()),_0x646ab1;}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};function _0x1961(){const _0x131a36=['4KMlbfN','dhdHT','249HgUmyg','set','forEach','getGroupMembers','8IIghPA','length','492744JRBlUl','10601600sCtxlA','values','getGroups','133906asyCis','4975263mosbVX','get','groupCode','11668XcxsSc','576015bFXbfL','1509319ZecXRM','from','delete','toString'];_0x1961=function(){return _0x131a36;};return _0x1961();}
|
||||
(function(_0x2ae82b,_0x5521a2){const _0x107c37=_0x8034,_0x583285=_0x2ae82b();while(!![]){try{const _0x441003=-parseInt(_0x107c37(0x193))/0x1*(-parseInt(_0x107c37(0x195))/0x2)+-parseInt(_0x107c37(0x18c))/0x3+-parseInt(_0x107c37(0x18f))/0x4+parseInt(_0x107c37(0x190))/0x5*(parseInt(_0x107c37(0x18e))/0x6)+parseInt(_0x107c37(0x1a2))/0x7+parseInt(_0x107c37(0x199))/0x8+parseInt(_0x107c37(0x1a1))/0x9*(-parseInt(_0x107c37(0x194))/0xa);if(_0x441003===_0x5521a2)break;else _0x583285['push'](_0x583285['shift']());}catch(_0x16a888){_0x583285['push'](_0x583285['shift']());}}}(_0x5f43,0x6b13e));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x5f43(){const _0x57ef38=['get','YJEXc','toString','set','81MnQDvY','1836569ZqKSOM','756921UNdvFm','uin','58860YSbBqy','1859392EGleDH','270MAuyLq','pAbUj','values','360947KMQzes','395400ZgYaIP','2ifZRGe','getGroupMembers','from','getGroups','2868408yqQbTT','delete','groupCode','forEach'];_0x5f43=function(){return _0x57ef38;};return _0x5f43();}function _0x8034(_0x56584a,_0x3d3593){const _0x5f43e8=_0x5f43();return _0x8034=function(_0x8034f4,_0x4b0b7e){_0x8034f4=_0x8034f4-0x18c;let _0x49dcd4=_0x5f43e8[_0x8034f4];return _0x49dcd4;},_0x8034(_0x56584a,_0x3d3593);}export const groups=new Map();export function deleteGroup(_0x192627){const _0x6a813d=_0x8034;groups[_0x6a813d(0x19a)](_0x192627),groupMembers['delete'](_0x192627);}export const groupMembers=new Map();export const friends=new Map();export const rawFriends=[];export const groupNotifies={};export async function getGroup(_0x4f6104){const _0x5e163b=_0x8034;let _0x12e5a5=groups[_0x5e163b(0x19d)](_0x4f6104['toString']());if(!_0x12e5a5)try{const _0x4748f1=await NTQQGroupApi[_0x5e163b(0x198)]();_0x4748f1['length']&&_0x4748f1[_0x5e163b(0x19c)](_0x426239=>{const _0x3345e8=_0x5e163b;groups[_0x3345e8(0x1a0)](_0x426239[_0x3345e8(0x19b)],_0x426239);});}catch(_0x250269){return undefined;}return _0x12e5a5=groups[_0x5e163b(0x19d)](_0x4f6104[_0x5e163b(0x19f)]()),_0x12e5a5;}export async function getGroupMember(_0x4a2b82,_0x531ed4){const _0x2e3cb3=_0x8034,_0x50e18c={'WFUIc':function(_0x31bbd2,_0x3f9435){return _0x31bbd2(_0x3f9435);},'YJEXc':function(_0x517da1){return _0x517da1();},'pAbUj':function(_0xa6df48){return _0xa6df48();}};_0x4a2b82=_0x4a2b82[_0x2e3cb3(0x19f)](),_0x531ed4=_0x531ed4[_0x2e3cb3(0x19f)]();let _0x5d565b=groupMembers[_0x2e3cb3(0x19d)](_0x4a2b82);if(!_0x5d565b)try{_0x5d565b=await NTQQGroupApi[_0x2e3cb3(0x196)](_0x4a2b82),groupMembers[_0x2e3cb3(0x1a0)](_0x4a2b82,_0x5d565b);}catch(_0x46da0b){return null;}const _0x265a9d=()=>{const _0x58c04d=_0x2e3cb3;let _0x5d2e2a=undefined;return _0x50e18c['WFUIc'](isNumeric,_0x531ed4)?_0x5d2e2a=Array[_0x58c04d(0x197)](_0x5d565b[_0x58c04d(0x192)]())['find'](_0x5ba709=>_0x5ba709[_0x58c04d(0x18d)]===_0x531ed4):_0x5d2e2a=_0x5d565b['get'](_0x531ed4),_0x5d2e2a;};let _0x44ca6b=_0x50e18c[_0x2e3cb3(0x19e)](_0x265a9d);return!_0x44ca6b&&(_0x5d565b=await NTQQGroupApi[_0x2e3cb3(0x196)](_0x4a2b82),_0x44ca6b=_0x50e18c[_0x2e3cb3(0x191)](_0x265a9d)),_0x44ca6b;}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
@@ -1 +1 @@
|
||||
(function(_0x3f1f62,_0x2ee11c){var _0x4f4168=_0x1a36,_0x13f90b=_0x3f1f62();while(!![]){try{var _0x2671fe=-parseInt(_0x4f4168(0x18f))/0x1+-parseInt(_0x4f4168(0x19b))/0x2+parseInt(_0x4f4168(0x191))/0x3*(-parseInt(_0x4f4168(0x195))/0x4)+parseInt(_0x4f4168(0x190))/0x5*(-parseInt(_0x4f4168(0x19d))/0x6)+-parseInt(_0x4f4168(0x18d))/0x7*(parseInt(_0x4f4168(0x197))/0x8)+parseInt(_0x4f4168(0x196))/0x9+parseInt(_0x4f4168(0x18e))/0xa;if(_0x2671fe===_0x2ee11c)break;else _0x13f90b['push'](_0x13f90b['shift']());}catch(_0x3dff2d){_0x13f90b['push'](_0x13f90b['shift']());}}}(_0x1645,0x957be));function _0x1645(){var _0x474b8a=['5769VVKndC','4|2|3|1|0','BgcgY','IMAGE','1652VUUNFo','9129204TwgQGp','264200vEySjN','split','vUSKZ','GltZX','441688MlxfaN','VIDEO','66dXPnvb','AUDIO','OTHER','119YQvYnT','21765840vhRuVh','696529ktOaZd','138935zZMdZa'];_0x1645=function(){return _0x474b8a;};return _0x1645();};export var CacheFileType;function _0x1a36(_0x50e87d,_0x5dac65){var _0x164580=_0x1645();return _0x1a36=function(_0x1a3616,_0x3ccc21){_0x1a3616=_0x1a3616-0x18c;var _0x54aac9=_0x164580[_0x1a3616];return _0x54aac9;},_0x1a36(_0x50e87d,_0x5dac65);}(function(_0x1145cd){var _0x820379=_0x1a36,_0x25420a={'ANFeE':_0x820379(0x192),'BgcgY':'DOCUMENT','vUSKZ':_0x820379(0x19e),'GltZX':_0x820379(0x194)},_0x3fc4af=_0x25420a['ANFeE'][_0x820379(0x198)]('|'),_0x257f09=0x0;while(!![]){switch(_0x3fc4af[_0x257f09++]){case'0':_0x1145cd[_0x1145cd[_0x820379(0x18c)]=0x4]=_0x820379(0x18c);continue;case'1':_0x1145cd[_0x1145cd['DOCUMENT']=0x3]=_0x25420a[_0x820379(0x193)];continue;case'2':_0x1145cd[_0x1145cd[_0x820379(0x19c)]=0x1]=_0x820379(0x19c);continue;case'3':_0x1145cd[_0x1145cd[_0x25420a[_0x820379(0x199)]]=0x2]=_0x25420a['vUSKZ'];continue;case'4':_0x1145cd[_0x1145cd[_0x25420a[_0x820379(0x19a)]]=0x0]=_0x820379(0x194);continue;}break;}}(CacheFileType||(CacheFileType={})));
|
||||
(function(_0x82d6f1,_0x1dd832){var _0x578224=_0xb5e2,_0x5d6ee2=_0x82d6f1();while(!![]){try{var _0x5a4f51=-parseInt(_0x578224(0x8b))/0x1+parseInt(_0x578224(0x7a))/0x2*(-parseInt(_0x578224(0x82))/0x3)+-parseInt(_0x578224(0x85))/0x4+parseInt(_0x578224(0x84))/0x5+parseInt(_0x578224(0x83))/0x6*(-parseInt(_0x578224(0x8d))/0x7)+parseInt(_0x578224(0x89))/0x8*(-parseInt(_0x578224(0x8a))/0x9)+parseInt(_0x578224(0x7f))/0xa;if(_0x5a4f51===_0x1dd832)break;else _0x5d6ee2['push'](_0x5d6ee2['shift']());}catch(_0x29c7cd){_0x5d6ee2['push'](_0x5d6ee2['shift']());}}}(_0x417c,0x6d6e3));function _0xb5e2(_0xd26eab,_0x500603){var _0x417c9e=_0x417c();return _0xb5e2=function(_0xb5e207,_0x5d8616){_0xb5e207=_0xb5e207-0x7a;var _0x22ff59=_0x417c9e[_0xb5e207];return _0x22ff59;},_0xb5e2(_0xd26eab,_0x500603);}function _0x417c(){var _0x486dd0=['OTHER','14TrooVz','12BZLawf','VIDEO','HDWWn','UArdR','IUVtg','18480360VermPA','Azfyv','IMAGE','233463BjJIDs','2351802mVesbi','4145165JLnXil','699244MmGstQ','AUDIO','split','wVMeJ','8PuLgMm','2616192heGAjK','512483nlRulV'];_0x417c=function(){return _0x486dd0;};return _0x417c();};export var CacheFileType;(function(_0x836b1d){var _0x4f7cc8=_0xb5e2,_0x1dc981={'IUVtg':_0x4f7cc8(0x7b),'wVMeJ':'OTHER','Azfyv':'DOCUMENT','HDWWn':_0x4f7cc8(0x86),'UArdR':'IMAGE'},_0x2e4ac1='4|0|3|2|1'[_0x4f7cc8(0x87)]('|'),_0xf1ac3b=0x0;while(!![]){switch(_0x2e4ac1[_0xf1ac3b++]){case'0':_0x836b1d[_0x836b1d[_0x1dc981[_0x4f7cc8(0x7e)]]=0x1]=_0x1dc981[_0x4f7cc8(0x7e)];continue;case'1':_0x836b1d[_0x836b1d[_0x4f7cc8(0x8c)]=0x4]=_0x1dc981[_0x4f7cc8(0x88)];continue;case'2':_0x836b1d[_0x836b1d[_0x1dc981['Azfyv']]=0x3]=_0x1dc981[_0x4f7cc8(0x80)];continue;case'3':_0x836b1d[_0x836b1d[_0x1dc981[_0x4f7cc8(0x7c)]]=0x2]=_0x1dc981[_0x4f7cc8(0x7c)];continue;case'4':_0x836b1d[_0x836b1d[_0x1dc981[_0x4f7cc8(0x7d)]]=0x0]=_0x4f7cc8(0x81);continue;}break;}}(CacheFileType||(CacheFileType={})));
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x4fa9(_0x1b8aa4,_0xe764b9){var _0x574dc5=_0x574d();return _0x4fa9=function(_0x4fa96d,_0xa41fd1){_0x4fa96d=_0x4fa96d-0x18d;var _0x1e1e67=_0x574dc5[_0x4fa96d];return _0x1e1e67;},_0x4fa9(_0x1b8aa4,_0xe764b9);}(function(_0x27cc84,_0x27d8d5){var _0x42e11a=_0x4fa9,_0x310382=_0x27cc84();while(!![]){try{var _0x1ebcec=-parseInt(_0x42e11a(0x192))/0x1*(-parseInt(_0x42e11a(0x198))/0x2)+-parseInt(_0x42e11a(0x191))/0x3+parseInt(_0x42e11a(0x19a))/0x4*(parseInt(_0x42e11a(0x18e))/0x5)+parseInt(_0x42e11a(0x18f))/0x6+-parseInt(_0x42e11a(0x197))/0x7+parseInt(_0x42e11a(0x18d))/0x8+parseInt(_0x42e11a(0x193))/0x9;if(_0x1ebcec===_0x27d8d5)break;else _0x310382['push'](_0x310382['shift']());}catch(_0x222867){_0x310382['push'](_0x310382['shift']());}}}(_0x574d,0x74020));export var GroupMemberRole;(function(_0x437fbe){var _0x3fd34e=_0x4fa9,_0x419352={'qinqD':_0x3fd34e(0x199),'TRIDz':_0x3fd34e(0x190),'fjWzM':_0x3fd34e(0x19b)};_0x437fbe[_0x437fbe[_0x419352[_0x3fd34e(0x194)]]=0x2]=_0x419352[_0x3fd34e(0x194)],_0x437fbe[_0x437fbe[_0x419352[_0x3fd34e(0x195)]]=0x3]=_0x419352[_0x3fd34e(0x195)],_0x437fbe[_0x437fbe['owner']=0x4]=_0x419352[_0x3fd34e(0x196)];}(GroupMemberRole||(GroupMemberRole={})));function _0x574d(){var _0x5ab7f4=['1277586OHOfft','admin','2027889ZIVNBv','19993BIGMwG','2169621YDVhPi','qinqD','TRIDz','fjWzM','3525746GeiZUe','44VqhrQR','normal','1802172GkXOoH','owner','2483360aEVIHp','5ttzTHk'];_0x574d=function(){return _0x5ab7f4;};return _0x574d();}
|
||||
(function(_0x3dced5,_0x2c485b){var _0x281449=_0x490f,_0x1845dc=_0x3dced5();while(!![]){try{var _0x280f18=parseInt(_0x281449(0x1f9))/0x1+parseInt(_0x281449(0x1fc))/0x2*(-parseInt(_0x281449(0x1ef))/0x3)+parseInt(_0x281449(0x1f1))/0x4+parseInt(_0x281449(0x1f2))/0x5+parseInt(_0x281449(0x1f8))/0x6*(parseInt(_0x281449(0x1f7))/0x7)+-parseInt(_0x281449(0x1f0))/0x8*(parseInt(_0x281449(0x1fb))/0x9)+-parseInt(_0x281449(0x1f3))/0xa;if(_0x280f18===_0x2c485b)break;else _0x1845dc['push'](_0x1845dc['shift']());}catch(_0x2218a4){_0x1845dc['push'](_0x1845dc['shift']());}}}(_0x16e1,0xed685));function _0x16e1(){var _0x351aeb=['8834FZxmdg','5178fSiXKj','852105DqaKVI','ZxGYB','9xcRocm','8530brQQwl','582kRxwhY','2242008fVhKMy','655756IUMRdV','7581785RzWlWM','15414250dicBGg','owner','admin','MQuiD'];_0x16e1=function(){return _0x351aeb;};return _0x16e1();}function _0x490f(_0x2673cc,_0x41ddd2){var _0x16e1e0=_0x16e1();return _0x490f=function(_0x490f37,_0x3fe4d6){_0x490f37=_0x490f37-0x1ef;var _0xcce750=_0x16e1e0[_0x490f37];return _0xcce750;},_0x490f(_0x2673cc,_0x41ddd2);}export var GroupMemberRole;(function(_0x2b0afc){var _0x35d605=_0x490f,_0x25276f={'ZxGYB':'normal','MQuiD':_0x35d605(0x1f4)};_0x2b0afc[_0x2b0afc[_0x25276f[_0x35d605(0x1fa)]]=0x2]='normal',_0x2b0afc[_0x2b0afc['admin']=0x3]=_0x35d605(0x1f5),_0x2b0afc[_0x2b0afc[_0x25276f[_0x35d605(0x1f6)]]=0x4]=_0x35d605(0x1f4);}(GroupMemberRole||(GroupMemberRole={})));
|
@@ -1 +1 @@
|
||||
(function(_0x398a76,_0x4edc0d){var _0x1febae=_0x15a8,_0x7ccf83=_0x398a76();while(!![]){try{var _0x288ef6=-parseInt(_0x1febae(0xfe))/0x1*(parseInt(_0x1febae(0xf8))/0x2)+parseInt(_0x1febae(0xfa))/0x3+parseInt(_0x1febae(0xfd))/0x4*(-parseInt(_0x1febae(0xfc))/0x5)+-parseInt(_0x1febae(0xf9))/0x6+-parseInt(_0x1febae(0x100))/0x7+-parseInt(_0x1febae(0xff))/0x8+-parseInt(_0x1febae(0xf7))/0x9*(-parseInt(_0x1febae(0xfb))/0xa);if(_0x288ef6===_0x4edc0d)break;else _0x7ccf83['push'](_0x7ccf83['shift']());}catch(_0xe88819){_0x7ccf83['push'](_0x7ccf83['shift']());}}}(_0x4607,0x45a64));function _0x15a8(_0x543c74,_0x494cdd){var _0x460773=_0x4607();return _0x15a8=function(_0x15a843,_0x34a8bd){_0x15a843=_0x15a843-0xf7;var _0x23446a=_0x460773[_0x15a843];return _0x23446a;},_0x15a8(_0x543c74,_0x494cdd);}function _0x4607(){var _0x1d7141=['550EjbNQG','63435lAeZpw','24wNkwXj','563147CknCoR','3543824KPiNeO','1742727PvunvK','257625HjFBnz','2GSqeQw','758706HCAzzU','505704CasaQC'];_0x4607=function(){return _0x1d7141;};return _0x4607();}export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';
|
||||
function _0x5436(){var _0x7e1d96=['525aRNMDk','24774ADzSFE','1768vSmtSK','389939GpYsiX','134193FNvady','18092WAsbnc','6363pEYOTQ','3418800fZnBvW','35dOEdLr','99192ZpRgWp'];_0x5436=function(){return _0x7e1d96;};return _0x5436();}(function(_0x24b220,_0x3310bf){var _0xd69dd6=_0x3bbe,_0x47a565=_0x24b220();while(!![]){try{var _0x1e1718=-parseInt(_0xd69dd6(0x175))/0x1+parseInt(_0xd69dd6(0x171))/0x2+-parseInt(_0xd69dd6(0x176))/0x3+parseInt(_0xd69dd6(0x177))/0x4*(parseInt(_0xd69dd6(0x172))/0x5)+parseInt(_0xd69dd6(0x173))/0x6*(parseInt(_0xd69dd6(0x170))/0x7)+parseInt(_0xd69dd6(0x174))/0x8*(-parseInt(_0xd69dd6(0x178))/0x9)+parseInt(_0xd69dd6(0x16f))/0xa;if(_0x1e1718===_0x3310bf)break;else _0x47a565['push'](_0x47a565['shift']());}catch(_0x431aba){_0x47a565['push'](_0x47a565['shift']());}}}(_0x5436,0x484b7));export*from'./user';export*from'./group';function _0x3bbe(_0x568205,_0x2896c0){var _0x543655=_0x5436();return _0x3bbe=function(_0x3bbe58,_0x440211){_0x3bbe58=_0x3bbe58-0x16f;var _0x526ba1=_0x543655[_0x3bbe58];return _0x526ba1;},_0x3bbe(_0x568205,_0x2896c0);}export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor';
|
1
src/core.lib/src/entities/msg.d.ts
vendored
1
src/core.lib/src/entities/msg.d.ts
vendored
@@ -229,6 +229,7 @@ export interface ArkElement {
|
||||
export declare const IMAGE_HTTP_HOST = "https://gchat.qpic.cn";
|
||||
export declare const IMAGE_HTTP_HOST_NT = "https://multimedia.nt.qq.com.cn";
|
||||
export interface PicElement {
|
||||
picSubType?: number;
|
||||
originImageUrl: string;
|
||||
originImageMd5?: string;
|
||||
sourcePath: string;
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0xcbb36a,_0x16d7e2){var _0x40581a=_0x384c,_0x36ae05=_0xcbb36a();while(!![]){try{var _0x351061=-parseInt(_0x40581a(0x7d))/0x1+parseInt(_0x40581a(0x75))/0x2*(parseInt(_0x40581a(0x84))/0x3)+-parseInt(_0x40581a(0x80))/0x4+parseInt(_0x40581a(0x77))/0x5*(-parseInt(_0x40581a(0x7a))/0x6)+-parseInt(_0x40581a(0x74))/0x7+parseInt(_0x40581a(0x78))/0x8+parseInt(_0x40581a(0x7b))/0x9;if(_0x351061===_0x16d7e2)break;else _0x36ae05['push'](_0x36ae05['shift']());}catch(_0x289261){_0x36ae05['push'](_0x36ae05['shift']());}}}(_0x4268,0xc904a));export var Sex;function _0x4268(){var _0x30bfec=['3824064FEUoER','KPHOTOWALL','Troww','urdzG','41706rouBmE','4941132nkRnkx','154ZsDGaP','mAzVH','15HGefOY','8965688nAXyYI','unknown','715014ouhrta','18962010cPnrzu','PcVvq','1455286yfVScl','KPRIVILEGEICON','male'];_0x4268=function(){return _0x30bfec;};return _0x4268();}function _0x384c(_0x4c016f,_0x4adf98){var _0x42683d=_0x4268();return _0x384c=function(_0x384c15,_0x1538af){_0x384c15=_0x384c15-0x74;var _0x49467c=_0x42683d[_0x384c15];return _0x49467c;},_0x384c(_0x4c016f,_0x4adf98);}(function(_0x3a1050){var _0x2b42c5=_0x384c,_0x39ecd8={'qjRxI':_0x2b42c5(0x7f),'PcVvq':'female','Troww':_0x2b42c5(0x79)};_0x3a1050[_0x3a1050['male']=0x1]=_0x39ecd8['qjRxI'],_0x3a1050[_0x3a1050[_0x39ecd8[_0x2b42c5(0x7c)]]=0x2]=_0x39ecd8[_0x2b42c5(0x7c)],_0x3a1050[_0x3a1050[_0x39ecd8[_0x2b42c5(0x82)]]=0xff]=_0x39ecd8['Troww'];}(Sex||(Sex={})));export var BizKey;(function(_0x13d00b){var _0x411529=_0x384c,_0x167647={'mAzVH':'KPRIVILEGEICON','urdzG':_0x411529(0x81)};_0x13d00b[_0x13d00b[_0x411529(0x7e)]=0x0]=_0x167647[_0x411529(0x76)],_0x13d00b[_0x13d00b[_0x167647[_0x411529(0x83)]]=0x1]=_0x167647[_0x411529(0x83)];}(BizKey||(BizKey={})));
|
||||
(function(_0x5650bf,_0xe51e96){var _0x5cd9ab=_0x2cdb,_0x480c63=_0x5650bf();while(!![]){try{var _0x3d0f03=-parseInt(_0x5cd9ab(0x14d))/0x1+parseInt(_0x5cd9ab(0x14f))/0x2*(-parseInt(_0x5cd9ab(0x154))/0x3)+parseInt(_0x5cd9ab(0x151))/0x4+parseInt(_0x5cd9ab(0x15b))/0x5+parseInt(_0x5cd9ab(0x159))/0x6*(parseInt(_0x5cd9ab(0x15a))/0x7)+parseInt(_0x5cd9ab(0x158))/0x8*(-parseInt(_0x5cd9ab(0x14b))/0x9)+-parseInt(_0x5cd9ab(0x155))/0xa;if(_0x3d0f03===_0xe51e96)break;else _0x480c63['push'](_0x480c63['shift']());}catch(_0x434ee3){_0x480c63['push'](_0x480c63['shift']());}}}(_0x4d56,0xed20a));export var Sex;function _0x2cdb(_0x3d5b1c,_0x1fbd7c){var _0x4d5635=_0x4d56();return _0x2cdb=function(_0x2cdb84,_0x2fde94){_0x2cdb84=_0x2cdb84-0x14b;var _0x327e8e=_0x4d5635[_0x2cdb84];return _0x327e8e;},_0x2cdb(_0x3d5b1c,_0x1fbd7c);}function _0x4d56(){var _0x3b1b50=['9ywjKCE','female','6755SmnXtB','RaDUz','44134qWRnuW','bBzeI','6933932slYrkw','male','KPHOTOWALL','78JYBxIs','10854850MpxAVM','cSRtr','unknown','13097944VlTEkL','11886XHQVqz','2828svUqbe','8703460KgfOhI'];_0x4d56=function(){return _0x3b1b50;};return _0x4d56();}(function(_0x573086){var _0x4a64b5=_0x2cdb,_0x50bbe0={'BuehO':_0x4a64b5(0x14c),'bBzeI':_0x4a64b5(0x157)};_0x573086[_0x573086[_0x4a64b5(0x152)]=0x1]='male',_0x573086[_0x573086[_0x50bbe0['BuehO']]=0x2]=_0x50bbe0['BuehO'],_0x573086[_0x573086[_0x50bbe0[_0x4a64b5(0x150)]]=0xff]='unknown';}(Sex||(Sex={})));export var BizKey;(function(_0x25af09){var _0xbbd430=_0x2cdb,_0xcbd994={'cSRtr':'KPRIVILEGEICON','RaDUz':_0xbbd430(0x153)};_0x25af09[_0x25af09[_0xcbd994[_0xbbd430(0x156)]]=0x0]=_0xcbd994[_0xbbd430(0x156)],_0x25af09[_0x25af09[_0xcbd994['RaDUz']]=0x1]=_0xcbd994[_0xbbd430(0x14e)];}(BizKey||(BizKey={})));
|
@@ -1 +1 @@
|
||||
(function(_0x26ee1c,_0x347a8a){var _0x3b74ce=_0x1c2c,_0x5f5006=_0x26ee1c();while(!![]){try{var _0x208979=-parseInt(_0x3b74ce(0x12c))/0x1+parseInt(_0x3b74ce(0x129))/0x2*(parseInt(_0x3b74ce(0x131))/0x3)+-parseInt(_0x3b74ce(0x132))/0x4+parseInt(_0x3b74ce(0x12b))/0x5*(-parseInt(_0x3b74ce(0x130))/0x6)+-parseInt(_0x3b74ce(0x12e))/0x7*(-parseInt(_0x3b74ce(0x12d))/0x8)+-parseInt(_0x3b74ce(0x133))/0x9*(-parseInt(_0x3b74ce(0x12f))/0xa)+parseInt(_0x3b74ce(0x12a))/0xb;if(_0x208979===_0x347a8a)break;else _0x5f5006['push'](_0x5f5006['shift']());}catch(_0x1154ac){_0x5f5006['push'](_0x5f5006['shift']());}}}(_0x2553,0x8aed2));import _0x5bdf5e from'./wrapper';function _0x2553(){var _0x1181a9=['65yTZpQk','1135849odFnGK','8nGmFrx','3470369ygdNlR','16070DGQfHZ','224154dGvkEW','6TStjKL','1572392GIeRbN','1089OjgKVt','93038vMiqFC','19804444KSxapC'];_0x2553=function(){return _0x1181a9;};return _0x2553();}function _0x1c2c(_0x4b199f,_0x2845be){var _0x25538a=_0x2553();return _0x1c2c=function(_0x1c2c2e,_0xd2814d){_0x1c2c2e=_0x1c2c2e-0x129;var _0x188a69=_0x25538a[_0x1c2c2e];return _0x188a69;},_0x1c2c(_0x4b199f,_0x2845be);}export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5bdf5e as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
(function(_0x5a611f,_0x3308b1){var _0x31267f=_0x3daa,_0x2a0ebf=_0x5a611f();while(!![]){try{var _0x4c8c78=-parseInt(_0x31267f(0x182))/0x1*(-parseInt(_0x31267f(0x17f))/0x2)+-parseInt(_0x31267f(0x186))/0x3*(-parseInt(_0x31267f(0x17e))/0x4)+-parseInt(_0x31267f(0x188))/0x5*(parseInt(_0x31267f(0x187))/0x6)+-parseInt(_0x31267f(0x180))/0x7+parseInt(_0x31267f(0x183))/0x8+parseInt(_0x31267f(0x181))/0x9*(-parseInt(_0x31267f(0x189))/0xa)+-parseInt(_0x31267f(0x185))/0xb*(-parseInt(_0x31267f(0x184))/0xc);if(_0x4c8c78===_0x3308b1)break;else _0x2a0ebf['push'](_0x2a0ebf['shift']());}catch(_0x5cb6b8){_0x2a0ebf['push'](_0x2a0ebf['shift']());}}}(_0x44d9,0xc66d6));import _0x21ae4a from'./wrapper';export*from'./adapters';function _0x3daa(_0x4c5ad3,_0x1c5bf5){var _0x44d917=_0x44d9();return _0x3daa=function(_0x3daaab,_0x43bb68){_0x3daaab=_0x3daaab-0x17e;var _0x3abd90=_0x44d917[_0x3daaab];return _0x3abd90;},_0x3daa(_0x4c5ad3,_0x1c5bf5);}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';function _0x44d9(){var _0x6bcbcc=['215qKWFmZ','9280znJdEW','159684aKOSlB','4mhrhJq','11122125dhrXkz','5409KDpclF','95219dOgrzz','2176728ugeRXJ','118452QZoXkP','3223emvWXb','48IaQoAP','144294OmMqDZ'];_0x44d9=function(){return _0x6bcbcc;};return _0x44d9();}export*as Services from'./services';export{_0x21ae4a as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
@@ -1 +1 @@
|
||||
function _0x2bb7(_0x1ba2fb,_0x1fa335){var _0x5d051e=_0x5d05();return _0x2bb7=function(_0x2bb74a,_0x1eeb6d){_0x2bb74a=_0x2bb74a-0x9f;var _0x13da0f=_0x5d051e[_0x2bb74a];return _0x13da0f;},_0x2bb7(_0x1ba2fb,_0x1fa335);}var _0x55766b=_0x2bb7;(function(_0xed1e81,_0x58aa45){var _0x1ecd44=_0x2bb7,_0xed3926=_0xed1e81();while(!![]){try{var _0x50db8c=parseInt(_0x1ecd44(0xac))/0x1*(-parseInt(_0x1ecd44(0xa8))/0x2)+parseInt(_0x1ecd44(0xa2))/0x3+parseInt(_0x1ecd44(0xae))/0x4+parseInt(_0x1ecd44(0xa4))/0x5+parseInt(_0x1ecd44(0xaf))/0x6*(parseInt(_0x1ecd44(0xb1))/0x7)+-parseInt(_0x1ecd44(0x9f))/0x8+-parseInt(_0x1ecd44(0xad))/0x9;if(_0x50db8c===_0x58aa45)break;else _0xed3926['push'](_0xed3926['shift']());}catch(_0x50877c){_0xed3926['push'](_0xed3926['shift']());}}}(_0x5d05,0x6d31d));function _0x5d05(){var _0x1307df=['2541500wJBiMp','330LepRXY','onCheckBuddySettingResult','72898AXXYfE','onDoubtBuddyReqChange','onBlockChanged','6322944JLcTXf','onBuddyReqChange','onAddMeSettingChanged','1440495ACcsnc','onAddBuddyNeedVerify','3721535OvKkss','onBuddyRemarkUpdated','onDoubtBuddyReqUnreadNumChange','onDelBatchBuddyInfos','2316khtnfV','onAvatarUrlUpdated','onBuddyInfoChange','onBuddyListChange','578XvRoko','4730976cZSniZ'];_0x5d05=function(){return _0x1307df;};return _0x5d05();}export class BuddyListener{[_0x55766b(0xa3)](_0x352285){}[_0x55766b(0xa1)](_0x23e722){}[_0x55766b(0xa9)](_0x30aa2d){}[_0x55766b(0xb3)](_0x37955a){}['onBuddyDetailInfoChange'](_0x31fc44){}[_0x55766b(0xaa)](_0x193460){}[_0x55766b(0xab)](_0x11181b){}[_0x55766b(0xa5)](_0x225269){}[_0x55766b(0xa0)](_0x45dd04){}['onBuddyReqUnreadCntChange'](_0x2a878c){}[_0x55766b(0xb0)](_0x30b930){}[_0x55766b(0xa7)](_0x37a6df){}[_0x55766b(0xb2)](_0x124df8){}[_0x55766b(0xa6)](_0x4ca9b9){}['onNickUpdated'](_0x1065ff){}['onSmartInfos'](_0xb5497f){}['onSpacePermissionInfos'](_0x172c6a){}}
|
||||
var _0x477372=_0x2171;(function(_0x2ad203,_0x423810){var _0x558daf=_0x2171,_0x300753=_0x2ad203();while(!![]){try{var _0x33e68d=-parseInt(_0x558daf(0x16c))/0x1*(parseInt(_0x558daf(0x15c))/0x2)+-parseInt(_0x558daf(0x166))/0x3+parseInt(_0x558daf(0x15f))/0x4+-parseInt(_0x558daf(0x16d))/0x5*(-parseInt(_0x558daf(0x168))/0x6)+-parseInt(_0x558daf(0x170))/0x7*(-parseInt(_0x558daf(0x15d))/0x8)+parseInt(_0x558daf(0x163))/0x9+-parseInt(_0x558daf(0x16e))/0xa;if(_0x33e68d===_0x423810)break;else _0x300753['push'](_0x300753['shift']());}catch(_0x4f47a8){_0x300753['push'](_0x300753['shift']());}}}(_0x2104,0x6cf10));function _0x2104(){var _0x5aaa06=['13779210izOZGL','onDelBatchBuddyInfos','70cMqgUd','514IrQDUC','57040BrMOct','onDoubtBuddyReqChange','3409168HlykBs','onDoubtBuddyReqUnreadNumChange','onBuddyReqChange','onBuddyInfoChange','5516109lQjldF','onAddMeSettingChanged','onCheckBuddySettingResult','758109uHryOs','onBuddyListChange','12bgyFCZ','onBuddyRemarkUpdated','onAvatarUrlUpdated','onSmartInfos','941snrSNN','1955480XcbUks'];_0x2104=function(){return _0x5aaa06;};return _0x2104();}function _0x2171(_0x2b9791,_0x38032c){var _0x210405=_0x2104();return _0x2171=function(_0x217105,_0x103c23){_0x217105=_0x217105-0x15c;var _0x2b76d9=_0x210405[_0x217105];return _0x2b76d9;},_0x2171(_0x2b9791,_0x38032c);}export class BuddyListener{['onAddBuddyNeedVerify'](_0x4e8c35){}[_0x477372(0x164)](_0x20ba98){}[_0x477372(0x16a)](_0x487844){}['onBlockChanged'](_0x32f80a){}['onBuddyDetailInfoChange'](_0x3d6623){}[_0x477372(0x162)](_0x11e90c){}[_0x477372(0x167)](_0x25273c){}[_0x477372(0x169)](_0x3942eb){}[_0x477372(0x161)](_0x286132){}['onBuddyReqUnreadCntChange'](_0x3d91a2){}[_0x477372(0x165)](_0x464114){}[_0x477372(0x16f)](_0x21a880){}[_0x477372(0x15e)](_0x46729d){}[_0x477372(0x160)](_0x21af9a){}['onNickUpdated'](_0xa5bf38){}[_0x477372(0x16b)](_0x5a3472){}['onSpacePermissionInfos'](_0x2c2cb5){}}
|
@@ -1 +1 @@
|
||||
var _0x2b51aa=_0x3208;(function(_0x486983,_0xeab1b7){var _0x23adb6=_0x3208,_0x278562=_0x486983();while(!![]){try{var _0x2ea51c=parseInt(_0x23adb6(0x135))/0x1*(parseInt(_0x23adb6(0x136))/0x2)+-parseInt(_0x23adb6(0x13b))/0x3*(-parseInt(_0x23adb6(0x133))/0x4)+-parseInt(_0x23adb6(0x138))/0x5*(-parseInt(_0x23adb6(0x13a))/0x6)+-parseInt(_0x23adb6(0x139))/0x7+-parseInt(_0x23adb6(0x134))/0x8+parseInt(_0x23adb6(0x132))/0x9*(parseInt(_0x23adb6(0x130))/0xa)+parseInt(_0x23adb6(0x131))/0xb*(-parseInt(_0x23adb6(0x12f))/0xc);if(_0x2ea51c===_0xeab1b7)break;else _0x278562['push'](_0x278562['shift']());}catch(_0x3899b4){_0x278562['push'](_0x278562['shift']());}}}(_0x5309,0x3cca8));function _0x5309(){var _0x85660b=['561216fkvvKE','9503SDyjiz','10nSdxKL','onFileListChanged','1055vaTWGm','663922CCCsjV','9510tTnHtN','194925oAkCgf','onFileStatusChanged','24UcblqO','60IDNWwd','2092794GmMzTv','423909awrtMO','8qZpgOG'];_0x5309=function(){return _0x85660b;};return _0x5309();}function _0x3208(_0x68db52,_0x5a2238){var _0x530974=_0x5309();return _0x3208=function(_0x320815,_0x449cfe){_0x320815=_0x320815-0x12e;var _0x4e4080=_0x530974[_0x320815];return _0x4e4080;},_0x3208(_0x68db52,_0x5a2238);}export class KernelFileAssistantListener{[_0x2b51aa(0x12e)](..._0x32460a){}['onSessionListChanged'](..._0x14a29d){}['onSessionChanged'](..._0x51d076){}[_0x2b51aa(0x137)](..._0x5c162b){}['onFileSearch'](..._0x3ce1b8){}}
|
||||
function _0x3323(_0x5b4b05,_0x20a3a4){var _0x452b78=_0x452b();return _0x3323=function(_0x332358,_0x4ae1d5){_0x332358=_0x332358-0x1c8;var _0x50e617=_0x452b78[_0x332358];return _0x50e617;},_0x3323(_0x5b4b05,_0x20a3a4);}var _0x53c6ac=_0x3323;(function(_0x4d86b1,_0x1a34c5){var _0x3682cb=_0x3323,_0x19b1af=_0x4d86b1();while(!![]){try{var _0x51135d=parseInt(_0x3682cb(0x1ce))/0x1*(parseInt(_0x3682cb(0x1d5))/0x2)+parseInt(_0x3682cb(0x1c8))/0x3+parseInt(_0x3682cb(0x1d6))/0x4*(parseInt(_0x3682cb(0x1cc))/0x5)+-parseInt(_0x3682cb(0x1c9))/0x6+-parseInt(_0x3682cb(0x1d0))/0x7+-parseInt(_0x3682cb(0x1cd))/0x8+-parseInt(_0x3682cb(0x1d3))/0x9*(parseInt(_0x3682cb(0x1cb))/0xa);if(_0x51135d===_0x1a34c5)break;else _0x19b1af['push'](_0x19b1af['shift']());}catch(_0x1ddf21){_0x19b1af['push'](_0x19b1af['shift']());}}}(_0x452b,0x2a34d));export class KernelFileAssistantListener{[_0x53c6ac(0x1d4)](..._0x51e8d6){}[_0x53c6ac(0x1cf)](..._0x24d1bc){}[_0x53c6ac(0x1d2)](..._0x593c69){}[_0x53c6ac(0x1d1)](..._0x41b7be){}[_0x53c6ac(0x1ca)](..._0x4fa8d4){}}function _0x452b(){var _0x14b4e0=['297724pndVNW','onFileListChanged','onSessionChanged','108063DGZRyN','onFileStatusChanged','698gfoKBH','1360484DUWEiL','926808LsNijs','1150446wlxYFY','onFileSearch','270BETNBR','5VgQKYd','1902008AgwduO','917DFolBt','onSessionListChanged'];_0x452b=function(){return _0x14b4e0;};return _0x452b();}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
var _0x18d69d=_0x24e9;(function(_0x29c4c4,_0x534f03){var _0x4f7367=_0x24e9,_0x23a3e8=_0x29c4c4();while(!![]){try{var _0x3b8246=-parseInt(_0x4f7367(0x1e0))/0x1*(parseInt(_0x4f7367(0x1e1))/0x2)+parseInt(_0x4f7367(0x1e4))/0x3+parseInt(_0x4f7367(0x1e5))/0x4+parseInt(_0x4f7367(0x1eb))/0x5+-parseInt(_0x4f7367(0x1ec))/0x6+-parseInt(_0x4f7367(0x1d7))/0x7+-parseInt(_0x4f7367(0x1dc))/0x8*(-parseInt(_0x4f7367(0x1d5))/0x9);if(_0x3b8246===_0x534f03)break;else _0x23a3e8['push'](_0x23a3e8['shift']());}catch(_0x1da054){_0x23a3e8['push'](_0x23a3e8['shift']());}}}(_0x521d,0x1e837));function _0x521d(){var _0x572c3a=['849107DXyCgK','onLoginFailed','onLoginDisConnected','onQQLoginNumLimited','onUserLoggedIn','8HRvuyX','onQRCodeLoginSucceed','onQRCodeSessionUserScaned','onPasswordLoginFailed','1kZVXMk','270934tNqFAL','onQRCodeGetPicture','onLogoutSucceed','51873QXbpuL','968032WyItBB','onQRCodeSessionFailed','onLogoutFailed','onLoginConnecting','onQRCodeLoginPollingStarted','onQRCodeSessionQuickLoginFailed','529990mrseDO','132372MRWerd','346644DPDAbQ','onLoginState'];_0x521d=function(){return _0x572c3a;};return _0x521d();}function _0x24e9(_0x3d6ed7,_0x200ed9){var _0x521df5=_0x521d();return _0x24e9=function(_0x24e9d2,_0x4429b7){_0x24e9d2=_0x24e9d2-0x1d5;var _0x5ae2b3=_0x521df5[_0x24e9d2];return _0x5ae2b3;},_0x24e9(_0x3d6ed7,_0x200ed9);}export class LoginListener{['onLoginConnected'](..._0x3f5179){}[_0x18d69d(0x1d9)](..._0x199f1b){}[_0x18d69d(0x1e8)](..._0x35c381){}[_0x18d69d(0x1e2)](_0x7d452f){}[_0x18d69d(0x1e9)](..._0x393afb){}[_0x18d69d(0x1de)](..._0x13435f){}[_0x18d69d(0x1dd)](_0xedb6fa){}[_0x18d69d(0x1e6)](..._0x4cefa2){}[_0x18d69d(0x1d8)](..._0x380bd){}[_0x18d69d(0x1e3)](..._0x578b8b){}[_0x18d69d(0x1e7)](..._0x4d1013){}[_0x18d69d(0x1db)](..._0x1d6af6){}[_0x18d69d(0x1ea)](..._0x2d615e){}[_0x18d69d(0x1df)](..._0x593a95){}['OnConfirmUnusualDeviceFailed'](..._0x44a678){}[_0x18d69d(0x1da)](..._0x4f44f0){}[_0x18d69d(0x1d6)](..._0x131586){}}
|
||||
var _0x4b0932=_0x1659;function _0x30e4(){var _0x4b2cba=['54710kTwPdm','onLoginConnecting','1621800tiRoGg','1283037ZoChyJ','onLogoutSucceed','63XJbHtc','3WBQnJX','onLoginState','2243965zwwLav','370792InLmLy','3069bFdDbL','onQRCodeSessionQuickLoginFailed','onQRCodeSessionUserScaned','onLoginDisConnected','713452MeDDhe','onLoginConnected','onLoginFailed','55510pydQOt','onQQLoginNumLimited','onQRCodeSessionFailed'];_0x30e4=function(){return _0x4b2cba;};return _0x30e4();}function _0x1659(_0x99441a,_0x1ecc12){var _0x30e495=_0x30e4();return _0x1659=function(_0x165912,_0x143354){_0x165912=_0x165912-0xed;var _0xdd04dc=_0x30e495[_0x165912];return _0xdd04dc;},_0x1659(_0x99441a,_0x1ecc12);}(function(_0xd25bbb,_0x337174){var _0x5806c6=_0x1659,_0x26bbf7=_0xd25bbb();while(!![]){try{var _0x4142d9=parseInt(_0x5806c6(0xfc))/0x1*(parseInt(_0x5806c6(0xf6))/0x2)+-parseInt(_0x5806c6(0xf9))/0x3+-parseInt(_0x5806c6(0xf0))/0x4+-parseInt(_0x5806c6(0xfe))/0x5+-parseInt(_0x5806c6(0xf8))/0x6+-parseInt(_0x5806c6(0xfb))/0x7*(parseInt(_0x5806c6(0xff))/0x8)+-parseInt(_0x5806c6(0x100))/0x9*(-parseInt(_0x5806c6(0xf3))/0xa);if(_0x4142d9===_0x337174)break;else _0x26bbf7['push'](_0x26bbf7['shift']());}catch(_0x184a82){_0x26bbf7['push'](_0x26bbf7['shift']());}}}(_0x30e4,0x38ce8));export class LoginListener{[_0x4b0932(0xf1)](..._0x5b6066){}[_0x4b0932(0xef)](..._0x39422f){}[_0x4b0932(0xf7)](..._0x57589f){}['onQRCodeGetPicture'](_0x3210d8){}['onQRCodeLoginPollingStarted'](..._0x201438){}[_0x4b0932(0xee)](..._0x1067c3){}['onQRCodeLoginSucceed'](_0x410b22){}[_0x4b0932(0xf5)](..._0xd72915){}[_0x4b0932(0xf2)](..._0xeb04cc){}[_0x4b0932(0xfa)](..._0x374952){}['onLogoutFailed'](..._0x1b74b2){}['onUserLoggedIn'](..._0x2864ee){}[_0x4b0932(0xed)](..._0x252e3d){}['onPasswordLoginFailed'](..._0x1394ab){}['OnConfirmUnusualDeviceFailed'](..._0x4cf436){}[_0x4b0932(0xf4)](..._0x42d169){}[_0x4b0932(0xfd)](..._0x3d2f82){}}
|
@@ -1 +1 @@
|
||||
function _0x336e(){var _0x225db5=['onFileMsgCome','onMsgRecall','onGrabPasswordRedBag','onMsgBoxChanged','onGuildMsgAbFlagChanged','onNtFirstViewMsgSyncEnd','726644EVUDXn','onBroadcastHelperProgressUpdate','onBroadcastHelperDownloadComplete','onSendMsgError','onUserChannelTabStatusChanged','onGroupFileInfoAdd','onUserTabStatusChanged','10044FVryYb','1kQwRno','onGuildNotificationAbstractUpdate','onRecvOnlineFileMsg','onRecvGroupGuildFlag','onlineStatusBigIconDownloadPush','onAddSendMsg','onFirstViewDirectMsgUpdate','30iIUfwo','onRichMediaUploadComplete','2317610ZSUqhq','onRecvSysMsg','347175flMcpQ','onUserSecQualityChanged','onRichMediaProgerssUpdate','onMsgSettingUpdate','onContactUnreadCntUpdate','onMsgWithRichLinkInfoUpdate','onMsgEventListUpdate','onBroadcastHelperProgerssUpdate','onMsgDelete','onImportOldDbProgressUpdate','onReadFeedEventUpdate','onInputStatusPush','onMsgSecurityNotify','9nqSmdw','71729lvxVAt','onDraftUpdate','onGroupFileInfoUpdate','onHitCsRelatedEmojiResult','onGroupGuildUpdate','onMsgAbstractUpdate','onNtMsgSyncEnd','onFirstViewGroupGuildMapping','onSysMsgNotification','onSearchGroupFileInfoUpdate','onRecvMsgSvrRspTransInfo','onGroupTransferInfoAdd','onLineDev','onRedTouchChanged','2593208xiyLFh','642255ngbwaN','onTempChatInfoUpdate','onRichMediaDownloadComplete','onMsgInfoListAdd','onMsgQRCodeStatusChanged','onFeedEventUpdate','onChannelFreqLimitInfoUpdate'];_0x336e=function(){return _0x225db5;};return _0x336e();}var _0x6ccfaa=_0x19c5;function _0x19c5(_0x2a1ec9,_0x2a5998){var _0x336eef=_0x336e();return _0x19c5=function(_0x19c5fb,_0x12d93c){_0x19c5fb=_0x19c5fb-0x108;var _0x401523=_0x336eef[_0x19c5fb];return _0x401523;},_0x19c5(_0x2a1ec9,_0x2a5998);}(function(_0xcd7688,_0x1d955a){var _0x1fa165=_0x19c5,_0x120595=_0xcd7688();while(!![]){try{var _0x7ef8ef=-parseInt(_0x1fa165(0x13c))/0x1*(parseInt(_0x1fa165(0x13b))/0x2)+parseInt(_0x1fa165(0x127))/0x3+parseInt(_0x1fa165(0x134))/0x4+-parseInt(_0x1fa165(0x10a))/0x5+-parseInt(_0x1fa165(0x143))/0x6*(parseInt(_0x1fa165(0x118))/0x7)+parseInt(_0x1fa165(0x126))/0x8*(-parseInt(_0x1fa165(0x117))/0x9)+parseInt(_0x1fa165(0x108))/0xa;if(_0x7ef8ef===_0x1d955a)break;else _0x120595['push'](_0x120595['shift']());}catch(_0x5e0d63){_0x120595['push'](_0x120595['shift']());}}}(_0x336e,0x2b600));export class MsgListener{[_0x6ccfaa(0x141)](_0x4eee87){}[_0x6ccfaa(0x136)](_0x288df6){}[_0x6ccfaa(0x135)](_0xca7758){}[_0x6ccfaa(0x12d)](_0x36c7ed,_0x1a8689,_0x3ce52c){}[_0x6ccfaa(0x10e)](_0x5f48d0){}['onCustomWithdrawConfigUpdate'](_0xc44ef8){}[_0x6ccfaa(0x119)](_0x38264e,_0x170c2a,_0x3486fd){}['onEmojiDownloadComplete'](_0x1b58ba){}['onEmojiResourceUpdate'](_0x4c4d90){}[_0x6ccfaa(0x12c)](_0x300748){}[_0x6ccfaa(0x12e)](_0x339598){}[_0x6ccfaa(0x142)](_0x30f482){}[_0x6ccfaa(0x11f)](_0x1f00d6){}[_0x6ccfaa(0x130)](_0x224702,_0x4545f3,_0x386b38,_0x5be4a9,_0x12d058){}[_0x6ccfaa(0x139)](_0xf64ec9){}[_0x6ccfaa(0x11a)](_0x29b8c1){}[_0x6ccfaa(0x11c)](_0x2448f8){}[_0x6ccfaa(0x123)](_0x2d141a){}['onGroupTransferInfoUpdate'](_0x2f1271){}['onGuildInteractiveUpdate'](_0x59c8bd){}[_0x6ccfaa(0x132)](_0x41352d){}[_0x6ccfaa(0x13d)](_0x2232bb){}[_0x6ccfaa(0x11b)](_0x406e7a){}['onHitEmojiKeywordResult'](_0x4bed2d){}['onHitRelatedEmojiResult'](_0x228147){}[_0x6ccfaa(0x113)](_0x236438){}[_0x6ccfaa(0x115)](_0xe10e43){}['onKickedOffLine'](_0x40937b){}[_0x6ccfaa(0x124)](_0x3ea8a1){}['onLogLevelChanged'](_0xd59f10){}[_0x6ccfaa(0x11d)](_0x58b804){}[_0x6ccfaa(0x131)](_0x384258){}[_0x6ccfaa(0x112)](_0xfebe83,_0x2f582c){}[_0x6ccfaa(0x110)](_0x58f8d3){}[_0x6ccfaa(0x12a)](_0x377354){}['onMsgInfoListUpdate'](_0x55883e){}[_0x6ccfaa(0x12b)](_0x3b7c34){}[_0x6ccfaa(0x12f)](_0x1053cd,_0x943f7b,_0x4fa188){}[_0x6ccfaa(0x116)](_0x466632){}[_0x6ccfaa(0x10d)](_0x4edeb0){}[_0x6ccfaa(0x133)](){}[_0x6ccfaa(0x11e)](){}['onNtMsgSyncStart'](){}[_0x6ccfaa(0x114)](_0x467476){}[_0x6ccfaa(0x13f)](_0x2ac035){}['onRecvMsg'](_0x5c2496){}[_0x6ccfaa(0x122)](_0x39395a,_0x3232e5,_0x39dc44,_0x47fab7,_0x2ca356,_0x52e8f0){}[_0x6ccfaa(0x13e)](_0x26fef0){}['onRecvS2CMsg'](_0x256d3e){}[_0x6ccfaa(0x109)](_0x10742f){}['onRecvUDCFlag'](_0x428055){}[_0x6ccfaa(0x129)](_0x3f5d3f){}[_0x6ccfaa(0x10c)](_0x468b18){}[_0x6ccfaa(0x144)](_0x2e06ce){}[_0x6ccfaa(0x121)](_0x3b0704){}[_0x6ccfaa(0x137)](_0x33f57d,_0x4361b5,_0x5c87be,_0xa21bbc){}[_0x6ccfaa(0x120)](_0x1cbf75,_0xc23feb,_0x55810c,_0x204d22){}[_0x6ccfaa(0x128)](_0x3493b0){}['onUnreadCntAfterFirstView'](_0x310da5){}['onUnreadCntUpdate'](_0x241e9b){}[_0x6ccfaa(0x138)](_0x3f07b4){}['onUserOnlineStatusChanged'](_0x96b787){}[_0x6ccfaa(0x13a)](_0x1f7cc5){}[_0x6ccfaa(0x140)](_0x4ba42b,_0x343206,_0x2a2ae7){}['onlineStatusSmallIconDownloadPush'](_0x3e1259,_0x4a3416,_0xe9362f){}[_0x6ccfaa(0x10b)](..._0x114eaa){}[_0x6ccfaa(0x10f)](..._0x1f5fab){}[_0x6ccfaa(0x125)](..._0x3ce8ce){}[_0x6ccfaa(0x111)](..._0x294511){}}
|
||||
var _0x377f57=_0x586c;(function(_0x258b64,_0x32dbb0){var _0x4f353d=_0x586c,_0x352770=_0x258b64();while(!![]){try{var _0x26bcb7=parseInt(_0x4f353d(0x11d))/0x1+-parseInt(_0x4f353d(0x122))/0x2*(parseInt(_0x4f353d(0xfe))/0x3)+parseInt(_0x4f353d(0x106))/0x4*(parseInt(_0x4f353d(0x10f))/0x5)+parseInt(_0x4f353d(0x10c))/0x6+-parseInt(_0x4f353d(0x11c))/0x7+parseInt(_0x4f353d(0x11a))/0x8*(-parseInt(_0x4f353d(0x105))/0x9)+parseInt(_0x4f353d(0x100))/0xa;if(_0x26bcb7===_0x32dbb0)break;else _0x352770['push'](_0x352770['shift']());}catch(_0x5904b6){_0x352770['push'](_0x352770['shift']());}}}(_0x5e7b,0x55886));function _0x586c(_0x3af82c,_0x5d446d){var _0x5e7bd8=_0x5e7b();return _0x586c=function(_0x586c90,_0x2865bb){_0x586c90=_0x586c90-0xfe;var _0xe3c0d6=_0x5e7bd8[_0x586c90];return _0xe3c0d6;},_0x586c(_0x3af82c,_0x5d446d);}export class MsgListener{[_0x377f57(0x11f)](_0x221136){}['onBroadcastHelperDownloadComplete'](_0x2fd0a1){}[_0x377f57(0x108)](_0x48a5f3){}[_0x377f57(0x109)](_0x2fc531,_0x4da23e,_0x3d1891){}[_0x377f57(0x128)](_0x21c48d){}[_0x377f57(0x103)](_0x29fd56){}[_0x377f57(0x10d)](_0xbecb27,_0x440d80,_0x590c03){}['onEmojiDownloadComplete'](_0x53a8fe){}['onEmojiResourceUpdate'](_0xf9d56d){}[_0x377f57(0x107)](_0x4ca558){}[_0x377f57(0x133)](_0xabd268){}['onFirstViewDirectMsgUpdate'](_0x425c42){}[_0x377f57(0x110)](_0x1f5361){}[_0x377f57(0x101)](_0x19a812,_0x1c40fe,_0x3fd208,_0x1ad6fc,_0x33f91d){}['onGroupFileInfoAdd'](_0x5479fc){}[_0x377f57(0x12f)](_0x3e1829){}['onGroupGuildUpdate'](_0x52e83a){}[_0x377f57(0x12d)](_0xfe09c5){}['onGroupTransferInfoUpdate'](_0x186956){}['onGuildInteractiveUpdate'](_0x4d4ba2){}[_0x377f57(0x12c)](_0x289d46){}['onGuildNotificationAbstractUpdate'](_0x32788f){}[_0x377f57(0x117)](_0x28bf20){}['onHitEmojiKeywordResult'](_0x5108c6){}[_0x377f57(0x10b)](_0x1fc635){}['onImportOldDbProgressUpdate'](_0x46e1d9){}[_0x377f57(0x119)](_0x932d43){}[_0x377f57(0x11e)](_0x3e6abe){}[_0x377f57(0x134)](_0x1ce9ff){}['onLogLevelChanged'](_0x2ea9d6){}[_0x377f57(0x12e)](_0x4e9a90){}['onMsgBoxChanged'](_0x2515cd){}['onMsgDelete'](_0x2c3d6c,_0xa1f561){}[_0x377f57(0x11b)](_0x37fe87){}[_0x377f57(0x111)](_0x50a4b1){}['onMsgInfoListUpdate'](_0x2214a7){}[_0x377f57(0x131)](_0x120683){}[_0x377f57(0x104)](_0x247081,_0x3bfdab,_0x49d0a3){}[_0x377f57(0x115)](_0x4a1ae6){}[_0x377f57(0x127)](_0x5181f2){}[_0x377f57(0x12b)](){}[_0x377f57(0xff)](){}[_0x377f57(0x121)](){}[_0x377f57(0x125)](_0x5efe18){}['onRecvGroupGuildFlag'](_0x1da00d){}[_0x377f57(0x130)](_0xf7aa18){}['onRecvMsgSvrRspTransInfo'](_0x234677,_0x1183f8,_0x40627c,_0xa10d14,_0xff3d95,_0x5ba10d){}['onRecvOnlineFileMsg'](_0xce928d){}[_0x377f57(0x10a)](_0x46e28c){}[_0x377f57(0x114)](_0x2120ad){}[_0x377f57(0x113)](_0x376beb){}[_0x377f57(0x116)](_0x595717){}[_0x377f57(0x112)](_0x586b24){}[_0x377f57(0x120)](_0x565d78){}[_0x377f57(0x126)](_0x544d81){}['onSendMsgError'](_0x2174e9,_0x78c353,_0x5b3af6,_0x36c9db){}[_0x377f57(0x123)](_0x1baa6d,_0x286ef2,_0x19d0e6,_0x1a8027){}['onTempChatInfoUpdate'](_0x25960a){}['onUnreadCntAfterFirstView'](_0x781d8e){}['onUnreadCntUpdate'](_0xd7cb12){}[_0x377f57(0x102)](_0x516a24){}['onUserOnlineStatusChanged'](_0x5d607e){}[_0x377f57(0x124)](_0x1c55a0){}[_0x377f57(0x12a)](_0x245aa0,_0x465be0,_0x4906bc){}[_0x377f57(0x132)](_0x4a3f1a,_0x3f0afa,_0xe4d157){}[_0x377f57(0x129)](..._0x3a9bb7){}[_0x377f57(0x118)](..._0x2605b7){}[_0x377f57(0x10e)](..._0x3ad798){}['onBroadcastHelperProgerssUpdate'](..._0x2608ac){}}function _0x5e7b(){var _0x1cbe9b=['onFileMsgCome','onLineDev','12033fppRNV','onNtMsgSyncEnd','2525430MBXzai','onGrabPasswordRedBag','onUserChannelTabStatusChanged','onCustomWithdrawConfigUpdate','onMsgRecall','1192716ReKuZc','4GvMsek','onFeedEventUpdate','onBroadcastHelperProgressUpdate','onChannelFreqLimitInfoUpdate','onRecvS2CMsg','onHitRelatedEmojiResult','3163518xYfHJq','onDraftUpdate','onRedTouchChanged','2331815vdIBzY','onFirstViewGroupGuildMapping','onMsgInfoListAdd','onRichMediaProgerssUpdate','onRecvUDCFlag','onRecvSysMsg','onMsgSecurityNotify','onRichMediaDownloadComplete','onHitCsRelatedEmojiResult','onMsgWithRichLinkInfoUpdate','onInputStatusPush','16MeqwDg','onMsgEventListUpdate','2615046VxVoeW','47645OPXsht','onKickedOffLine','onAddSendMsg','onRichMediaUploadComplete','onNtMsgSyncStart','152QkvlNS','onSysMsgNotification','onUserTabStatusChanged','onReadFeedEventUpdate','onSearchGroupFileInfoUpdate','onMsgSettingUpdate','onContactUnreadCntUpdate','onUserSecQualityChanged','onlineStatusBigIconDownloadPush','onNtFirstViewMsgSyncEnd','onGuildMsgAbFlagChanged','onGroupTransferInfoAdd','onMsgAbstractUpdate','onGroupFileInfoUpdate','onRecvMsg','onMsgQRCodeStatusChanged','onlineStatusSmallIconDownloadPush'];_0x5e7b=function(){return _0x1cbe9b;};return _0x5e7b();}
|
@@ -1 +1 @@
|
||||
function _0x4ac5(){var _0x4d7da8=['35bwGxyj','5IttOln','onProfileDetailInfoChanged','100984CeyCsn','2616960dVQjeN','1479iuyVhq','1455228xOZVGN','onProfileSimpleChanged','889530vwbrIs','1260Olrbly','126600mOkgja','466244rlVigx'];_0x4ac5=function(){return _0x4d7da8;};return _0x4ac5();}var _0x3c09b5=_0x5d6f;function _0x5d6f(_0x264426,_0x3f835c){var _0x4ac57e=_0x4ac5();return _0x5d6f=function(_0x5d6f6f,_0x4c053a){_0x5d6f6f=_0x5d6f6f-0x1e3;var _0x1f4656=_0x4ac57e[_0x5d6f6f];return _0x1f4656;},_0x5d6f(_0x264426,_0x3f835c);}(function(_0x2f35f3,_0x4376f5){var _0x4c712e=_0x5d6f,_0xc187b7=_0x2f35f3();while(!![]){try{var _0x5ce549=-parseInt(_0x4c712e(0x1e6))/0x1+parseInt(_0x4c712e(0x1e7))/0x2+-parseInt(_0x4c712e(0x1ed))/0x3*(parseInt(_0x4c712e(0x1e5))/0x4)+-parseInt(_0x4c712e(0x1e9))/0x5*(-parseInt(_0x4c712e(0x1e4))/0x6)+-parseInt(_0x4c712e(0x1e8))/0x7*(parseInt(_0x4c712e(0x1eb))/0x8)+-parseInt(_0x4c712e(0x1ee))/0x9+parseInt(_0x4c712e(0x1ec))/0xa;if(_0x5ce549===_0x4376f5)break;else _0xc187b7['push'](_0xc187b7['shift']());}catch(_0x3dca43){_0xc187b7['push'](_0xc187b7['shift']());}}}(_0x4ac5,0x214b3));export class ProfileListener{[_0x3c09b5(0x1e3)](..._0x5cfe1f){}[_0x3c09b5(0x1ea)](_0x6da478){}['onStatusUpdate'](..._0x108c8a){}['onSelfStatusChanged'](..._0x122620){}['onStrangerRemarkChanged'](..._0x33db6f){}}
|
||||
function _0x4a3c(_0xb4e37a,_0x4d94cc){var _0x1862ee=_0x1862();return _0x4a3c=function(_0x4a3caa,_0x4283c3){_0x4a3caa=_0x4a3caa-0x74;var _0x1cf1b8=_0x1862ee[_0x4a3caa];return _0x1cf1b8;},_0x4a3c(_0xb4e37a,_0x4d94cc);}var _0x143d6f=_0x4a3c;(function(_0x5c756a,_0x4f5510){var _0x101698=_0x4a3c,_0x2885b6=_0x5c756a();while(!![]){try{var _0x3a5bf5=-parseInt(_0x101698(0x81))/0x1+parseInt(_0x101698(0x7d))/0x2*(parseInt(_0x101698(0x7e))/0x3)+-parseInt(_0x101698(0x80))/0x4+-parseInt(_0x101698(0x75))/0x5+parseInt(_0x101698(0x7b))/0x6*(parseInt(_0x101698(0x7c))/0x7)+parseInt(_0x101698(0x77))/0x8+parseInt(_0x101698(0x7a))/0x9*(-parseInt(_0x101698(0x78))/0xa);if(_0x3a5bf5===_0x4f5510)break;else _0x2885b6['push'](_0x2885b6['shift']());}catch(_0x39be94){_0x2885b6['push'](_0x2885b6['shift']());}}}(_0x1862,0xf3839));function _0x1862(){var _0x1290b2=['onSelfStatusChanged','1332928TkRFwn','1429449iEkLWN','onProfileSimpleChanged','1345940NOXTzx','onProfileDetailInfoChanged','14349912oUWypP','10ldlHEy','onStatusUpdate','7759287QvrBgP','12630voRPKK','5894XqXHDQ','324OcWCar','6024SHUdNJ'];_0x1862=function(){return _0x1290b2;};return _0x1862();}export class ProfileListener{[_0x143d6f(0x74)](..._0x5d8ee0){}[_0x143d6f(0x76)](_0x9fb641){}[_0x143d6f(0x79)](..._0x59726a){}[_0x143d6f(0x7f)](..._0x19640b){}['onStrangerRemarkChanged'](..._0x82a35f){}}
|
@@ -1 +1 @@
|
||||
function _0x11df(){var _0x5da5a0=['onRobotListChanged','1220838HJHtqd','2989215HCUift','onRobotFriendListChanged','8IVwvee','7355eIztbA','322687tQhcPt','1474809scUTyL','324jjqnoX','36028bqqZhp','737630AYDcon','36uycOSV'];_0x11df=function(){return _0x5da5a0;};return _0x11df();}var _0x1e0384=_0x33ba;function _0x33ba(_0x1148f1,_0x4d9a3d){var _0x11dfae=_0x11df();return _0x33ba=function(_0x33ba0d,_0x9bfa44){_0x33ba0d=_0x33ba0d-0x167;var _0x34e33d=_0x11dfae[_0x33ba0d];return _0x34e33d;},_0x33ba(_0x1148f1,_0x4d9a3d);}(function(_0x4b1a01,_0x1cbc86){var _0x59b1e7=_0x33ba,_0x293d1a=_0x4b1a01();while(!![]){try{var _0x1ba150=-parseInt(_0x59b1e7(0x16f))/0x1+-parseInt(_0x59b1e7(0x172))/0x2*(-parseInt(_0x59b1e7(0x168))/0x3)+parseInt(_0x59b1e7(0x171))/0x4*(-parseInt(_0x59b1e7(0x16e))/0x5)+parseInt(_0x59b1e7(0x16a))/0x6+-parseInt(_0x59b1e7(0x170))/0x7+-parseInt(_0x59b1e7(0x16d))/0x8*(-parseInt(_0x59b1e7(0x16b))/0x9)+parseInt(_0x59b1e7(0x167))/0xa;if(_0x1ba150===_0x1cbc86)break;else _0x293d1a['push'](_0x293d1a['shift']());}catch(_0x551455){_0x293d1a['push'](_0x293d1a['shift']());}}}(_0x11df,0x2a3d6));export class KernelRobotListener{[_0x1e0384(0x16c)](..._0x14105b){}[_0x1e0384(0x169)](..._0x1c3cef){}['onRobotProfileChanged'](..._0xaf9da2){}}
|
||||
var _0x3bb5d7=_0x5d59;function _0x5d59(_0xac4e13,_0x3e04f3){var _0x107251=_0x1072();return _0x5d59=function(_0x5d59bc,_0x7dcbef){_0x5d59bc=_0x5d59bc-0x77;var _0x282a4d=_0x107251[_0x5d59bc];return _0x282a4d;},_0x5d59(_0xac4e13,_0x3e04f3);}(function(_0x4f94f8,_0x52683){var _0x4d2802=_0x5d59,_0x2257f2=_0x4f94f8();while(!![]){try{var _0x59d4a3=-parseInt(_0x4d2802(0x83))/0x1*(parseInt(_0x4d2802(0x7e))/0x2)+-parseInt(_0x4d2802(0x82))/0x3*(-parseInt(_0x4d2802(0x78))/0x4)+parseInt(_0x4d2802(0x85))/0x5*(parseInt(_0x4d2802(0x77))/0x6)+parseInt(_0x4d2802(0x7a))/0x7*(-parseInt(_0x4d2802(0x79))/0x8)+parseInt(_0x4d2802(0x84))/0x9+-parseInt(_0x4d2802(0x7c))/0xa*(-parseInt(_0x4d2802(0x7d))/0xb)+-parseInt(_0x4d2802(0x81))/0xc;if(_0x59d4a3===_0x52683)break;else _0x2257f2['push'](_0x2257f2['shift']());}catch(_0x1130f1){_0x2257f2['push'](_0x2257f2['shift']());}}}(_0x1072,0x57aaf));function _0x1072(){var _0x37cdd4=['1665504WiiQpD','5kxvKXR','3522906NAFCQL','36HZrgDd','1528056dRoOBU','7OrPGNK','onRobotProfileChanged','95630fORKpg','693YQfGBH','278aXuIlf','onRobotFriendListChanged','onRobotListChanged','11498868qoPNgh','141528SgDUoi','2093DYxjVx'];_0x1072=function(){return _0x37cdd4;};return _0x1072();}export class KernelRobotListener{[_0x3bb5d7(0x7f)](..._0x87779c){}[_0x3bb5d7(0x80)](..._0x19a1a7){}[_0x3bb5d7(0x7b)](..._0x5de660){}}
|
@@ -1 +1 @@
|
||||
var _0x55ce96=_0x18e4;(function(_0x26bba5,_0x115ed6){var _0x11e4a2=_0x18e4,_0xa130fe=_0x26bba5();while(!![]){try{var _0x333ba0=-parseInt(_0x11e4a2(0x134))/0x1+parseInt(_0x11e4a2(0x13a))/0x2+-parseInt(_0x11e4a2(0x12f))/0x3*(parseInt(_0x11e4a2(0x138))/0x4)+parseInt(_0x11e4a2(0x12e))/0x5+-parseInt(_0x11e4a2(0x135))/0x6+parseInt(_0x11e4a2(0x130))/0x7*(parseInt(_0x11e4a2(0x131))/0x8)+-parseInt(_0x11e4a2(0x133))/0x9*(-parseInt(_0x11e4a2(0x137))/0xa);if(_0x333ba0===_0x115ed6)break;else _0xa130fe['push'](_0xa130fe['shift']());}catch(_0xaa86b3){_0xa130fe['push'](_0xa130fe['shift']());}}}(_0x13b5,0xbeb5a));export class SessionListener{[_0x55ce96(0x12d)](_0x2be530){}[_0x55ce96(0x132)](_0x23a063){}[_0x55ce96(0x136)](_0x546783){}['onOpentelemetryInit'](_0x303549){}[_0x55ce96(0x139)](_0x11ac6f){}['onGetSelfTinyId'](_0x166886){}}function _0x18e4(_0x5ce792,_0x5ec3f2){var _0x13b5e8=_0x13b5();return _0x18e4=function(_0x18e4d0,_0x1c3643){_0x18e4d0=_0x18e4d0-0x12d;var _0xfb3696=_0x13b5e8[_0x18e4d0];return _0xfb3696;},_0x18e4(_0x5ce792,_0x5ec3f2);}function _0x13b5(){var _0x7eb07e=['onGProSessionCreate','4171815MqoqKB','521829uQwZBm','4588692KwEbCT','onSessionInitComplete','30XWbslF','292VUMVmn','onUserOnlineResult','273520dWCWIN','onNTSessionCreate','7450505ehsKmr','51099qEzQET','210TOlImG','78320qPdEkQ'];_0x13b5=function(){return _0x7eb07e;};return _0x13b5();}
|
||||
var _0x58042e=_0xd9b5;function _0x196e(){var _0x20a991=['5478224REdqFF','onGetSelfTinyId','onOpentelemetryInit','755887PPXyim','11162704qrzaZZ','3LGRNpM','14696280wUQsnV','7366782PslIhb','5oYmzmf','onUserOnlineResult','18dHmNsF','190276DEvAfN','992280FGXRPs','10nKntzB'];_0x196e=function(){return _0x20a991;};return _0x196e();}function _0xd9b5(_0x36a755,_0xc205e8){var _0x196e90=_0x196e();return _0xd9b5=function(_0xd9b511,_0x26d2ce){_0xd9b511=_0xd9b511-0x135;var _0x187bb3=_0x196e90[_0xd9b511];return _0x187bb3;},_0xd9b5(_0x36a755,_0xc205e8);}(function(_0x4585c2,_0x5bb46e){var _0x5f5da0=_0xd9b5,_0x294762=_0x4585c2();while(!![]){try{var _0x5d2ca8=parseInt(_0x5f5da0(0x141))/0x1*(parseInt(_0x5f5da0(0x135))/0x2)+-parseInt(_0x5f5da0(0x13b))/0x3*(-parseInt(_0x5f5da0(0x142))/0x4)+parseInt(_0x5f5da0(0x13e))/0x5*(parseInt(_0x5f5da0(0x13d))/0x6)+-parseInt(_0x5f5da0(0x13a))/0x7+-parseInt(_0x5f5da0(0x136))/0x8*(-parseInt(_0x5f5da0(0x140))/0x9)+-parseInt(_0x5f5da0(0x13c))/0xa+parseInt(_0x5f5da0(0x139))/0xb;if(_0x5d2ca8===_0x5bb46e)break;else _0x294762['push'](_0x294762['shift']());}catch(_0x161643){_0x294762['push'](_0x294762['shift']());}}}(_0x196e,0xc39c4));export class SessionListener{['onNTSessionCreate'](_0x340e58){}['onGProSessionCreate'](_0x4a4140){}['onSessionInitComplete'](_0x4cbcff){}[_0x58042e(0x138)](_0x5578bb){}[_0x58042e(0x13f)](_0x3b2762){}[_0x58042e(0x137)](_0x5b6a92){}}
|
@@ -1 +1 @@
|
||||
var _0x2a5c00=_0x37aa;function _0x37aa(_0x3e647a,_0x1dcb54){var _0x599df8=_0x599d();return _0x37aa=function(_0x37aa33,_0x501e37){_0x37aa33=_0x37aa33-0x6f;var _0x25b485=_0x599df8[_0x37aa33];return _0x25b485;},_0x37aa(_0x3e647a,_0x1dcb54);}function _0x599d(){var _0x34112b=['6qarWqJ','65940GVzqZM','onScanCacheProgressChanged','278782MtHlIh','onFinishScan','963576vKHPsA','238948ClZoVy','302815mNmHku','1FLmVbR','85772RrHDDQ','1740136OshieW','onChatCleanDone','9IRuBbh','onCleanCacheStorageChanged'];_0x599d=function(){return _0x34112b;};return _0x599d();}(function(_0x4b315f,_0x82cd6){var _0x45e574=_0x37aa,_0x449ebe=_0x4b315f();while(!![]){try{var _0x363e75=parseInt(_0x45e574(0x77))/0x1*(parseInt(_0x45e574(0x75))/0x2)+-parseInt(_0x45e574(0x6f))/0x3*(parseInt(_0x45e574(0x78))/0x4)+-parseInt(_0x45e574(0x76))/0x5+-parseInt(_0x45e574(0x74))/0x6+parseInt(_0x45e574(0x72))/0x7+parseInt(_0x45e574(0x79))/0x8*(parseInt(_0x45e574(0x7b))/0x9)+parseInt(_0x45e574(0x70))/0xa;if(_0x363e75===_0x82cd6)break;else _0x449ebe['push'](_0x449ebe['shift']());}catch(_0xea5d50){_0x449ebe['push'](_0x449ebe['shift']());}}}(_0x599d,0x1d246));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x2fa08c){}[_0x2a5c00(0x71)](_0x53e24d){}[_0x2a5c00(0x7c)](_0x713b0a){}[_0x2a5c00(0x73)](_0x192e92){}[_0x2a5c00(0x7a)](_0x4179e4){}}
|
||||
function _0x1316(_0x34fa53,_0x536ff1){var _0x5aaaf5=_0x5aaa();return _0x1316=function(_0x1316c9,_0x505d38){_0x1316c9=_0x1316c9-0xf1;var _0x1deebc=_0x5aaaf5[_0x1316c9];return _0x1deebc;},_0x1316(_0x34fa53,_0x536ff1);}var _0x32e47b=_0x1316;(function(_0x597868,_0x160b83){var _0x288f2d=_0x1316,_0x40399e=_0x597868();while(!![]){try{var _0x160bf8=-parseInt(_0x288f2d(0xfb))/0x1*(parseInt(_0x288f2d(0xf9))/0x2)+parseInt(_0x288f2d(0xfd))/0x3*(-parseInt(_0x288f2d(0xfa))/0x4)+-parseInt(_0x288f2d(0xf7))/0x5+parseInt(_0x288f2d(0xfc))/0x6*(parseInt(_0x288f2d(0xf6))/0x7)+parseInt(_0x288f2d(0xf3))/0x8*(-parseInt(_0x288f2d(0xf5))/0x9)+-parseInt(_0x288f2d(0xf1))/0xa+parseInt(_0x288f2d(0xf4))/0xb;if(_0x160bf8===_0x160b83)break;else _0x40399e['push'](_0x40399e['shift']());}catch(_0x550095){_0x40399e['push'](_0x40399e['shift']());}}}(_0x5aaa,0xb27bf));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x1f9964){}[_0x32e47b(0xf8)](_0x4c282a){}['onCleanCacheStorageChanged'](_0x35c3f6){}[_0x32e47b(0xf2)](_0x589407){}['onChatCleanDone'](_0x3e6679){}}function _0x5aaa(){var _0x3b2d8e=['6CImBGo','7150710CQcBBx','onFinishScan','896304etqNXv','24362107CtQQQz','18QvickQ','1435QExyht','5008435sETZKk','onScanCacheProgressChanged','854170ziBqsO','160404zBvtqB','2YSJkYZ','40728waIuhb'];_0x5aaa=function(){return _0x3b2d8e;};return _0x5aaa();}
|
@@ -1 +1 @@
|
||||
function _0x17a4(_0x116203,_0x38ae56){var _0x39f811=_0x39f8();return _0x17a4=function(_0x17a4eb,_0xa9e3ec){_0x17a4eb=_0x17a4eb-0xc0;var _0x38b8cf=_0x39f811[_0x17a4eb];return _0x38b8cf;},_0x17a4(_0x116203,_0x38ae56);}(function(_0x41c979,_0x3855e3){var _0x4c6f5b=_0x17a4,_0x19a74a=_0x41c979();while(!![]){try{var _0x520d87=-parseInt(_0x4c6f5b(0xc4))/0x1*(parseInt(_0x4c6f5b(0xc7))/0x2)+parseInt(_0x4c6f5b(0xca))/0x3*(parseInt(_0x4c6f5b(0xc1))/0x4)+-parseInt(_0x4c6f5b(0xc8))/0x5+parseInt(_0x4c6f5b(0xc9))/0x6+parseInt(_0x4c6f5b(0xc0))/0x7*(-parseInt(_0x4c6f5b(0xc2))/0x8)+-parseInt(_0x4c6f5b(0xc3))/0x9*(-parseInt(_0x4c6f5b(0xc6))/0xa)+parseInt(_0x4c6f5b(0xc5))/0xb;if(_0x520d87===_0x3855e3)break;else _0x19a74a['push'](_0x19a74a['shift']());}catch(_0x4ea970){_0x19a74a['push'](_0x19a74a['shift']());}}}(_0x39f8,0x69d80));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x39f8(){var _0x24ff62=['1752650TiToho','3502104FZFuQm','258252Lsciey','4558092WFwQnh','20RWKTXZ','8yXMFGx','63ONhuip','75eEQaUz','7837137MVUUCB','538430mOvVuY','17820IionnA'];_0x39f8=function(){return _0x24ff62;};return _0x39f8();}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
(function(_0x9fd5c3,_0x171933){var _0x5d8084=_0x1151,_0x648feb=_0x9fd5c3();while(!![]){try{var _0x41154b=-parseInt(_0x5d8084(0x1e5))/0x1*(-parseInt(_0x5d8084(0x1e7))/0x2)+parseInt(_0x5d8084(0x1ed))/0x3*(-parseInt(_0x5d8084(0x1eb))/0x4)+parseInt(_0x5d8084(0x1f0))/0x5*(-parseInt(_0x5d8084(0x1ec))/0x6)+-parseInt(_0x5d8084(0x1e6))/0x7*(-parseInt(_0x5d8084(0x1ee))/0x8)+-parseInt(_0x5d8084(0x1ea))/0x9+-parseInt(_0x5d8084(0x1ef))/0xa+-parseInt(_0x5d8084(0x1e8))/0xb*(-parseInt(_0x5d8084(0x1e9))/0xc);if(_0x41154b===_0x171933)break;else _0x648feb['push'](_0x648feb['shift']());}catch(_0x5976bc){_0x648feb['push'](_0x648feb['shift']());}}}(_0x162d,0x39d59));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';function _0x162d(){var _0x52774a=['4chqLEf','634098GIEtjK','921237ObolQn','32JvKHuR','3107520VcgYsV','10PUxxhT','9bmzyZt','496055tfkAvS','3190AynKCU','44TdUwUZ','2936736IqFrOB','1895769GLQXRE'];_0x162d=function(){return _0x52774a;};return _0x162d();}export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x1151(_0x1b0a48,_0x2c5359){var _0x162d71=_0x162d();return _0x1151=function(_0x1151bd,_0x194f38){_0x1151bd=_0x1151bd-0x1e5;var _0x5d3464=_0x162d71[_0x1151bd];return _0x5d3464;},_0x1151(_0x1b0a48,_0x2c5359);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
@@ -46,7 +46,7 @@ export interface NodeIKernelGroupService {
|
||||
createGroupWithMembers(arg: unknown): void;
|
||||
quitGroup(groupCode: string): void;
|
||||
destroyGroup(groupCode: string): void;
|
||||
getSingleScreenNotifies(arg1: boolean, arg2: string, arg3: number): Promise<GeneralCallResult>;
|
||||
getSingleScreenNotifies(force: boolean, start_seq: string, num: number): Promise<GeneralCallResult>;
|
||||
clearGroupNotifies(groupCode: string): void;
|
||||
getGroupNotifiesUnreadCount(unknown: Boolean): Promise<GeneralCallResult>;
|
||||
clearGroupNotifiesUnreadCount(groupCode: string): void;
|
||||
|
@@ -1,5 +1,8 @@
|
||||
import { GeneralCallResult } from "./common";
|
||||
export interface NodeIKernelNodeMiscService {
|
||||
getMiniAppPath(): unknown;
|
||||
setMiniAppVersion(version: string): unknown;
|
||||
wantWinScreenOCR(imagepath: string): Promise<GeneralCallResult>;
|
||||
SendMiniAppMsg(arg1: string, arg2: string, arg3: string): unknown;
|
||||
startNewMiniApp(appfile: string, params: string): unknown;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
'use strict';function _0x2d9e(_0x229d3b,_0x5d2201){var _0x1e0fe9=_0x1e0f();return _0x2d9e=function(_0x2d9e67,_0x2cd8f2){_0x2d9e67=_0x2d9e67-0x1d1;var _0x351d7d=_0x1e0fe9[_0x2d9e67];return _0x351d7d;},_0x2d9e(_0x229d3b,_0x5d2201);}(function(_0x3111be,_0x2eb5b1){var _0x12a5fe=_0x2d9e,_0x5c6c91=_0x3111be();while(!![]){try{var _0x534843=-parseInt(_0x12a5fe(0x1da))/0x1+parseInt(_0x12a5fe(0x1d3))/0x2+parseInt(_0x12a5fe(0x1d1))/0x3*(parseInt(_0x12a5fe(0x1d6))/0x4)+parseInt(_0x12a5fe(0x1d5))/0x5*(-parseInt(_0x12a5fe(0x1d8))/0x6)+-parseInt(_0x12a5fe(0x1d7))/0x7+parseInt(_0x12a5fe(0x1d9))/0x8+parseInt(_0x12a5fe(0x1d2))/0x9*(parseInt(_0x12a5fe(0x1d4))/0xa);if(_0x534843===_0x2eb5b1)break;else _0x5c6c91['push'](_0x5c6c91['shift']());}catch(_0x5ad99d){_0x5c6c91['push'](_0x5c6c91['shift']());}}}(_0x1e0f,0xb804a));function _0x1e0f(){var _0x5907a2=['381987ScIHLP','2569096JkfqhL','610MpbPzK','4628995rDKTBP','12ioSZiU','7522788DghjOx','6AusZFp','996816NVGalR','1424954micdnt','181002XwLtXw'];_0x1e0f=function(){return _0x5907a2;};return _0x1e0f();}
|
||||
'use strict';function _0x541c(){var _0x549e5b=['2661184gIsHiM','75892QhhIPK','1GRDaxi','3999738HJfvPW','81CXiQVB','12GXcViz','27DxWmVn','726954KbLjdZ','205985mtBzSx','7rqDeat','1746720FxORjf','5812268dkGMcz'];_0x541c=function(){return _0x549e5b;};return _0x541c();}function _0x2135(_0x1eee98,_0x2d9e15){var _0x541c5e=_0x541c();return _0x2135=function(_0x2135f5,_0x12f997){_0x2135f5=_0x2135f5-0x102;var _0x263c4f=_0x541c5e[_0x2135f5];return _0x263c4f;},_0x2135(_0x1eee98,_0x2d9e15);}(function(_0x2c4f99,_0x53df02){var _0x4ace5a=_0x2135,_0x44136d=_0x2c4f99();while(!![]){try{var _0x1ab584=parseInt(_0x4ace5a(0x105))/0x1*(parseInt(_0x4ace5a(0x10a))/0x2)+parseInt(_0x4ace5a(0x107))/0x3*(parseInt(_0x4ace5a(0x104))/0x4)+-parseInt(_0x4ace5a(0x10b))/0x5+-parseInt(_0x4ace5a(0x106))/0x6+parseInt(_0x4ace5a(0x10c))/0x7*(parseInt(_0x4ace5a(0x103))/0x8)+-parseInt(_0x4ace5a(0x109))/0x9*(-parseInt(_0x4ace5a(0x10d))/0xa)+-parseInt(_0x4ace5a(0x102))/0xb*(parseInt(_0x4ace5a(0x108))/0xc);if(_0x1ab584===_0x53df02)break;else _0x44136d['push'](_0x44136d['shift']());}catch(_0xc41ffd){_0x44136d['push'](_0x44136d['shift']());}}}(_0x541c,0x7924c));
|
@@ -1 +1 @@
|
||||
function _0x4313(_0x270787,_0x1df25f){var _0x3a6c2f=_0x3a6c();return _0x4313=function(_0x43131a,_0x32072b){_0x43131a=_0x43131a-0x1b2;var _0x134148=_0x3a6c2f[_0x43131a];return _0x134148;},_0x4313(_0x270787,_0x1df25f);}(function(_0x1f3460,_0x306f53){var _0x93cec5=_0x4313,_0x40a475=_0x1f3460();while(!![]){try{var _0x4bec9c=parseInt(_0x93cec5(0x1b4))/0x1+parseInt(_0x93cec5(0x1b5))/0x2+-parseInt(_0x93cec5(0x1b2))/0x3+parseInt(_0x93cec5(0x1b9))/0x4*(parseInt(_0x93cec5(0x1ba))/0x5)+parseInt(_0x93cec5(0x1b3))/0x6*(-parseInt(_0x93cec5(0x1b6))/0x7)+-parseInt(_0x93cec5(0x1b7))/0x8*(parseInt(_0x93cec5(0x1bb))/0x9)+parseInt(_0x93cec5(0x1b8))/0xa*(-parseInt(_0x93cec5(0x1bc))/0xb);if(_0x4bec9c===_0x306f53)break;else _0x40a475['push'](_0x40a475['shift']());}catch(_0x19693a){_0x40a475['push'](_0x40a475['shift']());}}}(_0x3a6c,0xf2321));export var GeneralCallResultStatus;function _0x3a6c(){var _0x57d005=['298372CStxHA','55bnjfzR','387OWDAna','2893dYGUik','3584736rIxZOE','72tClWeo','1270091YALsiM','3029462XbfVto','360241UFAZAz','85336GYEeYt','13010KnsqhI'];_0x3a6c=function(){return _0x57d005;};return _0x3a6c();}(function(_0x3901fe){_0x3901fe[_0x3901fe['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
||||
function _0x2190(){var _0x416016=['6515400yvznvR','291rdBOmW','30200neiKto','286710thhota','10AwrksZ','231FxQMBV','155MYVfZc','4984ujwGim','22Mpolsn','3485718oKRZUL','139232qLxber','1270912VaHiwy'];_0x2190=function(){return _0x416016;};return _0x2190();}(function(_0x5517ba,_0xae5577){var _0x260c87=_0x1e9d,_0x333b55=_0x5517ba();while(!![]){try{var _0xcf71de=-parseInt(_0x260c87(0xcc))/0x1+parseInt(_0x260c87(0xcd))/0x2+parseInt(_0x260c87(0xcf))/0x3*(parseInt(_0x260c87(0xd5))/0x4)+-parseInt(_0x260c87(0xd4))/0x5*(-parseInt(_0x260c87(0xd1))/0x6)+-parseInt(_0x260c87(0xd3))/0x7*(-parseInt(_0x260c87(0xd0))/0x8)+parseInt(_0x260c87(0xcb))/0x9*(-parseInt(_0x260c87(0xd2))/0xa)+-parseInt(_0x260c87(0xd6))/0xb*(parseInt(_0x260c87(0xce))/0xc);if(_0xcf71de===_0xae5577)break;else _0x333b55['push'](_0x333b55['shift']());}catch(_0x39cba3){_0x333b55['push'](_0x333b55['shift']());}}}(_0x2190,0xb70e2));export var GeneralCallResultStatus;function _0x1e9d(_0x3ca8b7,_0x506462){var _0x21908e=_0x2190();return _0x1e9d=function(_0x1e9d92,_0x39d94c){_0x1e9d92=_0x1e9d92-0xcb;var _0x18522b=_0x21908e[_0x1e9d92];return _0x18522b;},_0x1e9d(_0x3ca8b7,_0x506462);}(function(_0x3ccd3b){_0x3ccd3b[_0x3ccd3b['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
@@ -1 +1 @@
|
||||
(function(_0x40cce6,_0x3702b2){var _0x4fe55c=_0x21a0,_0x576aa9=_0x40cce6();while(!![]){try{var _0x395305=parseInt(_0x4fe55c(0xc4))/0x1+-parseInt(_0x4fe55c(0xc0))/0x2+-parseInt(_0x4fe55c(0xbb))/0x3*(parseInt(_0x4fe55c(0xbc))/0x4)+-parseInt(_0x4fe55c(0xbd))/0x5*(parseInt(_0x4fe55c(0xc1))/0x6)+parseInt(_0x4fe55c(0xbf))/0x7*(-parseInt(_0x4fe55c(0xc2))/0x8)+parseInt(_0x4fe55c(0xc3))/0x9+parseInt(_0x4fe55c(0xbe))/0xa*(parseInt(_0x4fe55c(0xba))/0xb);if(_0x395305===_0x3702b2)break;else _0x576aa9['push'](_0x576aa9['shift']());}catch(_0xb28c68){_0x576aa9['push'](_0x576aa9['shift']());}}}(_0x575b,0x78882));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x575b(){var _0x2ddb66=['72fxSZzC','5immIpr','20JBOufz','817187gFEQex','73800MlynWq','5795106fHsbgi','8VxPAuc','5384925CfiICC','764733HnmLks','1641442gzzqpf','8052omWwPu'];_0x575b=function(){return _0x2ddb66;};return _0x575b();}function _0x21a0(_0x2376d7,_0x59ff07){var _0x575b64=_0x575b();return _0x21a0=function(_0x21a051,_0x39fff7){_0x21a051=_0x21a051-0xba;var _0x2e0622=_0x575b64[_0x21a051];return _0x2e0622;},_0x21a0(_0x2376d7,_0x59ff07);}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
(function(_0x25dfcb,_0xe9a1f){var _0x3a9b4a=_0x3af5,_0x2454ad=_0x25dfcb();while(!![]){try{var _0x1d6d9e=-parseInt(_0x3a9b4a(0x18c))/0x1+parseInt(_0x3a9b4a(0x18a))/0x2*(-parseInt(_0x3a9b4a(0x186))/0x3)+parseInt(_0x3a9b4a(0x183))/0x4+parseInt(_0x3a9b4a(0x188))/0x5+parseInt(_0x3a9b4a(0x18b))/0x6*(parseInt(_0x3a9b4a(0x185))/0x7)+parseInt(_0x3a9b4a(0x18d))/0x8*(parseInt(_0x3a9b4a(0x184))/0x9)+-parseInt(_0x3a9b4a(0x187))/0xa*(parseInt(_0x3a9b4a(0x189))/0xb);if(_0x1d6d9e===_0xe9a1f)break;else _0x2454ad['push'](_0x2454ad['shift']());}catch(_0x1f51d3){_0x2454ad['push'](_0x2454ad['shift']());}}}(_0x5e61,0xac666));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';function _0x5e61(){var _0x1c2264=['14108391dkCwkU','5134eAIBrW','60KzgHay','844012FBIlFw','677728XkwoYl','1994584jVrWhl','27IfHccT','916468AzrEiv','129dSmOYy','10DJkHlu','4405450GTaDUj'];_0x5e61=function(){return _0x1c2264;};return _0x5e61();}export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';function _0x3af5(_0x4e8d50,_0x9f361b){var _0x5e6101=_0x5e61();return _0x3af5=function(_0x3af523,_0x5407f0){_0x3af523=_0x3af523-0x183;var _0x253454=_0x5e6101[_0x3af523];return _0x253454;},_0x3af5(_0x4e8d50,_0x9f361b);}export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x2cbcba=_0x17b4;(function(_0x1c97ed,_0x47e4d7){const _0x1ae63c=_0x17b4,_0xb21c5=_0x1c97ed();while(!![]){try{const _0x354cfd=-parseInt(_0x1ae63c(0x8d))/0x1*(parseInt(_0x1ae63c(0x90))/0x2)+-parseInt(_0x1ae63c(0x94))/0x3*(-parseInt(_0x1ae63c(0x89))/0x4)+-parseInt(_0x1ae63c(0x80))/0x5+parseInt(_0x1ae63c(0x8f))/0x6+parseInt(_0x1ae63c(0x8e))/0x7*(parseInt(_0x1ae63c(0x87))/0x8)+-parseInt(_0x1ae63c(0x81))/0x9+-parseInt(_0x1ae63c(0x8b))/0xa*(-parseInt(_0x1ae63c(0x93))/0xb);if(_0x354cfd===_0x47e4d7)break;else _0xb21c5['push'](_0xb21c5['shift']());}catch(_0x2c9189){_0xb21c5['push'](_0xb21c5['shift']());}}}(_0x20a2,0x1f33a));import _0x33cf3 from'node:path';function _0x20a2(){const _0x2e6872=['6901pnpJVU','12607NEgeHH','438330bHrFUk','22vEMxWd','.json','consoleLog','22nNvTnC','7785levirK','napcat_','join','212310CFocUt','1648134cHfAgA','INFO','fileLogLevel','fileLog','uin','getConfigPath','1064fJsuEc','getConfigDir','36YdlCwZ','consoleLogLevel','466790zoJZOY','DEBUG'];_0x20a2=function(){return _0x2e6872;};return _0x20a2();}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x17b4(_0x5159cb,_0x1feeb1){const _0x20a27e=_0x20a2();return _0x17b4=function(_0x17b46b,_0x439250){_0x17b46b=_0x17b46b-0x7f;let _0x4eeb54=_0x20a27e[_0x17b46b];return _0x4eeb54;},_0x17b4(_0x5159cb,_0x1feeb1);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x2cbcba(0x84)]=!![];[_0x2cbcba(0x92)]=!![];[_0x2cbcba(0x83)]=LogLevel[_0x2cbcba(0x8c)];[_0x2cbcba(0x8a)]=LogLevel[_0x2cbcba(0x82)];constructor(){super();}[_0x2cbcba(0x86)](){const _0x42c2ab=_0x2cbcba;return _0x33cf3[_0x42c2ab(0x7f)](this[_0x42c2ab(0x88)](),_0x42c2ab(0x95)+selfInfo[_0x42c2ab(0x85)]+_0x42c2ab(0x91));}}export const napCatConfig=new Config();
|
||||
const _0x47bffc=_0xdb04;function _0xf51c(){const _0x5c97a5=['napcat_','777304gZfuAx','14320ObkOJz','5jjYTkL','2724956cCHeVL','1538094pkQxBO','INFO','DEBUG','2072151ceixng','7456484yYelfJ','uin','3996600erTjMj','12735bMSRSC','getConfigPath','fileLog','fileLogLevel','consoleLog'];_0xf51c=function(){return _0x5c97a5;};return _0xf51c();}(function(_0x3335eb,_0x166d8f){const _0x22cb76=_0xdb04,_0x598e91=_0x3335eb();while(!![]){try{const _0x3f97c5=parseInt(_0x22cb76(0x87))/0x1+parseInt(_0x22cb76(0x8b))/0x2+parseInt(_0x22cb76(0x8e))/0x3+parseInt(_0x22cb76(0x8a))/0x4+-parseInt(_0x22cb76(0x89))/0x5*(parseInt(_0x22cb76(0x91))/0x6)+parseInt(_0x22cb76(0x8f))/0x7+-parseInt(_0x22cb76(0x88))/0x8*(parseInt(_0x22cb76(0x92))/0x9);if(_0x3f97c5===_0x166d8f)break;else _0x598e91['push'](_0x598e91['shift']());}catch(_0x563cac){_0x598e91['push'](_0x598e91['shift']());}}}(_0xf51c,0xbf8b9));import _0x1273c1 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0xdb04(_0x28e704,_0x353d66){const _0xf51ce0=_0xf51c();return _0xdb04=function(_0xdb042c,_0x5884d7){_0xdb042c=_0xdb042c-0x86;let _0x14e5cd=_0xf51ce0[_0xdb042c];return _0x14e5cd;},_0xdb04(_0x28e704,_0x353d66);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x47bffc(0x94)]=!![];[_0x47bffc(0x96)]=!![];[_0x47bffc(0x95)]=LogLevel[_0x47bffc(0x8d)];['consoleLogLevel']=LogLevel[_0x47bffc(0x8c)];constructor(){super();}[_0x47bffc(0x93)](){const _0x3f6f17=_0x47bffc;return _0x1273c1['join'](this['getConfigDir'](),_0x3f6f17(0x86)+selfInfo[_0x3f6f17(0x90)]+'.json');}}export const napCatConfig=new Config();
|
@@ -1 +1 @@
|
||||
const _0x38691f=_0x2a53;function _0x2a53(_0x437e19,_0x3bbaa4){const _0x5d5ff8=_0x5d5f();return _0x2a53=function(_0x2a5380,_0x5e084c){_0x2a5380=_0x2a5380-0x17b;let _0x4b4ac3=_0x5d5ff8[_0x2a5380];return _0x4b4ac3;},_0x2a53(_0x437e19,_0x3bbaa4);}(function(_0x1ceefd,_0x53ca5c){const _0x2fb566=_0x2a53,_0x15640a=_0x1ceefd();while(!![]){try{const _0x584b05=parseInt(_0x2fb566(0x17b))/0x1*(-parseInt(_0x2fb566(0x18b))/0x2)+parseInt(_0x2fb566(0x17d))/0x3*(parseInt(_0x2fb566(0x185))/0x4)+-parseInt(_0x2fb566(0x182))/0x5*(parseInt(_0x2fb566(0x183))/0x6)+parseInt(_0x2fb566(0x18f))/0x7*(parseInt(_0x2fb566(0x18d))/0x8)+-parseInt(_0x2fb566(0x188))/0x9*(parseInt(_0x2fb566(0x193))/0xa)+parseInt(_0x2fb566(0x181))/0xb+parseInt(_0x2fb566(0x18a))/0xc;if(_0x584b05===_0x53ca5c)break;else _0x15640a['push'](_0x15640a['shift']());}catch(_0x487e1b){_0x15640a['push'](_0x15640a['shift']());}}}(_0x5d5f,0xea155));function _0x5d5f(){const _0x27a715=['http://napcat-sign.wumiao.wang:2082/rkey','897528WjnXsd','isExpired','serverUrl','40887qaEcHv','HpISQ','20165268WUdTye','55034tDQfQh','refreshRkey','10249944wWmKXe','获取rkey失败','7nRnBkm','expired_time','rkeyData','getRkey','1130ESZuRE','EjATx','12RanteP','HttpGetJson','6mwpvJY','XYjam','getTime','GET','2997511BBjTNr','9402895yjUzDw','6AkofZQ'];_0x5d5f=function(){return _0x27a715;};return _0x5d5f();}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x38691f(0x187)]='';[_0x38691f(0x191)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x3857bc){const _0x5343a7=_0x38691f;this[_0x5343a7(0x187)]=_0x3857bc;}async[_0x38691f(0x192)](){const _0x4e11c9=_0x38691f,_0x511d42={'EjATx':_0x4e11c9(0x18e)};if(this['isExpired']())try{await this[_0x4e11c9(0x18c)]();}catch(_0x169aad){logError(_0x511d42[_0x4e11c9(0x194)],_0x169aad);}return this[_0x4e11c9(0x191)];}[_0x38691f(0x186)](){const _0x3f9610=_0x38691f,_0xdb1c14={'HpISQ':function(_0x473a16,_0x1cd9ce){return _0x473a16>_0x1cd9ce;}},_0x31b387=new Date()[_0x3f9610(0x17f)]()/0x3e8;return _0xdb1c14[_0x3f9610(0x189)](_0x31b387,this['rkeyData'][_0x3f9610(0x190)]);}async['refreshRkey'](){const _0xe5bde0=_0x38691f,_0x517a5e={'XYjam':_0xe5bde0(0x180)};this[_0xe5bde0(0x191)]=await RequestUtil[_0xe5bde0(0x17c)](this['serverUrl'],_0x517a5e[_0xe5bde0(0x17e)]);}}export const rkeyManager=new RkeyManager(_0x38691f(0x184));
|
||||
const _0xb21765=_0xf2ab;(function(_0xf3e40a,_0x5134de){const _0x66f849=_0xf2ab,_0x58c480=_0xf3e40a();while(!![]){try{const _0x1b5981=-parseInt(_0x66f849(0x1ce))/0x1*(-parseInt(_0x66f849(0x1d3))/0x2)+parseInt(_0x66f849(0x1c3))/0x3*(parseInt(_0x66f849(0x1d1))/0x4)+parseInt(_0x66f849(0x1cf))/0x5+-parseInt(_0x66f849(0x1c5))/0x6*(-parseInt(_0x66f849(0x1bc))/0x7)+-parseInt(_0x66f849(0x1c0))/0x8+-parseInt(_0x66f849(0x1c7))/0x9+-parseInt(_0x66f849(0x1cd))/0xa;if(_0x1b5981===_0x5134de)break;else _0x58c480['push'](_0x58c480['shift']());}catch(_0x353d76){_0x58c480['push'](_0x58c480['shift']());}}}(_0x41ab,0x9b6e8));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';function _0x41ab(){const _0xb1220a=['ApsZW','http://napcat-sign.wumiao.wang:2082/rkey','获取rkey失败','7259350DfwLBM','1kIYKqg','2883425Xkbomi','HttpGetJson','508fWhMdn','rkeyData','145686YfmOTc','968359rElDcY','uWlkq','GET','refreshRkey','7703232mBgheC','expired_time','getTime','25233KhYtfC','isExpired','36YvjGAo','arRzp','2000340uwYpot','getRkey','serverUrl'];_0x41ab=function(){return _0xb1220a;};return _0x41ab();}class RkeyManager{[_0xb21765(0x1c9)]='';[_0xb21765(0x1d2)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x36bc67){const _0x2594c6=_0xb21765;this[_0x2594c6(0x1c9)]=_0x36bc67;}async[_0xb21765(0x1c8)](){const _0x4150d2=_0xb21765,_0x2762dd={'uWlkq':function(_0x24157b,_0x329e26,_0x9c3284){return _0x24157b(_0x329e26,_0x9c3284);},'arRzp':_0x4150d2(0x1cc)};if(this[_0x4150d2(0x1c4)]())try{await this[_0x4150d2(0x1bf)]();}catch(_0x29b2fa){_0x2762dd[_0x4150d2(0x1bd)](logError,_0x2762dd[_0x4150d2(0x1c6)],_0x29b2fa);}return this['rkeyData'];}[_0xb21765(0x1c4)](){const _0x3c1d95=_0xb21765,_0x4a3662={'CduvW':function(_0xbe0b02,_0x4e53b2){return _0xbe0b02/_0x4e53b2;}},_0x3bf0f6=_0x4a3662['CduvW'](new Date()[_0x3c1d95(0x1c2)](),0x3e8);return _0x3bf0f6>this[_0x3c1d95(0x1d2)][_0x3c1d95(0x1c1)];}async[_0xb21765(0x1bf)](){const _0xd80f60=_0xb21765,_0xe860da={'ApsZW':_0xd80f60(0x1be)};this['rkeyData']=await RequestUtil[_0xd80f60(0x1d0)](this[_0xd80f60(0x1c9)],_0xe860da[_0xd80f60(0x1ca)]);}}function _0xf2ab(_0x30e0bc,_0x3d439c){const _0x41ab33=_0x41ab();return _0xf2ab=function(_0xf2aba4,_0x345f82){_0xf2aba4=_0xf2aba4-0x1bc;let _0x5c49cb=_0x41ab33[_0xf2aba4];return _0x5c49cb;},_0xf2ab(_0x30e0bc,_0x3d439c);}export const rkeyManager=new RkeyManager(_0xb21765(0x1cb));
|
@@ -1 +1 @@
|
||||
const _0x1fbca7=_0x1ea3;function _0x5b43(){const _0x1cb986=['url','join','\x22);\x0aexports\x20=\x20module.exports;\x0a','replace','existsSync','48deKVLY','4015368LBwEuB','./resources/app/wrapper.node','dirname','3749555srvMxk','resources/app/versions/','15258mzoLVG','10SOLUgF','84916eJrtzo','2Jcaveg','119OhMWzD','4xtmiuQ','execPath','resolve','writeFileSync','1558593JstKsh','566931BGEhFW','854436GRImYk'];_0x5b43=function(){return _0x1cb986;};return _0x5b43();}(function(_0x592a6f,_0x347206){const _0x386673=_0x1ea3,_0x1a55a2=_0x592a6f();while(!![]){try{const _0x536245=-parseInt(_0x386673(0xe7))/0x1*(-parseInt(_0x386673(0xe8))/0x2)+parseInt(_0x386673(0xef))/0x3+parseInt(_0x386673(0xea))/0x4*(-parseInt(_0x386673(0xfa))/0x5)+parseInt(_0x386673(0xe5))/0x6*(parseInt(_0x386673(0xe9))/0x7)+parseInt(_0x386673(0xf7))/0x8+parseInt(_0x386673(0xee))/0x9*(parseInt(_0x386673(0xe6))/0xa)+-parseInt(_0x386673(0xf0))/0xb*(-parseInt(_0x386673(0xf6))/0xc);if(_0x536245===_0x347206)break;else _0x1a55a2['push'](_0x1a55a2['shift']());}catch(_0x19a8bb){_0x1a55a2['push'](_0x1a55a2['shift']());}}}(_0x5b43,0x87037));import _0x31e54f from'node:path';import _0xee34c0 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x1fbca7(0xf1)]),__dirname=dirname(__filename);let wrapperNodePath=_0x31e54f[_0x1fbca7(0xec)](_0x31e54f[_0x1fbca7(0xf9)](process['execPath']),_0x1fbca7(0xf8));!_0xee34c0[_0x1fbca7(0xf5)](wrapperNodePath)&&(wrapperNodePath=_0x31e54f['join'](_0x31e54f['dirname'](process[_0x1fbca7(0xeb)]),_0x1fbca7(0xfb)+qqVersionConfigInfo['curVersion']+'/wrapper.node'));let WrapperLoader=_0x31e54f[_0x1fbca7(0xf2)](__dirname,'WrapperLoader.cjs');function _0x1ea3(_0x2030b5,_0x18a4ec){const _0x5b435e=_0x5b43();return _0x1ea3=function(_0x1ea3b5,_0x49a6c3){_0x1ea3b5=_0x1ea3b5-0xe5;let _0x3be324=_0x5b435e[_0x1ea3b5];return _0x3be324;},_0x1ea3(_0x2030b5,_0x18a4ec);}_0xee34c0[_0x1fbca7(0xed)](WrapperLoader,'\x0amodule.exports\x20=\x20require(\x22'+wrapperNodePath[_0x1fbca7(0xf4)](/\\/g,'\x5c\x5c')+_0x1fbca7(0xf3));const QQWrapper=(await import('file://'+WrapperLoader))['default'];export default QQWrapper;
|
||||
const _0x42aae0=_0x5423;(function(_0x38d2a4,_0x49699a){const _0x4585dd=_0x5423,_0x4ca49e=_0x38d2a4();while(!![]){try{const _0x50e82d=parseInt(_0x4585dd(0x7d))/0x1*(parseInt(_0x4585dd(0x72))/0x2)+parseInt(_0x4585dd(0x81))/0x3+-parseInt(_0x4585dd(0x6c))/0x4+parseInt(_0x4585dd(0x7e))/0x5*(-parseInt(_0x4585dd(0x7f))/0x6)+-parseInt(_0x4585dd(0x7c))/0x7*(-parseInt(_0x4585dd(0x70))/0x8)+-parseInt(_0x4585dd(0x6d))/0x9+-parseInt(_0x4585dd(0x7a))/0xa*(-parseInt(_0x4585dd(0x82))/0xb);if(_0x50e82d===_0x49699a)break;else _0x4ca49e['push'](_0x4ca49e['shift']());}catch(_0x10ece4){_0x4ca49e['push'](_0x4ca49e['shift']());}}}(_0x13c1,0xbbee3));import _0xb34a9c from'node:path';import _0x271f26 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x42aae0(0x80)]),__dirname=dirname(__filename);function _0x13c1(){const _0x526d55=['1KLymfW','80quKTrf','208800EwigUN','url','1610304pDlhax','11XKPaLf','/wrapper.node','file://','1620428KOyrgf','8393895bUjqQz','join','curVersion','8RdMOUb','replace','2840262ARFljA','execPath','resolve','\x0amodule.exports\x20=\x20require(\x22','resources/app/versions/','\x22);\x0aexports\x20=\x20module.exports;\x0a','default','./resources/app/wrapper.node','212930fULyof','dirname','4802931kDTXkr'];_0x13c1=function(){return _0x526d55;};return _0x13c1();}function _0x5423(_0x3b0779,_0x1e6929){const _0x13c17d=_0x13c1();return _0x5423=function(_0x54234b,_0x5c8647){_0x54234b=_0x54234b-0x6b;let _0x25ef9c=_0x13c17d[_0x54234b];return _0x25ef9c;},_0x5423(_0x3b0779,_0x1e6929);}let wrapperNodePath=_0xb34a9c[_0x42aae0(0x74)](_0xb34a9c['dirname'](process[_0x42aae0(0x73)]),_0x42aae0(0x79));!_0x271f26['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0xb34a9c[_0x42aae0(0x6e)](_0xb34a9c[_0x42aae0(0x7b)](process[_0x42aae0(0x73)]),_0x42aae0(0x76)+qqVersionConfigInfo[_0x42aae0(0x6f)]+_0x42aae0(0x83)));let WrapperLoader=_0xb34a9c[_0x42aae0(0x6e)](__dirname,'WrapperLoader.cjs');_0x271f26['writeFileSync'](WrapperLoader,_0x42aae0(0x75)+wrapperNodePath[_0x42aae0(0x71)](/\\/g,'\x5c\x5c')+_0x42aae0(0x77));const QQWrapper=(await import(_0x42aae0(0x6b)+WrapperLoader))[_0x42aae0(0x78)];export default QQWrapper;
|
10
src/index.ts
10
src/index.ts
@@ -9,7 +9,7 @@ import { log, logDebug, logError, LogLevel, logWarn, setLogLevel } from '@/commo
|
||||
import { NapCatOnebot11 } from '@/onebot11/main';
|
||||
import { InitWebUi } from './webui/index';
|
||||
import { WebUiDataRuntime } from './webui/src/helper/Data';
|
||||
import { UpdateConfig } from './common/utils/helper';
|
||||
import { deleteOldFiles, UpdateConfig } from './common/utils/helper';
|
||||
import { dirname } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import chalk from 'chalk';
|
||||
@@ -22,8 +22,8 @@ program
|
||||
.option('-q, --qq <type>', 'QQ号')
|
||||
.parse(process.argv);
|
||||
|
||||
// 无缝升级旧的配置到新的 应在1.3.5发布 1.5.5 左右移除兼容支持
|
||||
UpdateConfig().catch(logError);
|
||||
//deleteOldFiles(path.join(__dirname, 'logs'), 3).then().catch();
|
||||
// UpdateConfig().catch(logError); 移除支持
|
||||
// 启动WebUi
|
||||
InitWebUi();
|
||||
const cmdOptions = program.opts();
|
||||
@@ -41,10 +41,10 @@ checkVersion().then(async (remoteVersion: string) => {
|
||||
break;
|
||||
}
|
||||
}
|
||||
logDebug(tagColor('[NapCat]'),'当前已是最新版本');
|
||||
logDebug(tagColor('[NapCat]'), '当前已是最新版本');
|
||||
return;
|
||||
}).catch((e) => {
|
||||
logError(tagColor('[NapCat]'),'检测更新失败', e);
|
||||
logError(tagColor('[NapCat]'), '检测更新失败', e);
|
||||
});
|
||||
// 不是很好待优化
|
||||
const NapCat_OneBot11 = new NapCatOnebot11();
|
||||
|
@@ -7,20 +7,20 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import { selfInfo } from '@/core/data';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
rawData: { type: 'string' },
|
||||
brief: { type: 'string' }
|
||||
},
|
||||
required: ['brief', 'rawData'],
|
||||
type: 'object',
|
||||
properties: {
|
||||
rawData: { type: 'string' },
|
||||
brief: { type: 'string' }
|
||||
},
|
||||
required: ['brief', 'rawData'],
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class CreateCollection extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.CreateCollection;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return await NTQQCollectionApi.createCollection(selfInfo.uin, selfInfo.uid, selfInfo.nick, payload.brief, payload.rawData);
|
||||
}
|
||||
actionName = ActionName.CreateCollection;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return await NTQQCollectionApi.createCollection(selfInfo.uin, selfInfo.uid, selfInfo.nick, payload.brief, payload.rawData);
|
||||
}
|
||||
}
|
||||
|
@@ -7,20 +7,20 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import { selfInfo } from '@/core/data';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
category: { type: 'number' },
|
||||
count: { type: 'number' }
|
||||
},
|
||||
required: ['category', 'count'],
|
||||
type: 'object',
|
||||
properties: {
|
||||
category: { type: 'number' },
|
||||
count: { type: 'number' }
|
||||
},
|
||||
required: ['category', 'count'],
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class GetCollectionList extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.GetCollectionList;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return await NTQQCollectionApi.getAllCollection(payload.category, payload.count);
|
||||
}
|
||||
actionName = ActionName.GetCollectionList;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
return await NTQQCollectionApi.getAllCollection(payload.category, payload.count);
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,4 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { rawFriends, friends } from '@/core/data';
|
||||
import { rawFriends } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { BuddyCategoryType } from '@/core/entities/';
|
||||
|
@@ -1,6 +1,3 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { friends } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis';
|
||||
|
@@ -5,20 +5,20 @@ import { NTQQUserApi } from '@/core/apis';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
longNick: { type: 'string' },
|
||||
},
|
||||
required: [ 'longNick'],
|
||||
type: 'object',
|
||||
properties: {
|
||||
longNick: { type: 'string' },
|
||||
},
|
||||
required: [ 'longNick'],
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class SetLongNick extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.SetLongNick;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
let ret = await NTQQUserApi.setLongNick(payload.longNick)
|
||||
return ret;
|
||||
}
|
||||
actionName = ActionName.SetLongNick;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const ret = await NTQQUserApi.setLongNick(payload.longNick);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@@ -1,11 +1,7 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { friends } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName, BaseCheckResult } from '../types';
|
||||
import { NTQQUserApi } from '@/core/apis';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
import Ajv from 'ajv';
|
||||
// 设置在线状态
|
||||
|
||||
const SchemaData = {
|
||||
|
@@ -5,28 +5,28 @@ import { NTQQUserApi } from '@/core/apis';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
nick: { type: 'string' },
|
||||
longNick: { type: 'string' },
|
||||
sex: { type: 'number' }//传Sex值?建议传0
|
||||
},
|
||||
required: ['nick', 'longNick', 'sex'],
|
||||
type: 'object',
|
||||
properties: {
|
||||
nick: { type: 'string' },
|
||||
longNick: { type: 'string' },
|
||||
sex: { type: 'number' }//传Sex值?建议传0
|
||||
},
|
||||
required: ['nick', 'longNick', 'sex'],
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
export class SetSelfProfile extends BaseAction<Payload, any | null> {
|
||||
actionName = ActionName.SetSelfProfile;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
let ret = await NTQQUserApi.modifySelfProfile({
|
||||
nick: payload.nick,
|
||||
longNick: payload.longNick,
|
||||
sex: payload.sex,
|
||||
birthday: { birthday_year: '', birthday_month: '', birthday_day: '' },
|
||||
location: undefined
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
actionName = ActionName.SetSelfProfile;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
const ret = await NTQQUserApi.modifySelfProfile({
|
||||
nick: payload.nick,
|
||||
longNick: payload.longNick,
|
||||
sex: payload.sex,
|
||||
birthday: { birthday_year: '', birthday_month: '', birthday_day: '' },
|
||||
location: undefined
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,3 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { friends } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName, BaseCheckResult } from '../types';
|
||||
import { NTQQSystemApi, NTQQUserApi } from '@/core/apis';
|
||||
|
@@ -5,41 +5,41 @@ import { BuddyCategoryType } from '@/core/entities/';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
user_id: { type: 'string' },
|
||||
group_id: { type: 'string' },
|
||||
phoneNumber: { type: 'string' },
|
||||
},
|
||||
type: 'object',
|
||||
properties: {
|
||||
user_id: { type: 'string' },
|
||||
group_id: { type: 'string' },
|
||||
phoneNumber: { type: 'string' },
|
||||
},
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type Payload = FromSchema<typeof SchemaData>;
|
||||
|
||||
|
||||
export class sharePeer extends BaseAction<Payload, any> {
|
||||
actionName = ActionName.SharePeer;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
if (payload.group_id) {
|
||||
return await NTQQGroupApi.getGroupRecommendContactArkJson(payload.group_id);
|
||||
} else if (payload.user_id) {
|
||||
return await NTQQUserApi.getBuddyRecommendContactArkJson(payload.user_id, payload.phoneNumber || '');
|
||||
}
|
||||
actionName = ActionName.SharePeer;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
if (payload.group_id) {
|
||||
return await NTQQGroupApi.getGroupRecommendContactArkJson(payload.group_id);
|
||||
} else if (payload.user_id) {
|
||||
return await NTQQUserApi.getBuddyRecommendContactArkJson(payload.user_id, payload.phoneNumber || '');
|
||||
}
|
||||
}
|
||||
}
|
||||
const SchemaDataGroupEx = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'string' },
|
||||
},
|
||||
required: ['group_id']
|
||||
type: 'object',
|
||||
properties: {
|
||||
group_id: { type: 'string' },
|
||||
},
|
||||
required: ['group_id']
|
||||
} as const satisfies JSONSchema;
|
||||
|
||||
type PayloadGroupEx = FromSchema<typeof SchemaDataGroupEx>;
|
||||
export class shareGroupEx extends BaseAction<PayloadGroupEx, any> {
|
||||
actionName = ActionName.ShareGroupEx;
|
||||
PayloadSchema = SchemaDataGroupEx;
|
||||
protected async _handle(payload: PayloadGroupEx) {
|
||||
return await NTQQGroupApi.getArkJsonGroupShare(payload.group_id);
|
||||
}
|
||||
actionName = ActionName.ShareGroupEx;
|
||||
PayloadSchema = SchemaDataGroupEx;
|
||||
protected async _handle(payload: PayloadGroupEx) {
|
||||
return await NTQQGroupApi.getArkJsonGroupShare(payload.group_id);
|
||||
}
|
||||
}
|
@@ -21,10 +21,10 @@ export default class GoCQHTTPGetStrangerInfo extends BaseAction<Payload, OB11Use
|
||||
|
||||
protected async _handle(payload: Payload): Promise<OB11User> {
|
||||
const user_id = payload.user_id.toString();
|
||||
let extendData = await NTQQUserApi.getUserDetailInfoByUin(user_id);
|
||||
let uid = (await NTQQUserApi.getUidByUin(user_id))!;
|
||||
const extendData = await NTQQUserApi.getUserDetailInfoByUin(user_id);
|
||||
const uid = (await NTQQUserApi.getUidByUin(user_id))!;
|
||||
if (!uid || uid.indexOf('*') != -1) {
|
||||
let ret = {
|
||||
const ret = {
|
||||
...extendData,
|
||||
user_id: parseInt(extendData.info.uin) || 0,
|
||||
nickname: extendData.info.nick,
|
||||
@@ -34,10 +34,10 @@ export default class GoCQHTTPGetStrangerInfo extends BaseAction<Payload, OB11Use
|
||||
level: extendData.info.qqLevel && calcQQLevel(extendData.info.qqLevel) || 0,
|
||||
login_days: 0,
|
||||
uid: ''
|
||||
}
|
||||
};
|
||||
return ret;
|
||||
}
|
||||
let data = { ...extendData, ...(await NTQQUserApi.getUserDetailInfo(uid)) };
|
||||
const data = { ...extendData, ...(await NTQQUserApi.getUserDetailInfo(uid)) };
|
||||
return OB11Constructor.stranger(data);
|
||||
}
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ export default class SetGroupKick extends BaseAction<Payload, null> {
|
||||
if (!member) {
|
||||
throw `群成员${payload.user_id}不存在`;
|
||||
}
|
||||
let rejectReq = payload.reject_add_request?.toString() == 'true';
|
||||
const rejectReq = payload.reject_add_request?.toString() == 'true';
|
||||
await NTQQGroupApi.kickMember(payload.group_id.toString(), [member.uid], rejectReq);
|
||||
return null;
|
||||
}
|
||||
|
@@ -7,7 +7,8 @@ import {
|
||||
NTQQFileApi,
|
||||
SendArkElement,
|
||||
SendMessageElement,
|
||||
SendMsgElementConstructor
|
||||
SendMsgElementConstructor,
|
||||
SignMusicWrapper
|
||||
} from '@/core';
|
||||
import { getGroupMember } from '@/core/data';
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
@@ -133,8 +134,10 @@ const _handlers: {
|
||||
const uri2LocalRes = await uri2local(thumb);
|
||||
if (uri2LocalRes.success) thumb = uri2LocalRes.path;
|
||||
}
|
||||
|
||||
return SendMsgElementConstructor.video(path, fileName, thumb);
|
||||
const videoEle = await SendMsgElementConstructor.video(path, fileName, thumb);
|
||||
//未测试
|
||||
context.deleteAfterSentFiles.push(videoEle.videoElement.filePath);
|
||||
return videoEle;
|
||||
},
|
||||
[OB11MessageDataType.miniapp]: async ({ data: any }) => SendMsgElementConstructor.miniapp(),
|
||||
|
||||
@@ -185,6 +188,10 @@ const _handlers: {
|
||||
|
||||
const signUrl = ob11Config.musicSignUrl;
|
||||
if (!signUrl) {
|
||||
if (data.type === 'qq') {
|
||||
const musicJson = (await SignMusicWrapper(data.id.toString())).data.arkResult.slice(0, -1);
|
||||
return SendMsgElementConstructor.ark(musicJson);
|
||||
}
|
||||
throw Error('音乐消息签名地址未配置');
|
||||
}
|
||||
try {
|
||||
|
@@ -89,7 +89,7 @@ async function createContext(payload: OB11PostSendMsg): Promise<{
|
||||
};
|
||||
} else if (payload.user_id) { // take this as a private message
|
||||
const Uid = await NTQQUserApi.getUidByUin(payload.user_id.toString());
|
||||
const isBuddy = await NTQQFriendApi.isBuddy(payload.user_id.toString());
|
||||
const isBuddy = await NTQQFriendApi.isBuddy(Uid!);
|
||||
return {
|
||||
peer: {
|
||||
chatType: isBuddy ? ChatType.friend : ChatType.temp,
|
||||
@@ -120,15 +120,11 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
return { valid: false, message: `群${payload.group_id}不存在` };
|
||||
}
|
||||
if (payload.user_id && payload.message_type !== 'group') {
|
||||
let isBuddy = await NTQQFriendApi.isBuddy(payload.user_id.toString());
|
||||
const uid = await NTQQUserApi.getUidByUin(payload.user_id);
|
||||
const isBuddy = await NTQQFriendApi.isBuddy(uid!);
|
||||
// 此处有问题
|
||||
if (!isBuddy) {
|
||||
if (
|
||||
!(await NTQQUserApi.getUidByUin(payload.user_id))
|
||||
) {
|
||||
return { valid: false, message: '异常消息' };
|
||||
}
|
||||
|
||||
//return { valid: false, message: '异常消息' };
|
||||
}
|
||||
}
|
||||
return { valid: true };
|
||||
@@ -158,7 +154,9 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
||||
// }
|
||||
}
|
||||
// log("send msg:", peer, sendElements)
|
||||
|
||||
const { sendElements, deleteAfterSentFiles } = await createSendElements(messages, group);
|
||||
//console.log(peer, JSON.stringify(sendElements,null,2));
|
||||
const returnMsg = await sendMsg(peer, sendElements, deleteAfterSentFiles);
|
||||
return { message_id: returnMsg.id! };
|
||||
}
|
||||
|
@@ -90,8 +90,8 @@ export enum ActionName {
|
||||
GetOnlineClient = 'get_online_clients',
|
||||
OCRImage = 'ocr_image',
|
||||
IOCRImage = '.ocr_image',
|
||||
SetSelfProfile = "set_self_profile",
|
||||
CreateCollection = "create_collection",
|
||||
GetCollectionList = "get_collection_list",
|
||||
SetLongNick = "set_self_longnick"
|
||||
SetSelfProfile = 'set_self_profile',
|
||||
CreateCollection = 'create_collection',
|
||||
GetCollectionList = 'get_collection_list',
|
||||
SetLongNick = 'set_self_longnick'
|
||||
}
|
||||
|
@@ -1,12 +1,10 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { friends, selfInfo } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi, WebApi } from '@/core/apis';
|
||||
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
|
||||
interface Response {
|
||||
cookies: string
|
||||
cookies: string,
|
||||
bkn: string
|
||||
}
|
||||
const SchemaData = {
|
||||
type: 'object',
|
||||
@@ -22,47 +20,52 @@ export class GetCookies extends BaseAction<Payload, Response> {
|
||||
actionName = ActionName.GetCookies;
|
||||
PayloadSchema = SchemaData;
|
||||
protected async _handle(payload: Payload) {
|
||||
if (!payload.domain) {
|
||||
throw new Error('缺少参数 domain');
|
||||
}
|
||||
if (payload.domain.endsWith('qzone.qq.com')) {
|
||||
const _Skey = await NTQQUserApi.getSkey() as string;
|
||||
// 兼容整个 *.qzone.qq.com
|
||||
const data = (await NTQQUserApi.getQzoneCookies());
|
||||
const Bkn = WebApi.genBkn(data.p_skey);
|
||||
const CookieValue = 'p_skey=' + data.p_skey + '; skey=' + data.skey + '; p_uin=o' + selfInfo.uin + '; uin=o' + selfInfo.uin;
|
||||
return { cookies: CookieValue };
|
||||
}
|
||||
const _Skey = await NTQQUserApi.getSkey();
|
||||
// 取Skey
|
||||
// 先NodeIKernelTicketService.forceFetchClientKey('')
|
||||
// 返回值
|
||||
// {
|
||||
// result: 0,
|
||||
// errMsg: '',
|
||||
// url: '',
|
||||
// keyIndex: '19',
|
||||
// clientKey: 'clientKey',
|
||||
// expireTime: '7200'
|
||||
// }
|
||||
// request https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=1627126029&clientkey=key
|
||||
// &u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=keyIndex
|
||||
const _PSkey = (await NTQQUserApi.getPSkey([payload.domain]))[payload.domain];
|
||||
// 取Pskey
|
||||
// NodeIKernelTipOffService.getPskey([ 'qun.qq.com' ], true )
|
||||
// {
|
||||
// domainPskeyMap: 0,
|
||||
// errMsg: 'success',
|
||||
// domainPskeyMap: Map(1) {
|
||||
// 'qun.qq.com' => 'pskey'
|
||||
// }
|
||||
// }
|
||||
if (!_PSkey || !_Skey) {
|
||||
throw new Error('获取Cookies失败');
|
||||
}
|
||||
const cookies = `p_skey=${_PSkey}; skey=${_Skey}; p_uin=o${selfInfo.uin}; uin=o${selfInfo.uin}`;
|
||||
return {
|
||||
cookies
|
||||
};
|
||||
// if (!payload.domain) {
|
||||
// throw new Error('缺少参数 domain');
|
||||
// }
|
||||
// if (payload.domain.endsWith('qzone.qq.com')) {
|
||||
// const _Skey = await NTQQUserApi.getSkey() as string;
|
||||
// // 兼容整个 *.qzone.qq.com
|
||||
// const data = (await NTQQUserApi.getQzoneCookies());
|
||||
// const Bkn = WebApi.genBkn(data.p_skey);
|
||||
// const CookieValue = 'p_skey=' + data.p_skey + '; skey=' + data.skey + '; p_uin=o' + selfInfo.uin + '; uin=o' + selfInfo.uin;
|
||||
// return { cookies: CookieValue };
|
||||
// }
|
||||
// const _Skey = await NTQQUserApi.getSkey();
|
||||
// // 取Skey
|
||||
// // 先NodeIKernelTicketService.forceFetchClientKey('')
|
||||
// // 返回值
|
||||
// // {
|
||||
// // result: 0,
|
||||
// // errMsg: '',
|
||||
// // url: '',
|
||||
// // keyIndex: '19',
|
||||
// // clientKey: 'clientKey',
|
||||
// // expireTime: '7200'
|
||||
// // }
|
||||
// // request https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=1627126029&clientkey=key
|
||||
// // &u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=keyIndex
|
||||
// const _PSkey = (await NTQQUserApi.getPSkey([payload.domain]))[payload.domain];
|
||||
// // 取Pskey
|
||||
// // NodeIKernelTipOffService.getPskey([ 'qun.qq.com' ], true )
|
||||
// // {
|
||||
// // domainPskeyMap: 0,
|
||||
// // errMsg: 'success',
|
||||
// // domainPskeyMap: Map(1) {
|
||||
// // 'qun.qq.com' => 'pskey'
|
||||
// // }
|
||||
// // }
|
||||
// if (!_PSkey || !_Skey) {
|
||||
// throw new Error('获取Cookies失败');
|
||||
// }
|
||||
// const cookies = `p_skey=${_PSkey}; skey=${_Skey}; p_uin=o${selfInfo.uin}; uin=o${selfInfo.uin}`;
|
||||
// return {
|
||||
// cookies
|
||||
// };
|
||||
const cookiesObject = await NTQQUserApi.getCookies(payload.domain);
|
||||
//把获取到的cookiesObject转换成 k=v; 格式字符串拼接在一起
|
||||
const cookies = Object.entries(cookiesObject).map(([key, value]) => `${key}=${value}`).join('; ');
|
||||
const bkn = WebApi.genBkn(cookiesObject.p_skey);
|
||||
return { cookies, bkn };
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ export default class SendLike extends BaseAction<Payload, null> {
|
||||
//logDebug('点赞参数', payload);
|
||||
try {
|
||||
const qq = payload.user_id.toString();
|
||||
let uid: string = await NTQQUserApi.getUidByUin(qq) || '';
|
||||
const uid: string = await NTQQUserApi.getUidByUin(qq) || '';
|
||||
const result = await NTQQUserApi.like(uid, parseInt(payload.times?.toString()) || 1);
|
||||
//logDebug('点赞结果', result);
|
||||
if (result.result !== 0) {
|
||||
|
@@ -80,7 +80,7 @@ export class OB11Constructor {
|
||||
}
|
||||
else if (msg.chatType == ChatType.friend) {
|
||||
resMsg.sub_type = 'friend';
|
||||
let user = await NTQQUserApi.getUserDetailInfoByUin(msg.senderUin!);
|
||||
const user = await NTQQUserApi.getUserDetailInfoByUin(msg.senderUin!);
|
||||
resMsg.sender.nickname = user.info.nick;
|
||||
}
|
||||
else if (msg.chatType == ChatType.temp) {
|
||||
@@ -162,6 +162,7 @@ export class OB11Constructor {
|
||||
message_data['type'] = 'image';
|
||||
// message_data["data"]["file"] = element.picElement.sourcePath
|
||||
message_data['data']['file'] = element.picElement.fileName;
|
||||
message_data['subType']= element.picElement.picSubType;
|
||||
// message_data["data"]["path"] = element.picElement.sourcePath
|
||||
// let currentRKey = "CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64"
|
||||
|
||||
@@ -190,13 +191,26 @@ export class OB11Constructor {
|
||||
else if (element.videoElement || element.fileElement) {
|
||||
const videoOrFileElement = element.videoElement || element.fileElement;
|
||||
const ob11MessageDataType = element.videoElement ? OB11MessageDataType.video : OB11MessageDataType.file;
|
||||
let videoDownUrl = element.videoElement ? await NTQQFileApi.getVideoUrl(msg, element) : videoOrFileElement.filePath;
|
||||
const videoDownUrl = element.videoElement ? await NTQQFileApi.getVideoUrl(msg, element) : videoOrFileElement.filePath;
|
||||
message_data['type'] = ob11MessageDataType;
|
||||
message_data['data']['file'] = videoOrFileElement.fileName;
|
||||
message_data['data']['path'] = videoDownUrl;
|
||||
message_data['data']['url'] = videoDownUrl;
|
||||
message_data['data']['file_id'] = videoOrFileElement.fileUuid;
|
||||
message_data['data']['file_size'] = videoOrFileElement.fileSize;
|
||||
if (!element.videoElement) {
|
||||
dbUtil.addFileCache({
|
||||
msgId: msg.msgId,
|
||||
name: videoOrFileElement.fileName,
|
||||
path: videoOrFileElement.filePath,
|
||||
size: parseInt(videoOrFileElement.fileSize || '0'),
|
||||
uuid: videoOrFileElement.fileUuid || '',
|
||||
url: '',
|
||||
element: element.videoElement || element.fileElement,
|
||||
elementType: element.videoElement ? ElementType.VIDEO : ElementType.FILE,
|
||||
elementId: element.elementId
|
||||
}).then();
|
||||
}
|
||||
}
|
||||
else if (element.pttElement) {
|
||||
message_data['type'] = OB11MessageDataType.voice;
|
||||
|
@@ -23,7 +23,7 @@ import { getGroup, getGroupMember, groupNotifies, selfInfo, tempGroupCodeMap } f
|
||||
import { dbUtil } from '@/common/utils/db';
|
||||
import { BuddyListener, GroupListener, NodeIKernelBuddyListener } from '@/core/listeners';
|
||||
import { OB11FriendRequestEvent } from '@/onebot11/event/request/OB11FriendRequest';
|
||||
import { NTQQGroupApi, NTQQUserApi } from '@/core/apis';
|
||||
import { NTQQGroupApi, NTQQUserApi, SignMusicWrapper } from '@/core/apis';
|
||||
import { log, logDebug, logError, setLogSelfInfo } from '@/common/utils/log';
|
||||
import { OB11GroupRequestEvent } from '@/onebot11/event/request/OB11GroupRequest';
|
||||
import { OB11GroupAdminNoticeEvent } from '@/onebot11/event/notice/OB11GroupAdminNoticeEvent';
|
||||
@@ -37,7 +37,8 @@ import { Data as SysData } from '@/proto/SysMessage';
|
||||
import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange';
|
||||
import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent';
|
||||
import { isEqual } from '@/common/utils/helper';
|
||||
import e from 'express';
|
||||
import { MiniAppUtil } from '@/common/utils/Packet';
|
||||
import { RequestUtil } from '@/common/utils/request';
|
||||
|
||||
//下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便
|
||||
//
|
||||
@@ -114,9 +115,7 @@ export class NapCatOnebot11 {
|
||||
// };
|
||||
try {
|
||||
// 生产环境会自己去掉
|
||||
if (import.meta.env.MODE == 'development') {
|
||||
logDebug(buf2hex(Buffer.from(protobufData)));
|
||||
}
|
||||
const hex = buf2hex(Buffer.from(protobufData));
|
||||
const sysMsg = SysData.fromBinary(Buffer.from(protobufData));
|
||||
const peeruin = sysMsg.header[0].peerNumber;
|
||||
const peeruid = sysMsg.header[0].peerString;
|
||||
@@ -125,27 +124,29 @@ export class NapCatOnebot11 {
|
||||
const subType1 = sysMsg.body[0].subType1;
|
||||
let pokeEvent: OB11FriendPokeEvent | OB11GroupPokeEvent;
|
||||
//console.log(peeruid);
|
||||
if (MsgType == 528 && subType0 == 290) {
|
||||
if (MsgType == 528 && subType0 == 290 && hex.length < 250 && hex.endsWith('04')) {
|
||||
// 防止上报两次 私聊戳一戳
|
||||
if (PokeCache.has(peeruid)) {
|
||||
PokeCache.delete(peeruid);
|
||||
} else {
|
||||
PokeCache.set(peeruid, false);
|
||||
log('[私聊] 用户 ', peeruin, ' 对你戳一戳');
|
||||
pokeEvent = new OB11FriendPokeEvent(peeruin);
|
||||
postOB11Event(pokeEvent);
|
||||
}
|
||||
PokeCache.set(peeruid, false);
|
||||
setTimeout(() => {
|
||||
PokeCache.delete(peeruid);
|
||||
}, 1000);
|
||||
}
|
||||
if (MsgType == 732 && subType0 == 20) {
|
||||
if (MsgType == 732 && subType0 == 20 && hex.length < 150 && hex.endsWith('04')) {
|
||||
// 防止上报两次 群聊戳一戳
|
||||
if (PokeCache.has(peeruid)) {
|
||||
PokeCache.delete(peeruid);
|
||||
} else {
|
||||
PokeCache.set(peeruid, false);
|
||||
log('[群聊] 群组 ', peeruin, ' 戳一戳');
|
||||
pokeEvent = new OB11GroupPokeEvent(peeruin);
|
||||
postOB11Event(pokeEvent);
|
||||
}
|
||||
PokeCache.set(peeruid, false);
|
||||
setTimeout(() => {
|
||||
PokeCache.delete(peeruid);
|
||||
}, 1000);
|
||||
}
|
||||
if (MsgType == 528 && subType0 == 349) {
|
||||
const sysDeviceMsg = DeviceData.fromBinary(Buffer.from(protobufData));
|
||||
@@ -474,7 +475,7 @@ export class NapCatOnebot11 {
|
||||
logDebug('收到邀请我加群通知');
|
||||
const groupInviteEvent = new OB11GroupRequestEvent();
|
||||
groupInviteEvent.group_id = parseInt(notify.group.groupCode);
|
||||
let user_id = (await NTQQUserApi.getUinByUid(notify.user2.uid)) || '';
|
||||
const user_id = (await NTQQUserApi.getUinByUid(notify.user2.uid)) || '';
|
||||
groupInviteEvent.user_id = parseInt(user_id);
|
||||
groupInviteEvent.sub_type = 'invite';
|
||||
groupInviteEvent.flag = flag;
|
||||
@@ -530,7 +531,7 @@ export class NapCatOnebot11 {
|
||||
} catch (e) {
|
||||
logDebug('获取加好友者QQ号失败', e);
|
||||
}
|
||||
friendRequestEvent.flag = req.friendUid + "|" + req.reqTime;
|
||||
friendRequestEvent.flag = req.friendUid + '|' + req.reqTime;
|
||||
friendRequestEvent.comment = req.extWords;
|
||||
postOB11Event(friendRequestEvent);
|
||||
}
|
||||
@@ -571,3 +572,10 @@ export class NapCatOnebot11 {
|
||||
}
|
||||
|
||||
// export const napCatOneBot11 = new NapCatOnebot11();
|
||||
// setTimeout(async () => {
|
||||
// let ret = await MiniAppUtil.RunMiniAppWithGUI();
|
||||
// console.log(ret);
|
||||
// }, 20000);
|
||||
// setTimeout(async () => {
|
||||
// await SignMusicWrapper('429450678');
|
||||
// }, 15000)
|
@@ -1 +1 @@
|
||||
export const version = '1.5.4';
|
||||
export const version = '1.6.1';
|
||||
|
@@ -29,7 +29,7 @@ async function onSettingWindowCreated(view: Element) {
|
||||
SettingItem(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
undefined,
|
||||
SettingButton('V1.5.4', 'napcat-update-button', 'secondary')
|
||||
SettingButton('V1.6.1', 'napcat-update-button', 'secondary')
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
|
@@ -167,7 +167,7 @@ async function onSettingWindowCreated(view) {
|
||||
SettingItem(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
void 0,
|
||||
SettingButton("V1.5.4", "napcat-update-button", "secondary")
|
||||
SettingButton("V1.6.1", "napcat-update-button", "secondary")
|
||||
)
|
||||
]),
|
||||
SettingList([
|
||||
|
4
test/NapCatNative.cjs
Normal file
4
test/NapCatNative.cjs
Normal file
@@ -0,0 +1,4 @@
|
||||
let t = require('./NapCatNative.node');
|
||||
console.log(t);
|
||||
let r = t.ClearElectronAsNode();
|
||||
console.log(r);
|
BIN
test/NapCatNative.node
Normal file
BIN
test/NapCatNative.node
Normal file
Binary file not shown.
@@ -10,6 +10,7 @@
|
||||
],
|
||||
"skipLibCheck": true,
|
||||
"moduleResolution": "Node",
|
||||
"experimentalDecorators": true,
|
||||
"allowImportingTsExtensions": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"resolveJsonModule": true,
|
||||
|
@@ -7,7 +7,9 @@ import { PluginOption, Plugin } from 'vite';
|
||||
import nodeResolve from '@rollup/plugin-node-resolve';
|
||||
import { builtinModules } from 'module';
|
||||
import fs from 'node:fs';
|
||||
|
||||
import babel from 'vite-plugin-babel';
|
||||
import { version } from 'os';
|
||||
// "@rollup/plugin-babel": "^6.0.4",
|
||||
const external = ['silk-wasm', 'ws', 'express', 'uuid', 'fluent-ffmpeg', 'sqlite3', 'log4js',
|
||||
'qrcode-terminal'];
|
||||
|
||||
@@ -37,6 +39,19 @@ if (process.env.NAPCAT_BUILDSYS == 'linux') {
|
||||
|
||||
const baseConfigPlugin: PluginOption[] = [
|
||||
// PreprocessorDirectives(),
|
||||
babel({
|
||||
filter: /.*\.(ts|js)$/,
|
||||
babelConfig: {
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
presets: ["@babel/preset-typescript"],
|
||||
plugins: [
|
||||
//'2018-09', decoratorsBeforeExport: true
|
||||
['@babel/plugin-proposal-decorators', { legacy: true }],
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
],
|
||||
},
|
||||
}),
|
||||
cp({
|
||||
targets: [
|
||||
// ...external.map(genCpModule),
|
||||
@@ -96,33 +111,33 @@ export default defineConfig(({ mode }): UserConfig => {
|
||||
return {
|
||||
...baseConfig(mode),
|
||||
plugins: [
|
||||
...baseConfigPlugin,
|
||||
{
|
||||
...(obfuscator({
|
||||
options: {
|
||||
compact: true,
|
||||
controlFlowFlattening: true,
|
||||
controlFlowFlatteningThreshold: 0.75,
|
||||
deadCodeInjection: true,
|
||||
deadCodeInjectionThreshold: 0.4,
|
||||
debugProtection: false,
|
||||
disableConsoleOutput: false,
|
||||
identifierNamesGenerator: 'hexadecimal',
|
||||
log: false,
|
||||
renameGlobals: false,
|
||||
rotateStringArray: true,
|
||||
selfDefending: true,
|
||||
stringArray: true,
|
||||
stringArrayEncoding: ['base64'],
|
||||
stringArrayThreshold: 0.75,
|
||||
transformObjectKeys: true,
|
||||
unicodeEscapeSequence: false
|
||||
},
|
||||
include: ['src/**/*.js', 'src/**/*.ts'],
|
||||
}) as Plugin),
|
||||
enforce: 'post',
|
||||
apply: 'build',
|
||||
},
|
||||
...baseConfigPlugin,
|
||||
// {
|
||||
// ...(obfuscator({
|
||||
// options: {
|
||||
// compact: true,
|
||||
// controlFlowFlattening: true,
|
||||
// controlFlowFlatteningThreshold: 0.75,
|
||||
// deadCodeInjection: true,
|
||||
// deadCodeInjectionThreshold: 0.4,
|
||||
// debugProtection: false,
|
||||
// disableConsoleOutput: false,
|
||||
// identifierNamesGenerator: 'hexadecimal',
|
||||
// log: false,
|
||||
// renameGlobals: false,
|
||||
// rotateStringArray: true,
|
||||
// selfDefending: true,
|
||||
// stringArray: true,
|
||||
// stringArrayEncoding: ['base64'],
|
||||
// stringArrayThreshold: 0.75,
|
||||
// transformObjectKeys: true,
|
||||
// unicodeEscapeSequence: false
|
||||
// },
|
||||
// include: ['src/**/*.js', 'src/**/*.ts'],
|
||||
// }) as Plugin),
|
||||
// enforce: 'post',
|
||||
// apply: 'build',
|
||||
// },
|
||||
]
|
||||
};
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user