From 2f9cd8ba19e91947ad00485deb21b4b5ee4647a0 Mon Sep 17 00:00:00 2001 From: Misa Liu Date: Tue, 27 Feb 2024 20:24:06 +0800 Subject: [PATCH] feat: Add `getDesktopTmpPath` to NTQQApi --- src/ntqqapi/ntcall.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ntqqapi/ntcall.ts b/src/ntqqapi/ntcall.ts index 6df1a49..500a5d0 100644 --- a/src/ntqqapi/ntcall.ts +++ b/src/ntqqapi/ntcall.ts @@ -42,6 +42,7 @@ export enum NTQQApiClass { FS_API = "ns-FsApi", OS_API = "ns-OsApi", HOTUPDATE_API = "ns-HotUpdateApi", + BUSINESS_API = "ns-BusinessApi", GLOBAL_DATA = "ns-GlobalDataApi" } @@ -732,6 +733,13 @@ export class NTQQApi { }); } + static getDesktopTmpPath() { + return callNTQQApi({ + className: NTQQApiClass.BUSINESS_API, + methodName: NTQQApiMethod.CACHE_PATH_DESKTOP_TEMP + }); + } + static getCacheSessionPathList() { return callNTQQApi<{ key: string,