fix: 简阅(simpread) changelog结构bug修复适配
This commit is contained in:
parent
2aca91a25e
commit
7aec48e8d0
|
|
@ -16,19 +16,10 @@ module.exports = async (ctx) => {
|
|||
const month_day = $(item).find('.day').html();
|
||||
let version = '';
|
||||
let detail = '';
|
||||
|
||||
// 结构异化-收个version与后续version不同级
|
||||
if (index === 0) {
|
||||
// 版本名称处理
|
||||
version = $($(item).find('.num > a')[0]).clone().children().remove().end().text();
|
||||
// detail处理
|
||||
detail = $($(item).find('.details')[0]);
|
||||
} else {
|
||||
// 版本名称处理
|
||||
version = $(item).find('.num > a').clone().children().remove().end().text();
|
||||
// detail处理
|
||||
detail = $(item).find('.details');
|
||||
}
|
||||
// 版本名称处理
|
||||
version = $(item).find('.num > a').clone().children().remove().end().text();
|
||||
// detail处理
|
||||
detail = $(item).find('.details');
|
||||
if (version === '') {
|
||||
version = $(item).find('.num').clone().children().remove().end().text();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue