From e21dec83d328ea239d34942e40f7cd1a0b894e50 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 24 May 2019 17:42:01 +0800 Subject: [PATCH] refactor: format --- docs/picture.md | 12 ++++++------ lib/routes/sspai/topic.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/picture.md b/docs/picture.md index f21e31ca7..0c9c6f77e 100644 --- a/docs/picture.md +++ b/docs/picture.md @@ -10,6 +10,12 @@ pageClass: routes +## Bing 壁纸 + +### 每日壁纸 + + + ## Konachan Anime Wallpapers ::: tip 提示 @@ -151,9 +157,3 @@ pageClass: routes ### 主题 - -## Bing 壁纸 - -### 每日壁纸 - - diff --git a/lib/routes/sspai/topic.js b/lib/routes/sspai/topic.js index 69b2c29c9..9cc33bc2d 100644 --- a/lib/routes/sspai/topic.js +++ b/lib/routes/sspai/topic.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { if (cache) { return Promise.resolve(JSON.parse(cache)); } - if (topic_title == '') { + if (topic_title === '') { topic_title = item.topics[0].title; topic_link = `https://sspai.com/topic/${id}`; topic_des = item.topics[0].intro;