更新收取图片抓取逻辑

This commit is contained in:
HelloWorld 2020-07-17 10:00:27 +08:00
parent 74de1c1ffa
commit c9fa1add85
1 changed files with 5 additions and 1 deletions

View File

@ -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,