mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
fix: Uid转Uin
修复Uid转Uin兜底逻辑
This commit is contained in:
parent
c4d7d5a0d4
commit
7a08187c5f
@ -127,13 +127,16 @@ export class NTQQUserApi {
|
||||
return RetUser;
|
||||
}
|
||||
|
||||
async getUserDetailInfo(uid: string) {
|
||||
const ret = await this.fetchUserDetailInfo(uid, UserDetailSource.KDB);
|
||||
if (ret.uin === '0') {
|
||||
this.context.logger.logDebug('[NapCat] [Mark] getUserDetailInfo Mode1 Failed.')
|
||||
return await this.fetchUserDetailInfo(uid, UserDetailSource.KSERVER);
|
||||
async getUserDetailInfo(uid: string): Promise<User> {
|
||||
try {
|
||||
let retUser = await this.fetchUserDetailInfo(uid, UserDetailSource.KDB);
|
||||
if (retUser.uin !== '0') {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user