Align free Shadowrocket ID category and article names

This commit is contained in:
Codex 2026-11-02 15:23:43 +08:00
parent 6909e32740
commit ad849f54ad
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ final class ShadowrocketNaming
{
public static function align(string $text): string
{
return str_replace(['免费苹果账号', '免费苹果ID', '免费苹果id', '(小火箭账号、shadowrocket id)'], ['免费小火箭ID', '免费小火箭ID', '免费小火箭ID', ''], $text);
$text = str_replace(['免费苹果账号', '免费苹果ID', '免费苹果id', '(小火箭账号、shadowrocket id)'], ['免费小火箭ID', '免费小火箭ID', '免费小火箭ID', ''], $text);
return str_replace('免费小火箭ID,可用于使用小火箭(shadowrocket)', '免费Appale ID,已购买小火箭(shadowrocket)', $text);
}
}

View File

@ -7,3 +7,5 @@ # 免费小火箭ID命名对齐
发布与验收回执:`output/shadowrocket-name-20261102/`,按生产当前HEAD建立独立worktree、Git推送并精确检出,命名元数据快照留服务器`storage/app/private/category-backups/`。回退需用本次快照只恢复相关分类/标题/摘要;应用回退对应发布前SHA,不整库覆盖。
导航缓存修复:原命名命令用DB定点更新,未触发Categories模型的saved事件,遗留24小时global_nav_tree缓存。现apply后显式清除此键(包括幂等重复执行),随后刷新响应缓存;验收必须读取指向/shadowrocketids的导航链接文字,不能仅检查正文包含新名称。
摘要文案:用户指定将“免费小火箭ID,可用于使用小火箭(shadowrocket)”替换为“免费Appale ID,已购买小火箭(shadowrocket)”,保留用户Appale拼写。仅替换摘要句中的原短语,不改变栏目/文章标题及账号数据;后续接收同样归一化。