Update search.js

This commit is contained in:
小虎故洞
2021-02-13 13:57:35 +08:00
committed by GitHub
parent 7f156d8471
commit d92e10ef49
+1 -1
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}`;
}