登录错误消息resDesc不能超过32字符
This commit is contained in:
@@ -54,7 +54,7 @@ func (*ReqCMCALoginAlarm) Handle(request ziface.IRequest) {
|
|||||||
zlog.Ins().ErrorF("LoginFail %s", err)
|
zlog.Ins().ErrorF("LoginFail %s", err)
|
||||||
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
||||||
"result": "autherror",
|
"result": "autherror",
|
||||||
"resDesc": err.Error(),
|
"resDesc": err.Error()[:30],
|
||||||
}))
|
}))
|
||||||
// 已登录的,登录错误超过3次,断开连接
|
// 已登录的,登录错误超过3次,断开连接
|
||||||
if uid != nil || uid != "" {
|
if uid != nil || uid != "" {
|
||||||
@@ -73,7 +73,7 @@ func (*ReqCMCALoginAlarm) Handle(request ziface.IRequest) {
|
|||||||
zlog.Ins().ErrorF("manager:%s", err)
|
zlog.Ins().ErrorF("manager:%s", err)
|
||||||
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
||||||
"result": "autherror",
|
"result": "autherror",
|
||||||
"resDesc": err.Error(),
|
"resDesc": err.Error()[:30],
|
||||||
}))
|
}))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ func (s *ReqLoginAlarm) Handle(request ziface.IRequest) {
|
|||||||
zlog.Ins().ErrorF("LoginFail %s", err)
|
zlog.Ins().ErrorF("LoginFail %s", err)
|
||||||
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
||||||
"result": "autherror",
|
"result": "autherror",
|
||||||
"resDesc": err.Error(),
|
"resDesc": err.Error()[:30],
|
||||||
}))
|
}))
|
||||||
// 已登录的,登录错误超过3次,断开连接
|
// 已登录的,登录错误超过3次,断开连接
|
||||||
if uid != nil || uid != "" {
|
if uid != nil || uid != "" {
|
||||||
@@ -73,7 +73,7 @@ func (s *ReqLoginAlarm) Handle(request ziface.IRequest) {
|
|||||||
zlog.Ins().ErrorF("manager:%s", err)
|
zlog.Ins().ErrorF("manager:%s", err)
|
||||||
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
request.GetConnection().SendMsg(ReqLoginAlarmMsgType, core.Result(ReqLoginAlarmMsgName, map[string]string{
|
||||||
"result": "autherror",
|
"result": "autherror",
|
||||||
"resDesc": err.Error(),
|
"resDesc": err.Error()[:30],
|
||||||
}))
|
}))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user