优化登录返回

This commit is contained in:
hahwu 2025-05-26 18:30:33 +08:00
parent 8ea3efb33a
commit 6df9903bc9

View File

@ -124,11 +124,15 @@ func HandleClientReq(args []interface{}) {
} else {
ResLogin.ResultCode = MergeConst.Protocol_Error_Account_NoExsit
ResLogin.DwUin = 0
resBuff, _ := proto.Marshal(ResLogin)
G_GameLogicPtr.PackResInfo(a, "ResLogin", resBuff)
return
}
} else {
ResLogin.ResultCode = MergeConst.Protocol_Error_Account_OR_PWD_ERROR
ResLogin.DwUin = 0
}
} else {
ResLogin.ResultCode = MergeConst.Protocol_Error_Account_OR_PWD_ERROR
ResLogin.DwUin = 0