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:
parent
c6de9e45cb
commit
038848a73b
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue