mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
23 lines
763 B
JavaScript
23 lines
763 B
JavaScript
const got = require('@/utils/got');
|
|
|
|
module.exports = async (ctx) => {
|
|
const res = await got({
|
|
method: 'get',
|
|
url: 'https://index.say-huahuo.com/vn.json',
|
|
});
|
|
|
|
const data = JSON.parse(res.body).reverse();
|
|
|
|
ctx.state.data = {
|
|
title: 'galgame汉化硬盘galgame资源下载-花火学园论坛',
|
|
link: 'https://index.say-huahuo.com/',
|
|
description: '花火学园',
|
|
item: data.map((item) => ({
|
|
title: item.title,
|
|
description: `<img referrerpolicy="no-referrer" src="${item.img}">`,
|
|
pubDate: new Date(parseInt(item.date.substr(0, 4)), parseInt(item.date.substr(4, 2)), parseInt(item.date.substr(6, 2))).toUTCString(),
|
|
link: item.url,
|
|
})),
|
|
};
|
|
};
|