feat:完善网站信息,增加案例解决方案数据管理

This commit is contained in:
henry
2021-12-17 17:33:20 +08:00
parent c6ba000829
commit cb5ab0ae37
11 changed files with 347 additions and 2 deletions

View File

@ -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]
}