mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
fix: sci-hub mirror address (#6304)
This commit is contained in:
@@ -488,4 +488,4 @@ See docs of specified route and `lib/config.js` for detail information.
|
||||
|
||||
- Sci-hub for scientific journal routes:
|
||||
|
||||
- `SCIHUB_HOST`: The Sci-hub mirror address that is accssible from your location, default to `https://sci-hub.tw`.
|
||||
- `SCIHUB_HOST`: The Sci-hub mirror address that is accssible from your location, default to `https://sci-hub.se`.
|
||||
|
||||
@@ -553,7 +553,7 @@ RSSHub 支持使用访问密钥 / 码,白名单和黑名单三种方式进行
|
||||
|
||||
- Sci-hub 设置,用于科学期刊路由。
|
||||
|
||||
- `SCIHUB_HOST`: 可访问的 sci-hub 镜像地址,默认为 `https://sci-hub.tw`。
|
||||
- `SCIHUB_HOST`: 可访问的 sci-hub 镜像地址,默认为 `https://sci-hub.se`。
|
||||
|
||||
- 端传媒设置,用于获取付费内容全文:
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ const calculateValue = () => {
|
||||
cookies: discuz_cookies,
|
||||
},
|
||||
scihub: {
|
||||
host: envs.SCIHUB_HOST || 'https://sci-hub.tw/',
|
||||
host: envs.SCIHUB_HOST || 'https://sci-hub.se/',
|
||||
},
|
||||
hotlink: {
|
||||
template: envs.HOTLINK_TEMPLATE,
|
||||
|
||||
@@ -221,7 +221,7 @@ module.exports = async (ctx, next) => {
|
||||
// scihub
|
||||
if (ctx.query.scihub) {
|
||||
ctx.state.data.item.map((item) => {
|
||||
item.link = item.doi ? `https://sci-hub.tw/${item.doi}` : `https://sci-hub.tw/${item.link}`;
|
||||
item.link = item.doi ? `https://sci-hub.se/${item.doi}` : `https://sci-hub.se/${item.link}`;
|
||||
return item;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user