mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
style: lint
This commit is contained in:
parent
13afa2c7ab
commit
0a06637e78
@ -31,15 +31,15 @@ export class PacketSession {
|
|||||||
private newClient(core: NapCatCore): PacketClient {
|
private newClient(core: NapCatCore): PacketClient {
|
||||||
const prefer = core.configLoader.configData.packetBackend;
|
const prefer = core.configLoader.configData.packetBackend;
|
||||||
switch (prefer) {
|
switch (prefer) {
|
||||||
case "native":
|
case "native":
|
||||||
return new NativePacketClient(core);
|
return new NativePacketClient(core);
|
||||||
case "frida":
|
case "frida":
|
||||||
return new wsPacketClient(core);
|
return new wsPacketClient(core);
|
||||||
case "auto":
|
case "auto":
|
||||||
case undefined:
|
case undefined:
|
||||||
return this.judgeClient(core);
|
return this.judgeClient(core);
|
||||||
default:
|
default:
|
||||||
throw new Error(`[Core] [Packet] 未知的Packet后端类型 ${prefer},请检查配置文件!`);
|
throw new Error(`[Core] [Packet] 未知的Packet后端类型 ${prefer},请检查配置文件!`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user