固定值顺序数据key
This commit is contained in:
@@ -80,7 +80,7 @@ func (wm *ChannelManager) LoginSuccess(UID, name, tp string) error {
|
||||
//判断是否重复登录
|
||||
for _, v := range wm.User {
|
||||
if v.UserName == name && v.AlarmType == tp && v.LoginState {
|
||||
return errors.New("repeat login for the same account")
|
||||
return errors.New("repeat login for the account")
|
||||
}
|
||||
}
|
||||
user, ok := wm.User[UID]
|
||||
|
||||
Reference in New Issue
Block a user