From 4570002ebe0a3485235035ac1c5a64ca98f90723 Mon Sep 17 00:00:00 2001 From: Chenyang Shi Date: Fri, 13 Mar 2020 00:34:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=B9=E7=89=9B=E9=83=A8=E8=90=BD=20(?= =?UTF-8?q?#4230)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/chuiniu/column.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/chuiniu/column.js b/lib/routes/chuiniu/column.js index 34c503d263..27b84a0d99 100644 --- a/lib/routes/chuiniu/column.js +++ b/lib/routes/chuiniu/column.js @@ -7,7 +7,7 @@ module.exports = async (ctx) => { let response = await got({ method: 'get', - url: 'http://api.duanshu.com/fairy/api/v1/shop/identifier/', + url: 'http://oss-web.duanshu.com/shop/chuiniu-duanshu-com/config.json', headers: { Origin: url, Referer: url, @@ -20,6 +20,7 @@ module.exports = async (ctx) => { url: `http://api.duanshu.com/h5/content/free/column/detail/${column_id}?shop_id=${shop_id}`, headers: { Referer: url, + 'x-platform': 'h5', }, }); const title = response.data.response.data.title;