style: auto format
This commit is contained in:
parent
07834413f5
commit
a5573cdcac
|
|
@ -50,7 +50,7 @@ async function handler(ctx) {
|
|||
.toArray()
|
||||
.map((tag) => $(tag).attr('title').replace(/^:/, '')),
|
||||
description: needImages ? '' : `<img src="${item.find('div.glthumb div img').attr('data-src') ?? item.find('div.glthumb div img').attr('src')}">`,
|
||||
enclosure_url: needTorrents && (item.find('div.gldown a img[title="Show torrents"]').length > 0) ? item.find('.gldown a').attr('href') : undefined,
|
||||
enclosure_url: needTorrents && item.find('div.gldown a img[title="Show torrents"]').length > 0 ? item.find('.gldown a').attr('href') : undefined,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ async function handler(ctx) {
|
|||
return {
|
||||
title: `${board === 'all' ? '全部看板' : boardInfo.title} | Meteor 學生社群`,
|
||||
description: board === 'all' ? null : boardInfo.feedDescription,
|
||||
image: (board === 'all') || (boardInfo.imgUrl === 'not_set') ? null : boardInfo.imgUrl,
|
||||
image: board === 'all' || boardInfo.imgUrl === 'not_set' ? null : boardInfo.imgUrl,
|
||||
link: `${board === 'all' ? `${baseUrl}/board/all` : boardInfo.link}/new`,
|
||||
item: items,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ async function handler(ctx) {
|
|||
);
|
||||
|
||||
return {
|
||||
title: `${ctx.req.param('recruitType') && (ctx.req.param('recruitType') === '2') ? '社招广场' : '实习广场'} - 牛客网`,
|
||||
title: `${ctx.req.param('recruitType') && ctx.req.param('recruitType') === '2' ? '社招广场' : '实习广场'} - 牛客网`,
|
||||
link: rootUrl,
|
||||
item: items,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -44,7 +44,11 @@ async function handler(ctx) {
|
|||
const single = await cache.tryGet(link, async () => {
|
||||
const res = await utils.request(link, cache);
|
||||
const content = load(res.data);
|
||||
detailLinks.push(...content('.ico.ico_bt').toArray().map((a) => $(a).attr('href')));
|
||||
detailLinks.push(
|
||||
...content('.ico.ico_bt')
|
||||
.toArray()
|
||||
.map((a) => $(a).attr('href'))
|
||||
);
|
||||
});
|
||||
return single;
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue