From 2056de33ddca093214a1537dc0164396115222d1 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 23 May 2018 01:12:43 +0800 Subject: [PATCH] rss: jike topicSquare: fix app version --- routes/jike/topicSquare.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/jike/topicSquare.js b/routes/jike/topicSquare.js index 8f1c0ab981..e68a0bc587 100644 --- a/routes/jike/topicSquare.js +++ b/routes/jike/topicSquare.js @@ -6,11 +6,11 @@ module.exports = async (ctx) => { const itemData = await axios({ method: 'post', - url: `https://app.jike.ruguoapp.com/1.0/squarePosts/list`, + url: 'https://app.jike.ruguoapp.com/1.0/squarePosts/list', headers: { 'User-Agent': config.ua, Referer: `https://m.okjike.com/topics/${id}`, - 'App-Version': '3.5.0', + 'App-Version': '4.1.0', }, data: { loadMoreKey: null, @@ -27,14 +27,14 @@ module.exports = async (ctx) => { image: itemInfo[0].topic.squarePicture.thumbnailUrl, item: itemInfo.map((item) => { const user = '用户:' + item.user.screenName; - let contentTemplate = `
${item.content}`; + const contentTemplate = `
${item.content}`; let imgTemplate = ''; item.pictures.length > 0 && item.pictures.forEach((item) => { imgTemplate += `
`; }); - let videoTemplate = ''; + const videoTemplate = ''; // 暂时没找到有视频的信息,后续遇到再补充 // if (item.video) { // videoTemplate = `
视频: `;