From 748b51428c15048cca0cf4b5f8ea5be3fb2c7713 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 16:05:25 +0800 Subject: [PATCH] feat: createUidFromTinyId --- src/core/apis/user.ts | 4 ++++ src/core/services/NodeIKernelMsgService.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/apis/user.ts b/src/core/apis/user.ts index e8483201..8d0a4b56 100644 --- a/src/core/apis/user.ts +++ b/src/core/apis/user.ts @@ -11,6 +11,10 @@ export class NTQQUserApi { this.context = context; this.core = core; } + //self_tind格式 + async createUidFromTinyId(tinyId: string) { + return this.context.session.getMsgService().createUidFromTinyId(this.core.selfInfo.uin, tinyId); + } async getStatusByUid(uid: string) { return this.context.session.getProfileService().getStatus(uid); } diff --git a/src/core/services/NodeIKernelMsgService.ts b/src/core/services/NodeIKernelMsgService.ts index d657bd91..daefbfce 100644 --- a/src/core/services/NodeIKernelMsgService.ts +++ b/src/core/services/NodeIKernelMsgService.ts @@ -617,7 +617,7 @@ export interface NodeIKernelMsgService { setIKernelPublicAccountAdapter(...args: unknown[]): unknown; //tempChatGameSession有关 - createUidFromTinyId(fromTinyId: string, toTinyId: string): unknown; + createUidFromTinyId(fromTinyId: string, toTinyId: string): string; dataMigrationGetDataAvaiableContactList(...args: unknown[]): unknown;