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 = {}) {
|
static addCacheScannedPaths(pathMap: object = {}) {
|
||||||
return callNTQQApi({
|
return callNTQQApi({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
methodName: NTQQApiMethod.CACHE_ADD_SCANNED_PATH,
|
methodName: NTQQApiMethod.CACHE_ADD_SCANNED_PATH,
|
||||||
args: [{
|
args: [{
|
||||||
pathMap: {...pathMap},
|
pathMap: {...pathMap},
|
||||||
@@ -737,6 +738,7 @@ export class NTQQApi {
|
|||||||
|
|
||||||
static getHotUpdateCachePath() {
|
static getHotUpdateCachePath() {
|
||||||
return callNTQQApi<string>({
|
return callNTQQApi<string>({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
className: NTQQApiClass.HOTUPDATE_API,
|
className: NTQQApiClass.HOTUPDATE_API,
|
||||||
methodName: NTQQApiMethod.CACHE_PATH_HOT_UPDATE
|
methodName: NTQQApiMethod.CACHE_PATH_HOT_UPDATE
|
||||||
});
|
});
|
||||||
@@ -744,6 +746,7 @@ export class NTQQApi {
|
|||||||
|
|
||||||
static getDesktopTmpPath() {
|
static getDesktopTmpPath() {
|
||||||
return callNTQQApi<string>({
|
return callNTQQApi<string>({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
className: NTQQApiClass.BUSINESS_API,
|
className: NTQQApiClass.BUSINESS_API,
|
||||||
methodName: NTQQApiMethod.CACHE_PATH_DESKTOP_TEMP
|
methodName: NTQQApiMethod.CACHE_PATH_DESKTOP_TEMP
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user