fix: oilprice route (#2395)

This commit is contained in:
nicolaszf
2019-06-13 15:24:18 +08:00
committed by DIYgod
parent 7c5aaa3c14
commit 19e0ea28af
+2 -2
View File
@@ -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