style: fix

This commit is contained in:
手瓜一十雪 2024-08-26 00:46:58 +08:00
parent 5f1d8fb99d
commit 90bbdbf2fe
2 changed files with 4 additions and 9 deletions

View File

@ -16,15 +16,11 @@ export async function solveProblem<T extends (...arg: any[]) => any>(func: T, ..
export async function solveAsyncProblem<T extends (...args: any[]) => Promise<any>>(func: T, ...args: Parameters<T>): Promise<Awaited<ReturnType<T>> | undefined> {
return new Promise<Awaited<ReturnType<T>> | undefined>((resolve) => {
try {
func(...args).then((result) => {
resolve(result);
}).catch((e) => {
resolve(undefined);
});
} catch (e) {
func(...args).then((result) => {
resolve(result);
}).catch((e) => {
resolve(undefined);
}
});
});
}
//下面这个类是用于将uid+msgid合并的类

View File

@ -331,7 +331,6 @@ export class NTQQGroupApi {
arkJson: string
}>>(
'NodeIKernelGroupService/getGroupRecommendContactArkJson',
5000,
GroupCode,
);
return ret.arkJson;