登录优化

This commit is contained in:
hahwu 2025-11-28 16:12:04 +08:00
parent 2ba0f54cb4
commit b7f2ed2e50

View File

@ -133,13 +133,6 @@ func HandleClientReq(args []interface{}) {
gl.PackResInfo(a, "ResRegisterAccount", data)
break
}
if strings.Count(detail.UserName, "")-1 < 6 {
ResRegisterAccount := &msg.ResRegisterAccount{}
ResRegisterAccount.ResultCode = MergeConst.Protocol_Error_Account_OR_PWD_Short
data, _ := proto.Marshal(ResRegisterAccount)
gl.PackResInfo(a, "ResRegisterAccount", data)
break
}
gl.Db_AccountInfo.UserName = detail.UserName
gl.Db_AccountInfo.UserPassword = detail.UserPwd
if !gl.NewAccountInsertDataToDB() {