chore: format

This commit is contained in:
DIYgod
2019-11-11 12:13:38 +08:00
parent 07d46437a5
commit ba8070b1b2
16 changed files with 160 additions and 114 deletions

View File

@@ -29,9 +29,11 @@ module.exports = async (ctx) => {
const response = await ctx.cache.tryGet(
itemUrl,
async () =>
(await got.get(itemUrl, {
responseType: 'buffer',
})).data
(
await got.get(itemUrl, {
responseType: 'buffer',
})
).data
);
const html = iconv.decode(response, 'gbk');
const $ = cheerio.load(html, { decodeEntities: false });