mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
@@ -3,22 +3,22 @@ const got = require('@/utils/got');
|
||||
module.exports = async (ctx) => {
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: `https://ourwork-api.nework360.com/needs/listHotJobs?pageNum=1&limit=100`,
|
||||
url: `https://ourwork-api.nework360.com/job/getHotJobList?pageNum=1&limit=100`,
|
||||
});
|
||||
|
||||
const data = response.data.data;
|
||||
|
||||
const items = data.map((jobDetail) => ({
|
||||
title: jobDetail.jobName,
|
||||
link: `https://ourwork.nework360.com/project/detail/${jobDetail.needsId}`,
|
||||
author: jobDetail.nickname,
|
||||
title: jobDetail.title,
|
||||
link: `https://www.nework360.com/job/detail/${jobDetail.jobId}`,
|
||||
author: jobDetail.publisherId,
|
||||
description: jobDetail.description,
|
||||
pubDate: new Date(jobDetail.createTime).toUTCString(),
|
||||
}));
|
||||
|
||||
ctx.state.data = {
|
||||
title: '好队友-远程工作',
|
||||
link: 'https://ourwork.nework360.com/job/list',
|
||||
link: 'https://www.nework360.com/job/hots',
|
||||
item: items,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user