固定值顺序数据key

This commit is contained in:
TsMask
2023-08-24 10:56:16 +08:00
parent 1902c78572
commit 189122061d
6 changed files with 21 additions and 14 deletions

View File

@@ -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]