mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
33 lines
1016 B
JavaScript
33 lines
1016 B
JavaScript
const axios = require('@/utils/axios');
|
|
|
|
module.exports = async (ctx) => {
|
|
const response = await axios({
|
|
method: 'get',
|
|
url: 'https://www.itjuzi.com/api/index/invse',
|
|
});
|
|
|
|
const data = response.data.data;
|
|
|
|
ctx.state.data = {
|
|
title: 'IT桔子-投融资事件',
|
|
link: 'https://www.itjuzi.com/',
|
|
item: data.map((item) => {
|
|
const invest = item.invst.map((item) => item.name).join('、');
|
|
|
|
return {
|
|
title: `${item.name} / ${item.round} / ${item.money}`,
|
|
link: `https://www.itjuzi.com/company/${item.invse_com_id}`,
|
|
description: `
|
|
<img referrerpolicy="no-referrer" src="${item.logo}"><br><br>
|
|
<strong>${item.name}</strong><br>
|
|
${item.slogan}<br>
|
|
${item.round} / ${item.money} / ${item.time}<br>
|
|
投资方: ${invest}
|
|
`,
|
|
pubDate: new Date(item.time).toUTCString(),
|
|
guid: item.id,
|
|
};
|
|
}),
|
|
};
|
|
};
|