From 74185f2d336d2841297955ea6474598ab2c66da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 13 Sep 2024 14:05:04 +0800 Subject: [PATCH] fix --- src/core/apis/user.ts | 4 +++- src/onebot/action/go-cqhttp/GetStrangerInfo.ts | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core/apis/user.ts b/src/core/apis/user.ts index b3860cab..e8483201 100644 --- a/src/core/apis/user.ts +++ b/src/core/apis/user.ts @@ -11,7 +11,9 @@ export class NTQQUserApi { this.context = context; this.core = core; } - + async getStatusByUid(uid: string) { + return this.context.session.getProfileService().getStatus(uid); + } async getProfileLike(uid: string) { return this.context.session.getProfileLikeService().getBuddyProfileLike({ friendUids: [uid], diff --git a/src/onebot/action/go-cqhttp/GetStrangerInfo.ts b/src/onebot/action/go-cqhttp/GetStrangerInfo.ts index 3081c4a2..e64c48d4 100644 --- a/src/onebot/action/go-cqhttp/GetStrangerInfo.ts +++ b/src/onebot/action/go-cqhttp/GetStrangerInfo.ts @@ -24,9 +24,9 @@ export default class GoCQHTTPGetStrangerInfo extends BaseAction