diff --git a/src/renzhengshouquan/profile.go b/src/renzhengshouquan/profile.go index d8ce22b..d7de935 100644 --- a/src/renzhengshouquan/profile.go +++ b/src/renzhengshouquan/profile.go @@ -36,7 +36,9 @@ func (s profile) List(m *ice.Message, arg ...string) { s.Select(m, model.UID, arg[0]).Action() name := m.Append(model.NAME) button := []ice.Any{} - button = append(button, s.Enter) + if AuthType(kit.Int(m.Append(model.AUTH_TYPE))) == AuthService { + button = append(button, s.Enter) + } kit.If(s.IsWorker(m), func() { button = append(button, s.Modify) }) switch AuthType(kit.Int(m.Append(model.AUTH_TYPE))) { case AuthService: