登录优化
This commit is contained in:
parent
aa4c4b154c
commit
5a3d3f646a
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user