This commit is contained in:
DIYgod
2018-06-28 00:44:13 +08:00
parent e2a2cf166a
commit 414b14a48c
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -3,8 +3,8 @@ const cheerio = require('cheerio');
const config = require('../../config');
module.exports = async (ctx) => {
//const area = ctx.params.area;
const url = `http://www.swj.dl.gov.cn/html/tstz/`;
// const area = ctx.params.area;
const url = 'http://www.swj.dl.gov.cn/html/tstz/';
const response = await axios({
method: 'get',
url: url,
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: $('title').text() || '停水通知 - 大连市水务局',
link: `http://www.swj.dl.gov.cn/html/tstz/`,
link: 'http://www.swj.dl.gov.cn/html/tstz/',
description: $('meta[name="description"]').attr('content') || $('title').text() || '停水通知 - 大连市水务局',
item:
list &&
+3 -3
View File
@@ -3,8 +3,8 @@ const cheerio = require('cheerio');
const config = require('../../config');
module.exports = async (ctx) => {
//const area = ctx.params.area;
const url = `http://www.hzwgc.com/public/stop_the_water/`;
// const area = ctx.params.area;
const url = 'http://www.hzwgc.com/public/stop_the_water/';
const response = await axios({
method: 'get',
url: url,
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: $('title').text(),
link: `http://www.hzwgc.com/public/stop_the_water/`,
link: 'http://www.hzwgc.com/public/stop_the_water/',
description: $('meta[name="description"]').attr('content') || $('title').text(),
item:
list &&
+2 -2
View File
@@ -3,7 +3,7 @@ const cheerio = require('cheerio');
const config = require('../../config');
module.exports = async (ctx) => {
//const area = ctx.params.area;
// const area = ctx.params.area;
const url = 'http://www.xswater.com/gongshui/channels/227.html';
const response = await axios({
method: 'get',
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: $('title').text(),
link: `http://www.xswater.com/gongshui/channels/227.html`,
link: 'http://www.xswater.com/gongshui/channels/227.html',
description: $('meta[name="description"]').attr('content') || $('title').text(),
item:
list &&