From 6f04affaa1c305a553eeedfaccede8adaebb9e1c Mon Sep 17 00:00:00 2001 From: Wildmoe Date: Mon, 13 Mar 2023 19:04:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(route):=20=E8=90=A7=E5=B1=B1=E5=81=9C?= =?UTF-8?q?=E6=B0=B4=20(#12093)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/v2/tingshuitz/xiaoshan.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/v2/tingshuitz/xiaoshan.js b/lib/v2/tingshuitz/xiaoshan.js index 2577e57b04..c98c9f2ce5 100644 --- a/lib/v2/tingshuitz/xiaoshan.js +++ b/lib/v2/tingshuitz/xiaoshan.js @@ -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(),