加强了多个组件的预览百分比处理。

在 API 中新增了章节专属的预览百分比,并更新了相关模型和处理器。
改进了阅读场景下确定有效预览百分比的逻辑。
更新了小程序配置,加入了新的阅读页面入口。
This commit is contained in:
Alex-larget
2026-03-25 17:21:55 +08:00
parent d8362bc7a9
commit ae7402fafa
9 changed files with 233 additions and 82 deletions

View File

@@ -37,7 +37,7 @@ func H5ReadPage(c *gin.Context) {
return
}
percent := getUnpaidPreviewPercent(db)
percent := effectivePreviewPercent(db, &ch)
preview := h5PreviewContent(ch.Content, percent)
title := ch.SectionTitle