diff --git a/docs/government.md b/docs/government.md index 31543faaa2..7f7e9f3309 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 f0479e7332..3bb0d88aa8 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: '德国',