format
This commit is contained in:
@@ -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,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 &&
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user