fix: 修复二柄APP部分图片显示问题 (#6019)

This commit is contained in:
wushijishan
2020-10-29 16:37:59 +00:00
committed by GitHub
parent e8833e4f45
commit bb31fb6d52
+7
View File
@@ -19,6 +19,13 @@ module.exports = async (ctx) => {
description += `<br><img src="${item.video_img}">`;
} else if (item.acontent.indexOf('104129') !== -1) {
description += `<br><img src="${item.article.humb.split('?')[0]}">`;
} else if (item.acontent.indexOf('.html') !== -1) {
description += `<br><a href="${item.acontent}">More</a>`;
} else if (item.acontent.indexOf('"imgs') !== -1) {
const imgs = item.acontent.split(',');
for (let i = 1; i < imgs.length; i++) {
description += `<br><img src="${imgs[i]}">`;
}
} else {
const imgs = item.acontent.split(',');
for (let i = 0; i < imgs.length; i++) {