correct incognito mode impl

This commit is contained in:
Archeb
2024-07-21 19:34:31 +08:00
parent b61bed87f1
commit ee9719f094
2 changed files with 8 additions and 1 deletions
-1
View File
@@ -372,7 +372,6 @@ class YouProvider {
req_param.append("page", "1");
req_param.append("count", "10");
req_param.append("safeSearch", "Off");
req_param.append("incognito", "true"); //隐身模式, 不会记录聊天记录
req_param.append("q", userQuery);
req_param.append("chatId", traceId);
req_param.append("traceId", `${traceId}|${msgid}|${new Date().toISOString()}`);
+8
View File
@@ -75,6 +75,14 @@ function getSessionCookie(jwtSession, jwtToken) {
secure: true,
sameSite: "Lax",
},
{
name: "incognito",
value: "true",
domain: "you.com",
path: "/",
expires: 1800000000,
secure: true,
}
];
}