mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-11 15:47:48 +08:00
增加: IT 桔子 (#1065)
This commit is contained in:
@@ -2198,6 +2198,12 @@ IATA 国际航空运输协会机场代码, 参见[维基百科 国际航空运
|
||||
|
||||
<route name="搜狗特色LOGO" author="xyqfer" example="/sogou/doodles" path="/sogou/doodles"/>
|
||||
|
||||
### IT 桔子
|
||||
|
||||
<route name="投融资事件" author="xyqfer" example="/itjuzi/invest" path="/itjuzi/invest"/>
|
||||
|
||||
<route name="并购事件" author="xyqfer" example="/itjuzi/merge" path="/itjuzi/merge"/>
|
||||
|
||||
### 探物
|
||||
|
||||
<route name="产品" author="xyqfer" example="/tanwu/products" path="/tanwu/products"/>
|
||||
|
||||
@@ -753,6 +753,10 @@ router.get('/hko/weather', require('./routes/hko/weather'));
|
||||
// sankakucomplex
|
||||
router.get('/sankakucomplex/post', require('./routes/sankakucomplex/post'));
|
||||
|
||||
// IT桔子
|
||||
router.get('/itjuzi/invest', require('./routes/itjuzi/invest'));
|
||||
router.get('/itjuzi/merge', require('./routes/itjuzi/merge'));
|
||||
|
||||
// 探物
|
||||
router.get('/tanwu/products', require('./routes/tanwu/products'));
|
||||
|
||||
|
||||
32
routes/itjuzi/invest.js
Normal file
32
routes/itjuzi/invest.js
Normal file
@@ -0,0 +1,32 @@
|
||||
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,
|
||||
};
|
||||
}),
|
||||
};
|
||||
};
|
||||
32
routes/itjuzi/merge.js
Normal file
32
routes/itjuzi/merge.js
Normal file
@@ -0,0 +1,32 @@
|
||||
const axios = require('../../utils/axios');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const response = await axios({
|
||||
method: 'get',
|
||||
url: 'https://www.itjuzi.com/api/index/merge',
|
||||
});
|
||||
|
||||
const data = response.data.data;
|
||||
|
||||
ctx.state.data = {
|
||||
title: 'IT桔子-并购事件',
|
||||
link: 'https://www.itjuzi.com/',
|
||||
item: data.map((item) => {
|
||||
const party = item.party.map((item) => item.name || item.invst_name).join('、');
|
||||
|
||||
return {
|
||||
title: `${item.name}-${item.slogan}`,
|
||||
link: `https://www.itjuzi.com/merger/${item.id}`,
|
||||
description: `
|
||||
<img referrerpolicy="no-referrer" src="${item.logo}"><br><br>
|
||||
<strong>${item.name}</strong><br>
|
||||
${item.slogan}<br>
|
||||
股权占比: ${item.ratio} / 金额: ${item.money} / ${item.time}<br>
|
||||
并购方: ${party}
|
||||
`,
|
||||
pubDate: new Date(item.time).toUTCString(),
|
||||
guid: item.id,
|
||||
};
|
||||
}),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user