diff --git a/docs/parameter.md b/docs/parameter.md index 7e449bb946..ae3d13c3e5 100644 --- a/docs/parameter.md +++ b/docs/parameter.md @@ -96,13 +96,13 @@ RSSHub 同时支持 RSS 2.0 和 Atom 输出格式,在路由末尾添加 `.rss` ### debug -在路由末尾添加 `.debug.json`且实例运行在`debugInfo=true`的情况下,RSShub将会返回插件设置在`ctx.state.json`的内容 +在路由末尾添加 `.debug.json`且实例运行在`debugInfo=true`的情况下,RSShub 将会返回插件设置在`ctx.state.json`的内容 这功能皆在方便开发者调试问题,方便用户自行开发需要的功能。插件作者可以酌情考虑使用,没有格式要求。 举例: -- `/furstar/characters/cn.debug.json` +- `/furstar/characters/cn.debug.json` ## 输出简讯 diff --git a/lib/middleware/template.js b/lib/middleware/template.js index 754164b710..b4f3c9d2fa 100644 --- a/lib/middleware/template.js +++ b/lib/middleware/template.js @@ -20,7 +20,7 @@ module.exports = async (ctx, next) => { if (ctx.state.json) { ctx.body = JSON.stringify(ctx.state.json, null, 4); } else { - ctx.body = JSON.stringify({ message: "plugin does not set json" }); + ctx.body = JSON.stringify({ message: 'plugin does not set json' }); } } diff --git a/lib/v2/furstar/index.js b/lib/v2/furstar/index.js index 8223368571..bb7b1a11fd 100644 --- a/lib/v2/furstar/index.js +++ b/lib/v2/furstar/index.js @@ -14,7 +14,7 @@ module.exports = async (ctx) => { const details = await Promise.all(info.map((e) => utils.detailPage(e.detailPage, ctx.cache))); ctx.state.json = { - info + info, }; ctx.state.data = {