mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-03 22:21:13 +00:00
Add externalVersion and refine API types
Add externalVersion boolean to LoginInitConfig and pass false at initialization; bump appid qua for 9.9.27 entry. Refine several IPC/wrapper typings to use Promise return types, adjust pathIsReadableAndWriteable signature to accept a type and return Promise<number>, and update NodeIKernelNodeMiscService method signatures (styling) while adding getQimei36WithNewSdk(). These changes improve type accuracy for async/native calls and add a new SDK helper.
This commit is contained in:
parent
209776a9e8
commit
df48c01ce4
2
packages/napcat-core/external/appid.json
vendored
2
packages/napcat-core/external/appid.json
vendored
@ -521,7 +521,7 @@
|
||||
},
|
||||
"9.9.27-45627": {
|
||||
"appid": 537340060,
|
||||
"qua": "V1_WIN_NQ_9.9.26_45627_GW_B"
|
||||
"qua": "V1_WIN_NQ_9.9.27_45627_GW_B"
|
||||
},
|
||||
"6.9.88-44725": {
|
||||
"appid": 537337594,
|
||||
|
||||
@ -8,6 +8,7 @@ export interface LoginInitConfig {
|
||||
commonPath: string;
|
||||
clientVer: string;
|
||||
hostName: string;
|
||||
externalVersion: boolean;
|
||||
}
|
||||
|
||||
export interface PasswordLoginRetType {
|
||||
|
||||
@ -1,15 +1,17 @@
|
||||
import { GeneralCallResult } from './common';
|
||||
|
||||
export interface NodeIKernelNodeMiscService {
|
||||
writeVersionToRegistry(version: string): void;
|
||||
writeVersionToRegistry (version: string): void;
|
||||
|
||||
getMiniAppPath(): unknown;
|
||||
getMiniAppPath (): unknown;
|
||||
|
||||
setMiniAppVersion(version: string): unknown;
|
||||
setMiniAppVersion (version: string): unknown;
|
||||
|
||||
wantWinScreenOCR(imagepath: string): Promise<GeneralCallResult>;
|
||||
wantWinScreenOCR (imagepath: string): Promise<GeneralCallResult>;
|
||||
|
||||
SendMiniAppMsg(arg1: string, arg2: string, arg3: string): unknown;
|
||||
SendMiniAppMsg (arg1: string, arg2: string, arg3: string): unknown;
|
||||
|
||||
startNewMiniApp(appfile: string, params: string): unknown;
|
||||
startNewMiniApp (appfile: string, params: string): unknown;
|
||||
|
||||
getQimei36WithNewSdk (): Promise<string>;
|
||||
}
|
||||
|
||||
@ -87,9 +87,9 @@ export interface NodeQQNTWrapperUtil {
|
||||
|
||||
fullWordToHalfWord (word: string): unknown;
|
||||
|
||||
getNTUserDataInfoConfig (): unknown;
|
||||
getNTUserDataInfoConfig (): Promise<string>;
|
||||
|
||||
pathIsReadableAndWriteable (path: string): unknown; // 直接的猜测
|
||||
pathIsReadableAndWriteable (path: string, type: number): Promise<number>; // type 2 , result 0 成功
|
||||
|
||||
resetUserDataSavePathToDocument (): unknown;
|
||||
|
||||
@ -158,7 +158,7 @@ export interface NodeIQQNTStartupSessionWrapper {
|
||||
stop (): void;
|
||||
start (): void;
|
||||
createWithModuleList (uk: unknown): unknown;
|
||||
getSessionIdList (): unknown;
|
||||
getSessionIdList (): Promise<Map<unknown, unknown>>;
|
||||
}
|
||||
export interface NodeIQQNTWrapperSession {
|
||||
getNTWrapperSession (str: string): NodeIQQNTWrapperSession;
|
||||
|
||||
@ -109,6 +109,7 @@ async function initializeLoginService (
|
||||
commonPath: dataPathGlobal,
|
||||
clientVer: basicInfoWrapper.getFullQQVersion(),
|
||||
hostName: hostname,
|
||||
externalVersion: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user