作者 tangxvhui

bug 修复

... ... @@ -2,8 +2,6 @@ package utils
import (
"encoding/hex"
"fmt"
"strconv"
uuid "github.com/satori/go.uuid"
"github.com/sony/sonyflake"
... ... @@ -27,10 +25,6 @@ func GenerateIDByUUID() string {
func GenerateID14() int64 {
num := GenerateIDBySonyflake()
s := fmt.Sprintf("%d", num)
if len(s) < 4 {
return 0
}
i, _ := strconv.ParseInt(s[4:], 10, 64)
return i
return num % 10000000000000
}
... ...