mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: Uid转Uin
修复Uid转Uin兜底逻辑
This commit is contained in:
@@ -127,13 +127,16 @@ export class NTQQUserApi {
|
|||||||
return RetUser;
|
return RetUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getUserDetailInfo(uid: string) {
|
async getUserDetailInfo(uid: string): Promise<User> {
|
||||||
const ret = await this.fetchUserDetailInfo(uid, UserDetailSource.KDB);
|
try {
|
||||||
if (ret.uin === '0') {
|
let retUser = await this.fetchUserDetailInfo(uid, UserDetailSource.KDB);
|
||||||
this.context.logger.logDebug('[NapCat] [Mark] getUserDetailInfo Mode1 Failed.')
|
if (retUser.uin !== '0') {
|
||||||
return await this.fetchUserDetailInfo(uid, UserDetailSource.KSERVER);
|
return retUser;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
}
|
}
|
||||||
return ret;
|
this.context.logger.logDebug('[NapCat] [Mark] getUserDetailInfo Mode1 Failed.');
|
||||||
|
return this.fetchUserDetailInfo(uid, UserDetailSource.KSERVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
async modifySelfProfile(param: ModifyProfileParams) {
|
async modifySelfProfile(param: ModifyProfileParams) {
|
||||||
|
Reference in New Issue
Block a user