This commit is contained in:
toom1996
2026-08-31 00:44:23 +08:00
parent c97a001a76
commit a325e438be
6 changed files with 99 additions and 7 deletions

View File

@ -70,7 +70,7 @@ func (h *StreetSnapHandler) Detail(c *gin.Context) {
response.Error(c, http.StatusBadRequest, "缺少街拍 id")
return
}
numeric, err := hashid.Decode(raw)
_, numeric, err := hashid.DecodeTyped(raw)
if err != nil {
response.Error(c, http.StatusNotFound, "街拍不存在")
return