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:
parent
b548fd3f0e
commit
6c267044f0
@ -702,6 +702,7 @@ export class NTQQApi {
|
|||||||
|
|
||||||
static async setCacheSilentScan(isSilent: boolean = true) {
|
static async setCacheSilentScan(isSilent: boolean = true) {
|
||||||
return await callNTQQApi({
|
return await callNTQQApi({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
methodName: NTQQApiMethod.CACHE_SET_SILENCE,
|
methodName: NTQQApiMethod.CACHE_SET_SILENCE,
|
||||||
args: [{
|
args: [{
|
||||||
isSilent
|
isSilent
|
||||||
@ -728,6 +729,7 @@ export class NTQQApi {
|
|||||||
key: string,
|
key: string,
|
||||||
value: string
|
value: string
|
||||||
}[]>({
|
}[]>({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
className: NTQQApiClass.OS_API,
|
className: NTQQApiClass.OS_API,
|
||||||
methodName: NTQQApiMethod.CACHE_PATH_SESSION,
|
methodName: NTQQApiMethod.CACHE_PATH_SESSION,
|
||||||
});
|
});
|
||||||
@ -736,6 +738,7 @@ export class NTQQApi {
|
|||||||
static getChatCacheList(type: 1 | 2, pageSize: number = 80, pageIndex: number = 0) {
|
static getChatCacheList(type: 1 | 2, pageSize: number = 80, pageIndex: number = 0) {
|
||||||
return new Promise<ChatCacheList>((res, rej) => {
|
return new Promise<ChatCacheList>((res, rej) => {
|
||||||
callNTQQApi<ChatCacheList>({
|
callNTQQApi<ChatCacheList>({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
methodName: NTQQApiMethod.CACHE_CHAT_GET,
|
methodName: NTQQApiMethod.CACHE_CHAT_GET,
|
||||||
args: [{
|
args: [{
|
||||||
ChatType: type,
|
ChatType: type,
|
||||||
@ -750,6 +753,7 @@ export class NTQQApi {
|
|||||||
|
|
||||||
static async clearChatCache(chats: ChatCacheListItemBasic[] = [], fileKeys: unknown[] = []) {
|
static async clearChatCache(chats: ChatCacheListItemBasic[] = [], fileKeys: unknown[] = []) {
|
||||||
return await callNTQQApi<GeneralCallResult>({
|
return await callNTQQApi<GeneralCallResult>({
|
||||||
|
channel: NTQQApiChannel.IPC_UP_3,
|
||||||
methodName: NTQQApiMethod.CACHE_CHAT_CLEAR,
|
methodName: NTQQApiMethod.CACHE_CHAT_CLEAR,
|
||||||
args: [{
|
args: [{
|
||||||
chats,
|
chats,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user