fix: buddylike
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / build-linux (arm64, linux) (push) Canceled after 0s
Build Release / build-linux (x64, linux) (push) Canceled after 0s
Build Release / build-win32 (ia32, win32) (push) Canceled after 0s
Build Release / build-win32 (x64, win32) (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
This commit is contained in:
1 parent
9aa4cd319c
commit
3da1659c8d
2 files changed
+13
-21
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user