diff --git a/lib/routes/nuaa/jwc/jwc.ts b/lib/routes/nuaa/jwc/jwc.ts index afc8b4ef2..e60b7fc5e 100644 --- a/lib/routes/nuaa/jwc/jwc.ts +++ b/lib/routes/nuaa/jwc/jwc.ts @@ -7,7 +7,7 @@ import { parseDate } from '@/utils/parse-date'; import getCookie from '../utils/pypasswaf'; -const host = 'http://aao.nuaa.edu.cn/'; +const host = 'https://aao.nuaa.edu.cn/'; const map = new Map([ ['tzgg', { title: '通知公告 | 南京航空航天大学教务处', suffix: '8222/list.htm' }], @@ -53,14 +53,14 @@ async function handler(ctx) { const response = await got(link, gotConfig); const $ = load(response.data); - const list = $('#wp_news_w8 ul li') + const list = $('#news_list .news_ul .p-list-item a') .slice(0, 10) .toArray() .map((element) => { const info = { - title: $(element).find('a').text(), - link: $(element).find('a').attr('href'), - date: $(element).find('span').text(), + title: $(element).find('.text .title').text(), + link: $(element).attr('href'), + date: $(element).find('.date em').text() + '-' + $(element).find('.date span').text(), }; return info; });