feat:完善网站信息,增加案例解决方案数据管理
This commit is contained in:
@ -70,6 +70,10 @@ func HASHIDDecode(src string) int {
|
||||
hd := hashids.NewData()
|
||||
hd.Salt = salt
|
||||
h := hashids.NewWithData(hd)
|
||||
e, _ := h.DecodeWithError(src)
|
||||
e, err := h.DecodeWithError(src)
|
||||
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
return e[0]
|
||||
}
|
||||
|
Reference in New Issue
Block a user