收藏文案:「保存这份稿」→「收藏」+ 已收藏态#13
Open
agentx1boss wants to merge 1 commit into
Open
Conversation
- 阅读页/目录页页脚 CTA 文案改为「收藏」(去掉「保存这份稿」),更短、口语。 - 已收藏态:显示「已收藏」(muted 非强调),点击直接去 Console 收藏列表看真实清单。 - 判定「已收藏」:内容子域无登录会话(Cookie 是 hspace. 域 host-only),无法服务端查收藏态; 改在从 Console 收藏列表免密打开(?k= 流)时种 hs_sv_<slug> 标记 Cookie(24h),阅读页据此显示。 覆盖"从收藏列表回访"主场景;直接用原链接重访无标记则仍显示「收藏」(点了幂等重存,无害)。 不走跨域 fetch 探测,守内容页"不发额外网络请求"。 本地 /p/ 验证:新鲜访问出「收藏」;带 hs_sv_ 标记出「已收藏」;免密开门同时种 hs_ 与 hs_sv_ 两个 Cookie;旧文案「保存这份稿」已清零。tsc 干净。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
阅读页 CTA 文案与已收藏态优化。
变更
「已收藏」怎么判定(一个真实约束)
内容页在
<slug>.zhanjian.space子域,而登录会话 Cookie 是hspace.域 host-only —— 内容页服务端拿不到读者登录态,无法直接查收藏表。所以在从 Console 收藏列表免密打开(
?k=流)时,顺带种一个hs_sv_<slug>标记 Cookie(24h),阅读页据此显示「已收藏」。验证(本地 /p/ 路由)
hs_sv_标记 → 「已收藏」;免密开门同时种hs_+hs_sv_两个 Cookie;旧文案「保存这份稿」全库清零。tsc --noEmit干净。纯文案 + Cookie 标记,无新增表/变量,直接部署生效。🤖 Generated with Claude Code