格式化代码

This commit is contained in:
huangxiaolei
2022-12-19 13:40:04 +08:00
parent f773ba8df7
commit 58b2df2bc6
92 changed files with 682 additions and 626 deletions

View File

@@ -23,15 +23,15 @@ func (f *Service) UserPasswordChange(uid uint32) bool {
if account == nil {
return false
}
//convId, exist := f.getConvIdByUserId(uint32(account.PlayerID))
//if !exist {
// convId, exist := f.getConvIdByUserId(uint32(account.PlayerID))
// if !exist {
// return true
//}
//f.kcpEventInput <- &net.KcpEvent{
// }
// f.kcpEventInput <- &net.KcpEvent{
// ConvId: convId,
// EventId: net.KcpConnForceClose,
// EventMessage: uint32(kcp.EnetAccountPasswordChange),
//}
// }
return true
}
@@ -57,15 +57,15 @@ func (f *Service) ForbidUser(info *ForbidUserInfo) bool {
if account == nil {
return false
}
//convId, exist := f.getConvIdByUserId(uint32(account.PlayerID))
//if !exist {
// convId, exist := f.getConvIdByUserId(uint32(account.PlayerID))
// if !exist {
// return true
//}
//f.kcpEventInput <- &net.KcpEvent{
// }
// f.kcpEventInput <- &net.KcpEvent{
// ConvId: convId,
// EventId: net.KcpConnForceClose,
// EventMessage: uint32(kcp.EnetServerKillClient),
//}
// }
return true
}