Revert "debug"

This reverts commit 9b7df3d3da.
This commit is contained in:
hahwu 2025-02-08 10:09:38 +08:00
parent 9b7df3d3da
commit fdced55115

View File

@ -97,11 +97,11 @@ func HandleClientReq(args []interface{}) {
data, _ := proto.Marshal(ResRegisterAccount)
gl.PackResInfo(a, "ResRegisterAccount", data)
case "ReqLogin":
// defer func() {
// if r := recover(); r != nil {
// log.Debug("uid : %d, func : %s, fatal : %s", 0, m.GetFunc(), r)
// }
// }()
defer func() {
if r := recover(); r != nil {
log.Debug("uid : %d, func : %s, fatal : %s", 0, m.GetFunc(), r)
}
}()
detail := &msg.ReqLogin{}
proto.Unmarshal(buf, detail)
accountInfo := db.GetAccountInfoFromDb(detail.UserName)