6331前端功能初步完成,扩展msgPop支持自定义插槽

This commit is contained in:
liub
2025-10-17 17:29:08 +08:00
parent b114f6690d
commit 90cee62df1
16 changed files with 574 additions and 1031 deletions

View File

@ -2336,8 +2336,9 @@
// 获取当前行文字
const text = textLines[currentPacket - 1] || '';
let arr = gbk.encode(text)
console.log("arr=",arr);
let gbkData = gbk.arr2hex(arr);
console.log("gbkData=",gbkData);
// 构建数据包
const bufferSize = 5 + gbkData.length / 2; // 头部4字节 + 数据部分