fix: support list guest and knock

This commit is contained in:
Daniel Ding
2024-01-02 11:14:54 +08:00
parent 9a039a6d3c
commit 1af91f2f65
9 changed files with 131 additions and 34 deletions

View File

@@ -192,6 +192,10 @@ func IPNetwork(ipAddr string) (string, error) {
}
}
func UnixTime(value int64) string {
return time.Unix(value, 0).UTC().String()
}
func PrettyTime(t int64) string {
s := ""
if t < 0 {