From 414b14a48ce1eeb6056c545ced76f3f3e6da90c6 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 28 Jun 2018 00:44:13 +0800 Subject: [PATCH] format --- routes/tingshuitz/dalian.js | 6 +++--- routes/tingshuitz/hangzhou.js | 6 +++--- routes/tingshuitz/xiaoshan.js | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/routes/tingshuitz/dalian.js b/routes/tingshuitz/dalian.js index f188ff6cd..1122fe3c1 100644 --- a/routes/tingshuitz/dalian.js +++ b/routes/tingshuitz/dalian.js @@ -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 && diff --git a/routes/tingshuitz/hangzhou.js b/routes/tingshuitz/hangzhou.js index d2f6f8075..4844ff21b 100644 --- a/routes/tingshuitz/hangzhou.js +++ b/routes/tingshuitz/hangzhou.js @@ -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 && diff --git a/routes/tingshuitz/xiaoshan.js b/routes/tingshuitz/xiaoshan.js index 2024af286..8cee37a96 100644 --- a/routes/tingshuitz/xiaoshan.js +++ b/routes/tingshuitz/xiaoshan.js @@ -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 &&