mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): 萧山停水 (#12093)
This commit is contained in:
@@ -3,7 +3,7 @@ const cheerio = require('cheerio');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
// const area = ctx.params.area;
|
||||
const url = 'http://www.xswater.com/gongshui/channels/227.html';
|
||||
const url = 'https://www.xswater.com/gongshui/channels/227.html';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url,
|
||||
@@ -15,7 +15,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
ctx.state.data = {
|
||||
title: $('title').text(),
|
||||
link: 'http://www.xswater.com/gongshui/channels/227.html',
|
||||
link: 'https://www.xswater.com/gongshui/channels/227.html',
|
||||
description: $('meta[name="description"]').attr('content') || $('title').text(),
|
||||
item:
|
||||
list &&
|
||||
@@ -26,7 +26,7 @@ module.exports = async (ctx) => {
|
||||
title: item.find('a').text(),
|
||||
description: `萧山区停水通知:${item.find('a').text()}`,
|
||||
pubDate: new Date(item.find('span').text().slice(1, 11)).toUTCString(),
|
||||
link: `http://www.xswater.com${item.find('a').attr('href')}`,
|
||||
link: `https://www.xswater.com${item.find('a').attr('href')}`,
|
||||
};
|
||||
})
|
||||
.get(),
|
||||
|
||||
Reference in New Issue
Block a user