mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-13 00:35:57 +08:00
fix(route): dlsite campaign (#6987)
This commit is contained in:
@@ -104,18 +104,18 @@ const infos = {
|
||||
},
|
||||
};
|
||||
const setUrl = (info) => {
|
||||
let paramsPath = `${info.url}/=`;
|
||||
let paramsPath = `${info.url}/=/`;
|
||||
const params = info.params;
|
||||
for (const name in params) {
|
||||
if (Array.isArray(params[name])) {
|
||||
for (const index in params[name]) {
|
||||
paramsPath += `${name}[${index}]/${params[name][index]}`;
|
||||
paramsPath += `${name}[${index}]/${params[name][index]}/`;
|
||||
}
|
||||
} else {
|
||||
paramsPath += `${name}/${params[name]}`;
|
||||
paramsPath += `${name}/${params[name]}/`;
|
||||
}
|
||||
}
|
||||
return paramsPath;
|
||||
return paramsPath.slice(1);
|
||||
};
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
@@ -167,7 +167,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
ctx.state.data = {
|
||||
title: title,
|
||||
link: link,
|
||||
link: `${host}/${link}`,
|
||||
description: description,
|
||||
language: 'ja-jp',
|
||||
allowEmpty: true,
|
||||
|
||||
Reference in New Issue
Block a user