From 0493e87dc267a07466f601fcaf377eef734a39e7 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Thu, 6 Aug 2020 06:23:53 +0800 Subject: [PATCH] fix: incomplete channel links for amazfitwatchfaces (#5354) --- lib/routes/amazfitwatchfaces/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/routes/amazfitwatchfaces/utils.js b/lib/routes/amazfitwatchfaces/utils.js index 008e95e76..333a3bdc6 100644 --- a/lib/routes/amazfitwatchfaces/utils.js +++ b/lib/routes/amazfitwatchfaces/utils.js @@ -4,9 +4,11 @@ const cheerio = require('cheerio'); module.exports = async (ctx, currentUrl) => { const rootUrl = `https://amazfitwatchfaces.com/`; + currentUrl = `${rootUrl}${currentUrl}`; + const response = await got({ method: 'get', - url: `${rootUrl}${currentUrl}`, + url: currentUrl, }); const $ = cheerio.load(response.data); const list = $('#wf-row div.col-md-3')