Skip to content

Commit

Permalink
fix: 修复 B站动态转发多图的图片缺失 (DIYgod#4598)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen authored Apr 29, 2020
1 parent 4a88860 commit 87e9c87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/routes/bilibili/dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}">`;
}
Expand Down

0 comments on commit 87e9c87

Please sign in to comment.