Merge branch 'release' into develop
This commit is contained in:
commit
025dbd8691
|
@ -0,0 +1,9 @@
|
||||||
|
package common
|
||||||
|
|
||||||
|
import "github.com/bwmarrin/snowflake"
|
||||||
|
|
||||||
|
var IdNode, _ = snowflake.NewNode(int64(GetSelfSrvId()))
|
||||||
|
|
||||||
|
func GetId() int64 {
|
||||||
|
return IdNode.Generate().Int64()
|
||||||
|
}
|
|
@ -22,7 +22,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func getSortId() int64 {
|
func getSortId() int64 {
|
||||||
return time.Now().UnixMilli()
|
return common.GetId()
|
||||||
}
|
}
|
||||||
|
|
||||||
type TmPlayer struct {
|
type TmPlayer struct {
|
||||||
|
|
Loading…
Reference in New Issue