mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
fix(route): 修复/zhihu/question无法获取,需要设置非登录状态下cookie (#9729)
* 修复/zhihu/question,需要设置非登录状态下cookie * Update lib/routes/zhihu/execlib/g_encrypt.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * 根据TonyRL review建议进行了修改 * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * 增加cookie中dc_0字段检验 * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * Update lib/routes/zhihu/question.js Co-authored-by: Rongrong <Rongronggg9@outlook.com> * refactor: migrate to v2 * fix: Incomplete URL substring sanitization Co-authored-by: Rongrong <Rongronggg9@outlook.com>
This commit is contained in:
@@ -258,6 +258,7 @@ const calculateValue = () => {
|
||||
},
|
||||
zhihu: {
|
||||
cookies: envs.ZHIHU_COOKIES,
|
||||
cookies_no_login: envs.ZHIHU_COOKIES_NO_LOGIN,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user