更新bookwalkertw书籍图片地址 (#8749)

This commit is contained in:
wushijishan
2022-01-22 19:50:24 +00:00
committed by GitHub
parent d65e83aeed
commit 6f9ed0057d
+2 -2
View File
@@ -20,10 +20,10 @@ module.exports = async (ctx) => {
list
.map((index, item) => {
item = $(item);
bookid = item.find('img').attr('data-src').split('/')[5];
bookid = item.find('img').attr('data-src').split('/')[4];
return {
title: item.find('.bookname').text(),
description: `${item.find('.booknamesub').text()}&nbsp;|&nbsp;${item.find('.bprice').text()}<br><img src="https://image.bookwalker.com.tw/upload/product/${bookid}/zoom_big_${bookid}.jpg">`,
description: `${item.find('.booknamesub').text()}&nbsp;|&nbsp;${item.find('.bprice').text()}<br><img src="https://taiwan-image.bookwalker.com.tw/product/${bookid}/zoom_big_${bookid}.jpg">`,
link: item.find('a').attr('href'),
};
})