fix: %{user_scope}

This commit is contained in:
wwt 2023-12-22 01:05:58 +08:00
parent 5827d8e9a2
commit 8368f61c97

View File

@ -43,9 +43,12 @@ func (r *RequestLog) user_id() string {
func (r *RequestLog) user_scope() string {
if r.user != nil {
if r.user.Scope == "" {
return "."
}
return r.user.Scope
}
return "."
return "-"
}
func (r *RequestLog) time_string() string {