This commit is contained in:
toom1996
2026-09-03 19:45:20 +08:00
parent ffe84efc4c
commit b049104a0b
8 changed files with 99 additions and 22 deletions

View File

@ -32,6 +32,10 @@ const (
articleMaxSize = 100
ArticleFixedImages = 6 // 列表每篇附带前 N 张缩略图
imagesMax = 12
// PreviewLimit 未登录用户在列表接口可见的预览条数上限;
// 超过部分由前端登录门禁提示,避免公开接口一次性吐出全部图集。
PreviewLimit = 5
)
// Normalize 校正分页与附图参数,防止非法值打穿数据库。