明树Git Lab

Commit e369733b authored by zfp1's avatar zfp1

update

parent 4778da46
......@@ -11,10 +11,10 @@ const server = net.createServer((socket) => {
console.log(`收到消息:${gbkString}`);
if (gbkString.includes('LetaleLetale123')) {
//登录
socket.write('0x20 0x02 0x00 0x00')
socket.write(Buffer.from('20 02 00 00', 'hex'))
}
if (gbkString.includes('C0')) {
socket.write('0xD0 0x00');
socket.write(Buffer.from('D0 00', 'hex'));
}
});
......
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