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;