mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
22 lines
626 B
JavaScript
22 lines
626 B
JavaScript
const got = require('@/utils/got');
|
|
|
|
module.exports = async (ctx) => {
|
|
const data = (await got({
|
|
method: 'post',
|
|
url: 'https://qiao.sf-express.com/menu/getListNews.pub',
|
|
json: true,
|
|
data: {},
|
|
})).data;
|
|
|
|
ctx.state.data = {
|
|
title: '顺丰丰桥开放平台-公告',
|
|
link: 'https://qiao.sf-express.com/pages/news/index.html',
|
|
item: data.latesnewsList.map((item) => ({
|
|
title: item.title,
|
|
description: '',
|
|
pubDate: '',
|
|
link: `https://qiao.sf-express.com/pages/news/index.html?id=${item.id}`,
|
|
})),
|
|
};
|
|
};
|