fix: 修复 B站动态转发多图的图片缺失 (#4598)

This commit is contained in:
CaoMeiYouRen 2020-04-29 14:07:55 +08:00 committed by GitHub
parent 4a88860bf0
commit 87e9c8782c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ module.exports = async (ctx) => {
if (data.pic) {
imgHTML += `<img src="${data.pic}">`;
}
if (origin && origin.item && origin.item.pictures) {
for (let i = 0; i < origin.item.pictures.length; i++) {
imgHTML += `<img src="${origin.item.pictures[i].img_src}">`;
}
}
if (origin && origin.pic) {
imgHTML += `<img src="${origin.pic}">`;
}