From baec2b62433259038be18caa7b4874d3e889c7c8 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 29 Jul 2020 13:36:53 +0000 Subject: [PATCH] style: auto format --- docs/install/README.md | 10 ++++++---- lib/routes/liequtv/room.js | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/install/README.md b/docs/install/README.md index 932340bbd..9e890a619 100644 --- a/docs/install/README.md +++ b/docs/install/README.md @@ -187,13 +187,15 @@ $ git pull ## 部署到 Heroku ### 一键部署(无自动更新) + [![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https%3A%2F%2Fgithub.com%2FDIYgod%2FRSSHub) ### 自动更新部署 -1. 将 RSSHub [分叉(fork)](https://github.com/login?return_to=%2FDIYgod%2FRSSHub) 到自己的账户下。 -2. 把自己的分叉部署到 Heroku:`https://heroku.com/deploy?template=URL`,其中 `URL` 改为分叉地址(例如 `https://github.com/USERNAME/RSSHub`)。 -3. 检查 Heroku 设置,随代码库更新自动部署。 -4. 安装 [Pull](https://github.com/apps/pull) 应用,定期将 RSSHub 改动自动同步至你的分叉。 + +1. 将 RSSHub [分叉(fork)](https://github.com/login?return_to=%2FDIYgod%2FRSSHub) 到自己的账户下。 +2. 把自己的分叉部署到 Heroku:`https://heroku.com/deploy?template=URL`,其中 `URL` 改为分叉地址 (例如 `https://github.com/USERNAME/RSSHub`)。 +3. 检查 Heroku 设置,随代码库更新自动部署。 +4. 安装 [Pull](https://github.com/apps/pull) 应用,定期将 RSSHub 改动自动同步至你的分叉。 ## 部署到 Vercel (Zeit Now) diff --git a/lib/routes/liequtv/room.js b/lib/routes/liequtv/room.js index 8dd20466a..7818db534 100644 --- a/lib/routes/liequtv/room.js +++ b/lib/routes/liequtv/room.js @@ -6,7 +6,7 @@ module.exports = async (ctx) => { const id = ctx.params.id; const cache_key = `liequtv::latest_base_host::${new Date().toJSON().slice(0, 10)}`; - const url = `${await ctx.cache.get(cache_key) || original_host}/${id}`; + const url = `${(await ctx.cache.get(cache_key)) || original_host}/${id}`; const response = await got({ method: 'get',