fix(api): 限制回流频率并隐藏后台错误详情 (#43)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
fu500f
2026-10-31 00:52:20 +00:00
co-authored by Devin AI
parent 36f9c95fa7
commit 8a29423451
7 changed files with 200 additions and 57 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ func (h *Handler) ImportBypos(w http.ResponseWriter, r *http.Request) {
}
result, err := h.store.ImportByposRecords(r.Context(), records)
if err != nil {
writeError(w, http.StatusInternalServerError, "import_error", err.Error())
internalError(w, r, err)
return
}
writeJSON(w, http.StatusOK, result)