From 0489249c126d4bf8cb43ab68bd187962a9842d4d Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Tue, 16 Aug 2022 04:54:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E6=96=87=E6=A1=88=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Calendar.js | 6 +++++- components/models/Avatars.js | 2 +- resources/character/profile-list.html | 8 ++++++-- resources/stat/abyss-pct.html | 4 ++-- resources/stat/abyss-summary.html | 2 +- resources/stat/character.html | 4 ++-- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/components/Calendar.js b/components/Calendar.js index 800612d4..24e6eaf5 100644 --- a/components/Calendar.js +++ b/components/Calendar.js @@ -33,7 +33,11 @@ let Cal = { if (detailData && detailData.data && detailData.data.list) { let versionTime = { 2.7: '2022-05-31 11:00:00', - 2.8: '2022-07-13 11:00:00' + 2.8: '2022-07-13 11:00:00', + 3.0: '2022-08-24 11:00:00', + 3.1: '2022-09-28 11:00:00', + 3.2: '2022-11-02 11:00:00', + 3.3: '2022-12-07 11:00:00' } lodash.forEach(detailData.data.list, (ds) => { let vRet = /(\d\.\d)版本更新通知/.exec(ds.title) diff --git a/components/models/Avatars.js b/components/models/Avatars.js index 91fe123f..f6f8da86 100644 --- a/components/models/Avatars.js +++ b/components/models/Avatars.js @@ -96,7 +96,7 @@ export default class Avatars extends Base { lodash.forEach(skillRet, (talent) => { avatarTalent[talent.id] = talent }) - await redis.set(`genshin:avatar-talent:${this.uid}`, JSON.stringify(avatarTalent), { EX: 3600 * 6 }) + await redis.set(`genshin:avatar-talent:${this.uid}`, JSON.stringify(avatarTalent), { EX: 3600 * 2 }) } let ret = this.getData(ids) lodash.forEach(ret, (avatar, id) => { diff --git a/resources/character/profile-list.html b/resources/character/profile-list.html index 6ee2538b..676e0b64 100644 --- a/resources/character/profile-list.html +++ b/resources/character/profile-list.html @@ -9,8 +9,12 @@ {{block 'main'}} {{set demo = chars[0]?.abbr || "雷神" }}
-
#面板列表
UID:{{uid}} {{msg}}
- +
#面板列表 +
UID:{{uid}}
+
+ {{if msg}} +
{{msg}}
+ {{/if}}
你可以使用#{{demo}}面板#{{demo}}伤害#{{demo}}圣遗物命令来查看面板信息了
diff --git a/resources/stat/abyss-pct.html b/resources/stat/abyss-pct.html index 19170846..2666546a 100644 --- a/resources/stat/abyss-pct.html +++ b/resources/stat/abyss-pct.html @@ -9,9 +9,9 @@
{{if chooseFloor == -1}} -
深渊{{modeName}}统计
+
#深渊{{modeName}}
{{else}} -
深渊第{{floorName[chooseFloor]}}{{modeName}}
+
#深渊第{{floorName[chooseFloor]}}{{modeName}}
{{/if}}
【#深渊出场率】出场总数/总记录数
【#深渊使用率】出场总数/持有该角色的记录数
diff --git a/resources/stat/abyss-summary.html b/resources/stat/abyss-summary.html index 92050da3..59dd799d 100644 --- a/resources/stat/abyss-summary.html +++ b/resources/stat/abyss-summary.html @@ -13,7 +13,7 @@
-
喵喵深渊{{abyss.schedule}}
+
#上传深渊{{abyss.schedule}}
UID:{{uid}} · {{abyss.total}}次战斗
diff --git a/resources/stat/character.html b/resources/stat/character.html index 37157947..ae8b963b 100644 --- a/resources/stat/character.html +++ b/resources/stat/character.html @@ -15,10 +15,10 @@ return (num * 100).toFixed(2);
{{if mode === "char"}} -
角色持有率统计
+
#角色持有率
全角色综合持有率统计
{{else}} -
角色{{conNum == -1 ? "命座" : "零一二三四五满"[conNum]+"命"}}分布统计
+
#角色{{conNum == -1 ? "命座" : "零一二三四五满"[conNum]+"命"}}统计
统计所有角色命座,无论角色是否出场
{{/if}}