From e6e89563ef94b673a120204dcdcbf2bf1b0b01c3 Mon Sep 17 00:00:00 2001 From: shy Date: Sun, 14 Jan 2024 01:55:43 +0800 Subject: [PATCH] add some --- base/aaa/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/aaa/user.go b/base/aaa/user.go index c48eba8c..f506a960 100644 --- a/base/aaa/user.go +++ b/base/aaa/user.go @@ -59,7 +59,7 @@ func init() { } func UserInfo(m *ice.Message, name ice.Any, key, meta string) (value string) { - if m.Cmd(USER, kit.Select(m.Option(ice.MSG_USERNAME), name), func(val ice.Maps) { value = val[key] }).Length() == 0 && kit.Format(name) == m.Option(ice.MSG_USERNAME) { + if m.Cmd(USER, kit.Select(m.Option(ice.MSG_USERNAME), name), func(val ice.Maps) { value = val[key] }).Length() == 0 || value == "" { return m.Option(meta) } return