fix(route): lkong (#11072)

This commit is contained in:
Tony
2022-10-12 22:14:56 +08:00
committed by GitHub
parent 09e6ee4d26
commit e5a997c824
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -718,7 +718,7 @@ pageClass: routes
### 帖子
<Route author="ma6254 nczitzk" example="/lkong/thread/2356933" path="/lkong/thread/:id?" :paramsDesc="['帖子 id, 可在帖子的URL里找到']"/>
<Route author="ma6254 nczitzk" example="/lkong/thread/3100275" path="/lkong/thread/:id?" :paramsDesc="['帖子 id, 可在帖子的URL里找到']"/>
## 龙腾网
+3 -2
View File
@@ -34,11 +34,12 @@ module.exports = async (ctx) => {
json: viewThread(item.guid, 1),
});
item.author = detailResponse.data.data.thread.author.name;
item.pubDate = parseDate(detailResponse.data.data.thread.dateline);
item.author = detailResponse.data.data.thread?.author.name;
item.pubDate = parseDate(detailResponse.data.data.thread?.dateline);
item.description = art(path.join(__dirname, 'templates/content.art'), {
content: JSON.parse(detailResponse.data.data.posts[0].content),
});
delete item.guid;
return item;
})