mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-08-31 01:01:11 +08:00
feat(route): /zhihu/daily/section/:sectionId add pubDate (#13020)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const got = require('@/utils/got');
|
||||
const utils = require('./utils');
|
||||
const { parseDate } = require('@/utils/parse-date');
|
||||
|
||||
// 参考:https://github.com/izzyleung/ZhihuDailyPurify/wiki/%E7%9F%A5%E4%B9%8E%E6%97%A5%E6%8A%A5-API-%E5%88%86%E6%9E%90
|
||||
// 文章给出了v7版 api的信息,包含全文api
|
||||
@@ -21,6 +22,7 @@ module.exports = async (ctx) => {
|
||||
const url = 'https://news-at.zhihu.com/api/7/news/' + story.id;
|
||||
const item = {
|
||||
title: story.title,
|
||||
pubDate: parseDate(story.date, 'YYYYMMDD'),
|
||||
description: '',
|
||||
link: 'https://daily.zhihu.com/story/' + story.id,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user