From 038848a73bbc3b8cf0fa78e4c929d1bb137f49a0 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 6 Jun 2025 05:34:52 +0800 Subject: [PATCH] feat(gov/customs): add latest docs (#19289) * feat(gov/customs): add latest docs * feat(gov/customs): add language property to response --- lib/routes/gov/customs/list.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/routes/gov/customs/list.ts b/lib/routes/gov/customs/list.ts index 6473fd3f5..389f9d8ff 100644 --- a/lib/routes/gov/customs/list.ts +++ b/lib/routes/gov/customs/list.ts @@ -11,7 +11,7 @@ export const route: Route = { path: '/customs/list/:gchannel?', categories: ['government'], example: '/gov/customs/list/paimai', - parameters: { gchannel: '支持 `paimai` 及 `fagui` 2个频道,默认为 `paimai`' }, + parameters: { gchannel: '支持 `paimai`, `fagui` 及 `latest` 3 个频道,默认为 `paimai`' }, features: { requireConfig: false, requirePuppeteer: true, @@ -26,7 +26,7 @@ export const route: Route = { target: '/customs/list', }, ], - name: '拍卖信息 / 海关法规', + name: '拍卖信息 / 海关法规 / 最新文件', maintainers: ['Jeason0228', 'TonyRL', 'he1q'], handler, url: 'www.customs.gov.cn/', @@ -49,6 +49,10 @@ async function handler(ctx) { channelName = '海关法规'; link = `${host}/customs/302249/302266/index.html`; break; + case 'latest': + channelName = '最新文件'; + link = `${host}/customs/302249/2480148/index.html`; + break; default: channelName = '拍卖信息'; link = `${host}/customs/302249/zfxxgk/2799825/2799883/index.html`; @@ -109,6 +113,7 @@ async function handler(ctx) { return { title: `中国海关-${channelName}`, link, + language: 'zh-CN', item: out, }; }