fix: Use a specific IPC channel for cache related API

This commit is contained in:
Misa Liu
2024-02-27 21:27:20 +08:00
parent 839fd7f1ab
commit 6548876c74

View File

@@ -714,6 +714,7 @@ export class NTQQApi {
static addCacheScannedPaths(pathMap: object = {}) {
return callNTQQApi({
channel: NTQQApiChannel.IPC_UP_3,
methodName: NTQQApiMethod.CACHE_ADD_SCANNED_PATH,
args: [{
pathMap: {...pathMap},
@@ -737,6 +738,7 @@ export class NTQQApi {
static getHotUpdateCachePath() {
return callNTQQApi<string>({
channel: NTQQApiChannel.IPC_UP_3,
className: NTQQApiClass.HOTUPDATE_API,
methodName: NTQQApiMethod.CACHE_PATH_HOT_UPDATE
});
@@ -744,6 +746,7 @@ export class NTQQApi {
static getDesktopTmpPath() {
return callNTQQApi<string>({
channel: NTQQApiChannel.IPC_UP_3,
className: NTQQApiClass.BUSINESS_API,
methodName: NTQQApiMethod.CACHE_PATH_DESKTOP_TEMP
});