From 19e0ea28af4ae9ac25098db551eb792eda6c6d8f Mon Sep 17 00:00:00 2001 From: nicolaszf <43488135+nicolaszf@users.noreply.github.com> Date: Thu, 13 Jun 2019 15:24:18 +0800 Subject: [PATCH] fix: oilprice route (#2395) --- lib/routes/oilprice/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/oilprice/index.js b/lib/routes/oilprice/index.js index 28d0c5a35..dc87966f6 100644 --- a/lib/routes/oilprice/index.js +++ b/lib/routes/oilprice/index.js @@ -11,12 +11,12 @@ module.exports = async (ctx) => { responseType: 'buffer', }); const $ = cheerio.load(iconv.decode(response.data, 'gb2312')); - const $list = $('.pp') + const $list = $('.content') .eq(0) .find('table tbody tr'); const resultItem = []; let areaName = ''; - const updateTime = $('.pm') + const updateTime = $('.time') .text() .split(':')[1]; const labelList = $list