refactor: format

This commit is contained in:
DIYgod 2019-05-24 17:42:01 +08:00
parent 5f83ef4e2e
commit e21dec83d3
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 7 additions and 7 deletions

View File

@ -10,6 +10,12 @@ pageClass: routes
<Route author="Chingyat" example="/pigtails" path="/pigtails/index"/>
## Bing 壁纸
### 每日壁纸
<Route author="FHYunCai" example="/bing" path="/bing"/>
## Konachan Anime Wallpapers
::: tip 提示
@ -151,9 +157,3 @@ pageClass: routes
### 主题
<Route author="xyqfer" example="/dapenti/subject/184" path="/dapenti/subject/:id" :paramsDesc="['主题 id']"/>
## Bing 壁纸
### 每日壁纸
<Route author="FHYunCai" example="/bing" path="/bing"/>

View File

@ -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;