清除业务契约双读:抽奖/草稿/时间戳/邮件只认新格式,并删除 legacy 短代码改写。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-23 02:20:42 +08:00
parent 3b550f2124
commit 96314893bb
9 changed files with 23 additions and 281 deletions

View File

@@ -248,7 +248,7 @@ func MatchPasswordBlocks(content, password string) ([]int, error) {
return hit, nil
}
// WrapContentAsHide 将整篇正文包进单一隐藏块(旧帖迁移用)
// WrapContentAsHide 将整篇正文包进单一隐藏块
func WrapContentAsHide(kind string, points int, content string) string {
body := strings.TrimRight(content, "\n")
open := openMarkerLine(kind, points, "", false)
@@ -258,7 +258,7 @@ func WrapContentAsHide(kind string, points int, content string) string {
return open + "\n" + body + "\n[/hide]\n"
}
// HasHideBlocks 快速判断正文是否已含隐藏块(迁移幂等)
// HasHideBlocks 判断正文是否已含隐藏块
func HasHideBlocks(content string) bool {
blocks, err := ParseHideBlocks(content)
if err != nil {