fix: buddylike

This commit is contained in:
手瓜一十雪
2024-07-20 20:16:45 +08:00
parent 9b0ac42cfc
commit 83d807a943
2 changed files with 13 additions and 21 deletions

View File

@@ -35,10 +35,10 @@ setTimeout(() => {
// }
// };
export class NTQQUserApi {
static async getProfileLike(uin: string) {
return napCatCore.session.getProfileLikeService().getBuddyProfileLike( {
static async getProfileLike(uid: string) {
return napCatCore.session.getProfileLikeService().getBuddyProfileLike({
"friendUids": [
(await NTQQUserApi.getUidByUin(uin))!
uid
],
"basic": 1,
"vote": 1,
@@ -221,7 +221,7 @@ export class NTQQUserApi {
if (Uin && Uin != 0 && !isNaN(Uin)) {
return true
}
logWarn("uin转换到uid时异常", Uid);
logWarn("uid转换到uin时异常", Uid);
return false;
})
static async getUinByUid(Uid: string | undefined) {