fix(route): 北京价格 (#16891)

This commit is contained in:
Ethan Shen 2024-09-24 00:14:05 +08:00 committed by GitHub
parent bff24c8123
commit 2c58daa520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 12 deletions

View File

@ -9,8 +9,8 @@ export const handler = async (ctx) => {
const { category = 'jgzx/xwzx' } = ctx.req.param();
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit'), 10) : 15;
const rootUrl = 'http://www.beijingprice.cn';
const apiRootUrl = 'http://www.beijingprice.cn:8086';
const rootUrl = 'https://www.beijingprice.cn';
const apiRootUrl = 'https://www.beijingprice.cn:8086';
const currentUrl = new URL(category.endsWith('/') ? category : `${category}/`, rootUrl).href;
const apiNewsUrl = new URL('price/priceInformation/MorningDayWeekNews/MorningNews', apiRootUrl).href;
@ -114,21 +114,21 @@ export const route: Route = {
example: '/beijingprice/jgzx/xwzx',
parameters: { category: '分类,默认为 `jgzx/xwzx` 即新闻资讯,可在对应分类页 URL 中找到' },
description: `:::tip
[](http://www.beijingprice.cn/jgzx/xwzx/),网址为 \`http://www.beijingprice.cn/jgzx/xwzx/\`。截取 \`https://beijingprice.cn/\` 到末尾 \`/\` 的部分 \`jgzx/xwzx\` 作为参数填入,此时路由为 [\`/beijingprice/jgzx/xwzx\`](https://rsshub.app/beijingprice/jgzx/xwzx)。
[](https://www.beijingprice.cn/jgzx/xwzx/),网址为 \`https://www.beijingprice.cn/jgzx/xwzx/\`。截取 \`https://beijingprice.cn/\` 到末尾 \`/\` 的部分 \`jgzx/xwzx\` 作为参数填入,此时路由为 [\`/beijingprice/jgzx/xwzx\`](https://rsshub.app/beijingprice/jgzx/xwzx)。
:::
#### [](http://www.beijingprice.cn/jgzx/xwzx/)
#### [](https://www.beijingprice.cn/jgzx/xwzx/)
| [](http://www.beijingprice.cn/jgzx/xwzx/) | [工作动态](http://www.beijingprice.cn/jgzx/gzdt/) | [各区动态](http://www.beijingprice.cn/jgzx/gqdt/) | [通知公告](http://www.beijingprice.cn/jgzx/tzgg/) | [价格早报](http://www.beijingprice.cn/jgzx/jgzb/) |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| [jgzx/xwzx](https://rsshub.app//beijingprice/jgzx/xwzx) | [jgzx/gzdt](https://rsshub.app//beijingprice/jgzx/gzdt) | [jgzx/gqdt](https://rsshub.app//beijingprice/jgzx/gqdt) | [jgzx/tzgg](https://rsshub.app//beijingprice/jgzx/tzgg) | [jgzx/jgzb](https://rsshub.app//beijingprice/jgzx/jgzb) |
| [](https://www.beijingprice.cn/jgzx/xwzx/) | [工作动态](https://www.beijingprice.cn/jgzx/gzdt/) | [各区动态](https://www.beijingprice.cn/jgzx/gqdt/) | [通知公告](https://www.beijingprice.cn/jgzx/tzgg/) | [价格早报](https://www.beijingprice.cn/jgzx/jgzb/) |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| [jgzx/xwzx](https://rsshub.app/beijingprice/jgzx/xwzx) | [jgzx/gzdt](https://rsshub.app/beijingprice/jgzx/gzdt) | [jgzx/gqdt](https://rsshub.app/beijingprice/jgzx/gqdt) | [jgzx/tzgg](https://rsshub.app/beijingprice/jgzx/tzgg) | [jgzx/jgzb](https://rsshub.app/beijingprice/jgzx/jgzb) |
#### [](http://www.beijingprice.cn/zhxx/cbjs/)
#### [](https://www.beijingprice.cn/zhxx/cbjs/)
| [](http://www.beijingprice.cn/zhxx/jgtz/) | [价格监测定点单位名单](http://www.beijingprice.cn/zhxx/jgjcdddwmd/) | [部门预算决算](http://www.beijingprice.cn/bmys/) |
| ------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------ |
| [zhxx/jgtz](https://rsshub.app//beijingprice/zhxx/jgtz) | [zhxx/jgjcdddwmd](https://rsshub.app//beijingprice/zhxx/jgjcdddwmd) | [bmys](https://rsshub.app//beijingprice/bmys) |
`,
| [](https://www.beijingprice.cn/zhxx/jgtz/) | [价格监测定点单位名单](https://www.beijingprice.cn/zhxx/jgjcdddwmd/) | [部门预算决算](https://www.beijingprice.cn/bmys/) |
| ------------------------------------------------------ | -------------------------------------------------------------------- | ------------------------------------------------- |
| [zhxx/jgtz](https://rsshub.app/beijingprice/zhxx/jgtz) | [zhxx/jgjcdddwmd](https://rsshub.app/beijingprice/zhxx/jgjcdddwmd) | [bmys](https://rsshub.app/beijingprice/bmys) |
`,
categories: ['government'],
features: {