parent
9b7df3d3da
commit
fdced55115
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user