1.新增yml文件支持

2.优化网络模块日志
3.新增类型转换函数
This commit is contained in:
duanhf2012
2024-10-09 17:38:44 +08:00
parent f600c2a573
commit c72f2e4582
14 changed files with 391 additions and 138 deletions

View File

@@ -161,7 +161,7 @@ func (tm *TcpModule) SendMsg(clientId string, msg interface{}) error {
client, ok := tm.mapClient[clientId]
if ok == false {
tm.mapClientLocker.Unlock()
return fmt.Errorf("client %d is disconnect!", clientId)
return fmt.Errorf("client %s is disconnect", clientId)
}
tm.mapClientLocker.Unlock()