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

This commit is contained in:
wushijishan 2022-01-23 03:50:24 +08:00 committed by GitHub
parent d65e83aeed
commit 6f9ed0057d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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'),
};
})