feat: class for ps trophy
This commit is contained in:
parent
f15d5789c0
commit
e7cab139fb
|
|
@ -90,6 +90,12 @@ module.exports = async (ctx) => {
|
|||
const items = list
|
||||
.map((i, item) => {
|
||||
item = $(item);
|
||||
const classMap = {
|
||||
Platinum: '白金',
|
||||
Gold: '金',
|
||||
Silver: '银',
|
||||
Bronze: '铜',
|
||||
};
|
||||
return {
|
||||
title:
|
||||
item.find('.title').text() +
|
||||
|
|
@ -111,7 +117,15 @@ module.exports = async (ctx) => {
|
|||
return this.nodeType === 3;
|
||||
})
|
||||
.text()
|
||||
.trim()}<br>珍贵度:${item.find('.hover-show .typo-top').text()}`,
|
||||
.trim()}<br>等级:${
|
||||
classMap[
|
||||
item
|
||||
.find('td')
|
||||
.eq(5)
|
||||
.find('img')
|
||||
.attr('title')
|
||||
]
|
||||
}<br>珍贵度:${item.find('.hover-show .typo-top').text()}`,
|
||||
link: 'https://psnprofiles.com' + item.find('.title').attr('href'),
|
||||
pubDate: new Date(
|
||||
+new Date(
|
||||
|
|
|
|||
Loading…
Reference in New Issue