feat: Add getDesktopTmpPath to NTQQApi

This commit is contained in:
Misa Liu
2024-02-27 20:24:06 +08:00
parent 85d648622d
commit 2f9cd8ba19

View File

@@ -42,6 +42,7 @@ export enum NTQQApiClass {
FS_API = "ns-FsApi", FS_API = "ns-FsApi",
OS_API = "ns-OsApi", OS_API = "ns-OsApi",
HOTUPDATE_API = "ns-HotUpdateApi", HOTUPDATE_API = "ns-HotUpdateApi",
BUSINESS_API = "ns-BusinessApi",
GLOBAL_DATA = "ns-GlobalDataApi" GLOBAL_DATA = "ns-GlobalDataApi"
} }
@@ -732,6 +733,13 @@ export class NTQQApi {
}); });
} }
static getDesktopTmpPath() {
return callNTQQApi<string>({
className: NTQQApiClass.BUSINESS_API,
methodName: NTQQApiMethod.CACHE_PATH_DESKTOP_TEMP
});
}
static getCacheSessionPathList() { static getCacheSessionPathList() {
return callNTQQApi<{ return callNTQQApi<{
key: string, key: string,