mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
chore: 订正类型
This commit is contained in:
parent
f9c1d8b4a6
commit
4b92254945
@ -34,42 +34,42 @@ export interface WrapperSessionInitConfig {
|
|||||||
account_path: string // 可以通过NodeQQNTWrapperUtil().getNTUserDataInfoConfig()获取
|
account_path: string // 可以通过NodeQQNTWrapperUtil().getNTUserDataInfoConfig()获取
|
||||||
}
|
}
|
||||||
clientVer: string // 9.9.8-22355
|
clientVer: string // 9.9.8-22355
|
||||||
a2: '',
|
a2: string,
|
||||||
d2: '',
|
d2: string,
|
||||||
d2Key: '',
|
d2Key: string,
|
||||||
machineId: '',
|
machineId: string,
|
||||||
platform: 3, // 3是Windows?
|
platform: PlatformType, // 3是Windows?
|
||||||
platVer: string, // 系统版本号, 应该可以固定
|
platVer: string, // 系统版本号, 应该可以固定
|
||||||
appid: string,
|
appid: string,
|
||||||
rdeliveryConfig: {
|
rdeliveryConfig: {
|
||||||
appKey: '',
|
appKey: string,
|
||||||
systemId: 0,
|
systemId: number,
|
||||||
appId: '',
|
appId: string,
|
||||||
logicEnvironment: '',
|
logicEnvironment: string,
|
||||||
platform: 3,
|
platform: PlatformType,
|
||||||
language: '',
|
language: string,
|
||||||
sdkVersion: '',
|
sdkVersion: string,
|
||||||
userId: '',
|
userId: string,
|
||||||
appVersion: '',
|
appVersion: string,
|
||||||
osVersion: '',
|
osVersion: string,
|
||||||
bundleId: '',
|
bundleId: string,
|
||||||
serverUrl: '',
|
serverUrl: string,
|
||||||
fixedAfterHitKeys: ['']
|
fixedAfterHitKeys: string[]
|
||||||
}
|
}
|
||||||
'defaultFileDownloadPath': string, // 这个可以通过环境变量获取?
|
defaultFileDownloadPath: string, // 这个可以通过环境变量获取?
|
||||||
'deviceInfo': {
|
deviceInfo: {
|
||||||
'guid': string,
|
guid: string,
|
||||||
'buildVer': string,
|
buildVer: string,
|
||||||
'localId': 2052,
|
localId: number,
|
||||||
'devName': string,
|
devName: string,
|
||||||
'devType': string,
|
devType: string,
|
||||||
'vendorName': '',
|
vendorName: string,
|
||||||
'osVer': string,
|
osVer: string,
|
||||||
'vendorOsName': string,
|
vendorOsName: string,
|
||||||
'setMute': false,
|
setMute: boolean,
|
||||||
'vendorType': 0
|
vendorType: VendorType
|
||||||
},
|
},
|
||||||
'deviceConfig': '{"appearance":{"isSplitViewMode":true},"msg":{}}'
|
deviceConfig: '{"appearance":{"isSplitViewMode":true},"msg":{}}'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const sessionConfig: WrapperSessionInitConfig | any = {};
|
export const sessionConfig: WrapperSessionInitConfig | any = {};
|
||||||
@ -92,7 +92,7 @@ export async function genSessionConfig(selfUin: string, selfUid: string, account
|
|||||||
d2: '',
|
d2: '',
|
||||||
d2Key: '',
|
d2Key: '',
|
||||||
machineId: '',
|
machineId: '',
|
||||||
platform: 3, // 3是Windows?
|
platform: PlatformType.KWINDOWS, // 3是Windows?
|
||||||
platVer: systemVersion, // 系统版本号, 应该可以固定
|
platVer: systemVersion, // 系统版本号, 应该可以固定
|
||||||
appid: QQVersionAppid,
|
appid: QQVersionAppid,
|
||||||
rdeliveryConfig: {
|
rdeliveryConfig: {
|
||||||
@ -100,7 +100,7 @@ export async function genSessionConfig(selfUin: string, selfUid: string, account
|
|||||||
systemId: 0,
|
systemId: 0,
|
||||||
appId: '',
|
appId: '',
|
||||||
logicEnvironment: '',
|
logicEnvironment: '',
|
||||||
platform: 3,
|
platform: PlatformType.KWINDOWS,
|
||||||
language: '',
|
language: '',
|
||||||
sdkVersion: '',
|
sdkVersion: '',
|
||||||
userId: '',
|
userId: '',
|
||||||
@ -121,11 +121,10 @@ export async function genSessionConfig(selfUin: string, selfUid: string, account
|
|||||||
osVer: systemVersion,
|
osVer: systemVersion,
|
||||||
vendorOsName: systemName,
|
vendorOsName: systemName,
|
||||||
setMute: false,
|
setMute: false,
|
||||||
vendorType: 0
|
vendorType: VendorType.KNOSETONIOS
|
||||||
},
|
},
|
||||||
'deviceConfig': '{"appearance":{"isSplitViewMode":true},"msg":{}}'
|
deviceConfig: '{"appearance":{"isSplitViewMode":true},"msg":{}}'
|
||||||
};
|
};
|
||||||
Object.assign(sessionConfig, config);
|
Object.assign(sessionConfig, config);
|
||||||
// log(sessionConfig);
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user