This commit is contained in:
2025-06-21 18:21:49 +08:00
parent a76b506327
commit da6d4041ad
9 changed files with 121 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ import { Sequelize } from 'sequelize';
// import { createSequelize } from '@kevisual/xhs/services/xhs-db/db.ts';
import path from 'node:path';
import fs from 'node:fs';
export { XhsClient };
type XhsClientOptions = {
key: string;
cookie: string;
@@ -69,7 +69,7 @@ export class XhsServices {
createRoot(options: Partial<XhsClientOptions>) {
options.key = options.key || this.root;
return this.createClient(options as XhsClientOptions);
return this.createClient(options as XhsClientOptions) as XhsClient;
}
getKey(key?: string) {
if (!key) key = this.root;