diff --git a/apps/character/profile-artis.js b/apps/character/profile-artis.js index b2d998dc..77422849 100644 --- a/apps/character/profile-artis.js +++ b/apps/character/profile-artis.js @@ -61,12 +61,12 @@ export async function profileArtisList(e, { render }) { let usefulMark; - let charCfg = Reliquaries2.getCharCfg(name); + let charCfg = Artifact.getCharCfg(name); usefulMark = charCfg.titleWeight; /* 处理圣遗物 */ if (ds.artis) { - let newScore = Reliquaries2.getArtisMark(name, ds.artis); + let newScore = Artifact.getArtisMark(name, ds.artis); lodash.forEach(ds.artis, (arti, idx) => { if (!arti.name) { @@ -74,12 +74,12 @@ export async function profileArtisList(e, { render }) { } idx = idx.replace("arti", ""); let mark = newScore[idx]; - let maxMark = Reliquaries.getMaxMark(name, arti.main[0] || ""); + let maxMark = Artifact.getMaxMark(name, arti.main[0] || ""); arti.mark = Format.comma(mark, 1); arti._mark = mark; - arti.markClass = Reliquaries2.getMarkClass(mark); - arti.main = Profile.formatArti(arti.main); - arti.attrs = Profile.formatArti(arti.attrs); + arti.markClass = Artifact.getMarkClass(mark); + arti.main = Artifact.formatArti(arti.main); + arti.attrs = Artifact.formatArti(arti.attrs); arti.usefulMark = usefulMark; arti.avatar = name; artis.push(arti); diff --git a/index.js b/index.js index 3979e064..3c318951 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ let rule = { //reg: "noCheck", describe: "【#角色】角色详情", }, - getArtis: { + profileArtisList: { reg: "^#圣遗物列表\\s*(\\d{9})?$", describe: "【#角色】圣遗物列表", }, diff --git a/resources/character/artis.html b/resources/character/artis.html index 5834b15a..47b04d2b 100644 --- a/resources/character/artis.html +++ b/resources/character/artis.html @@ -12,7 +12,7 @@ {{each artis ds}}
- {{if ds && ds.name && ds.main && ds.main[0] && ds.main[0]!="undefined"}} + {{if ds && ds.name && ds.main && ds.main.title && ds.main.title!="undefined"}}
@@ -23,12 +23,13 @@ {{ds.name}} {{ds.mark}}分 - {{ds.markClass}}
-