固定值顺序数据key

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

No files matched your search

+1 -1
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]