From a4ee8e23c16abcb9f947beb535e84df900b4f920 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 22 Jan 2022 15:59:55 +0000 Subject: [PATCH] style: auto format --- lib/v2/guduodata/daily.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/v2/guduodata/daily.js b/lib/v2/guduodata/daily.js index 8ca5316bd..de5c5a45a 100644 --- a/lib/v2/guduodata/daily.js +++ b/lib/v2/guduodata/daily.js @@ -10,8 +10,8 @@ const types = { name: '汇总榜', categories: { drama: '连续剧', - variety: '综艺' - } + variety: '综艺', + }, }, bill: { name: '排行榜', @@ -21,9 +21,9 @@ const types = { network_variety: '网络综艺', tv_drama: '电视剧', tv_variety: '电视综艺', - anime: '国漫' - } - } + anime: '国漫', + }, + }, }; module.exports = async (ctx) => { @@ -36,7 +36,7 @@ module.exports = async (ctx) => { type: key, name: `[${yestoday}] ${types[key].name} - ${types[key].categories[category]}`, category: category.toUpperCase(), - url: `${host}/show/datalist?type=DAILY&category=${category.toUpperCase()}&date=${yestoday}` + url: `${host}/show/datalist?type=DAILY&category=${category.toUpperCase()}&date=${yestoday}`, })) ); ctx.state.data = { @@ -44,10 +44,10 @@ module.exports = async (ctx) => { link: host, description: yestoday, item: await Promise.all( - items.map((item) => ctx.cache.tryGet(item.url, - async () => { + items.map((item) => + ctx.cache.tryGet(item.url, async () => { const response = await got.get(`${item.url}&t=${now}`, { - headers: { Referer: `http://data.guduodata.com/`, }, + headers: { Referer: `http://data.guduodata.com/` }, }); const data = response.data.data; return { @@ -58,6 +58,6 @@ module.exports = async (ctx) => { }; }) ) - ) + ), }; -}; \ No newline at end of file +};