fix(route): fix bphc URL changed (#11810)

This commit is contained in:
Felix Hsu
2023-02-09 01:41:56 +08:00
committed by GitHub
parent 6cd2289d05
commit 9d4cff8a7c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ pageClass: routes
### 北京市共有产权住房租赁服务平台
<Route author="bigfei" example="/gov/beijing/bphc/announcement" path="/gov/beijing/bphc/:caty" :paramsDesc="['类别']">
<Route author="bigfei" example="/gov/beijing/bphc/announcement" path="/gov/beijing/bphc/:cat" :paramsDesc="['类别']">
| 通知公告 | 项目介绍 |
| :----------: | :-----: |
+1 -1
View File
@@ -18,7 +18,7 @@ const mapping = {
};
module.exports = async (ctx) => {
const rootUrl = 'http://gycp.bphc.com.cn:21000';
const rootUrl = 'https://gycpt.bphc.com.cn';
const defaultPath = 'announcement';
const pathname = ctx.path.replace(/(^\/beijing\/bphc|\/$)/g, '');