feat(common): 重构数据包处理逻辑并添加全局 ID 生成器
- 引入 idgenerator-go 库,实现全局唯一 ID 生成 - 重构 Pack 函数,使用接口参数提高灵活性 - 修改 Player 结构,增加 MainConn 字段用于主连接 - 更新 SocketHandler_Tomee 中的 Data 字段标记 - 优化 Recv 函数中的数据解包和参数处理逻辑
This commit is contained in:
@@ -49,9 +49,8 @@ redis:
|
||||
db: 0
|
||||
pass: 154252
|
||||
|
||||
|
||||
blazing:
|
||||
port: 27777
|
||||
port: 27000 ## 也是雪花算法生成端口
|
||||
autoMigrate: true
|
||||
eps: true
|
||||
file:
|
||||
|
||||
Reference in New Issue
Block a user