feat: version hint
This commit is contained in:
1 parent
0000ec8b5b
commit
0d99d30b2d
1 file changed
+4
-1
@@ -62,7 +62,10 @@ export class NTQQPacketApi {
|
|||||||
this.qqVersion = qqversion;
|
this.qqVersion = qqversion;
|
||||||
const offsetTable: OffsetType = offset;
|
const offsetTable: OffsetType = offset;
|
||||||
const table = offsetTable[qqversion + '-' + os.arch()];
|
const table = offsetTable[qqversion + '-' + os.arch()];
|
||||||
if (!table) return false;
|
if (!table) {
|
||||||
|
this.logger.logError('PacketServer Offset table not found for QQVersion: ', qqversion + '-' + os.arch());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const url = 'ws://' + this.serverUrl + '/ws';
|
const url = 'ws://' + this.serverUrl + '/ws';
|
||||||
this.packetSession = new PacketSession(this.core.context.logger, new PacketClient(url, this.core));
|
this.packetSession = new PacketSession(this.core.context.logger, new PacketClient(url, this.core));
|
||||||
const cb = () => {
|
const cb = () => {
|
||||||
|
|||||||
Reference in new issue
Block a user