mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: Use a specific IPC channel for cache related API
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
Reference in New Issue
Block a user