From 64a9bfe47f84e4c1e6fce1c2b9af0d36d0b5d5d0 Mon Sep 17 00:00:00 2001 From: Mervyn Zhan <6359152+reply2future@users.noreply.github.com> Date: Sun, 6 Apr 2025 00:21:55 +0800 Subject: [PATCH] fix: #18771 gov stats description error (#18773) * fix(route/gov/stats): corrected the `description` and `author` fix #18771 * docs(route/gov/stats): correct the example path * refactor(route/gov/stats): fetch the item.author directly * refactor(route/gov/stats): remove the always false condition --- lib/routes/gov/stats/index.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/routes/gov/stats/index.ts b/lib/routes/gov/stats/index.ts index 237f9e07e..b03d1b4a8 100644 --- a/lib/routes/gov/stats/index.ts +++ b/lib/routes/gov/stats/index.ts @@ -16,8 +16,8 @@ export const route: Route = { name: '国家统计局 通用', url: 'www.stats.gov.cn', categories: ['government'], - maintainers: ['bigfei', 'nczitzk'], - example: '/stats/sj/zxfb', + maintainers: ['bigfei', 'nczitzk', 'reply2future'], + example: '/gov/stats/sj/zxfb', handler, radar: [ { @@ -108,18 +108,14 @@ async function handler(ctx) { return item; } - try { - item.author = detailResponse.data.match(/来源:(.*?) {