diff --git a/pkg/base/base.go b/pkg/base/base.go index fe103bef..6d9b82aa 100644 --- a/pkg/base/base.go +++ b/pkg/base/base.go @@ -87,7 +87,12 @@ func SetEnableDebugLog(enable bool) { DebugLogEnabled = enable } +// deprecated (use GetGroupId instead) func (ckey CommandKey) GetSessionId() string { + return ckey.GetGroupId() +} + +func (ckey CommandKey) GetGroupId() string { slashIdx := strings.Index(string(ckey), "/") if slashIdx == -1 { return ""