From c9fa1add852b41132b5c2a87bf7a07f05151c67f Mon Sep 17 00:00:00 2001 From: HelloWorld Date: Fri, 17 Jul 2020 10:00:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=94=B6=E5=8F=96=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=8A=93=E5=8F=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/crontab.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/config/crontab.js b/src/config/crontab.js index 3847ca9..14da14b 100644 --- a/src/config/crontab.js +++ b/src/config/crontab.js @@ -22,7 +22,11 @@ module.exports = [{ let data = JSON.parse(body).data; let list = data.list; let dataList = []; - for (const item of list) { + for (let item of list) { + if (item.images_upd.indexOf(',http') >= 0) { + item.images_upd = item.images_upd.split(',http')[0]; + } + dataList.push({ id: item.articleId, title: item.title,