Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(route): Add 加拿大大使馆 and 蒙特利尔领事馆 to 中国驻外使领馆 #7416

Merged
merged 1 commit into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/government.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,18 @@ pageClass: routes

### 支持国家列表

#### 加拿大 `CA`

- 大使馆: `/embassy/ca`

- 领事馆城市列表:

| 城市 | 路由 |
| -------- | ---------------------- |
| 蒙特利尔 | `/embassy/ca/montreal` |

* * *

#### 德国 `DE`

- 大使馆: `/embassy/de`
Expand Down
19 changes: 19 additions & 0 deletions lib/routes/embassy/supportedList.js
Original file line number Diff line number Diff line change
@@ -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: '德国',
Expand Down