完善一部分websocket的代码
This commit is contained in:
@@ -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, ".", "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user