feat(growth): 接入游客推荐与权益体验
- 登录:新增游客体验、登录承接和同源及请求体积校验 - 推荐与埋点:接入曝光回执、兴趣偏好和按账号隔离的重试队列 - 聊天体验:展示剩余额度、支持回答反馈及故事记忆管理 - 文档和测试:同步业务边界,覆盖队列幂等与代理登录校验
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ export function proxy(request: NextRequest) {
|
||||
);
|
||||
}
|
||||
|
||||
if (isPublic && hasSession) {
|
||||
const guest = Boolean(request.cookies.get(`${cookieName}_guest`)?.value);
|
||||
if (isPublic && hasSession && !(path === "/login" && guest)) {
|
||||
return NextResponse.redirect(
|
||||
new URL(
|
||||
path === "/login"
|
||||
|
||||
Reference in New Issue
Block a user