练度统计页面图像素材添加

This commit is contained in:
yoimiya-kokomi 2022-04-04 04:49:52 +08:00
parent 500aca0bd5
commit 37dd526065
2 changed files with 2 additions and 19 deletions

View File

@ -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"

View File

@ -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 = {