修复cid生成异常问题

This commit is contained in:
白茶清欢 2024-07-23 15:52:10 +08:00
parent 031c245046
commit 85feada512

View File

@ -89,6 +89,6 @@ func generateConnectionID(flag string) string {
flag, flag,
strings.ReplaceAll(util.IP.GetHostIP(), ".", ""), strings.ReplaceAll(util.IP.GetHostIP(), ".", ""),
time.Now().Format("20060102150405"), time.Now().Format("20060102150405"),
wrapper.String(fmt.Sprintf("%d", time.Now().UnixNano())+wrapper.StringFromRandom(64, "").Value()).Md5(), wrapper.String(fmt.Sprintf("%d", time.Now().UnixNano())+wrapper.StringFromRandom(64, "").Value()).Md5().Value,
) )
} }