feat(gov/customs): add latest docs (#19289)

* feat(gov/customs): add latest docs

* feat(gov/customs): add language property to response
This commit is contained in:
Tony 2025-06-06 05:34:52 +08:00 committed by GitHub
parent c6de9e45cb
commit 038848a73b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -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,
};
}