fix: replace deprecated calls

This commit is contained in:
Wesley F. Young committed 2024-08-12 08:20:11 +08:00
1 parent 257135763f
commit a88c37ea56
18 files changed
+54 -54

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ class MarkMsgAsRead extends BaseAction<PlayloadType, null> {
const NTQQUserApi = this.CoreContext.apis.UserApi;
const NTQQFriendApi = this.CoreContext.apis.FriendApi;
if (payload.user_id) {
const peerUid = await NTQQUserApi.getUidByUin(payload.user_id.toString());
const peerUid = await NTQQUserApi.getUidByUinV2(payload.user_id.toString());
if (!peerUid) {
throw `私聊${payload.user_id}不存在`;
}