明树Git Lab

Commit fb40506d authored by zfp1's avatar zfp1

update

parent d2be8521
......@@ -7,7 +7,7 @@ let mongourl = `mongodb://root:letian2024.@172.16.0.16:27017/letian?authSource=a
const server = net.createServer((socket) => {
socket.on('data', (data) => {
if(isHex(data)) {
if((data)) {
let dataString = data.toString("hex");
console.log(dataString, "----");
socket.write(Buffer.from([0xD0, 0x00]));
......@@ -20,11 +20,6 @@ const server = net.createServer((socket) => {
console.log("登录, “=========================")
socket.write(Buffer.from([0x20, 0x02, 0x00, 0x00]))
}
// if (gbkString.includes('C0')) {
// console.log("ping “=========================")
// socket.write(Buffer.from([0xD0, 0x00]));
// }
if (gbkString.includes('N82V3VWYU84K36UH')) {
console.log(`N82V3VWYU84K36UH:${gbkString}`);
......
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