明树Git Lab

Commit 2ccba9db authored by zfp1's avatar zfp1

update

parent e369733b
......@@ -11,10 +11,10 @@ const server = net.createServer((socket) => {
console.log(`收到消息:${gbkString}`);
if (gbkString.includes('LetaleLetale123')) {
//登录
socket.write(Buffer.from('20 02 00 00', 'hex'))
socket.write(Buffer.from([0x20, 0x02, 0x00, 0x00]))
}
if (gbkString.includes('C0')) {
socket.write(Buffer.from('D0 00', 'hex'));
socket.write(Buffer.from([0xD0, 0x00]));
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment