From 4c499e3fb09cd81d94a54b7a5d732bf7bb5cfa7c Mon Sep 17 00:00:00 2001 From: haha Date: Thu, 13 May 2021 03:23:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(route):=20Add=20=E5=8A=A0=E6=8B=BF?= =?UTF-8?q?=E5=A4=A7=E5=A4=A7=E4=BD=BF=E9=A6=86=20and=20=E8=92=99=E7=89=B9?= =?UTF-8?q?=E5=88=A9=E5=B0=94=E9=A2=86=E4=BA=8B=E9=A6=86=20to=20=E4=B8=AD?= =?UTF-8?q?=E5=9B=BD=E9=A9=BB=E5=A4=96=E4=BD=BF=E9=A2=86=E9=A6=86=20(#7416?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/government.md | 12 ++++++++++++ lib/routes/embassy/supportedList.js | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/docs/government.md b/docs/government.md index 31543faaa20df6..7f7e9f33099edf 100644 --- a/docs/government.md +++ b/docs/government.md @@ -435,6 +435,18 @@ pageClass: routes ### 支持国家列表 +#### 加拿大 `CA` + +- 大使馆: `/embassy/ca` + +- 领事馆城市列表: + +| 城市 | 路由 | +| -------- | ---------------------- | +| 蒙特利尔 | `/embassy/ca/montreal` | + +* * * + #### 德国 `DE` - 大使馆: `/embassy/de` diff --git a/lib/routes/embassy/supportedList.js b/lib/routes/embassy/supportedList.js index f0479e73324138..3bb0d88aa89b0b 100644 --- a/lib/routes/embassy/supportedList.js +++ b/lib/routes/embassy/supportedList.js @@ -1,4 +1,23 @@ module.exports = { + ca: { + country: 'ca', + countryCN: '加拿大', + link: 'http://ca.china-embassy.org/chn/zytz/', + list: 'div[class=nav_title_list] > ul a', + title: '#News_Body_Title', + description: '#News_Body_Txt_A', + pubDate: '#News_Body_Time', + consulates: { + montreal: { + cityCN: '蒙特利尔', + link: 'http://montreal.chineseconsulate.org/chn/zytz/', + list: '#docMore > tbody > tr > td:nth-child(3) > div[class=Text_Center] > ul a', + title: '#News_Body_Title', + description: '#News_Body_Txt_A', + pubDate: '#News_Body_Time', + }, + }, + }, de: { country: 'de', countryCN: '德国',