feat:完善项目

This commit is contained in:
henry
2022-01-15 09:00:47 +08:00
parent 9a41d7ff12
commit 048d116b05
9 changed files with 67 additions and 35 deletions

View File

@ -59,7 +59,7 @@ func HashCompare(src, compare []byte) bool {
func HASHIDEncode(src int) string {
hd := hashids.NewData()
hd.Salt = salt
hd.MinLength = 8
hd.MinLength = 12
h := hashids.NewWithData(hd)
e, _ := h.Encode([]int{src})
return e