update
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user