fix(route): furaffinity search parameter (#7084)

This commit is contained in:
小虎故洞
2021-03-02 16:58:11 -05:00
committed by GitHub
parent 2d01ed897b
commit ec9afae012
+3 -3
View File
@@ -7,7 +7,7 @@ module.exports = async (ctx) => {
const keyword = String(ctx.params.keyword);
// 添加参数keyword以及判断传入的参数nsfw
let url = `https://faexport.spangle.org.uk/search.rss?q=${keyword}?sfw=1`;
let url = `https://faexport.spangle.org.uk/search.rss?q=${keyword}&sfw=1`;
if (nsfw === '1') {
url = `https://faexport.spangle.org.uk/search.rss?q=${keyword}`;
}
@@ -31,11 +31,11 @@ module.exports = async (ctx) => {
ctx.state.data = {
// 源标题
title: `FA Search List of ${keyword}`,
title: `FA Search for ${keyword}`,
// 源链接
link: `https://www.furaffinity.net/search/?q=${keyword}`,
// 源说明
description: `Fur Affinity Search List of ${keyword}`,
description: `Fur Affinity Search for ${keyword}`,
// 遍历此前获取的数据
item: