mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -1,30 +1,37 @@
|
||||
import { exit } from "process";
|
||||
import { resolve } from "path";
|
||||
import { resolve } from "node:path";
|
||||
import { spawn } from "node:child_process";
|
||||
import { sleep } from "./helper";
|
||||
|
||||
import { pid, ppid, exit } from 'node:process';
|
||||
export async function rebootWithQuickLogin(uin: string) {
|
||||
let batScript = resolve(__dirname, './napcat.bat');
|
||||
let batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
let bashScript = resolve(__dirname, './napcat.sh');
|
||||
if (process.platform === 'win32') {
|
||||
let subProcess = spawn(`start ${batUtf8Script} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore'});
|
||||
const subProcess = spawn(`start ${batUtf8Script} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
subProcess.unref();
|
||||
// 子父进程一起送走 有点效果
|
||||
spawn('cmd /c taskkill /t /f /pid ' + pid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
spawn('cmd /c taskkill /t /f /pid ' + ppid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
} else if (process.platform === 'linux') {
|
||||
let subProcess = spawn(`${bashScript} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
const subProcess = spawn(`${bashScript} -q ${uin}`, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
//还没兼容
|
||||
subProcess.unref();
|
||||
exit(0);
|
||||
}
|
||||
exit(0);
|
||||
//exit(0);
|
||||
}
|
||||
export async function rebootWithNormolLogin() {
|
||||
let batScript = resolve(__dirname, './napcat.bat');
|
||||
let batUtf8Script = resolve(__dirname, './napcat-utf8.bat');
|
||||
let bashScript = resolve(__dirname, './napcat.sh');
|
||||
if (process.platform === 'win32') {
|
||||
spawn(`start ${batUtf8Script}`, { detached: true, windowsHide: false, env: process.env, shell: true });
|
||||
const subProcess = spawn(`start ${batUtf8Script} `, { detached: true, windowsHide: false, env: process.env, shell: true, stdio: 'ignore' });
|
||||
subProcess.unref();
|
||||
// 子父进程一起送走 有点效果
|
||||
spawn('cmd /c taskkill /t /f /pid ' + pid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
spawn('cmd /c taskkill /t /f /pid ' + ppid.toString(), { detached: true, shell: true, stdio: 'ignore' });
|
||||
} else if (process.platform === 'linux') {
|
||||
spawn(`${bashScript}`, { detached: true, windowsHide: false, env: process.env, shell: true });
|
||||
const subProcess = spawn(`${bashScript}`, { detached: true, windowsHide: false, env: process.env, shell: true });
|
||||
subProcess.unref();
|
||||
exit(0);
|
||||
}
|
||||
await sleep(500);
|
||||
exit(0);
|
||||
}
|
@@ -1,57 +1,83 @@
|
||||
const https = require('node:https');
|
||||
export async function HttpGetCookies(url: string): Promise<Map<string, string>> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const result: Map<string, string> = new Map<string, string>();
|
||||
const req = https.get(url, (res: any) => {
|
||||
res.on('data', (data: any) => {
|
||||
});
|
||||
res.on('end', () => {
|
||||
try {
|
||||
const responseCookies = res.headers['set-cookie'];
|
||||
for (const line of responseCookies) {
|
||||
const parts = line.split(';');
|
||||
const [key, value] = parts[0].split('=');
|
||||
result.set(key, value);
|
||||
}
|
||||
} catch (e) {
|
||||
import https from 'node:https';
|
||||
import http from 'node:http';
|
||||
|
||||
export class RequestUtil {
|
||||
// 适用于获取服务器下发cookies时获取,仅GET
|
||||
static async HttpsGetCookies(url: string): Promise<Map<string, string>> {
|
||||
return new Promise<Map<string, string>>((resolve, reject) => {
|
||||
const protocol = url.startsWith('https://') ? https : http;
|
||||
protocol.get(url, (res) => {
|
||||
const cookiesHeader = res.headers['set-cookie'];
|
||||
if (!cookiesHeader) {
|
||||
resolve(new Map<string, string>());
|
||||
} else {
|
||||
const cookiesMap = new Map<string, string>();
|
||||
cookiesHeader.forEach((cookieStr) => {
|
||||
cookieStr.split(';').forEach((cookiePart) => {
|
||||
const trimmedPart = cookiePart.trim();
|
||||
if (trimmedPart.includes('=')) {
|
||||
const [key, value] = trimmedPart.split('=').map(part => part.trim());
|
||||
cookiesMap.set(key, decodeURIComponent(value)); // 解码cookie值
|
||||
}
|
||||
});
|
||||
});
|
||||
resolve(cookiesMap);
|
||||
}
|
||||
resolve(result);
|
||||
|
||||
}).on('error', (error) => {
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
req.on('error', (error: any) => {
|
||||
resolve(result);
|
||||
// console.log(error)
|
||||
});
|
||||
req.end();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
export async function HttpPostCookies(url: string): Promise<Map<string, string>> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const result: Map<string, string> = new Map<string, string>();
|
||||
const req = https.get(url, (res: any) => {
|
||||
res.on('data', (data: any) => {
|
||||
});
|
||||
res.on('end', () => {
|
||||
try {
|
||||
const responseCookies = res.headers['set-cookie'];
|
||||
for (const line of responseCookies) {
|
||||
const parts = line.split(';');
|
||||
const [key, value] = parts[0].split('=');
|
||||
result.set(key, value);
|
||||
// 请求和回复都是JSON data传原始内容 自动编码json
|
||||
static async HttpGetJson<T>(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}, isJsonRet: boolean = true): Promise<T> {
|
||||
let option = new URL(url);
|
||||
const protocol = url.startsWith('https://') ? https : http;
|
||||
const options = {
|
||||
hostname: option.hostname,
|
||||
port: option.port,
|
||||
path: option.href,
|
||||
method: method,
|
||||
headers: headers
|
||||
};
|
||||
return new Promise((resolve, reject) => {
|
||||
const req = protocol.request(options, (res: any) => {
|
||||
let responseBody = '';
|
||||
res.on('data', (chunk: string | Buffer) => {
|
||||
responseBody += chunk.toString();
|
||||
});
|
||||
|
||||
res.on('end', () => {
|
||||
try {
|
||||
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
||||
if (isJsonRet) {
|
||||
const responseJson = JSON.parse(responseBody);
|
||||
resolve(responseJson as T);
|
||||
} else {
|
||||
resolve(responseBody as T);
|
||||
}
|
||||
} else {
|
||||
reject(new Error(`Unexpected status code: ${res.statusCode}`));
|
||||
}
|
||||
} catch (parseError) {
|
||||
reject(parseError);
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
resolve(result);
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
req.on('error', (error: any) => {
|
||||
resolve(result);
|
||||
// console.log(error)
|
||||
});
|
||||
req.end();
|
||||
});
|
||||
|
||||
req.on('error', (error: any) => {
|
||||
reject(error);
|
||||
});
|
||||
if (method === 'POST' || method === 'PUT' || method === 'PATCH') {
|
||||
req.write(JSON.stringify(data));
|
||||
}
|
||||
req.end();
|
||||
});
|
||||
}
|
||||
|
||||
// 请求返回都是原始内容
|
||||
static async HttpGetText(url: string, method: string = 'GET', data?: any, headers: Record<string, string> = {}) {
|
||||
//console.log(url);
|
||||
return this.HttpGetJson<string>(url, method, data, headers, false);
|
||||
}
|
||||
}
|
@@ -1,44 +1,29 @@
|
||||
import { request } from 'node:https';
|
||||
export function postLoginStatus() {
|
||||
const req = request(
|
||||
{
|
||||
hostname: 'napcat.wumiao.wang',
|
||||
path: '/api/send',
|
||||
port: 443,
|
||||
method: 'POST',
|
||||
headers: {
|
||||
import { RequestUtil } from './request';
|
||||
|
||||
export async function postLoginStatus() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const StatesData = {
|
||||
type: 'event',
|
||||
payload: {
|
||||
'website': '952bf82f-8f49-4456-aec5-e17db5f27f7e',
|
||||
'hostname': 'napcat.demo.cn',
|
||||
'screen': '1920x1080',
|
||||
'language': 'zh-CN',
|
||||
'title': 'OneBot.Login',
|
||||
'url': '/login/onebot11/1.3.5',
|
||||
'referrer': 'https://napcat.demo.cn/login?type=onebot11'
|
||||
}
|
||||
};
|
||||
try {
|
||||
await RequestUtil.HttpGetText('https://napcat.wumiao.wang/api/send',
|
||||
'POST',
|
||||
JSON.stringify(StatesData), {
|
||||
'Content-Type': 'application/json',
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0'
|
||||
}
|
||||
},
|
||||
(res) => {
|
||||
//let data = '';
|
||||
res.on('data', (chunk) => {
|
||||
//data += chunk;
|
||||
});
|
||||
res.on('error', (err) => {
|
||||
});
|
||||
res.on('end', () => {
|
||||
//console.log('Response:', data);
|
||||
});
|
||||
resolve(true);
|
||||
} catch (e: any) {
|
||||
reject(e);
|
||||
}
|
||||
);
|
||||
req.on('error', (e) => {
|
||||
// console.error('Request error:', e);
|
||||
});
|
||||
const StatesData = {
|
||||
type: 'event',
|
||||
payload: {
|
||||
'website': '952bf82f-8f49-4456-aec5-e17db5f27f7e',
|
||||
'hostname': 'napcat.demo.cn',
|
||||
'screen': '1920x1080',
|
||||
'language': 'zh-CN',
|
||||
'title': 'OneBot.Login',
|
||||
'url': '/login/onebot11/1.3.2',
|
||||
'referrer': 'https://napcat.demo.cn/login?type=onebot11'
|
||||
}
|
||||
};
|
||||
req.write(JSON.stringify(StatesData));
|
||||
|
||||
req.end();
|
||||
}
|
||||
|
@@ -1,40 +1,21 @@
|
||||
import { get as httpsGet } from 'node:https';
|
||||
function requestMirror(url: string): Promise<string | undefined> {
|
||||
return new Promise((resolve, reject) => {
|
||||
httpsGet(url, (response) => {
|
||||
let data = '';
|
||||
response.on('data', (chunk) => {
|
||||
data += chunk;
|
||||
});
|
||||
|
||||
response.on('end', () => {
|
||||
try {
|
||||
const parsedData = JSON.parse(data);
|
||||
const version = parsedData.version;
|
||||
resolve(version);
|
||||
} catch (error) {
|
||||
// 解析失败或无法访问域名,跳过
|
||||
resolve(undefined);
|
||||
}
|
||||
});
|
||||
}).on('error', (error) => {
|
||||
// 请求失败,跳过
|
||||
resolve(undefined);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
import { logDebug } from './log';
|
||||
import { RequestUtil } from './request';
|
||||
export async function checkVersion(): Promise<string> {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const MirrorList =
|
||||
[
|
||||
'https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://cdn.jsdelivr.us/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json'
|
||||
];
|
||||
[
|
||||
'https://fastly.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://gcore.jsdelivr.net/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://cdn.jsdelivr.us/gh/NapNeko/NapCatQQ@main/package.json',
|
||||
'https://jsd.cdn.zzko.cn/gh/NapNeko/NapCatQQ@main/package.json'
|
||||
];
|
||||
let version = undefined;
|
||||
for (const url of MirrorList) {
|
||||
const version = await requestMirror(url);
|
||||
try {
|
||||
version = (await RequestUtil.HttpGetJson<{ version: string }>(url)).version;
|
||||
} catch (e) {
|
||||
logDebug(e);
|
||||
}
|
||||
if (version) {
|
||||
resolve(version);
|
||||
}
|
||||
|
2
src/core
2
src/core
Submodule src/core updated: ca47eb4754...ed10e0fc9f
@@ -1 +1 @@
|
||||
var _0x4a2dd5=_0x12f4;function _0x12f4(_0x4f7dce,_0x480131){var _0x547d83=_0x547d();return _0x12f4=function(_0x12f42f,_0x334fdd){_0x12f42f=_0x12f42f-0x1cb;var _0x3310f6=_0x547d83[_0x12f42f];return _0x3310f6;},_0x12f4(_0x4f7dce,_0x480131);}(function(_0x9627ef,_0x2bdc4c){var _0x3f5c0b=_0x12f4,_0x5bc9a4=_0x9627ef();while(!![]){try{var _0x556f14=parseInt(_0x3f5c0b(0x1d4))/0x1*(-parseInt(_0x3f5c0b(0x1d3))/0x2)+parseInt(_0x3f5c0b(0x1d2))/0x3*(parseInt(_0x3f5c0b(0x1d7))/0x4)+-parseInt(_0x3f5c0b(0x1cc))/0x5*(-parseInt(_0x3f5c0b(0x1d1))/0x6)+parseInt(_0x3f5c0b(0x1d0))/0x7+-parseInt(_0x3f5c0b(0x1d5))/0x8*(parseInt(_0x3f5c0b(0x1cd))/0x9)+-parseInt(_0x3f5c0b(0x1d9))/0xa*(-parseInt(_0x3f5c0b(0x1ce))/0xb)+-parseInt(_0x3f5c0b(0x1d8))/0xc;if(_0x556f14===_0x2bdc4c)break;else _0x5bc9a4['push'](_0x5bc9a4['shift']());}catch(_0x559019){_0x5bc9a4['push'](_0x5bc9a4['shift']());}}}(_0x547d,0x4b59c));export class DependsAdapter{[_0x4a2dd5(0x1d6)](_0x2e3fe8,_0x39c8a2){}[_0x4a2dd5(0x1cf)](_0x34d16e){}[_0x4a2dd5(0x1cb)](_0x104a00){}}function _0x547d(){var _0x4e70b8=['15198348kbkZdd','4618720hiFSGe','getGroupCode','10RIIEqo','963hJDrHe','11cuwaTr','onMSFSsoError','1973643mhShYL','1295832JrGnte','67674WuMgex','20992AJscdr','16mTDfYR','3120SgHmrF','onMSFStatusChange','108mHyias'];_0x547d=function(){return _0x4e70b8;};return _0x547d();}
|
||||
var _0x35540b=_0x1a1f;function _0x1a1f(_0x36cb84,_0x29c1ec){var _0x1644c9=_0x1644();return _0x1a1f=function(_0x1a1ffb,_0x23ba40){_0x1a1ffb=_0x1a1ffb-0xfc;var _0xec1cdc=_0x1644c9[_0x1a1ffb];return _0xec1cdc;},_0x1a1f(_0x36cb84,_0x29c1ec);}function _0x1644(){var _0x567c65=['407745rGDJKM','6678690efuqdS','4IsrSPl','10oVqkyy','72ZCiGcG','20981741mrxJbu','52uMXnQe','5498325iFsfKS','195411GtoBFY','1264235tkrdhD','onMSFStatusChange','14290urQsPS'];_0x1644=function(){return _0x567c65;};return _0x1644();}(function(_0x51eb69,_0x9ce55d){var _0x73abf6=_0x1a1f,_0x2c69bc=_0x51eb69();while(!![]){try{var _0x5efe28=-parseInt(_0x73abf6(0x105))/0x1*(parseInt(_0x73abf6(0xfe))/0x2)+-parseInt(_0x73abf6(0x107))/0x3+parseInt(_0x73abf6(0x101))/0x4*(-parseInt(_0x73abf6(0x106))/0x5)+-parseInt(_0x73abf6(0x100))/0x6+-parseInt(_0x73abf6(0xfc))/0x7*(-parseInt(_0x73abf6(0x103))/0x8)+-parseInt(_0x73abf6(0xff))/0x9+parseInt(_0x73abf6(0x102))/0xa*(parseInt(_0x73abf6(0x104))/0xb);if(_0x5efe28===_0x9ce55d)break;else _0x2c69bc['push'](_0x2c69bc['shift']());}catch(_0x59cb91){_0x2c69bc['push'](_0x2c69bc['shift']());}}}(_0x1644,0xcc9e2));export class DependsAdapter{[_0x35540b(0xfd)](_0x5544dc,_0x42e602){}['onMSFSsoError'](_0x1aa939){}['getGroupCode'](_0x3a9fa1){}}
|
@@ -1 +1 @@
|
||||
var _0x407b46=_0x1833;(function(_0x516f63,_0x1b3b0a){var _0x381bfc=_0x1833,_0x409fe0=_0x516f63();while(!![]){try{var _0x2be90d=-parseInt(_0x381bfc(0x100))/0x1+parseInt(_0x381bfc(0x10a))/0x2+parseInt(_0x381bfc(0x101))/0x3+-parseInt(_0x381bfc(0x109))/0x4*(parseInt(_0x381bfc(0x107))/0x5)+-parseInt(_0x381bfc(0x10b))/0x6*(-parseInt(_0x381bfc(0x106))/0x7)+-parseInt(_0x381bfc(0x102))/0x8*(-parseInt(_0x381bfc(0x104))/0x9)+parseInt(_0x381bfc(0x108))/0xa;if(_0x2be90d===_0x1b3b0a)break;else _0x409fe0['push'](_0x409fe0['shift']());}catch(_0x183fce){_0x409fe0['push'](_0x409fe0['shift']());}}}(_0x178b,0xc80ab));function _0x1833(_0x5c0970,_0xcbb3e5){var _0x178b71=_0x178b();return _0x1833=function(_0x1833c5,_0x16a140){_0x1833c5=_0x1833c5-0x100;var _0x5532ca=_0x178b71[_0x1833c5];return _0x5532ca;},_0x1833(_0x5c0970,_0xcbb3e5);}function _0x178b(){var _0x41b0ba=['2419212dHjiqm','10220fMGzmm','5351982NsIIKA','616177BJJVgt','3230223FFvyuy','16ugrmhE','dispatchRequest','420291ULsxBx','dispatchCall','7NlPUBY','10csQijM','5779080KhWrhV'];_0x178b=function(){return _0x41b0ba;};return _0x178b();}export class DispatcherAdapter{[_0x407b46(0x103)](_0x4c3547){}[_0x407b46(0x105)](_0x3b0236){}['dispatchCallWithJson'](_0x52049a){}}
|
||||
var _0xd6d85d=_0x23ff;(function(_0x357889,_0xd54c17){var _0x3afe44=_0x23ff,_0x3c5e27=_0x357889();while(!![]){try{var _0x10c646=parseInt(_0x3afe44(0x127))/0x1*(parseInt(_0x3afe44(0x12b))/0x2)+-parseInt(_0x3afe44(0x124))/0x3*(parseInt(_0x3afe44(0x12e))/0x4)+-parseInt(_0x3afe44(0x123))/0x5+parseInt(_0x3afe44(0x12c))/0x6+parseInt(_0x3afe44(0x122))/0x7*(parseInt(_0x3afe44(0x129))/0x8)+-parseInt(_0x3afe44(0x128))/0x9+parseInt(_0x3afe44(0x12a))/0xa*(parseInt(_0x3afe44(0x12f))/0xb);if(_0x10c646===_0xd54c17)break;else _0x3c5e27['push'](_0x3c5e27['shift']());}catch(_0xc68fab){_0x3c5e27['push'](_0x3c5e27['shift']());}}}(_0x1d77,0x4389c));export class DispatcherAdapter{[_0xd6d85d(0x126)](_0x2b8bf5){}[_0xd6d85d(0x125)](_0x34725e){}[_0xd6d85d(0x12d)](_0x50e41e){}}function _0x23ff(_0x101031,_0x30715c){var _0x1d7718=_0x1d77();return _0x23ff=function(_0x23ffdd,_0x4767bf){_0x23ffdd=_0x23ffdd-0x122;var _0x5745ce=_0x1d7718[_0x23ffdd];return _0x5745ce;},_0x23ff(_0x101031,_0x30715c);}function _0x1d77(){var _0x205dfa=['872svQUDq','25350rciidS','588vIiUzX','2139090NgHiMx','dispatchCallWithJson','4mWbOGo','3421IsoXEm','2723qCyJeb','1628610JDVPSl','1529301jZHrEO','dispatchCall','dispatchRequest','479SZByIA','1944018KXPsHI'];_0x1d77=function(){return _0x205dfa;};return _0x1d77();}
|
@@ -1 +1 @@
|
||||
var _0xfcd9c0=_0x55ff;(function(_0x4fa3a3,_0x26d853){var _0x246b07=_0x55ff,_0x1637cf=_0x4fa3a3();while(!![]){try{var _0x2c5d32=-parseInt(_0x246b07(0xd1))/0x1*(parseInt(_0x246b07(0xc4))/0x2)+parseInt(_0x246b07(0xc6))/0x3*(parseInt(_0x246b07(0xd0))/0x4)+-parseInt(_0x246b07(0xce))/0x5*(-parseInt(_0x246b07(0xcb))/0x6)+-parseInt(_0x246b07(0xd2))/0x7*(-parseInt(_0x246b07(0xd3))/0x8)+-parseInt(_0x246b07(0xcf))/0x9+parseInt(_0x246b07(0xc9))/0xa+parseInt(_0x246b07(0xcd))/0xb*(-parseInt(_0x246b07(0xc5))/0xc);if(_0x2c5d32===_0x26d853)break;else _0x1637cf['push'](_0x1637cf['shift']());}catch(_0x23e1d2){_0x1637cf['push'](_0x1637cf['shift']());}}}(_0x2d86,0xab51c));function _0x2d86(){var _0xfb555e=['onInstallFinished','76350KYwdri','getAppSetting','3747271gJKCYE','365ScOdzT','3235986YqSKlS','4703528ovkWAy','11wVzoHr','5782bYsaKI','4432UYllEK','onGetOfflineMsg','onShowErrUITips','137686eYpvEa','48LqOcgW','3EsWAlU','onLog','onGetSrvCalTime','6187840yCjsae'];_0x2d86=function(){return _0xfb555e;};return _0x2d86();}function _0x55ff(_0x21415e,_0x43e0b1){var _0x2d8653=_0x2d86();return _0x55ff=function(_0x55ff6e,_0x376a11){_0x55ff6e=_0x55ff6e-0xc4;var _0x4f9ca5=_0x2d8653[_0x55ff6e];return _0x4f9ca5;},_0x55ff(_0x21415e,_0x43e0b1);}export class GlobalAdapter{[_0xfcd9c0(0xc7)](..._0x36c923){}[_0xfcd9c0(0xc8)](..._0xcf3bb8){}[_0xfcd9c0(0xd5)](..._0x36f13f){}['fixPicImgType'](..._0xfbf752){}[_0xfcd9c0(0xcc)](..._0x1b9ed1){}[_0xfcd9c0(0xca)](..._0x3b5364){}['onUpdateGeneralFlag'](..._0x3a52ef){}[_0xfcd9c0(0xd4)](..._0x3634cf){}}
|
||||
function _0x1cb1(_0x34103d,_0x13dfdf){var _0x5be4f0=_0x5be4();return _0x1cb1=function(_0x1cb1e0,_0x50d9ee){_0x1cb1e0=_0x1cb1e0-0x174;var _0x277c25=_0x5be4f0[_0x1cb1e0];return _0x277c25;},_0x1cb1(_0x34103d,_0x13dfdf);}function _0x5be4(){var _0x5d509a=['9jTBTvV','3505870jiAlOg','4589790uFcoQE','5237136ejGKom','onInstallFinished','onShowErrUITips','307348kSzrkM','318012mEmOaS','3OnepSQ','2053660tGZyUK','7aVFHxw','getAppSetting','1503132DwEpJY','fixPicImgType','onGetOfflineMsg'];_0x5be4=function(){return _0x5d509a;};return _0x5be4();}var _0x4940e8=_0x1cb1;(function(_0xc0e070,_0x1b6e8b){var _0x43f664=_0x1cb1,_0x19c3a5=_0xc0e070();while(!![]){try{var _0x7c4c9c=-parseInt(_0x43f664(0x178))/0x1*(-parseInt(_0x43f664(0x176))/0x2)+-parseInt(_0x43f664(0x17c))/0x3+-parseInt(_0x43f664(0x177))/0x4+parseInt(_0x43f664(0x179))/0x5+parseInt(_0x43f664(0x181))/0x6*(-parseInt(_0x43f664(0x17a))/0x7)+parseInt(_0x43f664(0x182))/0x8+parseInt(_0x43f664(0x17f))/0x9*(parseInt(_0x43f664(0x180))/0xa);if(_0x7c4c9c===_0x1b6e8b)break;else _0x19c3a5['push'](_0x19c3a5['shift']());}catch(_0x43b591){_0x19c3a5['push'](_0x19c3a5['shift']());}}}(_0x5be4,0x81c0f));export class GlobalAdapter{['onLog'](..._0x5785ba){}['onGetSrvCalTime'](..._0x2f5395){}[_0x4940e8(0x175)](..._0x2fa560){}[_0x4940e8(0x17d)](..._0x3c9fe0){}[_0x4940e8(0x17b)](..._0x120d59){}[_0x4940e8(0x174)](..._0x49a899){}['onUpdateGeneralFlag'](..._0x4dcbdf){}[_0x4940e8(0x17e)](..._0x165313){}}
|
@@ -1 +1 @@
|
||||
function _0x8bc2(){var _0x53c92a=['3186430WGLUJl','18VlHADW','771252uuZVeE','15389100uoHgNn','2902053QrIwPp','4089380CmuSYG','21424QKMQuj','8vJYlYG','2800602WzZXQp'];_0x8bc2=function(){return _0x53c92a;};return _0x8bc2();}(function(_0x131c04,_0x20ec2c){var _0x2d59c5=_0x2e3b,_0x37fcfd=_0x131c04();while(!![]){try{var _0xc05e61=parseInt(_0x2d59c5(0x179))/0x1*(parseInt(_0x2d59c5(0x174))/0x2)+parseInt(_0x2d59c5(0x175))/0x3+-parseInt(_0x2d59c5(0x178))/0x4+-parseInt(_0x2d59c5(0x17c))/0x5+parseInt(_0x2d59c5(0x17b))/0x6+-parseInt(_0x2d59c5(0x177))/0x7*(parseInt(_0x2d59c5(0x17a))/0x8)+parseInt(_0x2d59c5(0x176))/0x9;if(_0xc05e61===_0x20ec2c)break;else _0x37fcfd['push'](_0x37fcfd['shift']());}catch(_0x1ccbe8){_0x37fcfd['push'](_0x37fcfd['shift']());}}}(_0x8bc2,0x86da5));export*from'./NodeIDependsAdapter';function _0x2e3b(_0x20303a,_0x1c8b13){var _0x8bc2b0=_0x8bc2();return _0x2e3b=function(_0x2e3b91,_0x4a970d){_0x2e3b91=_0x2e3b91-0x174;var _0x44181a=_0x8bc2b0[_0x2e3b91];return _0x44181a;},_0x2e3b(_0x20303a,_0x1c8b13);}export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
||||
function _0x46cb(){var _0x185c30=['1239714QkKWTX','3260072NajbLR','52sVkZql','2FnoNQt','1903650WzwdNg','7fHSozJ','4432041MzBAuz','1012056EawUwU','25710xlaZGR','82777bbHfgF'];_0x46cb=function(){return _0x185c30;};return _0x46cb();}function _0x161f(_0x4e5bfb,_0x58c76b){var _0x46cbff=_0x46cb();return _0x161f=function(_0x161f12,_0x4a0f6e){_0x161f12=_0x161f12-0x6a;var _0xf57fb5=_0x46cbff[_0x161f12];return _0xf57fb5;},_0x161f(_0x4e5bfb,_0x58c76b);}(function(_0x1ee3dc,_0x3e4cba){var _0x2841cd=_0x161f,_0x4aeda5=_0x1ee3dc();while(!![]){try{var _0x470817=parseInt(_0x2841cd(0x70))/0x1*(-parseInt(_0x2841cd(0x6a))/0x2)+-parseInt(_0x2841cd(0x71))/0x3+parseInt(_0x2841cd(0x73))/0x4*(-parseInt(_0x2841cd(0x6f))/0x5)+parseInt(_0x2841cd(0x6e))/0x6+parseInt(_0x2841cd(0x6c))/0x7*(parseInt(_0x2841cd(0x72))/0x8)+parseInt(_0x2841cd(0x6d))/0x9+-parseInt(_0x2841cd(0x6b))/0xa;if(_0x470817===_0x3e4cba)break;else _0x4aeda5['push'](_0x4aeda5['shift']());}catch(_0x35fc3a){_0x4aeda5['push'](_0x4aeda5['shift']());}}}(_0x46cb,0x4d010));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0xab17(_0x2212de,_0x173b19){const _0x229d70=_0x229d();return _0xab17=function(_0xab172a,_0x35cc2f){_0xab172a=_0xab172a-0x66;let _0x24e0fb=_0x229d70[_0xab172a];return _0x24e0fb;},_0xab17(_0x2212de,_0x173b19);}const _0x168a9c=_0xab17;(function(_0x598df1,_0x464238){const _0x50d53b=_0xab17,_0x141802=_0x598df1();while(!![]){try{const _0x4a5cd6=parseInt(_0x50d53b(0x67))/0x1+parseInt(_0x50d53b(0x80))/0x2+-parseInt(_0x50d53b(0x75))/0x3*(parseInt(_0x50d53b(0x85))/0x4)+parseInt(_0x50d53b(0x81))/0x5*(-parseInt(_0x50d53b(0x76))/0x6)+parseInt(_0x50d53b(0x78))/0x7*(parseInt(_0x50d53b(0x6a))/0x8)+-parseInt(_0x50d53b(0x86))/0x9*(parseInt(_0x50d53b(0x88))/0xa)+-parseInt(_0x50d53b(0x84))/0xb*(-parseInt(_0x50d53b(0x66))/0xc);if(_0x4a5cd6===_0x464238)break;else _0x141802['push'](_0x141802['shift']());}catch(_0x2acd54){_0x141802['push'](_0x141802['shift']());}}}(_0x229d,0xcbab6));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x229d(){const _0x337268=['18TgiXAM','1245558eXHaRH','CMVhG','315IGwpvb','handleFriendRequest','then','mAGsp','session','getBuddyService','getBuddyList','onLoginSuccess','1127390loNPqz','35YBNgGr','qXarM','set','1441pczlVr','260516hmyMhS','153kuhDLH','onBuddyListChange','671430hjznuo','approvalFriendRequest','219588QXVdRY','574457JcxNqC','获取好友列表完成','XRCQA','50536qSAcMV','push','getFriends','获取好友列表超时','buddyList','tqFIc','reqTime','开始获取好友列表','uid','delete','addListener'];_0x229d=function(){return _0x337268;};return _0x229d();}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x168a9c(0x87)]=_0x33462a=>{const _0x2ee1d3=_0x168a9c,_0x20fe3c={'mOMAT':function(_0x418ef9,_0x37552d){return _0x418ef9(_0x37552d);}};for(const [_0x1143bf,_0x37b48f]of buddyChangeTasks){_0x20fe3c['mOMAT'](_0x37b48f,_0x33462a),buddyChangeTasks[_0x2ee1d3(0x73)](_0x1143bf);}},setTimeout(()=>{const _0x548ece=_0x168a9c;napCatCore[_0x548ece(0x7f)](()=>{const _0x240073=_0x548ece;napCatCore[_0x240073(0x74)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x168a9c(0x6c)](_0x2c4aac=![]){const _0x3a804c=_0x168a9c,_0x2feb23={'qXarM':function(_0x4f6251,_0x3ff1fa){return _0x4f6251(_0x3ff1fa);},'mAGsp':_0x3a804c(0x6d),'XRCQA':function(_0x315e01,_0x38f88d,_0x291d2c){return _0x315e01(_0x38f88d,_0x291d2c);},'CMVhG':function(_0xf40c1e){return _0xf40c1e();}};return new Promise((_0x243638,_0x1a63ab)=>{const _0x36bd1b=_0x3a804c,_0x5c8541={'tqFIc':function(_0x397bdf,_0xa9faf4,_0x1f6a10){return _0x397bdf(_0xa9faf4,_0x1f6a10);}};let _0x3aebd5=![];_0x2feb23[_0x36bd1b(0x69)](setTimeout,()=>{const _0x49b4eb=_0x36bd1b;!_0x3aebd5&&(_0x2feb23[_0x49b4eb(0x82)](logDebug,_0x2feb23[_0x49b4eb(0x7b)]),_0x2feb23[_0x49b4eb(0x82)](_0x1a63ab,_0x49b4eb(0x6d)));},0x1388);const _0x26cb1e=[],_0xdb413=_0x29f352=>{const _0x10ab32=_0x36bd1b;for(const _0x21b16f of _0x29f352){for(const _0x24769a of _0x21b16f[_0x10ab32(0x6e)]){_0x26cb1e[_0x10ab32(0x6b)](_0x24769a),uid2UinMap[_0x24769a[_0x10ab32(0x72)]]=_0x24769a['uin'];}}_0x3aebd5=!![],_0x5c8541[_0x10ab32(0x6f)](logDebug,_0x10ab32(0x68),_0x26cb1e),_0x243638(_0x26cb1e);};buddyChangeTasks[_0x36bd1b(0x83)](_0x2feb23[_0x36bd1b(0x77)](randomUUID),_0xdb413),napCatCore[_0x36bd1b(0x7c)]['getBuddyService']()[_0x36bd1b(0x7e)](_0x2c4aac)[_0x36bd1b(0x7a)](_0x1fc47b=>{const _0x2009ae=_0x36bd1b;_0x2feb23['XRCQA'](logDebug,_0x2009ae(0x71),_0x1fc47b);});});}static async[_0x168a9c(0x79)](_0x1bbb82,_0x178918){const _0x31ca0b=_0x168a9c;napCatCore[_0x31ca0b(0x7c)][_0x31ca0b(0x7d)]()?.[_0x31ca0b(0x89)]({'friendUid':_0x1bbb82['friendUid'],'reqTime':_0x1bbb82[_0x31ca0b(0x70)],'accept':_0x178918});}}
|
||||
const _0x47c820=_0x231c;function _0x370e(){const _0x388a95=['handleFriendRequest','getBuddyList','获取好友列表超时','获取好友列表完成','push','4805EIQCMI','uin','uid','62122JJbOer','41544KqIGZm','set','session','7822664LlMCkp','9010csqOHa','onLoginSuccess','addListener','开始获取好友列表','niJjV','buddyList','JIqOP','QaUXs','HonIN','1617175JonhqE','gWRWI','delete','1884TFLMPj','friendUid','DIdgi','1145591YBfBOp','onBuddyListChange','yuzed','6948888EaRNAB','93sTllyd','BmhMQ','getBuddyService','reqTime','getFriends'];_0x370e=function(){return _0x388a95;};return _0x370e();}function _0x231c(_0x27518c,_0x28ab3b){const _0x370e80=_0x370e();return _0x231c=function(_0x231cd1,_0x1e3d25){_0x231cd1=_0x231cd1-0xdc;let _0x1d8adc=_0x370e80[_0x231cd1];return _0x1d8adc;},_0x231c(_0x27518c,_0x28ab3b);}(function(_0x1b3b3b,_0x38b417){const _0x5950c3=_0x231c,_0x5be665=_0x1b3b3b();while(!![]){try{const _0x37ef65=-parseInt(_0x5950c3(0xee))/0x1+-parseInt(_0x5950c3(0xff))/0x2*(parseInt(_0x5950c3(0xf2))/0x3)+parseInt(_0x5950c3(0xeb))/0x4*(parseInt(_0x5950c3(0xfc))/0x5)+-parseInt(_0x5950c3(0xf1))/0x6+parseInt(_0x5950c3(0xe8))/0x7+-parseInt(_0x5950c3(0xde))/0x8+parseInt(_0x5950c3(0x100))/0x9*(parseInt(_0x5950c3(0xdf))/0xa);if(_0x37ef65===_0x38b417)break;else _0x5be665['push'](_0x5be665['shift']());}catch(_0x43675b){_0x5be665['push'](_0x5be665['shift']());}}}(_0x370e,0x920c1));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x47c820(0xef)]=_0x1a011c=>{const _0x28b3ad=_0x47c820,_0x3490bc={'DIdgi':function(_0x54e842,_0xd42fb0){return _0x54e842(_0xd42fb0);}};for(const [_0x246d2d,_0x49b247]of buddyChangeTasks){_0x3490bc[_0x28b3ad(0xed)](_0x49b247,_0x1a011c),buddyChangeTasks[_0x28b3ad(0xea)](_0x246d2d);}},setTimeout(()=>{const _0x370c74=_0x47c820;napCatCore[_0x370c74(0xe0)](()=>{const _0x41cfce=_0x370c74;napCatCore[_0x41cfce(0xe1)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x47c820(0xf6)](_0x4b8dd4=![]){const _0xceddb=_0x47c820,_0x36ff4f={'yuzed':function(_0x4b7deb,_0x35f2e8){return _0x4b7deb(_0x35f2e8);},'gWRWI':_0xceddb(0xf9),'niJjV':function(_0x25053b,_0x4ffe0c,_0x394a5e){return _0x25053b(_0x4ffe0c,_0x394a5e);},'JIqOP':_0xceddb(0xfa),'BmhMQ':function(_0x1d3946){return _0x1d3946();}};return new Promise((_0x5d43cc,_0x12829f)=>{const _0x4d869b=_0xceddb,_0xa03459={'QaUXs':function(_0x20e8ed,_0x5e4bfc){const _0x1cd043=_0x231c;return _0x36ff4f[_0x1cd043(0xf0)](_0x20e8ed,_0x5e4bfc);},'uMDCm':_0x36ff4f[_0x4d869b(0xe9)],'HonIN':function(_0x2b5fc8,_0x1c82e9,_0x46881c){const _0x5b7882=_0x4d869b;return _0x36ff4f[_0x5b7882(0xe3)](_0x2b5fc8,_0x1c82e9,_0x46881c);},'fKMFP':_0x36ff4f[_0x4d869b(0xe5)],'FenPS':_0x4d869b(0xe2)};let _0x4df0ab=![];setTimeout(()=>{const _0x12475d=_0x4d869b;!_0x4df0ab&&(_0xa03459[_0x12475d(0xe6)](logDebug,_0xa03459['uMDCm']),_0xa03459['QaUXs'](_0x12829f,_0x12475d(0xf9)));},0x1388);const _0x35d8b6=[],_0x2a9f24=_0x406d4a=>{const _0x307e0b=_0x4d869b;for(const _0x302e81 of _0x406d4a){for(const _0x6a6afb of _0x302e81[_0x307e0b(0xe4)]){_0x35d8b6[_0x307e0b(0xfb)](_0x6a6afb),uid2UinMap[_0x6a6afb[_0x307e0b(0xfe)]]=_0x6a6afb[_0x307e0b(0xfd)];}}_0x4df0ab=!![],_0xa03459[_0x307e0b(0xe7)](logDebug,_0xa03459['fKMFP'],_0x35d8b6),_0x5d43cc(_0x35d8b6);};buddyChangeTasks[_0x4d869b(0xdc)](_0x36ff4f[_0x4d869b(0xf3)](randomUUID),_0x2a9f24),napCatCore[_0x4d869b(0xdd)][_0x4d869b(0xf4)]()[_0x4d869b(0xf8)](_0x4b8dd4)['then'](_0x59b0ad=>{const _0x378d4d=_0x4d869b;_0xa03459[_0x378d4d(0xe7)](logDebug,_0xa03459['FenPS'],_0x59b0ad);});});}static async[_0x47c820(0xf7)](_0x38787a,_0x92fc1a){const _0x1d5701=_0x47c820;napCatCore[_0x1d5701(0xdd)]['getBuddyService']()?.['approvalFriendRequest']({'friendUid':_0x38787a[_0x1d5701(0xec)],'reqTime':_0x38787a[_0x1d5701(0xf5)],'accept':_0x92fc1a});}}
|
File diff suppressed because one or more lines are too long
2
src/core.lib/src/apis/index.d.ts
vendored
2
src/core.lib/src/apis/index.d.ts
vendored
@@ -4,3 +4,5 @@ export * from './group';
|
||||
export * from './msg';
|
||||
export * from './user';
|
||||
export * from './webapi';
|
||||
export * from './sign';
|
||||
export * from './system';
|
||||
|
@@ -1 +1 @@
|
||||
function _0x22d0(){var _0x1445b9=['307926vJmoHw','1097362BTGKol','32czznKE','1649109GReZUx','5116712pwRzhs','7569025QAvwsy','8420713scLUeU','7334838jrQYqp','6VcMAjv'];_0x22d0=function(){return _0x1445b9;};return _0x22d0();}(function(_0x43a7a3,_0x3f0ab9){var _0x16ef72=_0x4c75,_0x220955=_0x43a7a3();while(!![]){try{var _0xc92a2d=parseInt(_0x16ef72(0x18c))/0x1+-parseInt(_0x16ef72(0x18a))/0x2*(parseInt(_0x16ef72(0x188))/0x3)+-parseInt(_0x16ef72(0x184))/0x4+parseInt(_0x16ef72(0x185))/0x5+-parseInt(_0x16ef72(0x187))/0x6+parseInt(_0x16ef72(0x186))/0x7+-parseInt(_0x16ef72(0x18b))/0x8*(-parseInt(_0x16ef72(0x189))/0x9);if(_0xc92a2d===_0x3f0ab9)break;else _0x220955['push'](_0x220955['shift']());}catch(_0x34c0f9){_0x220955['push'](_0x220955['shift']());}}}(_0x22d0,0xdca24));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x4c75(_0x33a7cd,_0x559070){var _0x22d0fd=_0x22d0();return _0x4c75=function(_0x4c7513,_0x4ae264){_0x4c7513=_0x4c7513-0x184;var _0x36952c=_0x22d0fd[_0x4c7513];return _0x36952c;},_0x4c75(_0x33a7cd,_0x559070);}export*from'./user';export*from'./webapi';
|
||||
(function(_0x87bee2,_0xbd5344){var _0x5193f8=_0x341e,_0xe90654=_0x87bee2();while(!![]){try{var _0x336e3b=-parseInt(_0x5193f8(0x12e))/0x1*(parseInt(_0x5193f8(0x12c))/0x2)+parseInt(_0x5193f8(0x12b))/0x3+-parseInt(_0x5193f8(0x12f))/0x4+-parseInt(_0x5193f8(0x12a))/0x5+parseInt(_0x5193f8(0x129))/0x6+parseInt(_0x5193f8(0x130))/0x7+parseInt(_0x5193f8(0x12d))/0x8;if(_0x336e3b===_0xbd5344)break;else _0xe90654['push'](_0xe90654['shift']());}catch(_0x27cddc){_0xe90654['push'](_0xe90654['shift']());}}}(_0x2f02,0x795c1));export*from'./file';function _0x341e(_0x4f53cd,_0x13bfd6){var _0x2f0297=_0x2f02();return _0x341e=function(_0x341e38,_0x1a3cac){_0x341e38=_0x341e38-0x129;var _0x584276=_0x2f0297[_0x341e38];return _0x584276;},_0x341e(_0x4f53cd,_0x13bfd6);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x2f02(){var _0x2b8ff5=['1830240RiEELn','3320821RXxRUE','5730558iSxOwh','1752670tGhyFc','720228awXOMZ','1550506zjJrOL','3286912GYZzuL','1MpuRcx'];_0x2f02=function(){return _0x2b8ff5;};return _0x2f02();}export*from'./system';
|
File diff suppressed because one or more lines are too long
5
src/core.lib/src/apis/sign.d.ts
vendored
5
src/core.lib/src/apis/sign.d.ts
vendored
@@ -10,8 +10,3 @@ export interface CustomMusicSignPostData {
|
||||
image?: string;
|
||||
singer?: string;
|
||||
}
|
||||
export declare class MusicSign {
|
||||
private readonly url;
|
||||
constructor(url: string);
|
||||
sign(postData: CustomMusicSignPostData | IdMusicSignPostData): Promise<any>;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
function _0x5a41(_0x246fad,_0x5417e2){var _0x1820ef=_0x1820();return _0x5a41=function(_0x5a41f8,_0x8b9441){_0x5a41f8=_0x5a41f8-0x66;var _0x17ed61=_0x1820ef[_0x5a41f8];return _0x17ed61;},_0x5a41(_0x246fad,_0x5417e2);}var _0xc2f38=_0x5a41;(function(_0x95e857,_0xca6257){var _0x1a2899=_0x5a41,_0x692df5=_0x95e857();while(!![]){try{var _0x10143a=-parseInt(_0x1a2899(0x6e))/0x1+parseInt(_0x1a2899(0x71))/0x2*(parseInt(_0x1a2899(0x6d))/0x3)+-parseInt(_0x1a2899(0x72))/0x4*(-parseInt(_0x1a2899(0x6b))/0x5)+-parseInt(_0x1a2899(0x70))/0x6+-parseInt(_0x1a2899(0x78))/0x7+-parseInt(_0x1a2899(0x73))/0x8*(parseInt(_0x1a2899(0x77))/0x9)+parseInt(_0x1a2899(0x66))/0xa;if(_0x10143a===_0xca6257)break;else _0x692df5['push'](_0x692df5['shift']());}catch(_0xd7ede0){_0x692df5['push'](_0x692df5['shift']());}}}(_0x1820,0x7fc06));function _0x1820(){var _0x48bdaa=['6200551qlArNF','stringify','8101070yEdFfV','lKtzS','rULNN','POST','sTMdt','372095vrUjZN','url','2723289TyFfwc','619508luVjPC','json','1403568RvuGbJ','2flaKBx','40KzHeHv','8raKwmX','sign','statusText','then','1796049eKaknI'];_0x1820=function(){return _0x48bdaa;};return _0x1820();}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0xc2f38(0x6c)];constructor(_0x36d076){var _0xbd21c2=_0xc2f38;this[_0xbd21c2(0x6c)]=_0x36d076;}[_0xc2f38(0x74)](_0x56975a){var _0xff447a={'xvGoU':function(_0x51b1f2,_0x277839){return _0x51b1f2(_0x277839);},'kVaxb':function(_0x39677e,_0x178994){return _0x39677e(_0x178994);},'sTMdt':function(_0x22568c,_0x3c9828,_0x381fd2){return _0x22568c(_0x3c9828,_0x381fd2);},'lKtzS':'application/json'};return new Promise((_0x471528,_0x125214)=>{var _0x562100=_0x5a41,_0x73ea19={'rULNN':function(_0x4ce833,_0x101488){return _0xff447a['kVaxb'](_0x4ce833,_0x101488);},'jDoac':function(_0x120574,_0x2ba0c6,_0x47769f){return _0xff447a['sTMdt'](_0x120574,_0x2ba0c6,_0x47769f);}};_0xff447a[_0x562100(0x6a)](fetch,this['url'],{'method':_0x562100(0x69),'headers':{'Content-Type':_0xff447a[_0x562100(0x67)]},'body':JSON[_0x562100(0x79)](_0x56975a)})[_0x562100(0x76)](_0x2b32a2=>{var _0x27d099=_0x562100;return!_0x2b32a2['ok']&&_0x73ea19[_0x27d099(0x68)](_0x125214,_0x2b32a2[_0x27d099(0x75)]),_0x2b32a2[_0x27d099(0x6f)]();})[_0x562100(0x76)](_0x5a6843=>{_0x73ea19['jDoac'](logDebug,'音乐消息生成成功',_0x5a6843),_0x73ea19['rULNN'](_0x471528,_0x5a6843);})['catch'](_0x490a7b=>{_0xff447a['xvGoU'](_0x125214,_0x490a7b);});});}}
|
||||
export{};
|
3
src/core.lib/src/apis/system.d.ts
vendored
Normal file
3
src/core.lib/src/apis/system.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export declare class NTQQSystemApi {
|
||||
static hasOtherRunningQQProcess(): Promise<boolean>;
|
||||
}
|
1
src/core.lib/src/apis/system.js
Normal file
1
src/core.lib/src/apis/system.js
Normal file
@@ -0,0 +1 @@
|
||||
var _0x43fc7d=_0x52e2;(function(_0x33218d,_0x471b96){var _0x5794f1=_0x52e2,_0x177c76=_0x33218d();while(!![]){try{var _0x289d61=parseInt(_0x5794f1(0x9f))/0x1+-parseInt(_0x5794f1(0x97))/0x2+-parseInt(_0x5794f1(0x9b))/0x3*(-parseInt(_0x5794f1(0x9a))/0x4)+-parseInt(_0x5794f1(0x99))/0x5+-parseInt(_0x5794f1(0x9e))/0x6+-parseInt(_0x5794f1(0xa0))/0x7+parseInt(_0x5794f1(0x9c))/0x8;if(_0x289d61===_0x471b96)break;else _0x177c76['push'](_0x177c76['shift']());}catch(_0xa68d27){_0x177c76['push'](_0x177c76['shift']());}}}(_0x1cb9,0x7b13e));function _0x52e2(_0xf7470,_0x330a5c){var _0x1cb976=_0x1cb9();return _0x52e2=function(_0x52e209,_0x1ae746){_0x52e209=_0x52e209-0x97;var _0x3b6f3f=_0x1cb976[_0x52e209];return _0x3b6f3f;},_0x52e2(_0xf7470,_0x330a5c);}import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x43fc7d(0x98)](){var _0x4aa945=_0x43fc7d;return napCatCore[_0x4aa945(0x9d)][_0x4aa945(0x98)]();}}function _0x1cb9(){var _0x47fcd3=['util','1064946tjVKrZ','530301laVgbp','6867889qwZQSX','748616dYFqGw','hasOtherRunningQQProcess','3052500ihLcjp','575392BnDtHW','9XiiaFH','13485656TYKeaR'];_0x1cb9=function(){return _0x47fcd3;};return _0x1cb9();}
|
4
src/core.lib/src/apis/user.d.ts
vendored
4
src/core.lib/src/apis/user.d.ts
vendored
@@ -14,7 +14,9 @@ export declare class NTQQUserApi {
|
||||
static getSelfInfo(): Promise<void>;
|
||||
static getUserInfo(uid: string): Promise<void>;
|
||||
static getUserDetailInfo(uid: string): Promise<User>;
|
||||
static getPSkey(domainList: string[], cached?: boolean): Promise<any>;
|
||||
static getPSkey(domainList: string[], cached?: boolean): Promise<{
|
||||
[key: string]: string;
|
||||
}>;
|
||||
static getRobotUinRange(): Promise<Array<any>>;
|
||||
static getSkey(cached?: boolean): Promise<string | undefined>;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
11
src/core.lib/src/apis/webapi.d.ts
vendored
11
src/core.lib/src/apis/webapi.d.ts
vendored
@@ -1,3 +1,11 @@
|
||||
export declare enum WebHonorType {
|
||||
ALL = "all",
|
||||
TALKACTIVE = "talkative",
|
||||
PERFROMER = "performer",
|
||||
LEGEND = "legend",
|
||||
STORONGE_NEWBI = "strong_newbie",
|
||||
EMOTION = "emotion"
|
||||
}
|
||||
export interface WebApiGroupMember {
|
||||
uin: number;
|
||||
role: number;
|
||||
@@ -91,8 +99,7 @@ export declare class WebApi {
|
||||
static getGroupMembers(GroupCode: string, cached?: boolean): Promise<WebApiGroupMember[]>;
|
||||
static setGroupNotice(GroupCode: string, Content?: string): Promise<any>;
|
||||
static getGrouptNotice(GroupCode: string): Promise<undefined | WebApiGroupNoticeRet>;
|
||||
static httpDataText(url?: string, method?: string, data?: string, CookiesValue?: string): Promise<string>;
|
||||
static httpDataJson<T>(url?: string, method?: string, data?: string, CookiesValue?: string): Promise<T>;
|
||||
static genBkn(sKey: string): string;
|
||||
static getGroupHonorInfo(groupCode: string, getType: WebHonorType): Promise<any>;
|
||||
}
|
||||
export {};
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
src/core.lib/src/core.d.ts
vendored
6
src/core.lib/src/core.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
/// <reference types="node" />
|
||||
import { NodeIQQNTWrapperSession, NodeQQNTWrapperUtil } from '@/core/wrapper';
|
||||
import { NodeIQQNTWrapperEngine, NodeIQQNTWrapperSession, NodeQQNTWrapperUtil } from '@/core/wrapper';
|
||||
import { QuickLoginResult } from '@/core/services';
|
||||
import { BuddyListener, GroupListener, MsgListener, ProfileListener } from '@/core/listeners';
|
||||
export interface OnLoginSuccess {
|
||||
@@ -8,9 +8,9 @@ export interface OnLoginSuccess {
|
||||
export declare class NapCatCore {
|
||||
readonly session: NodeIQQNTWrapperSession;
|
||||
readonly util: NodeQQNTWrapperUtil;
|
||||
private engine;
|
||||
private loginService;
|
||||
readonly engine: NodeIQQNTWrapperEngine;
|
||||
private readonly loginListener;
|
||||
private loginService;
|
||||
private onLoginSuccessFuncList;
|
||||
private proxyHandler;
|
||||
constructor();
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
const _0x158803=_0x2020;(function(_0x573c97,_0x55d53a){const _0x133834=_0x2020,_0x172728=_0x573c97();while(!![]){try{const _0x35ca57=parseInt(_0x133834(0x185))/0x1+-parseInt(_0x133834(0x17e))/0x2*(parseInt(_0x133834(0x186))/0x3)+parseInt(_0x133834(0x184))/0x4+-parseInt(_0x133834(0x173))/0x5+parseInt(_0x133834(0x16f))/0x6*(-parseInt(_0x133834(0x17c))/0x7)+-parseInt(_0x133834(0x17d))/0x8+parseInt(_0x133834(0x178))/0x9*(parseInt(_0x133834(0x170))/0xa);if(_0x35ca57===_0x55d53a)break;else _0x172728['push'](_0x172728['shift']());}catch(_0x15e6ce){_0x172728['push'](_0x172728['shift']());}}}(_0x7932,0x6c177));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1e3a7e){const _0x21a00e=_0x2020;groups['delete'](_0x1e3a7e),groupMembers[_0x21a00e(0x18a)](_0x1e3a7e);}export const groupMembers=new Map();function _0x2020(_0x163bda,_0x29ea77){const _0x793229=_0x7932();return _0x2020=function(_0x2020b7,_0x4f0555){_0x2020b7=_0x2020b7-0x16f;let _0xd1f694=_0x793229[_0x2020b7];return _0xd1f694;},_0x2020(_0x163bda,_0x29ea77);}export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x158803(0x177)};export async function getFriend(_0x25e2b0){const _0x4282bd=_0x158803,_0x4f1fe4={'LcTqV':function(_0x4872d4,_0x1f5038){return _0x4872d4(_0x1f5038);}};_0x25e2b0=_0x25e2b0[_0x4282bd(0x187)]();if(_0x4f1fe4[_0x4282bd(0x176)](isNumeric,_0x25e2b0)){const _0x38eb03=Array[_0x4282bd(0x183)](friends[_0x4282bd(0x174)]());return _0x38eb03[_0x4282bd(0x175)](_0x1ac20e=>_0x1ac20e['uin']===_0x25e2b0);}else return friends[_0x4282bd(0x181)](_0x25e2b0);}function _0x7932(){const _0x235186=['getGroupMembers','kfCAH','get','NZZPT','from','1755376itPKTH','607822kekxoa','3lkFlff','toString','groupCode','ILVVP','delete','8436ommBln','10ErzDvF','forEach','uin','3261160YhydNT','values','find','LcTqV','NapCat未能正常启动,请检查日志查看错误','10267056ePYQBp','getGroups','length','set','2324ckbTNq','1400248VKmyYD','901304RVjPzs'];_0x7932=function(){return _0x235186;};return _0x7932();}export async function getGroup(_0x5689c8){const _0x2e31bc=_0x158803;let _0x2513e4=groups[_0x2e31bc(0x181)](_0x5689c8['toString']());if(!_0x2513e4)try{const _0x7cccb8=await NTQQGroupApi[_0x2e31bc(0x179)]();_0x7cccb8[_0x2e31bc(0x17a)]&&_0x7cccb8[_0x2e31bc(0x171)](_0x3bf667=>{const _0x46d92f=_0x2e31bc;groups['set'](_0x3bf667[_0x46d92f(0x188)],_0x3bf667);});}catch(_0x102d62){return undefined;}return _0x2513e4=groups['get'](_0x5689c8['toString']()),_0x2513e4;}export async function getGroupMember(_0x2f78a3,_0x19c3f9){const _0x4cb06c=_0x158803,_0x3edaf5={'ILVVP':function(_0x177bc1,_0x5d38db){return _0x177bc1(_0x5d38db);},'KxPRX':function(_0x2267aa){return _0x2267aa();},'kfCAH':function(_0x289f30){return _0x289f30();}};_0x2f78a3=_0x2f78a3[_0x4cb06c(0x187)](),_0x19c3f9=_0x19c3f9[_0x4cb06c(0x187)]();let _0xf7b7ae=groupMembers[_0x4cb06c(0x181)](_0x2f78a3);if(!_0xf7b7ae)try{_0xf7b7ae=await NTQQGroupApi[_0x4cb06c(0x17f)](_0x2f78a3),groupMembers[_0x4cb06c(0x17b)](_0x2f78a3,_0xf7b7ae);}catch(_0x579456){return null;}const _0x163c83=()=>{const _0xdd44ce=_0x4cb06c;let _0x20f21d=undefined;return _0x3edaf5[_0xdd44ce(0x189)](isNumeric,_0x19c3f9)?_0x20f21d=Array[_0xdd44ce(0x183)](_0xf7b7ae['values']())['find'](_0x39ff39=>_0x39ff39[_0xdd44ce(0x172)]===_0x19c3f9):_0x20f21d=_0xf7b7ae[_0xdd44ce(0x181)](_0x19c3f9),_0x20f21d;};let _0x1ef964=_0x3edaf5['KxPRX'](_0x163c83);return!_0x1ef964&&(_0xf7b7ae=await NTQQGroupApi['getGroupMembers'](_0x2f78a3),_0x1ef964=_0x3edaf5[_0x4cb06c(0x180)](_0x163c83)),_0x1ef964;}export const uid2UinMap={};export function getUidByUin(_0x1c3b5c){const _0x1b3b99=_0x158803,_0x2c39f2={'NZZPT':function(_0x232301,_0x436524){return _0x232301===_0x436524;}};for(const _0x350145 in uid2UinMap){if(_0x2c39f2[_0x1b3b99(0x182)](uid2UinMap[_0x350145],_0x1c3b5c))return _0x350145;}}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(_0x232104,_0x1a6026){const _0x3ca3b6=_0x3f8e,_0x33507d=_0x232104();while(!![]){try{const _0x14d362=parseInt(_0x3ca3b6(0xbf))/0x1*(-parseInt(_0x3ca3b6(0xad))/0x2)+-parseInt(_0x3ca3b6(0xb9))/0x3*(parseInt(_0x3ca3b6(0xc0))/0x4)+parseInt(_0x3ca3b6(0xbd))/0x5*(parseInt(_0x3ca3b6(0xc1))/0x6)+parseInt(_0x3ca3b6(0xc5))/0x7*(parseInt(_0x3ca3b6(0xb6))/0x8)+-parseInt(_0x3ca3b6(0xaf))/0x9*(parseInt(_0x3ca3b6(0xaa))/0xa)+parseInt(_0x3ca3b6(0xb5))/0xb+-parseInt(_0x3ca3b6(0xb1))/0xc*(parseInt(_0x3ca3b6(0xb4))/0xd);if(_0x14d362===_0x1a6026)break;else _0x33507d['push'](_0x33507d['shift']());}catch(_0x5d6810){_0x33507d['push'](_0x33507d['shift']());}}}(_0x52b8,0xe7218));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1d7cb6){const _0x1b84b2=_0x3f8e;groups['delete'](_0x1d7cb6),groupMembers[_0x1b84b2(0xb8)](_0x1d7cb6);}function _0x3f8e(_0x34d21b,_0x24a128){const _0x52b884=_0x52b8();return _0x3f8e=function(_0x3f8e0d,_0x516400){_0x3f8e0d=_0x3f8e0d-0xaa;let _0x2befbc=_0x52b884[_0x3f8e0d];return _0x2befbc;},_0x3f8e(_0x34d21b,_0x24a128);}function _0x52b8(){const _0x489bc0=['uin','5270455nSzLIN','toString','14usQsGD','424428AqOqjM','6aozRGt','set','cPgeM','from','427mpivDc','295740YQAyOv','getGroupMembers','TonWD','78622gDRoTD','values','549tscbzK','ZmRth','612qjImxq','forEach','SzXSn','35919wXxiFG','13620420eRwZuA','234272SzbdHG','get','delete','18hGZNvN','groupCode','getGroups'];_0x52b8=function(){return _0x489bc0;};return _0x52b8();}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x1627fc){const _0x2414b6=_0x3f8e,_0x3d7ae0={'ZmRth':function(_0x118494,_0x5dcb0d){return _0x118494(_0x5dcb0d);}};_0x1627fc=_0x1627fc[_0x2414b6(0xbe)]();if(_0x3d7ae0[_0x2414b6(0xb0)](isNumeric,_0x1627fc)){const _0x4c6fc1=Array[_0x2414b6(0xc4)](friends['values']());return _0x4c6fc1['find'](_0x2d0c5e=>_0x2d0c5e[_0x2414b6(0xbc)]===_0x1627fc);}else return friends[_0x2414b6(0xb7)](_0x1627fc);}export async function getGroup(_0x322ad7){const _0x316675=_0x3f8e;let _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]());if(!_0x58c712)try{const _0x2dc22d=await NTQQGroupApi[_0x316675(0xbb)]();_0x2dc22d['length']&&_0x2dc22d[_0x316675(0xb2)](_0x4f9d21=>{const _0x567e31=_0x316675;groups[_0x567e31(0xc2)](_0x4f9d21[_0x567e31(0xba)],_0x4f9d21);});}catch(_0x988624){return undefined;}return _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]()),_0x58c712;}export async function getGroupMember(_0x8b6ee4,_0x149b82){const _0x5d7e33=_0x3f8e,_0x442bb3={'TonWD':function(_0x8a6fb1,_0x56c370){return _0x8a6fb1(_0x56c370);},'SzXSn':function(_0x41b5a0){return _0x41b5a0();}};_0x8b6ee4=_0x8b6ee4[_0x5d7e33(0xbe)](),_0x149b82=_0x149b82[_0x5d7e33(0xbe)]();let _0x4a9fb4=groupMembers[_0x5d7e33(0xb7)](_0x8b6ee4);if(!_0x4a9fb4)try{_0x4a9fb4=await NTQQGroupApi['getGroupMembers'](_0x8b6ee4),groupMembers[_0x5d7e33(0xc2)](_0x8b6ee4,_0x4a9fb4);}catch(_0x4dbc6e){return null;}const _0xf61f1f=()=>{const _0x23c0fa=_0x5d7e33;let _0x399b4d=undefined;return _0x442bb3[_0x23c0fa(0xac)](isNumeric,_0x149b82)?_0x399b4d=Array['from'](_0x4a9fb4[_0x23c0fa(0xae)]())['find'](_0x2bfc3c=>_0x2bfc3c[_0x23c0fa(0xbc)]===_0x149b82):_0x399b4d=_0x4a9fb4['get'](_0x149b82),_0x399b4d;};let _0x259010=_0xf61f1f();return!_0x259010&&(_0x4a9fb4=await NTQQGroupApi[_0x5d7e33(0xab)](_0x8b6ee4),_0x259010=_0x442bb3[_0x5d7e33(0xb3)](_0xf61f1f)),_0x259010;}export const uid2UinMap={};export function getUidByUin(_0x11be32){const _0x52b827=_0x3f8e,_0x3631da={'cPgeM':function(_0xe6644c,_0x1b710a){return _0xe6644c===_0x1b710a;}};for(const _0x5e2713 in uid2UinMap){if(_0x3631da[_0x52b827(0xc3)](uid2UinMap[_0x5e2713],_0x11be32))return _0x5e2713;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0};
|
@@ -1 +1 @@
|
||||
function _0x16d2(_0x29dbd5,_0x56077c){var _0x56f8f3=_0x56f8();return _0x16d2=function(_0x16d251,_0x39ff6e){_0x16d251=_0x16d251-0x138;var _0x18f6b9=_0x56f8f3[_0x16d251];return _0x18f6b9;},_0x16d2(_0x29dbd5,_0x56077c);}(function(_0x18d6b9,_0x137ea5){var _0x4989e9=_0x16d2,_0x156406=_0x18d6b9();while(!![]){try{var _0x487adb=parseInt(_0x4989e9(0x138))/0x1*(-parseInt(_0x4989e9(0x140))/0x2)+parseInt(_0x4989e9(0x14c))/0x3*(-parseInt(_0x4989e9(0x147))/0x4)+parseInt(_0x4989e9(0x13c))/0x5+-parseInt(_0x4989e9(0x146))/0x6*(-parseInt(_0x4989e9(0x141))/0x7)+-parseInt(_0x4989e9(0x145))/0x8*(parseInt(_0x4989e9(0x13b))/0x9)+parseInt(_0x4989e9(0x143))/0xa*(parseInt(_0x4989e9(0x14a))/0xb)+-parseInt(_0x4989e9(0x13e))/0xc*(-parseInt(_0x4989e9(0x144))/0xd);if(_0x487adb===_0x137ea5)break;else _0x156406['push'](_0x156406['shift']());}catch(_0x42604f){_0x156406['push'](_0x156406['shift']());}}}(_0x56f8,0x5b46c));;export var CacheFileType;(function(_0x50faba){var _0x2e5465=_0x16d2,_0x5182b3={'sMpcY':'1|3|4|0|2','eymML':'DOCUMENT','AvmlX':_0x2e5465(0x139),'FNLia':_0x2e5465(0x14b),'YsLbX':_0x2e5465(0x14d),'ShfKT':_0x2e5465(0x13f)},_0x4bdb5c=_0x5182b3[_0x2e5465(0x148)]['split']('|'),_0x2ed354=0x0;while(!![]){switch(_0x4bdb5c[_0x2ed354++]){case'0':_0x50faba[_0x50faba['DOCUMENT']=0x3]=_0x5182b3[_0x2e5465(0x13d)];continue;case'1':_0x50faba[_0x50faba[_0x5182b3[_0x2e5465(0x149)]]=0x0]=_0x5182b3[_0x2e5465(0x149)];continue;case'2':_0x50faba[_0x50faba[_0x5182b3['FNLia']]=0x4]=_0x5182b3['FNLia'];continue;case'3':_0x50faba[_0x50faba[_0x5182b3[_0x2e5465(0x142)]]=0x1]=_0x5182b3[_0x2e5465(0x142)];continue;case'4':_0x50faba[_0x50faba[_0x5182b3[_0x2e5465(0x13a)]]=0x2]=_0x5182b3[_0x2e5465(0x13a)];continue;}break;}}(CacheFileType||(CacheFileType={})));function _0x56f8(){var _0x2ef13d=['81452DpXBlN','sMpcY','AvmlX','965613mygByh','OTHER','57cknZSg','VIDEO','409YheRAU','IMAGE','ShfKT','108YVShHn','2476590WJkNBR','eymML','204RliLuW','AUDIO','1098ilkOfx','4736543wSxWWo','YsLbX','20JVNTFG','268645xYaFFb','475688ZzFdCz','6vvMJfU'];_0x56f8=function(){return _0x2ef13d;};return _0x56f8();}
|
||||
function _0x22fc(){var _0x4d430e=['45XELvbK','6788540HQOXCN','2XmaNLL','split','51879exTaZG','IMAGE','1412480mnodbb','VIDEO','UbuRT','DOCUMENT','597250FdatNd','1|0|3|2|4','21IKEAhc','188VwRcwM','1055312EbEGTb','320668VyoCRL','OhEUm','RQbtu','1718616LXbHri'];_0x22fc=function(){return _0x4d430e;};return _0x22fc();}(function(_0xe5ad98,_0x80be88){var _0x2fa55e=_0x4d96,_0x47c51c=_0xe5ad98();while(!![]){try{var _0x43c362=parseInt(_0x2fa55e(0x183))/0x1*(parseInt(_0x2fa55e(0x17d))/0x2)+-parseInt(_0x2fa55e(0x185))/0x3*(-parseInt(_0x2fa55e(0x17b))/0x4)+-parseInt(_0x2fa55e(0x178))/0x5+-parseInt(_0x2fa55e(0x180))/0x6+parseInt(_0x2fa55e(0x17a))/0x7*(-parseInt(_0x2fa55e(0x17c))/0x8)+-parseInt(_0x2fa55e(0x181))/0x9*(-parseInt(_0x2fa55e(0x174))/0xa)+-parseInt(_0x2fa55e(0x182))/0xb;if(_0x43c362===_0x80be88)break;else _0x47c51c['push'](_0x47c51c['shift']());}catch(_0x40aeda){_0x47c51c['push'](_0x47c51c['shift']());}}}(_0x22fc,0x66c2f));function _0x4d96(_0x54d519,_0xba9979){var _0x22fcd4=_0x22fc();return _0x4d96=function(_0x4d9696,_0x21318f){_0x4d9696=_0x4d9696-0x173;var _0x566dfb=_0x22fcd4[_0x4d9696];return _0x566dfb;},_0x4d96(_0x54d519,_0xba9979);};export var CacheFileType;(function(_0x169e50){var _0x50191d=_0x4d96,_0x4c3a6c={'qcPYE':_0x50191d(0x179),'vjxIe':'VIDEO','UbuRT':_0x50191d(0x173),'CKxqJ':'DOCUMENT','OhEUm':'AUDIO','RQbtu':'OTHER'},_0x145558=_0x4c3a6c['qcPYE'][_0x50191d(0x184)]('|'),_0x46671d=0x0;while(!![]){switch(_0x145558[_0x46671d++]){case'0':_0x169e50[_0x169e50[_0x50191d(0x175)]=0x1]=_0x4c3a6c['vjxIe'];continue;case'1':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x176)]]=0x0]=_0x50191d(0x173);continue;case'2':_0x169e50[_0x169e50[_0x4c3a6c['CKxqJ']]=0x3]=_0x50191d(0x177);continue;case'3':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17e)]]=0x2]=_0x4c3a6c[_0x50191d(0x17e)];continue;case'4':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17f)]]=0x4]=_0x4c3a6c[_0x50191d(0x17f)];continue;}break;}}(CacheFileType||(CacheFileType={})));
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(function(_0x44164a,_0x3126be){var _0x352529=_0x2e53,_0x3aaeee=_0x44164a();while(!![]){try{var _0x35b155=-parseInt(_0x352529(0x174))/0x1+parseInt(_0x352529(0x169))/0x2+-parseInt(_0x352529(0x170))/0x3+parseInt(_0x352529(0x171))/0x4+-parseInt(_0x352529(0x16b))/0x5+-parseInt(_0x352529(0x16f))/0x6*(parseInt(_0x352529(0x168))/0x7)+parseInt(_0x352529(0x16e))/0x8*(parseInt(_0x352529(0x167))/0x9);if(_0x35b155===_0x3126be)break;else _0x3aaeee['push'](_0x3aaeee['shift']());}catch(_0x32f5d2){_0x3aaeee['push'](_0x3aaeee['shift']());}}}(_0x48e1,0x7d68d));function _0x2e53(_0x5734f1,_0x471b48){var _0x48e17f=_0x48e1();return _0x2e53=function(_0x2e530a,_0x31e3cc){_0x2e530a=_0x2e530a-0x167;var _0x4c34d7=_0x48e17f[_0x2e530a];return _0x4c34d7;},_0x2e53(_0x5734f1,_0x471b48);}function _0x48e1(){var _0x22b627=['2342445fqUcxR','3146844oXzVgd','eKcka','normal','942491xnSDtr','36JkgrEP','38311garolA','1946564fiKdkT','hVtFE','3805595kHLCfp','deBdb','admin','3253384ZGbNfW','426ryDuCa'];_0x48e1=function(){return _0x22b627;};return _0x48e1();}export var GroupMemberRole;(function(_0x476aa){var _0x282fe6=_0x2e53,_0x106762={'eKcka':_0x282fe6(0x173),'deBdb':_0x282fe6(0x16d),'hVtFE':'owner'};_0x476aa[_0x476aa[_0x106762[_0x282fe6(0x172)]]=0x2]=_0x106762[_0x282fe6(0x172)],_0x476aa[_0x476aa[_0x106762[_0x282fe6(0x16c)]]=0x3]=_0x282fe6(0x16d),_0x476aa[_0x476aa[_0x106762[_0x282fe6(0x16a)]]=0x4]=_0x106762[_0x282fe6(0x16a)];}(GroupMemberRole||(GroupMemberRole={})));
|
||||
function _0x2c91(){var _0x5ea471=['OvlUt','2ZQCKNY','25296ZoTfBZ','lZvEF','6831mrDMxv','owner','normal','XCFOu','10292464UvyPXf','10279512htkYML','1362IBniEV','3zlBqrL','12610750WiFxYq','966252HOcvcd','admin','7HGFPdA','7405IfupeS','1175344iiwCHd'];_0x2c91=function(){return _0x5ea471;};return _0x2c91();}(function(_0x56d277,_0x4c7989){var _0x469d4d=_0x1f81,_0x3c913c=_0x56d277();while(!![]){try{var _0xcde2d7=-parseInt(_0x469d4d(0x11b))/0x1*(-parseInt(_0x469d4d(0x115))/0x2)+parseInt(_0x469d4d(0x113))/0x3*(parseInt(_0x469d4d(0x119))/0x4)+-parseInt(_0x469d4d(0x118))/0x5*(parseInt(_0x469d4d(0x112))/0x6)+-parseInt(_0x469d4d(0x117))/0x7*(-parseInt(_0x469d4d(0x110))/0x8)+parseInt(_0x469d4d(0x111))/0x9+-parseInt(_0x469d4d(0x114))/0xa+parseInt(_0x469d4d(0x11e))/0xb*(-parseInt(_0x469d4d(0x11c))/0xc);if(_0xcde2d7===_0x4c7989)break;else _0x3c913c['push'](_0x3c913c['shift']());}catch(_0x5edd63){_0x3c913c['push'](_0x3c913c['shift']());}}}(_0x2c91,0xbf094));function _0x1f81(_0x304495,_0x3f2305){var _0x2c91c4=_0x2c91();return _0x1f81=function(_0x1f8187,_0x4f3636){_0x1f8187=_0x1f8187-0x10d;var _0x4b81a3=_0x2c91c4[_0x1f8187];return _0x4b81a3;},_0x1f81(_0x304495,_0x3f2305);}export var GroupMemberRole;(function(_0x4b2c93){var _0x1e86d9=_0x1f81,_0x3e94b9={'OvlUt':_0x1e86d9(0x10e),'XCFOu':_0x1e86d9(0x116),'lZvEF':_0x1e86d9(0x10d)};_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11a)]]=0x2]=_0x3e94b9[_0x1e86d9(0x11a)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x10f)]]=0x3]=_0x3e94b9[_0x1e86d9(0x10f)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11d)]]=0x4]='owner';}(GroupMemberRole||(GroupMemberRole={})));
|
@@ -1 +1 @@
|
||||
(function(_0xe531b7,_0x51a052){var _0x4d04bd=_0x2efd,_0x449c2b=_0xe531b7();while(!![]){try{var _0x250d75=-parseInt(_0x4d04bd(0x1bc))/0x1+parseInt(_0x4d04bd(0x1b9))/0x2+-parseInt(_0x4d04bd(0x1bd))/0x3*(parseInt(_0x4d04bd(0x1be))/0x4)+parseInt(_0x4d04bd(0x1b6))/0x5*(-parseInt(_0x4d04bd(0x1bf))/0x6)+parseInt(_0x4d04bd(0x1ba))/0x7*(-parseInt(_0x4d04bd(0x1bb))/0x8)+parseInt(_0x4d04bd(0x1b8))/0x9+parseInt(_0x4d04bd(0x1b5))/0xa*(parseInt(_0x4d04bd(0x1b7))/0xb);if(_0x250d75===_0x51a052)break;else _0x449c2b['push'](_0x449c2b['shift']());}catch(_0x368d19){_0x449c2b['push'](_0x449c2b['shift']());}}}(_0x1453,0x43771));export*from'./user';function _0x2efd(_0x3e6f75,_0x261fd0){var _0x145393=_0x1453();return _0x2efd=function(_0x2efd19,_0x2d10f1){_0x2efd19=_0x2efd19-0x1b5;var _0x3d2ac7=_0x145393[_0x2efd19];return _0x3d2ac7;},_0x2efd(_0x3e6f75,_0x261fd0);}export*from'./group';export*from'./msg';function _0x1453(){var _0x18fa2e=['99xlMxzq','3827664TeaRAp','633160yxtzHB','97482IHsqkZ','288cJpOdZ','89177hlyfKI','625542lHtcZK','4JPiIDY','6JVIktx','459590EkewcY','400715CJOplD'];_0x1453=function(){return _0x18fa2e;};return _0x1453();}export*from'./notify';export*from'./cache';export*from'./constructor';
|
||||
(function(_0x1353e7,_0x11c41e){var _0x6f47ed=_0x39a1,_0x4f8057=_0x1353e7();while(!![]){try{var _0x4865ad=-parseInt(_0x6f47ed(0xc8))/0x1+parseInt(_0x6f47ed(0xce))/0x2+-parseInt(_0x6f47ed(0xc7))/0x3*(parseInt(_0x6f47ed(0xcd))/0x4)+parseInt(_0x6f47ed(0xc9))/0x5+-parseInt(_0x6f47ed(0xc5))/0x6*(-parseInt(_0x6f47ed(0xca))/0x7)+-parseInt(_0x6f47ed(0xcc))/0x8+parseInt(_0x6f47ed(0xc6))/0x9*(-parseInt(_0x6f47ed(0xcb))/0xa);if(_0x4865ad===_0x11c41e)break;else _0x4f8057['push'](_0x4f8057['shift']());}catch(_0x7af3b2){_0x4f8057['push'](_0x4f8057['shift']());}}}(_0x3115,0xed89f));export*from'./user';function _0x3115(){var _0x53bd7c=['9068485MkkFOk','76461IQpFKu','100BuCGoy','4708592fXiMxa','476UfWJef','2918364rofxjx','438IZIfdX','308871QJzivo','7494hdZXeU','1868273xFpZyv'];_0x3115=function(){return _0x53bd7c;};return _0x3115();}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x39a1(_0x5edd95,_0x1675d7){var _0x311527=_0x3115();return _0x39a1=function(_0x39a1a6,_0x245a14){_0x39a1a6=_0x39a1a6-0xc5;var _0x1772c4=_0x311527[_0x39a1a6];return _0x1772c4;},_0x39a1(_0x5edd95,_0x1675d7);}export*from'./constructor';
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x5272(_0x350aef,_0x3920b3){var _0x34b0fd=_0x34b0();return _0x5272=function(_0x527269,_0x7ff4d){_0x527269=_0x527269-0xd2;var _0x28e1a9=_0x34b0fd[_0x527269];return _0x28e1a9;},_0x5272(_0x350aef,_0x3920b3);}(function(_0x496da9,_0x6f223e){var _0x26ff8a=_0x5272,_0x39c89b=_0x496da9();while(!![]){try{var _0x40bfd1=parseInt(_0x26ff8a(0xf0))/0x1+parseInt(_0x26ff8a(0xe3))/0x2+-parseInt(_0x26ff8a(0xd4))/0x3+parseInt(_0x26ff8a(0xe5))/0x4*(parseInt(_0x26ff8a(0xdb))/0x5)+-parseInt(_0x26ff8a(0xe0))/0x6+parseInt(_0x26ff8a(0xe1))/0x7*(-parseInt(_0x26ff8a(0xd9))/0x8)+-parseInt(_0x26ff8a(0xd6))/0x9*(-parseInt(_0x26ff8a(0xe7))/0xa);if(_0x40bfd1===_0x6f223e)break;else _0x39c89b['push'](_0x39c89b['shift']());}catch(_0xa8d27c){_0x39c89b['push'](_0x39c89b['shift']());}}}(_0x34b0,0x5c45c));export var GroupNotifyTypes;(function(_0x71c7fa){var _0xec0c8c=_0x5272,_0x4b503d={'pMdsp':_0xec0c8c(0xd2),'KfBWP':'INVITED_JOIN','YPRBv':_0xec0c8c(0xed),'elPnr':_0xec0c8c(0xef),'GiWbJ':_0xec0c8c(0xf2),'oaJbb':'MEMBER_EXIT','roCpK':_0xec0c8c(0xda),'stzNa':'ADMIN_UNSET_OTHER'};_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xe8)]]=0x1]=_0xec0c8c(0xd2),_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xd7)]]=0x4]=_0x4b503d['KfBWP'],_0x71c7fa[_0x71c7fa[_0x4b503d['YPRBv']]=0x7]=_0x4b503d[_0xec0c8c(0xe9)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xd8)]]=0x8]=_0x4b503d[_0xec0c8c(0xd8)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xd3)]]=0x9]=_0x4b503d[_0xec0c8c(0xd3)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xe2)]]=0xb]=_0x4b503d[_0xec0c8c(0xe2)],_0x71c7fa[_0x71c7fa[_0x4b503d['roCpK']]=0xc]=_0x4b503d[_0xec0c8c(0xdf)],_0x71c7fa[_0x71c7fa[_0x4b503d[_0xec0c8c(0xee)]]=0xd]=_0x4b503d['stzNa'];}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x15b1b9){var _0x174ac9=_0x5272,_0x18ff93={'ortpO':_0x174ac9(0xd5),'BWfdw':_0x174ac9(0xf1),'ZUjAw':_0x174ac9(0xde),'JeNTc':'REJECT'};_0x15b1b9[_0x15b1b9['IGNORE']=0x0]=_0x18ff93[_0x174ac9(0xea)],_0x15b1b9[_0x15b1b9[_0x18ff93[_0x174ac9(0xdd)]]=0x1]=_0x18ff93[_0x174ac9(0xdd)],_0x15b1b9[_0x15b1b9[_0x18ff93[_0x174ac9(0xe6)]]=0x2]=_0x18ff93[_0x174ac9(0xe6)],_0x15b1b9[_0x15b1b9[_0x174ac9(0xeb)]=0x3]=_0x18ff93['JeNTc'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x29ec7e){var _0x151c67=_0x5272,_0x2c4f45={'TsdQk':'approve','wNrVF':_0x151c67(0xec)};_0x29ec7e[_0x29ec7e[_0x2c4f45[_0x151c67(0xe4)]]=0x1]=_0x2c4f45[_0x151c67(0xe4)],_0x29ec7e[_0x29ec7e[_0x2c4f45[_0x151c67(0xdc)]]=0x2]=_0x151c67(0xec);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x34b0(){var _0x4c55c5=['70UtDMMi','pMdsp','YPRBv','ortpO','REJECT','reject','JOIN_REQUEST','stzNa','ADMIN_SET','737185AqXtFr','WAIT_HANDLE','KICK_MEMBER','INVITE_ME','GiWbJ','579345iYIUhp','IGNORE','717075ySNMYn','KfBWP','elPnr','3003992IrdDBc','ADMIN_UNSET','29615YEwIkQ','wNrVF','BWfdw','APPROVE','roCpK','3155958bLumJc','14tCHYMF','oaJbb','407374lCvNai','TsdQk','236ooSnNu','ZUjAw'];_0x34b0=function(){return _0x4c55c5;};return _0x34b0();}
|
||||
(function(_0x2743a7,_0x438a0b){var _0x39193b=_0x25ac,_0x3a31e4=_0x2743a7();while(!![]){try{var _0x4ccfa4=-parseInt(_0x39193b(0x19d))/0x1+-parseInt(_0x39193b(0x19b))/0x2*(parseInt(_0x39193b(0x1aa))/0x3)+parseInt(_0x39193b(0x1a0))/0x4+parseInt(_0x39193b(0x1ab))/0x5*(-parseInt(_0x39193b(0x1b5))/0x6)+parseInt(_0x39193b(0x1a6))/0x7*(parseInt(_0x39193b(0x1a7))/0x8)+-parseInt(_0x39193b(0x199))/0x9*(parseInt(_0x39193b(0x1a9))/0xa)+parseInt(_0x39193b(0x198))/0xb*(parseInt(_0x39193b(0x1a8))/0xc);if(_0x4ccfa4===_0x438a0b)break;else _0x3a31e4['push'](_0x3a31e4['shift']());}catch(_0x1bc049){_0x3a31e4['push'](_0x3a31e4['shift']());}}}(_0xe2fc,0xafd76));export var GroupNotifyTypes;(function(_0x23cdc4){var _0x2153ed=_0x25ac,_0x1e0eca={'AhuXW':_0x2153ed(0x1b3),'HSxTD':_0x2153ed(0x19a),'zHBgk':_0x2153ed(0x1ae),'unktC':_0x2153ed(0x1af),'NRZQG':'MEMBER_EXIT','uZoRI':_0x2153ed(0x1b0),'uePLG':_0x2153ed(0x1ad)};_0x23cdc4[_0x23cdc4[_0x2153ed(0x1a5)]=0x1]=_0x2153ed(0x1a5),_0x23cdc4[_0x23cdc4[_0x2153ed(0x1b3)]=0x4]=_0x1e0eca[_0x2153ed(0x1a1)],_0x23cdc4[_0x23cdc4[_0x1e0eca['HSxTD']]=0x7]=_0x1e0eca[_0x2153ed(0x1a2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b2)]]=0x8]=_0x1e0eca[_0x2153ed(0x1b2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1ac)]]=0x9]=_0x1e0eca[_0x2153ed(0x1ac)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x197)]]=0xb]=_0x1e0eca[_0x2153ed(0x197)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b4)]]=0xc]=_0x1e0eca[_0x2153ed(0x1b4)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x19e)]]=0xd]=_0x2153ed(0x1ad);}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x25ac(_0x58855d,_0x1f2a0b){var _0xe2fc75=_0xe2fc();return _0x25ac=function(_0x25ac41,_0x4339be){_0x25ac41=_0x25ac41-0x197;var _0x1f941f=_0xe2fc75[_0x25ac41];return _0x1f941f;},_0x25ac(_0x58855d,_0x1f2a0b);}export var GroupNotifyStatus;(function(_0x65ee21){var _0x2a0e89=_0x25ac,_0x3827e5={'kyvxE':_0x2a0e89(0x19f),'HjyRg':_0x2a0e89(0x1a3),'kQkfm':'APPROVE','eXWXj':_0x2a0e89(0x1a4)};_0x65ee21[_0x65ee21[_0x2a0e89(0x19f)]=0x0]=_0x3827e5['kyvxE'],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a3)]=0x1]=_0x3827e5['HjyRg'],_0x65ee21[_0x65ee21[_0x3827e5[_0x2a0e89(0x1b7)]]=0x2]=_0x3827e5[_0x2a0e89(0x1b7)],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a4)]=0x3]=_0x3827e5['eXWXj'];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0xe2fc(){var _0x216561=['unktC','ADMIN_UNSET_OTHER','ADMIN_SET','KICK_MEMBER','ADMIN_UNSET','reject','zHBgk','INVITED_JOIN','uZoRI','5615580HthQyP','ODORW','kQkfm','NRZQG','11hdBIUc','108CZQaiG','JOIN_REQUEST','19144mdQcdy','FYPDr','420103TPEuZV','uePLG','IGNORE','1541716MYGJKG','AhuXW','HSxTD','WAIT_HANDLE','REJECT','INVITE_ME','371mgVCRW','102624FhsaOu','18822120ABhULr','153530mmcwjt','117JNdBnF','5pIYWXG'];_0xe2fc=function(){return _0x216561;};return _0xe2fc();}export var GroupRequestOperateTypes;(function(_0x5057ed){var _0xea7a7f=_0x25ac,_0x18ad98={'ODORW':'approve','FYPDr':_0xea7a7f(0x1b1)};_0x5057ed[_0x5057ed[_0x18ad98['ODORW']]=0x1]=_0x18ad98[_0xea7a7f(0x1b6)],_0x5057ed[_0x5057ed[_0x18ad98[_0xea7a7f(0x19c)]]=0x2]=_0xea7a7f(0x1b1);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));
|
@@ -1 +1 @@
|
||||
(function(_0x3280a,_0x31ff92){var _0x134a05=_0x4e1e,_0x2bb004=_0x3280a();while(!![]){try{var _0x4dad6b=-parseInt(_0x134a05(0xb5))/0x1+-parseInt(_0x134a05(0xaf))/0x2*(parseInt(_0x134a05(0xb3))/0x3)+-parseInt(_0x134a05(0xb7))/0x4*(-parseInt(_0x134a05(0xb4))/0x5)+-parseInt(_0x134a05(0xb1))/0x6*(parseInt(_0x134a05(0xb6))/0x7)+parseInt(_0x134a05(0xbb))/0x8+-parseInt(_0x134a05(0xb0))/0x9+-parseInt(_0x134a05(0xba))/0xa*(-parseInt(_0x134a05(0xbc))/0xb);if(_0x4dad6b===_0x31ff92)break;else _0x2bb004['push'](_0x2bb004['shift']());}catch(_0x2778f5){_0x2bb004['push'](_0x2bb004['shift']());}}}(_0x4304,0x62c6e));function _0x4e1e(_0x91c316,_0xf4d96){var _0x430490=_0x4304();return _0x4e1e=function(_0x4e1e5d,_0x3faaaa){_0x4e1e5d=_0x4e1e5d-0xaf;var _0x5cf116=_0x430490[_0x4e1e5d];return _0x5cf116;},_0x4e1e(_0x91c316,_0xf4d96);}function _0x4304(){var _0x350a8d=['male','18CipHad','125aMNjeo','66413NvXFfL','14PSeYPD','105100BCWNiC','MkibG','UtMHF','10134270DaVRtl','6280848utMQVo','11lPNmHf','MnbWd','228166QAMZlT','5726079GnNBZL','1991028easFoz'];_0x4304=function(){return _0x350a8d;};return _0x4304();}export var Sex;(function(_0x440107){var _0x296e4a=_0x4e1e,_0x4d5d49={'MkibG':_0x296e4a(0xb2),'MnbWd':'female','UtMHF':'unknown'};_0x440107[_0x440107[_0x4d5d49['MkibG']]=0x1]=_0x4d5d49[_0x296e4a(0xb8)],_0x440107[_0x440107[_0x4d5d49[_0x296e4a(0xbd)]]=0x2]=_0x4d5d49['MnbWd'],_0x440107[_0x440107[_0x4d5d49[_0x296e4a(0xb9)]]=0xff]=_0x4d5d49[_0x296e4a(0xb9)];}(Sex||(Sex={})));
|
||||
function _0x1202(){var _0x206667=['male','11271664QofUvI','6wGIlaY','nQZIc','515443EVUzbK','1226468wkKmSw','374568hebLHR','PExOs','1429211iicuwF','2893700dJAYBE','unknown','female','1072910WoEvlH'];_0x1202=function(){return _0x206667;};return _0x1202();}function _0x1995(_0x12b74f,_0x136525){var _0x120270=_0x1202();return _0x1995=function(_0x199598,_0x282ea2){_0x199598=_0x199598-0x1d6;var _0x26ae06=_0x120270[_0x199598];return _0x26ae06;},_0x1995(_0x12b74f,_0x136525);}(function(_0x31da6d,_0x1a8293){var _0x24b5c0=_0x1995,_0x335757=_0x31da6d();while(!![]){try{var _0x36f86d=-parseInt(_0x24b5c0(0x1da))/0x1+-parseInt(_0x24b5c0(0x1e2))/0x2+-parseInt(_0x24b5c0(0x1dc))/0x3+-parseInt(_0x24b5c0(0x1db))/0x4+parseInt(_0x24b5c0(0x1df))/0x5+parseInt(_0x24b5c0(0x1d8))/0x6*(-parseInt(_0x24b5c0(0x1de))/0x7)+parseInt(_0x24b5c0(0x1d7))/0x8;if(_0x36f86d===_0x1a8293)break;else _0x335757['push'](_0x335757['shift']());}catch(_0x1078ec){_0x335757['push'](_0x335757['shift']());}}}(_0x1202,0x4947a));export var Sex;(function(_0x3a3377){var _0x4f37d1=_0x1995,_0x1f6f58={'nQZIc':_0x4f37d1(0x1d6),'PExOs':_0x4f37d1(0x1e1)};_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1d9)]]=0x1]=_0x1f6f58[_0x4f37d1(0x1d9)],_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1dd)]]=0x2]='female',_0x3a3377[_0x3a3377['unknown']=0xff]=_0x4f37d1(0x1e0);}(Sex||(Sex={})));
|
2
src/core.lib/src/external/hook.js
vendored
2
src/core.lib/src/external/hook.js
vendored
@@ -1 +1 @@
|
||||
const _0x3a05cc=_0x27d4;(function(_0x31fea6,_0x47861a){const _0x32383f=_0x27d4,_0x37ef87=_0x31fea6();while(!![]){try{const _0x54011b=-parseInt(_0x32383f(0x13d))/0x1*(parseInt(_0x32383f(0x136))/0x2)+parseInt(_0x32383f(0x147))/0x3*(parseInt(_0x32383f(0x139))/0x4)+-parseInt(_0x32383f(0x143))/0x5*(-parseInt(_0x32383f(0x13c))/0x6)+parseInt(_0x32383f(0x146))/0x7*(-parseInt(_0x32383f(0x142))/0x8)+parseInt(_0x32383f(0x137))/0x9+-parseInt(_0x32383f(0x13f))/0xa+parseInt(_0x32383f(0x13b))/0xb;if(_0x54011b===_0x47861a)break;else _0x37ef87['push'](_0x37ef87['shift']());}catch(_0x11baeb){_0x37ef87['push'](_0x37ef87['shift']());}}}(_0x5a33,0x89a5e));function _0x27d4(_0x3f525a,_0x11f5de){const _0x5a33a0=_0x5a33();return _0x27d4=function(_0x27d4b8,_0x18b0f3){_0x27d4b8=_0x27d4b8-0x135;let _0x951670=_0x5a33a0[_0x27d4b8];return _0x951670;},_0x27d4(_0x3f525a,_0x11f5de);}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';function _0x5a33(){const _0x3f519a=['HWSXd','5657060mvrljl','moeHook','RcJyT','137608xtgWUz','2115635ScNrKF','version','GetRkey','217oSGugk','3imFOJj','isAvailable','qsSHB','HookRkey','MoeHoo','344506AZrnht','8950887AgcdAn','加载\x20moehoo\x20失败','2082804wQWgOd','getRKey','757658yUEFZM','6ZqhHxd','2eXrUGl'];_0x5a33=function(){return _0x3f519a;};return _0x5a33();}class HookApi{[_0x3a05cc(0x140)]=null;constructor(){const _0x556fd6=_0x3a05cc,_0x2124ee={'HWSXd':function(_0xd52f27,_0x53e328){return _0xd52f27(_0x53e328);},'qsSHB':_0x556fd6(0x135),'MmmGm':'./MoeHoo.node','RcJyT':function(_0xdb6f6a,_0x326c00,_0x2f1085){return _0xdb6f6a(_0x326c00,_0x2f1085);}};try{_0x2124ee['HWSXd'](cpModule,_0x2124ee[_0x556fd6(0x149)]),this['moeHook']=_0x2124ee[_0x556fd6(0x13e)](require,_0x2124ee['MmmGm']),this['moeHook'][_0x556fd6(0x14a)](qqPkgInfo[_0x556fd6(0x144)]);}catch(_0x26bb38){_0x2124ee[_0x556fd6(0x141)](logError,_0x556fd6(0x138),_0x26bb38);}}[_0x3a05cc(0x13a)](){const _0x458fb9=_0x3a05cc;return this[_0x458fb9(0x140)]?.[_0x458fb9(0x145)]()||'';}[_0x3a05cc(0x148)](){const _0x307b44=_0x3a05cc;return!!this[_0x307b44(0x140)];}}export const hookApi=new HookApi();
|
||||
const _0x346c92=_0x329e;(function(_0xc4b973,_0x9d70db){const _0x21ef07=_0x329e,_0x27a83c=_0xc4b973();while(!![]){try{const _0x45adad=parseInt(_0x21ef07(0x168))/0x1*(-parseInt(_0x21ef07(0x16b))/0x2)+-parseInt(_0x21ef07(0x16d))/0x3+-parseInt(_0x21ef07(0x167))/0x4*(-parseInt(_0x21ef07(0x173))/0x5)+parseInt(_0x21ef07(0x175))/0x6*(-parseInt(_0x21ef07(0x166))/0x7)+parseInt(_0x21ef07(0x176))/0x8+parseInt(_0x21ef07(0x16f))/0x9+-parseInt(_0x21ef07(0x169))/0xa*(-parseInt(_0x21ef07(0x171))/0xb);if(_0x45adad===_0x9d70db)break;else _0x27a83c['push'](_0x27a83c['shift']());}catch(_0x129046){_0x27a83c['push'](_0x27a83c['shift']());}}}(_0x2cde,0xe095b));function _0x2cde(){const _0x463d2b=['10qzDtdy','加载\x20moehoo\x20失败','2924654gGKZVi','./MoeHoo.node','3666402PPOyYs','Fckhf','10830888ZGYxRA','getRKey','1953688NBCohQ','moeHook','4403830KmAbhQ','YgeNl','2233194fsLVxZ','13718024zyBXgU','hSTPF','version','GetRkey','7untwXc','4KAzLLS','1TZHgjH'];_0x2cde=function(){return _0x463d2b;};return _0x2cde();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x329e(_0x113e50,_0x3cf53a){const _0x2cdedc=_0x2cde();return _0x329e=function(_0x329ea9,_0x277521){_0x329ea9=_0x329ea9-0x164;let _0x56d662=_0x2cdedc[_0x329ea9];return _0x56d662;},_0x329e(_0x113e50,_0x3cf53a);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x346c92(0x172)]=null;constructor(){const _0x5ea9e6=_0x346c92,_0x40d1ef={'mCQTO':function(_0x423c3b,_0x4bb068){return _0x423c3b(_0x4bb068);},'YgeNl':'MoeHoo','Veiwu':_0x5ea9e6(0x16c),'hSTPF':function(_0x3a52c1,_0x5d97c8,_0x3871cc){return _0x3a52c1(_0x5d97c8,_0x3871cc);},'Fckhf':_0x5ea9e6(0x16a)};try{_0x40d1ef['mCQTO'](cpModule,_0x40d1ef[_0x5ea9e6(0x174)]),this[_0x5ea9e6(0x172)]=require(_0x40d1ef['Veiwu']),this[_0x5ea9e6(0x172)]['HookRkey'](qqPkgInfo[_0x5ea9e6(0x164)]);}catch(_0x4e804d){_0x40d1ef[_0x5ea9e6(0x177)](logError,_0x40d1ef[_0x5ea9e6(0x16e)],_0x4e804d);}}[_0x346c92(0x170)](){const _0x4d5605=_0x346c92;return this['moeHook']?.[_0x4d5605(0x165)]()||'';}['isAvailable'](){const _0x572b68=_0x346c92;return!!this[_0x572b68(0x172)];}}export const hookApi=new HookApi();
|
@@ -1 +1 @@
|
||||
(function(_0x1b70cb,_0x45fb83){var _0x4fa32e=_0x1c40,_0x520afa=_0x1b70cb();while(!![]){try{var _0x17f243=parseInt(_0x4fa32e(0x164))/0x1*(parseInt(_0x4fa32e(0x166))/0x2)+parseInt(_0x4fa32e(0x161))/0x3*(-parseInt(_0x4fa32e(0x15d))/0x4)+parseInt(_0x4fa32e(0x165))/0x5+parseInt(_0x4fa32e(0x160))/0x6*(parseInt(_0x4fa32e(0x15f))/0x7)+-parseInt(_0x4fa32e(0x163))/0x8+-parseInt(_0x4fa32e(0x15e))/0x9*(-parseInt(_0x4fa32e(0x167))/0xa)+-parseInt(_0x4fa32e(0x162))/0xb;if(_0x17f243===_0x45fb83)break;else _0x520afa['push'](_0x520afa['shift']());}catch(_0x377d96){_0x520afa['push'](_0x520afa['shift']());}}}(_0x10a9,0xebdf9));import _0x6adb3a from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x1c40(_0x5d9ea4,_0x4d0c51){var _0x10a9e7=_0x10a9();return _0x1c40=function(_0x1c4037,_0x4524bd){_0x1c4037=_0x1c4037-0x15d;var _0xcdc415=_0x10a9e7[_0x1c4037];return _0xcdc415;},_0x1c40(_0x5d9ea4,_0x4d0c51);}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x6adb3a as Wrapper};export*as WrapperInterface from'./wrapper';function _0x10a9(){var _0x5609d3=['977583sxNCAL','16726105wbEbFh','2579432fYLtuT','23VEqxwc','8742760MIYBtM','133096SmKByg','60Ocvowi','12PcazSE','50868ecXFNE','28kyQmhE','710454wRNMbW'];_0x10a9=function(){return _0x5609d3;};return _0x10a9();}export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
||||
(function(_0x5d83cb,_0x2d714d){var _0x58f0c9=_0x318b,_0x4b874e=_0x5d83cb();while(!![]){try{var _0x99167f=-parseInt(_0x58f0c9(0x1b0))/0x1*(parseInt(_0x58f0c9(0x1b4))/0x2)+parseInt(_0x58f0c9(0x1ab))/0x3*(parseInt(_0x58f0c9(0x1b2))/0x4)+-parseInt(_0x58f0c9(0x1b1))/0x5*(parseInt(_0x58f0c9(0x1ad))/0x6)+-parseInt(_0x58f0c9(0x1ae))/0x7+parseInt(_0x58f0c9(0x1af))/0x8+parseInt(_0x58f0c9(0x1b3))/0x9+-parseInt(_0x58f0c9(0x1ac))/0xa*(-parseInt(_0x58f0c9(0x1b5))/0xb);if(_0x99167f===_0x2d714d)break;else _0x4b874e['push'](_0x4b874e['shift']());}catch(_0x2b95bb){_0x4b874e['push'](_0x4b874e['shift']());}}}(_0x31c1,0xae4e6));import _0x336651 from'./wrapper';export*from'./adapters';function _0x31c1(){var _0x4cf778=['5QYsIwG','148bRFhul','5575446OhmMHj','13612QchNCS','4036131QtgXoQ','20031BVNgcD','30ZotJer','6362442Duycot','4915512CVVjKu','4237544QZddzQ','3nFrWlG'];_0x31c1=function(){return _0x4cf778;};return _0x31c1();}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';function _0x318b(_0x213b9c,_0x943cff){var _0x31c174=_0x31c1();return _0x318b=function(_0x318bf7,_0x48dc1d){_0x318bf7=_0x318bf7-0x1ab;var _0x118ded=_0x31c174[_0x318bf7];return _0x118ded;},_0x318b(_0x213b9c,_0x943cff);}export{_0x336651 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';
|
@@ -1 +1 @@
|
||||
var _0x505646=_0x3d52;(function(_0x140272,_0x2fce8d){var _0x119dea=_0x3d52,_0x4b0f1a=_0x140272();while(!![]){try{var _0x52a294=parseInt(_0x119dea(0x12e))/0x1*(parseInt(_0x119dea(0x12a))/0x2)+parseInt(_0x119dea(0x11c))/0x3*(parseInt(_0x119dea(0x11b))/0x4)+parseInt(_0x119dea(0x118))/0x5*(-parseInt(_0x119dea(0x12d))/0x6)+-parseInt(_0x119dea(0x129))/0x7*(parseInt(_0x119dea(0x121))/0x8)+parseInt(_0x119dea(0x122))/0x9*(parseInt(_0x119dea(0x11a))/0xa)+-parseInt(_0x119dea(0x126))/0xb*(parseInt(_0x119dea(0x116))/0xc)+parseInt(_0x119dea(0x11f))/0xd;if(_0x52a294===_0x2fce8d)break;else _0x4b0f1a['push'](_0x4b0f1a['shift']());}catch(_0x26a136){_0x4b0f1a['push'](_0x4b0f1a['shift']());}}}(_0x2d1a,0x7ba96));function _0x3d52(_0x1744c1,_0x81411b){var _0x2d1a44=_0x2d1a();return _0x3d52=function(_0x3d5260,_0x2ea068){_0x3d5260=_0x3d5260-0x115;var _0x65cb5=_0x2d1a44[_0x3d5260];return _0x65cb5;},_0x3d52(_0x1744c1,_0x81411b);}function _0x2d1a(){var _0x22a92e=['9FJDSlf','onAddBuddyNeedVerify','onBuddyReqChange','onNickUpdated','44gICzft','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','69146RvTFjC','2HRvfLF','onSpacePermissionInfos','onBuddyDetailInfoChange','114HrPAOh','187067WOAQqR','onDelBatchBuddyInfos','54624VnWncI','onDoubtBuddyReqChange','174350ypjBKL','onAvatarUrlUpdated','1455800kuQZlQ','124940oIeRYk','69ZYYthk','onBlockChanged','onSmartInfos','5751486mxIikq','onBuddyInfoChange','248hXlxeU'];_0x2d1a=function(){return _0x22a92e;};return _0x2d1a();}export class BuddyListener{[_0x505646(0x123)](_0x3f377c){}['onAddMeSettingChanged'](_0x58db3f){}[_0x505646(0x119)](_0x557640){}[_0x505646(0x11d)](_0x187eec){}[_0x505646(0x12c)](_0x916d29){}[_0x505646(0x120)](_0x4effad){}['onBuddyListChange'](_0x2afd00){}['onBuddyRemarkUpdated'](_0x5e1996){}[_0x505646(0x124)](_0x1c60fa){}['onBuddyReqUnreadCntChange'](_0x5316ee){}[_0x505646(0x128)](_0xba21b4){}[_0x505646(0x115)](_0x3d63ac){}[_0x505646(0x117)](_0x3dc115){}[_0x505646(0x127)](_0x1a83fe){}[_0x505646(0x125)](_0x4d966c){}[_0x505646(0x11e)](_0x3aaef9){}[_0x505646(0x12b)](_0x5ca3d2){}}
|
||||
var _0x4f2cc7=_0x4ebf;(function(_0x46ab7d,_0x121ff7){var _0x6ee1=_0x4ebf,_0xf8dbc=_0x46ab7d();while(!![]){try{var _0x4bfc72=-parseInt(_0x6ee1(0x1ca))/0x1+-parseInt(_0x6ee1(0x1c0))/0x2+parseInt(_0x6ee1(0x1bf))/0x3*(-parseInt(_0x6ee1(0x1cd))/0x4)+-parseInt(_0x6ee1(0x1c6))/0x5+parseInt(_0x6ee1(0x1d4))/0x6+-parseInt(_0x6ee1(0x1cb))/0x7*(-parseInt(_0x6ee1(0x1d0))/0x8)+-parseInt(_0x6ee1(0x1c9))/0x9*(-parseInt(_0x6ee1(0x1d3))/0xa);if(_0x4bfc72===_0x121ff7)break;else _0xf8dbc['push'](_0xf8dbc['shift']());}catch(_0x3f97df){_0xf8dbc['push'](_0xf8dbc['shift']());}}}(_0x8224,0x4035a));export class BuddyListener{[_0x4f2cc7(0x1ce)](_0x4c1995){}['onAddMeSettingChanged'](_0x371434){}[_0x4f2cc7(0x1c3)](_0x267208){}['onBlockChanged'](_0x93b589){}[_0x4f2cc7(0x1cf)](_0x153a60){}[_0x4f2cc7(0x1cc)](_0x41e0cb){}[_0x4f2cc7(0x1d2)](_0x4d533a){}[_0x4f2cc7(0x1be)](_0x1fe58d){}['onBuddyReqChange'](_0x6778e9){}[_0x4f2cc7(0x1bd)](_0x1bf056){}[_0x4f2cc7(0x1c2)](_0x373bda){}[_0x4f2cc7(0x1c4)](_0x166f71){}[_0x4f2cc7(0x1d1)](_0x3ad3c6){}[_0x4f2cc7(0x1c1)](_0x1b9621){}[_0x4f2cc7(0x1c7)](_0x30f646){}[_0x4f2cc7(0x1c5)](_0x2d0788){}[_0x4f2cc7(0x1c8)](_0x2700e6){}}function _0x4ebf(_0x5f55f4,_0x3777fd){var _0x8224ad=_0x8224();return _0x4ebf=function(_0x4ebf03,_0x3a6527){_0x4ebf03=_0x4ebf03-0x1bd;var _0x5bd0d8=_0x8224ad[_0x4ebf03];return _0x5bd0d8;},_0x4ebf(_0x5f55f4,_0x3777fd);}function _0x8224(){var _0x47c2a1=['3348177SeHSPn','onBuddyInfoChange','432844YdQZqB','onAddBuddyNeedVerify','onBuddyDetailInfoChange','8JcwoLl','onDoubtBuddyReqChange','onBuddyListChange','386890mymFVV','147552HTXhIJ','onBuddyReqUnreadCntChange','onBuddyRemarkUpdated','3yckNUt','818874jvzPqB','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onAvatarUrlUpdated','onDelBatchBuddyInfos','onSmartInfos','796185bJJEvw','onNickUpdated','onSpacePermissionInfos','189TcTSBD','375485MhaSIU'];_0x8224=function(){return _0x47c2a1;};return _0x8224();}
|
@@ -1 +1 @@
|
||||
function _0x242f(_0x78fa10,_0x418086){var _0x16caf3=_0x16ca();return _0x242f=function(_0x242fb7,_0x971733){_0x242fb7=_0x242fb7-0xeb;var _0x5db70b=_0x16caf3[_0x242fb7];return _0x5db70b;},_0x242f(_0x78fa10,_0x418086);}var _0x1c47ce=_0x242f;(function(_0x2c6f6b,_0x595586){var _0x1cace0=_0x242f,_0x399f3a=_0x2c6f6b();while(!![]){try{var _0x5d6257=-parseInt(_0x1cace0(0xec))/0x1+-parseInt(_0x1cace0(0xf2))/0x2+parseInt(_0x1cace0(0xf0))/0x3+parseInt(_0x1cace0(0xeb))/0x4+parseInt(_0x1cace0(0xf3))/0x5+-parseInt(_0x1cace0(0xf1))/0x6*(parseInt(_0x1cace0(0xf6))/0x7)+parseInt(_0x1cace0(0xf7))/0x8;if(_0x5d6257===_0x595586)break;else _0x399f3a['push'](_0x399f3a['shift']());}catch(_0x231534){_0x399f3a['push'](_0x399f3a['shift']());}}}(_0x16ca,0x748b8));function _0x16ca(){var _0x47d952=['7728992YgAvHq','1963716cfZQVU','645598sdAHTY','onFileSearch','onSessionListChanged','onSessionChanged','539487tHCMaX','12ryyaaI','385774wrMSKy','1493625AeRPMd','onFileStatusChanged','onFileListChanged','2169139HPkAKH'];_0x16ca=function(){return _0x47d952;};return _0x16ca();}export class KernelFileAssistantListener{[_0x1c47ce(0xf4)](..._0x3ff262){}[_0x1c47ce(0xee)](..._0x2d9f34){}[_0x1c47ce(0xef)](..._0x1e0913){}[_0x1c47ce(0xf5)](..._0x1900d2){}[_0x1c47ce(0xed)](..._0x7b9684){}}
|
||||
var _0x35aec8=_0x4ade;function _0x53ad(){var _0x407005=['2654183weClxS','9994Hkictp','onFileStatusChanged','onFileSearch','10pnDQlo','onSessionListChanged','656589MuSgps','onSessionChanged','491495QBbaaF','4ALPhPd','6451857xHpKSg','302154urCmyg','2iRTDVW','701480FWUUpY'];_0x53ad=function(){return _0x407005;};return _0x53ad();}function _0x4ade(_0xc7819e,_0x3a28c9){var _0x53ad1f=_0x53ad();return _0x4ade=function(_0x4ade03,_0x1afb61){_0x4ade03=_0x4ade03-0x198;var _0x3b9122=_0x53ad1f[_0x4ade03];return _0x3b9122;},_0x4ade(_0xc7819e,_0x3a28c9);}(function(_0x8f747c,_0x55c43d){var _0x41ce32=_0x4ade,_0x285c6d=_0x8f747c();while(!![]){try{var _0x146bcb=parseInt(_0x41ce32(0x19d))/0x1+-parseInt(_0x41ce32(0x19a))/0x2*(parseInt(_0x41ce32(0x1a2))/0x3)+parseInt(_0x41ce32(0x1a5))/0x4*(parseInt(_0x41ce32(0x1a4))/0x5)+parseInt(_0x41ce32(0x199))/0x6+-parseInt(_0x41ce32(0x19c))/0x7+-parseInt(_0x41ce32(0x19b))/0x8+parseInt(_0x41ce32(0x198))/0x9*(parseInt(_0x41ce32(0x1a0))/0xa);if(_0x146bcb===_0x55c43d)break;else _0x285c6d['push'](_0x285c6d['shift']());}catch(_0x1b9aca){_0x285c6d['push'](_0x285c6d['shift']());}}}(_0x53ad,0x2e570));export class KernelFileAssistantListener{[_0x35aec8(0x19e)](..._0x55b5ae){}[_0x35aec8(0x1a1)](..._0x34c77b){}[_0x35aec8(0x1a3)](..._0x3d0bf1){}['onFileListChanged'](..._0x5dd3b0){}[_0x35aec8(0x19f)](..._0x372ac8){}}
|
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
function _0x2f62(_0x400ced,_0x53f347){var _0x1b90ce=_0x1b90();return _0x2f62=function(_0x2f6246,_0x40961b){_0x2f6246=_0x2f6246-0x15d;var _0x3c2fc7=_0x1b90ce[_0x2f6246];return _0x3c2fc7;},_0x2f62(_0x400ced,_0x53f347);}var _0x472096=_0x2f62;function _0x1b90(){var _0x36a1ee=['2166170xewyJs','860065XAWyeY','onLogoutFailed','onQRCodeSessionFailed','onUserLoggedIn','260604vISAzA','onLoginConnecting','89455wtaiPU','onLoginState','4UEnQTq','onLoginDisConnected','48YIVLuj','onPasswordLoginFailed','onLoginConnected','110hAIuIh','12738lzOlTy','onQQLoginNumLimited','1372jByAxy','onQRCodeLoginSucceed','82122kaqrUA','405818pKZCfq','onLogoutSucceed','onQRCodeSessionUserScaned'];_0x1b90=function(){return _0x36a1ee;};return _0x1b90();}(function(_0x366ee2,_0x12a3aa){var _0x2fee7c=_0x2f62,_0x1f45cd=_0x366ee2();while(!![]){try{var _0x41c781=-parseInt(_0x2fee7c(0x164))/0x1+-parseInt(_0x2fee7c(0x160))/0x2+parseInt(_0x2fee7c(0x15f))/0x3*(-parseInt(_0x2fee7c(0x16c))/0x4)+-parseInt(_0x2fee7c(0x16a))/0x5+-parseInt(_0x2fee7c(0x172))/0x6*(parseInt(_0x2fee7c(0x15d))/0x7)+parseInt(_0x2fee7c(0x16e))/0x8*(-parseInt(_0x2fee7c(0x168))/0x9)+parseInt(_0x2fee7c(0x163))/0xa*(parseInt(_0x2fee7c(0x171))/0xb);if(_0x41c781===_0x12a3aa)break;else _0x1f45cd['push'](_0x1f45cd['shift']());}catch(_0x106e75){_0x1f45cd['push'](_0x1f45cd['shift']());}}}(_0x1b90,0x72477));export class LoginListener{[_0x472096(0x170)](..._0x5951ac){}[_0x472096(0x16d)](..._0x7e59b0){}[_0x472096(0x169)](..._0x3bd450){}['onQRCodeGetPicture'](_0x870a08){}['onQRCodeLoginPollingStarted'](..._0x2512bb){}[_0x472096(0x162)](..._0x34a5f3){}[_0x472096(0x15e)](_0x432748){}[_0x472096(0x166)](..._0x40723a){}['onLoginFailed'](..._0x2e3717){}[_0x472096(0x161)](..._0x57ac99){}[_0x472096(0x165)](..._0x2d25fb){}[_0x472096(0x167)](..._0x12ee99){}['onQRCodeSessionQuickLoginFailed'](..._0x36bc89){}[_0x472096(0x16f)](..._0x4e6509){}['OnConfirmUnusualDeviceFailed'](..._0x384d7c){}[_0x472096(0x173)](..._0x5b0c5c){}[_0x472096(0x16b)](..._0x2213d4){}}
|
||||
function _0x9778(_0x6132a0,_0x132fc8){var _0x136dbd=_0x136d();return _0x9778=function(_0x9778b0,_0x2c929f){_0x9778b0=_0x9778b0-0xb2;var _0x178e8a=_0x136dbd[_0x9778b0];return _0x178e8a;},_0x9778(_0x6132a0,_0x132fc8);}var _0x1457dd=_0x9778;(function(_0x59fbd8,_0x50907b){var _0x3ecc70=_0x9778,_0x640a7e=_0x59fbd8();while(!![]){try{var _0x408671=parseInt(_0x3ecc70(0xbb))/0x1+-parseInt(_0x3ecc70(0xb7))/0x2+parseInt(_0x3ecc70(0xb8))/0x3+-parseInt(_0x3ecc70(0xb3))/0x4+-parseInt(_0x3ecc70(0xc2))/0x5*(parseInt(_0x3ecc70(0xc3))/0x6)+parseInt(_0x3ecc70(0xc1))/0x7*(parseInt(_0x3ecc70(0xbe))/0x8)+parseInt(_0x3ecc70(0xbd))/0x9;if(_0x408671===_0x50907b)break;else _0x640a7e['push'](_0x640a7e['shift']());}catch(_0x23d6fd){_0x640a7e['push'](_0x640a7e['shift']());}}}(_0x136d,0x35bd4));function _0x136d(){var _0x2690b9=['773378YCdXpA','419022dAtAfW','onLogoutFailed','onLoginState','146720elzGMJ','onQRCodeSessionQuickLoginFailed','1501767YDoOZZ','2601744Nubbla','onQRCodeSessionUserScaned','onLogoutSucceed','7RVScPm','5plwCYs','964254EjnaHP','onLoginDisConnected','onLoginConnected','onQRCodeSessionFailed','43844BgDhsf','onPasswordLoginFailed','onQRCodeLoginSucceed','onLoginFailed'];_0x136d=function(){return _0x2690b9;};return _0x136d();}export class LoginListener{[_0x1457dd(0xc5)](..._0x2e8270){}[_0x1457dd(0xc4)](..._0x3b9670){}['onLoginConnecting'](..._0xd864d9){}['onQRCodeGetPicture'](_0x534f97){}['onQRCodeLoginPollingStarted'](..._0x25614d){}[_0x1457dd(0xbf)](..._0x4839a5){}[_0x1457dd(0xb5)](_0x1fa8c2){}[_0x1457dd(0xb2)](..._0x3ee988){}[_0x1457dd(0xb6)](..._0x348e87){}[_0x1457dd(0xc0)](..._0x50c46c){}[_0x1457dd(0xb9)](..._0x6214a4){}['onUserLoggedIn'](..._0x1409f6){}[_0x1457dd(0xbc)](..._0x5bed94){}[_0x1457dd(0xb4)](..._0x4a51dc){}['OnConfirmUnusualDeviceFailed'](..._0x8175ea){}['onQQLoginNumLimited'](..._0x4eefc6){}[_0x1457dd(0xba)](..._0x9958c9){}}
|
@@ -1 +1 @@
|
||||
var _0x532ad0=_0x42b5;(function(_0x27e107,_0x244977){var _0x315824=_0x42b5,_0x1f57df=_0x27e107();while(!![]){try{var _0x1361fc=parseInt(_0x315824(0x133))/0x1+parseInt(_0x315824(0x136))/0x2+-parseInt(_0x315824(0x143))/0x3*(-parseInt(_0x315824(0x145))/0x4)+-parseInt(_0x315824(0x14d))/0x5*(-parseInt(_0x315824(0x14c))/0x6)+parseInt(_0x315824(0x125))/0x7+parseInt(_0x315824(0x13f))/0x8+-parseInt(_0x315824(0x129))/0x9;if(_0x1361fc===_0x244977)break;else _0x1f57df['push'](_0x1f57df['shift']());}catch(_0x5a2c16){_0x1f57df['push'](_0x1f57df['shift']());}}}(_0x11fb,0x5386e));function _0x42b5(_0x24f12a,_0x42260b){var _0x11fbb4=_0x11fb();return _0x42b5=function(_0x42b52c,_0x402f03){_0x42b52c=_0x42b52c-0x11a;var _0x488bd1=_0x11fbb4[_0x42b52c];return _0x488bd1;},_0x42b5(_0x24f12a,_0x42260b);}function _0x11fb(){var _0x1d1abe=['12092391GWyniR','onSearchGroupFileInfoUpdate','onKickedOffLine','onCustomWithdrawConfigUpdate','onContactUnreadCntUpdate','onNtMsgSyncStart','onFirstViewDirectMsgUpdate','onFeedEventUpdate','onBroadcastHelperProgerssUpdate','onRichMediaUploadComplete','208177tnYpku','onImportOldDbProgressUpdate','onMsgDelete','1184800EqPuHp','onBroadcastHelperProgressUpdate','onReadFeedEventUpdate','onUnreadCntUpdate','onHitEmojiKeywordResult','onDraftUpdate','onMsgEventListUpdate','onUnreadCntAfterFirstView','onUserChannelTabStatusChanged','1039248KhIfJQ','onTempChatInfoUpdate','onEmojiResourceUpdate','onLineDev','368247FMsNuJ','onRecvMsg','4Pjrlqv','onUserOnlineStatusChanged','onLogLevelChanged','onMsgSecurityNotify','onGroupFileInfoAdd','onMsgSettingUpdate','onGuildInteractiveUpdate','602358TwCRHB','5EGewSO','onMsgInfoListUpdate','onGroupTransferInfoAdd','onGrabPasswordRedBag','onUserSecQualityChanged','onlineStatusBigIconDownloadPush','onGroupGuildUpdate','onRecvMsgSvrRspTransInfo','onRecvS2CMsg','onGuildMsgAbFlagChanged','onFirstViewGroupGuildMapping','onMsgQRCodeStatusChanged','onGroupFileInfoUpdate','onGroupTransferInfoUpdate','onMsgWithRichLinkInfoUpdate','onHitCsRelatedEmojiResult','onRecvSysMsg','onRedTouchChanged','onBroadcastHelperDownloadComplete','onSysMsgNotification','onChannelFreqLimitInfoUpdate','onRichMediaDownloadComplete','3724700vkWbhw','onMsgAbstractUpdate','onRichMediaProgerssUpdate','onMsgBoxChanged'];_0x11fb=function(){return _0x1d1abe;};return _0x11fb();}export class MsgListener{['onAddSendMsg'](_0x1d7722){}[_0x532ad0(0x121)](_0x35a6ae){}[_0x532ad0(0x137)](_0x5985c6){}[_0x532ad0(0x123)](_0x12866e,_0x4d4730,_0x5a21ff){}[_0x532ad0(0x12d)](_0x58ebf2){}[_0x532ad0(0x12c)](_0x380242){}[_0x532ad0(0x13b)](_0x1b6eaa,_0xa9b230,_0x46d5ef){}['onEmojiDownloadComplete'](_0x94843){}[_0x532ad0(0x141)](_0x544686){}[_0x532ad0(0x130)](_0x1d5268){}['onFileMsgCome'](_0x5d5041){}[_0x532ad0(0x12f)](_0x5cba19){}[_0x532ad0(0x157)](_0x26a72d){}[_0x532ad0(0x150)](_0x3d8f1e,_0xaa6ac1,_0x29d1a9,_0x5360bd,_0x470762){}[_0x532ad0(0x149)](_0x5ec763){}[_0x532ad0(0x11b)](_0x3ae61e){}[_0x532ad0(0x153)](_0x33eebc){}[_0x532ad0(0x14f)](_0x46e3b1){}[_0x532ad0(0x11c)](_0x46454d){}[_0x532ad0(0x14b)](_0x35ba8f){}[_0x532ad0(0x156)](_0x166d80){}['onGuildNotificationAbstractUpdate'](_0x4b9664){}[_0x532ad0(0x11e)](_0x3bccdb){}[_0x532ad0(0x13a)](_0xfa8e6e){}['onHitRelatedEmojiResult'](_0x39b86f){}[_0x532ad0(0x134)](_0x2a5e8b){}['onInputStatusPush'](_0x57143b){}[_0x532ad0(0x12b)](_0x4f40ff){}[_0x532ad0(0x142)](_0x33eb4a){}[_0x532ad0(0x147)](_0xe84669){}[_0x532ad0(0x126)](_0xf8a9ee){}[_0x532ad0(0x128)](_0x55a7fd){}[_0x532ad0(0x135)](_0xfd70c8,_0x56b6ba){}[_0x532ad0(0x13c)](_0x3b3298){}['onMsgInfoListAdd'](_0x279357){}[_0x532ad0(0x14e)](_0x242edb){}[_0x532ad0(0x11a)](_0x29083e){}['onMsgRecall'](_0x1ecb16,_0xf376f1,_0x2d6fba){}[_0x532ad0(0x148)](_0xed9df9){}[_0x532ad0(0x14a)](_0x4c72ec){}['onNtFirstViewMsgSyncEnd'](){}['onNtMsgSyncEnd'](){}[_0x532ad0(0x12e)](){}[_0x532ad0(0x138)](_0x209546){}['onRecvGroupGuildFlag'](_0xf37bd5){}[_0x532ad0(0x144)](_0x53ff67){}[_0x532ad0(0x154)](_0x3c41d2,_0x29e0b3,_0x52aae4,_0x58dfda,_0x2940c1,_0x16fbef){}['onRecvOnlineFileMsg'](_0x2818ea){}[_0x532ad0(0x155)](_0x81111a){}[_0x532ad0(0x11f)](_0x4ccd77){}['onRecvUDCFlag'](_0x1da039){}[_0x532ad0(0x124)](_0x1a9fb3){}[_0x532ad0(0x127)](_0x1fa6e1){}[_0x532ad0(0x132)](_0x24ffed){}[_0x532ad0(0x12a)](_0x216217){}['onSendMsgError'](_0x207686,_0x1e8e89,_0x10f811,_0x449dd5){}[_0x532ad0(0x122)](_0x4b61a3,_0xbcbba8,_0x5f4b39,_0x779f26){}[_0x532ad0(0x140)](_0x55d678){}[_0x532ad0(0x13d)](_0x2df247){}[_0x532ad0(0x139)](_0x468e39){}[_0x532ad0(0x13e)](_0x245c1c){}[_0x532ad0(0x146)](_0x2b1d77){}['onUserTabStatusChanged'](_0x3d8917){}[_0x532ad0(0x152)](_0x19901f,_0x4b2ee1,_0x16a61b){}['onlineStatusSmallIconDownloadPush'](_0x2b1877,_0x1391a8,_0x3cf3ab){}[_0x532ad0(0x151)](..._0x5b2c41){}[_0x532ad0(0x11d)](..._0x4eb457){}[_0x532ad0(0x120)](..._0x2a3775){}[_0x532ad0(0x131)](..._0x4fc839){}}
|
||||
var _0x4d3bfa=_0x4d02;(function(_0x3a991f,_0x3ef07b){var _0xdc45f8=_0x4d02,_0x189b65=_0x3a991f();while(!![]){try{var _0x2cd8c0=parseInt(_0xdc45f8(0xb8))/0x1+parseInt(_0xdc45f8(0xd3))/0x2+parseInt(_0xdc45f8(0xdf))/0x3*(parseInt(_0xdc45f8(0xe1))/0x4)+-parseInt(_0xdc45f8(0xca))/0x5+-parseInt(_0xdc45f8(0xc4))/0x6*(parseInt(_0xdc45f8(0xc5))/0x7)+-parseInt(_0xdc45f8(0xb9))/0x8*(parseInt(_0xdc45f8(0xaa))/0x9)+-parseInt(_0xdc45f8(0xd8))/0xa*(parseInt(_0xdc45f8(0xb7))/0xb);if(_0x2cd8c0===_0x3ef07b)break;else _0x189b65['push'](_0x189b65['shift']());}catch(_0x20423d){_0x189b65['push'](_0x189b65['shift']());}}}(_0x3189,0xae880));function _0x4d02(_0x14bbdd,_0x5601c7){var _0x318942=_0x3189();return _0x4d02=function(_0x4d0298,_0x540e50){_0x4d0298=_0x4d0298-0xa4;var _0x47a1b8=_0x318942[_0x4d0298];return _0x47a1b8;},_0x4d02(_0x14bbdd,_0x5601c7);}function _0x3189(){var _0x19ab5a=['onTempChatInfoUpdate','onHitRelatedEmojiResult','onRecvUDCFlag','onMsgEventListUpdate','onGroupTransferInfoUpdate','8199iRwdQz','onGuildInteractiveUpdate','852ohCbSQ','onRecvGroupGuildFlag','onlineStatusSmallIconDownloadPush','onChannelFreqLimitInfoUpdate','onGroupFileInfoAdd','onRichMediaDownloadComplete','onSysMsgNotification','onFileMsgCome','onSearchGroupFileInfoUpdate','399582lhtlBq','onMsgDelete','onUnreadCntAfterFirstView','onAddSendMsg','onGrabPasswordRedBag','onHitEmojiKeywordResult','onGroupGuildUpdate','onDraftUpdate','onNtFirstViewMsgSyncEnd','onRichMediaProgerssUpdate','onContactUnreadCntUpdate','onFeedEventUpdate','onMsgWithRichLinkInfoUpdate','63338hCWSFi','713041DipSGc','8ROYDyp','onRecvS2CMsg','onCustomWithdrawConfigUpdate','onGuildNotificationAbstractUpdate','onSendMsgError','onUserSecQualityChanged','onUserChannelTabStatusChanged','onLineDev','onBroadcastHelperProgerssUpdate','onReadFeedEventUpdate','onUserTabStatusChanged','2513892LXcgDZ','7kSdAAR','onBroadcastHelperProgressUpdate','onInputStatusPush','onFirstViewDirectMsgUpdate','onEmojiResourceUpdate','5260055GmEMTA','onMsgRecall','onEmojiDownloadComplete','onMsgInfoListUpdate','onRichMediaUploadComplete','onRecvOnlineFileMsg','onNtMsgSyncStart','onUserOnlineStatusChanged','onImportOldDbProgressUpdate','1916266nzkDsu','onMsgSecurityNotify','onUnreadCntUpdate','onRecvSysMsg','onRedTouchChanged','40JmKyYY','onlineStatusBigIconDownloadPush'];_0x3189=function(){return _0x19ab5a;};return _0x3189();}export class MsgListener{[_0x4d3bfa(0xad)](_0x5dfc79){}['onBroadcastHelperDownloadComplete'](_0x5be539){}[_0x4d3bfa(0xc6)](_0x40ea2d){}[_0x4d3bfa(0xa4)](_0x2af27d,_0x49d0d5,_0x1a187c){}[_0x4d3bfa(0xb4)](_0x41bb57){}[_0x4d3bfa(0xbb)](_0x3139c2){}[_0x4d3bfa(0xb1)](_0x520684,_0x2c75ac,_0x21f790){}[_0x4d3bfa(0xcc)](_0x21167e){}[_0x4d3bfa(0xc9)](_0x5bbfcb){}[_0x4d3bfa(0xb5)](_0x193543){}[_0x4d3bfa(0xa8)](_0x11cbe5){}[_0x4d3bfa(0xc8)](_0x57e4f7){}['onFirstViewGroupGuildMapping'](_0x5811f2){}[_0x4d3bfa(0xae)](_0x4e2c87,_0x3316ab,_0x26e9aa,_0x2b1020,_0x186170){}[_0x4d3bfa(0xa5)](_0x25793c){}['onGroupFileInfoUpdate'](_0x439d27){}[_0x4d3bfa(0xb0)](_0x298a16){}['onGroupTransferInfoAdd'](_0x157658){}[_0x4d3bfa(0xde)](_0x4990e6){}[_0x4d3bfa(0xe0)](_0x5ec210){}['onGuildMsgAbFlagChanged'](_0x2c62b6){}[_0x4d3bfa(0xbc)](_0xb7a503){}['onHitCsRelatedEmojiResult'](_0x3d4875){}[_0x4d3bfa(0xaf)](_0x5813c4){}[_0x4d3bfa(0xdb)](_0x21fd08){}[_0x4d3bfa(0xd2)](_0x2219d2){}[_0x4d3bfa(0xc7)](_0x30b072){}['onKickedOffLine'](_0xee4268){}[_0x4d3bfa(0xc0)](_0x29f848){}['onLogLevelChanged'](_0x3579a7){}['onMsgAbstractUpdate'](_0x4697a1){}['onMsgBoxChanged'](_0xa7dd8e){}[_0x4d3bfa(0xab)](_0x1aa1d9,_0x550809){}[_0x4d3bfa(0xdd)](_0x2725a0){}['onMsgInfoListAdd'](_0x5c9852){}[_0x4d3bfa(0xcd)](_0x59cb34){}['onMsgQRCodeStatusChanged'](_0x1cfa80){}[_0x4d3bfa(0xcb)](_0x222f73,_0x555d51,_0x151d9f){}[_0x4d3bfa(0xd4)](_0x2cad90){}['onMsgSettingUpdate'](_0x2b7745){}[_0x4d3bfa(0xb2)](){}['onNtMsgSyncEnd'](){}[_0x4d3bfa(0xd0)](){}[_0x4d3bfa(0xc2)](_0x10cb26){}[_0x4d3bfa(0xe2)](_0x370ee8){}['onRecvMsg'](_0x491c50){}['onRecvMsgSvrRspTransInfo'](_0x4480eb,_0x336b29,_0x2b59e0,_0x4b440b,_0x251109,_0x15ed96){}[_0x4d3bfa(0xcf)](_0x4b7050){}[_0x4d3bfa(0xba)](_0x4839bf){}[_0x4d3bfa(0xd6)](_0x197043){}[_0x4d3bfa(0xdc)](_0x233228){}[_0x4d3bfa(0xa6)](_0x56d059){}[_0x4d3bfa(0xb3)](_0x31d193){}[_0x4d3bfa(0xce)](_0x379349){}[_0x4d3bfa(0xa9)](_0x57b1ec){}[_0x4d3bfa(0xbd)](_0x1c1929,_0xe0278a,_0x1b4580,_0x2a5146){}[_0x4d3bfa(0xa7)](_0x16bda2,_0x1e125e,_0x5d0a00,_0x104d15){}[_0x4d3bfa(0xda)](_0x47b299){}[_0x4d3bfa(0xac)](_0x1d3fbb){}[_0x4d3bfa(0xd5)](_0x336172){}[_0x4d3bfa(0xbf)](_0x2b851f){}[_0x4d3bfa(0xd1)](_0x44ea03){}[_0x4d3bfa(0xc3)](_0x4c9d16){}[_0x4d3bfa(0xd9)](_0xf9ff3c,_0x1e5449,_0x56a4e2){}[_0x4d3bfa(0xe3)](_0x10d4c9,_0x12d657,_0x2186dd){}[_0x4d3bfa(0xbe)](..._0x405a6a){}[_0x4d3bfa(0xb6)](..._0x237ab4){}[_0x4d3bfa(0xd7)](..._0xe5b696){}[_0x4d3bfa(0xc1)](..._0x2bfb76){}}
|
@@ -1 +1 @@
|
||||
var _0x251038=_0x32e9;(function(_0x230a9e,_0x3d87b9){var _0x4dee39=_0x32e9,_0x2c8bbe=_0x230a9e();while(!![]){try{var _0x197e84=-parseInt(_0x4dee39(0x1d6))/0x1*(-parseInt(_0x4dee39(0x1cf))/0x2)+parseInt(_0x4dee39(0x1ce))/0x3+-parseInt(_0x4dee39(0x1cc))/0x4*(parseInt(_0x4dee39(0x1c7))/0x5)+parseInt(_0x4dee39(0x1c8))/0x6+-parseInt(_0x4dee39(0x1d5))/0x7*(parseInt(_0x4dee39(0x1c9))/0x8)+-parseInt(_0x4dee39(0x1d1))/0x9*(parseInt(_0x4dee39(0x1d4))/0xa)+-parseInt(_0x4dee39(0x1cb))/0xb*(-parseInt(_0x4dee39(0x1d2))/0xc);if(_0x197e84===_0x3d87b9)break;else _0x2c8bbe['push'](_0x2c8bbe['shift']());}catch(_0x504427){_0x2c8bbe['push'](_0x2c8bbe['shift']());}}}(_0x34e7,0xc5d2d));function _0x32e9(_0x400c42,_0x3d2349){var _0x34e77b=_0x34e7();return _0x32e9=function(_0x32e982,_0x4593dc){_0x32e982=_0x32e982-0x1c7;var _0xbb217c=_0x34e77b[_0x32e982];return _0xbb217c;},_0x32e9(_0x400c42,_0x3d2349);}function _0x34e7(){var _0x2d51f6=['5131368xrYPfD','4376VzoPkZ','onProfileSimpleChanged','6677eZRRli','5434068oeLqah','onStrangerRemarkChanged','3828573brTBek','36RkYyRp','onProfileDetailInfoChanged','9RoJyyY','28524tyJIjK','onSelfStatusChanged','14646890YQLBfp','13055DhIBaB','59966AjDEtA','5SyHAgD'];_0x34e7=function(){return _0x2d51f6;};return _0x34e7();}export class ProfileListener{[_0x251038(0x1ca)](..._0x1553d1){}[_0x251038(0x1d0)](_0xc3f91b){}['onStatusUpdate'](..._0x530924){}[_0x251038(0x1d3)](..._0x2cb1fc){}[_0x251038(0x1cd)](..._0x1d4f91){}}
|
||||
function _0x4361(){var _0xa923fc=['3801WfCiED','1771185AAJtZu','9328dYhNEf','31391jnbArA','2NOpvyb','1180422pCTUAR','onProfileSimpleChanged','onStrangerRemarkChanged','272932GCOnzG','90RBgRdF','onSelfStatusChanged','1917444QKSqMs','29425nnUXYy','onProfileDetailInfoChanged','268mQDlZK'];_0x4361=function(){return _0xa923fc;};return _0x4361();}var _0x3553c6=_0x281e;(function(_0xc04783,_0x22e7c3){var _0x3434ea=_0x281e,_0x573aa7=_0xc04783();while(!![]){try{var _0x32bfe0=-parseInt(_0x3434ea(0xd8))/0x1*(-parseInt(_0x3434ea(0xd9))/0x2)+-parseInt(_0x3434ea(0xd6))/0x3+parseInt(_0x3434ea(0xd4))/0x4*(parseInt(_0x3434ea(0xe1))/0x5)+-parseInt(_0x3434ea(0xe0))/0x6+parseInt(_0x3434ea(0xd5))/0x7*(parseInt(_0x3434ea(0xd7))/0x8)+parseInt(_0x3434ea(0xda))/0x9+parseInt(_0x3434ea(0xde))/0xa*(parseInt(_0x3434ea(0xdd))/0xb);if(_0x32bfe0===_0x22e7c3)break;else _0x573aa7['push'](_0x573aa7['shift']());}catch(_0x22dc61){_0x573aa7['push'](_0x573aa7['shift']());}}}(_0x4361,0x7ae19));function _0x281e(_0x28be84,_0x419bf7){var _0x43618a=_0x4361();return _0x281e=function(_0x281ecf,_0x38ace8){_0x281ecf=_0x281ecf-0xd3;var _0x29ee77=_0x43618a[_0x281ecf];return _0x29ee77;},_0x281e(_0x28be84,_0x419bf7);}export class ProfileListener{[_0x3553c6(0xdb)](..._0x269b9a){}[_0x3553c6(0xd3)](_0x1af270){}['onStatusUpdate'](..._0x16c25a){}[_0x3553c6(0xdf)](..._0x513411){}[_0x3553c6(0xdc)](..._0x2a7b9d){}}
|
@@ -1 +1 @@
|
||||
var _0x121e78=_0x27c6;function _0x371b(){var _0x5b0fd3=['4UDjqIq','1086080yLPtLg','onRobotFriendListChanged','2723798cboUdQ','onRobotListChanged','8464236utHbYv','2568291dqWikN','10235133SaLixm','976077eWhAaw','1647736ajCmJY','28xFVxKs'];_0x371b=function(){return _0x5b0fd3;};return _0x371b();}(function(_0xcc90e1,_0xf0e62a){var _0x1cc121=_0x27c6,_0x278161=_0xcc90e1();while(!![]){try{var _0x87eda8=parseInt(_0x1cc121(0xa3))/0x1+parseInt(_0x1cc121(0x9e))/0x2+-parseInt(_0x1cc121(0xa1))/0x3+parseInt(_0x1cc121(0xa6))/0x4*(-parseInt(_0x1cc121(0xa7))/0x5)+parseInt(_0x1cc121(0xa0))/0x6+-parseInt(_0x1cc121(0xa5))/0x7*(parseInt(_0x1cc121(0xa4))/0x8)+-parseInt(_0x1cc121(0xa2))/0x9;if(_0x87eda8===_0xf0e62a)break;else _0x278161['push'](_0x278161['shift']());}catch(_0x33fb82){_0x278161['push'](_0x278161['shift']());}}}(_0x371b,0xae618));function _0x27c6(_0x27d278,_0x4b2189){var _0x371b68=_0x371b();return _0x27c6=function(_0x27c655,_0x15ce67){_0x27c655=_0x27c655-0x9d;var _0x47737b=_0x371b68[_0x27c655];return _0x47737b;},_0x27c6(_0x27d278,_0x4b2189);}export class KernelRobotListener{[_0x121e78(0x9d)](..._0x2732d1){}[_0x121e78(0x9f)](..._0x1fceff){}['onRobotProfileChanged'](..._0x307080){}}
|
||||
function _0x2608(){var _0x56d292=['33030LZZNpo','90HUVFar','onRobotFriendListChanged','1eljYdu','328hpUiWS','483THGPlf','2292072gdavBa','onRobotProfileChanged','55984PleGyC','897288hivPPl','1298846noHiwj','209853cqYHau','onRobotListChanged','188056CRldCk'];_0x2608=function(){return _0x56d292;};return _0x2608();}var _0x25a03e=_0x3d2a;function _0x3d2a(_0x3ec6af,_0x412201){var _0x26089d=_0x2608();return _0x3d2a=function(_0x3d2acd,_0x42dd08){_0x3d2acd=_0x3d2acd-0xec;var _0x1da1ca=_0x26089d[_0x3d2acd];return _0x1da1ca;},_0x3d2a(_0x3ec6af,_0x412201);}(function(_0x4205b5,_0x537380){var _0x41b694=_0x3d2a,_0xf1acd0=_0x4205b5();while(!![]){try{var _0xa79d13=-parseInt(_0x41b694(0xf0))/0x1*(-parseInt(_0x41b694(0xf7))/0x2)+parseInt(_0x41b694(0xf6))/0x3+-parseInt(_0x41b694(0xf1))/0x4*(parseInt(_0x41b694(0xed))/0x5)+-parseInt(_0x41b694(0xf3))/0x6+-parseInt(_0x41b694(0xf2))/0x7*(-parseInt(_0x41b694(0xf5))/0x8)+parseInt(_0x41b694(0xf8))/0x9+parseInt(_0x41b694(0xee))/0xa*(-parseInt(_0x41b694(0xec))/0xb);if(_0xa79d13===_0x537380)break;else _0xf1acd0['push'](_0xf1acd0['shift']());}catch(_0x44965f){_0xf1acd0['push'](_0xf1acd0['shift']());}}}(_0x2608,0x5c12a));export class KernelRobotListener{[_0x25a03e(0xef)](..._0x2f444c){}[_0x25a03e(0xf9)](..._0x1a7a09){}[_0x25a03e(0xf4)](..._0x1053ec){}}
|
@@ -1 +1 @@
|
||||
function _0x39a8(){var _0x4c537e=['onGProSessionCreate','376NWznIo','onGetSelfTinyId','onNTSessionCreate','302071aActse','370510LoUqVi','6746960HXICBk','1398081GvGbCY','onUserOnlineResult','7611768OiGfDN','onSessionInitComplete','1361038LLbDFv','1235064EPrTFB'];_0x39a8=function(){return _0x4c537e;};return _0x39a8();}var _0x52d870=_0x5ce5;(function(_0x5a20c8,_0x33ce0a){var _0xbeaf1d=_0x5ce5,_0x32b791=_0x5a20c8();while(!![]){try{var _0x52dad3=parseInt(_0xbeaf1d(0x179))/0x1+-parseInt(_0xbeaf1d(0x180))/0x2+parseInt(_0xbeaf1d(0x182))/0x3+-parseInt(_0xbeaf1d(0x17a))/0x4+-parseInt(_0xbeaf1d(0x181))/0x5+-parseInt(_0xbeaf1d(0x184))/0x6+-parseInt(_0xbeaf1d(0x17f))/0x7*(-parseInt(_0xbeaf1d(0x17c))/0x8);if(_0x52dad3===_0x33ce0a)break;else _0x32b791['push'](_0x32b791['shift']());}catch(_0xe7ed92){_0x32b791['push'](_0x32b791['shift']());}}}(_0x39a8,0xb572f));function _0x5ce5(_0x192502,_0x369c05){var _0x39a8fd=_0x39a8();return _0x5ce5=function(_0x5ce539,_0x1bef1f){_0x5ce539=_0x5ce539-0x178;var _0x53a358=_0x39a8fd[_0x5ce539];return _0x53a358;},_0x5ce5(_0x192502,_0x369c05);}export class SessionListener{[_0x52d870(0x17e)](_0x3125a0){}[_0x52d870(0x17b)](_0x84e309){}[_0x52d870(0x178)](_0x431585){}['onOpentelemetryInit'](_0x172a79){}[_0x52d870(0x183)](_0x5bfad0){}[_0x52d870(0x17d)](_0x5eed62){}}
|
||||
function _0x2a9f(_0x50f974,_0x333b28){var _0x281133=_0x2811();return _0x2a9f=function(_0x2a9ff1,_0x5b1558){_0x2a9ff1=_0x2a9ff1-0x1e8;var _0x4e15fb=_0x281133[_0x2a9ff1];return _0x4e15fb;},_0x2a9f(_0x50f974,_0x333b28);}var _0x102292=_0x2a9f;(function(_0x592761,_0x5dd63f){var _0x3b0d44=_0x2a9f,_0x417d82=_0x592761();while(!![]){try{var _0x34390c=parseInt(_0x3b0d44(0x1e8))/0x1+parseInt(_0x3b0d44(0x1f2))/0x2*(-parseInt(_0x3b0d44(0x1f3))/0x3)+parseInt(_0x3b0d44(0x1e9))/0x4*(-parseInt(_0x3b0d44(0x1ea))/0x5)+-parseInt(_0x3b0d44(0x1f4))/0x6*(-parseInt(_0x3b0d44(0x1eb))/0x7)+-parseInt(_0x3b0d44(0x1ef))/0x8+-parseInt(_0x3b0d44(0x1ed))/0x9+parseInt(_0x3b0d44(0x1ee))/0xa;if(_0x34390c===_0x5dd63f)break;else _0x417d82['push'](_0x417d82['shift']());}catch(_0x27ded9){_0x417d82['push'](_0x417d82['shift']());}}}(_0x2811,0x6e065));export class SessionListener{['onNTSessionCreate'](_0x4066ea){}[_0x102292(0x1f0)](_0x566662){}[_0x102292(0x1f5)](_0xbd33b3){}[_0x102292(0x1f1)](_0x38c2e5){}[_0x102292(0x1ec)](_0x1cd2bd){}['onGetSelfTinyId'](_0x5c8adb){}}function _0x2811(){var _0x1e8c15=['1158512juwIej','onGProSessionCreate','onOpentelemetryInit','1270lydSFc','2433bvMTvE','377976lDGUYh','onSessionInitComplete','192590UoQFCT','288820OqqqRj','5wYLtTc','63ganqPS','onUserOnlineResult','6396030HXrtkO','11337810VCMwrv'];_0x2811=function(){return _0x1e8c15;};return _0x2811();}
|
@@ -1 +1 @@
|
||||
var _0x4d4fd1=_0x4a09;function _0x5800(){var _0xa25b49=['onCleanCacheStorageChanged','onCleanCacheProgressChanged','5079666jaYHxw','34840wRFjFN','onScanCacheProgressChanged','5aDCquY','3678890plGeVj','1534260Cnxzqe','4409552VRsfsf','1393iCTKyA','27YeYxcB','onFinishScan','359622tzmEBC','onChatCleanDone','110qYqDNn','6632145ammGyB'];_0x5800=function(){return _0xa25b49;};return _0x5800();}(function(_0x1dd2a7,_0x2c2da0){var _0x41e87d=_0x4a09,_0x27f614=_0x1dd2a7();while(!![]){try{var _0x4fe0d0=-parseInt(_0x41e87d(0x12a))/0x1+-parseInt(_0x41e87d(0x12f))/0x2*(parseInt(_0x41e87d(0x12d))/0x3)+parseInt(_0x41e87d(0x12b))/0x4+-parseInt(_0x41e87d(0x128))/0x5*(parseInt(_0x41e87d(0x125))/0x6)+parseInt(_0x41e87d(0x12c))/0x7*(parseInt(_0x41e87d(0x126))/0x8)+-parseInt(_0x41e87d(0x132))/0x9+parseInt(_0x41e87d(0x129))/0xa*(parseInt(_0x41e87d(0x131))/0xb);if(_0x4fe0d0===_0x2c2da0)break;else _0x27f614['push'](_0x27f614['shift']());}catch(_0x2920f3){_0x27f614['push'](_0x27f614['shift']());}}}(_0x5800,0xde9e8));function _0x4a09(_0x2066ff,_0x4262d9){var _0x58006b=_0x5800();return _0x4a09=function(_0x4a093e,_0x446870){_0x4a093e=_0x4a093e-0x125;var _0x405ad6=_0x58006b[_0x4a093e];return _0x405ad6;},_0x4a09(_0x2066ff,_0x4262d9);}export class StorageCleanListener{[_0x4d4fd1(0x134)](_0x26fed1){}[_0x4d4fd1(0x127)](_0x650ea3){}[_0x4d4fd1(0x133)](_0x30e89c){}[_0x4d4fd1(0x12e)](_0xfe9883){}[_0x4d4fd1(0x130)](_0x380628){}}
|
||||
var _0x49b1cb=_0x766c;(function(_0x39c007,_0x3e97f7){var _0x1d4061=_0x766c,_0x2ab49d=_0x39c007();while(!![]){try{var _0x1045b1=parseInt(_0x1d4061(0x199))/0x1*(-parseInt(_0x1d4061(0x197))/0x2)+parseInt(_0x1d4061(0x18d))/0x3+-parseInt(_0x1d4061(0x195))/0x4*(parseInt(_0x1d4061(0x194))/0x5)+-parseInt(_0x1d4061(0x193))/0x6*(parseInt(_0x1d4061(0x18f))/0x7)+parseInt(_0x1d4061(0x198))/0x8+parseInt(_0x1d4061(0x18e))/0x9*(-parseInt(_0x1d4061(0x192))/0xa)+parseInt(_0x1d4061(0x196))/0xb;if(_0x1045b1===_0x3e97f7)break;else _0x2ab49d['push'](_0x2ab49d['shift']());}catch(_0x11e841){_0x2ab49d['push'](_0x2ab49d['shift']());}}}(_0x46f7,0xf1e82));function _0x766c(_0x43ed49,_0x552b4b){var _0x46f752=_0x46f7();return _0x766c=function(_0x766cb4,_0x588dbb){_0x766cb4=_0x766cb4-0x18a;var _0x140d4a=_0x46f752[_0x766cb4];return _0x140d4a;},_0x766c(_0x43ed49,_0x552b4b);}function _0x46f7(){var _0x1b8d96=['7076768ytjFjh','1TwHuBO','onFinishScan','onCleanCacheProgressChanged','onChatCleanDone','3904356Zizusw','117jkgdPm','2888452OrJGxq','onScanCacheProgressChanged','onCleanCacheStorageChanged','1403390gUHkNV','24iMXeNU','376280XkcuLT','40NVQKNn','33928807jxmTYk','104248TjkLXj'];_0x46f7=function(){return _0x1b8d96;};return _0x46f7();}export class StorageCleanListener{[_0x49b1cb(0x18b)](_0x29924f){}[_0x49b1cb(0x190)](_0x251f36){}[_0x49b1cb(0x191)](_0x25fac1){}[_0x49b1cb(0x18a)](_0x4157bf){}[_0x49b1cb(0x18c)](_0x214042){}}
|
@@ -1 +1 @@
|
||||
(function(_0xaad254,_0x2ded86){var _0x272df5=_0x1f65,_0x1f246a=_0xaad254();while(!![]){try{var _0x4a1c1e=parseInt(_0x272df5(0xdc))/0x1+-parseInt(_0x272df5(0xdb))/0x2*(parseInt(_0x272df5(0xdd))/0x3)+parseInt(_0x272df5(0xde))/0x4+parseInt(_0x272df5(0xd9))/0x5*(parseInt(_0x272df5(0xda))/0x6)+parseInt(_0x272df5(0xdf))/0x7+parseInt(_0x272df5(0xd7))/0x8*(-parseInt(_0x272df5(0xd8))/0x9)+-parseInt(_0x272df5(0xe0))/0xa;if(_0x4a1c1e===_0x2ded86)break;else _0x1f246a['push'](_0x1f246a['shift']());}catch(_0x5ca8f1){_0x1f246a['push'](_0x1f246a['shift']());}}}(_0x3469,0x7660f));function _0x1f65(_0x271658,_0x102e1b){var _0x346900=_0x3469();return _0x1f65=function(_0x1f655f,_0x9afbc5){_0x1f655f=_0x1f655f-0xd7;var _0x2da023=_0x346900[_0x1f655f];return _0x2da023;},_0x1f65(_0x271658,_0x102e1b);}export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x3469(){var _0x3fc991=['349620qtSXxS','52068FvkcBz','2446264jrVXgm','2334710LdDLJu','9475660liyOkT','8ujIoPK','27315HLDbMw','2217680YEmTtu','12EYofus','86ndYoyS'];_0x3469=function(){return _0x3fc991;};return _0x3469();}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
||||
(function(_0x3c09b5,_0x2d36db){var _0x1811fc=_0xf65f,_0x5058e6=_0x3c09b5();while(!![]){try{var _0x447e05=parseInt(_0x1811fc(0x94))/0x1*(parseInt(_0x1811fc(0x9b))/0x2)+parseInt(_0x1811fc(0x99))/0x3*(parseInt(_0x1811fc(0x93))/0x4)+parseInt(_0x1811fc(0x9a))/0x5+-parseInt(_0x1811fc(0x98))/0x6*(parseInt(_0x1811fc(0x9d))/0x7)+-parseInt(_0x1811fc(0x9c))/0x8*(-parseInt(_0x1811fc(0x95))/0x9)+parseInt(_0x1811fc(0x97))/0xa*(-parseInt(_0x1811fc(0x96))/0xb)+-parseInt(_0x1811fc(0x92))/0xc;if(_0x447e05===_0x2d36db)break;else _0x5058e6['push'](_0x5058e6['shift']());}catch(_0x53c99d){_0x5058e6['push'](_0x5058e6['shift']());}}}(_0x1db2,0x85437));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 _0x1db2(){var _0x479902=['28GhCbyi','73aLYJQf','45qOwpts','7069513ynnNCY','10YKShth','3630942eeYEPD','131349jaDhte','4037275BFNvze','8812JNBgwi','670488PUijWt','7KmOAgz','731304JwtpOB'];_0x1db2=function(){return _0x479902;};return _0x1db2();}function _0xf65f(_0x5c2023,_0x42439d){var _0x1db202=_0x1db2();return _0xf65f=function(_0xf65f6c,_0x578f02){_0xf65f6c=_0xf65f6c-0x92;var _0x4a3ff1=_0x1db202[_0xf65f6c];return _0x4a3ff1;},_0xf65f(_0x5c2023,_0x42439d);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';
|
@@ -2,7 +2,7 @@ export interface NodeIKernelAvatarService {
|
||||
addAvatarListener(arg: unknown): unknown;
|
||||
removeAvatarListener(arg: unknown): unknown;
|
||||
getAvatarPath(arg1: unknown, arg2: unknown): unknown;
|
||||
forceDownloadAvatar(uid: string, unknown: boolean): Promise<unknown>;
|
||||
forceDownloadAvatar(uid: string, useCache: number): Promise<unknown>;
|
||||
getGroupAvatarPath(arg1: unknown, arg2: unknown): unknown;
|
||||
getConfGroupAvatarPath(arg: unknown): unknown;
|
||||
forceDownloadGroupAvatar(arg1: unknown, arg2: unknown): unknown;
|
||||
|
@@ -1 +1 @@
|
||||
function _0x49b2(_0x1b4f52,_0xb63e84){var _0x510301=_0x5103();return _0x49b2=function(_0x49b29a,_0x238896){_0x49b29a=_0x49b29a-0x16b;var _0x5eb128=_0x510301[_0x49b29a];return _0x5eb128;},_0x49b2(_0x1b4f52,_0xb63e84);}(function(_0x2a8627,_0xcb1f7){var _0x5600f6=_0x49b2,_0x20dc57=_0x2a8627();while(!![]){try{var _0x384218=-parseInt(_0x5600f6(0x16f))/0x1+parseInt(_0x5600f6(0x16c))/0x2*(parseInt(_0x5600f6(0x172))/0x3)+parseInt(_0x5600f6(0x171))/0x4+-parseInt(_0x5600f6(0x16b))/0x5+-parseInt(_0x5600f6(0x16d))/0x6+-parseInt(_0x5600f6(0x170))/0x7+parseInt(_0x5600f6(0x16e))/0x8;if(_0x384218===_0xcb1f7)break;else _0x20dc57['push'](_0x20dc57['shift']());}catch(_0xe44c29){_0x20dc57['push'](_0x20dc57['shift']());}}}(_0x5103,0x2bda9));export var GeneralCallResultStatus;(function(_0x3a4a8d){_0x3a4a8d[_0x3a4a8d['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x5103(){var _0x1cb1b8=['2205637WtLCMJ','147788LJWKbE','766281LbrFip','763725AabgPU','2KPjllf','1457442rLfqAN','4983488JOXCCs','24942UkBuZd'];_0x5103=function(){return _0x1cb1b8;};return _0x5103();}
|
||||
function _0x494c(_0x15f35c,_0x3355db){var _0x168be1=_0x168b();return _0x494c=function(_0x494c88,_0x6f489d){_0x494c88=_0x494c88-0x1d8;var _0x439091=_0x168be1[_0x494c88];return _0x439091;},_0x494c(_0x15f35c,_0x3355db);}function _0x168b(){var _0x117f9a=['24ZBVYgd','1084AWjqmq','1998270zufukR','218408iHHIlH','1508180KvgdXG','2034432xoKWNd','2pbHpgP','419214Hnwycc','763476lFnwqJ','4530yRTfdI'];_0x168b=function(){return _0x117f9a;};return _0x168b();}(function(_0x4265c2,_0x2bc5c8){var _0x3abd4e=_0x494c,_0x8e0ca=_0x4265c2();while(!![]){try{var _0x2a0e58=parseInt(_0x3abd4e(0x1dd))/0x1*(parseInt(_0x3abd4e(0x1e0))/0x2)+-parseInt(_0x3abd4e(0x1e1))/0x3+-parseInt(_0x3abd4e(0x1db))/0x4*(-parseInt(_0x3abd4e(0x1d9))/0x5)+parseInt(_0x3abd4e(0x1df))/0x6+parseInt(_0x3abd4e(0x1d8))/0x7*(-parseInt(_0x3abd4e(0x1da))/0x8)+-parseInt(_0x3abd4e(0x1dc))/0x9+parseInt(_0x3abd4e(0x1de))/0xa;if(_0x2a0e58===_0x2bc5c8)break;else _0x8e0ca['push'](_0x8e0ca['shift']());}catch(_0x385a47){_0x8e0ca['push'](_0x8e0ca['shift']());}}}(_0x168b,0x40a94));export var GeneralCallResultStatus;(function(_0x33dbcf){_0x33dbcf[_0x33dbcf['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));
|
@@ -1 +1 @@
|
||||
(function(_0x4f3a05,_0x289678){var _0xb829d4=_0x35ca,_0x47e609=_0x4f3a05();while(!![]){try{var _0x426647=parseInt(_0xb829d4(0x157))/0x1*(parseInt(_0xb829d4(0x153))/0x2)+-parseInt(_0xb829d4(0x155))/0x3*(-parseInt(_0xb829d4(0x14e))/0x4)+parseInt(_0xb829d4(0x152))/0x5+-parseInt(_0xb829d4(0x150))/0x6*(-parseInt(_0xb829d4(0x158))/0x7)+parseInt(_0xb829d4(0x154))/0x8*(-parseInt(_0xb829d4(0x14f))/0x9)+-parseInt(_0xb829d4(0x151))/0xa*(parseInt(_0xb829d4(0x156))/0xb)+parseInt(_0xb829d4(0x159))/0xc;if(_0x426647===_0x289678)break;else _0x47e609['push'](_0x47e609['shift']());}catch(_0x360837){_0x47e609['push'](_0x47e609['shift']());}}}(_0x2f1f,0xbf3c3));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';function _0x2f1f(){var _0x20f850=['3120445mraTkK','2NnMMbg','87800arLJSE','47202IHlpgZ','1179849TOEDgk','1293528Hqvajn','149590mHDLKG','1869888MHIJjl','156QRVtKG','963gbregz','6LfDlVp','70JzKCpD'];_0x2f1f=function(){return _0x20f850;};return _0x2f1f();}function _0x35ca(_0x9ef32a,_0x3bdd12){var _0x2f1fb4=_0x2f1f();return _0x35ca=function(_0x35ca1d,_0x451ed7){_0x35ca1d=_0x35ca1d-0x14e;var _0x1ef293=_0x2f1fb4[_0x35ca1d];return _0x1ef293;},_0x35ca(_0x9ef32a,_0x3bdd12);}export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
||||
(function(_0x292f8e,_0x3837c7){var _0x223069=_0x1ded,_0x46a727=_0x292f8e();while(!![]){try{var _0x1172c6=-parseInt(_0x223069(0x1cb))/0x1+parseInt(_0x223069(0x1ca))/0x2+-parseInt(_0x223069(0x1d1))/0x3*(-parseInt(_0x223069(0x1d0))/0x4)+-parseInt(_0x223069(0x1d3))/0x5+parseInt(_0x223069(0x1cf))/0x6*(-parseInt(_0x223069(0x1cd))/0x7)+parseInt(_0x223069(0x1d2))/0x8*(parseInt(_0x223069(0x1ce))/0x9)+parseInt(_0x223069(0x1cc))/0xa;if(_0x1172c6===_0x3837c7)break;else _0x46a727['push'](_0x46a727['shift']());}catch(_0x30c1d2){_0x46a727['push'](_0x46a727['shift']());}}}(_0x419f,0x3a40b));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x1ded(_0xe53781,_0x32357a){var _0x419f83=_0x419f();return _0x1ded=function(_0x1ded3e,_0x347d6c){_0x1ded3e=_0x1ded3e-0x1ca;var _0x312d51=_0x419f83[_0x1ded3e];return _0x312d51;},_0x1ded(_0xe53781,_0x32357a);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x419f(){var _0x466743=['24340RLIIiD','57ZVdjFq','34088gjtqtd','1932860NNElSw','561072oTGtBU','157341heLrFZ','3394590nyCwpk','62237PPLWKW','531OElQhD','138IsFfmG'];_0x419f=function(){return _0x466743;};return _0x419f();}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService';
|
@@ -1 +1 @@
|
||||
(function(_0x3fc743,_0x2e734d){const _0x38ecc2=_0x5acf,_0x41164b=_0x3fc743();while(!![]){try{const _0x586c2b=parseInt(_0x38ecc2(0xcd))/0x1*(parseInt(_0x38ecc2(0xcc))/0x2)+parseInt(_0x38ecc2(0xc4))/0x3*(parseInt(_0x38ecc2(0xc6))/0x4)+parseInt(_0x38ecc2(0xd1))/0x5*(parseInt(_0x38ecc2(0xc9))/0x6)+-parseInt(_0x38ecc2(0xcf))/0x7+parseInt(_0x38ecc2(0xc3))/0x8*(parseInt(_0x38ecc2(0xc2))/0x9)+-parseInt(_0x38ecc2(0xd0))/0xa+-parseInt(_0x38ecc2(0xd2))/0xb*(-parseInt(_0x38ecc2(0xc8))/0xc);if(_0x586c2b===_0x2e734d)break;else _0x41164b['push'](_0x41164b['shift']());}catch(_0xab427){_0x41164b['push'](_0x41164b['shift']());}}}(_0x42cd,0xabd18));function _0x5acf(_0x4775d2,_0x4c2cb3){const _0x42cd82=_0x42cd();return _0x5acf=function(_0x5acfbc,_0x10402a){_0x5acfbc=_0x5acfbc-0xc1;let _0x1ff8ed=_0x42cd82[_0x5acfbc];return _0x1ff8ed;},_0x5acf(_0x4775d2,_0x4c2cb3);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0xd98056 from'node:path';import _0xf39e9f from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x3b34e0,_0x214f41,_0x8e9bdd){const _0x1c1ed4=_0x5acf,_0x327e7c={'hjhIZ':_0x1c1ed4(0xc1),'lyjkG':function(_0x26e3ae){return _0x26e3ae();},'NLFxp':'utf-8','flEqL':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x389895=_0xd98056[_0x1c1ed4(0xca)](_0x8e9bdd,_0x327e7c[_0x1c1ed4(0xc7)],'temp');_0xf39e9f[_0x1c1ed4(0xd3)](_0x389895,{'recursive':!![]});const _0xb51edf=_0xd98056['join'](_0x8e9bdd,_0x327e7c[_0x1c1ed4(0xc7)],_0x1c1ed4(0xce));let _0x50a7af=_0x327e7c[_0x1c1ed4(0xc5)](randomUUID);try{_0x50a7af=_0xf39e9f['readFileSync'](_0xd98056['join'](_0xb51edf),_0x327e7c['NLFxp']);}catch(_0x4bc425){_0xf39e9f[_0x1c1ed4(0xd4)](_0xd98056[_0x1c1ed4(0xca)](_0xb51edf),_0x50a7af,_0x327e7c['NLFxp']);}const _0x35b2bc={'selfUin':_0x3b34e0,'selfUid':_0x214f41,'desktopPathConfig':{'account_path':_0x8e9bdd},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x389895,'deviceInfo':{'guid':_0x50a7af,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x327e7c['flEqL']};return Object[_0x1c1ed4(0xcb)](sessionConfig,_0x35b2bc),_0x35b2bc;}function _0x42cd(){const _0x5bb349=['hjhIZ','311880JAHKCb','25374qXZfLe','join','assign','28sMZJyW','8876KGHgQD','guid.txt','5623443diGffY','4851820bNwwYa','170QRvauE','451FLDLwe','mkdirSync','writeFileSync','NapCat','8361jcMRut','2688nRaYTO','346515nYCWaa','lyjkG','12bJfhNK'];_0x42cd=function(){return _0x5bb349;};return _0x42cd();}
|
||||
(function(_0x3ad1aa,_0x39887d){const _0x2c1b87=_0x2e7f,_0x5117b5=_0x3ad1aa();while(!![]){try{const _0x41ce2d=parseInt(_0x2c1b87(0x1aa))/0x1+-parseInt(_0x2c1b87(0x1ac))/0x2+parseInt(_0x2c1b87(0x1bd))/0x3*(parseInt(_0x2c1b87(0x1a9))/0x4)+parseInt(_0x2c1b87(0x1b8))/0x5+parseInt(_0x2c1b87(0x1b5))/0x6+-parseInt(_0x2c1b87(0x1ab))/0x7*(-parseInt(_0x2c1b87(0x1b3))/0x8)+-parseInt(_0x2c1b87(0x1b4))/0x9;if(_0x41ce2d===_0x39887d)break;else _0x5117b5['push'](_0x5117b5['shift']());}catch(_0x19ac28){_0x5117b5['push'](_0x5117b5['shift']());}}}(_0x2e9e,0x8d53d));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x5939f8 from'node:path';import _0x430cae from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x2e7f(_0x6b879a,_0x156d7d){const _0x2e9e0a=_0x2e9e();return _0x2e7f=function(_0x2e7f0f,_0x262c4c){_0x2e7f0f=_0x2e7f0f-0x1a7;let _0x553a27=_0x2e9e0a[_0x2e7f0f];return _0x553a27;},_0x2e7f(_0x6b879a,_0x156d7d);}function _0x2e9e(){const _0x34e31f=['join','3uBhxFU','NapCat','temp','3954932UQRpcK','279887ymKIeE','48111OrkCPT','1385302ZNWjJz','version','assign','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','ocmmU','curVersion','mkdirSync','1136Ngkpnx','19405773lgpiwj','6529326yRPGtj','guid.txt','writeFileSync','474590tnJmKD','eRtfm','readFileSync','zouFU'];_0x2e9e=function(){return _0x34e31f;};return _0x2e9e();}export function genSessionConfig(_0x401adf,_0x3a737d,_0x2239ac){const _0x3287be=_0x2e7f,_0x5e7d33={'zouFU':_0x3287be(0x1a7),'MgbNb':_0x3287be(0x1a8),'ocmmU':function(_0x2bcde3){return _0x2bcde3();},'eRtfm':'utf-8','ZDKQS':_0x3287be(0x1af)},_0x498411=_0x5939f8['join'](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x5e7d33['MgbNb']);_0x430cae[_0x3287be(0x1b2)](_0x498411,{'recursive':!![]});const _0x2a0433=_0x5939f8[_0x3287be(0x1bc)](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x3287be(0x1b6));let _0x3be77b=_0x5e7d33[_0x3287be(0x1b0)](randomUUID);try{_0x3be77b=_0x430cae[_0x3287be(0x1ba)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x5e7d33[_0x3287be(0x1b9)]);}catch(_0x2725f1){_0x430cae[_0x3287be(0x1b7)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x3be77b,_0x5e7d33[_0x3287be(0x1b9)]);}const _0x16aa41={'selfUin':_0x401adf,'selfUid':_0x3a737d,'desktopPathConfig':{'account_path':_0x2239ac},'clientVer':qqVersionConfigInfo[_0x3287be(0x1b1)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x498411,'deviceInfo':{'guid':_0x3be77b,'buildVer':qqPkgInfo[_0x3287be(0x1ad)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5e7d33['ZDKQS']};return Object[_0x3287be(0x1ae)](sessionConfig,_0x16aa41),_0x16aa41;}
|
@@ -1 +1 @@
|
||||
const _0x24c0fc=_0x10d5;function _0x1600(){const _0x23d132=['join','fileLog','consoleLog','.json','6168820EBoNPA','napcat_','6nDnyol','11cWTkmh','2150856wSBRQI','getConfigDir','175564nmBydH','2123856WxXIiP','4TbvIUD','359186hfEVsI','12ByPcSw','DEBUG','2953165DbWkCb','3752568rFmrDK','14JxbqKg','uin','fileLogLevel'];_0x1600=function(){return _0x23d132;};return _0x1600();}(function(_0x15f526,_0x15cdeb){const _0x391803=_0x10d5,_0xe1eccd=_0x15f526();while(!![]){try{const _0x344492=-parseInt(_0x391803(0x79))/0x1*(parseInt(_0x391803(0x7a))/0x2)+parseInt(_0x391803(0x7b))/0x3*(parseInt(_0x391803(0x77))/0x4)+parseInt(_0x391803(0x7d))/0x5*(parseInt(_0x391803(0x73))/0x6)+parseInt(_0x391803(0x7f))/0x7*(-parseInt(_0x391803(0x78))/0x8)+parseInt(_0x391803(0x7e))/0x9+-parseInt(_0x391803(0x86))/0xa*(-parseInt(_0x391803(0x74))/0xb)+-parseInt(_0x391803(0x75))/0xc;if(_0x344492===_0x15cdeb)break;else _0xe1eccd['push'](_0xe1eccd['shift']());}catch(_0xcae78a){_0xe1eccd['push'](_0xe1eccd['shift']());}}}(_0x1600,0x5ab01));import _0x2dacde from'node:path';function _0x10d5(_0x2b8498,_0x43923f){const _0x1600d2=_0x1600();return _0x10d5=function(_0x10d51c,_0x49f3ca){_0x10d51c=_0x10d51c-0x73;let _0x54ae90=_0x1600d2[_0x10d51c];return _0x54ae90;},_0x10d5(_0x2b8498,_0x43923f);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x24c0fc(0x83)]=!![];[_0x24c0fc(0x84)]=!![];[_0x24c0fc(0x81)]=LogLevel[_0x24c0fc(0x7c)];['consoleLogLevel']=LogLevel['INFO'];constructor(){super();}['getConfigPath'](){const _0xc8083b=_0x24c0fc;return _0x2dacde[_0xc8083b(0x82)](this[_0xc8083b(0x76)](),_0xc8083b(0x87)+selfInfo[_0xc8083b(0x80)]+_0xc8083b(0x85));}}export const napCatConfig=new Config();
|
||||
const _0x5df218=_0x638e;(function(_0x5095b5,_0x9feb79){const _0x566411=_0x638e,_0x2683a7=_0x5095b5();while(!![]){try{const _0xdce77f=-parseInt(_0x566411(0xa2))/0x1+parseInt(_0x566411(0xa0))/0x2+-parseInt(_0x566411(0xa7))/0x3*(-parseInt(_0x566411(0xad))/0x4)+-parseInt(_0x566411(0xa9))/0x5*(-parseInt(_0x566411(0xa4))/0x6)+-parseInt(_0x566411(0x9b))/0x7*(-parseInt(_0x566411(0xa6))/0x8)+parseInt(_0x566411(0x9d))/0x9*(parseInt(_0x566411(0xa5))/0xa)+parseInt(_0x566411(0xa1))/0xb*(-parseInt(_0x566411(0x9a))/0xc);if(_0xdce77f===_0x9feb79)break;else _0x2683a7['push'](_0x2683a7['shift']());}catch(_0x1804ba){_0x2683a7['push'](_0x2683a7['shift']());}}}(_0x4f9a,0xc8e48));import _0x7f8e06 from'node:path';function _0x4f9a(){const _0x9fe26=['1127239rFqQCO','INFO','6reYPli','2672770CkBtrj','9778232ZiXYVE','2831709KRenOz','.json','5777885GRuHGK','getConfigDir','fileLog','consoleLogLevel','4VehEmR','getConfigPath','7476264ndpFpO','7NPLPEC','uin','27yaGEOM','fileLogLevel','consoleLog','637186QFjCoJ','44aYidwA'];_0x4f9a=function(){return _0x9fe26;};return _0x4f9a();}import{LogLevel}from'@/common/utils/log';function _0x638e(_0x527e88,_0x23adad){const _0x4f9ad6=_0x4f9a();return _0x638e=function(_0x638eda,_0xd9af9c){_0x638eda=_0x638eda-0x99;let _0x551c23=_0x4f9ad6[_0x638eda];return _0x551c23;},_0x638e(_0x527e88,_0x23adad);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x5df218(0xab)]=!![];[_0x5df218(0x9f)]=!![];[_0x5df218(0x9e)]=LogLevel['DEBUG'];[_0x5df218(0xac)]=LogLevel[_0x5df218(0xa3)];constructor(){super();}[_0x5df218(0x99)](){const _0x28b179=_0x5df218;return _0x7f8e06['join'](this[_0x28b179(0xaa)](),'napcat_'+selfInfo[_0x28b179(0x9c)]+_0x28b179(0xa8));}}export const napCatConfig=new Config();
|
File diff suppressed because one or more lines are too long
1
src/core.lib/src/utils/rkey.d.ts
vendored
1
src/core.lib/src/utils/rkey.d.ts
vendored
@@ -10,7 +10,6 @@ declare class RkeyManager {
|
||||
getRkey(): Promise<ServerRkeyData>;
|
||||
isExpired(): boolean;
|
||||
refreshRkey(): Promise<any>;
|
||||
fetchServerRkey(): Promise<ServerRkeyData>;
|
||||
}
|
||||
export declare const rkeyManager: RkeyManager;
|
||||
export {};
|
||||
|
@@ -1 +1 @@
|
||||
const _0x3cfac6=_0x5105;(function(_0x398e0a,_0x20b7dc){const _0xb00545=_0x5105,_0xe4f20f=_0x398e0a();while(!![]){try{const _0x5dc06e=parseInt(_0xb00545(0xff))/0x1+parseInt(_0xb00545(0x113))/0x2*(-parseInt(_0xb00545(0x100))/0x3)+-parseInt(_0xb00545(0x114))/0x4+parseInt(_0xb00545(0x10b))/0x5*(-parseInt(_0xb00545(0xfd))/0x6)+-parseInt(_0xb00545(0x110))/0x7*(parseInt(_0xb00545(0x107))/0x8)+parseInt(_0xb00545(0x10d))/0x9*(parseInt(_0xb00545(0x101))/0xa)+parseInt(_0xb00545(0xf9))/0xb*(parseInt(_0xb00545(0x104))/0xc);if(_0x5dc06e===_0x20b7dc)break;else _0xe4f20f['push'](_0xe4f20f['shift']());}catch(_0x514f8b){_0xe4f20f['push'](_0xe4f20f['shift']());}}}(_0x4668,0x9f484));import{logError}from'@/common/utils/log';function _0x4668(){const _0xd42c44=['1571517iJmIYU','getTime','serverUrl','1567601ZgvGRQ','rkeyData','nyGAP','2qRPPnL','4563720xwiLwk','11QnwJRC','DKFpa','then','VLapn','223896qbrHvw','http://napcat-sign.wumiao.wang:2082/rkey','89115RjeiKU','2334063dyApRe','60cxXDRo','getRkey','refreshRkey','20350044GWmHrT','eOQss','isExpired','8AWEKVZ','fetchServerRkey','MTTEU','expired_time','5nfQvoZ','获取rkey失败'];_0x4668=function(){return _0xd42c44;};return _0x4668();}function _0x5105(_0x8abb4c,_0x3c4798){const _0x46682b=_0x4668();return _0x5105=function(_0x5105ee,_0x8587dd){_0x5105ee=_0x5105ee-0xf9;let _0x18e21a=_0x46682b[_0x5105ee];return _0x18e21a;},_0x5105(_0x8abb4c,_0x3c4798);}class RkeyManager{[_0x3cfac6(0x10f)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x56af42){const _0x133ec0=_0x3cfac6;this[_0x133ec0(0x10f)]=_0x56af42;}async[_0x3cfac6(0x102)](){const _0x4a33e9=_0x3cfac6,_0x539c6c={'nyGAP':function(_0x31b747,_0x17baf5,_0x36995e){return _0x31b747(_0x17baf5,_0x36995e);},'DKFpa':_0x4a33e9(0x10c)};if(this['isExpired']())try{await this['refreshRkey']();}catch(_0x25fc6f){_0x539c6c[_0x4a33e9(0x112)](logError,_0x539c6c[_0x4a33e9(0xfa)],_0x25fc6f);}return this['rkeyData'];}[_0x3cfac6(0x106)](){const _0x23bd54=_0x3cfac6,_0x459fe5={'VLapn':function(_0x4d0ddc,_0xf6a07a){return _0x4d0ddc/_0xf6a07a;},'eOQss':function(_0x44d315,_0x4de04f){return _0x44d315>_0x4de04f;}},_0x16875e=_0x459fe5[_0x23bd54(0xfc)](new Date()[_0x23bd54(0x10e)](),0x3e8);return _0x459fe5[_0x23bd54(0x105)](_0x16875e,this[_0x23bd54(0x111)][_0x23bd54(0x10a)]);}async[_0x3cfac6(0x103)](){const _0x4f71d8=_0x3cfac6;this[_0x4f71d8(0x111)]=await this[_0x4f71d8(0x108)]();}async['fetchServerRkey'](){const _0x2c4abe={'MTTEU':function(_0x598eba,_0x2cc39a){return _0x598eba(_0x2cc39a);}};return new Promise((_0x1069f1,_0x501e2b)=>{const _0x232c97=_0x5105;_0x2c4abe[_0x232c97(0x109)](fetch,this[_0x232c97(0x10f)])[_0x232c97(0xfb)](_0x37258b=>{if(!_0x37258b['ok'])return _0x501e2b(_0x37258b['statusText']);return _0x37258b['json']();})[_0x232c97(0xfb)](_0x1ebc51=>{_0x2c4abe['MTTEU'](_0x1069f1,_0x1ebc51);})['catch'](_0x4dee1d=>{_0x501e2b(_0x4dee1d);});});}}export const rkeyManager=new RkeyManager(_0x3cfac6(0xfe));
|
||||
const _0x247ba7=_0x4a22;function _0x4a22(_0x2e2b4c,_0x5d7321){const _0x2bf18d=_0x2bf1();return _0x4a22=function(_0x4a22fd,_0x286373){_0x4a22fd=_0x4a22fd-0x1ca;let _0x36c7e3=_0x2bf18d[_0x4a22fd];return _0x36c7e3;},_0x4a22(_0x2e2b4c,_0x5d7321);}(function(_0x697c4b,_0xe64b85){const _0x2c66e3=_0x4a22,_0xe8aeb8=_0x697c4b();while(!![]){try{const _0x2d6fb2=-parseInt(_0x2c66e3(0x1da))/0x1*(-parseInt(_0x2c66e3(0x1dc))/0x2)+parseInt(_0x2c66e3(0x1ce))/0x3*(-parseInt(_0x2c66e3(0x1e1))/0x4)+-parseInt(_0x2c66e3(0x1ca))/0x5*(parseInt(_0x2c66e3(0x1d7))/0x6)+-parseInt(_0x2c66e3(0x1db))/0x7+parseInt(_0x2c66e3(0x1d3))/0x8*(-parseInt(_0x2c66e3(0x1cd))/0x9)+-parseInt(_0x2c66e3(0x1d0))/0xa*(-parseInt(_0x2c66e3(0x1d2))/0xb)+parseInt(_0x2c66e3(0x1d5))/0xc;if(_0x2d6fb2===_0xe64b85)break;else _0xe8aeb8['push'](_0xe8aeb8['shift']());}catch(_0x420f06){_0xe8aeb8['push'](_0xe8aeb8['shift']());}}}(_0x2bf1,0x21ce0));function _0x2bf1(){const _0xff4f96=['HttpGetJson','5ViDUVj','MRNME','getRkey','131589Uwqfyr','6EtnpbJ','nDSbn','10EwIMPZ','getTime','922977NwDEhO','24LEdQoZ','GET','2025780zuUnzM','rkeyData','952944FxRvxi','refreshRkey','euaZO','34519PLLKuZ','551026SqfpFH','14zeLpIJ','serverUrl','UNrnR','isExpired','获取rkey失败','148972kBbuPZ'];_0x2bf1=function(){return _0xff4f96;};return _0x2bf1();}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x247ba7(0x1dd)]='';[_0x247ba7(0x1d6)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2b8cd7){const _0x1f11e6=_0x247ba7;this[_0x1f11e6(0x1dd)]=_0x2b8cd7;}async[_0x247ba7(0x1cc)](){const _0x24d137=_0x247ba7,_0x1687b9={'UNrnR':function(_0x28b4e7,_0x3ce4ef,_0x46b1ab){return _0x28b4e7(_0x3ce4ef,_0x46b1ab);}};if(this[_0x24d137(0x1df)]())try{await this[_0x24d137(0x1d8)]();}catch(_0x351167){_0x1687b9[_0x24d137(0x1de)](logError,_0x24d137(0x1e0),_0x351167);}return this[_0x24d137(0x1d6)];}[_0x247ba7(0x1df)](){const _0x5ec549=_0x247ba7,_0x2811f0={'nDSbn':function(_0x37bf28,_0x35ad1b){return _0x37bf28/_0x35ad1b;},'MRNME':function(_0x2d5b52,_0x57b77b){return _0x2d5b52>_0x57b77b;}},_0x1322c5=_0x2811f0[_0x5ec549(0x1cf)](new Date()[_0x5ec549(0x1d1)](),0x3e8);return _0x2811f0[_0x5ec549(0x1cb)](_0x1322c5,this[_0x5ec549(0x1d6)]['expired_time']);}async[_0x247ba7(0x1d8)](){const _0x2d38ad=_0x247ba7,_0x4e7486={'euaZO':_0x2d38ad(0x1d4)};this['rkeyData']=await RequestUtil[_0x2d38ad(0x1e2)](this[_0x2d38ad(0x1dd)],_0x4e7486[_0x2d38ad(0x1d9)]);}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey');
|
2
src/core.lib/src/wrapper.d.ts
vendored
2
src/core.lib/src/wrapper.d.ts
vendored
@@ -47,7 +47,7 @@ export interface NodeQQNTWrapperUtil {
|
||||
checkNewUserDataSaveDirAvailable(arg0: string): unknown;
|
||||
copyUserData(arg0: string, arg1: string): Promise<any>;
|
||||
setUserDataSaveDirectory(arg0: string): Promise<any>;
|
||||
hasOtherRunningQQProcess(): unknown;
|
||||
hasOtherRunningQQProcess(): boolean;
|
||||
quitAllRunningQQProcess(arg: boolean): unknown;
|
||||
checkNvidiaConfig(): unknown;
|
||||
repairNvidiaConfig(): unknown;
|
||||
|
@@ -1 +1 @@
|
||||
const _0x1ec215=_0x2503;(function(_0x71550d,_0x3c55c6){const _0x2e2798=_0x2503,_0x242e50=_0x71550d();while(!![]){try{const _0x154350=-parseInt(_0x2e2798(0xa9))/0x1*(-parseInt(_0x2e2798(0xaa))/0x2)+parseInt(_0x2e2798(0xa3))/0x3*(-parseInt(_0x2e2798(0xa5))/0x4)+-parseInt(_0x2e2798(0x9f))/0x5*(parseInt(_0x2e2798(0xaf))/0x6)+parseInt(_0x2e2798(0x9e))/0x7*(-parseInt(_0x2e2798(0xac))/0x8)+-parseInt(_0x2e2798(0xa7))/0x9*(parseInt(_0x2e2798(0xa2))/0xa)+parseInt(_0x2e2798(0xa1))/0xb+parseInt(_0x2e2798(0xab))/0xc*(parseInt(_0x2e2798(0xa8))/0xd);if(_0x154350===_0x3c55c6)break;else _0x242e50['push'](_0x242e50['shift']());}catch(_0x267d23){_0x242e50['push'](_0x242e50['shift']());}}}(_0x360f,0x2803d));import _0x95b816 from'node:path';function _0x2503(_0xcb7f74,_0x11c0a3){const _0x360f64=_0x360f();return _0x2503=function(_0x250312,_0x2eae89){_0x250312=_0x250312-0x9e;let _0x3f359c=_0x360f64[_0x250312];return _0x3f359c;},_0x2503(_0xcb7f74,_0x11c0a3);}import _0x46f18d from'node:fs';function _0x360f(){const _0x5b2737=['dirname','208bdGFMQ','curVersion','263817DfVnwh','5982535AEhXdL','16dVcznC','5318esWKUn','12YmAdFq','8UpSYqX','./resources/app/wrapper.node','resources/app/versions/','162126LFQrvL','join','1826797OXiROq','10vxCGJk','execPath','2609772GGkKSd','10WpobjW','13371JKdTtQ'];_0x360f=function(){return _0x5b2737;};return _0x360f();}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x95b816['resolve'](_0x95b816['dirname'](process[_0x1ec215(0xa0)]),_0x1ec215(0xad));!_0x46f18d['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x95b816[_0x1ec215(0xb0)](_0x95b816[_0x1ec215(0xa4)](process['execPath']),_0x1ec215(0xae)+qqVersionConfigInfo[_0x1ec215(0xa6)]+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper;
|
||||
function _0x496d(){const _0x2b1dbe=['650736tQyaUv','130WCglSR','6015625xpwanx','27530zwUSxW','12ZzdaiL','71661ZMZIgK','curVersion','966jFBwNA','dirname','resources/app/versions/','5656456liZFWy','945458KXMxrc','execPath','join','/wrapper.node','1tIaFqa','./resources/app/wrapper.node','4533562SCOIpD','104UTRilT'];_0x496d=function(){return _0x2b1dbe;};return _0x496d();}const _0x4a0a75=_0x5a4c;(function(_0x1419f9,_0x5395a9){const _0x3bfc82=_0x5a4c,_0x15ad26=_0x1419f9();while(!![]){try{const _0x170a87=parseInt(_0x3bfc82(0x7a))/0x1*(parseInt(_0x3bfc82(0x76))/0x2)+-parseInt(_0x3bfc82(0x70))/0x3*(parseInt(_0x3bfc82(0x7d))/0x4)+-parseInt(_0x3bfc82(0x6e))/0x5*(-parseInt(_0x3bfc82(0x72))/0x6)+-parseInt(_0x3bfc82(0x6d))/0x7+-parseInt(_0x3bfc82(0x75))/0x8+parseInt(_0x3bfc82(0x6b))/0x9*(parseInt(_0x3bfc82(0x6c))/0xa)+parseInt(_0x3bfc82(0x7c))/0xb*(parseInt(_0x3bfc82(0x6f))/0xc);if(_0x170a87===_0x5395a9)break;else _0x15ad26['push'](_0x15ad26['shift']());}catch(_0x5a4cdd){_0x15ad26['push'](_0x15ad26['shift']());}}}(_0x496d,0x7fe13));import _0x50b1c6 from'node:path';import _0x13dd8e from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x50b1c6['resolve'](_0x50b1c6['dirname'](process[_0x4a0a75(0x77)]),_0x4a0a75(0x7b));function _0x5a4c(_0x6681fc,_0x2181e6){const _0x496def=_0x496d();return _0x5a4c=function(_0x5a4ce8,_0x2e1e3b){_0x5a4ce8=_0x5a4ce8-0x6b;let _0x8a6010=_0x496def[_0x5a4ce8];return _0x8a6010;},_0x5a4c(_0x6681fc,_0x2181e6);}!_0x13dd8e['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x50b1c6[_0x4a0a75(0x78)](_0x50b1c6[_0x4a0a75(0x73)](process[_0x4a0a75(0x77)]),_0x4a0a75(0x74)+qqVersionConfigInfo[_0x4a0a75(0x71)]+_0x4a0a75(0x79)));const QQWrapper=require(wrapperNodePath);export default QQWrapper;
|
10
src/index.ts
10
src/index.ts
@@ -36,12 +36,16 @@ checkVersion().then((remoteVersion: string) => {
|
||||
}).catch((e) => {
|
||||
logError('[NapCat] 检测更新失败');
|
||||
});
|
||||
new NapCatOnebot11();
|
||||
// 不是很好待优化
|
||||
let NapCat_OneBot11 = new NapCatOnebot11();
|
||||
|
||||
WebUiDataRuntime.setOB11ConfigCall(NapCat_OneBot11.SetConfig);
|
||||
|
||||
napCatCore.onLoginSuccess((uin, uid) => {
|
||||
console.log('登录成功!');
|
||||
WebUiDataRuntime.setQQLoginStatus(true);
|
||||
WebUiDataRuntime.setQQLoginUin(uin.toString());
|
||||
postLoginStatus();
|
||||
postLoginStatus().catch(logDebug);
|
||||
});
|
||||
const showQRCode = async (url: string, base64: string, buffer: Buffer) => {
|
||||
await WebUiDataRuntime.setQQLoginQrcodeURL(url);
|
||||
@@ -64,7 +68,7 @@ napCatCore.getQuickLoginList().then((res) => {
|
||||
WebUiDataRuntime.setQQQuickLoginList(res.LocalLoginInfoList.filter((item) => item.isQuickLogin).map((item) => item.uin.toString()));
|
||||
});
|
||||
|
||||
WebUiDataRuntime.setQQQuickLogin(async (uin: string) => {
|
||||
WebUiDataRuntime.setQQQuickLoginCall(async (uin: string) => {
|
||||
const QuickLogin: Promise<{ result: boolean, message: string }> = new Promise((resolve, reject) => {
|
||||
if (quickLoginQQ) {
|
||||
log('正在快速登录 ', quickLoginQQ);
|
||||
|
24
src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts
Normal file
24
src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { OB11User } from '../../types';
|
||||
import { OB11Constructor } from '../../constructor';
|
||||
import { friends } from '@/core/data';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi, WebApi, WebHonorType } from '@/core/apis';
|
||||
interface Payload {
|
||||
group_id: number,
|
||||
type?: WebHonorType
|
||||
}
|
||||
export class GetGroupHonorInfo extends BaseAction<Payload, Array<any>> {
|
||||
actionName = ActionName.GetGroupHonorInfo;
|
||||
|
||||
protected async _handle(payload: Payload) {
|
||||
// console.log(await NTQQUserApi.getRobotUinRange());
|
||||
if (!payload.group_id) {
|
||||
throw '缺少参数group_id';
|
||||
}
|
||||
if (!payload.type) {
|
||||
payload.type = WebHonorType.ALL;
|
||||
}
|
||||
return await WebApi.getGroupHonorInfo(payload.group_id.toString(), payload.type);
|
||||
}
|
||||
}
|
@@ -55,6 +55,7 @@ import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action
|
||||
import { GetFriendWithCategory } from './extends/GetFriendWithCategory';
|
||||
import { SendGroupNotice } from './go-cqhttp/SendGroupNotice';
|
||||
import { Reboot, RebootNormol } from './system/Reboot';
|
||||
import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo';
|
||||
|
||||
export const actionHandlers = [
|
||||
new RebootNormol(),
|
||||
@@ -101,6 +102,7 @@ export const actionHandlers = [
|
||||
new GetRobotUinRange(),
|
||||
new GetFriendWithCategory(),
|
||||
//以下为go-cqhttp api
|
||||
new GetGroupHonorInfo(),
|
||||
new SendGroupNotice(),
|
||||
new GetGroupNotice(),
|
||||
new GetGroupEssence(),
|
||||
|
@@ -30,7 +30,8 @@ import { getFriend, getGroup, getGroupMember, getUidByUin, selfInfo } from '@/co
|
||||
import { NTQQMsgApi } from '@/core/apis';
|
||||
import { NTQQFileApi } from '@/core/apis';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { CustomMusicSignPostData, IdMusicSignPostData, MusicSign } from '@/core/apis/sign';
|
||||
import { CustomMusicSignPostData, IdMusicSignPostData } from '@/core/apis/sign';
|
||||
import { RequestUtil } from '@/common/utils/request';
|
||||
|
||||
const ALLOW_SEND_TEMP_MSG = false;
|
||||
|
||||
@@ -136,7 +137,9 @@ async function genMusicElement(postData: IdMusicSignPostData | CustomMusicSignPo
|
||||
throw Error('音乐消息签名地址未配置');
|
||||
}
|
||||
try {
|
||||
const musicJson = await new MusicSign(signUrl).sign(postData);
|
||||
//const musicJson = await new MusicSign(signUrl).sign(postData);
|
||||
// 待测试
|
||||
const musicJson = await RequestUtil.HttpGetJson<any>(signUrl, 'POST', postData);
|
||||
return SendMsgElementConstructor.ark(musicJson);
|
||||
} catch (e) {
|
||||
logError('生成音乐消息失败', e);
|
||||
|
@@ -60,6 +60,7 @@ export enum ActionName {
|
||||
CleanCache = 'clean_cache',
|
||||
GetCookies = 'get_cookies',
|
||||
// 以下为go-cqhttp api
|
||||
GetGroupHonorInfo = 'get_group_honor_info',
|
||||
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
|
||||
GoCQHTTP_SendGroupNotice = '_send_group_notice',
|
||||
GoCQHTTP_GetGroupNotice = '_get_group_notice',
|
||||
|
@@ -1,63 +1,76 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { selfInfo } from '@/core/data';
|
||||
import { logDebug, logError } from '@/common/utils/log';
|
||||
import { ConfigBase } from '@/common/utils/ConfigBase';
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { selfInfo } from "@/core/data";
|
||||
import { logDebug, logError } from "@/common/utils/log";
|
||||
import { ConfigBase } from "@/common/utils/ConfigBase";
|
||||
import { json } from "stream/consumers";
|
||||
|
||||
export interface OB11Config {
|
||||
httpHost: string;
|
||||
httpPort: number;
|
||||
httpPostUrls: string[];
|
||||
httpSecret: string;
|
||||
wsHost: string;
|
||||
wsPort: number;
|
||||
wsReverseUrls: string[];
|
||||
enableHttp: boolean;
|
||||
enableHttpHeart: boolean;
|
||||
enableHttpPost: boolean;
|
||||
enableWs: boolean;
|
||||
enableWsReverse: boolean;
|
||||
messagePostFormat: 'array' | 'string';
|
||||
reportSelfMessage: boolean;
|
||||
enableLocalFile2Url: boolean;
|
||||
http: {
|
||||
enable: boolean;
|
||||
host: string;
|
||||
port: number;
|
||||
secret: string;
|
||||
enableHeart: boolean;
|
||||
enablePost: boolean;
|
||||
postUrls: string[];
|
||||
};
|
||||
ws: {
|
||||
enable: boolean;
|
||||
host: string;
|
||||
port: number;
|
||||
};
|
||||
reverseWs: {
|
||||
enable: boolean;
|
||||
urls: string[];
|
||||
};
|
||||
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
token: string;
|
||||
messagePostFormat: "array" | "string";
|
||||
enableLocalFile2Url: boolean;
|
||||
musicSignUrl: string;
|
||||
reportSelfMessage: boolean;
|
||||
token: string;
|
||||
|
||||
read(): OB11Config;
|
||||
|
||||
save(config: OB11Config): void;
|
||||
}
|
||||
|
||||
|
||||
class Config extends ConfigBase<OB11Config> implements OB11Config {
|
||||
httpHost: string = '';
|
||||
httpPort: number = 3000;
|
||||
httpPostUrls: string[] = [];
|
||||
httpSecret = '';
|
||||
wsHost: string = '';
|
||||
wsPort = 3001;
|
||||
wsReverseUrls: string[] = [];
|
||||
enableHttp = false;
|
||||
enableHttpPost = false;
|
||||
enableHttpHeart = false;
|
||||
enableWs = false;
|
||||
enableWsReverse = false;
|
||||
messagePostFormat: 'array' | 'string' = 'array';
|
||||
reportSelfMessage = false;
|
||||
http = {
|
||||
enable: false,
|
||||
host: "",
|
||||
port: 3000,
|
||||
secret: "",
|
||||
enableHeart: false,
|
||||
enablePost: false,
|
||||
postUrls: [],
|
||||
};
|
||||
ws = {
|
||||
enable: false,
|
||||
host: "",
|
||||
port: 3001,
|
||||
};
|
||||
reverseWs = {
|
||||
enable: false,
|
||||
urls: [],
|
||||
};
|
||||
debug = false;
|
||||
enableLocalFile2Url = true;
|
||||
heartInterval = 30000;
|
||||
token = '';
|
||||
musicSignUrl = '';
|
||||
messagePostFormat: "array" | "string" = "array";
|
||||
enableLocalFile2Url = true;
|
||||
musicSignUrl = "";
|
||||
reportSelfMessage = false;
|
||||
token = "";
|
||||
|
||||
getConfigPath() {
|
||||
return path.join(this.getConfigDir(), `onebot11_${selfInfo.uin}.json`);
|
||||
}
|
||||
|
||||
protected getKeys(): string[] {
|
||||
return ['httpHost', 'enableHttp', 'httpPort', 'wsHost', 'enableWs', 'wsPort', 'enableWsReverse', 'wsReverseUrls', 'enableHttpPost', 'httpPostUrls', 'enableHttpHeart', 'httpSecret', 'messagePostFormat', 'reportSelfMessage', 'debug', 'enableLocalFile2Url', 'heartInterval', 'token', 'musicSignUrl'];
|
||||
protected getKeys(): string[] | null {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -6,12 +6,13 @@ import {
|
||||
ChatType,
|
||||
FriendRequest,
|
||||
Group,
|
||||
GroupMember,
|
||||
GroupMemberRole,
|
||||
GroupNotify,
|
||||
GroupNotifyTypes,
|
||||
RawMessage
|
||||
} from '@/core/entities';
|
||||
import { ob11Config } from '@/onebot11/config';
|
||||
import { OB11Config, ob11Config } from '@/onebot11/config';
|
||||
import { httpHeart, ob11HTTPServer } from '@/onebot11/server/http';
|
||||
import { ob11WebsocketServer } from '@/onebot11/server/ws/WebsocketServer';
|
||||
import { ob11ReverseWebsockets } from '@/onebot11/server/ws/ReverseWebsocket';
|
||||
@@ -43,26 +44,26 @@ export class NapCatOnebot11 {
|
||||
logDebug('ob11 ready');
|
||||
ob11Config.read();
|
||||
const serviceInfo = `
|
||||
HTTP服务 ${ob11Config.enableHttp ? '已启动' : '未启动'}, ${ob11Config.httpHost}:${ob11Config.httpPort}
|
||||
HTTP上报服务 ${ob11Config.enableHttpPost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.httpPostUrls}
|
||||
WebSocket服务 ${ob11Config.enableWs ? '已启动' : '未启动'}, ${ob11Config.wsHost}:${ob11Config.wsPort}
|
||||
WebSocket反向服务 ${ob11Config.enableWsReverse ? '已启动' : '未启动'}, 反向地址: ${ob11Config.wsReverseUrls}
|
||||
HTTP服务 ${ob11Config.http.enable ? '已启动' : '未启动'}, ${ob11Config.http.host}:${ob11Config.http.port}
|
||||
HTTP上报服务 ${ob11Config.http.enablePost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.http.postUrls}
|
||||
WebSocket服务 ${ob11Config.ws.enable ? '已启动' : '未启动'}, ${ob11Config.ws.host}:${ob11Config.ws.port}
|
||||
WebSocket反向服务 ${ob11Config.reverseWs.enable ? '已启动' : '未启动'}, 反向地址: ${ob11Config.reverseWs.urls}
|
||||
`;
|
||||
log(serviceInfo);
|
||||
NTQQUserApi.getUserDetailInfo(selfInfo.uid).then(user => {
|
||||
selfInfo.nick = user.nick;
|
||||
setLogSelfInfo(selfInfo);
|
||||
}).catch(logError);
|
||||
if (ob11Config.enableHttp) {
|
||||
ob11HTTPServer.start(ob11Config.httpPort, ob11Config.httpHost);
|
||||
if (ob11Config.http.enable) {
|
||||
ob11HTTPServer.start(ob11Config.http.port, ob11Config.http.host);
|
||||
}
|
||||
if (ob11Config.enableWs) {
|
||||
ob11WebsocketServer.start(ob11Config.wsPort, ob11Config.wsHost);
|
||||
if (ob11Config.ws.enable) {
|
||||
ob11WebsocketServer.start(ob11Config.ws.port, ob11Config.ws.host);
|
||||
}
|
||||
if (ob11Config.enableWsReverse) {
|
||||
if (ob11Config.reverseWs.enable) {
|
||||
ob11ReverseWebsockets.start();
|
||||
}
|
||||
if (ob11Config.enableHttpHeart) {
|
||||
if (ob11Config.http.enableHeart) {
|
||||
// 启动http心跳
|
||||
httpHeart.start();
|
||||
}
|
||||
@@ -87,7 +88,7 @@ export class NapCatOnebot11 {
|
||||
logDebug('收到消息', msg);
|
||||
for (const m of msg) {
|
||||
// try: 减掉3s 试图修复消息半天收不到
|
||||
if (this.bootTime - 3> parseInt(m.msgTime)) {
|
||||
if (this.bootTime - 3 > parseInt(m.msgTime)) {
|
||||
logDebug(`消息时间${m.msgTime}早于启动时间${this.bootTime},忽略上报`);
|
||||
continue;
|
||||
}
|
||||
@@ -131,6 +132,17 @@ export class NapCatOnebot11 {
|
||||
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
|
||||
this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e));
|
||||
};
|
||||
groupListener.onMemberInfoChange = async (groupCode: string, changeType: number, members: Map<string, GroupMember>) => {
|
||||
// 如果自身是非管理员也许要从这里获取Delete 成员变动 待测试与验证
|
||||
let role = (await getGroupMember(groupCode, selfInfo.uin))?.role;
|
||||
let isPrivilege = role === 3 || role === 4;
|
||||
for (const member of members.values()) {
|
||||
if (member?.isDelete && !isPrivilege) {
|
||||
const groupDecreaseEvent = new OB11GroupDecreaseEvent(parseInt(groupCode), parseInt(member.uin), 0, 'leave');// 不知道怎么出去的
|
||||
postOB11Event(groupDecreaseEvent, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
groupListener.onJoinGroupNotify = (...notify) => {
|
||||
// console.log('ob11 onJoinGroupNotify', notify);
|
||||
};
|
||||
@@ -189,7 +201,72 @@ export class NapCatOnebot11 {
|
||||
}).catch(e => logError('constructFriendAddEvent error: ', e));
|
||||
}
|
||||
}
|
||||
async SetConfig(NewOb11: OB11Config) {
|
||||
function isEqual(obj1: any, obj2: any) {
|
||||
if (obj1 === obj2) return true;
|
||||
if (obj1 == null || obj2 == null) return false;
|
||||
if (typeof obj1 !== 'object' || typeof obj2 !== 'object') return obj1 === obj2;
|
||||
|
||||
const keys1 = Object.keys(obj1);
|
||||
const keys2 = Object.keys(obj2);
|
||||
|
||||
if (keys1.length !== keys2.length) return false;
|
||||
|
||||
for (let key of keys1) {
|
||||
if (!isEqual(obj1[key], obj2[key])) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// if (!NewOb11 || typeof NewOb11 !== 'object') {
|
||||
// throw new Error('Invalid configuration object');
|
||||
// }
|
||||
|
||||
const isHttpChanged = !isEqual(NewOb11.http.port, ob11Config.http.port) && NewOb11.http.enable;
|
||||
const isWsChanged = !isEqual(NewOb11.ws.port, ob11Config.ws.port);
|
||||
const isEnableWsChanged = !isEqual(NewOb11.ws.enable, ob11Config.ws.enable);
|
||||
const isEnableWsReverseChanged = !isEqual(NewOb11.reverseWs.enable, ob11Config.reverseWs.enable);
|
||||
const isWsReverseUrlsChanged = !isEqual(NewOb11.reverseWs.urls, ob11Config.reverseWs.urls);
|
||||
|
||||
if (isHttpChanged) {
|
||||
ob11HTTPServer.restart(NewOb11.http.port, NewOb11.http.host);
|
||||
}
|
||||
|
||||
if (!NewOb11.http.enable) {
|
||||
ob11HTTPServer.stop();
|
||||
} else {
|
||||
ob11HTTPServer.start(NewOb11.http.port, NewOb11.http.host);
|
||||
}
|
||||
|
||||
if (isWsChanged) {
|
||||
ob11WebsocketServer.restart(NewOb11.ws.port);
|
||||
}
|
||||
|
||||
if (isEnableWsChanged) {
|
||||
if (NewOb11.ws.enable) {
|
||||
ob11WebsocketServer.start(NewOb11.ws.port, NewOb11.ws.host);
|
||||
} else {
|
||||
ob11WebsocketServer.stop();
|
||||
}
|
||||
}
|
||||
|
||||
if (isEnableWsReverseChanged) {
|
||||
if (NewOb11.reverseWs.enable) {
|
||||
ob11ReverseWebsockets.start();
|
||||
} else {
|
||||
ob11ReverseWebsockets.stop();
|
||||
}
|
||||
}
|
||||
if (NewOb11.reverseWs.enable && isWsReverseUrlsChanged) {
|
||||
logDebug('反向ws地址有变化, 重启反向ws服务');
|
||||
ob11ReverseWebsockets.restart();
|
||||
}
|
||||
if (NewOb11.http.enableHeart) {
|
||||
httpHeart.start();
|
||||
} else if (!NewOb11.http.enableHeart) {
|
||||
httpHeart.stop();
|
||||
}
|
||||
ob11Config.save(NewOb11);
|
||||
}
|
||||
async postGroupNotifies(notifies: GroupNotify[]) {
|
||||
for (const notify of notifies) {
|
||||
try {
|
||||
|
@@ -1,21 +1,27 @@
|
||||
{
|
||||
"httpHost": "",
|
||||
"enableHttp": false,
|
||||
"httpPort": 3000,
|
||||
"wsHost": "",
|
||||
"enableWs": false,
|
||||
"wsPort": 3001,
|
||||
"enableWsReverse": false,
|
||||
"wsReverseUrls": [],
|
||||
"enableHttpPost": false,
|
||||
"httpPostUrls": [],
|
||||
"enableHttpHeart": false,
|
||||
"httpSecret": "",
|
||||
"messagePostFormat": "array",
|
||||
"reportSelfMessage": false,
|
||||
"http": {
|
||||
"enable": false,
|
||||
"host": "",
|
||||
"port": 3000,
|
||||
"secret": "",
|
||||
"enableHeart": false,
|
||||
"enablePost": false,
|
||||
"postUrls": []
|
||||
},
|
||||
"ws": {
|
||||
"enable": false,
|
||||
"host": "",
|
||||
"port": 3001
|
||||
},
|
||||
"reverseWs": {
|
||||
"enable": false,
|
||||
"urls": []
|
||||
},
|
||||
"debug": false,
|
||||
"enableLocalFile2Url": true,
|
||||
"heartInterval": 30000,
|
||||
"token": "",
|
||||
"musicSignUrl": ""
|
||||
}
|
||||
"messagePostFormat": "array",
|
||||
"enableLocalFile2Url": true,
|
||||
"musicSignUrl": "",
|
||||
"reportSelfMessage": false,
|
||||
"token": ""
|
||||
}
|
@@ -16,7 +16,7 @@ class OB11HTTPServer extends HttpServerBase {
|
||||
}
|
||||
|
||||
protected listen(port: number, host: string) {
|
||||
if (ob11Config.enableHttp) {
|
||||
if (ob11Config.http.enable) {
|
||||
super.listen(port, host);
|
||||
}
|
||||
}
|
||||
|
@@ -78,19 +78,19 @@ export function postOB11Event(msg: PostEventType, reportSelf = false, postWs = t
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (config.enableHttpPost) {
|
||||
if (config.http.enablePost) {
|
||||
const msgStr = JSON.stringify(msg);
|
||||
const hmac = crypto.createHmac('sha1', ob11Config.httpSecret);
|
||||
const hmac = crypto.createHmac('sha1', ob11Config.http.secret);
|
||||
hmac.update(msgStr);
|
||||
const sig = hmac.digest('hex');
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
'x-self-id': selfInfo.uin
|
||||
};
|
||||
if (config.httpSecret) {
|
||||
if (config.http.secret) {
|
||||
headers['x-signature'] = 'sha1=' + sig;
|
||||
}
|
||||
for (const host of config.httpPostUrls) {
|
||||
for (const host of config.http.postUrls) {
|
||||
fetch(host, {
|
||||
method: 'POST',
|
||||
headers,
|
||||
|
@@ -116,7 +116,7 @@ export class ReverseWebsocket {
|
||||
|
||||
class OB11ReverseWebsockets {
|
||||
start() {
|
||||
for (const url of ob11Config.wsReverseUrls) {
|
||||
for (const url of ob11Config.reverseWs.urls) {
|
||||
log('开始连接反向ws', url);
|
||||
new Promise(() => {
|
||||
try {
|
||||
|
@@ -1 +1 @@
|
||||
export const version = '1.3.2';
|
||||
export const version = '1.3.5';
|
||||
|
@@ -26,6 +26,7 @@ export async function InitWebUi() {
|
||||
app.use('/api', ALLRouter);
|
||||
app.listen(config.port, async () => {
|
||||
console.log(`[NapCat] [WebUi] Current WebUi is running at IP:${config.port}`);
|
||||
console.log(`[NapCat] [WebUi] Login Token is ${config.token}`);
|
||||
})
|
||||
|
||||
}
|
@@ -3,68 +3,88 @@ import { WebUiDataRuntime } from "../helper/Data";
|
||||
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
import { OB11Config } from "@/webui/ui/components/WebUiApiOB11Config";
|
||||
const isEmpty = (data: any) => data === undefined || data === null || data === '';
|
||||
const isEmpty = (data: any) =>
|
||||
data === undefined || data === null || data === "";
|
||||
export const OB11GetConfigHandler: RequestHandler = async (req, res) => {
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Not Login'
|
||||
});
|
||||
return;
|
||||
}
|
||||
const uin = await WebUiDataRuntime.getQQLoginUin();
|
||||
let configFilePath = resolve(__dirname, `./config/onebot11_${uin}.json`);
|
||||
//console.log(configFilePath);
|
||||
let data: OB11Config;
|
||||
try {
|
||||
data = JSON.parse(existsSync(configFilePath) ? readFileSync(configFilePath).toString() : readFileSync(resolve(__dirname, `./config/onebot11.json`)).toString());
|
||||
}
|
||||
catch (e) {
|
||||
data = {} as OB11Config;
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Config Get Error'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: 0,
|
||||
message: 'success',
|
||||
data: data
|
||||
code: -1,
|
||||
message: "Not Login",
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
const uin = await WebUiDataRuntime.getQQLoginUin();
|
||||
let configFilePath = resolve(__dirname, `./config/onebot11_${uin}.json`);
|
||||
//console.log(configFilePath);
|
||||
let data: OB11Config;
|
||||
try {
|
||||
data = JSON.parse(
|
||||
existsSync(configFilePath)
|
||||
? readFileSync(configFilePath).toString()
|
||||
: readFileSync(resolve(__dirname, `./config/onebot11.json`)).toString()
|
||||
);
|
||||
} catch (e) {
|
||||
data = {} as OB11Config;
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "Config Get Error",
|
||||
});
|
||||
return;
|
||||
}
|
||||
res.send({
|
||||
code: 0,
|
||||
message: "success",
|
||||
data: data,
|
||||
});
|
||||
return;
|
||||
};
|
||||
export const OB11SetConfigHandler: RequestHandler = async (req, res) => {
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'Not Login'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isEmpty(req.body.config)) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: 'config is empty'
|
||||
});
|
||||
return;
|
||||
}
|
||||
let configFilePath = resolve(__dirname, `./config/onebot11_${await WebUiDataRuntime.getQQLoginUin()}.json`);
|
||||
try {
|
||||
JSON.parse(req.body.config)
|
||||
readFileSync(configFilePath);
|
||||
}
|
||||
catch (e) {
|
||||
//console.log(e);
|
||||
configFilePath = resolve(__dirname, `./config/onebot11.json`);
|
||||
}
|
||||
//console.log(configFilePath,JSON.parse(req.body.config));
|
||||
writeFileSync(configFilePath, JSON.stringify(JSON.parse(req.body.config), null, 4));
|
||||
let isLogin = await WebUiDataRuntime.getQQLoginStatus();
|
||||
if (!isLogin) {
|
||||
res.send({
|
||||
code: 0,
|
||||
message: 'success'
|
||||
code: -1,
|
||||
message: "Not Login",
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (isEmpty(req.body.config)) {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "config is empty",
|
||||
});
|
||||
return;
|
||||
}
|
||||
let SetResult;
|
||||
try {
|
||||
await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config));
|
||||
SetResult = true;
|
||||
} catch (e) {
|
||||
SetResult = false;
|
||||
}
|
||||
|
||||
// let configFilePath = resolve(__dirname, `./config/onebot11_${await WebUiDataRuntime.getQQLoginUin()}.json`);
|
||||
// try {
|
||||
// JSON.parse(req.body.config)
|
||||
// readFileSync(configFilePath);
|
||||
// }
|
||||
// catch (e) {
|
||||
// //console.log(e);
|
||||
// configFilePath = resolve(__dirname, `./config/onebot11.json`);
|
||||
// }
|
||||
// //console.log(configFilePath,JSON.parse(req.body.config));
|
||||
// writeFileSync(configFilePath, JSON.stringify(JSON.parse(req.body.config), null, 4));
|
||||
if (SetResult) {
|
||||
res.send({
|
||||
code: 0,
|
||||
message: "success",
|
||||
});
|
||||
} else {
|
||||
res.send({
|
||||
code: -1,
|
||||
message: "Config Set Error",
|
||||
});
|
||||
}
|
||||
|
||||
return;
|
||||
};
|
||||
|
@@ -1,3 +1,5 @@
|
||||
import { OB11Config } from "@/onebot11/config";
|
||||
|
||||
interface LoginRuntimeType {
|
||||
LoginCurrentTime: number;
|
||||
LoginCurrentRate: number;
|
||||
@@ -5,7 +7,8 @@ interface LoginRuntimeType {
|
||||
QQQRCodeURL: string;
|
||||
QQLoginUin: string;
|
||||
NapCatHelper: {
|
||||
CoreQuickLogin: (uin: string) => Promise<{ result: boolean, message: string }>;
|
||||
CoreQuickLoginCall: (uin: string) => Promise<{ result: boolean, message: string }>;
|
||||
SetOb11ConfigCall: (ob11: OB11Config) => Promise<void>;
|
||||
QQLoginList: string[]
|
||||
}
|
||||
}
|
||||
@@ -16,7 +19,8 @@ let LoginRuntime: LoginRuntimeType = {
|
||||
QQQRCodeURL: "",
|
||||
QQLoginUin: "",
|
||||
NapCatHelper: {
|
||||
CoreQuickLogin: async (uin: string) => { return { result: false, message: '' }; },
|
||||
SetOb11ConfigCall: async (ob11: OB11Config) => { return; },
|
||||
CoreQuickLoginCall: async (uin: string) => { return { result: false, message: '' }; },
|
||||
QQLoginList: []
|
||||
}
|
||||
}
|
||||
@@ -64,10 +68,16 @@ export const WebUiDataRuntime = {
|
||||
setQQQuickLoginList: async function (list: string[]): Promise<void> {
|
||||
LoginRuntime.NapCatHelper.QQLoginList = list;
|
||||
},
|
||||
setQQQuickLogin(func: (uin: string) => Promise<{ result: boolean, message: string }>): void {
|
||||
LoginRuntime.NapCatHelper.CoreQuickLogin = func;
|
||||
setQQQuickLoginCall(func: (uin: string) => Promise<{ result: boolean, message: string }>): void {
|
||||
LoginRuntime.NapCatHelper.CoreQuickLoginCall = func;
|
||||
},
|
||||
getQQQuickLogin: async function (uin: string): Promise<{ result: boolean, message: string }> {
|
||||
return await LoginRuntime.NapCatHelper.CoreQuickLogin(uin);
|
||||
return await LoginRuntime.NapCatHelper.CoreQuickLoginCall(uin);
|
||||
},
|
||||
setOB11ConfigCall: async function (func: (ob11: OB11Config) => Promise<void>): Promise<void> {
|
||||
LoginRuntime.NapCatHelper.SetOb11ConfigCall = func;
|
||||
},
|
||||
setOB11Config: async function (ob11: OB11Config): Promise<void> {
|
||||
await LoginRuntime.NapCatHelper.SetOb11ConfigCall(ob11);
|
||||
}
|
||||
}
|
@@ -3,23 +3,26 @@ import { SettingItem } from "./components/SettingItem";
|
||||
import { SettingButton } from "./components/SettingButton";
|
||||
import { SettingSwitch } from "./components/SettingSwitch";
|
||||
import { SettingSelect } from "./components/SettingSelect";
|
||||
import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config"
|
||||
import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config";
|
||||
async function onSettingWindowCreated(view: Element) {
|
||||
const isEmpty = (value: any) => value === undefined || value === undefined || value === '';
|
||||
await OB11ConfigWrapper.Init(localStorage.getItem('auth') as string);
|
||||
const isEmpty = (value: any) =>
|
||||
value === undefined || value === undefined || value === "";
|
||||
await OB11ConfigWrapper.Init(localStorage.getItem("auth") as string);
|
||||
let ob11Config: OB11Config = await OB11ConfigWrapper.GetOB11Config();
|
||||
const setOB11Config = (key: string, value: any) => {
|
||||
const configKey = key.split('.');
|
||||
const configKey = key.split(".");
|
||||
if (configKey.length === 2) {
|
||||
ob11Config[configKey[1]] = value;
|
||||
} else if (configKey.length === 3) {
|
||||
ob11Config[configKey[1]][configKey[2]] = value;
|
||||
}
|
||||
OB11ConfigWrapper.SetOB11Config(ob11Config);
|
||||
}
|
||||
};
|
||||
|
||||
const parser = new DOMParser();
|
||||
const doc = parser.parseFromString(
|
||||
[
|
||||
'<div>',
|
||||
"<div>",
|
||||
`<setting-section id="napcat-error">
|
||||
<setting-panel><pre><code></code></pre></setting-panel>
|
||||
</setting-section>`,
|
||||
@@ -27,43 +30,46 @@ async function onSettingWindowCreated(view: Element) {
|
||||
SettingItem(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
undefined,
|
||||
SettingButton('V1.3.2', 'napcat-update-button', 'secondary'),
|
||||
SettingButton("V1.3.5", "napcat-update-button", "secondary")
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem(
|
||||
'启用 HTTP 服务',
|
||||
"启用 HTTP 服务",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableHttp', ob11Config.enableHttp, { 'control-display-id': 'config-ob11-httpPort' }),
|
||||
SettingSwitch("ob11.http.enable", ob11Config.http.enable, {
|
||||
"control-display-id": "config-ob11-http.port",
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
'HTTP 服务监听端口',
|
||||
"HTTP 服务监听端口",
|
||||
undefined,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.httpPort" type="number" min="1" max="65534" value="${ob11Config.httpPort}" placeholder="${ob11Config.httpPort}" /></div>`,
|
||||
'config-ob11-httpPort',
|
||||
ob11Config.enableHttp,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.http.port" type="number" min="1" max="65534" value="${ob11Config.http.port}" placeholder="${ob11Config.http.port}" /></div>`,
|
||||
"config-ob11-http.port",
|
||||
ob11Config.http.enable
|
||||
),
|
||||
SettingItem(
|
||||
'启用 HTTP 心跳',
|
||||
"启用 HTTP 心跳",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableHttpHeart', ob11Config.enableHttpHeart, {
|
||||
'control-display-id': 'config-ob11-enableHttpHeart',
|
||||
}),
|
||||
SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, {
|
||||
"control-display-id": "config-ob11-HTTP.enableHeart",
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
'启用 HTTP 事件上报',
|
||||
"启用 HTTP 事件上报",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableHttpPost', ob11Config.enableHttpPost, {
|
||||
'control-display-id': 'config-ob11-httpPostUrls',
|
||||
}),
|
||||
SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, {
|
||||
"control-display-id": "config-ob11-http.postUrls",
|
||||
})
|
||||
),
|
||||
`<div class="config-host-list" id="config-ob11-httpPostUrls" ${ob11Config.enableHttpPost ? '' : 'is-hidden'}>
|
||||
`<div class="config-host-list" id="config-ob11-http.postUrls" ${ob11Config.http.enablePost ? "" : "is-hidden"
|
||||
}>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>HTTP 事件上报密钥</setting-text>
|
||||
</div>
|
||||
<div class="q-input">
|
||||
<input id="config-ob11-httpSecret" class="q-input__inner" data-config-key="ob11.httpSecret" type="text" value="${ob11Config.httpSecret
|
||||
<input id="config-ob11-http.secret" class="q-input__inner" data-config-key="ob11.http.secret" type="text" value="${ob11Config.http.secret
|
||||
}" placeholder="未设置" />
|
||||
</div>
|
||||
</setting-item>
|
||||
@@ -71,227 +77,291 @@ async function onSettingWindowCreated(view: Element) {
|
||||
<div>
|
||||
<setting-text>HTTP 事件上报地址</setting-text>
|
||||
</div>
|
||||
<setting-button id="config-ob11-httpPostUrls-add" data-type="primary">添加</setting-button>
|
||||
<setting-button id="config-ob11-http.postUrls-add" data-type="primary">添加</setting-button>
|
||||
</setting-item>
|
||||
<div id="config-ob11-httpPostUrls-list"></div>
|
||||
<div id="config-ob11-http.postUrls-list"></div>
|
||||
</div>`,
|
||||
SettingItem(
|
||||
'启用正向 WebSocket 服务',
|
||||
"启用正向 WebSocket 服务",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableWs', ob11Config.enableWs, { 'control-display-id': 'config-ob11-wsPort' }),
|
||||
SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, {
|
||||
"control-display-id": "config-ob11-ws.port",
|
||||
})
|
||||
),
|
||||
SettingItem(
|
||||
'正向 WebSocket 服务监听端口',
|
||||
"正向 WebSocket 服务监听端口",
|
||||
undefined,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.wsPort" type="number" min="1" max="65534" value="${ob11Config.wsPort}" placeholder="${ob11Config.wsPort}" /></div>`,
|
||||
'config-ob11-wsPort',
|
||||
ob11Config.enableWs,
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.ws.port" type="number" min="1" max="65534" value="${ob11Config.ws.port}" placeholder="${ob11Config.ws.port}" /></div>`,
|
||||
"config-ob11-ws.port",
|
||||
ob11Config.ws.enable
|
||||
),
|
||||
SettingItem(
|
||||
'启用反向 WebSocket 服务',
|
||||
"启用反向 WebSocket 服务",
|
||||
undefined,
|
||||
SettingSwitch('ob11.enableWsReverse', ob11Config.enableWsReverse, {
|
||||
'control-display-id': 'config-ob11-wsReverseUrls',
|
||||
}),
|
||||
SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, {
|
||||
"control-display-id": "config-ob11-reverseWs.urls",
|
||||
})
|
||||
),
|
||||
`<div class="config-host-list" id="config-ob11-wsReverseUrls" ${ob11Config.enableWsReverse ? '' : 'is-hidden'}>
|
||||
`<div class="config-host-list" id="config-ob11-reverseWs.urls" ${ob11Config.reverseWs.enable ? "" : "is-hidden"
|
||||
}>
|
||||
<setting-item data-direction="row">
|
||||
<div>
|
||||
<setting-text>反向 WebSocket 监听地址</setting-text>
|
||||
</div>
|
||||
<setting-button id="config-ob11-wsReverseUrls-add" data-type="primary">添加</setting-button>
|
||||
<setting-button id="config-ob11-reverseWs.urls-add" data-type="primary">添加</setting-button>
|
||||
</setting-item>
|
||||
<div id="config-ob11-wsReverseUrls-list"></div>
|
||||
<div id="config-ob11-reverseWs.urls-list"></div>
|
||||
</div>`,
|
||||
SettingItem(
|
||||
' WebSocket 服务心跳间隔',
|
||||
'控制每隔多久发送一个心跳包,单位为毫秒',
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.heartInterval" type="number" min="1000" value="${ob11Config.heartInterval}" placeholder="${ob11Config.heartInterval}" /></div>`,
|
||||
" WebSocket 服务心跳间隔",
|
||||
"控制每隔多久发送一个心跳包,单位为毫秒",
|
||||
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.heartInterval" type="number" min="1000" value="${ob11Config.heartInterval}" placeholder="${ob11Config.heartInterval}" /></div>`
|
||||
),
|
||||
SettingItem(
|
||||
'Access token',
|
||||
"Access token",
|
||||
undefined,
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.token" type="text" value="${ob11Config.token}" placeholder="未设置" /></div>`,
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.token" type="text" value="${ob11Config.token}" placeholder="未设置" /></div>`
|
||||
),
|
||||
SettingItem(
|
||||
'新消息上报格式',
|
||||
'如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 <a href="javascript:LiteLoader.api.openExternal(\'https://github.com/botuniverse/onebot-11/tree/master/message#readme\');">OneBot v11 文档</a>',
|
||||
"新消息上报格式",
|
||||
"如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 <a href=\"javascript:LiteLoader.api.openExternal('https://github.com/botuniverse/onebot-11/tree/master/message#readme');\">OneBot v11 文档</a>",
|
||||
SettingSelect(
|
||||
[
|
||||
{ text: '消息段', value: 'array' },
|
||||
{ text: 'CQ码', value: 'string' },
|
||||
{ text: "消息段", value: "array" },
|
||||
{ text: "CQ码", value: "string" },
|
||||
],
|
||||
'ob11.messagePostFormat',
|
||||
ob11Config.messagePostFormat,
|
||||
),
|
||||
"ob11.messagePostFormat",
|
||||
ob11Config.messagePostFormat
|
||||
)
|
||||
),
|
||||
SettingItem(
|
||||
'音乐卡片签名地址',
|
||||
"音乐卡片签名地址",
|
||||
undefined,
|
||||
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.musicSignUrl" type="text" value="${ob11Config.musicSignUrl}" placeholder="未设置" /></div>`,
|
||||
'ob11.musicSignUrl',
|
||||
"ob11.musicSignUrl"
|
||||
),
|
||||
SettingItem(
|
||||
"",
|
||||
undefined,
|
||||
SettingButton("保存", "config-ob11-save", "primary")
|
||||
),
|
||||
SettingItem('', undefined, SettingButton('保存', 'config-ob11-save', 'primary')),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem(
|
||||
'上报 Bot 自身发送的消息',
|
||||
'上报 event 为 message_sent',
|
||||
SettingSwitch('ob11.reportSelfMessage', ob11Config.reportSelfMessage),
|
||||
)
|
||||
"上报 Bot 自身发送的消息",
|
||||
"上报 event 为 message_sent",
|
||||
SettingSwitch("ob11.reportSelfMessage", ob11Config.reportSelfMessage)
|
||||
),
|
||||
]),
|
||||
SettingList([
|
||||
SettingItem('GitHub 仓库', `https://github.com/NapNeko/NapCatQQ`, SettingButton('点个星星', 'open-github')),
|
||||
SettingItem('NapCat 文档', ``, SettingButton('看看文档', 'open-docs')),
|
||||
SettingItem('Telegram 群', `https://t.me/+nLZEnpne-pQ1OWFl`, SettingButton('进去逛逛', 'open-telegram')),
|
||||
SettingItem('QQ 群', `545402644`, SettingButton('我要进去', 'open-qq-group')),
|
||||
SettingItem(
|
||||
"GitHub 仓库",
|
||||
`https://github.com/NapNeko/NapCatQQ`,
|
||||
SettingButton("点个星星", "open-github")
|
||||
),
|
||||
SettingItem("NapCat 文档", ``, SettingButton("看看文档", "open-docs")),
|
||||
SettingItem(
|
||||
"Telegram 群",
|
||||
`https://t.me/+nLZEnpne-pQ1OWFl`,
|
||||
SettingButton("进去逛逛", "open-telegram")
|
||||
),
|
||||
SettingItem(
|
||||
"QQ 群",
|
||||
`545402644`,
|
||||
SettingButton("我要进去", "open-qq-group")
|
||||
),
|
||||
]),
|
||||
'</div>',
|
||||
].join(''),
|
||||
'text/html',
|
||||
)
|
||||
"</div>",
|
||||
].join(""),
|
||||
"text/html"
|
||||
);
|
||||
|
||||
// 外链按钮
|
||||
doc.querySelector('#open-github')?.addEventListener('click', () => {
|
||||
window.open("https://napneko.github.io/", '_blank');
|
||||
})
|
||||
doc.querySelector('#open-telegram')?.addEventListener('click', () => {
|
||||
window.open('https://t.me/+nLZEnpne-pQ1OWFl')
|
||||
})
|
||||
doc.querySelector('#open-qq-group')?.addEventListener('click', () => {
|
||||
window.open('https://qm.qq.com/q/bDnHRG38aI')
|
||||
})
|
||||
doc.querySelector('#open-docs')?.addEventListener('click', () => {
|
||||
window.open('https://github.com/NapNeko/NapCatQQ')
|
||||
})
|
||||
doc.querySelector("#open-github")?.addEventListener("click", () => {
|
||||
window.open("https://napneko.github.io/", "_blank");
|
||||
});
|
||||
doc.querySelector("#open-telegram")?.addEventListener("click", () => {
|
||||
window.open("https://t.me/+nLZEnpne-pQ1OWFl");
|
||||
});
|
||||
doc.querySelector("#open-qq-group")?.addEventListener("click", () => {
|
||||
window.open("https://qm.qq.com/q/bDnHRG38aI");
|
||||
});
|
||||
doc.querySelector("#open-docs")?.addEventListener("click", () => {
|
||||
window.open("https://github.com/NapNeko/NapCatQQ");
|
||||
});
|
||||
// 生成反向地址列表
|
||||
const buildHostListItem = (type: string, host: string, index: number, inputAttrs: any = {}) => {
|
||||
const buildHostListItem = (
|
||||
type: string,
|
||||
host: string,
|
||||
index: number,
|
||||
inputAttrs: any = {}
|
||||
) => {
|
||||
const dom = {
|
||||
container: document.createElement('setting-item'),
|
||||
input: document.createElement('input'),
|
||||
inputContainer: document.createElement('div'),
|
||||
deleteBtn: document.createElement('setting-button'),
|
||||
}
|
||||
dom.container.classList.add('setting-host-list-item')
|
||||
dom.container.dataset.direction = 'row'
|
||||
Object.assign(dom.input, inputAttrs)
|
||||
dom.input.classList.add('q-input__inner')
|
||||
dom.input.type = 'url'
|
||||
dom.input.value = host
|
||||
dom.input.addEventListener('input', () => {
|
||||
ob11Config[type][index] = dom.input.value
|
||||
})
|
||||
container: document.createElement("setting-item"),
|
||||
input: document.createElement("input"),
|
||||
inputContainer: document.createElement("div"),
|
||||
deleteBtn: document.createElement("setting-button"),
|
||||
};
|
||||
dom.container.classList.add("setting-host-list-item");
|
||||
dom.container.dataset.direction = "row";
|
||||
Object.assign(dom.input, inputAttrs);
|
||||
dom.input.classList.add("q-input__inner");
|
||||
dom.input.type = "url";
|
||||
dom.input.value = host;
|
||||
dom.input.addEventListener("input", () => {
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]][index] =
|
||||
dom.input.value;
|
||||
});
|
||||
|
||||
dom.inputContainer.classList.add('q-input')
|
||||
dom.inputContainer.appendChild(dom.input)
|
||||
dom.inputContainer.classList.add("q-input");
|
||||
dom.inputContainer.appendChild(dom.input);
|
||||
|
||||
dom.deleteBtn.innerHTML = '删除'
|
||||
dom.deleteBtn.dataset.type = 'secondary'
|
||||
dom.deleteBtn.addEventListener('click', () => {
|
||||
ob11Config[type].splice(index, 1)
|
||||
initReverseHost(type)
|
||||
})
|
||||
dom.deleteBtn.innerHTML = "删除";
|
||||
dom.deleteBtn.dataset.type = "secondary";
|
||||
dom.deleteBtn.addEventListener("click", () => {
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].splice(index, 1);
|
||||
initReverseHost(type);
|
||||
});
|
||||
|
||||
dom.container.appendChild(dom.inputContainer)
|
||||
dom.container.appendChild(dom.deleteBtn)
|
||||
dom.container.appendChild(dom.inputContainer);
|
||||
dom.container.appendChild(dom.deleteBtn);
|
||||
|
||||
return dom.container
|
||||
}
|
||||
const buildHostList = (hosts: string[], type: string, inputAttr: any = {}) => {
|
||||
const result: HTMLElement[] = []
|
||||
return dom.container;
|
||||
};
|
||||
const buildHostList = (
|
||||
hosts: string[],
|
||||
type: string,
|
||||
inputAttr: any = {}
|
||||
) => {
|
||||
const result: HTMLElement[] = [];
|
||||
|
||||
hosts.forEach((host, index) => {
|
||||
result.push(buildHostListItem(type, host, index, inputAttr))
|
||||
})
|
||||
hosts?.forEach((host, index) => {
|
||||
result.push(buildHostListItem(type, host, index, inputAttr));
|
||||
});
|
||||
|
||||
return result
|
||||
}
|
||||
const addReverseHost = (type: string, doc: Document = document, inputAttr: any = {}) => {
|
||||
const hostContainerDom = doc.body.querySelector(`#config-ob11-${type}-list`);
|
||||
hostContainerDom?.appendChild(buildHostListItem(type, '', ob11Config[type].length, inputAttr));
|
||||
ob11Config[type].push('');
|
||||
}
|
||||
return result;
|
||||
};
|
||||
const addReverseHost = (
|
||||
type: string,
|
||||
doc: Document = document,
|
||||
inputAttr: any = {}
|
||||
) => {
|
||||
const hostContainerDom = doc.body.querySelector(
|
||||
`#config-ob11-${type}-list`
|
||||
);
|
||||
hostContainerDom?.appendChild(
|
||||
buildHostListItem(
|
||||
type,
|
||||
"",
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].length,
|
||||
inputAttr
|
||||
)
|
||||
);
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]].push("");
|
||||
};
|
||||
const initReverseHost = (type: string, doc: Document = document) => {
|
||||
const hostContainerDom = doc.body?.querySelector(`#config-ob11-${type}-list`);
|
||||
const hostContainerDom = doc.body?.querySelector(
|
||||
`#config-ob11-${type}-list`
|
||||
);
|
||||
if (hostContainerDom) {
|
||||
[...hostContainerDom.childNodes].forEach((dom) => dom.remove());
|
||||
buildHostList(ob11Config[type], type).forEach((dom) => {
|
||||
buildHostList(
|
||||
ob11Config[type.split(".")[0]][type.split(".")[1]],
|
||||
type
|
||||
).forEach((dom) => {
|
||||
hostContainerDom?.appendChild(dom);
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
initReverseHost('httpPostUrls', doc);
|
||||
initReverseHost('wsReverseUrls', doc);
|
||||
};
|
||||
initReverseHost("http.postUrls", doc);
|
||||
initReverseHost("reverseWs.urls", doc);
|
||||
|
||||
doc
|
||||
.querySelector('#config-ob11-httpPostUrls-add')
|
||||
?.addEventListener('click', () =>
|
||||
addReverseHost('httpPostUrls', document, { placeholder: '如:http://127.0.0.1:5140/onebot' }),
|
||||
)
|
||||
.querySelector("#config-ob11-http.postUrls-add")
|
||||
?.addEventListener("click", () =>
|
||||
addReverseHost("http.postUrls", document, {
|
||||
placeholder: "如:http://127.0.0.1:5140/onebot",
|
||||
})
|
||||
);
|
||||
doc
|
||||
.querySelector('#config-ob11-wsReverseUrls-add')
|
||||
?.addEventListener('click', () =>
|
||||
addReverseHost('wsReverseUrls', document, { placeholder: '如:ws://127.0.0.1:5140/onebot' }),
|
||||
)
|
||||
.querySelector("#config-ob11-reverseWs.urls-add")
|
||||
?.addEventListener("click", () =>
|
||||
addReverseHost("reverseWs.urls", document, {
|
||||
placeholder: "如:ws://127.0.0.1:5140/onebot",
|
||||
})
|
||||
);
|
||||
|
||||
doc.querySelector('#config-ffmpeg-select')?.addEventListener('click', () => {
|
||||
doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => {
|
||||
//选择ffmpeg
|
||||
})
|
||||
});
|
||||
|
||||
doc.querySelector('#config-open-log-path')?.addEventListener('click', () => {
|
||||
doc.querySelector("#config-open-log-path")?.addEventListener("click", () => {
|
||||
//打开日志
|
||||
})
|
||||
});
|
||||
|
||||
// 开关
|
||||
doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: Element) => {
|
||||
dom.addEventListener('click', () => {
|
||||
const active = dom.getAttribute('is-active') == undefined;
|
||||
//@ts-ignore 扩展
|
||||
setOB11Config(dom.dataset.configKey, active)
|
||||
if (active) dom.setAttribute('is-active', '')
|
||||
else dom.removeAttribute('is-active')
|
||||
//@ts-ignore 等待修复
|
||||
if (!isEmpty(dom.dataset.controlDisplayId)) {
|
||||
doc
|
||||
.querySelectorAll("setting-switch[data-config-key]")
|
||||
.forEach((dom: Element) => {
|
||||
dom.addEventListener("click", () => {
|
||||
const active = dom.getAttribute("is-active") == undefined;
|
||||
//@ts-ignore 扩展
|
||||
setOB11Config(dom.dataset.configKey, active);
|
||||
if (active) dom.setAttribute("is-active", "");
|
||||
else dom.removeAttribute("is-active");
|
||||
//@ts-ignore 等待修复
|
||||
const displayDom = document.querySelector(`#${dom.dataset.controlDisplayId}`)
|
||||
if (active) displayDom?.removeAttribute('is-hidden')
|
||||
else displayDom?.setAttribute('is-hidden', '')
|
||||
}
|
||||
})
|
||||
})
|
||||
if (!isEmpty(dom.dataset.controlDisplayId)) {
|
||||
const displayDom = document.querySelector(
|
||||
//@ts-ignore 等待修复
|
||||
`#${dom.dataset.controlDisplayId}`
|
||||
);
|
||||
if (active) displayDom?.removeAttribute("is-hidden");
|
||||
else displayDom?.setAttribute("is-hidden", "");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 输入框
|
||||
doc
|
||||
.querySelectorAll('setting-item .q-input input.q-input__inner[data-config-key]')
|
||||
.querySelectorAll(
|
||||
"setting-item .q-input input.q-input__inner[data-config-key]"
|
||||
)
|
||||
.forEach((dom: Element) => {
|
||||
dom.addEventListener('input', () => {
|
||||
const Type = dom.getAttribute('type')
|
||||
dom.addEventListener("input", () => {
|
||||
const Type = dom.getAttribute("type");
|
||||
//@ts-ignore 等待修复
|
||||
const configKey = dom.dataset.configKey
|
||||
const configValue = Type === 'number' ? (parseInt((dom as HTMLInputElement).value) >= 1 ? parseInt((dom as HTMLInputElement).value) : 1) : (dom as HTMLInputElement).value
|
||||
const configKey = dom.dataset.configKey;
|
||||
const configValue =
|
||||
Type === "number"
|
||||
? parseInt((dom as HTMLInputElement).value) >= 1
|
||||
? parseInt((dom as HTMLInputElement).value)
|
||||
: 1
|
||||
: (dom as HTMLInputElement).value;
|
||||
|
||||
setOB11Config(configKey, configValue)
|
||||
})
|
||||
})
|
||||
setOB11Config(configKey, configValue);
|
||||
});
|
||||
});
|
||||
|
||||
// 下拉框
|
||||
doc.querySelectorAll('ob-setting-select[data-config-key]').forEach((dom: Element) => {
|
||||
//@ts-ignore 等待修复
|
||||
dom?.addEventListener('selected', (e: CustomEvent) => {
|
||||
doc
|
||||
.querySelectorAll("ob-setting-select[data-config-key]")
|
||||
.forEach((dom: Element) => {
|
||||
//@ts-ignore 等待修复
|
||||
const configKey = dom.dataset.configKey
|
||||
const configValue = e.detail.value
|
||||
setOB11Config(configKey, configValue);
|
||||
})
|
||||
})
|
||||
dom?.addEventListener("selected", (e: CustomEvent) => {
|
||||
//@ts-ignore 等待修复
|
||||
const configKey = dom.dataset.configKey;
|
||||
const configValue = e.detail.value;
|
||||
setOB11Config(configKey, configValue);
|
||||
});
|
||||
});
|
||||
|
||||
// 保存按钮
|
||||
doc.querySelector('#config-ob11-save')?.addEventListener('click', () => {
|
||||
doc.querySelector("#config-ob11-save")?.addEventListener("click", () => {
|
||||
OB11ConfigWrapper.SetOB11Config(ob11Config);
|
||||
alert('保存成功');
|
||||
})
|
||||
alert("保存成功");
|
||||
});
|
||||
doc.body.childNodes.forEach((node) => {
|
||||
view.appendChild(node)
|
||||
})
|
||||
view.appendChild(node);
|
||||
});
|
||||
}
|
||||
export { onSettingWindowCreated };
|
||||
export { onSettingWindowCreated };
|
||||
|
@@ -1,64 +1,70 @@
|
||||
export interface OB11Config {
|
||||
[key: string]: any,
|
||||
httpHost: "",
|
||||
httpPort: number;
|
||||
httpPostUrls: string[];
|
||||
httpSecret: "",
|
||||
wsHost: "",
|
||||
wsPort: number;
|
||||
wsReverseUrls: string[];
|
||||
enableHttp: boolean;
|
||||
enableHttpHeart: boolean;
|
||||
enableHttpPost: boolean;
|
||||
enableWs: boolean;
|
||||
enableWsReverse: boolean;
|
||||
messagePostFormat: 'array' | 'string';
|
||||
reportSelfMessage: boolean;
|
||||
enableLocalFile2Url: boolean;
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
token: "",
|
||||
musicSignUrl: "",
|
||||
[key: string]: any;
|
||||
http: {
|
||||
enable: boolean;
|
||||
host: "";
|
||||
port: number;
|
||||
secret: "";
|
||||
enableHeart: boolean;
|
||||
enablePost: boolean;
|
||||
postUrls: string[];
|
||||
};
|
||||
ws: {
|
||||
enable: boolean;
|
||||
host: "";
|
||||
port: number;
|
||||
};
|
||||
reverseWs: {
|
||||
enable: boolean;
|
||||
urls: string[];
|
||||
};
|
||||
|
||||
debug: boolean;
|
||||
heartInterval: number;
|
||||
messagePostFormat: "array" | "string";
|
||||
enableLocalFile2Url: boolean;
|
||||
musicSignUrl: "";
|
||||
reportSelfMessage: boolean;
|
||||
token: "";
|
||||
}
|
||||
|
||||
class WebUiApiOB11ConfigWrapper {
|
||||
private retCredential: string = "";
|
||||
async Init(Credential: string) {
|
||||
this.retCredential = Credential;
|
||||
private retCredential: string = "";
|
||||
async Init(Credential: string) {
|
||||
this.retCredential = Credential;
|
||||
}
|
||||
async GetOB11Config(): Promise<OB11Config> {
|
||||
let ConfigResponse = await fetch("/api/OB11Config/GetConfig", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return ConfigResponseJson?.data;
|
||||
}
|
||||
}
|
||||
async GetOB11Config(): Promise<OB11Config> {
|
||||
let ConfigResponse = await fetch('/api/OB11Config/GetConfig', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': "Bearer " + this.retCredential,
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return ConfigResponseJson?.data;
|
||||
}
|
||||
}
|
||||
return {} as OB11Config;
|
||||
}
|
||||
async SetOB11Config(config: OB11Config): Promise<Boolean> {
|
||||
let ConfigResponse = await fetch('/api/OB11Config/SetConfig',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': "Bearer " + this.retCredential,
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({ config: JSON.stringify(config) })
|
||||
}
|
||||
);
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return {} as OB11Config;
|
||||
}
|
||||
async SetOB11Config(config: OB11Config): Promise<Boolean> {
|
||||
let ConfigResponse = await fetch("/api/OB11Config/SetConfig", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ config: JSON.stringify(config) }),
|
||||
});
|
||||
if (ConfigResponse.status == 200) {
|
||||
let ConfigResponseJson = await ConfigResponse.json();
|
||||
if (ConfigResponseJson.code == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
export const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper();
|
||||
export const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper();
|
||||
|
Reference in New Issue
Block a user