完善一部分websocket的代码

This commit is contained in:
eson
2023-08-24 18:28:01 +08:00
parent 190010a6fe
commit 6919d61ef5
10 changed files with 182 additions and 13 deletions

View File

@@ -8,6 +8,6 @@ import (
)
func GenSnNum() string {
a := fmt.Sprintf("%s%.8d", time.Now().Format("20060102150405.000"), rand.Intn(1000000))
a := fmt.Sprintf("%s%.8d", time.Now().UTC().Format("20060102150405.000"), rand.Intn(1000000))
return strings.ReplaceAll(a, ".", "")
}