mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
练度统计页面图像素材添加
This commit is contained in:
parent
500aca0bd5
commit
37dd526065
@ -28,25 +28,8 @@ export async function userStat(e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function rebuildCookie(e) {
|
|
||||||
if (!await e.checkAuth({
|
|
||||||
auth: "master"
|
|
||||||
})) return true;
|
|
||||||
|
|
||||||
|
|
||||||
let count = 0;
|
|
||||||
for (let qq in NoteCookie) {
|
|
||||||
let uid = NoteCookie[qq].uid;
|
|
||||||
if (uid) {
|
|
||||||
redis.set(`genshin:uid:${qq}`, uid, { EX: 2592000 });
|
|
||||||
redis.set(`genshin:qq-uid:${qq}`, uid, { EX: 2592000 });
|
|
||||||
redis.set(`genshin:uid-qq:${uid}`, qq, { EX: 2592000 });
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
e.reply(`重建${count}个缓存`)
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function userStatus(e, { Models }) {
|
export async function userStatus(e, { Models }) {
|
||||||
if (!await e.checkAuth({
|
if (!await e.checkAuth({
|
||||||
auth: "master"
|
auth: "master"
|
||||||
|
4
index.js
4
index.js
@ -1,7 +1,7 @@
|
|||||||
import { character, wife, wifeReg } from "./apps/character.js";
|
import { character, wife, wifeReg } from "./apps/character.js";
|
||||||
import { userStat, rebuildCookie, userStatus, userCacheRebuild, mysUserCk } from "./apps/admin.js";
|
import { userStat, userStatus, userCacheRebuild, mysUserCk } from "./apps/admin.js";
|
||||||
|
|
||||||
export { character, userStat, rebuildCookie, wife, userStatus, userCacheRebuild, mysUserCk };
|
export { character, userStat, wife, userStatus, userCacheRebuild, mysUserCk };
|
||||||
|
|
||||||
|
|
||||||
export const rule = {
|
export const rule = {
|
||||||
|
Loading…
Reference in New Issue
Block a user