mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-05-06 07:26:48 +00:00
@@ -154,15 +154,17 @@ export class WcdbService {
|
||||
/**
|
||||
* 测试数据库连接
|
||||
*/
|
||||
async testConnection(dbPath: string, hexKey: string, wxid: string): Promise<{ success: boolean; error?: string; sessionCount?: number }> {
|
||||
return this.callWorker('testConnection', { dbPath, hexKey, wxid })
|
||||
async testConnection(accountDir: string, hexKey: string): Promise<{ success: boolean; error?: string; sessionCount?: number }> {
|
||||
return this.callWorker('testConnection', { accountDir, hexKey })
|
||||
}
|
||||
|
||||
/**
|
||||
* 打开数据库
|
||||
* @param accountDir 账号目录的完整路径
|
||||
* @param hexKey 解密密钥
|
||||
*/
|
||||
async open(dbPath: string, hexKey: string, wxid: string): Promise<boolean> {
|
||||
return this.callWorker('open', { dbPath, hexKey, wxid })
|
||||
async open(accountDir: string, hexKey: string): Promise<boolean> {
|
||||
return this.callWorker('open', { accountDir, hexKey })
|
||||
}
|
||||
|
||||
async getLastInitError(): Promise<string | null> {
|
||||
|
||||
Reference in New Issue
Block a user