Update search.js

This commit is contained in:
小虎故洞
2021-02-13 14:15:07 +08:00
committed by GitHub
parent 007360649e
commit 2dff99a57b

View File

@@ -8,7 +8,7 @@ module.exports = async (ctx) => {
// 添加参数keyword以及判断传入的参数sfw
let url = `https://faexport.spangle.org.uk/search.json?q=${keyword}?sfw=1`;
if (nsfw === 1 || keyword === 1) {
if (nsfw === '1' || keyword === '1') {
url = `https://faexport.spangle.org.uk/search.json?q=${keyword}`;
}