fix: xposed module guid

This commit is contained in:
DIYgod 2020-04-30 16:14:44 +08:00
parent c11a1500cc
commit 80ba9353ee
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 4 additions and 2 deletions

View File

@ -15,18 +15,20 @@ module.exports = async (ctx) => {
const list = $('div.field-collection-view');
ctx.state.data = {
title: `${title}(${ctx.params.mod})`,
title: `${title}(${ctx.params.mod}) 更新`,
link: link,
item:
list &&
list
.map((_, item) => {
item = $(item);
const version = item.find('div.field-name-field-version-number div.even').text();
return {
title: item.find('div.field-name-field-version-number div.even').text(),
title: `Version ${version}`,
description: item.find('div.field-name-field-changes').html(),
link: link,
pubDate: item.find('span.date-display-single').html().replace('- ', ''),
guid: ctx.params.mod + version,
};
})
.get(),