fix: sci-hub mirror in parameter
This commit is contained in:
parent
683c38faf4
commit
fdefa01986
|
|
@ -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.se/${item.doi}` : `https://sci-hub.se/${item.link}`;
|
||||
item.link = item.doi ? `${config.scihub.host}${item.doi}` : `${config.scihub.host}${item.link}`;
|
||||
return item;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue