fix(route): 中华人民共和国交通运输部统计数据文件 (#13937)

This commit is contained in:
Ethan Shen
2023-12-01 16:11:16 +00:00
committed by GitHub
parent bc7a386ff3
commit 1c12d6f33a
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = async (ctx) => {
items = await Promise.all(
items.map((item) =>
ctx.cache.tryGet(item.link, async () => {
if (/\.gov\.cn/.test(item.link)) {
if (/\.gov\.cn/.test(item.link) && item.link.endsWith('.html')) {
const { data: detailResponse } = await got(item.link);
const content = cheerio.load(detailResponse);