更新bookwalkertw书籍图片地址 (#8749)
This commit is contained in:
parent
d65e83aeed
commit
6f9ed0057d
|
|
@ -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()} | ${item.find('.bprice').text()}<br><img src="https://image.bookwalker.com.tw/upload/product/${bookid}/zoom_big_${bookid}.jpg">`,
|
||||
description: `${item.find('.booknamesub').text()} | ${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'),
|
||||
};
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue