feat: 好友等级

This commit is contained in:
手瓜一十雪
2025-03-27 12:35:05 +08:00
parent 3e3609e0f2
commit b2e0cab702
5 changed files with 43 additions and 7 deletions

View File

@@ -93,8 +93,8 @@ export class NTQQUserApi {
return profile;
}
async getUserDetailInfo(uid: string): Promise<User> {
let profile = await solveAsyncProblem(async (uid) => this.fetchUserDetailInfo(uid, UserDetailSource.KDB), uid);
async getUserDetailInfo(uid: string, no_cache: boolean = false): Promise<User> {
let profile = await solveAsyncProblem(async (uid) => this.fetchUserDetailInfo(uid, no_cache ? UserDetailSource.KSERVER : UserDetailSource.KDB), uid);
if (profile && profile.uin !== '0' && profile.commonExt) {
return {
...profile.simpleInfo.status,

View File

@@ -207,6 +207,7 @@ interface PhotoWall {
// 简单信息
export interface SimpleInfo {
qqLevel?: QQLevel;//临时添加
uid?: string;
uin?: string;
coreInfo: CoreInfo;