From 80ba9353eeeda8728483eaa576e4fa35b808894d Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 30 Apr 2020 16:14:44 +0800 Subject: [PATCH] fix: xposed module guid --- lib/routes/xposed/module.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/routes/xposed/module.js b/lib/routes/xposed/module.js index 0f19054f6..e7c09be79 100644 --- a/lib/routes/xposed/module.js +++ b/lib/routes/xposed/module.js @@ -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(),