fix(route): lkong (#11072)
This commit is contained in:
+1
-1
@@ -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里找到']"/>
|
||||
|
||||
## 龙腾网
|
||||
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user