mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
* 增加#喵喵面板设置
命令,可更精细的设置是否允许好友/临时对话/群使用面板功能
* `#喵喵日历` 优化 * 对角色、武器UP的日历展示做合并优化 * 增强从活动详情解析日期的能力,使一些活动日期更加准确 * `#角色面板` 伤害计算增加 琴、莫娜
This commit is contained in:
parent
750cdddbce
commit
d0a59ed78a
@ -23,7 +23,7 @@ let Cal = {
|
||||
|
||||
let timeMap;
|
||||
let timeMapCache = await redis.get("cache:calendar:detail");
|
||||
if (timeMapCache && false) {
|
||||
if (timeMapCache) {
|
||||
timeMap = JSON.parse(timeMapCache) || {};
|
||||
} else {
|
||||
let detailApi = "https://hk4e-api.mihoyo.com/common/hk4e_cn/announcement/api/getAnnContent?game=hk4e&game_biz=hk4e_cn&lang=zh-cn&bundle_id=hk4e_cn&platform=pc®ion=cn_gf01&level=55&uid=100000000";
|
||||
@ -86,7 +86,7 @@ let Cal = {
|
||||
}
|
||||
})
|
||||
}
|
||||
await redis.set("cache:calendar:detail", JSON.stringify(timeMap), { EX: 60 * 30 });
|
||||
await redis.set("cache:calendar:detail", JSON.stringify(timeMap), { EX: 60 * 10 });
|
||||
}
|
||||
return { listData, timeMap };
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user