登录返回优化

This commit is contained in:
hahwu 2025-05-26 18:51:28 +08:00
parent 6df9903bc9
commit d04f482da1

View File

@ -124,9 +124,6 @@ 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
@ -136,6 +133,8 @@ func HandleClientReq(args []interface{}) {
} else {
ResLogin.ResultCode = MergeConst.Protocol_Error_Account_OR_PWD_ERROR
ResLogin.DwUin = 0
}
if ResLogin.ResultCode != 0 {
resBuff, _ := proto.Marshal(ResLogin)
G_GameLogicPtr.PackResInfo(a, "ResLogin", resBuff)
return