fix: sci-hub mirror address (#6304)

This commit is contained in:
Ethan Shen
2020-12-01 19:18:34 +08:00
committed by GitHub
parent 810b40dc4f
commit 683c38faf4
4 changed files with 4 additions and 4 deletions

View File

@@ -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;
});
}