mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 21:09:23 +00:00
style: 规范写法
This commit is contained in:
parent
030ba15952
commit
169ae6a4d0
@ -387,8 +387,8 @@ export class NTQQFileApi {
|
|||||||
rkeyData.online_rkey = true;
|
rkeyData.online_rkey = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
|
this.context.logger.logError.bind(this.context.logger)('获取rkey失败', error.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rkeyData.online_rkey) {
|
if (!rkeyData.online_rkey) {
|
||||||
|
@ -288,9 +288,9 @@ export interface User {
|
|||||||
export interface SelfInfo extends User {
|
export interface SelfInfo extends User {
|
||||||
online?: boolean;
|
online?: boolean;
|
||||||
}
|
}
|
||||||
|
export type Friend = User;
|
||||||
|
|
||||||
export interface Friend extends User {
|
// 本来是 Friend extends User 现在用不到
|
||||||
}
|
|
||||||
|
|
||||||
export enum BizKey {
|
export enum BizKey {
|
||||||
KPRIVILEGEICON,
|
KPRIVILEGEICON,
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
export interface NodeIKernelECDHService {
|
export interface NodeIKernelECDHService {
|
||||||
|
sendOIDBECRequest: (data: Uint8Array) => Promise<Uint8Array>;
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,12 @@ function from(source: string) {
|
|||||||
if (!capture) return null;
|
if (!capture) return null;
|
||||||
const [, type, attrs] = capture;
|
const [, type, attrs] = capture;
|
||||||
const data: Record<string, any> = {};
|
const data: Record<string, any> = {};
|
||||||
attrs && attrs.slice(1).split(',').forEach((str) => {
|
if (attrs) {
|
||||||
const index = str.indexOf('=');
|
attrs.slice(1).split(',').forEach((str) => {
|
||||||
data[str.slice(0, index)] = unescape(str.slice(index + 1));
|
const index = str.indexOf('=');
|
||||||
});
|
data[str.slice(0, index)] = unescape(str.slice(index + 1));
|
||||||
|
});
|
||||||
|
}
|
||||||
return { type, data, capture };
|
return { type, data, capture };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user